Issues | Suggestion any?

2003-10-23 Thread Arnab Chakravarty
Hi all,

The application that we run is based on MVC architecture and is built on
Jsp, Java and oracle.

The (4) production servers are running Solaris OS with 4CPU, 4GB RAM and
7GB of swap space. In all we have 12 tomcats and 4 Apaches.

Each machine is equipped with one apache and 3 tomcats.

The Database machines is also running Solaris with 16CPU's, 20 GB RAM
and 20GB swap space.

We have apache (1.3.27) and tomcat(3.3) in our production servers with
JVM (1.4.2 recently upgraded). The frequent problems we face are:

- High GC (increased pause time when the NewSize=128m -ms=256m -mx=778m
and using the default LWP synchronization scheme with GC parameters
PrintGCDetails and Time Stamps to analyse in GCportal)(these setting are
for individual tomcats)

- The Process running the JVM reached 1GB of size in the 'TOP' list
recently, which at this point had to be killed on one of the tomcats.

- The load balancing scheme in the worker.properties are

4,3,2,1 (Production Machine)
1,2,3,4
4,3,2,1
1,2,3,4

where the load is seen mostly on production machine 4. On this machine
the first tomcat spikes up with high threads and Database connections
and sometime with high GC and CPU usage. The 3rd production machine
causes high number of thread due to High GC most of the times and on
this machine the tomcat took around 1GB of memory. The JDBC connections
are also high sometime from this machien and thus increased in the pause
time causes this tomcat to stop responnding after some time.

On running pmap, it was seen 123MB was taken as heap, there were other
listing of high memories of 450, 136 and 65 MB in the anon listing. I
read in one of the articles that anon was something called anonymous
pages and was caused due to swapping. But, does that mean that there is
excessive swapping which can cause this GC time to go high because
swapping increasing some overhead here of writting this 450MB + other
chunks as part of the swap space?

Once the database connections are high with an increased number of
threads, they are unable to come back to the normal condition and we
have to kill this tomcat as after some time when the load increases,
apache starts backing up because of tomcat not accepting connections and
then the whole scenario is even worse. All tomcat show high threads
thereafter.

Please help me in case you have any pointers to resolve this scenario.

One last thing, there are some occasional tomcat death (JVM crashes)
once in a while.

Thanks in Advance,
Arnab Chakravarty

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



RE: shared memory problem in Tomcat 4.1.24/Apache 2.0.47/mod_jk2 connection

2003-10-23 Thread Mario Juric
I still have the same problem. This time I attached the status HTML page. It
may provide a clue to the source of the problem. I thank you for the help.

Cheers
Mario

-Original Message-
From: Klaus Wienert [mailto:[EMAIL PROTECTED] 
Sent: 22. oktober 2003 18:18
To: Tomcat Users List
Cc: [EMAIL PROTECTED]
Subject: Re: shared memory problem in Tomcat 4.1.24/Apache 2.0.47/mod_jk2
connection

Try the following:

# workers2.properties
[shm]
file=/var/log/httpd/jk2.shm
size=1048576

[channel.socket:localhost:8009]
tomcatId=tomcat1

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

[status:status]

[uri:/examples/*]
group=ajp13:localhost:8009

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

--

# jk2.properties
# no entries here

--

In server.xml add jvmRoute in Engine-Tag like this:

Engine jvmRoute=tomcat1 name=Standalone defaultHost=localhost
debug=0



Klaus

- Original Message - 
From: Mario Juric [EMAIL PROTECTED]
To: Tomcat User [EMAIL PROTECTED]
Sent: Wednesday, October 22, 2003 8:20 AM
Subject: shared memory problem in Tomcat 4.1.24/Apache 2.0.47/mod_jk2
connection


 I need some help in solving the following problem.



 I am trying to establish a simple Tomcat 4.1.24/Apache 2.0.47/mod_jk2
 connection using the standard Tomcat examples webapp. The browser waits
 forever when I try to access http://localhost/examples/. I also get the
the
 following errors two times in my /var/lo/httpd/error_log:



 [error] jk2_init() Can't find child XXX in scoreboard

 [error] mod_jk child init 1 -2



 Similar problem descriptions I found in the Tomcat User mailing archive
 indicate that this may have something to do with the shared memory file
 (shm). I have setup up read/write permission for this file.



 Note that http://localhost/ (Apache default page) and
 http://localhost:8009/examples/ (Tomcat examples) work as expected.



 My OS is Mandrake Linux 9.1 and I use the following setup files:



 # workers2.properties



 [shm]

 file=/var/log/httpd/jk2.shm

 size=1048576



 [channel.socket:localhost:8009]

 tomcatId=localhost:8009

 port=8009

 host=127.0.0.1



 [ajp13:localhost:8009]

 channel=channel.socket:localhost:8009



 [uri:/examples/*]

 worker=ajp13:localhost:8009



 # jk2.properties



 handler.list=request,container,channelSocket



 channelSocket.port=8009



 shm.file=/var/log/httpd/jk2.shm




-
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: shared memory problem in Tomcat 4.1.24/Apache 2.0.47/mod_jk2 connection

2003-10-23 Thread Mario Juric
Sorry,

It looks as if html attachements are not accepted by the list server. I try
to attach it as a zip-file.


-Original Message-
From: Mario Juric [mailto:[EMAIL PROTECTED] 
Sent: 23. oktober 2003 08:59
To: 'Tomcat Users List'
Subject: RE: shared memory problem in Tomcat 4.1.24/Apache 2.0.47/mod_jk2
connection

I still have the same problem. This time I attached the status HTML page. It
may provide a clue to the source of the problem. I thank you for the help.

Cheers
Mario

-Original Message-
From: Klaus Wienert [mailto:[EMAIL PROTECTED] 
Sent: 22. oktober 2003 18:18
To: Tomcat Users List
Cc: [EMAIL PROTECTED]
Subject: Re: shared memory problem in Tomcat 4.1.24/Apache 2.0.47/mod_jk2
connection

Try the following:

# workers2.properties
[shm]
file=/var/log/httpd/jk2.shm
size=1048576

[channel.socket:localhost:8009]
tomcatId=tomcat1

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

[status:status]

[uri:/examples/*]
group=ajp13:localhost:8009

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

--

# jk2.properties
# no entries here

--

In server.xml add jvmRoute in Engine-Tag like this:

Engine jvmRoute=tomcat1 name=Standalone defaultHost=localhost
debug=0



Klaus

- Original Message - 
From: Mario Juric [EMAIL PROTECTED]
To: Tomcat User [EMAIL PROTECTED]
Sent: Wednesday, October 22, 2003 8:20 AM
Subject: shared memory problem in Tomcat 4.1.24/Apache 2.0.47/mod_jk2
connection


 I need some help in solving the following problem.



 I am trying to establish a simple Tomcat 4.1.24/Apache 2.0.47/mod_jk2
 connection using the standard Tomcat examples webapp. The browser waits
 forever when I try to access http://localhost/examples/. I also get the
the
 following errors two times in my /var/lo/httpd/error_log:



 [error] jk2_init() Can't find child XXX in scoreboard

 [error] mod_jk child init 1 -2



 Similar problem descriptions I found in the Tomcat User mailing archive
 indicate that this may have something to do with the shared memory file
 (shm). I have setup up read/write permission for this file.



 Note that http://localhost/ (Apache default page) and
 http://localhost:8009/examples/ (Tomcat examples) work as expected.



 My OS is Mandrake Linux 9.1 and I use the following setup files:



 # workers2.properties



 [shm]

 file=/var/log/httpd/jk2.shm

 size=1048576



 [channel.socket:localhost:8009]

 tomcatId=localhost:8009

 port=8009

 host=127.0.0.1



 [ajp13:localhost:8009]

 channel=channel.socket:localhost:8009



 [uri:/examples/*]

 worker=ajp13:localhost:8009



 # jk2.properties



 handler.list=request,container,channelSocket



 channelSocket.port=8009



 shm.file=/var/log/httpd/jk2.shm




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



jkstatus.zip
Description: Zip compressed data
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: [OT] Re: linux : Limit of file descriptor

2003-10-23 Thread Francois JEANMOUGIN


 Francois,
 If you've solved this problem, please disregard this message.  I've
 marked
 this issue as off topic because it relates to Linux and not Tomcat.

Well, counting FDs is linux related, but why is there so much FDs opened could be 
tomcat related (even if, as a bofh, I would say it's something to do with those thing, 
you know? That specific sort of users called developers). Anyway.
 
 lsof won't properly report the total number of opened file
 descriptors.  I was
 doing the same thing for a client who ran into this issue with file-
 max set to
 16384.  I was using lsof and wc to count the lines, however it
 reported
 something like 80,000.

Yes, I ran into this lately yesterday (GMT), lsof reported a number of FDs of 
more than 22, so as already said, it should report shared FDs as well. Please 
apologize.
 
 You sound pretty knowledgeable, so you may have seen this, however the
 best
 way to handle this is using the proc file system.  An explaination is
 available at
 http://www.ussg.iu.edu/hypermail/linux/kernel/0208.2/0145.html

Yep, I use it.

 Can you post the contents of the following files:
 /proc/sys/fs/file-max
As already mentioned :209713
 /proc/sys/fs/file-nr
23321398209713
So. 2332 FDs opened, 1398 used. I found a message talking about a hard coded limit 
of 1024 in the Jvm... Is it a per thread limit or ?

 /proc/sys/fs/inode-nr
164972  39841
It seems to be OK there, about 4 inodes free
 /proc/sys/fs/inode-state
165000  39823   0   0   0   0   0
Show about the same, just adding everything is OK, good luck, and see you later in a 
OS point of view.

 Once you've pasted this information, we'll see if we can figure this
 out.

So. I think I ran into a Jvm limit (user is unlimited, shame on me). I will go back to 
the developers corner to ask.

Thank you for your help.

François.


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



configuring WebdavServlet

2003-10-23 Thread Andreas F. Wehowsky
Hi there,
does anyone know how to configure the WebdavServlet from Apache in
web.xml, such that only a certain subdirectory and its subdirs of the
web-app root are WebDAV-enabled? 
I'm using Tomcat 4.1.24.

Thanks!
Andreas Wehowsky
/Corena Denmark

 


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



how to find servlet home-dir from java?

2003-10-23 Thread gabor
hi,

i have to access some resource files from my servlet.
the problem is that i don't know the path to the files.

for example:
i know that the files in in servlet-directory/resources/table.xml,

but i don't know where is servlet-directory.
for now i solved this with adding a parameter to web.xml,
like:
init-param
  param-nameSERVLET_HOME/param-name
param-value
/home/gabor/work/tomcat/webapps/myServlet
/param-value
/init-param

but i think this is quite ugly. what if i move the servlet to a
different place.?

the best would be something in the java-servlet api, which somehow could
give me the dir, where the servlet lives. but i couldn't find anything
like that.

how do you solve this problem?

thanks,
gabor


signature.asc
Description: This is a digitally signed message part


Re: [URGENT] Tomcat SSL crash on start-up

2003-10-23 Thread Bruno Morin
Thank you Bill.
Everything is allright now.

- Original Message - 
From: Bill Barker [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 4:32 AM
Subject: Re: [URGENT] Tomcat SSL crash on start-up


 You are missing 'keystoreFile=/path/to/servercerts.ks' in the Factory
 element.

 Bruno Morin [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  Hi,
 
  I tried to configure Tomcat 4.1.27 with SSL
 
  I use JDK 1.3.1 with jcert.jar, jnet.jar and jsse.jar in
  JAVA_HOME/jre/lib/ext/
  I had security.provider.3=com.sun.net.ssl.internal.ssl.Provider in
  JAVA_HOME/jre/lib/ext/java.security
 
 
  Then I generate a certificate whith those instructions :
  keytool -genkey -alias server -keyalg RSA -keystore servercerts.ks
  keytool -export -rfc -alias server -keystore servercerts.ks -file
  server.cert
  keytool -import -file server.cert -keystore client.ks
  and put servercerts.ks in CATALINA_HOME
 
 
  Then I modified the connector in CATALINA_HOME/conf/server.xml like this
:
  Connector className=org.apache.catalina.connector.http.HttpConnector
 
  port=8443 minProcessors=5 maxProcessors=75
 
  enableLookups=true acceptCount=10 debug=0 scheme=https
  secure=true
 
  Factory className=org.apache.catalina.net.SSLServerSocketFactory
 
  clientAuth=false
 
  protocol=TLS
 
  keystorePass=serverpassword/
 
  /Connector
 
 
  Then I lauched the server but it crash on start-up with the exception :
  java.io.IOException: Keystore was tampered with, or password was
incorrect
 
  What's wrong ?




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


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



HTTPS and java client call

2003-10-23 Thread Bruno Morin
Hi,

I configured Tomcat to work in HTTPs mode with a self-signed certificate.
and I installed a Soap webService on it.

Is it possible to develop a java client for a webService thru Https, without
create and use a client keystore generated from the server certificate ?


Before the call of the webService I add those instructions :
System.setProperty(java.protocol.handler.pkgs,
com.sun.net.ssl.internal.www.protocol);

Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());

and when I execute the call, I have the exception
javax.net.ssl.SSLHandshakeException: unknown certificate



Did I forgot an instruction ?

Is it possible to develop a java client for a webService thru Https, without
create and use a client keystore generate from the server certificate ?

How can i do that ?

Thanxs





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



Re: does tomcat work without apache? ... a real beginner asks some basic!?

2003-10-23 Thread [EMAIL PROTECTED]
hello,

would it be a solution, if i declared another host in server.xml with 
appbase=myproject?? is this possible - or anything like this?
if yes: how could i get there?

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


Re: JDBC Connection question

2003-10-23 Thread Carlos Pereira
 Which server do you use?  Weblogic, Websphere, ...
 support connection pooling.
(Caroline Jen)

 Oracle 9iAS Supports DataSources with pooling as well.
(Wade Chandler)

Thats not the issue. Whatever server i use, i'll have to deploy the
application somewhere. My company does not have any servers, so we have to
use an outside server. Won't the need to configure server.xml (or something
similar) give me any troubles? Why isn't it possible to configure connection
pooling through web.xml?




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



Tomcat Deployer Client

2003-10-23 Thread Michal Belicek
Hi,
after a big struggle I found that build.xml file for deployer is hidden in
sources of tomcat. Now I'm looking for deployer.properties file which is
supposed to be in the root of deployer package. It's not there! Anybody
knows where this file is or can you send me the file?

Greetings
Michal Belicek


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



IIS and Tomcat

2003-10-23 Thread Matt Raible
I've integrated Apache with Tomcat on numerous occasions, but never on 
IIS.  We have the following scenario:

1.  We want to have a domain name - i.e. www.myresort.com - that is 
serviced by IIS.
2. We want to map any requests to www.myresort.com to Tomcat's 
/myresort application.

Is this possible? I know it is with Apache, but I'm not sure about IIS. 
From what I've seen from the documentation, IIS has to have some sort 
of indicator, i.e. /jk/*

Thanks,

Matt

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


JK DEBUG level logging in catalina.out

2003-10-23 Thread Mike Curwen
A while back  I hijacked this conversation:
http://marc.theaimsgroup.com/?t=10662176741r=1w=2
 
Here is the message of most interest:
http://marc.theaimsgroup.com/?l=tomcat-userm=106623436423859w=2


A couple days ago we restarted Tomcat, and now... catalina.out is HUGE
and full of DEBUG level statements from the JKCoyotHandler class!

I have confirmed that no changes have been made to my log4j.properties
file in CATALINA_HOME/common/classes
 
I'm not 100% clear on how log4j works, especially regarding something
like:

log4j.rootCategory=DEBUG
 
Most of my applications that use log4j use this type of syntax. I just
catch DEBUG from everything. (In case you didn't click the above links,
I don't use the rootCategory for the log4j config for
CATALINA_HOME/common/classes) Is it possible that Tomcat is picking this
up from one of the log4j.properties files that is in a web-app's
WEB-INF/classes directory? 
 
If so, my thought is that somewhere I have an errant log4j
configuration, that cannot (for example) open the output file, and
instead is dumping it to system.err.  But I've looked and can't find
where this might occur.  And plus, normally log4j outputs 'cannot do
this or that, please configure log4j correctly', and I'm not seeing that
message in catalina.out.
 
This is quite perplexing!
 
Here is the exact point in catalina.out where we did the re-start:
 
I know where the first two lines come from; a class I wrote before using
log4j.
Then comes the shutdown info...
Then the startup info...
I snipped a large segment of [INFO] messages from an application's
(jira) startup...
and then the first of the debug messages...


* catalina.out
% produceDataset() %%%
% getProducerId() %%%
Stopping service Tomcat-Standalone
2003-10-20 08:33:07,763 INFO [org.quartz.core.QuartzScheduler] Scheduler
JiraQuartzScheduler_$_NON_CLUSTERED shutting down.
2003-10-20 08:33:07,764 INFO [org.quartz.core.QuartzScheduler] Scheduler
JiraQuartzScheduler_$_NON_CLUSTERED paused.
2003-10-20 08:33:07,766 INFO [org.quartz.core.QuartzScheduler] Scheduler
JiraQuartzScheduler_$_NON_CLUSTERED shutdown complete.
422558126 [main] INFO core.QuartzScheduler  - Scheduler
IDM_Scheduler_$_1 shutting down.
422558127 [main] INFO core.QuartzScheduler  - Scheduler
IDM_Scheduler_$_1 paused.
422558128 [main] INFO core.QuartzScheduler  - Scheduler
IDM_Scheduler_$_1 shutdown complete.
0 [main] INFO modeler.Registry  - Loading registry information
3 [main] INFO modeler.Registry  - Creating new Registry instance
631 [main] INFO modeler.Registry  - Creating MBeanServer
1504 [main] INFO http11.Http11Protocol  - Initializing Coyote HTTP/1.1
on port 8080
1549 [main] DEBUG server.JkCoyoteHandler  - setProperty jkHome
/usr/local/applications/tomcat4.1.24
1550 [main] DEBUG server.JkCoyoteHandler  - setProperty port 11009
1550 [main] DEBUG server.JkCoyoteHandler  - setProperty maxThreads 75
1550 [main] DEBUG server.JkCoyoteHandler  - setProperty backlog 10
1550 [main] DEBUG server.JkCoyoteHandler  - setProperty tcpNoDelay true
1551 [main] DEBUG server.JkCoyoteHandler  - setProperty soLinger -1
1551 [main] DEBUG server.JkCoyoteHandler  - setProperty soTimeout 2
1551 [main] DEBUG server.JkCoyoteHandler  - setProperty timeout 2
1552 [main] DEBUG server.JkCoyoteHandler  - setProperty
disableUploadTimeout false
1552 [main] DEBUG server.JkCoyoteHandler  - setProperty
maxKeepAliveRequests 100
1552 [main] DEBUG server.JkCoyoteHandler  - setProperty compression off
1552 [main] DEBUG server.JkCoyoteHandler  - setProperty secure false
Starting service Tomcat-Standalone
Apache Tomcat/4.1.24
2003-10-20 08:33:34,059 WARN
[atlassian.jira.upgrade.ConsistencyCheckImpl] Detected that you are
using Tomcat - turned off all transactions.
Starting Tyrex  Version 1.0
Intalio Inc. (C) 1999-2001. All rights reserved.
 snip /
32286 [main] INFO jdbcjobstore.JobStoreTX  - Removed 0 Volatile
Trigger(s).
32286 [main] INFO jdbcjobstore.JobStoreTX  - Removed 0 Volatile Job(s).
32289 [main] INFO jdbcjobstore.JobStoreTX  - Freed 0 triggers from
'acquired' / 'blocked' state.
32290 [main] INFO jdbcjobstore.JobStoreTX  - Recovering 0 jobs that were
in-progress at the time of the last shut-down.
32291 [main] INFO jdbcjobstore.JobStoreTX  - Recovery complete.
32291 [main] INFO jdbcjobstore.JobStoreTX  - Removed 0 stale fired job
entries.
32314 [main] INFO impl.StdSchedulerFactory  - Quartz scheduler
'IDM_Scheduler' initialized from default resource file in Quartz
package: 'quartz.properties
'
32314 [main] INFO impl.StdSchedulerFactory  - Quartz scheduler version:
1.2.2
32316 [main] INFO core.QuartzScheduler  - Scheduler IDM_Scheduler_$_1
started.
38470 [main] INFO http11.Http11Protocol  - Starting Coyote HTTP/1.1 on
port 8080
38607 [main] INFO server.JkMain  - Jk running ID=0 time=11/136
config=/usr/local/applications/tomcat4.1.24/conf/jk2.properties
212555 [Thread-10] DEBUG server.JkCoyoteHandler  - Invoke R( /image)
[EMAIL 

Help withjk2 balancer problem

2003-10-23 Thread chris humphrey
We have a fairly complicated setup for jk2 that I believe should work, 
but after looking at the jk_workerr_lb source code, I am fairly certain 
this will not.

I am hoping someone has done something like this and has a solution.

We have a set of clusters, each cluster will process the same url's, but 
the sessions will only be replicated across to nodes on a cluster.  In 
the configuration, I am hoping to show 2 clusters, each cluster has 2 
ajp connections, and are put together using a cluster of lb's.

Everything seems to work at first, until failover to another cluster is 
required. The lb will attach to a  server, and failover inside that 
cluster.  But if both hosts in the cluster are down, the balancer never 
seems to failover to the second cluster.   There were also other 
problems encountered.

Here is my workers2.properties
[logger]
level=DEBUG
[config:]
file=${serverRoot}/conf/workers2.properties
debug=0
debugEnv=0
[uriMap:]
info=Maps the requests. Options: debug
debug=0
# Alternate file logger
#[logger.file:0]
#level=DEBUG
#file=${serverRoot}/logs/jk2.log
[shm:]
info=Scoreboard. Required for reconfiguration and status with 
multiprocess servers
file=${serverRoot}/logs/jk2.shm
size=100
debug=0
disabled=0

[workerEnv:]
info=Global server options
timing=1
debug=0
[lb:lb]
info=Default load balancer.
debug=0
[lb:cluster_1]
info=A cluster load balancer.
debug=0
[lb:cluster_2]
info=A second cluster load balancer.
debug=0
[lb:cluster_balancer]
info=A second cluster load balancer.
debug=0
worker=lb:cluster_2
worker=lb:cluster_1
[channel.host1:8009]
info=Ajp13 forwarding over socket
debug=0
tomcatId=host1:8009
group=lb:cluster1
[channel.host2:8009]
info=A second tomcat instance.
debug=0
tomcatId=host2:8009
group=lb:cluster1
[channel.host3:8009]
info=Ajp13 forwarding over socket
debug=0
tomcatId=host3:8009
group=lb:cluster2
[channel.host4:8009]
info=A second tomcat instance.
debug=0
tomcatId=host4:8009
group=lb:cluster2
[channel.jni:jni]
info=The jni channel, used if tomcat is started inprocess
[status:]
info=Status worker, displays runtime informations
[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:
[uri:/test/*]
info=Prefix mapping
group=lb:cluster_balancer




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


jserv Vs Tomcat

2003-10-23 Thread Mrs. Geeta Thanu
Hello all,

I am new to this list. I was using jserv with apache to see the servlet
pages.
It is running on solaris 8 and the problem I am facing with Apache Jserv
is , I have set the security.maxConnections=50 (default) but still I feel
the TOP command shows so many threads and if it is above 100 , the whole
jserv hangs and unable to process any request.
Can anybody from this list suggest me what i can do to solve this problem
with jserv.
If installing tomcat is the only solution how to down load it , becos
when i tried downloading it from jakarta site and when I untar it
it is always showing directory check sum error.

Pls guide me

Thanks in advance
Geetha



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



Re: Tomcat mysteriously stops responding...

2003-10-23 Thread Jon Wingfield
When creating your mySQL connection do you have autoReconnect=true in 
your connection string? If you don't mySQL will close inactive 
connections after a time and the driver won't reconnect. That time to 
live seems to vary from installation to installation. Ours died after 
eight hours inactivity. Other people on this list have seen dead 
connections after, say, 3hrs.
Some connection pools have 'ping' functionality for connections, some 
don't. Depends on the pool you are using ;) I think DBCP has this option 
but we're not using it so I can't be sure...

HTH,

Jon

Sonny Sukumar wrote:
Interesting observation.  I think you might be onto
something, but let's explore it a bit further.
I'm using DBCP with a MySQL backend database.  I don't
really get why Tomcat would stop responding though
after several hours of idle time though.  You think
it's because after all those hours of idle time the #
of db connections is 0?  I thought the connection pool
could handle that and create a new connection when
needed.
I think I'm not understanding though...do enlighten
me. :-)
Thanks for your help,

Sonny

--- mike jackson [EMAIL PROTECTED] wrote:

When this has happened to me it's usually been the
database connection pool
that I'm using.  Or was using.  If it looks like you
had a bunch of
connections prior to the restart and very few after
then you've found your
culprit.  You database should be able to give you a
connection count, but
the way to get it depends on the database so I can't
help you there.
--mikej
-=--
mike jackson
[EMAIL PROTECTED]



-Original Message-
From: Sonny Sukumar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 22, 2003 3:25 PM
To: [EMAIL PROTECTED]
Subject: Tomcat mysteriously stops responding...
Hey guys,

I've had the persistent problem with Tomcat (using
Cocoon) over some months now where when I go to
bed at

night my Tomcat/Cocoon server is functioning just
fine

and I can access all web pages, both static and
dynamically generated (from a backend db).
But when I wake up and try to access the pages the
connection just times out and I get a totally
blank

response.  This doesn't happen every single day,
but

often enough to be annoying.  We're soon going
live

with the site, so this happening **at all** is a
scary

thought.  I can't seem to figure out what the
problem

could be.

I'm fairly sure it's Tomcat because restarting
Tomcat

almost always solves the problem.  I've had this
problem through all my Tomcat upgrades (4.1.12 all
the

way to 4.1.27 now) and my Cocoon upgrades (from
2.0.x

all the way until latest 2.1.2).

Has anybody else experienced this?  Any idea what
it

could be?

Thanks!

Sonny

__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product
search

http://shopping.yahoo.com



-

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]


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
-
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: shared memory problem in Tomcat 4.1.24/Apache 2.0.47/mod_jk2 connection

2003-10-23 Thread Klaus Wienert
I could not find any mistake. It should work fine.

The connection is not in errorState and the scoreBoard seems to work.

Sorry, no idea


Klaus

- Original Message - 
From: Mario Juric [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 9:04 AM
Subject: RE: shared memory problem in Tomcat 4.1.24/Apache 2.0.47/mod_jk2
connection


Sorry,

It looks as if html attachements are not accepted by the list server. I try
to attach it as a zip-file.


-Original Message-
From: Mario Juric [mailto:[EMAIL PROTECTED]
Sent: 23. oktober 2003 08:59
To: 'Tomcat Users List'
Subject: RE: shared memory problem in Tomcat 4.1.24/Apache 2.0.47/mod_jk2
connection

I still have the same problem. This time I attached the status HTML page. It
may provide a clue to the source of the problem. I thank you for the help.

Cheers
Mario

-Original Message-
From: Klaus Wienert [mailto:[EMAIL PROTECTED]
Sent: 22. oktober 2003 18:18
To: Tomcat Users List
Cc: [EMAIL PROTECTED]
Subject: Re: shared memory problem in Tomcat 4.1.24/Apache 2.0.47/mod_jk2
connection

Try the following:

# workers2.properties
[shm]
file=/var/log/httpd/jk2.shm
size=1048576

[channel.socket:localhost:8009]
tomcatId=tomcat1

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

[status:status]

[uri:/examples/*]
group=ajp13:localhost:8009

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

--

# jk2.properties
# no entries here

--

In server.xml add jvmRoute in Engine-Tag like this:

Engine jvmRoute=tomcat1 name=Standalone defaultHost=localhost
debug=0



Klaus

- Original Message - 
From: Mario Juric [EMAIL PROTECTED]
To: Tomcat User [EMAIL PROTECTED]
Sent: Wednesday, October 22, 2003 8:20 AM
Subject: shared memory problem in Tomcat 4.1.24/Apache 2.0.47/mod_jk2
connection


 I need some help in solving the following problem.



 I am trying to establish a simple Tomcat 4.1.24/Apache 2.0.47/mod_jk2
 connection using the standard Tomcat examples webapp. The browser waits
 forever when I try to access http://localhost/examples/. I also get the
the
 following errors two times in my /var/lo/httpd/error_log:



 [error] jk2_init() Can't find child XXX in scoreboard

 [error] mod_jk child init 1 -2



 Similar problem descriptions I found in the Tomcat User mailing archive
 indicate that this may have something to do with the shared memory file
 (shm). I have setup up read/write permission for this file.



 Note that http://localhost/ (Apache default page) and
 http://localhost:8009/examples/ (Tomcat examples) work as expected.



 My OS is Mandrake Linux 9.1 and I use the following setup files:



 # workers2.properties



 [shm]

 file=/var/log/httpd/jk2.shm

 size=1048576



 [channel.socket:localhost:8009]

 tomcatId=localhost:8009

 port=8009

 host=127.0.0.1



 [ajp13:localhost:8009]

 channel=channel.socket:localhost:8009



 [uri:/examples/*]

 worker=ajp13:localhost:8009



 # jk2.properties



 handler.list=request,container,channelSocket



 channelSocket.port=8009



 shm.file=/var/log/httpd/jk2.shm




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








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


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



How to get Tomcat to log timestamp

2003-10-23 Thread Søren Neigaard
Ho do I get tomcat to log a timestamp in catalina.out, just like in Apache's
access.log?

Is it even possible to get Tomcat to log a timestamp before any
System.out.println?

Med venlig hilsen/Best regards
Søren Neigaard
System Architect

Mobilethink A/S
Arosgaarden
Åboulevarden 23, 4.sal
DK - 8000 Århus C
Telefon: +45 86207800
Direct: +45 86207810
Fax: +45 86207801
Email: [EMAIL PROTECTED]
Web: www.mobilethink.dk


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



Re: Defining filters in sub-directories

2003-10-23 Thread Tim Funk
You can match a prefix, or a file extension but not both. So you can do this:

filter-mapping
  filter-nameAdminSection/filter-name
  url-pattern/admin/*/url-pattern
/filter-mapping
The Servlet spec has some examples of how URL matching will work.

-Tim

Ryan Parr wrote:
As so many have said before, I'm new to Java and Tomcat. So please
forgive any poor design you see in my code, but please let me know about
it :)
I've created a filter class that handles user authorization. Basically
when a user hits a page the filter is defined for, it checks for a
boolean value in the user's session that describes their access to a
certain auth group.
If the user is not authorized, they are forwarded to a login page
defined as an init-param which handles their authentication for that
group.
This works flawlessly on pages in the root directory, and if I do:
url-pattern/*.jsp/url-pattern
it operates on every file throughout the hierarchy. This isn't what I
wanted so I defined a url exclusion method, that accepts paths and
regular expressions that the filter tests before processing auth.
I setup a new filter for each group/directory. It only works on the
root directory though, and using a url-pattern of /admin/*.jsp doesn't
appear to trigger the filter. It's never run. This happens whether or
not the filter on the root of the context exists.
Thank you very much for any advice you can give!


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


Re: can i track the user action using right mouse button on thewebpage

2003-10-23 Thread kgsat
hi friends,
(BI have tried the javascript technic of capturing the users mouse right click
(Bon which clip of the movie link he clicked.
(BThough i could capture the click, it is not giving the dynamic value .
(BWhat i mean by this is, i have say 10 clips of one movie  displayed
(Bdynamically using jsp.
(BWhen the user wants to download a clip from that page, he has to right click
(Band select the option save target as to save into his local harddisk.
(Bthough i could trigger the java script event for users' right click, the
(Bvalue passed to the function is the value of the last clip always.
(BI do not know what is actually wrong in my script.
(Bcan any one understand my problem and help me out?
(Bthanks
(Bsat
(B- Original Message - 
(BFrom: "Aleksandr Shneyderman" [EMAIL PROTECTED]
(BTo: "Tomcat Users List" [EMAIL PROTECTED]
(BSent: Monday, October 20, 2003 11:34 AM
(BSubject: Re: can i track the user action using right mouse button on
(Bthewebpage
(B
(B
(B 1. servlet specs
(B 2. javapro had a good article about a year ago.
(B 3. books about servlets
(B
(B google for it.
(B
(B On Sunday 19 October 2003 21:21, kgsat wrote:
(B  hi Aleksandr,
(B  Thanks for your response.Where can i find a sample code for writing
(Bfilters
(B  and the stuff related to filters.U have any pointers?
(B  pl send me.
(B  thanks again
(B  sat
(B  - Original Message -
(B  From: "Aleksandr Shneyderman" [EMAIL PROTECTED]
(B  To: "Tomcat Users List" [EMAIL PROTECTED]
(B  Sent: Friday, October 17, 2003 7:53 PM
(B  Subject: Re: can i track the user action using right mouse button on
(B  thewebpage
(B 
(B   I am not sure what is the significance of right click or left click.
(B   What is important is that
(B  
(B   A - you have a way to track the session of the user,
(B   which I assume you do since you use servlets (JSP)
(B   B - that your images do get served by the tomcat and not
(B   the front end apache or whatever else.
(B  
(B   If those two conditions met you have two choices that I can think of:
(B   1. Write a filter and do your own tracking of whatever items you might
(B   think of.
(B  
(B   2. Find some filters that were already written and modify them to
(Bsuite
(B   your needs. The other day I saw a post here on how one might track
(Buser
(B   clicks. There were quite a few responses with pointers to some usefull
(B   stuff, just search archives.
(B  
(B   HTH,
(B   Alex.
(B  
(B   On Fri, 2003-10-17 at 06:08, kgsat wrote:
(BHi Folks,
(B   
(BI have been into the development of a mpeg download site for quite
(B 
(B  sometime.
(B 
(Bi have a unique demand from the client.
(BHe wants to facilitate the user to download the a file from the site
(B 
(B  using
(B 
(Bright mouse button click and select the option, save target as from
(Bthe
(Bpopup menu.
(BI could do that very well.
(BAnd he also wants to do the user tracking such as,.
(B   
(B  a.. which user has downloaded how much MBs of file in a day,
(B  b.. which is the user now downloading a specific file, etc
(B   
(BI have successfully met all his demands with the fact that the
(Bfunctionalities were implemented with the normal click(left click)
(Bof
(B 
(B  the
(B 
(Bmouse button.This is because i could not find a way out to implement
(Bthe funcionality with the mouse right button click.
(B   
(BI have done all these tasks using JSP and Servlets.Will any one
(Bsuggest
(B 
(B  me
(B 
(Bas how to implement the user tracking while using the right click of
(Bthe mouse.
(B   
(BIt is very important that end user uses only right click to download
(Ba
(B 
(B  file
(B 
(Bfrom the site.
(Bso pl suggest me
(Bthanks in advance
(Bsat
(B  
(B   -
(B   To unsubscribe, e-mail: [EMAIL PROTECTED]
(B   For additional commands, e-mail: [EMAIL PROTECTED]
(B 
(B  -
(B  To unsubscribe, e-mail: [EMAIL PROTECTED]
(B  For additional commands, e-mail: [EMAIL PROTECTED]
(B
(B -- 
(B Thanks,
(B Alex.
(B
(B -
(B To unsubscribe, e-mail: [EMAIL PROTECTED]
(B For additional commands, e-mail: [EMAIL PROTECTED]
(B
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]

Re: how to find servlet home-dir from java?

2003-10-23 Thread Tim Funk
Use ServletContext.getResourceAsStream()

-Tim

gabor wrote:

hi,

i have to access some resource files from my servlet.
the problem is that i don't know the path to the files.
for example:
i know that the files in in servlet-directory/resources/table.xml,
but i don't know where is servlet-directory.
for now i solved this with adding a parameter to web.xml,
like:
init-param
  param-nameSERVLET_HOME/param-name
param-value
/home/gabor/work/tomcat/webapps/myServlet
/param-value
/init-param
but i think this is quite ugly. what if i move the servlet to a
different place.?
the best would be something in the java-servlet api, which somehow could
give me the dir, where the servlet lives. but i couldn't find anything
like that.
how do you solve this problem?

thanks,
gabor


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


Re: How to get Tomcat to log timestamp

2003-10-23 Thread Tim Funk
AFAIK, the ability is not there. But if you use swallowOutput,  then 
System.out is sent to a Logger which can have timestamping.

-Tim

Søren Neigaard wrote:

Ho do I get tomcat to log a timestamp in catalina.out, just like in Apache's
access.log?
Is it even possible to get Tomcat to log a timestamp before any
System.out.println?


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


SESSIONS.ser

2003-10-23 Thread Matt Raible
I am running Tomcat 4.1.27 on OS X.  I haven't had SESSIONS.ser show up 
in a while on my Windows and Linux boxes and (to my knowledge), I've 
set them up the same ways as I have on Windows.  So my question is - 
how do I turn off this session persistence on OS X.  Do I have to add 
custom stuff in server.xml?  You'd think session persistence would be 
off by default and you'd need to turn it on??

Thanks,

Matt

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


Re: Tomcat mysteriously stops responding...

2003-10-23 Thread Noam Camiel
If you are using Red-Hat 9, you may have run into the problem I had.
Check the thread Re: tomcat jitters, then hangs - please help

Noam

- Original Message - 
From: Sonny Sukumar [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 1:25 AM
Subject: Tomcat mysteriously stops responding...


 
 Hey guys,
 
 I've had the persistent problem with Tomcat (using
 Cocoon) over some months now where when I go to bed at
 night my Tomcat/Cocoon server is functioning just fine
 and I can access all web pages, both static and
 dynamically generated (from a backend db).
 
 But when I wake up and try to access the pages the
 connection just times out and I get a totally blank
 response.  This doesn't happen every single day, but
 often enough to be annoying.  We're soon going live
 with the site, so this happening **at all** is a scary
 thought.  I can't seem to figure out what the problem
 could be.  
 
 I'm fairly sure it's Tomcat because restarting Tomcat
 almost always solves the problem.  I've had this
 problem through all my Tomcat upgrades (4.1.12 all the
 way to 4.1.27 now) and my Cocoon upgrades (from 2.0.x
 all the way until latest 2.1.2).
 
 Has anybody else experienced this?  Any idea what it
 could be?
 
 Thanks!
 
 Sonny 
 
 __
 Do you Yahoo!?
 The New Yahoo! Shopping - with improved product search
 http://shopping.yahoo.com
 
 -
 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]



TC 3.3.1: How to disable static access to *certain* directories?

2003-10-23 Thread Lemke, Michael IZ/HZA-IE5
I want to serve a few static pages with standalone tomcat 3.3.1 (no apache etc).
I got that to work (StaticInterceptor listings=false /).  However, 
it is still possible to access pages in other contexts if I know the path:

http://host.dom:4711/otherapplication/someknownpath/file.html

But if I try

http://host.dom:4711/otherapplication/WEB-INF/web.xml

I get a 403 Forbidden.  How can I make tomcat to return 403 (or 404) for
the first path as well?  I just couldn't find anything in the docs
or google.

Thanks,
Michael

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



Tomcat under Java 1.1 ?

2003-10-23 Thread Ralf Bierig
Can I run Tomcat under Java SDK 1.1.8 ? If yes, which version is the best (=
latest) version I can use?

-- 
NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien...
Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService

Jetzt kostenlos anmelden unter http://www.gmx.net

+++ GMX - die erste Adresse für Mail, Message, More! +++


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



Logging of individual file access - How?

2003-10-23 Thread Ralf Bierig
I would like to log every file access (defined by its URL) in Tomcat? Is
there a standard way of doing that? I would like to have a log file which has
one entry for each file access with timestamp and IP-address...

-- 
NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien...
Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService

Jetzt kostenlos anmelden unter http://www.gmx.net

+++ GMX - die erste Adresse für Mail, Message, More! +++


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



Allow only one IP address to access

2003-10-23 Thread ambiesense
Hi, 

how can I restrict access to a certain URL (or URL pattern i.e. /my/admin/*)
to only one given IP address. I want that only one IP address (defined by
me) can access a certain part of my page. No user logging should appear for
that.

Also, how can the IP address be identified within the JSP page? How in a
Servlet?

Cheers,
Ralf

-- 
NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien...
Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService

Jetzt kostenlos anmelden unter http://www.gmx.net

+++ GMX - die erste Adresse für Mail, Message, More! +++


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



RE: Logging of individual file access - How?

2003-10-23 Thread Lemke, Michael IZ/HZA-IE5
I can speak only of Tomcat 3.3.1.  There you put AccessLogInterceptor /
in server.xml and you'll get Apache combined logs.  Check the docs for
the other parameters.  One caveat: you don't get logs if the request
doesn't result in output, e.g., certain POST request.  It is fixed in
the dev version 3.3.2.

Michael

 -Original Message-
 From: Ralf Bierig [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, October 23, 2003 2:12 PM
 To: [EMAIL PROTECTED]
 Subject: Logging of individual file access - How?
 
 
 I would like to log every file access (defined by its URL) in 
 Tomcat? Is
 there a standard way of doing that? I would like to have a 
 log file which has
 one entry for each file access with timestamp and IP-address...
 
 -- 
 NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien...
 Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService
 
 Jetzt kostenlos anmelden unter http://www.gmx.net
 
 +++ GMX - die erste Adresse für Mail, Message, 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: Logging of individual file access - How?

2003-10-23 Thread Tim Funk
See AccessLogValve. There should be an example in server.xml

-Tim

Ralf Bierig wrote:

I would like to log every file access (defined by its URL) in Tomcat? Is
there a standard way of doing that? I would like to have a log file which has
one entry for each file access with timestamp and IP-address...


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


Re: Allow only one IP address to access

2003-10-23 Thread Tim Funk
http://jakarta.apache.org/tomcat/faq/security.html#restrict

-Tim

[EMAIL PROTECTED] wrote:

Hi, 

how can I restrict access to a certain URL (or URL pattern i.e. /my/admin/*)
to only one given IP address. I want that only one IP address (defined by
me) can access a certain part of my page. No user logging should appear for
that.
Also, how can the IP address be identified within the JSP page? How in a
Servlet?
Cheers,
Ralf


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


RE: Logging of individual file access - How?

2003-10-23 Thread Ralph Einfeldt
That's pretty much the default behaviour.

server.xml:

Valve 
className=org.apache.catalina.valves.AccessLogValve
directory=logs  
prefix=access. suffix=.log
pattern=common/

 -Original Message-
 From: Ralf Bierig [mailto:[EMAIL PROTECTED]
 Sent: Thursday, October 23, 2003 2:12 PM
 To: [EMAIL PROTECTED]
 Subject: Logging of individual file access - How?
 
 
 I would like to log every file access (defined by its URL) in 
 Tomcat? Is there a standard way of doing that? 
 I would like to have a log file which has
 one entry for each file access with timestamp and IP-address...
 

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



RE: [OT] log4j to file or db -- which will be faster

2003-10-23 Thread Shapira, Yoav

Howdy,
System.currentTimeMillis() is good enough for the time of performance
assessment you're doing.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Prabhat Kumar (IT) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 22, 2003 4:19 PM
To: Tomcat Users List
Subject: RE: [OT] log4j to file or db -- which will be faster

thanks,

would simple time calculations using Sytem.currentTimeMills() be a
reliable
way to calculate durations?

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 22, 2003 4:23 PM
To: Tomcat Users List
Subject: RE: [OT] log4j to file or db -- which will be faster



Howdy,
I'd prefer the file usually, to avoid any transactional and
translational overhead associated with SQL calls.  Of course, the best
thing to do is for you to try it out and convince yourself.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Prabhat Kumar (IT) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 22, 2003 4:09 PM
To: [EMAIL PROTECTED]
Subject: [OT] log4j to file or db -- which will be faster


I know that this is too generic a question, but we have a requirement
to
log informational messages in our application about why certain
actions
were performed or not. We are considering using either a FileAppender
or a
JDBCAppender. Which one do you think will be a faster operation under
load?
I guess one way to find out would be to actually try it out, but was
wondering if you guys had thoughts about it.

Thanks,

Prabhat.



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]



Re: Tomcat under Java 1.1 ?

2003-10-23 Thread Mark Lowe
Last time I ran tomcat on jdk1.1 was 3.2.1 .. So I guess 3.3 should 
work.

Was in the old macos days.

Cheers Mark

On Thursday, October 23, 2003, at 01:08 PM, Ralf Bierig wrote:

Can I run Tomcat under Java SDK 1.1.8 ? If yes, which version is the 
best (=
latest) version I can use?

--
NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien...
Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService
Jetzt kostenlos anmelden unter http://www.gmx.net

+++ GMX - die erste Adresse für Mail, Message, 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: Mozilla, SSL certificates, and Tomcat 5

2003-10-23 Thread Jeff Jackson
What version of Mozilla are you running, and on what system?  Turns out 
that Mozilla 1.2.1 on my Linux box is able to use SSL.  It also does 
form-based authentication without any trouble.

Jeff

Adam Hardy wrote:
Jeff,
I get strange behaviour with Moz  tomcat5 SSL but not what you're 
describing. To do with the form-based authentication.

Adam

On 10/22/2003 05:58 PM Jeff Jackson wrote:

I'm using Sun's j2sdk1.4.2.  Are you saying that using IBM's JVM would 
make a difference?

I've read the howto.  Again, I have SSL working with IE6.  Mozilla 1.4 
on the same machine gets a server certificate, but then fails to get 
any data.  Seems like a handshake problem to me.

Bill Barker wrote:

Are you using IBM's JVM?  If so, please see the latest SSL-howto
documentation for how to get SSL working.
Jeff Jackson [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Short version: I can access Tomcat via SSL from IE6, but not from 
Mozilla
1.4/Netscape 7.1.  Is this a known problem, and if so, what's the
work-around?

Long version:

I've installed Sun's Java Web Services Developer Pack 1.3 version of
Tomcat 5 under Linux.  I also created a self-signed certificate 
using the
Java keytool, accepting the default keystore location and using the
default changeit password.  When I enable SSL (either by removing
comment delimiters from the SSL Connector in the out-of-the-box
server.xml, or by running the web-based admin tool) and restart Tomcat,
there are no error messages in any log files.  And I can access the SSL
port with an https URL using IE6 from a Windows client.

But Mozilla 1.4 and Netscape 7.1 (on the same Windows client I used for
IE) both give a The document contains no data. alert when I try to
access the same URL, after a several second delay and a number of
Connecting/Connected status messages.  These browsers have had no
trouble accessing other https URL's, so I'm assuming that it's a Tomcat
issue.
I have tried changing the server.xml Host name from localhost to my 
actual
host name and changing the Factory protocol from TLS to SSL (based on
something I saw in another SSL question).  This had no apparent effect.

I also tried using a trial Verisign-signed certificate, with the same
results: IE6 can access the site, Mozilla cannot.
What am I missing?







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


RE: does tomcat work without apache? ... a real beginner asks some basic!?

2003-10-23 Thread Shapira, Yoav

Howdy,
Your context is all default settings: you can take the whole Context
declaration out of server.xml and let tomcat auto-deploy your war file.

The problem with your HTML links, like the one for your stylesheet, is
that they're absolute: /myFile.css is from the server root.  There's
nothing at the server root.  Change the links to have the webapp name in
the beginning, e.g. /sygenews/myFile.css.  You can confirm for yourself
these links work by entering them into your browser:
http://yourserver:yourport/myFile.css will not work (404 error)
http://yourserver:yourport/sygenews/myFile.css will work.

These are fairly basic concepts: you might want to go through a couple
of HTML/servlet tutorials.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 22, 2003 4:33 PM
To: Tomcat Users List
Subject: Re: does tomcat work without apache? ... a real beginner asks
some
basic!?

hello shapira - and greetings and thank to ann -,

thank you for your time spent on my problem.

here are more details:

1. the long line in server.xml, where i declared the context for
sygenews:
Context className=org.apache.catalina.core.StandardContext
cachingAllowed=true
charsetMapperClass=org.apache.catalina.util.CharsetMapper
cookies=true
crossContext=true debug=0
docBase=C:\Programme\Apache Group\Tomcat 4.1\webapps\sygenews
mapperClass=org.apache.catalina.core.StandardContextMapper
path=/sygenews privileged=false reloadable=true
swallowOutput=false
useNaming=true
wrapperClass=org.apache.catalina.core.StandardWrapper
/Context
the directory-name is sygenews, the war-file-name is sygenews.war, and
i
want it to place beneath webapps-dir in tomcat.

as i told you: with localhost:8080/sygenews the index.jsp was found,
but: my /formates.css - link didn't work - wrong font appeared.
why could this be?

and the next problem (as you thought): the link
/servlet/sygenews.index (/WEB-INF/classes/sygenews/index.class) was
not found - it showed: localhost:8080/servlet/sygenews.index not
available.

in netbeans i have a project: sygenews, there are the files in normal
order: /*.jsp, /WEB-INF/classes/*.java, *.class. i right-clicked on
document-root and chose: make war-file (or similar); the war-file was
made.
in tomcat i installed it in the manager-mask (upload a war-file to
install - out of my project-dir).
it installed ok, i clicked the new link and there it was... (as i
described above).

in netbeans it worked - i copied already the server.xml-file from
netbeans to tomcat, but the result was the same.

now to the path-question:
i coded every link as / i want to be sure, that the searching
should begin on top to find everything (out of sub-dirs). is this so
wrong? isn't it un-sure where i will go, if i write ../...?
and - sorry for repeating - in nb it works.

must i declare a special connector?
what is the right mapping of servlets in my web.xml? is this one ok:
...
servlet-classsygenews.news/servlet-class
...
url-pattern/servlet/sygenews.news/url-pattern

so did i in my project-web.xml (but somehow blind, by hand...).

bye
hans

Shapira, Yoav schrieb:

Howdy,



i downloaded the lastes tomcat-version (for windows xp!), installed
it
right as the installer did. called once localhost and i got the
greeting-screen from tomcat (meant: installation was ok!).



Good.



but then the problems began. how to get my  site into tomcat. all the
ways i tried failed. there was always the same problem: the
/mywar/index.jsp was found, but the other files weren't: instead of
/mywar/anydir/anyjsp.jsp it looked for in /anyjst.jsp!! so
with
the servlets: i coded /mywar/servlet/anyservlet and it looked
for
/servlet/anyservlet.



If you have a war file, simply copy it into tomcat's webapps
directory.
Links in your servlets, JSPs, HTML pages should be appropriately
relative. Give us an example of a link that doesn't work: I bet it's a
link to /servlet/myservlet as opposed to /mywar/servlet/myservlet or
better yet ../servlet/myservlet.

You should map all your servlets in web.xml.



questions: can i use tomcat just right out of the box or is this a


fas


too privimitive way to use this heavy program?



Yes, you can use it right out of the box: it's designed for that.



must i install apache as well or is tomcat sufficient?



You don't need Apache at this point: tomcat by itself is fine.



where should i look for a solution for my (for me: heavy) problem??



This is the place.

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.

Tomcat-4.1.27 Apache-1.3.28 JK2.0.2 JDK-1.4.2_1 Win2K

2003-10-23 Thread Yaser Al Masri
Hi,

I'm desperately trying to get those combo together, googling the net, 
reading all kind of posts, and trying many configurations, but no use. 
Here's what I've done exactly:

1. Installed all of them, brought them to work as stand alone, and sat 
JAVA_HOME environment variable.

2. I got both binary and source versions of the jk2 connector, took the file 
mod_jk2-1.3.27.dll and placed it in E:\Apache\module, and the suitable 
mod_jk2.c file from the src folder of the connector and placed it in the 
same 'modules' folder.

3. I updated my httpd.conf to include the following:

AddModule mod_jk2.c
LoadModule jk2_module modules/mod_jk2-1.3.27.dll
4. Took workers2.properties file from the connector src folder and placed it 
in the E:\Apache\conf directory. Here is how the related part of that file 
looks:

[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess 
servers
file=E:\Apache\logs\jk2.shm
size=1048576
debug=0
disabled=0

[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=0
tomcatId=localhost:8009
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
[status:]
info=Status worker, displays runtime informations
[vm:]
info=Parameters used to load a JVM in the server process
#JVM=C:\jdk\jre\bin\hotspot\jvm.dll
classpath=${TOMCAT_HOME}/bin/tomcat-jni.jar
classpath=${TOMCAT_HOME}/server/lib/commons-logging.jar
OPT=-Dtomcat.home=${TOMCAT_HOME}
OPT=-Dcatalina.home=${TOMCAT_HOME}
OPT=-Xmx128M
#OPT=-Djava.compiler=NONE
disabled=1
[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:
[uri:/examples]
info=Example webapp in the default context.
context=/examples
debug=10
[uri:/examples/servlet/*]
info=Prefix mapping
[uri:/examples/*.jsp]
info=Extension mapping
[uri:/examples/*]
info=Map the whole webapp
5. Then I took the file jk2.properties from the connector src folder and 
copy-pasted it in E:\Tomcat-4.1.27\conf directory, and it reads:

handler.list=request,container,channelSocket
channelSocket.port=8009
channelSocket.address=127.0.0.1
channelSocket.maxPort=port+10
shm.file=E:\Apache\logs\jk2.shm
6. I left server.xml untouched, saved all files, and started Tomcat, then 
Apache. Tomcat started OK with no errors in the log files, and when started 
Apache nothing went wrong except this error in the jk2.log file (sorry for 
the long dump):

( info) [jk_logger_file.c (184)]: Initializing log file 
E:\Apache\logs\jk2.log
( info) [jk_logger_file.c (184)]: Initializing log file 
e:/apache/logs/jk2.log
(error) [jk_shm.c (358)]: shm.create(): error mmapping 
E:\Apache\logs\jk2.shm
( info) [jk_logger_file.c (184)]: Initializing log file 
e:/apache/logs/jk2.log
(error) [jk_shm.c (358)]: shm.create(): error mmapping 
E:\Apache\logs\jk2.shm
(debug) [jk_uriMap.c (377)]: uriMap.init() Fixing Host *
(debug) [jk_uriMap.c (464)]: uriMap: fix uri (null) context (null) host *
(debug) [jk_uriMap.c (464)]: uriMap: fix uri /jkstatus/* context (null) host 
*
(debug) [jk_uriMap.c (464)]: uriMap: fix uri /examples context /examples 
host *
(debug) [jk_uriMap.c (464)]: uriMap: fix uri /examples1/* context (null) 
host *
(debug) [jk_uriMap.c (464)]: uriMap: fix uri /examples/servlet/* context 
(null) host *
(debug) [jk_uriMap.c (464)]: uriMap: fix uri /examples/*.jsp context (null) 
host *
(debug) [jk_uriMap.c (464)]: uriMap: fix uri /examples/* context (null) host 
*
(debug) [jk_uriMap.c (464)]: uriMap: fix uri /examples/servlet/HelloW 
context (null) host *
(debug) [jk_uriMap.c (464)]: uriMap: fix uri (null) context (null) host *
(debug) [jk_uriMap.c (464)]: uriMap: fix uri / context / host *
(debug) [jk_uriEnv.c (284)]: uriEnv.init() map /examples lb:lb
(debug) [jk_uriEnv.c (347)]: uriEnv.init() context mapping /examples=lb:lb
(debug) [jk_uriEnv.c (284)]: uriEnv.init() map /examples/servlet/HelloW 
lb:lb
(debug) [jk_uriEnv.c (356)]: uriEnv.init() exact mapping 
/examples/servlet/HelloW=lb:lb
( info) [jk_workerEnv.c (403)]: workerEnv.init() ok 
E:\Apache\conf\workers2.properties
( info) [jk_logger_file.c (184)]: Initializing log file 
E:\Apache\logs\jk2.log
( info) [jk_logger_file.c (184)]: Initializing log file 
e:/apache/logs/jk2.log
(error) [jk_shm.c (358)]: shm.create(): error mmapping 
E:\Apache\logs\jk2.shm
( info) [jk_logger_file.c (184)]: Initializing log file 
e:/apache/logs/jk2.log
(error) [jk_shm.c (358)]: shm.create(): error mmapping 
E:\Apache\logs\jk2.shm
(debug) [jk_uriMap.c (377)]: uriMap.init() Fixing Host *
(debug) [jk_uriMap.c (464)]: uriMap: fix uri (null) context (null) host *
(debug) [jk_uriMap.c (464)]: uriMap: fix uri /jkstatus/* context (null) host 
*
(debug) [jk_uriMap.c (464)]: uriMap: fix uri /examples context /examples 
host *
(debug) [jk_uriMap.c (464)]: uriMap: fix uri /examples1/* context (null) 
host *
(debug) [jk_uriMap.c (464)]: uriMap: fix uri /examples/servlet/* context 
(null) host *
(debug) [jk_uriMap.c (464)]: uriMap: fix uri /examples/*.jsp context (null) 
host *
(debug) [jk_uriMap.c 

web.xml editor

2003-10-23 Thread Luiz Ricardo
Hi everyone,

I would like to know if someone here uses some free application to
edit web.xml files, likely this application was web-based.

I also would like to know if Tomcat Team intends to do something like
this.

Thanks in advance,

Luiz Ricardo


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



Re: Tomcat under Java 1.1 ?

2003-10-23 Thread Ralf Bierig
Thank you for the info. 

Is there is list or something from which I can get definite info? I
generally miss this for many Open Source projects...

 Last time I ran tomcat on jdk1.1 was 3.2.1 .. So I guess 3.3 should 
 work.
 
 Was in the old macos days.
 
 Cheers Mark
 
 On Thursday, October 23, 2003, at 01:08 PM, Ralf Bierig wrote:
 
  Can I run Tomcat under Java SDK 1.1.8 ? If yes, which version is the 
 
  best (=
  latest) version I can use?
 
  -- 
  NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien...
  Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService
 
  Jetzt kostenlos anmelden unter http://www.gmx.net
 
  +++ GMX - die erste Adresse für Mail, Message, 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]
 

-- 
NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien...
Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService

Jetzt kostenlos anmelden unter http://www.gmx.net

+++ GMX - die erste Adresse für Mail, Message, More! +++


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



RE: How to get Tomcat to log timestamp

2003-10-23 Thread Shapira, Yoav

Howdy,
You mean like
SimpleDateFormat sdf = new SimpleDateFormat(-MM-DD);
Date now = new Date();
String timestamp = sdf.format(now);
System.out.println(timestamp + : my message);

That will do the trick.

But what are you doing writing to catalina.out? ;)  Use a proper logging system, like 
log4j or the servlet context log provided by tomcat.  Both of those will 
auto-timestamp for you if requested, with much lower overhead than the above.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Søren Neigaard [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 6:22 AM
To: '[EMAIL PROTECTED]'
Subject: How to get Tomcat to log timestamp

Ho do I get tomcat to log a timestamp in catalina.out, just like in
Apache's
access.log?

Is it even possible to get Tomcat to log a timestamp before any
System.out.println?

Med venlig hilsen/Best regards
Søren Neigaard
System Architect

Mobilethink A/S
Arosgaarden
Åboulevarden 23, 4.sal
DK - 8000 Århus C
Telefon: +45 86207800
Direct: +45 86207810
Fax: +45 86207801
Email: [EMAIL PROTECTED]
Web: www.mobilethink.dk


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




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


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



RE: Tomcat under Java 1.1 ?

2003-10-23 Thread Ralph Einfeldt
Have a look at
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/faq


 -Original Message-
 From: Ralf Bierig [mailto:[EMAIL PROTECTED]
 Sent: Thursday, October 23, 2003 2:30 PM
 To: Tomcat Users List
 Subject: Re: Tomcat under Java 1.1 ?
 
 
 Is there is list or something from which I can get definite info? I
 generally miss this for many Open Source projects...
 

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



portal and portlets

2003-10-23 Thread Dan McCullough
I'm about to start a project for my company that would take Tomcat/Struts and Cold 
Fusion to build
a portal for the company's intranet.  The portal apps that they have looked at where 
Jahia,
Jetspeed and another open source portal.  The thought is to get these portals and then 
build the
custom portlets in Cold Fusion.  My questions are:

Anyone doing this?
Anyone recommend this?
Anyone have other good portal solutions?

Anything i didnt cover?

dan

=

Theres no such thing as a problem unless the servers are on fire!


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



RE: Issues | Suggestion any?

2003-10-23 Thread Shapira, Yoav

Howdy,

The (4) production servers are running Solaris OS with 4CPU, 4GB RAM
and
7GB of swap space. In all we have 12 tomcats and 4 Apaches.

Each machine is equipped with one apache and 3 tomcats.

The Database machines is also running Solaris with 16CPU's, 20 GB RAM
and 20GB swap space.

We have apache (1.3.27) and tomcat(3.3) in our production servers with
JVM (1.4.2 recently upgraded). The frequent problems we face are:

I was surprised to see tomcat 3.x and apache 1.x with such massive
hardware and elaborate setup.  Any particular reason why you don't have
more recent versions of tomcat and apache httpd?

- High GC (increased pause time when the NewSize=128m -ms=256m -mx=778m
and using the default LWP synchronization scheme with GC parameters
PrintGCDetails and Time Stamps to analyse in GCportal)(these setting
are
for individual tomcats)

You're doing -Xmx, -Xms, -XX:NewSize, right?  Not exactly as you typed
above.  You should keep tuning to reduce your GC pause: the train
(-Xincgc) or parallel collectors would probably be good for you.

- The Process running the JVM reached 1GB of size in the 'TOP' list
recently, which at this point had to be killed on one of the tomcats.

If -Xmx=778m, that's the max heap.  778m is a strange number BTW: how
did you arrive at that?  Anyways, the output from top represents the
whole JVM, i.e. heap + stack + symbols + OS overhead, so it's always
more than the heap itself.  However, a nearly 25% overhead
(778mb-1024mb) is pretty wild.  The difference between -Xmx and top
when the heap is maxed out on Solaris is usually closer to 12-15%.

and sometime with high GC and CPU usage. The 3rd production machine
causes high number of thread due to High GC most of the times and on

You have your causality mixed up here.  High GC does not cause a high
number of threads.

Once the database connections are high with an increased number of
threads, they are unable to come back to the normal condition and we
have to kill this tomcat as after some time when the load increases,

Why are they unable to come back?  Are they not released back into the
pool?  Do they go bad but not abandoned by the pool?

One last thing, there are some occasional tomcat death (JVM crashes)
once in a while.

What are the crash messages?  If they're internal JVM crashes (producing
hs_err_[pid] files), make sure you have the latest Solaris patches
required for your JDK.  There are a bunch of them required for JDK
1.4.x.

Yoav Shapira



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


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



RE: jserv Vs Tomcat

2003-10-23 Thread Shapira, Yoav

Howdy,
You must use GNU tar to expand the tomcat tarball.  Or you could just
download the zip archive of tomcat.

There are far too many variables that could cause the number of threads
in the JVM to exceed security.maxConnections.  As JServ is dead, I don't
care to investigate this further, but maybe others will ;)  Move to
tomcat.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Mrs. Geeta Thanu [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 6:19 PM
To: [EMAIL PROTECTED]
Subject: jserv Vs Tomcat

Hello all,

I am new to this list. I was using jserv with apache to see the servlet
pages.
It is running on solaris 8 and the problem I am facing with Apache
Jserv
is , I have set the security.maxConnections=50 (default) but still I
feel
the TOP command shows so many threads and if it is above 100 , the
whole
jserv hangs and unable to process any request.
Can anybody from this list suggest me what i can do to solve this
problem
with jserv.
If installing tomcat is the only solution how to down load it , becos
when i tried downloading it from jakarta site and when I untar it
it is always showing directory check sum error.

Pls guide me

Thanks in advance
Geetha



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




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


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



RE: Tomcat under Java 1.1 ?

2003-10-23 Thread Ralf Bierig
Thanks a lot! :-)

 Have a look at
 http://jakarta.apache.org/tomcat/tomcat-3.3-doc/faq
 
 
  -Original Message-
  From: Ralf Bierig [mailto:[EMAIL PROTECTED]
  Sent: Thursday, October 23, 2003 2:30 PM
  To: Tomcat Users List
  Subject: Re: Tomcat under Java 1.1 ?
  
  
  Is there is list or something from which I can get definite info? I
  generally miss this for many Open Source projects...
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-- 
NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien...
Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService

Jetzt kostenlos anmelden unter http://www.gmx.net

+++ GMX - die erste Adresse für Mail, Message, More! +++


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



Re: Mozilla, SSL certificates, and Tomcat 5

2003-10-23 Thread Adam Hardy


I upgraded to the nightly build, which is past 1.5 now. I was debugging 
the HTTP logging for the bugzilla bug I raised.

On 10/23/2003 02:26 PM Jeff Jackson wrote:
What version of Mozilla are you running, and on what system?  Turns out 
that Mozilla 1.2.1 on my Linux box is able to use SSL.  It also does 
form-based authentication without any trouble.

Jeff

Adam Hardy wrote:

Jeff,
I get strange behaviour with Moz  tomcat5 SSL but not what you're 
describing. To do with the form-based authentication.

Adam

On 10/22/2003 05:58 PM Jeff Jackson wrote:

I'm using Sun's j2sdk1.4.2.  Are you saying that using IBM's JVM 
would make a difference?

I've read the howto.  Again, I have SSL working with IE6.  Mozilla 
1.4 on the same machine gets a server certificate, but then fails to 
get any data.  Seems like a handshake problem to me.

Bill Barker wrote:

Are you using IBM's JVM?  If so, please see the latest SSL-howto
documentation for how to get SSL working.
Jeff Jackson [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Short version: I can access Tomcat via SSL from IE6, but not from 
Mozilla
1.4/Netscape 7.1.  Is this a known problem, and if so, what's the
work-around?

Long version:

I've installed Sun's Java Web Services Developer Pack 1.3 version of
Tomcat 5 under Linux.  I also created a self-signed certificate 
using the
Java keytool, accepting the default keystore location and using the
default changeit password.  When I enable SSL (either by removing
comment delimiters from the SSL Connector in the out-of-the-box
server.xml, or by running the web-based admin tool) and restart 
Tomcat,
there are no error messages in any log files.  And I can access the 
SSL
port with an https URL using IE6 from a Windows client.

But Mozilla 1.4 and Netscape 7.1 (on the same Windows client I used 
for
IE) both give a The document contains no data. alert when I try to
access the same URL, after a several second delay and a number of
Connecting/Connected status messages.  These browsers have had no
trouble accessing other https URL's, so I'm assuming that it's a 
Tomcat
issue.

I have tried changing the server.xml Host name from localhost to my 
actual
host name and changing the Factory protocol from TLS to SSL (based on
something I saw in another SSL question).  This had no apparent 
effect.

I also tried using a trial Verisign-signed certificate, with the same
results: IE6 can access the site, Mozilla cannot.
What am I missing?


--
struts 1.1 + tomcat 5.0.12 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: web.xml editor

2003-10-23 Thread Tim Funk
vi (I'm old school, and vi is not web based)

-Tim

Luiz Ricardo wrote:

Hi everyone,

I would like to know if someone here uses some free application to
edit web.xml files, likely this application was web-based.
I also would like to know if Tomcat Team intends to do something like
this.


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


RE: portal and portlets

2003-10-23 Thread Shapira, Yoav

Howdy,

I'm about to start a project for my company that would take
Tomcat/Struts
and Cold Fusion to build

Interesting: we were just talking the other day how ColdFusion is dead
(not my phrasing), but a couple of people said it had a lot more Java
power now.  I'm assisting someone in converting a ColdFusion webapp to a
pure Java one for portability reasons.

a portal for the company's intranet.  The portal apps that they have
looked
at where Jahia,
Jetspeed and another open source portal.  The thought is to get these
portals and then build the
custom portlets in Cold Fusion.  My questions are:

JetSpeed is cool.  Jahia I haven't used yet.

Now that the JSR Portlet Specification
(http://www.jcp.org/aboutJava/communityprocess/review/jsr168/) is final,
I would write the custom portlets in java to be compatible with this
specification.  That way you maintain the java portability, ability to
move between containers.  You know the big players (Websphere, Weblogic,
Oracle) are all going to support this spec very quickly.

What would the counter argument be?  ColdFusion has more tags built in
and is therefore more productive?  That could be true.  So if you're in
a crunch, that may be a good choice.

Yoav Shapira



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


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



RE: Tomcat under Java 1.1 ?

2003-10-23 Thread Shapira, Yoav

Howdy,
Out of curiosity, what's your reason for not using a later JDK?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Ralf Bierig [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 8:09 AM
To: [EMAIL PROTECTED]
Subject: Tomcat under Java 1.1 ?

Can I run Tomcat under Java SDK 1.1.8 ? If yes, which version is the best
(=
latest) version I can use?

--
NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien...
Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService

Jetzt kostenlos anmelden unter http://www.gmx.net

+++ GMX - die erste Adresse für Mail, Message, More! +++


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




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


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



RE: web.xml editor

2003-10-23 Thread Shapira, Yoav

Howdy,
Oh you beat me to it -- emacs ;)

(From another old-schooler)

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 8:46 AM
To: Tomcat Users List
Subject: Re: web.xml editor

vi (I'm old school, and vi is not web based)

-Tim

Luiz Ricardo wrote:

 Hi everyone,

 I would like to know if someone here uses some free application to
 edit web.xml files, likely this application was web-based.

 I also would like to know if Tomcat Team intends to do something like
 this.



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




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


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



RE: Tomcat mysteriously stops responding...

2003-10-23 Thread Robyne Vaughn
I've had a similar problem and can't figure it out.  I suspect I have a
servlet which isn't closing connections correctly or isn't shutting down
properly and ties up resources.  I havn't found it yet, but someone
suggested poor programming practices from us newbies/unknowledgeables
could be the problem.  

Good luck and I hope you find it.
robyne

-Original Message-
From: Sonny Sukumar [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 22, 2003 5:25 PM
To: [EMAIL PROTECTED]
Subject: Tomcat mysteriously stops responding...



Hey guys,

I've had the persistent problem with Tomcat (using
Cocoon) over some months now where when I go to bed at
night my Tomcat/Cocoon server is functioning just fine
and I can access all web pages, both static and
dynamically generated (from a backend db).

But when I wake up and try to access the pages the
connection just times out and I get a totally blank
response.  This doesn't happen every single day, but
often enough to be annoying.  We're soon going live
with the site, so this happening **at all** is a scary
thought.  I can't seem to figure out what the problem
could be.  

I'm fairly sure it's Tomcat because restarting Tomcat
almost always solves the problem.  I've had this
problem through all my Tomcat upgrades (4.1.12 all the
way to 4.1.27 now) and my Cocoon upgrades (from 2.0.x
all the way until latest 2.1.2).

Has anybody else experienced this?  Any idea what it
could be?

Thanks!

Sonny 

__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

-
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: IIS and Tomcat

2003-10-23 Thread Dionne, Patrice
Yes, you can.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/iishowto.html

-Original Message-
From: Matt Raible [mailto:[EMAIL PROTECTED]
Sent: 22 octobre, 2003 14:50
To: [EMAIL PROTECTED]
Subject: IIS and Tomcat


I've integrated Apache with Tomcat on numerous occasions, but never on 
IIS.  We have the following scenario:

1.  We want to have a domain name - i.e. www.myresort.com - that is 
serviced by IIS.
2. We want to map any requests to www.myresort.com to Tomcat's 
/myresort application.

Is this possible? I know it is with Apache, but I'm not sure about IIS. 
 From what I've seen from the documentation, IIS has to have some sort 
of indicator, i.e. /jk/*

Thanks,

Matt


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


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



Tomcat security

2003-10-23 Thread epyonne
Hello All,

My web application is currently in System Testing Phase.  I am planning for the 
production implementation and I like to get some expert opinion from you all.

We will install Tomcat 4.1.24 on a server which is behind our corporate firewall.  The 
port that Tomcat uses, e.g. port , will be open to public due to the fact that 
this application will be accessed from our offices all over the world thru the 
internet.

Now, my question is that, what is the common practice to guard against people 
accessing the catalina_home directory?  I plan to install Tomcat on the D drive 
instead of the C drive where the OS resides.  Just in case if the Windows OS is 
compromised, it may or may not affect Tomcat.

Since this is the first time I have application used by people outside our corporate 
firewall, I like to hear your thoughts.

Thank you very much.


Re: web.xml editor

2003-10-23 Thread epyonne
I use UltraEdit32, and it works fine for me.


- Original Message - 
From: Luiz Ricardo [EMAIL PROTECTED]
To: Tomcat-Users List [EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 07:29 AM
Subject: web.xml editor


 Hi everyone,
 
 I would like to know if someone here uses some free application to
 edit web.xml files, likely this application was web-based.
 
 I also would like to know if Tomcat Team intends to do something like
 this.
 
 Thanks in advance,
 
 Luiz Ricardo
 
 
 -
 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: TC 3.3.1: How to disable static access to *certain* directories?

2003-10-23 Thread Larry Isaacs

 -Original Message-
 From: Lemke, Michael IZ/HZA-IE5 [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, October 23, 2003 8:04 AM
 To: '[EMAIL PROTECTED]'
 Subject: TC 3.3.1: How to disable static access to *certain* 
 directories?
 
 
 I want to serve a few static pages with standalone tomcat 
 3.3.1 (no apache etc).
 I got that to work (StaticInterceptor listings=false /).  
 However, 
 it is still possible to access pages in other contexts if I 
 know the path:
 
 http://host.dom:4711/otherapplication/someknownpath/file.html

 But if I try

 http://host.dom:4711/otherapplication/WEB-INF/web.xml

 I get a 403 Forbidden.  How can I make tomcat to return 403 (or 404) for
 the first path as well?  I just couldn't find anything in the docs
 or google.

You could delete file.html.  That would result in a 404 error.  If this
isn't feasible, you need to explain why, so options as to how to hide it
can be determined.

Cheers,
Larry


 Thanks,
 Michael

-
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 mysteriously stops responding...

2003-10-23 Thread Laurent Michenaud
Same problem, maybe poor programming practices

-Message d'origine-
De : Robyne Vaughn [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 23 octobre 2003 14:56
À : Tomcat Users List; [EMAIL PROTECTED]
Objet : RE: Tomcat mysteriously stops responding...

I've had a similar problem and can't figure it out.  I suspect I have a
servlet which isn't closing connections correctly or isn't shutting down
properly and ties up resources.  I havn't found it yet, but someone
suggested poor programming practices from us newbies/unknowledgeables
could be the problem.  

Good luck and I hope you find it.
robyne

-Original Message-
From: Sonny Sukumar [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 22, 2003 5:25 PM
To: [EMAIL PROTECTED]
Subject: Tomcat mysteriously stops responding...



Hey guys,

I've had the persistent problem with Tomcat (using
Cocoon) over some months now where when I go to bed at
night my Tomcat/Cocoon server is functioning just fine
and I can access all web pages, both static and
dynamically generated (from a backend db).

But when I wake up and try to access the pages the
connection just times out and I get a totally blank
response.  This doesn't happen every single day, but
often enough to be annoying.  We're soon going live
with the site, so this happening **at all** is a scary
thought.  I can't seem to figure out what the problem
could be.  

I'm fairly sure it's Tomcat because restarting Tomcat
almost always solves the problem.  I've had this
problem through all my Tomcat upgrades (4.1.12 all the
way to 4.1.27 now) and my Cocoon upgrades (from 2.0.x
all the way until latest 2.1.2).

Has anybody else experienced this?  Any idea what it
could be?

Thanks!

Sonny 

__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

-
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: web.xml editor

2003-10-23 Thread Ralph Einfeldt

echo Oh you beat me to it -- emacs ;) | sed -e s/emacs/cat, sed/g

(Shiver...)


 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: Thursday, October 23, 2003 2:49 PM
 To: Tomcat Users List
 Subject: RE: web.xml editor
 
 Oh you beat me to it -- emacs ;)
 

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



RE: Tomcat security

2003-10-23 Thread Shapira, Yoav

Howdy,

We will install Tomcat 4.1.24 on a server which is behind our corporate

Why not 4.1.27?

Now, my question is that, what is the common practice to guard against
people accessing the catalina_home directory?  I plan to install Tomcat
on
the D drive instead of the C drive where the OS resides.  Just in case
if
the Windows OS is compromised, it may or may not affect Tomcat.

Use a security manager:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/security-manager-howto.h
tml

Make your security policy as restrictive as possible.  Deploy a packed
war and leave it packed, i.e. set unpackWARs=false in server.xml.  Also
autoDeploy=false to increase performance and security.

Yoav Shapira



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


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



Re: Defining filters in sub-directories

2003-10-23 Thread Ryan Parr
On Thu, 2003-10-23 at 04:42, Tim Funk wrote:
 You can match a prefix, or a file extension but not both. So you can do this:
 
 filter-mapping
filter-nameAdminSection/filter-name
url-pattern/admin/*/url-pattern
 /filter-mapping
 
 The Servlet spec has some examples of how URL matching will work.
 
 -Tim

Wow, that really was all there was to it. Thank you!

--
Ryan

 Ryan Parr wrote:
  As so many have said before, I'm new to Java and Tomcat. So please
  forgive any poor design you see in my code, but please let me know about
  it :)
  
  I've created a filter class that handles user authorization. Basically
  when a user hits a page the filter is defined for, it checks for a
  boolean value in the user's session that describes their access to a
  certain auth group.
  
  If the user is not authorized, they are forwarded to a login page
  defined as an init-param which handles their authentication for that
  group.
  
  This works flawlessly on pages in the root directory, and if I do:
  url-pattern/*.jsp/url-pattern
  it operates on every file throughout the hierarchy. This isn't what I
  wanted so I defined a url exclusion method, that accepts paths and
  regular expressions that the filter tests before processing auth.
  
  I setup a new filter for each group/directory. It only works on the
  root directory though, and using a url-pattern of /admin/*.jsp doesn't
  appear to trigger the filter. It's never run. This happens whether or
  not the filter on the root of the context exists.
  
  Thank you very much for any advice you can give!
 
 
 -
 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: TC 3.3.1: How to disable static access to *certain* directori es?

2003-10-23 Thread Lemke, Michael IZ/HZA-IE5
 -Original Message-
 From: Larry Isaacs [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, October 23, 2003 3:07 PM
 To: Tomcat Users List
 Subject: RE: TC 3.3.1: How to disable static access to 
 *certain* directories?
 
 
 
  -Original Message-
  From: Lemke, Michael IZ/HZA-IE5 [mailto:[EMAIL PROTECTED] 
  Sent: Thursday, October 23, 2003 8:04 AM
  To: '[EMAIL PROTECTED]'
  Subject: TC 3.3.1: How to disable static access to *certain* 
  directories?
  
  
  I want to serve a few static pages with standalone tomcat 
  3.3.1 (no apache etc).
  I got that to work (StaticInterceptor listings=false /).  
  However, 
  it is still possible to access pages in other contexts if I 
  know the path:
  
  http://host.dom:4711/otherapplication/someknownpath/file.html
 
  But if I try
 
  http://host.dom:4711/otherapplication/WEB-INF/web.xml
 
  I get a 403 Forbidden.  How can I make tomcat to return 403 
 (or 404) for
  the first path as well?  I just couldn't find anything in the docs
  or google.
 
 You could delete file.html.  That would result in a 404 
 error.  

Not good enough.  There's stuff I can't take out.

If this
 isn't feasible, you need to explain why, so options as to how 
 to hide it
 can be determined.

Well, I simply don't want to serve anything that I don't need.
For the main application I don't need any static pages so I can
do without StaticInterceptor (done that).  I don't want any files
to be available that might be placed there by mistake or otherwise.  
Only the few pages under the `static' path should be accessible.  
Simple security concerns - don't open more than what is necessary.

Michael

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



Apache cannot load jk2

2003-10-23 Thread Jean-Max Estay
Hello,

I use the ${Apache2} in this mail for the path of my apache install.

Using mod_jk2-1.3.27.dll to connect Apache2 (2.0.47 win 32) on Windows XP
Pro and Tomcat 4.1.27 on the same host,
The file mod_jk2-1.3.27.dll  is in ${Apache2}/modules
After creating the files stdout.log, stderr.log, jk2.shm,workers2.properties
Apache is running OK on port 80, Tomcat OK on 8080
When adding at the end of the Apache config file httpd.conf the lines
IfModule !mod_jk2.c
# LoadModule jk2_module modules/mod_jk2-1.3.27.dll
/IfModule
I have, when testing the apache config, the error message
JK2 : Cannot load ${Apache2}/modules/mod_jk2-1.3.27.dll into server: Le
module spécifié est introuvable.
(the required module was not found)

After reading many and many Howto, news and html pages, I don't find the
solution

Who can help me ?

Dr Jean-Max Estay
[EMAIL PROTECTED]
http://www.ima.uco.fr/personnes/estay
Institut de Mathématiques Appliquées
Université Catholique de l'Ouest
44,46 rue Rabelais
BP 808
49008 ANGERS Cedex 01
France
tel +33 2 41 81 67 05
fax +33 2 41 81 67 00



RE: Apache cannot load jk2

2003-10-23 Thread Julien Oix
hi,

try to rename the mod_jk2-x.dll into mod_jk2.dll ...

Julien OIX
Service Informatique de Gestion - Université de Nantes
Tel: 02 40 99 83 65 / abroad + (33) 240 99 83 65
Web: http://www.univ-nantes.fr
mailto:[EMAIL PROTECTED]

 -Message d'origine-
 De : Jean-Max Estay [mailto:[EMAIL PROTECTED]
 Envoyé : jeudi 23 octobre 2003 15:37
 À : [EMAIL PROTECTED]
 Objet : Apache cannot load jk2


 Hello,

 I use the ${Apache2} in this mail for the path of my apache install.

 Using mod_jk2-1.3.27.dll to connect Apache2 (2.0.47 win 32) on Windows XP
 Pro and Tomcat 4.1.27 on the same host,
 The file mod_jk2-1.3.27.dll  is in ${Apache2}/modules
 After creating the files stdout.log, stderr.log,
 jk2.shm,workers2.properties
 Apache is running OK on port 80, Tomcat OK on 8080
 When adding at the end of the Apache config file httpd.conf the lines
 IfModule !mod_jk2.c
 # LoadModule jk2_module modules/mod_jk2-1.3.27.dll
 /IfModule
 I have, when testing the apache config, the error message
 JK2 : Cannot load ${Apache2}/modules/mod_jk2-1.3.27.dll into server: Le
 module spécifié est introuvable.
 (the required module was not found)

 After reading many and many Howto, news and html pages, I don't find the
 solution

 Who can help me ?
 
 Dr Jean-Max Estay
 [EMAIL PROTECTED]
 http://www.ima.uco.fr/personnes/estay
 Institut de Mathématiques Appliquées
 Université Catholique de l'Ouest
 44,46 rue Rabelais
 BP 808
 49008 ANGERS Cedex 01
 France
 tel +33 2 41 81 67 05
 fax +33 2 41 81 67 00




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



Embedded.java in Tomcat 5 - No Main

2003-10-23 Thread Mark W. Webb
I am converting my program over from using Tomcat 4 to Tomcat 5.  I 
wanted to try out the Embedded.java in the Tomcat 5 source, but there is 
no main function.  I think this is a bug, since catalina.sh tries to 
call this class when trying to run in embedded mode.

Anyone familiar with the embedded tomcat code ?

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


RE: Apache cannot load jk2

2003-10-23 Thread Jean-Max Estay
Hi,

I have done before asking, I test one more after your proposal by copiing
the dll ... and have same result !


[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
http://www.ima.uco.fr/personnes/estay
Institut de Mathématiques Appliquées
Université Catholique de l'Ouest
44,46 rue Rabelais
BP 808
49008 ANGERS Cedex 01
France
tel +33 2 41 81 67 05
fax +33 2 41 81 67 00?xml:namespace prefix = o ns =
urn:schemas-microsoft-com:office:office /



-Message d'origine-
De : Julien Oix [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 23 octobre 2003 15:42
À : Tomcat Users List; [EMAIL PROTECTED]
Objet : RE: Apache cannot load jk2


hi,

try to rename the mod_jk2-x.dll into mod_jk2.dll ...

Julien OIX
Service Informatique de Gestion - Université de Nantes
Tel: 02 40 99 83 65 / abroad + (33) 240 99 83 65
Web: http://www.univ-nantes.fr
mailto:[EMAIL PROTECTED]

 -Message d'origine-
 De : Jean-Max Estay [mailto:[EMAIL PROTECTED]
 Envoyé : jeudi 23 octobre 2003 15:37
 À : [EMAIL PROTECTED]
 Objet : Apache cannot load jk2


 Hello,

 I use the ${Apache2} in this mail for the path of my apache install.

 Using mod_jk2-1.3.27.dll to connect Apache2 (2.0.47 win 32) on Windows XP
 Pro and Tomcat 4.1.27 on the same host,
 The file mod_jk2-1.3.27.dll  is in ${Apache2}/modules
 After creating the files stdout.log, stderr.log,
 jk2.shm,workers2.properties
 Apache is running OK on port 80, Tomcat OK on 8080
 When adding at the end of the Apache config file httpd.conf the lines
 IfModule !mod_jk2.c
 # LoadModule jk2_module modules/mod_jk2-1.3.27.dll
 /IfModule
 I have, when testing the apache config, the error message
 JK2 : Cannot load ${Apache2}/modules/mod_jk2-1.3.27.dll into server: Le
 module spécifié est introuvable.
 (the required module was not found)

 After reading many and many Howto, news and html pages, I don't find the
 solution

 Who can help me ?
 
 Dr Jean-Max Estay
 [EMAIL PROTECTED]
 http://www.ima.uco.fr/personnes/estay
 Institut de Mathématiques Appliquées
 Université Catholique de l'Ouest
 44,46 rue Rabelais
 BP 808
 49008 ANGERS Cedex 01
 France
 tel +33 2 41 81 67 05
 fax +33 2 41 81 67 00




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



Ant InstallTask Problem

2003-10-23 Thread Phuoc Diec
Hello all:

I'm not sure that I have post this question. If I did,
my apology. I just tried to compile and run the sample
app from Tomcat's Documentation. I got error message
as I ran ant install. Here is the error message:

ant install
Buildfile: build.xml

prepare:

compile:

install:
   [deploy] FAIL - Encountered exception
java.util.zip.ZipException: error in op
ening zip file

BUILD FAILED
\..\..\myapp\build.xml:339: FAIL - Encountered
exception java.util.zip.ZipException: error in opening
zip file

Also on another window I got a warning message from
Tomcat as following:

WARNING: Exception while expanding web application
archive myapp.war
Oct 23, 2003 6:41:13 AM
org.apache.catalina.startup.HostConfig deployWARs

Here is part of my build.xml:

target name=install depends=compile
   description=Install application to servlet
container

  deploy url=${manager.url}
   username=${manager.username}
   password=${manager.password}
   path=${app.path}
   war=file:///${build.home}/
/target

It seems to me that both Ant and Tomcat were looking
for a .war file. But I don't want to generate .war
file eveytime I compile while developing.

Can someone help me with this please?

I use Sun's JDK 1.4.2, Tomcat 5.0.2, and Ant 1.6 beta
(also Ant 1.5) running on Windows 2000 SP4. The thing
is I use the same version num of Sun's JDK, Tomcat,
and Ant on Linux RH 9 and it works.

Thank you for your help.

Phuoc.

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



RE: TC 3.3.1: How to disable static access to *certain* directories?

2003-10-23 Thread Larry Isaacs
The feature of arbitrarily not serving content in the
webapp is one that is not in high demand and isn't
currently supported, other than removing the
StaticInterceptor, as you have done.

I haven't tried the following, but you might try for
each static page you want to serve:

1) Make a copy of the static page and rename it to
   end with .jsp.

2) In the web.xml, add a servlet declaration for that
   JSP and add a servlet mapping that maps it to the
   old static file's name.

Then remove the StaticInterceptor from the webapp.
This way, only the static files you map get served.
Note, this assumes all the static files you want to
serve are HTML.

HTH.

Larry


 -Original Message-
 From: Lemke, Michael IZ/HZA-IE5 [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, October 23, 2003 9:28 AM
 To: 'Tomcat Users List'
 Subject: RE: TC 3.3.1: How to disable static access to 
 *certain* directories?
 
 
  -Original Message-
  From: Larry Isaacs [mailto:[EMAIL PROTECTED] 
  Sent: Thursday, October 23, 2003 3:07 PM
  To: Tomcat Users List
  Subject: RE: TC 3.3.1: How to disable static access to 
  *certain* directories?
  
  
  
   -Original Message-
   From: Lemke, Michael IZ/HZA-IE5 [mailto:[EMAIL PROTECTED] 
   Sent: Thursday, October 23, 2003 8:04 AM
   To: '[EMAIL PROTECTED]'
   Subject: TC 3.3.1: How to disable static access to *certain* 
   directories?
   
   
   I want to serve a few static pages with standalone tomcat 
   3.3.1 (no apache etc).
   I got that to work (StaticInterceptor listings=false /).  
   However, 
   it is still possible to access pages in other contexts if I 
   know the path:
   
   http://host.dom:4711/otherapplication/someknownpath/file.html
  
   But if I try
  
   http://host.dom:4711/otherapplication/WEB-INF/web.xml
  
   I get a 403 Forbidden.  How can I make tomcat to return 403 
  (or 404) for
   the first path as well?  I just couldn't find anything in the docs
   or google.
  
  You could delete file.html.  That would result in a 404 
  error.  
 
 Not good enough.  There's stuff I can't take out.
 
 If this
  isn't feasible, you need to explain why, so options as to how 
  to hide it
  can be determined.
 
 Well, I simply don't want to serve anything that I don't need.
 For the main application I don't need any static pages so I can
 do without StaticInterceptor (done that).  I don't want any files
 to be available that might be placed there by mistake or otherwise.  
 Only the few pages under the `static' path should be accessible.  
 Simple security concerns - don't open more than what is necessary.
 
 Michael
 
 -
 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: HTTP 403 - isapi_redirector

2003-10-23 Thread Watkins, James
Glad you figured it out... I just rolled my security app out to production
and it isnt working either. There is a difference between the iis on
production and the one I was using for development.  

-sigh

-Original Message-
From: Dionne, Patrice [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 22, 2003 2:21 PM
To: Tomcat Users List
Subject: RE: HTTP 403 - isapi_redirector


Ok, I fixed the problem.

I figured out that I was using Tomcat 4.1.16 in production and Tomcat 4.1.24
in preproduction. So I uninstalled tomcat 4.1.16 and installed tomcat 4.1.24
and everything was fine. 

But still, I don't know what was wrong with version 4.1.16... anyway it is
fixed now.

So much wasted time


-Original Message-
From: Watkins, James [mailto:[EMAIL PROTECTED]
Sent: 17 octobre, 2003 14:02
To: 'Tomcat Users List'
Subject: RE: HTTP 403 - isapi_redirector


Sorry, out of my range of experience, if you figure it out, will you send
out the solution?


-Original Message-
From: Dionne, Patrice [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 16, 2003 3:36 PM
To: Tomcat Users List
Subject: RE: HTTP 403 - isapi_redirector


No, the login.jsp page is not under a restricted folder and is not spécified
as a restricted ressource. 

I can access it directly without any authentification.

The login form is well configured in the web.xml because if I bypass IIS and
access directly a restricted ressource on tomcat (on port 8080) the login
form is displayed.


-Original Message-
From: Watkins, James [mailto:[EMAIL PROTECTED]
Sent: 16 octobre, 2003 16:29
To: 'Tomcat Users List'
Subject: RE: HTTP 403 - isapi_redirector


Is your form inside the secured folder?

-Original Message-
From: Dionne, Patrice [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 16, 2003 3:25 PM
To: Tomcat Users List
Subject: RE: HTTP 403 - isapi_redirector


This is the environement:

IIS 5 
Tomcat 4.1.24 (listen on port 8080)
Win2k Avanced Server
Browser: IE 6 or Netscape 7.1 don't make any difference



-Original Message-
From: Hart, Justin [mailto:[EMAIL PROTECTED]
Sent: 16 octobre, 2003 16:20
To: Tomcat Users List
Subject: RE: HTTP 403 - isapi_redirector


What version of IIS?

-Original Message-
From: Watkins, James [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 16, 2003 4:19 PM
To: 'Tomcat Users List'
Subject: RE: HTTP 403 - isapi_redirector


Do you get the form if you go directly to it through IIS, I mean
http://host/site/form.jsp 


-Original Message-
From: Dionne, Patrice [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 16, 2003 1:51 PM
To: Tomcat Users List
Subject: RE: HTTP 403 - isapi_redirector


I'm not getting the form if I go via IIS on port 80 but if I try directly
via Tomcat on port 8080 I get it. So the set up (web.xml) is fine on tomcat.



-Original Message-
From: Watkins, James [mailto:[EMAIL PROTECTED]
Sent: 16 octobre, 2003 14:04
To: 'Tomcat Users List'
Subject: RE: HTTP 403 - isapi_redirector


With form based authentication, are you getting the form?

-Original Message-
From: Dionne, Patrice [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 16, 2003 12:18 PM
To: Tomcat Users List
Subject: RE: HTTP 403 - isapi_redirector


Thanks James, I did try your solution but nothing changed



-Original Message-
From: Watkins, James [mailto:[EMAIL PROTECTED]
Sent: 16 octobre, 2003 12:06
To: 'Tomcat Users List'
Subject: RE: HTTP 403 - isapi_redirector


I ran into the same problem and switched to using a form based
authentication which seems to work fine. It seems to be some problem with
iis intercepting the login info?

-Original Message-
From: Dionne, Patrice [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 16, 2003 11:00 AM
To: [EMAIL PROTECTED]
Subject: HTTP 403 - isapi_redirector


Hi all,

Environement:
IIS 5 (isapi_redirector.dll) (listen on port 80)
Tomcat 4.1.24 (listen on port 8080)
Win2k Avanced Server
Browser: IE 6 or Netscape 7.1

Here is my problem.

I get a HTTP Status 403 - Access to the requested resource has been denied
when I try to access a protected ressource(in web.xml) via IIS on port 80
which redirect to a Tomcat 4.1.24 on port 8080.

Not suprising because the ressource is secured into the web.xml. I use a
BASIC authentification. But the thing is that I never get the pop-up window
asking for my credentials (username/password). So, I never get the chance to
authentificate myself (username/password).

I'm able to surf any non-restricted ressources on the webapp without any
problem. So, the isapi_redirector is well configured.

I've tried to access a protected ressource on the webapp directly on port
8080 (bypassing IIS) and I received the pop-up window asking for my
credentials (username/password). So everything is fine with Tomcat.

I've set the log level to debug the isapi_redirector.dll and this is what
I get when I try to access a restricted ressource:

[Thu Oct 16 10:08:16 2003]  [jk_isapi_plugin.c (696)]: 

Re: does tomcat work without apache? ... a real beginner asks some basic!?

2003-10-23 Thread [EMAIL PROTECTED]
hello,

i really let tomcat do the job...

with the paths: isn't it so, that docBase=... means, that all my links 
would be added to this entry? and why does it work in netbeans (i tried 
to find any differences but i didn't!)?

tell me, that i mustn't recode all my links!

and: installing my files under a domain: isn't it allowed(?) too, to say 
/formats.css??

hans

Shapira, Yoav schrieb:

Howdy,
Your context is all default settings: you can take the whole Context
declaration out of server.xml and let tomcat auto-deploy your war file.
The problem with your HTML links, like the one for your stylesheet, is
that they're absolute: /myFile.css is from the server root.  There's
nothing at the server root.  Change the links to have the webapp name in
the beginning, e.g. /sygenews/myFile.css.  You can confirm for yourself
these links work by entering them into your browser:
http://yourserver:yourport/myFile.css will not work (404 error)
http://yourserver:yourport/sygenews/myFile.css will work.
These are fairly basic concepts: you might want to go through a couple
of HTML/servlet tutorials.
Yoav Shapira
Millennium ChemInformatics
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 22, 2003 4:33 PM
To: Tomcat Users List
Subject: Re: does tomcat work without apache? ... a real beginner asks
   

some
 

basic!?

hello shapira - and greetings and thank to ann -,

thank you for your time spent on my problem.

here are more details:

1. the long line in server.xml, where i declared the context for
sygenews:
Context className=org.apache.catalina.core.StandardContext
cachingAllowed=true
  charsetMapperClass=org.apache.catalina.util.CharsetMapper
cookies=true
  crossContext=true debug=0
  docBase=C:\Programme\Apache Group\Tomcat 4.1\webapps\sygenews
  mapperClass=org.apache.catalina.core.StandardContextMapper
  path=/sygenews privileged=false reloadable=true
swallowOutput=false
  useNaming=true
wrapperClass=org.apache.catalina.core.StandardWrapper
/Context
the directory-name is sygenews, the war-file-name is sygenews.war, and
   

i
 

want it to place beneath webapps-dir in tomcat.

as i told you: with localhost:8080/sygenews the index.jsp was found,
but: my /formates.css - link didn't work - wrong font appeared.
why could this be?
and the next problem (as you thought): the link
/servlet/sygenews.index (/WEB-INF/classes/sygenews/index.class) was
not found - it showed: localhost:8080/servlet/sygenews.index not
   

available.
 

in netbeans i have a project: sygenews, there are the files in normal
order: /*.jsp, /WEB-INF/classes/*.java, *.class. i right-clicked on
document-root and chose: make war-file (or similar); the war-file was
   

made.
 

in tomcat i installed it in the manager-mask (upload a war-file to
install - out of my project-dir).
it installed ok, i clicked the new link and there it was... (as i
described above).
in netbeans it worked - i copied already the server.xml-file from
netbeans to tomcat, but the result was the same.
now to the path-question:
i coded every link as / i want to be sure, that the searching
should begin on top to find everything (out of sub-dirs). is this so
wrong? isn't it un-sure where i will go, if i write ../...?
and - sorry for repeating - in nb it works.
must i declare a special connector?
what is the right mapping of servlets in my web.xml? is this one ok:
...
servlet-classsygenews.news/servlet-class
...
url-pattern/servlet/sygenews.news/url-pattern
so did i in my project-web.xml (but somehow blind, by hand...).

bye
hans
Shapira, Yoav schrieb:

   

Howdy,



 

i downloaded the lastes tomcat-version (for windows xp!), installed
   

it
 

right as the installer did. called once localhost and i got the
greeting-screen from tomcat (meant: installation was ok!).
   

Good.



 

but then the problems began. how to get my  site into tomcat. all the
ways i tried failed. there was always the same problem: the
/mywar/index.jsp was found, but the other files weren't: instead of
/mywar/anydir/anyjsp.jsp it looked for in /anyjst.jsp!! so
   

with
 

the servlets: i coded /mywar/servlet/anyservlet and it looked
   

for
 

/servlet/anyservlet.

   

If you have a war file, simply copy it into tomcat's webapps
 

directory.
 

Links in your servlets, JSPs, HTML pages should be appropriately
relative. Give us an example of a link that doesn't work: I bet it's a
link to /servlet/myservlet as opposed to /mywar/servlet/myservlet or
better yet ../servlet/myservlet.
You should map all your servlets in web.xml.



 

questions: can i use tomcat just right out of the box or is this a

   

fas

 

too privimitive way to use this heavy program?

   

Yes, you can use it right out of the box: it's designed for that.



 

must i install apache as well or is tomcat sufficient?

   

You don't need Apache at this point: tomcat by itself is fine.



 

where should i look for a 

RE: does tomcat work without apache? ... a real beginner asks some basic!?

2003-10-23 Thread Shapira, Yoav

Howdy,

with the paths: isn't it so, that docBase=... means, that all my
links
would be added to this entry? and why does it work in netbeans (i tried
to find any differences but i didn't!)?

No.  Be careful to note the difference between a context's path and its
docBase.  You probably want a context whose path is , so that people
can point their browser at http://yourserver:yourport/ and see your
webapp.

Why it works in NetBeans is probably because NetBeans deploys your
webapp to the  context by default.  I'm not familiar enough with
NetBeans to comment further.

tell me, that i mustn't recode all my links!

You should have coded them relatively in the first place to avoid this
problem.  Setting the context path to  will save you the need to
rewrite your links.

and: installing my files under a domain: isn't it allowed(?) too, to
say
/formats.css??

It is allowed.  Whether it makes sense to the container or not depends
on your configuration.

Yoav Shapira



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


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



RE: IIS and Tomcat

2003-10-23 Thread Bergan, Mark T - PGPL-5

If you need to have IIS serve static pages as well, you must also create an IIS 
virtual directory (somewhere in the ~tomcat/webapps/myresort folder) which is 
apparently mentioned nowhere.

 -Original Message-
 From: Dionne, Patrice [mailto:[EMAIL PROTECTED]
 Sent: Thursday, October 23, 2003 5:57 AM
 To: Tomcat Users List
 Subject: RE: IIS and Tomcat
 
 
 Yes, you can.
 
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/iishowto.html
 
 -Original Message-
 From: Matt Raible [mailto:[EMAIL PROTECTED]
 Sent: 22 octobre, 2003 14:50
 To: [EMAIL PROTECTED]
 Subject: IIS and Tomcat
 
 
 I've integrated Apache with Tomcat on numerous occasions, but 
 never on 
 IIS.  We have the following scenario:
 
 1.  We want to have a domain name - i.e. www.myresort.com - that is 
 serviced by IIS.
 2. We want to map any requests to www.myresort.com to Tomcat's 
 /myresort application.
 
 Is this possible? I know it is with Apache, but I'm not sure 
 about IIS. 
  From what I've seen from the documentation, IIS has to have 
 some sort 
 of indicator, i.e. /jk/*
 
 Thanks,
 
 Matt
 
 
 -
 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: web.xml editor

2003-10-23 Thread Bergan, Mark T - PGPL-5

NetBeans IDE 3.5.1 (It's free  got ever'thin)
Jext editor @ www.jext.org (a good free java xml/html editor)


 -Original Message-
 From: Luiz Ricardo [mailto:[EMAIL PROTECTED]
 Sent: Thursday, October 23, 2003 5:30 AM
 To: Tomcat-Users List
 Subject: web.xml editor
 
 
 Hi everyone,
 
 I would like to know if someone here uses some free application to
 edit web.xml files, likely this application was web-based.
 
 I also would like to know if Tomcat Team intends to do something like
 this.
 
 Thanks in advance,
 
 Luiz Ricardo
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



Tomcat + IIS (Virtual Server vs Virtual Directory)

2003-10-23 Thread Watkins, James
i really need some help on this, i think it is an easy problem if you have
done this before.
 
I have successfully configured my Tomcat + IIS 5.1 dev environment. I have
been using a virtual directory pointed at a folder in side the tomcat root
to host my files.
 
so i access the site via http://localhost/marketing
http://localhost/marketing 
 
however, when i went to implement it in our production environment they
explained that they were using multiple virtual servers.
 
everything went ok in the install except, where do i put the virtual
directory that points to the isapi redirector? i placed it in the virtual
server, but it doesnt seem to be working correctly. i think because of the
way the registry keys reference the isapi redirector.
 
right now http://www.marketing.com:8080/marketing/
http://www.marketing.com:8080/marketing/  seems to be working properly,
but http://www.marketing.com http://www.marketing.com  is not compiling
the jsp code, and is serving the pages as though they were just html, and it
is ignoring my security contexts.
 
thank you so much for helping with this!
 
james watkins
 
 
 


Fake https connector

2003-10-23 Thread Norris Shelton
We use BigIP to perform SSL duties for our website.  We are
about to add a filter to force all page accesses to be sure.

The plan is to have two ports (9000 for regular requests and
11000 for secure requests).  It would work like this:
Request comes in on port 80 to BigIP.  It would send the request
to port 9000 on the tomcat.  The filter would check the scheme. 
It is not https, so it would redirect to the same URL with the
scheme of https.

BigIP would receive the redirected request on port 443.  It
would decrypt it and send it to port 11000.

I see where it has the scheme and secure parameters on the
standard connector.  I was thinking that I could use a regular
connector, but change scheme to https.  This would give my
filter what it needs and still allow BigIP to perform
decryption.

However, when I do this, requests to https (443) hang.  They
never get through.  

Any ideas?



=

Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Appriss, Inc.
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



Experience: Tomcat @ PDA @ PersonalJava 1.2 implementation

2003-10-23 Thread Ralf Bierig
Does somebody has experience using Tomcat 3.3.x on a PDA with Personal Java
1.2 (i.e. Jode implementation) regarding compatiablity and performance?

Any info will be appreciated,
Ralf


-- 
NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien...
Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService

Jetzt kostenlos anmelden unter http://www.gmx.net

+++ GMX - die erste Adresse für Mail, Message, More! +++


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



RE: Tomcat under Java 1.1 ?

2003-10-23 Thread Ralf Bierig
I would like to test it on a PDA. A have a Sharp Zaurus with PJava 1.2...

 
 Howdy,
 Out of curiosity, what's your reason for not using a later JDK?
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: Ralf Bierig [mailto:[EMAIL PROTECTED]
 Sent: Thursday, October 23, 2003 8:09 AM
 To: [EMAIL PROTECTED]
 Subject: Tomcat under Java 1.1 ?
 
 Can I run Tomcat under Java SDK 1.1.8 ? If yes, which version is the 
 best
 (=
 latest) version I can use?
 
 --
 NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien...
 Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService
 
 Jetzt kostenlos anmelden unter http://www.gmx.net
 
 +++ GMX - die erste Adresse für Mail, Message, More! +++
 
 
 -
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 This e-mail, including any attachments, is a confidential business com
 munication, and may contain information that is confidential, propriet
 ary and/or privileged.  This e-mail is intended only for the individua
 l(s) to whom it is addressed, and may not be saved, copied, printed, d
 isclosed or used by anyone else.  If you are not the(an) intended reci
 pient, 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]
 

-- 
NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien...
Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService

Jetzt kostenlos anmelden unter http://www.gmx.net

+++ GMX - die erste Adresse für Mail, Message, More! +++


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



howto disable CONNECT ... HTTP 1.1 requests?

2003-10-23 Thread Serge Sivkov
Hello, tomcat users.
I am using tomcat 4.0.23 as http server for static html pages (w/o
apache). How can i disable to react to HTTP CONNECT requests?

WBR, ssp

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



apache+tomcat+mod-jk2

2003-10-23 Thread Asif Chowdhary
Hi,

I am trying to setup apache with mod_jk2 and tomcat on Window.
Apache 2.0.43
and tomcat 4.1.18
and mod-jk2 2.0.43


If I use 
LoadModule jk2_module modules/mod_jk-2.0.43.dll


The module is loaded but does not recognize commands such as JkWorkersFile etc.

The log file says that the properties file is not set. I am attaching the log file 
from apache.

Your help is appreciated.

Thanks
Asif error.log 




Asif Chowdhary
System Analyst
x.eye incorporated
 
Phone: (905) 624-6608 ext. 280 
mailto:[EMAIL PROTECTED]  
www.xeye.com  


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

RE: encrypting a form's action URL with HTTPS link

2003-10-23 Thread Punjabi, Naveen K
Hello Adam,

Well yes, in case of SSL (secure socket Layer) all your form
content along with the page header will go in an encrypted format. If
you want to know in detail how SSL works then here goes the entire
explanation

SSL is based on the Public Key crypto system with following
steps

1. When you type an SSL URL, the browser sends a hello message to the
server. 
2. The server then sends its own Certificate and a random nonce
encrypted with its public Key.
3. The browser gets the Server certificate. Verifies it. Gets the public
Key from the certificate and authenticates the server
4. The client then makes an MASTER KEY and encrypts it with the server
public key. It sends its own certificate to the server. And also a nonce
encrypted with its own public key.
5. Now server takes the client certificate. Verifies it. Gets the public
key of client from the certificate and authenticates the client. 
6. Now the server knows the client public key, so it just decrypts the
encrypted Master Key. this master key then becomes the secret key for
further transactions between the client and server.

Naveen Punjabi
USC, Computer Science
http://www-scf.usc.edu/~npunjabi

-Original Message-
From: Bill Barker [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 7:59 PM
To: [EMAIL PROTECTED]
Subject: Re: encrypting a form's action URL with HTTPS link



Adam Hardy [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]


 Hi All,

 I am trying to work out whether my form submission is sent encrypted
in
 SSL or not.

 If I code my form like this:

 form method=POST action=https://localhost:8443/sslform;

 will it actually be encrypted?


Yes.

 When I click submit, the browser pops up a certificate dialog box
(since
 I'm not using verisign) and then the message that I'm visiting a
secure
 form.

 This makes me think that the request has been sent unencrypted first
to
 the server, which has responded in SSL with the certificate.

 Is that so?

No.  All of that traffic is the SSL-handshake between your browser and
Tomcat.  Your browser won't send the actual request to Tomcat until
after
all of the popups.


 Thanks
 Adam

 PS is there a tool like wget or perhaps a way of using wget, where I
can
 specify form elements in a request and see the contents  config of
the
 server's response?

 -- 
 struts 1.1 + tomcat 5.0.12 + java 1.4.2
 Linux 2.4.20 RH9




-
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: JK DEBUG level logging in catalina.out

2003-10-23 Thread Mike Curwen
Is there more info I can supply on this?  I'm at a loss as to why this
is happening.

 -Original Message-
 From: Mike Curwen [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, October 22, 2003 3:45 PM
 To: [EMAIL PROTECTED]
 Subject: JK DEBUG level logging in catalina.out
 
 
 A while back  I hijacked this conversation:
 http://marc.theaimsgroup.com/?t=10662176741r=1w=2
  
 Here is the message of most interest:
 http://marc.theaimsgroup.com/?l=tomcat-userm=106623436423859w=2
 
 
 A couple days ago we restarted Tomcat, and now... catalina.out is HUGE
 and full of DEBUG level statements from the JKCoyotHandler class!
 
 I have confirmed that no changes have been made to my log4j.properties
 file in CATALINA_HOME/common/classes
  
 I'm not 100% clear on how log4j works, especially regarding something
 like:
 
 log4j.rootCategory=DEBUG
  
 Most of my applications that use log4j use this type of syntax. I just
 catch DEBUG from everything. (In case you didn't click the 
 above links,
 I don't use the rootCategory for the log4j config for
 CATALINA_HOME/common/classes) Is it possible that Tomcat is 
 picking this
 up from one of the log4j.properties files that is in a web-app's
 WEB-INF/classes directory? 
  
 If so, my thought is that somewhere I have an errant log4j
 configuration, that cannot (for example) open the output file, and
 instead is dumping it to system.err.  But I've looked and can't find
 where this might occur.  And plus, normally log4j outputs 'cannot do
 this or that, please configure log4j correctly', and I'm not 
 seeing that
 message in catalina.out.
  
 This is quite perplexing!
  
 Here is the exact point in catalina.out where we did the re-start:
  
 I know where the first two lines come from; a class I wrote 
 before using
 log4j.
 Then comes the shutdown info...
 Then the startup info...
 I snipped a large segment of [INFO] messages from an application's
 (jira) startup...
 and then the first of the debug messages...
 
 
 * catalina.out
 % produceDataset() %%%
 % getProducerId() %%%
 Stopping service Tomcat-Standalone
 2003-10-20 08:33:07,763 INFO 
 [org.quartz.core.QuartzScheduler] Scheduler
 JiraQuartzScheduler_$_NON_CLUSTERED shutting down.
 2003-10-20 08:33:07,764 INFO 
 [org.quartz.core.QuartzScheduler] Scheduler
 JiraQuartzScheduler_$_NON_CLUSTERED paused.
 2003-10-20 08:33:07,766 INFO 
 [org.quartz.core.QuartzScheduler] Scheduler
 JiraQuartzScheduler_$_NON_CLUSTERED shutdown complete.
 422558126 [main] INFO core.QuartzScheduler  - Scheduler
 IDM_Scheduler_$_1 shutting down.
 422558127 [main] INFO core.QuartzScheduler  - Scheduler
 IDM_Scheduler_$_1 paused.
 422558128 [main] INFO core.QuartzScheduler  - Scheduler
 IDM_Scheduler_$_1 shutdown complete.
 0 [main] INFO modeler.Registry  - Loading registry information
 3 [main] INFO modeler.Registry  - Creating new Registry instance
 631 [main] INFO modeler.Registry  - Creating MBeanServer
 1504 [main] INFO http11.Http11Protocol  - Initializing Coyote HTTP/1.1
 on port 8080
 1549 [main] DEBUG server.JkCoyoteHandler  - setProperty jkHome
 /usr/local/applications/tomcat4.1.24
 1550 [main] DEBUG server.JkCoyoteHandler  - setProperty port 11009
 1550 [main] DEBUG server.JkCoyoteHandler  - setProperty maxThreads 75
 1550 [main] DEBUG server.JkCoyoteHandler  - setProperty backlog 10
 1550 [main] DEBUG server.JkCoyoteHandler  - setProperty 
 tcpNoDelay true
 1551 [main] DEBUG server.JkCoyoteHandler  - setProperty soLinger -1
 1551 [main] DEBUG server.JkCoyoteHandler  - setProperty 
 soTimeout 2
 1551 [main] DEBUG server.JkCoyoteHandler  - setProperty timeout 2
 1552 [main] DEBUG server.JkCoyoteHandler  - setProperty
 disableUploadTimeout false
 1552 [main] DEBUG server.JkCoyoteHandler  - setProperty
 maxKeepAliveRequests 100
 1552 [main] DEBUG server.JkCoyoteHandler  - setProperty 
 compression off
 1552 [main] DEBUG server.JkCoyoteHandler  - setProperty secure false
 Starting service Tomcat-Standalone
 Apache Tomcat/4.1.24
 2003-10-20 08:33:34,059 WARN
 [atlassian.jira.upgrade.ConsistencyCheckImpl] Detected that you are
 using Tomcat - turned off all transactions.
 Starting Tyrex  Version 1.0
 Intalio Inc. (C) 1999-2001. All rights reserved.
  snip /
 32286 [main] INFO jdbcjobstore.JobStoreTX  - Removed 0 Volatile
 Trigger(s).
 32286 [main] INFO jdbcjobstore.JobStoreTX  - Removed 0 
 Volatile Job(s).
 32289 [main] INFO jdbcjobstore.JobStoreTX  - Freed 0 triggers from
 'acquired' / 'blocked' state.
 32290 [main] INFO jdbcjobstore.JobStoreTX  - Recovering 0 
 jobs that were
 in-progress at the time of the last shut-down.
 32291 [main] INFO jdbcjobstore.JobStoreTX  - Recovery complete.
 32291 [main] INFO jdbcjobstore.JobStoreTX  - Removed 0 stale fired job
 entries.
 32314 [main] INFO impl.StdSchedulerFactory  - Quartz scheduler
 'IDM_Scheduler' initialized from default resource file in Quartz
 package: 'quartz.properties
 '
 32314 [main] INFO 

RE: encrypting a form's action URL with HTTPS link

2003-10-23 Thread Punjabi, Naveen K
Forgot to mention one thing..Yeah the initial request goes
unencrypted..:)
but its just a hello message..no sensitive data in it

-Original Message-
From: Punjabi, Naveen K 
Sent: Thursday, October 23, 2003 8:33 AM
To: Tomcat Users List
Subject: RE: encrypting a form's action URL with HTTPS link


Hello Adam,

Well yes, in case of SSL (secure socket Layer) all your form
content along with the page header will go in an encrypted format. If
you want to know in detail how SSL works then here goes the entire
explanation

SSL is based on the Public Key crypto system with following
steps

1. When you type an SSL URL, the browser sends a hello message to the
server. 
2. The server then sends its own Certificate and a random nonce
encrypted with its public Key.
3. The browser gets the Server certificate. Verifies it. Gets the public
Key from the certificate and authenticates the server
4. The client then makes an MASTER KEY and encrypts it with the server
public key. It sends its own certificate to the server. And also a nonce
encrypted with its own public key.
5. Now server takes the client certificate. Verifies it. Gets the public
key of client from the certificate and authenticates the client. 
6. Now the server knows the client public key, so it just decrypts the
encrypted Master Key. this master key then becomes the secret key for
further transactions between the client and server.

Naveen Punjabi
USC, Computer Science
http://www-scf.usc.edu/~npunjabi

-Original Message-
From: Bill Barker [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 7:59 PM
To: [EMAIL PROTECTED]
Subject: Re: encrypting a form's action URL with HTTPS link



Adam Hardy [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]


 Hi All,

 I am trying to work out whether my form submission is sent encrypted
in
 SSL or not.

 If I code my form like this:

 form method=POST action=https://localhost:8443/sslform;

 will it actually be encrypted?


Yes.

 When I click submit, the browser pops up a certificate dialog box
(since
 I'm not using verisign) and then the message that I'm visiting a
secure
 form.

 This makes me think that the request has been sent unencrypted first
to
 the server, which has responded in SSL with the certificate.

 Is that so?

No.  All of that traffic is the SSL-handshake between your browser and
Tomcat.  Your browser won't send the actual request to Tomcat until
after
all of the popups.


 Thanks
 Adam

 PS is there a tool like wget or perhaps a way of using wget, where I
can
 specify form elements in a request and see the contents  config of
the
 server's response?

 -- 
 struts 1.1 + tomcat 5.0.12 + java 1.4.2
 Linux 2.4.20 RH9




-
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: encrypting a form's action URL with HTTPS link

2003-10-23 Thread Punjabi, Naveen K
Forgot to mention one thing :).. Yeah, the initial request goes
unencrypted.
But then its just a Hello message, There's no sensitive information in
it.

Naveen Punjabi
USC, Computer Science,
http://www-scf.usc.edu/~npunjabi

-Original Message-
From: Punjabi, Naveen K 
Sent: Thursday, October 23, 2003 8:33 AM
To: Tomcat Users List
Subject: RE: encrypting a form's action URL with HTTPS link


Hello Adam,

Well yes, in case of SSL (secure socket Layer) all your form
content along with the page header will go in an encrypted format. If
you want to know in detail how SSL works then here goes the entire
explanation

SSL is based on the Public Key crypto system with following
steps

1. When you type an SSL URL, the browser sends a hello message to the
server. 
2. The server then sends its own Certificate and a random nonce
encrypted with its public Key.
3. The browser gets the Server certificate. Verifies it. Gets the public
Key from the certificate and authenticates the server
4. The client then makes an MASTER KEY and encrypts it with the server
public key. It sends its own certificate to the server. And also a nonce
encrypted with its own public key.
5. Now server takes the client certificate. Verifies it. Gets the public
key of client from the certificate and authenticates the client. 
6. Now the server knows the client public key, so it just decrypts the
encrypted Master Key. this master key then becomes the secret key for
further transactions between the client and server.

Naveen Punjabi
USC, Computer Science
http://www-scf.usc.edu/~npunjabi

-Original Message-
From: Bill Barker [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 7:59 PM
To: [EMAIL PROTECTED]
Subject: Re: encrypting a form's action URL with HTTPS link



Adam Hardy [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]


 Hi All,

 I am trying to work out whether my form submission is sent encrypted
in
 SSL or not.

 If I code my form like this:

 form method=POST action=https://localhost:8443/sslform;

 will it actually be encrypted?


Yes.

 When I click submit, the browser pops up a certificate dialog box
(since
 I'm not using verisign) and then the message that I'm visiting a
secure
 form.

 This makes me think that the request has been sent unencrypted first
to
 the server, which has responded in SSL with the certificate.

 Is that so?

No.  All of that traffic is the SSL-handshake between your browser and
Tomcat.  Your browser won't send the actual request to Tomcat until
after
all of the popups.


 Thanks
 Adam

 PS is there a tool like wget or perhaps a way of using wget, where I
can
 specify form elements in a request and see the contents  config of
the
 server's response?

 -- 
 struts 1.1 + tomcat 5.0.12 + java 1.4.2
 Linux 2.4.20 RH9




-
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: apache+tomcat+mod-jk2

2003-10-23 Thread Daniel Gibby
JkWorkersFile is no longer a valid directive with mod_jk2. Read the 
documentation on how to configure mod_jk2. You don't do it the same way 
as mod_jk, and it is a pain since the documentation is poor.

Daniel

Asif Chowdhary wrote:

Hi,

I am trying to setup apache with mod_jk2 and tomcat on Window.
Apache 2.0.43
and tomcat 4.1.18
and mod-jk2 2.0.43
If I use 
LoadModule jk2_module modules/mod_jk-2.0.43.dll

The module is loaded but does not recognize commands such as JkWorkersFile etc.

The log file says that the properties file is not set. I am attaching the log file from apache.

Your help is appreciated.

Thanks
Asif error.log 



Asif Chowdhary
System Analyst
x.eye incorporated
Phone: (905) 624-6608 ext. 280 
mailto:[EMAIL PROTECTED]  
www.xeye.com  

 



-
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: portal and portlets

2003-10-23 Thread Punjabi, Naveen K
Hello,

   I have known a project that used IBM portal and later customized it.
You might want to look into that as well..Its cool,

Naveen Punjabi
Computer Science, USC
http://www-scf.usc.edu/~npunjabi 



-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 5:46 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: portal and portlets



Howdy,

I'm about to start a project for my company that would take
Tomcat/Struts
and Cold Fusion to build

Interesting: we were just talking the other day how ColdFusion is dead
(not my phrasing), but a couple of people said it had a lot more Java
power now.  I'm assisting someone in converting a ColdFusion webapp to a
pure Java one for portability reasons.

a portal for the company's intranet.  The portal apps that they have
looked
at where Jahia,
Jetspeed and another open source portal.  The thought is to get these
portals and then build the
custom portlets in Cold Fusion.  My questions are:

JetSpeed is cool.  Jahia I haven't used yet.

Now that the JSR Portlet Specification
(http://www.jcp.org/aboutJava/communityprocess/review/jsr168/) is final,
I would write the custom portlets in java to be compatible with this
specification.  That way you maintain the java portability, ability to
move between containers.  You know the big players (Websphere, Weblogic,
Oracle) are all going to support this spec very quickly.

What would the counter argument be?  ColdFusion has more tags built in
and is therefore more productive?  That could be true.  So if you're in
a crunch, that may be a good choice.

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]

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



Does Apache offers any Tomcat like version with GUI and features.

2003-10-23 Thread Paresh Varatkar
Hi,
We are using Tomcat server version 3.2.4 with IIS for long time.
Our IT staff want to upgrade to environment with GUI but Tomcat based and
is ready to pay the fees if anything like that available.
Does any one know Tomcat based web serverseasy to operate and migrate the application?
Thanks
Paresg

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



SQLException when using a datasource

2003-10-23 Thread Samuel Cheung

I am trying to setup a hibernate example with Tomcat 4.1.27. So I add a
datasource to my server.xml. But when I access a connection, I got this
exception: 
20:56:49,072 WARN SessionFactoryImpl:171 - Could not obtain connection
metadata
java.sql.SQLException: Cannot load JDBC driver class 'null'

could some one please tell me how to fix that. I check the parameter of the
DBCP connection, they are correct.

Thanks in advance.

Sam


I have added the following in my server.xml of Tomcat:
Context path=quickstart docBase=/quickstart
Resource name=jdbc/quickstart scope=Shareable
type=javax.sql.DataSource/
ResourceParams name=jdbc/quickstart
parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter

!-- DBCP database connection settings --
parameter
nameurl/name
valuejdbc:mysql://localhost:3306/mysql/value
/parameter
parameter
namedriverClassName/namevalueorg.gjt.mm.mysql.Driver/value
/parameter
parameter
nameusername/name
valueremote/value
/parameter
parameter
namepassword/name
valueremote/value
/parameter

!-- DBCP connection pooling options --
parameter
namemaxWait/name
value5000/value
/parameter
parameter
namemaxIdle/name
value2/value
/parameter
parameter
namemaxActive/name
value4/value
/parameter

/ResourceParams
/Context

 from the Tomcat console 
20:56:49,010 INFO DatasourceConnectionProvider:51 - Using datasource:
java:comp/env/jdbc/quickstart
20:56:49,010 INFO SessionFactoryImpl:155 - Use outer join fetching: true
20:56:49,057 WARN JDBCExceptionReporter:36 - SQL Error: 0, SQLState: null
20:56:49,057 ERROR JDBCExceptionReporter:44 - Cannot load JDBC driver class
'null'
20:56:49,072 WARN SessionFactoryImpl:171 - Could not obtain connection
metadata
java.sql.SQLException: Cannot load JDBC driver class 'null'
at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav
a:529)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:3
12)
at
net.sf.hibernate.connection.DatasourceConnectionProvider.getConnection(Datas
ourceConnectionProvider.java:60)
at
net.sf.hibernate.impl.SessionFactoryImpl.init(SessionFactoryImpl.java:160)
at
net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:59
4)
at
net.sf.hibernate.examples.quickstart.TestHibernateServlet.initHibernate(Test
HibernateServlet.java:109)
at
net.sf.hibernate.examples.quickstart.TestHibernateServlet.doGet(TestHibernat
eServlet.java:26)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


RE: Apache cannot load jk2

2003-10-23 Thread Dean, Michael D.
just a shot, Julien but, if your file config is EXACTLY as shown, your
LoadModule directive is commented out...

 IfModule !mod_jk2.c
 # LoadModule jk2_module modules/mod_jk2-1.3.27.dll
 /IfModule

Best Regards,

Michael Dean
Sun Certified Programmer for the Java 2 Platform
Washington State Department of Corrections
ph: 360-664-8802
fx:  360-664-3985
mailto:[EMAIL PROTECTED]

 This is the neurotic mystery of climbing stone;
 Some bit of experience, large air under one's feet
  Now abides the immutable question, companion forever,
 Nay Can I?, but WILL I?...

 - Michael Dean

-Original Message-
From: Julien Oix [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 6:42 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: Apache cannot load jk2


hi,

try to rename the mod_jk2-x.dll into mod_jk2.dll ...

Julien OIX
Service Informatique de Gestion - Université de Nantes
Tel: 02 40 99 83 65 / abroad + (33) 240 99 83 65
Web: http://www.univ-nantes.fr
mailto:[EMAIL PROTECTED]

 -Message d'origine-
 De : Jean-Max Estay [mailto:[EMAIL PROTECTED]
 Envoyé : jeudi 23 octobre 2003 15:37
 À : [EMAIL PROTECTED]
 Objet : Apache cannot load jk2


 Hello,

 I use the ${Apache2} in this mail for the path of my apache install.

 Using mod_jk2-1.3.27.dll to connect Apache2 (2.0.47 win 32) on Windows XP
 Pro and Tomcat 4.1.27 on the same host,
 The file mod_jk2-1.3.27.dll  is in ${Apache2}/modules
 After creating the files stdout.log, stderr.log,
 jk2.shm,workers2.properties
 Apache is running OK on port 80, Tomcat OK on 8080
 When adding at the end of the Apache config file httpd.conf the lines
 IfModule !mod_jk2.c
 # LoadModule jk2_module modules/mod_jk2-1.3.27.dll
 /IfModule
 I have, when testing the apache config, the error message
 JK2 : Cannot load ${Apache2}/modules/mod_jk2-1.3.27.dll into server: Le
 module spécifié est introuvable.
 (the required module was not found)

 After reading many and many Howto, news and html pages, I don't find the
 solution

 Who can help me ?
 
 Dr Jean-Max Estay
 [EMAIL PROTECTED]
 http://www.ima.uco.fr/personnes/estay
 Institut de Mathématiques Appliquées
 Université Catholique de l'Ouest
 44,46 rue Rabelais
 BP 808
 49008 ANGERS Cedex 01
 France
 tel +33 2 41 81 67 05
 fax +33 2 41 81 67 00




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



RE: building mod_jk from source - TO GREG -

2003-10-23 Thread Greg_Cope
Hiya tino,

Sorry do not recognise the error.  You need to dig deeper to see if you can
spot the syntax error.

Did you complie apache as the same user (and hence probably the same path).

Although I cannot help much as I have not seen this problem I have had many
problems compling BSD/GNU/Free Software on Solaris with the Sun tools.  The
best bet is to install all the GNU tools and reconfigure your path to match.
Often these are path/tools issues.

If is often easier to use Free|OpenBSD|Linux to get this stuff to work
but that is a different story.

Does that help?

Greg

 -Original Message-
 From: Javier Sanchez Monzon [mailto:[EMAIL PROTECTED]
 Sent: 22 October 2003 12:12
 To: Tomcat Users List
 Subject: RE: building mod_jk from source - TO GREG -
 
 
 Hi Greg,
 
 i am using make, version: GNU MAKE 3.80
 -?? i don't know, if apache was compiled with sun's cc/make/automake
 
 helps you to make conclusions?
 
 regards, 
 tino
 
 

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



Re: howto disable CONNECT ... HTTP 1.1 requests?

2003-10-23 Thread Tim Funk
You could use a security-constraint and restrict access to CONNECT requests.

-Tim

Serge Sivkov wrote:

Hello, tomcat users.
I am using tomcat 4.0.23 as http server for static html pages (w/o
apache). How can i disable to react to HTTP CONNECT requests?


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


seeking tomcat consultant in dallas fort worth

2003-10-23 Thread Watkins, James
I would be interested in finding a tomcat consultant in the Dallas/Fort
Worth area, who has experience in configuring Tomcat with IIS. If you know
anyone, please have them reply to [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] . 
 
Thanks!
James Watkins


RE: Apache cannot load jk2

2003-10-23 Thread Jean-Max Estay
Oops
I have this problem when the comment sign is NOT present.
I copy/paste these lines after commenting for continuing a well running
Apache !

Apologize for this error in mail, not in configuring


[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
http://www.ima.uco.fr/personnes/estay
Institut de Mathématiques Appliquées
Université Catholique de l'Ouest
44,46 rue Rabelais
BP 808
49008 ANGERS Cedex 01
France
tel +33 2 41 81 67 05
fax +33 2 41 81 67 00?xml:namespace prefix = o ns =
urn:schemas-microsoft-com:office:office /



-Message d'origine-
De : Dean, Michael D. [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 23 octobre 2003 18:00
À : 'Julien Oix'
Cc : '[EMAIL PROTECTED]'
Objet : RE: Apache cannot load jk2


just a shot, Julien but, if your file config is EXACTLY as shown, your
LoadModule directive is commented out...

 IfModule !mod_jk2.c
 # LoadModule jk2_module modules/mod_jk2-1.3.27.dll
 /IfModule

Best Regards,

Michael Dean
Sun Certified Programmer for the Java 2 Platform
Washington State Department of Corrections
ph: 360-664-8802
fx:  360-664-3985
mailto:[EMAIL PROTECTED]

 This is the neurotic mystery of climbing stone;
 Some bit of experience, large air under one's feet
  Now abides the immutable question, companion forever,
 Nay Can I?, but WILL I?...

 - Michael Dean

-Original Message-
From: Julien Oix [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 6:42 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: Apache cannot load jk2


hi,

try to rename the mod_jk2-x.dll into mod_jk2.dll ...

Julien OIX
Service Informatique de Gestion - Université de Nantes
Tel: 02 40 99 83 65 / abroad + (33) 240 99 83 65
Web: http://www.univ-nantes.fr
mailto:[EMAIL PROTECTED]

 -Message d'origine-
 De : Jean-Max Estay [mailto:[EMAIL PROTECTED]
 Envoyé : jeudi 23 octobre 2003 15:37
 À : [EMAIL PROTECTED]
 Objet : Apache cannot load jk2


 Hello,

 I use the ${Apache2} in this mail for the path of my apache install.

 Using mod_jk2-1.3.27.dll to connect Apache2 (2.0.47 win 32) on Windows XP
 Pro and Tomcat 4.1.27 on the same host,
 The file mod_jk2-1.3.27.dll  is in ${Apache2}/modules
 After creating the files stdout.log, stderr.log,
 jk2.shm,workers2.properties
 Apache is running OK on port 80, Tomcat OK on 8080
 When adding at the end of the Apache config file httpd.conf the lines
 IfModule !mod_jk2.c
 # LoadModule jk2_module modules/mod_jk2-1.3.27.dll
 /IfModule
 I have, when testing the apache config, the error message
 JK2 : Cannot load ${Apache2}/modules/mod_jk2-1.3.27.dll into server: Le
 module spécifié est introuvable.
 (the required module was not found)

 After reading many and many Howto, news and html pages, I don't find the
 solution

 Who can help me ?
 
 Dr Jean-Max Estay
 [EMAIL PROTECTED]
 http://www.ima.uco.fr/personnes/estay
 Institut de Mathématiques Appliquées
 Université Catholique de l'Ouest
 44,46 rue Rabelais
 BP 808
 49008 ANGERS Cedex 01
 France
 tel +33 2 41 81 67 05
 fax +33 2 41 81 67 00




-
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: JK DEBUG level logging in catalina.out

2003-10-23 Thread Mike Curwen
[Solved]
 
:oI'm about to chuck my SSH FTP client out the window.
 
Using my client, when I double click on a file (in this case my
log4j.properties) it downloads the file to a local temp directory, and
then opens it in my editor (Textpad).  If there's already a file of that
name, it appends (1), (2), etc to the end of the name... EXCEPT
sometimes it doesn't quite get it right and it opens the wrong local
version of the file. So what I was seeing was the file that I had made
originally, and not the one I had just downloaded.
 
When I used an SSH Shell client, and inspected the file with vi, I
discovered that someone had indeed changed the log4j.properties file,
and introduced an error (but had not restarted Tomcat). When it got
restarted days later, the problem appeared.
 
Sorry for the noise!  I guess I'm going to have to brush up on my vi
(or perhaps be more dilligent about clearing out my temp directory)   

:(

 -Original Message-
 From: Mike Curwen [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, October 23, 2003 10:35 AM
 To: 'Tomcat Users List'
 Subject: RE: JK DEBUG level logging in catalina.out
 
 
 Is there more info I can supply on this?  I'm at a loss as to 
 why this is happening.
 
  -Original Message-
  From: Mike Curwen [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, October 22, 2003 3:45 PM
  To: [EMAIL PROTECTED]
  Subject: JK DEBUG level logging in catalina.out
  
 


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



RE: SQLException when using a datasource

2003-10-23 Thread Shapira, Yoav

Howdy,
http://jakarta.apache.org/tomcat/faq/database.html

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Samuel Cheung [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 11:55 AM
To: 'Tomcat Users List'
Subject: SQLException when using a datasource


I am trying to setup a hibernate example with Tomcat 4.1.27. So I add a
datasource to my server.xml. But when I access a connection, I got this
exception:
20:56:49,072 WARN SessionFactoryImpl:171 - Could not obtain connection
metadata
java.sql.SQLException: Cannot load JDBC driver class 'null'

could some one please tell me how to fix that. I check the parameter of
the
DBCP connection, they are correct.

Thanks in advance.

Sam


I have added the following in my server.xml of Tomcat:
Context path=quickstart docBase=/quickstart
Resource name=jdbc/quickstart scope=Shareable
type=javax.sql.DataSource/
ResourceParams name=jdbc/quickstart
parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter

!-- DBCP database connection settings --
parameter
nameurl/name
valuejdbc:mysql://localhost:3306/mysql/value
/parameter
parameter
namedriverClassName/namevalueorg.gjt.mm.mysql.Driver/value
/parameter
parameter
nameusername/name
valueremote/value
/parameter
parameter
namepassword/name
valueremote/value
/parameter

!-- DBCP connection pooling options --
parameter
namemaxWait/name
value5000/value
/parameter
parameter
namemaxIdle/name
value2/value
/parameter
parameter
namemaxActive/name
value4/value
/parameter

/ResourceParams
/Context

 from the Tomcat console 
20:56:49,010 INFO DatasourceConnectionProvider:51 - Using datasource:
java:comp/env/jdbc/quickstart
20:56:49,010 INFO SessionFactoryImpl:155 - Use outer join fetching:
true
20:56:49,057 WARN JDBCExceptionReporter:36 - SQL Error: 0, SQLState:
null
20:56:49,057 ERROR JDBCExceptionReporter:44 - Cannot load JDBC driver
class
'null'
20:56:49,072 WARN SessionFactoryImpl:171 - Could not obtain connection
metadata
java.sql.SQLException: Cannot load JDBC driver class 'null'
at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSourc
e.ja
v
a:529)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.j
ava:
3
12)
at
net.sf.hibernate.connection.DatasourceConnectionProvider.getConnection(
Data
s
ourceConnectionProvider.java:60)
at
net.sf.hibernate.impl.SessionFactoryImpl.init(SessionFactoryImpl.java
:160
)
at
net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.ja
va:5
9
4)
at
net.sf.hibernate.examples.quickstart.TestHibernateServlet.initHibernate
(Tes
t
HibernateServlet.java:109)
at
net.sf.hibernate.examples.quickstart.TestHibernateServlet.doGet(TestHib
erna
t
eServlet.java:26)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)



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: TC 3.3.1: How to disable static access to *certain* directori es?

2003-10-23 Thread Lemke, Michael IZ/HZA-IE5
Thanks.  I might try that.

One more question:  How can I change the default page,
i.e., the one that displays when I just enter a path, from
index.html to something else?

Thanks again,
Michael


 -Original Message-
 From: Larry Isaacs [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, October 23, 2003 3:59 PM
 To: Tomcat Users List
 Subject: RE: TC 3.3.1: How to disable static access to 
 *certain* directories?
 
 
 The feature of arbitrarily not serving content in the
 webapp is one that is not in high demand and isn't
 currently supported, other than removing the
 StaticInterceptor, as you have done.
 
 I haven't tried the following, but you might try for
 each static page you want to serve:
 
 1) Make a copy of the static page and rename it to
end with .jsp.
 
 2) In the web.xml, add a servlet declaration for that
JSP and add a servlet mapping that maps it to the
old static file's name.
 
 Then remove the StaticInterceptor from the webapp.
 This way, only the static files you map get served.
 Note, this assumes all the static files you want to
 serve are HTML.
 
 HTH.
 
 Larry
 
 
  -Original Message-
  From: Lemke, Michael IZ/HZA-IE5 [mailto:[EMAIL PROTECTED] 
  Sent: Thursday, October 23, 2003 9:28 AM
  To: 'Tomcat Users List'
  Subject: RE: TC 3.3.1: How to disable static access to 
  *certain* directories?
  
  
   -Original Message-
   From: Larry Isaacs [mailto:[EMAIL PROTECTED] 
   Sent: Thursday, October 23, 2003 3:07 PM
   To: Tomcat Users List
   Subject: RE: TC 3.3.1: How to disable static access to 
   *certain* directories?
   
   
   
-Original Message-
From: Lemke, Michael IZ/HZA-IE5 [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 23, 2003 8:04 AM
To: '[EMAIL PROTECTED]'
Subject: TC 3.3.1: How to disable static access to *certain* 
directories?


I want to serve a few static pages with standalone tomcat 
3.3.1 (no apache etc).
I got that to work (StaticInterceptor listings=false /).  
However, 
it is still possible to access pages in other contexts if I 
know the path:

http://host.dom:4711/otherapplication/someknownpath/file.html
   
But if I try
   
http://host.dom:4711/otherapplication/WEB-INF/web.xml
   
I get a 403 Forbidden.  How can I make tomcat to return 403 
   (or 404) for
the first path as well?  I just couldn't find anything 
 in the docs
or google.
   
   You could delete file.html.  That would result in a 404 
   error.  
  
  Not good enough.  There's stuff I can't take out.
  
  If this
   isn't feasible, you need to explain why, so options as to how 
   to hide it
   can be determined.
  
  Well, I simply don't want to serve anything that I don't need.
  For the main application I don't need any static pages so I can
  do without StaticInterceptor (done that).  I don't want any files
  to be available that might be placed there by mistake or 
 otherwise.  
  Only the few pages under the `static' path should be accessible.  
  Simple security concerns - don't open more than what is necessary.
  
  Michael
  
  
 -
  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: web.xml editor

2003-10-23 Thread Robert Hall
Luiz,

You should  try oXygen XML editor from http://www.oxygenxml.com.
It can run stand-alone or as an Eclipse plug-in.  (Eclipse is an IDE 
that IBM
open sourced; also worth a look).There is a 30 day trial version of 
oXygen
and if you decide to purchase it's reasonable (~ $45 US).

-Robert

Luiz Ricardo wrote:

Hi everyone,

I would like to know if someone here uses some free application to
edit web.xml files, likely this application was web-based.
I also would like to know if Tomcat Team intends to do something like
this.
Thanks in advance,

Luiz Ricardo

-
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: Does Apache offers any Tomcat like version with GUI and features.

2003-10-23 Thread Ben Souther
Have you looked at the admin and manager apps that ship with Tomcat 4.1x and 
up?

On Thursday 23 October 2003 11:53 am, Paresh Varatkar wrote:
 Hi,
 We are using Tomcat server version 3.2.4 with IIS for long time.
 Our IT staff want to upgrade to environment with GUI but Tomcat based and
 is ready to pay the fees if anything like that available.
 Does any one know Tomcat based web serverseasy to operate and migrate the
 application? Thanks
 Paresg

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

-- 
Ben Souther
F.W. Davison  Company, Inc.



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



RE: TC 3.3.1: How to disable static access to *certain* directori es?

2003-10-23 Thread Punjabi, Naveen K
Hello,

If you have permission to edit the master configuration files then you
can edit the files httpd.conf and srm.conf file and do the following: 

- Find this line.  DirectoryIndex index.html and change it as follows:
DirectoryIndex index.shtml index.html. Of course, you can use any
filename you wish. I prefer to leave index.html as a valid index as
well. 
- If you are unable to edit your master configuration files, you can use
this directive from .htaccess. Just edit the .htaccess file located in
your main HTML directory. If  you do not have this file, feel free to
create it! 

To change the default page, either edit the existing DirectoryIndex line
or add the following: 

DirectoryIndex index.shtml index.html 
This will make index.shtml the default page. 

By using a .htaccess file in a subdirectory, you can specify a different
default page for that one directory without affecting the rest of your
site. 

Naveen Punjabi
USC, Computer Science
http://www-scf.usc.edu/~npunjabi



-Original Message-
From: Lemke, Michael IZ/HZA-IE5 [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 9:35 AM
To: 'Tomcat Users List'
Subject: RE: TC 3.3.1: How to disable static access to *certain*
directori es?


Thanks.  I might try that.

One more question:  How can I change the default page,
i.e., the one that displays when I just enter a path, from
index.html to something else?

Thanks again,
Michael


 -Original Message-
 From: Larry Isaacs [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, October 23, 2003 3:59 PM
 To: Tomcat Users List
 Subject: RE: TC 3.3.1: How to disable static access to 
 *certain* directories?
 
 
 The feature of arbitrarily not serving content in the
 webapp is one that is not in high demand and isn't
 currently supported, other than removing the
 StaticInterceptor, as you have done.
 
 I haven't tried the following, but you might try for
 each static page you want to serve:
 
 1) Make a copy of the static page and rename it to
end with .jsp.
 
 2) In the web.xml, add a servlet declaration for that
JSP and add a servlet mapping that maps it to the
old static file's name.
 
 Then remove the StaticInterceptor from the webapp.
 This way, only the static files you map get served.
 Note, this assumes all the static files you want to
 serve are HTML.
 
 HTH.
 
 Larry
 
 
  -Original Message-
  From: Lemke, Michael IZ/HZA-IE5 [mailto:[EMAIL PROTECTED] 
  Sent: Thursday, October 23, 2003 9:28 AM
  To: 'Tomcat Users List'
  Subject: RE: TC 3.3.1: How to disable static access to 
  *certain* directories?
  
  
   -Original Message-
   From: Larry Isaacs [mailto:[EMAIL PROTECTED] 
   Sent: Thursday, October 23, 2003 3:07 PM
   To: Tomcat Users List
   Subject: RE: TC 3.3.1: How to disable static access to 
   *certain* directories?
   
   
   
-Original Message-
From: Lemke, Michael IZ/HZA-IE5 [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 23, 2003 8:04 AM
To: '[EMAIL PROTECTED]'
Subject: TC 3.3.1: How to disable static access to *certain* 
directories?


I want to serve a few static pages with standalone tomcat 
3.3.1 (no apache etc).
I got that to work (StaticInterceptor listings=false /).  
However, 
it is still possible to access pages in other contexts if I 
know the path:

http://host.dom:4711/otherapplication/someknownpath/file.html
   
But if I try
   
http://host.dom:4711/otherapplication/WEB-INF/web.xml
   
I get a 403 Forbidden.  How can I make tomcat to return 403 
   (or 404) for
the first path as well?  I just couldn't find anything 
 in the docs
or google.
   
   You could delete file.html.  That would result in a 404 
   error.  
  
  Not good enough.  There's stuff I can't take out.
  
  If this
   isn't feasible, you need to explain why, so options as to how 
   to hide it
   can be determined.
  
  Well, I simply don't want to serve anything that I don't need.
  For the main application I don't need any static pages so I can
  do without StaticInterceptor (done that).  I don't want any files
  to be available that might be placed there by mistake or 
 otherwise.  
  Only the few pages under the `static' path should be accessible.  
  Simple security concerns - don't open more than what is necessary.
  
  Michael
  
  
 -
  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 

Problem to read from extern access

2003-10-23 Thread Thomas Feldkamp
Hi,

I'm using jakarta-tomcat V 4.1.27 on linux. I want to use tomcat as web- and
servletserver. All configurationfiles are default.
My problem is as the following: In the local area network I can use my
browser to reach the website. If I try to reach tomcat via internet, I can't
reach the website. The IP_Address is correct (Other TCP/IP-services are
running correct from this address). I'd forwarded the port 8080 to the
linux-computer without any effects.
From the configuration of the normal Apache-Webserver I know, that I have to
configure a listen address. Must I configure a listen address for the
tomcat, too? If so, where must I configure it? If not, do you have any
suggestions for me?

In reguards
Thomas



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



RE: web.xml editor

2003-10-23 Thread Jeremy Whitlock
Luiz,
Don't pay if you don't have to.  Eclipse has many XML Editors
but the best I've found is called BuddyXML.  If you go to:

http://eclipse-plugins.2y.net/eclipse/index.jsp

you can find many Eclipse Plugins.  Eclipse is awesome and can
be your universal editor for many languages.  It's even an IDE for many
languages as well.  Also, I have to second the idea for NetBeans.  It's
great as well although not as fast or modular as Eclipse.  Laters,
Jeremy

P.S. - If you are ONLY looking for an XML IDE/Editor, Cooktop is the
best free one I've found.  Get it here:  http://www.xmlcooktop.com/
(It's only for Windows though)

-Original Message-
From: Robert Hall [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 23, 2003 10:44 AM
To: Tomcat Users List
Subject: Re: web.xml editor

Luiz,

You should  try oXygen XML editor from http://www.oxygenxml.com.
It can run stand-alone or as an Eclipse plug-in.  (Eclipse is an IDE 
that IBM
open sourced; also worth a look).There is a 30 day trial version of 
oXygen
and if you decide to purchase it's reasonable (~ $45 US).

-Robert

Luiz Ricardo wrote:

Hi everyone,

I would like to know if someone here uses some free application to
edit web.xml files, likely this application was web-based.

I also would like to know if Tomcat Team intends to do something like
this.

Thanks in advance,

Luiz Ricardo


-
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: TC 3.3.1: How to disable static access to *certain* directories?

2003-10-23 Thread Larry Isaacs
Normally this is handled by the welcome-file-list element
in the web.xml.  However, its functionality is handled by
the StaticInterceptor, so if that is removed, it doesn't work.

No simple workaround comes to mind at the moment.  Not so
simple is to customize StaticInterceptor to do only what
you want.

Cheers,
Larry

 -Original Message-
 From: Lemke, Michael IZ/HZA-IE5 [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, October 23, 2003 12:35 PM
 To: 'Tomcat Users List'
 Subject: RE: TC 3.3.1: How to disable static access to 
 *certain* directories?
 
 
 Thanks.  I might try that.
 
 One more question:  How can I change the default page,
 i.e., the one that displays when I just enter a path, from
 index.html to something else?
 
 Thanks again,
 Michael
 
 
  -Original Message-
  From: Larry Isaacs [mailto:[EMAIL PROTECTED] 
  Sent: Thursday, October 23, 2003 3:59 PM
  To: Tomcat Users List
  Subject: RE: TC 3.3.1: How to disable static access to 
  *certain* directories?
  
  
  The feature of arbitrarily not serving content in the
  webapp is one that is not in high demand and isn't
  currently supported, other than removing the
  StaticInterceptor, as you have done.
  
  I haven't tried the following, but you might try for
  each static page you want to serve:
  
  1) Make a copy of the static page and rename it to
 end with .jsp.
  
  2) In the web.xml, add a servlet declaration for that
 JSP and add a servlet mapping that maps it to the
 old static file's name.
  
  Then remove the StaticInterceptor from the webapp.
  This way, only the static files you map get served.
  Note, this assumes all the static files you want to
  serve are HTML.
  
  HTH.
  
  Larry
  
  
   -Original Message-
   From: Lemke, Michael IZ/HZA-IE5 [mailto:[EMAIL PROTECTED] 
   Sent: Thursday, October 23, 2003 9:28 AM
   To: 'Tomcat Users List'
   Subject: RE: TC 3.3.1: How to disable static access to 
   *certain* directories?
   
   
-Original Message-
From: Larry Isaacs [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 23, 2003 3:07 PM
To: Tomcat Users List
Subject: RE: TC 3.3.1: How to disable static access to 
*certain* directories?



 -Original Message-
 From: Lemke, Michael IZ/HZA-IE5 [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, October 23, 2003 8:04 AM
 To: '[EMAIL PROTECTED]'
 Subject: TC 3.3.1: How to disable static access to *certain* 
 directories?
 
 
 I want to serve a few static pages with standalone tomcat 
 3.3.1 (no apache etc).
 I got that to work (StaticInterceptor listings=false /).  
 However, 
 it is still possible to access pages in other contexts if I 
 know the path:
 
 http://host.dom:4711/otherapplication/someknownpath/file.html

 But if I try

 http://host.dom:4711/otherapplication/WEB-INF/web.xml

 I get a 403 Forbidden.  How can I make tomcat to return 403 
(or 404) for
 the first path as well?  I just couldn't find anything 
  in the docs
 or google.

You could delete file.html.  That would result in a 404 
error.  
   
   Not good enough.  There's stuff I can't take out.
   
   If this
isn't feasible, you need to explain why, so options as to how 
to hide it
can be determined.
   
   Well, I simply don't want to serve anything that I don't need.
   For the main application I don't need any static pages so I can
   do without StaticInterceptor (done that).  I don't want any files
   to be available that might be placed there by mistake or 
  otherwise.  
   Only the few pages under the `static' path should be accessible.  
   Simple security concerns - don't open more than what is necessary.
   
   Michael
   
   
  
 -
   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: jserv Vs Tomcat

2003-10-23 Thread Chong Yu Meng
Hmm... the problem could actually be with Apache itself. Can you check 
what your MaxClients setting in httpd.conf is? By default, I think it is 
11. You can probably set it to 128 and see what happens.

Regards,
pascal chong
Mrs. Geeta Thanu wrote:

Hello all,

I am new to this list. I was using jserv with apache to see the servlet
pages.
It is running on solaris 8 and the problem I am facing with Apache Jserv
is , I have set the security.maxConnections=50 (default) but still I feel
the TOP command shows so many threads and if it is above 100 , the whole
jserv hangs and unable to process any request.
Can anybody from this list suggest me what i can do to solve this problem
with jserv.
If installing tomcat is the only solution how to down load it , becos
when i tried downloading it from jakarta site and when I untar it
it is always showing directory check sum error.
Pls guide me

Thanks in advance
Geetha


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


  1   2   >