Re: tomcat oracle jdbc pooling

2004-10-11 Thread Bj
No, I don't want to. I want to use an OracleDatasource object but to 
manipulate an simple Datasource in my code. So my OracleDatasource has 
to be pre-configured at the loading.

I thought Tomcat was giving a Map of parameters to the datasource and 
the datasource search in the Map for corresponding parameters.
Obviously, it's not the case except for standard parameters like 
user,password, url,...

Thanks anyway
Bj

David Short a écrit :
Are you reading and setting the parameter values in your code before you
create the connection pool?
e.g. int MaxStatements =
Integer.parseInt(application.getInitParameter("maxStatements"));
-Original Message-
From: Bj [mailto:[EMAIL PROTECTED]
Sent: Monday, October 11, 2004 9:30 AM
To: Tomcat Users List
Subject: Re: tomcat oracle jdbc pooling
hi,
I'm using simple OracleDatasource and I want to activate
OracleDataSource.setMaxStatements() and
OracleDataSource.setImplicitCachingEnabled() through tomcat server.xml
or application web.xml.
For tomcat 5.0.19, when I add parameters in web.xml or server.xml it
doesn't work.
I've tried in web/xml :

 implicitCachingEnabled
 true


 maxStatements
 8

In server.xml I've tried :

implicitCachingEnabled
true

...
I'm not sure that it's possible to do this but it could be great.
Bj

David Short a écrit :

Take a look here to get the skinny on what's available
(http://www.exciton.cs.rice.edu/JavaResources/Oracle/oracle/jdbc/pool/Oracle
ConnectionCacheImpl.html).  Also, I set the "Setters" in my web.xml file.

-
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: [Possible bug?] Context configurations and .WAR deployment

2004-10-11 Thread raiden
Never mind... this was my mistake.  It is working just fine.  Thanks
again, for the help!

-Raiden Johnson




On Mon, 11 Oct 2004 [EMAIL PROTECTED] wrote:

> Actually, I spoke too soon... about it working in production.
>
> While it's true that the application does load in Tomcat, and everything
> is initialized correctly, I can no longer access my application from
> Apache via jk2.
>
> All requests are still making it to Tomcat, but the "/" address space no
> longer seems accessible:  (like http://www.myserver.com/index.jsp)
>
> Additionaly, servlets, which were mapped like:
> http://www.myserver.com/servlet/TestServlet now throw errors like:
> java.lang.NullPointerException
>
> org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:1774)
>
> org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1575)
>
> org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:860)
>
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1307)
>
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
>   java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
>
> com.net_basic.service.TestServlet.doPost(FetchRecentVisitors.java:30)
>
> com.net_basic.service.TestServlet.doGet(TestServlet.java:22)
>   javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
> Any ideas?
>
> Thank you,
> -Raiden Johnson
>
>
>
> On Mon, 11 Oct 2004 [EMAIL PROTECTED] wrote:
>
> > Ok, sounds good.
> >
> > One thing I noticed with the context.xml, is that it only seems to work
> > when it's packaged in a .war file.
> >
> > However, in development, I am actually deploying a whole ROOT directory
> > directly, instead of a packaged .war file.  I noticed that when I just
> > copied a context.xml into webapps/ROOT/META-INF, tomcat does not seem to
> > generate a ROOT.xml file.
> >
> > I guess for development I can copy context.xml as ROOT.xml directly into
> > the tomcat/conf/Catalina/localhost.  And then package context.xml in the
> > .war file under META-INF for production.
> >
> > Anyone know why it works this way, though?
> >
> > Thank you,
> > -Raiden
> >
> >
> >
> > On Mon, 11 Oct 2004, D'Alessandro, Arthur wrote:
> >
> > > You only need to get rid of the cached version if you made changes to it.
> > >
> > >  -Original Message-
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > > Sent: Mon Oct 11 14:05:58 2004
> > > To:   Tomcat Users List
> > > Subject:  RE: [Possible bug?] Context configurations and .WAR deployment
> > >
> > > Bingo!  That worked.  Thank you!
> > >
> > > However, you brought up something that makes a lot more sense to me.  I
> > > always thought it was strange that I had to have a ROOT.xml outside of the
> > > webapp .war file.  It makes a whole lot more sense to me to include
> > > ROOT.xml in the webapp .war file (under META-INF), and to just get rid of
> > > the cached version of ROOT.xml that is generated, when redeploying a new
> > > .war file.
> > >
> > > (Though, you would think that Tomcat would get rid of the cached version
> > > on its own.)
> > >
> > > I think I'm going to change to that method, so that I can keep everything
> > > in one .war file.
> > >
> > > Thank you very much for your help!
> > >
> > > -Raiden Johnson
> > >
> > >
> > > On Mon, 11 Oct 2004, D'Alessandro, Arthur wrote:
> > >
> > > > Try changing the docbase from ROOT TO ROOT.war.
> > > >
> > > >  -Original Message-
> > > > From:   [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > > > Sent:   Mon Oct 11 13:39:17 2004
> > > > To: Tomcat Users List
> > > > Subject:RE: [Possible bug?] Context configurations and .WAR deployment
> > > >
> > > > Hello,
> > > >
> > > > I will try including what I have in ROOT.xml as context.xml in META-INF,
> > > > and then remove the ROOT.xml each time I remove the webapps/ROOT tree to
> > > > copy in a new ROOT.war into webapps.
> > > >
> > > > However, here is what is in my ROOT.xml right now (that is causing the
> > > > problem of ROOT.war not being expanded when ROOT.xml is updated):
> > > >
> > > > 
> > > >   > > >  directory="logs"  prefix="localhost_log." suffix=".txt"
> > > > timestamp="true"/>
> > > >
> > > >   
> > > > 
> > > >   factory
> > > >   org.apache.commons.dbcp.BasicDataSourceFactory
> > > > 
> > > > 
> > > >   maxActive
> > > >   200
> > > > 
> > > > 
> > > >   maxIdle
> > > >   30
> > > > 
> > > > 
> > > >   maxWait
> > > >   1
> > > > 
> > > > 
> > > >  username
> > > >  test
> > > > 
> > > > 
> > > >  password
> > > >  testpassword
> > > > 
> > > > 
> > > >driverClassName
> > > >com.mysql.jdbc.Driver
> > > > 
> > > > 
> > > >   url
> > > >
> > > > jdbc:mysql://10.0

Re: Where is Catalina.out?

2004-10-11 Thread Hassan Schroeder
Sng Wee Jim wrote:
Correct me if I am wrong, Catalina.out is only created when tomcat is
running on unix.
OK, you're corrected :-)
I see catalina.out created on W2K as well as Mac OS X, Linux...
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

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


RE: Where is Catalina.out?

2004-10-11 Thread Fred Yu
Thanks Jim

I have tried on linux (Redhat) and can not find Catalina.out under logs
directory, that was the reason I tried that on windows 2000.

Cheers
Fred

-Original Message-
From: Sng Wee Jim [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 12, 2004 4:23 PM
To: Fred Yu; [EMAIL PROTECTED]
Subject: RE: Where is Catalina.out?



On windows the logs will go to /log directory. It will appear
in file localhost_log.-MM-dd.txt
Correct me if I am wrong, Catalina.out is only created when tomcat is
running on unix.

- Jim

-Original Message-
From: Fred Yu [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 12, 2004
10:49 AM
To: [EMAIL PROTECTED]
Subject: Where is Catalina.out?

Hi

I just downloaded and unpacked tomcat 5.0.28 to window 2000 machine. I
deployed my web war file and am able to run it through window explorer.
But I can not find Catalina.out file under logs directory. The tomcat is
in default configuration. Can anyone tell me why?

Cheers
Fred





The information in this email is confidential and is intended solely
for the addressee(s).
Access to this email by anyone else is unauthorized. If you are not
an intended recipient, please notify the sender of this email immediately.
You should not copy, use or disseminate the information contained in the
email.
Any views expressed in this message are those of the individual
sender, except where the sender specifically states them to be
the views of Capco.

http://www.capco.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: Where is Catalina.out?

2004-10-11 Thread Sng Wee Jim

On windows the logs will go to /log directory.
It will appear in file localhost_log.-MM-dd.txt
Correct me if I am wrong, Catalina.out is only created when tomcat is
running on unix.

- Jim

-Original Message-
From: Fred Yu [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 12, 2004 10:49 AM
To: [EMAIL PROTECTED]
Subject: Where is Catalina.out?

Hi

I just downloaded and unpacked tomcat 5.0.28 to window 2000 machine. I
deployed my web war file and am able to run it through window explorer.
But I can not find Catalina.out file under logs directory. The tomcat is
in default configuration. Can anyone tell me why?

Cheers
Fred





The information in this email is confidential and is intended solely
for the addressee(s).
Access to this email by anyone else is unauthorized. If you are not
an intended recipient, please notify the sender of this email
immediately. You should not copy, use or disseminate the
information contained in the email.
Any views expressed in this message are those of the individual
sender, except where the sender specifically states them to be
the views of Capco.

http://www.capco.com/



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



Re: multiple tomcat instance and log4j

2004-10-11 Thread QM
On Mon, Oct 11, 2004 at 06:31:46PM -0400, Simon Zeng wrote:
: 1. Would it be better to keep one log for each tomcat instance or all share
: the same log?

That depends: if all apps are running in the same container (same JVM),
then it's helpful to see everything in one place.  You can play
Cause-and-Effect as far as how one troublesome app impacts others.

: a. If former, how can we conordinate, from application, writting log
: information into the one log without conflicting each other and in the right
: sequence.

I believe the JVM itself takes care of that, though I may be wrong.  


: b. If latter, is any tools we can easily merge all logs into one (as if it
: is one)  so we can do statistics.

If the logs have timestamps, you can write some creative code that
loads, sorts, and merges.  The trouble would be catching stack traces.

Can you setup log4j with two appenders, one app-specific and the other
shared?  That would give you both, without the hassles of writing custom
tools to split/merge.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Re: reloading JSP files without reloading classes/beans

2004-10-11 Thread QM
On Mon, Oct 11, 2004 at 05:27:05PM -0500, Jonathan Wilson wrote:
: New Question (While I've got ya :): Given that I can use a WAR file 
: to "deploy," would you advise using Tomcat 5.x as my test server, 
: creating a WAR and then deploying that to a production 3.3.1 server? 
: This would kinda let me test using 5.x and still support a 3.3.1 box. 

Not really.  To run an app under Tomcat 5, you should build against the
Tomcat 5 JARs and such, which would limit the chances of that same WAR
file working transparently under Tomcat 3.

Not to mention, you really want your dev and production environments to
mirror one another.  Otherwise, how can you be certain the app will act
the same in the two environments?  To experiment with Tomcat 5, setup a
separate instance and rebuild your app there.  You can run both Tomcat
versions on the same machine, if you play your cards right.

For your other questions (e.g. how to create a WAR file, how to deploy),
you may want to review the servlet spec and the Tomcat docs.  

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Re: Blocking access to static content

2004-10-11 Thread QM
On Mon, Oct 11, 2004 at 01:27:14PM -0600, Robert Harper wrote:
: I tried filters but my filters were not always called.

It may be helpful to get to the root of why the filters weren't called.
What happened?  What was in web.xml?

Better yet, just define security-constraints in web.xml and limit access
to a role that's not assigned to anyone.

Putting the files in WEB-INF has mixed results as far as container
portability.  Furthermore, it's not really a place for content...

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Where is Catalina.out?

2004-10-11 Thread Fred Yu
Hi

I just downloaded and unpacked tomcat 5.0.28 to window 2000 machine. I
deployed my web war file and am able to run it through window explorer. But
I can not find Catalina.out file under logs directory. The tomcat is in
default configuration. Can anyone tell me why?

Cheers
Fred



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



Re: Performance issue

2004-10-11 Thread Faisal Abdullah
Hi, thanks for the insights.
I've done what you suggested, and the load does look better, but still sluggish.

The machine's are not swapping, simply JVM's max memory is 2GB. Our
RAM is 4GB. Any attempt to assign larger max memory to java, will
cause failure in starting tomcat. A friend has tried doing this on
FreeBSD and Gentoo Linux as well with the same results.

By the way, we are having connection timeouts at high peaks:

[EMAIL PROTECTED] root]# tail -F -n 100 /usr/local/tomcat/bin/wrapper.log |
grep connection
jvm 1| INFO: connection timeout reached
INFO   | jvm 1| 2004/10/11 15:33:37 | INFO: connection timeout reached
jvm 1| INFO: connection timeout reached
INFO   | jvm 1| 2004/10/11 15:33:41 | INFO: connection timeout reached
jvm 1| INFO: connection timeout reached
INFO   | jvm 1| 2004/10/11 15:33:44 | INFO: connection timeout reached
jvm 1| INFO: connection timeout reached
INFO   | jvm 1| 2004/10/11 15:33:45 | INFO: connection timeout reached
jvm 1| INFO: connection timeout reached
INFO   | jvm 1| 2004/10/11 15:33:52 | INFO: connection timeout reached
jvm 1| INFO: connection timeout reached
INFO   | jvm 1| 2004/10/11 15:33:55 | INFO: connection timeout reached
jvm 1| INFO: connection timeout reached
INFO   | jvm 1| 2004/10/11 15:34:11 | INFO: connection timeout reached
jvm 1| INFO: connection timeout reached
INFO   | jvm 1| 2004/10/11 15:34:17 | INFO: connection timeout reached
jvm 1| INFO: connection timeout reached
INFO   | jvm 1| 2004/10/11 15:34:23 | INFO: connection timeout reached


On another server, were getting these messages:

INFO   | jvm 1| 2004/10/12 10:33:11 | INFO: server has been
restarted or reset this connection
INFO   | jvm 1| 2004/10/12 10:33:13 | INFO: server has been
restarted or reset this connection
INFO   | jvm 1| 2004/10/12 10:33:13 | INFO: server has been
restarted or reset this connection
INFO   | jvm 1| 2004/10/12 10:33:13 | INFO: server has been
restarted or reset this connection
INFO   | jvm 1| 2004/10/12 10:33:59 | INFO: server has been
restarted or reset this connection

And here's a GC log:

43421.932: [GC 1704578K->1569670K(2073856K), 0.8122640 secs]
43436.720: [GC 1756038K->1612010K(2073856K), 0.7409810 secs]
43449.488: [GC 1798378K->1648439K(2073856K), 0.6549710 secs]
43453.472: [GC 1834807K->1679482K(2073856K), 0.5872020 secs]
43481.034: [Full GC 1865850K->809682K(2073856K), 8.6202320 secs]
43502.707: [GC 996050K->851676K(2073856K), 0.5027510 secs]
43523.369: [GC 1038044K->879605K(2073856K), 0.5389870 secs]
43542.764: [GC 1065973K->883973K(2073856K), 0.2121380 secs]
43569.000: [GC 1070340K->895005K(2073856K), 0.1536880 secs]
43591.007: [GC 1081336K->917841K(2073856K), 0.4391310 secs]
43619.284: [GC 1104209K->953106K(2073856K), 0.6477030 secs]
43658.215: [GC 1139474K->985160K(2073856K), 0.5575750 secs]

Any ideas?

Regards,
Faisal

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



JNDI Authentication...

2004-10-11 Thread Ross Rankin
I am using JNDI and Tomcat 4.1 for form-based authentication on a 
OpenLDAP 2.1 server.  The OS is Fedora Core 2.  This is a new server I 
am setting up to replace an exisiting one...  Upgraded hardware / 
software...  Anyway, authentication works for the user but doesn't find 
the user in the group...  It doesn't make sense, since this same config 
works on another box.  Here's the necessary files:

debug log:
slapd starting
ldap_pvt_gethostbyname_a: host=www.domain.com, r=0
connection_get(10): got connid=0
connection_read(10): checking for input on id=0
ber_get_next
ber_get_next: tag 0x30 len 50 contents:
ber_get_next
ber_get_next on fd 10 failed errno=11 (Resource temporarily unavailable)
do_bind
ber_scanf fmt ({imt) ber:
ber_scanf fmt (m}) ber:
>>> dnPrettyNormal: 
=> ldap_bv2dn(cn=Manager,dc=domain,dc=com,0)
ldap_err2string
<= ldap_bv2dn(cn=Manager,dc=domain,dc=com)=0 Success
=> ldap_dn2bv(272)
ldap_err2string
<= ldap_dn2bv(cn=Manager,dc=domain,dc=com)=0 Success
=> ldap_dn2bv(272)
ldap_err2string
<= ldap_dn2bv(cn=manager,dc=domain,dc=com)=0 Success
<<< dnPrettyNormal: , 

do_bind: version=3 dn="cn=Manager,dc=domain,dc=com" method=128
do_bind: v3 bind: "cn=Manager,dc=domain,dc=com" to 
"cn=Manager,dc=domain,dc=com"
send_ldap_result: conn=0 op=0 p=3
send_ldap_response: msgid=1 tag=97 err=0
ber_flush: 14 bytes to sd 10
connection_get(10): got connid=0
connection_read(10): checking for input on id=0
ber_get_next
ber_get_next: tag 0x30 len 119 contents:
ber_get_next
ber_get_next on fd 10 failed errno=11 (Resource temporarily unavailable)
do_search
ber_scanf fmt ({mb) ber:
>>> dnPrettyNormal: 
=> ldap_bv2dn(uid=ross,ou=people,dc=domain,dc=com,0)
ldap_err2string
<= ldap_bv2dn(uid=ross,ou=people,dc=domain,dc=com)=0 Success
=> ldap_dn2bv(272)
ldap_err2string
<= ldap_dn2bv(uid=ross,ou=people,dc=domain,dc=com)=0 Success
=> ldap_dn2bv(272)
ldap_err2string
<= ldap_dn2bv(uid=ross,ou=people,dc=domain,dc=com)=0 Success
<<< dnPrettyNormal: , 

ber_scanf fmt (m) ber:
ber_scanf fmt ({M}}) ber:
=> get_ctrls
ber_scanf fmt ({m) ber:
=> get_ctrls: oid="2.16.840.1.113730.3.4.2" (noncritical)
<= get_ctrls: n=1 rc=0 err=""
=> bdb_search
bdb_dn2entry("uid=ross,ou=people,dc=domain,dc=com")
=> bdb_dn2id( "dc=domain,dc=com" )
<= bdb_dn2id: got id=0x0001
=> bdb_dn2id( "ou=people,dc=domain,dc=com" )
<= bdb_dn2id: got id=0x0007
=> bdb_dn2id( "uid=ross,ou=people,dc=domain,dc=com" )
<= bdb_dn2id: got id=0x0008
entry_decode: "uid=ross,ou=people,dc=domain,dc=com"
<= entry_decode(uid=ross,ou=people,dc=domain,dc=com)
=> send_search_entry: dn="uid=ross,ou=people,dc=domain,dc=com"
ber_flush: 74 bytes to sd 10
<= send_search_entry
send_ldap_result: conn=0 op=1 p=3
send_ldap_response: msgid=2 tag=101 err=0
ber_flush: 14 bytes to sd 10
connection_get(10): got connid=0
connection_read(10): checking for input on id=0
ber_get_next
ber_get_next: tag 0x30 len 148 contents:
do_search
ber_scanf fmt ({mb) ber:
>>> dnPrettyNormal: 
=> ldap_bv2dn(ou=groups,dc=domain,dc=com,0)
ldap_err2string
<= ldap_bv2dn(ou=groups,dc=domain,dc=com)=0 Success
=> ldap_dn2bv(272)
ldap_err2string
<= ldap_dn2bv(ou=groups,dc=domain,dc=com)=0 Success
=> ldap_dn2bv(272)
ldap_err2string
<= ldap_dn2bv(ou=groups,dc=domain,dc=com)=0 Success
<<< dnPrettyNormal: , 

ber_scanf fmt ({mm}) ber:
ber_scanf fmt ({M}}) ber:
=> get_ctrls
ber_scanf fmt ({m) ber:
=> get_ctrls: oid="2.16.840.1.113730.3.4.2" (noncritical)
<= get_ctrls: n=1 rc=0 err=""
=> bdb_search
bdb_dn2entry("ou=groups,dc=domain,dc=com")
=> bdb_dn2id( "ou=groups,dc=domain,dc=com" )
<= bdb_dn2id: got id=0x0006
entry_decode: "ou=groups,dc=domain,dc=com"
<= entry_decode(ou=groups,dc=domain,dc=com)
search_candidates: base="ou=groups,dc=domain,dc=com" (0x0006) scope=1
=> bdb_equality_candidates (objectClass)
=> key_read
<= bdb_index_read: failed (-30990)
<= bdb_equality_candidates: id=0, first=0, last=0
=> bdb_dn2idl( "ou=groups,dc=domain,dc=com" )
<= bdb_dn2idl: id=4 first=9 last=13
bdb_search_candidates: id=0 first=9 last=0
bdb_search: no candidates
send_ldap_result: conn=0 op=2 p=3
send_ldap_response: msgid=3 tag=101 err=0
ber_get_next
ber_get_next on fd 10 failed errno=11 (Resource temporarily unavailable)
ber_flush: 14 bytes to sd 10
daemon: shutdown requested and initiated.
connection_closing: readying conn=0 sd=10 for close
connection_close: conn=0 sd=10
slapd shutdown: waiting for 0 threads to terminate
slapd shutdown: initiated
> bdb_cache_release_all
slapd shutdown: freeing system resources.
slapd stopped.

Slapd.conf:
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include /usr/local/etc/openldap/schema/core.schema
include /usr/local/etc/openldap/schema/cosine.schema
include /usr/local/etc/openldap/schema/inetorgperson.schema
# Define global ACLs to disable default read access.
# Do not enable referrals until AFTER you have a working directory
# service AND an understanding of referrals.
#referral   ldap://r

Re: Tomcat5 and Debian Sarge

2004-10-11 Thread Ben Souther
Did you try hitting it with a browser to see if it is running?
http://localhost:8080

Your logs should be in /logs


On Mon, 2004-10-11 at 18:28, Kai Neubecker wrote:
> I try to start Tomcat 5 first time. 
> 
> /usr/local/tomcat/bin/startup.sh
> Using CATALINA_BASE:   /usr/local/tomcat
> Using CATALINA_HOME:   /usr/local/tomcat
> Using CATALINA_TMPDIR: /usr/local/tomcat/temp
> Using JAVA_HOME:   /usr/local/java
> 
> the server do not start. I can't find a logfile or a error in syslog.
> 
> j2sdk-1_4_2_05-linux-i586.bin + jakarta-tomcat-5.0.28.tar.gz (binary)
> 
> missing package?
> 
> can some ome help me ?
> 
> thanx, Kai
> 
> 
> -
> 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]



Running tomcat 5.0 as a service in Windows OS

2004-10-11 Thread Pramod Jain
I have searched thru the mailing list and not found a solution, I am sure it is there 
... Please point me to it

I am able to start tomcat5.0 as a service with tomcat_home\conf\server.xml, but unable 
to specify start up configuration parameters
like "start -config "abc\my_server.xml"

Here is what I am doing ... but both are not working
a) with tomcat5w.exe, I go to startup tab and enter:  start -config 
"C:\abc\my_server.xml"
b) In Windows Services editor I go to Apache-Tomcat -> Properties -> Start Parameters 
and enter:  start -config
"C:\abc\my_server.xml"

In both cases tomcat starts and then stops.





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



Does unpackWARs setting work?

2004-10-11 Thread Larry Meadors
OK, here is my config:


  


When I start tomcat, I see everything unpacked into my work directory.

What's up with that? Am I missing something here? Does
unpackWARs="false" mean something else?

Larry

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



Tomcat5 and Debian Sarge

2004-10-11 Thread Kai Neubecker
I try to start Tomcat 5 first time. 

/usr/local/tomcat/bin/startup.sh
Using CATALINA_BASE:   /usr/local/tomcat
Using CATALINA_HOME:   /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JAVA_HOME:   /usr/local/java

the server do not start. I can't find a logfile or a error in syslog.

j2sdk-1_4_2_05-linux-i586.bin + jakarta-tomcat-5.0.28.tar.gz (binary)

missing package?

can some ome help me ?

thanx, Kai


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



Re: reloading JSP files without reloading classes/beans

2004-10-11 Thread Jonathan Wilson
Bob,
   You just answered my follow up to your previous email :)
   Hmm, so I run a concurrent version of my production app(being 
careful not to impact the databases) either on a different instance of 
Tomcat or just a different context within the same instance of Tomcat. 
Then when I'm ready I package up the source code into a WAR(what tool do 
I use for that? - must do research), copy it into the production servers 
webapps directory(and hopefully have all the configuration set properly 
to auto-expand) and then what? If the WAR is automatically expanded do 
the new files take effect immediately
or do I need to restart tomcat still. Does the context in the server.xml 
need reloadable="true" set for a WAR file expansion to take effect 
immediately?

   Thanks for the info..connected some dots for me.
   New Question (While I've got ya :): Given that I can use a WAR file 
to "deploy," would you advise using Tomcat 5.x as my test server, 
creating a WAR and then deploying that to a production 3.3.1 server? 
This would kinda let me test using 5.x and still support a 3.3.1 box. 
The app is very self-contained, except for a load of jar's in the lib.

Thanks for you time!!
   JW
  

Robert Bateman wrote:
The best advice I can give you is to investigate running your "test"
application in a different context on the server.  That way, you can
recompile / alter the JSP files and everything else to your hearts
content.  IF that isn't possible, Tomcat runs quite nicely on my
development machine where I can make changes without affecting anyone
else.
Bob
On Mon, 2004-10-11 at 16:51, Jonathan Wilson wrote:
 

Hello,
   I'm running 3.3.1 (and yes, I'll be upgrading to 5.x in the next few 
weeks as time allows) and want to reload JSP files, but not any class 
files. The root of the problem is that during beta testing I'm making 
lots of changes quickly(to JSP and classes/beans), but my system is in 
use. Everytime I recompile a classes/beans class it forces everyone to 
re-login to my system(context reloadable="true"). Now, if I set 
reloadable to "false" the JSP files won't get recompiled...and I have to 
restart tomcat to effect the changes...no savings. Any ideas?

Thanks and Regards,
 JW
-
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]
 



multiple tomcat instance and log4j

2004-10-11 Thread Simon Zeng
Hello,

I have a question here. Our application is running under multiple tomcat
intance. We have our own plan logging mechanism. We are moving to use log4j
to replace in-house one.

1. Would it be better to keep one log for each tomcat instance or all share
the same log?
a. If former, how can we conordinate, from application, writting log
information into the one log without conflicting each other and in the right
sequence.
b. If latter, is any tools we can easily merge all logs into one (as if it
is one)  so we can do statistics.

2. Does log4j caching records in the buffer and flush them to disk once
buffer is full or it write records everytime it receives a log command? If
former, how does it solve the issue when system fails and the cached records
lost?

Thanks,
-Simon

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



Re: reloading JSP files without reloading classes/beans

2004-10-11 Thread Robert Bateman
The best advice I can give you is to investigate running your "test"
application in a different context on the server.  That way, you can
recompile / alter the JSP files and everything else to your hearts
content.  IF that isn't possible, Tomcat runs quite nicely on my
development machine where I can make changes without affecting anyone
else.

Bob

On Mon, 2004-10-11 at 16:51, Jonathan Wilson wrote:
> Hello,
> 
> I'm running 3.3.1 (and yes, I'll be upgrading to 5.x in the next few 
> weeks as time allows) and want to reload JSP files, but not any class 
> files. The root of the problem is that during beta testing I'm making 
> lots of changes quickly(to JSP and classes/beans), but my system is in 
> use. Everytime I recompile a classes/beans class it forces everyone to 
> re-login to my system(context reloadable="true"). Now, if I set 
> reloadable to "false" the JSP files won't get recompiled...and I have to 
> restart tomcat to effect the changes...no savings. Any ideas?
> 
> Thanks and Regards,
>   JW
> 
> -
> 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: Ideas on deploying a web-app piece-meal

2004-10-11 Thread Robert Bateman
We use Web Archives (WAR files).  I find this the most comprehensive
method of deployment.  Everything that is needed for the particular
application is included in one file for upload.

Bob

On Mon, 2004-10-11 at 17:37, Jonathan Wilson wrote:
> I need some advice/HOW-TO's on developing and then deploying web-apps to 
> a production server. I've yet to find anything comprehensive and that 
> details the pros/cons of each method. Ideas/links?
> 
> Thanks,
> JW
> 
> -
> 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]



Ideas on deploying a web-app piece-meal

2004-10-11 Thread Jonathan Wilson
I need some advice/HOW-TO's on developing and then deploying web-apps to 
a production server. I've yet to find anything comprehensive and that 
details the pros/cons of each method. Ideas/links?

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


Re: Forum instead of mailist!!

2004-10-11 Thread Shankar Unni
Andoni wrote:
That's excellent. If I unsubscribe can I still read these? Can I reply?
Yes, you can reply. The first time you try to reply, gmane.org will send 
you an autoreply. You have to reply to the auto-reply to authenticate 
your mail address, and then you're up and running.

That's how I'm posting now..
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Weird Red Hat Enterprise Startup

2004-10-11 Thread Shankar Unni
Shapira, Yoav wrote:
Any JVM switch to make an internal JVM crash "disappear" is cruising for
a bruising.  
Fully understood.
Most likely, it's missing OS-level patches for your system.
True, except that for the Linux case, we are running on one of the 
supported OSes (RH EL 3.0WS, stock), and there's no mention of any 
required patches for Linux. Still get the crash.

In our case, it was readily triggered by a particularly large output 
from a JSP - a table with ~1500 rows, which was a pathological case - 
and we have workarounds for this particular symptom.  But there have 
been other unexplained crashes, too, and we have found open bugs in the 
Sun JDC bug database referring to crashes like this on Linux..

So yes, once again: -server is a band-aid (just one of many), it's not 
guaranteed to fix anything at all (could even make things worse) - it 
just shifts the problem around under the blanket. It's just one thing to 
try, and *if it "works" in your case*, use it as a temporary workaround.

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


reloading JSP files without reloading classes/beans

2004-10-11 Thread Jonathan Wilson
Hello,
   I'm running 3.3.1 (and yes, I'll be upgrading to 5.x in the next few 
weeks as time allows) and want to reload JSP files, but not any class 
files. The root of the problem is that during beta testing I'm making 
lots of changes quickly(to JSP and classes/beans), but my system is in 
use. Everytime I recompile a classes/beans class it forces everyone to 
re-login to my system(context reloadable="true"). Now, if I set 
reloadable to "false" the JSP files won't get recompiled...and I have to 
restart tomcat to effect the changes...no savings. Any ideas?

Thanks and Regards,
 JW
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: JK2 configuration

2004-10-11 Thread Debra Bartling
At 04:03 PM 10/10/2004 -0700, Daxin Zuo wrote:
   MY system is UNIX (Sparc) tomcat 5.0.28, Apache2.0.43. when I start the
apache, I get the error in the apache error_log file.
[Sun Oct 10 15:12:24 2004] [error] jk2_init() Can't find child 6351 in
scoreboard
[Sun Oct 10 15:12:24 2004] [error] mod_jk child init 1 -2
I had the same problem on Solaris, fixed it by using mod_jk 2.0.4 built 
from source and changing to file=anonymous in workers2.properties.

Debra Bartling
Earthquake Engineering Research Center
UC Berkeley

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


Katja Handtusch/268/DCAG/DCX ist außer Haus.

2004-10-11 Thread katja . handtusch




Ich werde ab  11.10.2004 nicht im Büro sein. Ich kehre zurück am
22.10.2004.

Ich werde Ihre Nachricht nach meiner Rückkehr beantworten.
Bei dringenden Angelegenheiten wenden Sie sich bitte an meine Vertretung
Alexandra Pürschel (Tel.: 5463).


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



RE: Blocking access to static content

2004-10-11 Thread Arnaud HERITIER
You can put all your resources (images, jsp, ..) under the WEB-INF directory.

Arnaud.

> -Message d'origine-
> De : Robert Harper [mailto:[EMAIL PROTECTED]
> Envoyé : lundi 11 octobre 2004 21:27
> À : 'Tomcat Users List'
> Objet : RE: Blocking access to static content
> 
> I tried filters but my filters were not always called.
> 
> Robert S. Harper
> 801.265.8800 ex. 255
> 
> > -Original Message-
> > From: QM [mailto:[EMAIL PROTECTED]
> > Sent: Monday, October 11, 2004 12:57 PM
> > To: Tomcat Users List
> > Subject: Re: Blocking access to static content
> >
> > On Mon, Oct 11, 2004 at 12:39:13PM -0600, Robert Harper wrote:
> > : I have turned the listings off in the default servlet. Now how do I keep
> > users
> > : from directly accessing anything outside of the defined servlets and JSP
> > pages
> > : even if the user knows the path to the file?
> >
> > Filters, filters, filters.
> >
> > -QM
> >
> > --
> >
> > software  -- http://www.brandxdev.net
> > tech news -- http://www.RoarNetworX.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]
> 
> 
> 
> #== gPopper Menu ===#
> Delete from Gmail inbox:   mailto:del|[EMAIL PROTECTED]
> Mark message as unread:mailto:unr|[EMAIL PROTECTED]
> Mark message as read:  mailto:rea|[EMAIL PROTECTED]



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



RE: allowTrace noSuchMethodException in Multiple Instace Admin TC 4.1.30

2004-10-11 Thread Larry Isaacs
See Bug 27648.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27648

Cheers,
Larry

> -Original Message-
> From: Montz, James C. (James Tower) [mailto:[EMAIL PROTECTED] 
> Sent: Monday, October 11, 2004 3:25 PM
> To: [EMAIL PROTECTED]
> Subject: allowTrace noSuchMethodException in Multiple Instace 
> Admin TC 4.1.30
> 
> 
> In a Multiple Instance Tomcat 4.1.30 deployment, receiving 
> the following
> error when attempting to view the 'Connector' through TC admin;
> 
> Page reports;
> HTTP Status 500 - Error retrieving attribute allowTrace
> --
> --
> 
> type Status report
> message Error retrieving attribute allowTrace
> description The server encountered an internal error (Error retrieving
> attribute allowTrace) that prevented it from fulfilling this request.
> 
> Log file shows;
> 2004-10-11 14:04:43 action: Error retrieving attribute allowTrace
> javax.management.ReflectionException: Cannot find getter method
> getAllowTracenested exception is java.lang.NoSuchMethodException: o$
> java.lang.NoSuchMethodException:
> org.apache.coyote.tomcat4.CoyoteConnector.getAllowTrace()
> at java.lang.Class.getMethod(Class.java:986)
> .
> 
> Everything else works fine (can view/modify/save changes)
> 
> Context path of 
> ~/webapps/admin.xml statically maps Context path for admin Context.
> 
> Using Sun J2SDK 1.4.2_05
> 
> Anyone run into this?  Know a solution?
> Thanks!
> 
> __
> James
> jcmontz AT jamestower DOT 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: Blocking access to static content

2004-10-11 Thread Robert Harper
I tried filters but my filters were not always called.

Robert S. Harper
801.265.8800 ex. 255

> -Original Message-
> From: QM [mailto:[EMAIL PROTECTED]
> Sent: Monday, October 11, 2004 12:57 PM
> To: Tomcat Users List
> Subject: Re: Blocking access to static content
> 
> On Mon, Oct 11, 2004 at 12:39:13PM -0600, Robert Harper wrote:
> : I have turned the listings off in the default servlet. Now how do I keep
> users
> : from directly accessing anything outside of the defined servlets and JSP
> pages
> : even if the user knows the path to the file?
> 
> Filters, filters, filters.
> 
> -QM
> 
> --
> 
> software  -- http://www.brandxdev.net
> tech news -- http://www.RoarNetworX.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]



allowTrace noSuchMethodException in Multiple Instace Admin TC 4.1.30

2004-10-11 Thread Montz, James C. (James Tower)
In a Multiple Instance Tomcat 4.1.30 deployment, receiving the following
error when attempting to view the 'Connector' through TC admin;

Page reports;
HTTP Status 500 - Error retrieving attribute allowTrace


type Status report
message Error retrieving attribute allowTrace
description The server encountered an internal error (Error retrieving
attribute allowTrace) that prevented it from fulfilling this request.

Log file shows;
2004-10-11 14:04:43 action: Error retrieving attribute allowTrace
javax.management.ReflectionException: Cannot find getter method
getAllowTracenested exception is java.lang.NoSuchMethodException: o$
java.lang.NoSuchMethodException:
org.apache.coyote.tomcat4.CoyoteConnector.getAllowTrace()
at java.lang.Class.getMethod(Class.java:986)
.

Everything else works fine (can view/modify/save changes)

Context path of 
~/webapps/admin.xml statically maps Context path for admin Context.

Using Sun J2SDK 1.4.2_05

Anyone run into this?  Know a solution?
Thanks!

__
James
jcmontz AT jamestower DOT com


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



Re: Blocking access to static content

2004-10-11 Thread QM
On Mon, Oct 11, 2004 at 12:39:13PM -0600, Robert Harper wrote:
: I have turned the listings off in the default servlet. Now how do I keep users
: from directly accessing anything outside of the defined servlets and JSP pages
: even if the user knows the path to the file?

Filters, filters, filters.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



RE: [Possible bug?] Context configurations and .WAR deployment

2004-10-11 Thread raiden
Actually, I spoke too soon... about it working in production.

While it's true that the application does load in Tomcat, and everything
is initialized correctly, I can no longer access my application from
Apache via jk2.

All requests are still making it to Tomcat, but the "/" address space no
longer seems accessible:  (like http://www.myserver.com/index.jsp)

Additionaly, servlets, which were mapped like:
http://www.myserver.com/servlet/TestServlet now throw errors like:
java.lang.NullPointerException

org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:1774)

org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1575)

org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:860)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1307)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)

com.net_basic.service.TestServlet.doPost(FetchRecentVisitors.java:30)

com.net_basic.service.TestServlet.doGet(TestServlet.java:22)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

Any ideas?

Thank you,
-Raiden Johnson



On Mon, 11 Oct 2004 [EMAIL PROTECTED] wrote:

> Ok, sounds good.
>
> One thing I noticed with the context.xml, is that it only seems to work
> when it's packaged in a .war file.
>
> However, in development, I am actually deploying a whole ROOT directory
> directly, instead of a packaged .war file.  I noticed that when I just
> copied a context.xml into webapps/ROOT/META-INF, tomcat does not seem to
> generate a ROOT.xml file.
>
> I guess for development I can copy context.xml as ROOT.xml directly into
> the tomcat/conf/Catalina/localhost.  And then package context.xml in the
> .war file under META-INF for production.
>
> Anyone know why it works this way, though?
>
> Thank you,
> -Raiden
>
>
>
> On Mon, 11 Oct 2004, D'Alessandro, Arthur wrote:
>
> > You only need to get rid of the cached version if you made changes to it.
> >
> >  -Original Message-
> > From:   [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Sent:   Mon Oct 11 14:05:58 2004
> > To: Tomcat Users List
> > Subject:RE: [Possible bug?] Context configurations and .WAR deployment
> >
> > Bingo!  That worked.  Thank you!
> >
> > However, you brought up something that makes a lot more sense to me.  I
> > always thought it was strange that I had to have a ROOT.xml outside of the
> > webapp .war file.  It makes a whole lot more sense to me to include
> > ROOT.xml in the webapp .war file (under META-INF), and to just get rid of
> > the cached version of ROOT.xml that is generated, when redeploying a new
> > .war file.
> >
> > (Though, you would think that Tomcat would get rid of the cached version
> > on its own.)
> >
> > I think I'm going to change to that method, so that I can keep everything
> > in one .war file.
> >
> > Thank you very much for your help!
> >
> > -Raiden Johnson
> >
> >
> > On Mon, 11 Oct 2004, D'Alessandro, Arthur wrote:
> >
> > > Try changing the docbase from ROOT TO ROOT.war.
> > >
> > >  -Original Message-
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > > Sent: Mon Oct 11 13:39:17 2004
> > > To:   Tomcat Users List
> > > Subject:  RE: [Possible bug?] Context configurations and .WAR deployment
> > >
> > > Hello,
> > >
> > > I will try including what I have in ROOT.xml as context.xml in META-INF,
> > > and then remove the ROOT.xml each time I remove the webapps/ROOT tree to
> > > copy in a new ROOT.war into webapps.
> > >
> > > However, here is what is in my ROOT.xml right now (that is causing the
> > > problem of ROOT.war not being expanded when ROOT.xml is updated):
> > >
> > > 
> > >   > >  directory="logs"  prefix="localhost_log." suffix=".txt"
> > > timestamp="true"/>
> > >
> > >   
> > > 
> > >   factory
> > >   org.apache.commons.dbcp.BasicDataSourceFactory
> > > 
> > > 
> > >   maxActive
> > >   200
> > > 
> > > 
> > >   maxIdle
> > >   30
> > > 
> > > 
> > >   maxWait
> > >   1
> > > 
> > > 
> > >  username
> > >  test
> > > 
> > > 
> > >  password
> > >  testpassword
> > > 
> > > 
> > >driverClassName
> > >com.mysql.jdbc.Driver
> > > 
> > > 
> > >   url
> > >
> > > jdbc:mysql://10.0.0.1:3306/net_basic?autoReconnect=true
> > > 
> > >   
> > > 
> > >
> > >
> > > Thank you,
> > > -Raiden Johnson
> > >
> > >
> > >
> > > On Sat, 9 Oct 2004, D'Alessandro, Arthur wrote:
> > >
> > > > A suggestion, include the ROOT.xml as context.xml under META-INF, tomcat
> > > > will create it under your host as ROOT.xml when it is deployed.  That
> > > > doesn't solve the problem your experiencing, what does your ROOT.xm

RE: versions 2.3 and 2.4 of web.xml

2004-10-11 Thread Steve Kirk
Yoav, I have recreated my example.  I deleted my installation and
reinstalled 5.0.27 from scratch (on win2k / JDK 1.4.2_05).

I then added a simple webapp called "test" by adding these three files under
the webapps folder:
test\index.jsp
test\prelude.jspf
test\WEB-INF\web.xml

The file contents are as follows (I know that the jsps contain incomplete
HTML but they suffice to keep the example simple).

--index.jsp--
==
This is index.jsp
==

--prelude.jspf--
==
This is prelude.jspf
==

--web.xml--
==

http://java.sun.com/dtd/web-app_2_3.dtd";>



*.jsp
prelude.jspf



==

Note that the web.xml above uses the 2.3 DTD.
I made no other changes to the standard installation.

I then started tomcat (I already have it installed as a service).  I then
accessed http://localhost:8080/test/ using IE6.  This displayed the file
index.jsp. The browser showed just the text "This is index.jsp".  In other
words, no text from prelude.jspf was included even though this is configured
in web.xml.  No errors were logged in any of the logfiles.

As a check, I then stopped tomcat and edited web.xml to give it the 2.4
headers, deleted all the files from the work directory, then restarted
tomcat and ctrl-F5'd IE to force-reload the page.  This time, the text from
prelude.jspf was included in index.jsp, and no errors were logged.

So, as far as I can tell, it seems that the  tag is being
silently ignored when placed in a 2.3 web.xml, but no errors are being
thrown.

> -Original Message-
> From: Steve Kirk [mailto:[EMAIL PROTECTED] 
> Sent: Thursday 07 October 2004 18:42
> To: 'Tomcat Users List'
> Subject: RE: versions 2.3 and 2.4 of web.xml
> 
> 
> 
> Unfortunately I deleted my example once I'd realised what the 
> problem was.
> Like you I don't have time now, but will try to find time 
> soon to redo it,
> and post an example.
> 
> > -Original Message-
> > From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
> > Sent: Thursday 07 October 2004 16:43
> > To: Tomcat Users List
> > Subject: RE: versions 2.3 and 2.4 of web.xml
> > 
> > 
> > 
> > Hi,
> > I didn't follow the thread on include-prelude (not my cup 
> of tea).  If
> > you can post a web.xml (or better yet, a simple WAR containing this
> > web.xml) that is invalid according to its own declared DTD and yet
> > Tomcat doesn't complain, that'd be great.  I don't have time 
> > to look at
> > this now, there are more important issues around, but maybe
> > eventually... ;)
> > 
> > Yoav Shapira
> > Millennium Research Informatics
> > 
> > 
> > >-Original Message-
> > >From: Steve Kirk [mailto:[EMAIL PROTECTED]
> > >Sent: Thursday, October 07, 2004 11:27 AM
> > >To: 'Tomcat Users List'
> > >Subject: RE: versions 2.3 and 2.4 of web.xml
> > >
> > >
> > >Yoav, I see your point in your previousu post on this thread 
> > re 2.3 DTD
> > >still being valid. However what do you think regarding the 
> > possible bug
> > >mentioned in my later post below?  (i.e. that a 2.4 
> feature used in a
> > 2.3
> > >file does not cause an exception, but instead is silently ignored).
> > The
> > >validation that tomcat does on web.xml is usually very thorough, so
> > this
> > >case seems to be a bit of an anomaly.
> > >
> > >> -Original Message-
> > >> From: Steve Kirk [mailto:[EMAIL PROTECTED]
> > >> Sent: Thursday 30 September 2004 18:03
> > >> To: 'Tomcat Users List'
> > >> Subject: RE: versions 2.3 and 2.4 of web.xml
> > >>
> > >>
> > >>
> > >> Further to my note below, plus my previous posts on "Who has got
> > >>  to work?", I think I might have stumbled 
> > across the
> > >> answers to both myself.
> > >>
> > >> Basically my web.xml files were based on the v2.3 files that
> > >> shipped with
> > >> the standard installation, and using these seems to have
> > >> silently suppressed
> > >> the 2.4 features, including .
> > >>
> > >> Not sure if this is a bug - if web.xml encounters a tag which
> > >> it knows is
> > >> valid in its current version, but not in the earlier version
> > >> declared in the
> > >>  tag, should an exception be thrown, or should it
> > >> silently ignore
> > >> it?
> > >>
> > >> > -Original Message-
> > >> > From: Steve Kirk [mailto:[EMAIL PROTECTED]
> > >> > Sent: Thursday 30 September 2004 17:32
> > >> > To: 'Tomcat Users List'
> > >> > Subject: versions 2.3 and 2.4 of web.xml
> > >> >
> > >> >
> > >> >
> > >> > Only just noticed this, looks like a possible bug, but
> > >> maybe there's a
> > >> > reason behind it?
> > >> >
> > >> > Basically, the default web.xml files included within the
> > >> > standard webapps of
> > >> > 5.0.27 and 5.0.28 seem to be a mix of webapp v2.3 and v2.4 -
> > >> > anyone know if
> > >> > there is a reason for this, or is this a bug?
> > >> >
> > >>
> > >>
> > >>
> > >> 

Re: Blocking access to static content

2004-10-11 Thread Tim Funk
The best way is to place all protected content under WEB-INF.
-Tim
Robert Harper wrote:
I have turned the listings off in the default servlet. Now how do I keep users
from directly accessing anything outside of the defined servlets and JSP pages
even if the user knows the path to the file?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Blocking access to static content

2004-10-11 Thread Robert Harper
I have turned the listings off in the default servlet. Now how do I keep users
from directly accessing anything outside of the defined servlets and JSP pages
even if the user knows the path to the file?

 

Robert S. Harper

Senior Engineer

1100 East 6600 South, Suite 300

Salt Lake City, UT 84121-7411

801.265.8800 ex. 255

 



RE: [Possible bug?] Context configurations and .WAR deployment

2004-10-11 Thread raiden
Ok, sounds good.

One thing I noticed with the context.xml, is that it only seems to work
when it's packaged in a .war file.

However, in development, I am actually deploying a whole ROOT directory
directly, instead of a packaged .war file.  I noticed that when I just
copied a context.xml into webapps/ROOT/META-INF, tomcat does not seem to
generate a ROOT.xml file.

I guess for development I can copy context.xml as ROOT.xml directly into
the tomcat/conf/Catalina/localhost.  And then package context.xml in the
.war file under META-INF for production.

Anyone know why it works this way, though?

Thank you,
-Raiden



On Mon, 11 Oct 2004, D'Alessandro, Arthur wrote:

> You only need to get rid of the cached version if you made changes to it.
>
>  -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Mon Oct 11 14:05:58 2004
> To:   Tomcat Users List
> Subject:  RE: [Possible bug?] Context configurations and .WAR deployment
>
> Bingo!  That worked.  Thank you!
>
> However, you brought up something that makes a lot more sense to me.  I
> always thought it was strange that I had to have a ROOT.xml outside of the
> webapp .war file.  It makes a whole lot more sense to me to include
> ROOT.xml in the webapp .war file (under META-INF), and to just get rid of
> the cached version of ROOT.xml that is generated, when redeploying a new
> .war file.
>
> (Though, you would think that Tomcat would get rid of the cached version
> on its own.)
>
> I think I'm going to change to that method, so that I can keep everything
> in one .war file.
>
> Thank you very much for your help!
>
> -Raiden Johnson
>
>
> On Mon, 11 Oct 2004, D'Alessandro, Arthur wrote:
>
> > Try changing the docbase from ROOT TO ROOT.war.
> >
> >  -Original Message-
> > From:   [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Sent:   Mon Oct 11 13:39:17 2004
> > To: Tomcat Users List
> > Subject:RE: [Possible bug?] Context configurations and .WAR deployment
> >
> > Hello,
> >
> > I will try including what I have in ROOT.xml as context.xml in META-INF,
> > and then remove the ROOT.xml each time I remove the webapps/ROOT tree to
> > copy in a new ROOT.war into webapps.
> >
> > However, here is what is in my ROOT.xml right now (that is causing the
> > problem of ROOT.war not being expanded when ROOT.xml is updated):
> >
> > 
> >   >  directory="logs"  prefix="localhost_log." suffix=".txt"
> > timestamp="true"/>
> >
> >   
> > 
> >   factory
> >   org.apache.commons.dbcp.BasicDataSourceFactory
> > 
> > 
> >   maxActive
> >   200
> > 
> > 
> >   maxIdle
> >   30
> > 
> > 
> >   maxWait
> >   1
> > 
> > 
> >  username
> >  test
> > 
> > 
> >  password
> >  testpassword
> > 
> > 
> >driverClassName
> >com.mysql.jdbc.Driver
> > 
> > 
> >   url
> >
> > jdbc:mysql://10.0.0.1:3306/net_basic?autoReconnect=true
> > 
> >   
> > 
> >
> >
> > Thank you,
> > -Raiden Johnson
> >
> >
> >
> > On Sat, 9 Oct 2004, D'Alessandro, Arthur wrote:
> >
> > > A suggestion, include the ROOT.xml as context.xml under META-INF, tomcat
> > > will create it under your host as ROOT.xml when it is deployed.  That
> > > doesn't solve the problem your experiencing, what does your ROOT.xml
> > > look like? What are you referencing your docBase? Ours word fine by
> > > referencing the ROOT.war.
> > >
> > > Note, if you update the context.xml in your webapp, it doesn't auto
> > > update the cached ROOT.xml; you would need to undeploy the webapp,
> > > delete the ROOT.xml from conf/Catalina/localhost  and redeploy the new
> > > webapp.
> > >
> > > -Original Message-
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > > Sent: Saturday, October 09, 2004 3:33 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: [Possible bug?] Context configurations and .WAR deployment
> > >
> > > Hello,
> > >
> > > I recently upgraded from Tomcat 5.0.19 to Tomcat 5.0.28.
> > >
> > > I am now running into a conflict between ROOT.xml and ROOT.war.
> > >
> > > This happens when I deploy to production:
> > > 1. I delete the ROOT.war and ROOT directory from
> > > /usr/local/tomcat/webapps
> > > 2. I delete the ROOT.xml context configuration file in
> > > /usr/local/tomcat/conf/Catalina/localhost
> > > 3. I then copy the new ROOT.war file to /usr/local/tomcat/webapps
> > > 4. I copy the new ROOT.xml file to
> > > /usr/local/tomcat/conf/Catalina/localhost
> > >
> > > This used to work fine in Tomcat 5.0.19.  Now, in 5.0.28, when I startup
> > > the server, I get the following error:
> > >
> > > INFO: Missing application web.xml, using defaults only
> > > StandardEngine[Catalina].StandardHost[localhost].StandardContext[]
> > >
> > > And the new ROOT.war file is never expanded (which is why ROOT.xml can't
> > > find web.xml).
> > >
> > > The only way to get the .war file to expand, is to temporar

OFF TOPIC- Starting a servlet

2004-10-11 Thread phil campaigne
Thanks Hassan,
That's what I needed. Pretty basic huh?
Phil
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: [Possible bug?] Context configurations and .WAR deployment

2004-10-11 Thread D'Alessandro, Arthur
You only need to get rid of the cached version if you made changes to it.

 -Original Message-
From:   [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent:   Mon Oct 11 14:05:58 2004
To: Tomcat Users List
Subject:RE: [Possible bug?] Context configurations and .WAR deployment

Bingo!  That worked.  Thank you!

However, you brought up something that makes a lot more sense to me.  I
always thought it was strange that I had to have a ROOT.xml outside of the
webapp .war file.  It makes a whole lot more sense to me to include
ROOT.xml in the webapp .war file (under META-INF), and to just get rid of
the cached version of ROOT.xml that is generated, when redeploying a new
.war file.

(Though, you would think that Tomcat would get rid of the cached version
on its own.)

I think I'm going to change to that method, so that I can keep everything
in one .war file.

Thank you very much for your help!

-Raiden Johnson


On Mon, 11 Oct 2004, D'Alessandro, Arthur wrote:

> Try changing the docbase from ROOT TO ROOT.war.
>
>  -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Mon Oct 11 13:39:17 2004
> To:   Tomcat Users List
> Subject:  RE: [Possible bug?] Context configurations and .WAR deployment
>
> Hello,
>
> I will try including what I have in ROOT.xml as context.xml in META-INF,
> and then remove the ROOT.xml each time I remove the webapps/ROOT tree to
> copy in a new ROOT.war into webapps.
>
> However, here is what is in my ROOT.xml right now (that is causing the
> problem of ROOT.war not being expanded when ROOT.xml is updated):
>
> 
>directory="logs"  prefix="localhost_log." suffix=".txt"
> timestamp="true"/>
>
>   
> 
>   factory
>   org.apache.commons.dbcp.BasicDataSourceFactory
> 
> 
>   maxActive
>   200
> 
> 
>   maxIdle
>   30
> 
> 
>   maxWait
>   1
> 
> 
>  username
>  test
> 
> 
>  password
>  testpassword
> 
> 
>driverClassName
>com.mysql.jdbc.Driver
> 
> 
>   url
>
> jdbc:mysql://10.0.0.1:3306/net_basic?autoReconnect=true
> 
>   
> 
>
>
> Thank you,
> -Raiden Johnson
>
>
>
> On Sat, 9 Oct 2004, D'Alessandro, Arthur wrote:
>
> > A suggestion, include the ROOT.xml as context.xml under META-INF, tomcat
> > will create it under your host as ROOT.xml when it is deployed.  That
> > doesn't solve the problem your experiencing, what does your ROOT.xml
> > look like? What are you referencing your docBase? Ours word fine by
> > referencing the ROOT.war.
> >
> > Note, if you update the context.xml in your webapp, it doesn't auto
> > update the cached ROOT.xml; you would need to undeploy the webapp,
> > delete the ROOT.xml from conf/Catalina/localhost  and redeploy the new
> > webapp.
> >
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Sent: Saturday, October 09, 2004 3:33 AM
> > To: [EMAIL PROTECTED]
> > Subject: [Possible bug?] Context configurations and .WAR deployment
> >
> > Hello,
> >
> > I recently upgraded from Tomcat 5.0.19 to Tomcat 5.0.28.
> >
> > I am now running into a conflict between ROOT.xml and ROOT.war.
> >
> > This happens when I deploy to production:
> > 1. I delete the ROOT.war and ROOT directory from
> > /usr/local/tomcat/webapps
> > 2. I delete the ROOT.xml context configuration file in
> > /usr/local/tomcat/conf/Catalina/localhost
> > 3. I then copy the new ROOT.war file to /usr/local/tomcat/webapps
> > 4. I copy the new ROOT.xml file to
> > /usr/local/tomcat/conf/Catalina/localhost
> >
> > This used to work fine in Tomcat 5.0.19.  Now, in 5.0.28, when I startup
> > the server, I get the following error:
> >
> > INFO: Missing application web.xml, using defaults only
> > StandardEngine[Catalina].StandardHost[localhost].StandardContext[]
> >
> > And the new ROOT.war file is never expanded (which is why ROOT.xml can't
> > find web.xml).
> >
> > The only way to get the .war file to expand, is to temporarily remove
> > the
> > ROOT.xml file, startup the server (which then expands the .war file),
> > and
> > then copy the ROOT.xml file over.
> >
> > The reason I'm using the ROOT.xml file is to setup DBCP for this webapp
> > only.  In theory, it's not updated often, but when updates occur, it
> > would be copied over during this process, which is why I do it in my
> > deployment script.
> >
> > What happened since Tomcat 5.0.19 to make it not expand the ROOT.war
> > archive at the same time that it's processing a new ROOT.xml file?
> >
> > Thank you,
> > -Raiden Johnson
> >
> > -
> > 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 PROTECT

RE: [Possible bug?] Context configurations and .WAR deployment

2004-10-11 Thread raiden
Bingo!  That worked.  Thank you!

However, you brought up something that makes a lot more sense to me.  I
always thought it was strange that I had to have a ROOT.xml outside of the
webapp .war file.  It makes a whole lot more sense to me to include
ROOT.xml in the webapp .war file (under META-INF), and to just get rid of
the cached version of ROOT.xml that is generated, when redeploying a new
.war file.

(Though, you would think that Tomcat would get rid of the cached version
on its own.)

I think I'm going to change to that method, so that I can keep everything
in one .war file.

Thank you very much for your help!

-Raiden Johnson


On Mon, 11 Oct 2004, D'Alessandro, Arthur wrote:

> Try changing the docbase from ROOT TO ROOT.war.
>
>  -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Mon Oct 11 13:39:17 2004
> To:   Tomcat Users List
> Subject:  RE: [Possible bug?] Context configurations and .WAR deployment
>
> Hello,
>
> I will try including what I have in ROOT.xml as context.xml in META-INF,
> and then remove the ROOT.xml each time I remove the webapps/ROOT tree to
> copy in a new ROOT.war into webapps.
>
> However, here is what is in my ROOT.xml right now (that is causing the
> problem of ROOT.war not being expanded when ROOT.xml is updated):
>
> 
>directory="logs"  prefix="localhost_log." suffix=".txt"
> timestamp="true"/>
>
>   
> 
>   factory
>   org.apache.commons.dbcp.BasicDataSourceFactory
> 
> 
>   maxActive
>   200
> 
> 
>   maxIdle
>   30
> 
> 
>   maxWait
>   1
> 
> 
>  username
>  test
> 
> 
>  password
>  testpassword
> 
> 
>driverClassName
>com.mysql.jdbc.Driver
> 
> 
>   url
>
> jdbc:mysql://10.0.0.1:3306/net_basic?autoReconnect=true
> 
>   
> 
>
>
> Thank you,
> -Raiden Johnson
>
>
>
> On Sat, 9 Oct 2004, D'Alessandro, Arthur wrote:
>
> > A suggestion, include the ROOT.xml as context.xml under META-INF, tomcat
> > will create it under your host as ROOT.xml when it is deployed.  That
> > doesn't solve the problem your experiencing, what does your ROOT.xml
> > look like? What are you referencing your docBase? Ours word fine by
> > referencing the ROOT.war.
> >
> > Note, if you update the context.xml in your webapp, it doesn't auto
> > update the cached ROOT.xml; you would need to undeploy the webapp,
> > delete the ROOT.xml from conf/Catalina/localhost  and redeploy the new
> > webapp.
> >
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Sent: Saturday, October 09, 2004 3:33 AM
> > To: [EMAIL PROTECTED]
> > Subject: [Possible bug?] Context configurations and .WAR deployment
> >
> > Hello,
> >
> > I recently upgraded from Tomcat 5.0.19 to Tomcat 5.0.28.
> >
> > I am now running into a conflict between ROOT.xml and ROOT.war.
> >
> > This happens when I deploy to production:
> > 1. I delete the ROOT.war and ROOT directory from
> > /usr/local/tomcat/webapps
> > 2. I delete the ROOT.xml context configuration file in
> > /usr/local/tomcat/conf/Catalina/localhost
> > 3. I then copy the new ROOT.war file to /usr/local/tomcat/webapps
> > 4. I copy the new ROOT.xml file to
> > /usr/local/tomcat/conf/Catalina/localhost
> >
> > This used to work fine in Tomcat 5.0.19.  Now, in 5.0.28, when I startup
> > the server, I get the following error:
> >
> > INFO: Missing application web.xml, using defaults only
> > StandardEngine[Catalina].StandardHost[localhost].StandardContext[]
> >
> > And the new ROOT.war file is never expanded (which is why ROOT.xml can't
> > find web.xml).
> >
> > The only way to get the .war file to expand, is to temporarily remove
> > the
> > ROOT.xml file, startup the server (which then expands the .war file),
> > and
> > then copy the ROOT.xml file over.
> >
> > The reason I'm using the ROOT.xml file is to setup DBCP for this webapp
> > only.  In theory, it's not updated often, but when updates occur, it
> > would be copied over during this process, which is why I do it in my
> > deployment script.
> >
> > What happened since Tomcat 5.0.19 to make it not expand the ROOT.war
> > archive at the same time that it's processing a new ROOT.xml file?
> >
> > Thank you,
> > -Raiden Johnson
> >
> > -
> > 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 PR

Adding DataSources to a specific webapp context using MBeanServer

2004-10-11 Thread Jérôme BATON

Hi all,

My goal is to dynamically add DataSources to the context of a specific webapp.


To do this, I wrote a struts plugin which reads a properties file. 


I've looked at the admin webapp for the JMX/MBeanServer code, I used the code in class 
SaveDataSourceAction.
And it works fine _only if_ I choose "Global" (ResourceUtils.GLOBAL_TYPE) as parameter 
and not when I use "Context" (ResourceUtils.CONTEXT_TYPE) in the following code 
fragment.

oname = new ObjectName( domain + ResourceUtils.RESOURCE_TYPE + 
ResourceUtils.GLOBAL_TYPE + ",class=" + params[1] + 
",name=" + params[0]);


I used the same parameters as those seen from the running admin webapp but I get a 
javax.management.InstanceNotFoundException.


javax.management.InstanceNotFoundException: MBeanServer cannot find MBean 
with ObjectName 
Catalina:type=NamingResources,resourcetype=Context,path=/struts-arch,host=localhost
at mx4j.server.MBeanServerImpl.findMBeanMetaData(MBeanServerImpl.java:528)
at mx4j.server.MBeanServerImpl.invoke(MBeanServerImpl.java:1351)
at 
igc.arch.action.plugin.DBPropertiesToContextPlugin.ajouteDataSource(DBPropertiesToContextPlugin.java:236)
at 
igc.arch.action.plugin.DBPropertiesToContextPlugin.init(DBPropertiesToContextPlugin.java:108)
at 
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1158)





I run Tomcat 5.0. on an xp pro box


Thanks a lot 


Jerome 

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



Re: OFF TOPIC-Starting a servlet

2004-10-11 Thread Hassan Schroeder
phil campaigne wrote:
I want to start my application from a start servlet called by the submit 
button and action tag in an html page.  When I press the submit button 
the url uncludes parameters such as,
StartServlet?=&Run=START
which my servlet is not expecting.

Is there a way to start my servlet from an html button that does not 
pass the parameters?
Sure -- don't use a form in the first place; use a regular link.
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

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


RE: [Possible bug?] Context configurations and .WAR deployment

2004-10-11 Thread D'Alessandro, Arthur
Try changing the docbase from ROOT TO ROOT.war.

 -Original Message-
From:   [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent:   Mon Oct 11 13:39:17 2004
To: Tomcat Users List
Subject:RE: [Possible bug?] Context configurations and .WAR deployment

Hello,

I will try including what I have in ROOT.xml as context.xml in META-INF,
and then remove the ROOT.xml each time I remove the webapps/ROOT tree to
copy in a new ROOT.war into webapps.

However, here is what is in my ROOT.xml right now (that is causing the
problem of ROOT.war not being expanded when ROOT.xml is updated):


 

  

  factory
  org.apache.commons.dbcp.BasicDataSourceFactory


  maxActive
  200


  maxIdle
  30


  maxWait
  1


 username
 test


 password
 testpassword


   driverClassName
   com.mysql.jdbc.Driver


  url

jdbc:mysql://10.0.0.1:3306/net_basic?autoReconnect=true

  



Thank you,
-Raiden Johnson



On Sat, 9 Oct 2004, D'Alessandro, Arthur wrote:

> A suggestion, include the ROOT.xml as context.xml under META-INF, tomcat
> will create it under your host as ROOT.xml when it is deployed.  That
> doesn't solve the problem your experiencing, what does your ROOT.xml
> look like? What are you referencing your docBase? Ours word fine by
> referencing the ROOT.war.
>
> Note, if you update the context.xml in your webapp, it doesn't auto
> update the cached ROOT.xml; you would need to undeploy the webapp,
> delete the ROOT.xml from conf/Catalina/localhost  and redeploy the new
> webapp.
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Saturday, October 09, 2004 3:33 AM
> To: [EMAIL PROTECTED]
> Subject: [Possible bug?] Context configurations and .WAR deployment
>
> Hello,
>
> I recently upgraded from Tomcat 5.0.19 to Tomcat 5.0.28.
>
> I am now running into a conflict between ROOT.xml and ROOT.war.
>
> This happens when I deploy to production:
> 1. I delete the ROOT.war and ROOT directory from
> /usr/local/tomcat/webapps
> 2. I delete the ROOT.xml context configuration file in
> /usr/local/tomcat/conf/Catalina/localhost
> 3. I then copy the new ROOT.war file to /usr/local/tomcat/webapps
> 4. I copy the new ROOT.xml file to
> /usr/local/tomcat/conf/Catalina/localhost
>
> This used to work fine in Tomcat 5.0.19.  Now, in 5.0.28, when I startup
> the server, I get the following error:
>
> INFO: Missing application web.xml, using defaults only
> StandardEngine[Catalina].StandardHost[localhost].StandardContext[]
>
> And the new ROOT.war file is never expanded (which is why ROOT.xml can't
> find web.xml).
>
> The only way to get the .war file to expand, is to temporarily remove
> the
> ROOT.xml file, startup the server (which then expands the .war file),
> and
> then copy the ROOT.xml file over.
>
> The reason I'm using the ROOT.xml file is to setup DBCP for this webapp
> only.  In theory, it's not updated often, but when updates occur, it
> would be copied over during this process, which is why I do it in my
> deployment script.
>
> What happened since Tomcat 5.0.19 to make it not expand the ROOT.war
> archive at the same time that it's processing a new ROOT.xml file?
>
> Thank you,
> -Raiden Johnson
>
> -
> 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]



Fw: Realm for Admin tool?

2004-10-11 Thread Andoni
Hello,

I have just changed over from Tocmat 4.0.4 to Tomcat 4.1.24 and now I want to get the 
Admin tool working.

The error message I am getting is "No Realm has been configured to authenticate 
against" but there is no Realm in my Windows version of Admin tool either and it seems 
to work fine!

The manager tool does not work either. I had them working at one stage but then while 
configuring Apache and copying things from the old server I broke it somehow. Can 
somebody please give me a hint as to what change that I made may have broken this?

Thanks,

Andoni.


Re: Undefined hosts being directed to localhost

2004-10-11 Thread David Smith
Or as I've seen, kiddies on the internet are looking for an open proxy 
to hide their tracks or get past firewall rules.  I just make sure my 
server is properly configured not to proxy and ignore it. 

What they really get from a properly configured server is either (a) a 
404 if the requested resource doesn't exist on the local server, or (b) 
the local server's version of that resource if it exists.  In the case 
of requesting the home page of www.yahoo.com, they actually get my 
site's homepage instead.

--David
Hassan Schroeder wrote:
Robert Hunt wrote:
Okay, I should have remembered about the defaultHost attr of the 
 node. (duh Rob!)

However, I'd like to redirect/stop spurious requests that have 
nothing to do with my hosts; I've gotten a couple requests with 
"www.yahoo.com" as the requested host.  Anyone already got a (or 
cleverly configured an existing)  class to do so?

? If a request for "www.yahoo.com" is really being sent to your IP
address, either someone's using a bad nameserver or it's some kind
of attempted exploit.
Is your concern related to the latter?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Forum instead of mailist!!

2004-10-11 Thread Andoni
That's excellent. If I unsubscribe can I still read these? Can I reply?

Andoni.
- Original Message - 
From: "QM" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, October 11, 2004 5:20 PM
Subject: Re: Forum instead of mailist!!


> On Mon, Oct 11, 2004 at 05:13:46PM +0200, Bernhard Slominski wrote:
> : That's why I vote for a forum instead of a mailist!
> 
> Forum-like: http://news.gmane.org/gmane.comp.jakarta.tomcat.user
> 
> NNTP: nntp://news.gmane.org/gmane.comp.jakarta.tomcat.user
> 
> 
> : Does anyone agree?
> 
> Not I  ;)
> 
> 
> -QM
> 
> -- 
> 
> software  -- http://www.brandxdev.net
> tech news -- http://www.RoarNetworX.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: [Possible bug?] Context configurations and .WAR deployment

2004-10-11 Thread raiden
Hello,

I will try including what I have in ROOT.xml as context.xml in META-INF,
and then remove the ROOT.xml each time I remove the webapps/ROOT tree to
copy in a new ROOT.war into webapps.

However, here is what is in my ROOT.xml right now (that is causing the
problem of ROOT.war not being expanded when ROOT.xml is updated):


 

  

  factory
  org.apache.commons.dbcp.BasicDataSourceFactory


  maxActive
  200


  maxIdle
  30


  maxWait
  1


 username
 test


 password
 testpassword


   driverClassName
   com.mysql.jdbc.Driver


  url

jdbc:mysql://10.0.0.1:3306/net_basic?autoReconnect=true

  



Thank you,
-Raiden Johnson



On Sat, 9 Oct 2004, D'Alessandro, Arthur wrote:

> A suggestion, include the ROOT.xml as context.xml under META-INF, tomcat
> will create it under your host as ROOT.xml when it is deployed.  That
> doesn't solve the problem your experiencing, what does your ROOT.xml
> look like? What are you referencing your docBase? Ours word fine by
> referencing the ROOT.war.
>
> Note, if you update the context.xml in your webapp, it doesn't auto
> update the cached ROOT.xml; you would need to undeploy the webapp,
> delete the ROOT.xml from conf/Catalina/localhost  and redeploy the new
> webapp.
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Saturday, October 09, 2004 3:33 AM
> To: [EMAIL PROTECTED]
> Subject: [Possible bug?] Context configurations and .WAR deployment
>
> Hello,
>
> I recently upgraded from Tomcat 5.0.19 to Tomcat 5.0.28.
>
> I am now running into a conflict between ROOT.xml and ROOT.war.
>
> This happens when I deploy to production:
> 1. I delete the ROOT.war and ROOT directory from
> /usr/local/tomcat/webapps
> 2. I delete the ROOT.xml context configuration file in
> /usr/local/tomcat/conf/Catalina/localhost
> 3. I then copy the new ROOT.war file to /usr/local/tomcat/webapps
> 4. I copy the new ROOT.xml file to
> /usr/local/tomcat/conf/Catalina/localhost
>
> This used to work fine in Tomcat 5.0.19.  Now, in 5.0.28, when I startup
> the server, I get the following error:
>
> INFO: Missing application web.xml, using defaults only
> StandardEngine[Catalina].StandardHost[localhost].StandardContext[]
>
> And the new ROOT.war file is never expanded (which is why ROOT.xml can't
> find web.xml).
>
> The only way to get the .war file to expand, is to temporarily remove
> the
> ROOT.xml file, startup the server (which then expands the .war file),
> and
> then copy the ROOT.xml file over.
>
> The reason I'm using the ROOT.xml file is to setup DBCP for this webapp
> only.  In theory, it's not updated often, but when updates occur, it
> would be copied over during this process, which is why I do it in my
> deployment script.
>
> What happened since Tomcat 5.0.19 to make it not expand the ROOT.war
> archive at the same time that it's processing a new ROOT.xml file?
>
> Thank you,
> -Raiden Johnson
>
> -
> 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: Forum instead of mailist!!

2004-10-11 Thread Michael McGrady
-1 if I had a vote.  Somethings need to stay the same to work on 
important things.

Michael
Ben Souther wrote:
-1
This comes up every so often and goes nowhere.
The auto replies are a minor annoyance but easy enough to delete.

On Mon, 2004-10-11 at 11:13, Bernhard Slominski wrote:
 

These autoreply is really annoying, but it can easily happen if you forget
to unsubscribe, before leaving on holiday
That's why I vote for a forum instead of a mailist!
Does anyone agree?
Cheers
Bernhard
-UrsprÃngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 11. Oktober 2004 16:59
An: Tomcat Users List
Betreff: AutoReply: Tomcat 4 as an NT Service

Hello "Tomcat Users List" <[EMAIL PROTECTED]>,
This refers to your mail with subject as "Tomcat 4 as an NT Service".
Thank you for sending your CV and registering with A.S. Consultancy
Services.
Our team will review your CV and match it against current requirements. If
your profile matches with any ongoing opening, we will contact you by
telephone / email.
We recommend that you update your profile and send us an updated CV whenever
your contact details or your career path changes, so that your record is
up-to-date with us.
Please be assured that your CV will remain confidential with us and we will
submit your profile to our clients only after due consultation with you.
In case you require any further information please do contact us.
with warm regards,
Staffing Team
A.S. Consultancy Services 
#1205, 2nd Main, 2nd Cross, Vijayanagar, Bangalore - 560040, India
Tele - 91 80 2310 9012, Telefax - 91 80 2330 5364, Email -
[EMAIL PROTECTED] 
URL: www.asconsultancy.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: Forum instead of mailist!!

2004-10-11 Thread Robert F. Hall
Ben Souther wrote:
-1
This comes up every so often and goes nowhere.
The auto replies are a minor annoyance but easy enough to delete.
 

Or you can set up (depending on your email client) a Junk filter to 
handle them.
BTW, is "-1" a thread weighting ?

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


OFF TOPIC-Starting a servlet

2004-10-11 Thread phil campaigne
I want to start my application from a start servlet called by the submit 
button and action tag in an html page.  When I press the submit button 
the url uncludes parameters such as,
StartServlet?=&Run=START
which my servlet is not expecting.

Is there a way to start my servlet from an html button that does not 
pass the parameters?
Phil

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


Re: Forum instead of mailist!!

2004-10-11 Thread Ben Souther
-1

This comes up every so often and goes nowhere.
The auto replies are a minor annoyance but easy enough to delete.




On Mon, 2004-10-11 at 11:13, Bernhard Slominski wrote:
> These autoreply is really annoying, but it can easily happen if you forget
> to unsubscribe, before leaving on holiday
> That's why I vote for a forum instead of a mailist!
> Does anyone agree?
> 
> Cheers
> 
> Bernhard
> 
> -UrsprÃngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 11. Oktober 2004 16:59
> An: Tomcat Users List
> Betreff: AutoReply: Tomcat 4 as an NT Service
> 
> 
> 
> Hello "Tomcat Users List" <[EMAIL PROTECTED]>,
>  
> This refers to your mail with subject as "Tomcat 4 as an NT Service".
> Thank you for sending your CV and registering with A.S. Consultancy
> Services.
>  
> Our team will review your CV and match it against current requirements. If
> your profile matches with any ongoing opening, we will contact you by
> telephone / email.
>  
> We recommend that you update your profile and send us an updated CV whenever
> your contact details or your career path changes, so that your record is
> up-to-date with us.
>  
> Please be assured that your CV will remain confidential with us and we will
> submit your profile to our clients only after due consultation with you.
>  
> In case you require any further information please do contact us.
> with warm regards,
>  
> Staffing Team
> A.S. Consultancy Services 
> #1205, 2nd Main, 2nd Cross, Vijayanagar, Bangalore - 560040, India
> Tele - 91 80 2310 9012, Telefax - 91 80 2330 5364, Email -
> [EMAIL PROTECTED] 
> URL: www.asconsultancy.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]



AS/400 DB2

2004-10-11 Thread sudip shrestha
Hi !
I am trying to connect to an AS/400 DB2 via IBM DataDirect JDBC 
DriverWondering if anybody has any experience with this.
You have to specify a location and collectionId attribute.  My url 
connection string looks like this:
"jdbc:datadirect:db2://serverName:5;Location=nameOfDatabase;CollectionId=DEFAULT;"

I am providing a 'existing' database name [termed as library in AS/400 
language] as nameOfDatabase in the string..but the exception thrown is:
-
java.sql.SQLException: [DataDirect][DB2 JDBC Driver]An invalid databaseName 
was specified.
   at com.ddtek.jdbc.base.BaseExceptions.createException(Unknown 
Source)
   at com.ddtek.jdbc.base.BaseExceptions.getException(Unknown Source)
   at com.ddtek.jdbc.db2.DB2ImplConnection.open(Unknown Source)
   at com.ddtek.jdbc.base.BaseConnection.connect(Unknown Source)
   at com.ddtek.jdbc.base.BaseConnection.setupImplConnection(Unknown 
Source)
   at com.ddtek.jdbc.base.BaseConnection.open(Unknown Source)
   at com.ddtek.jdbc.base.BaseDriver.connect(Unknown Source)
   at java.sql.DriverManager.getConnection(DriverManager.java:525)
   at java.sql.DriverManager.getConnection(DriverManager.java:171)
   at ddJdbcTest.main(ddJdbcTest.java:29)
-
So, it seems to make a connection but fails to find that database which does 
exists!  Is there something else to this?  If anybody else has any 
experience, please let me know!

Thanx,
Sudip Shrestha

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


RE: Forum instead of mailist!!

2004-10-11 Thread Caldarale, Charles R
> From: QM [mailto:[EMAIL PROTECTED]
> Subject: Re: Forum instead of mailist!!
> 
> On Mon, Oct 11, 2004 at 05:13:46PM +0200, Bernhard Slominski wrote:
>> : That's why I vote for a forum instead of a mailist!
>> 
>> Forum-like: http://news.gmane.org/gmane.comp.jakarta.tomcat.user
>> 
>> NNTP: nntp://news.gmane.org/gmane.comp.jakarta.tomcat.user
>> 
>> : Does anyone agree?
> 
> Not I  ;)

Nor I. Much easier to use the delete key when necessary, and I don't have to go 
hunting for the information - it comes to me.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and 
is thus for use only by the intended recipient. If you received this in error, please 
contact the sender and delete the e-mail and its attachments from all computers.

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



RE: tomcat oracle jdbc pooling

2004-10-11 Thread David Short
Are you reading and setting the parameter values in your code before you
create the connection pool?

e.g. int MaxStatements =
Integer.parseInt(application.getInitParameter("maxStatements"));

-Original Message-
From: Bj [mailto:[EMAIL PROTECTED]
Sent: Monday, October 11, 2004 9:30 AM
To: Tomcat Users List
Subject: Re: tomcat oracle jdbc pooling


hi,

I'm using simple OracleDatasource and I want to activate
OracleDataSource.setMaxStatements() and
OracleDataSource.setImplicitCachingEnabled() through tomcat server.xml
or application web.xml.

For tomcat 5.0.19, when I add parameters in web.xml or server.xml it
doesn't work.

I've tried in web/xml :

 implicitCachingEnabled
 true


 maxStatements
 8


In server.xml I've tried :

implicitCachingEnabled
true

...

I'm not sure that it's possible to do this but it could be great.

Bj



David Short a écrit :

> Take a look here to get the skinny on what's available
>
(http://www.exciton.cs.rice.edu/JavaResources/Oracle/oracle/jdbc/pool/Oracle
> ConnectionCacheImpl.html).  Also, I set the "Setters" in my web.xml file.

-
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 oracle jdbc pooling

2004-10-11 Thread Bj
hi,
I'm using simple OracleDatasource and I want to activate 
OracleDataSource.setMaxStatements() and 
OracleDataSource.setImplicitCachingEnabled() through tomcat server.xml 
or application web.xml.

For tomcat 5.0.19, when I add parameters in web.xml or server.xml it 
doesn't work.

I've tried in web/xml :

implicitCachingEnabled
true


maxStatements
8

In server.xml I've tried :

implicitCachingEnabled
true

...
I'm not sure that it's possible to do this but it could be great.
Bj

David Short a écrit :
Take a look here to get the skinny on what's available
(http://www.exciton.cs.rice.edu/JavaResources/Oracle/oracle/jdbc/pool/Oracle
ConnectionCacheImpl.html).  Also, I set the "Setters" in my web.xml file.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Forum instead of mailist!!

2004-10-11 Thread QM
On Mon, Oct 11, 2004 at 05:13:46PM +0200, Bernhard Slominski wrote:
: That's why I vote for a forum instead of a mailist!

Forum-like: http://news.gmane.org/gmane.comp.jakarta.tomcat.user

NNTP: nntp://news.gmane.org/gmane.comp.jakarta.tomcat.user


: Does anyone agree?

Not I  ;)


-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Re: How to get rid of 'null' in forms

2004-10-11 Thread Ben Souther
This is the expected behavior.

See: 
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25241
for more details.



On Mon, 2004-10-11 at 11:40, Michael Truman wrote:
> I am attempting to move a web application from Tomcat 4.0.6 to 5.0.27.
>   But I am having a problem - in 5.0.27 when a JSP displays a form
> backed by a javabean the uninitialized properties of the bean are
> displayed as 'null' rather than as a blank string as was done in
> 4.0.6.   I know some other app servers have a configuration parameter
> such as printNulls which can be set to false to fix this.   But in
> looking at the Tomcat documentation I don't see anything like this.  
> Have I overlooked something or is this now the expected behaviour?
> 
> Thanks,
> Mike
> 
> 
> Michael Truman
> [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 









On Mon, 2004-10-11 at 11:40, Michael Truman wrote:
> I am attempting to move a web application from Tomcat 4.0.6 to 5.0.27.
>   But I am having a problem - in 5.0.27 when a JSP displays a form
> backed by a javabean the uninitialized properties of the bean are
> displayed as 'null' rather than as a blank string as was done in
> 4.0.6.   I know some other app servers have a configuration parameter
> such as printNulls which can be set to false to fix this.   But in
> looking at the Tomcat documentation I don't see anything like this.  
> Have I overlooked something or is this now the expected behaviour?
> 
> Thanks,
> Mike
> 
> 
> Michael Truman
> [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]



Katja Handtusch/268/DCAG/DCX ist außer Haus.

2004-10-11 Thread katja . handtusch




Ich werde ab  11.10.2004 nicht im Büro sein. Ich kehre zurück am
22.10.2004.

Ich werde Ihre Nachricht nach meiner Rückkehr beantworten.
Bei dringenden Angelegenheiten wenden Sie sich bitte an meine Vertretung
Alexandra Pürschel (Tel.: 5463).


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



2 way SSL with Axis and Tomcat as a Service

2004-10-11 Thread Hubble, Christopher
Welp, after much trial and tribulation, I finally got axis using 2 way ssl.
This required me to custom set up tomcat as a service, and I finally got
that working.  Once I get my code all cleaned up, I'll post the relavent
details.

Chris

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



Re: Undefined hosts being directed to localhost

2004-10-11 Thread Hassan Schroeder
Robert Hunt wrote:
Okay, I should have remembered about the defaultHost attr of the 
 node. (duh Rob!)

However, I'd like to redirect/stop spurious requests that have nothing 
to do with my hosts; I've gotten a couple requests with "www.yahoo.com" 
as the requested host.  Anyone already got a (or cleverly configured an 
existing)  class to do so?
? If a request for "www.yahoo.com" is really being sent to your IP
address, either someone's using a bad nameserver or it's some kind
of attempted exploit.
Is your concern related to the latter?
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

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


Re: Custom configuration tags

2004-10-11 Thread Filip Hanik - Dev
yes, in web.xml, and then you can read the parameter from the ServletContext object

Filip

- Original Message - 
From: "Hubble, Christopher" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 11, 2004 10:38 AM
Subject: Custom configuration tags


Is there a way to define custom configurations in tomcat?  I have a servlet
that I want to save in a user definable directory.  Right now I have a
simple config file that I read in from the servlet and get the path from.
Is there some way to define this in server.xml or web.xml instead?

Chris

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



Custom configuration tags

2004-10-11 Thread Hubble, Christopher
Is there a way to define custom configurations in tomcat?  I have a servlet
that I want to save in a user definable directory.  Right now I have a
simple config file that I read in from the servlet and get the path from.
Is there some way to define this in server.xml or web.xml instead?

Chris

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



How to get rid of 'null' in forms

2004-10-11 Thread Michael Truman
I am attempting to move a web application from Tomcat 4.0.6 to 5.0.27.
  But I am having a problem - in 5.0.27 when a JSP displays a form
backed by a javabean the uninitialized properties of the bean are
displayed as 'null' rather than as a blank string as was done in
4.0.6.   I know some other app servers have a configuration parameter
such as printNulls which can be set to false to fix this.   But in
looking at the Tomcat documentation I don't see anything like this.  
Have I overlooked something or is this now the expected behaviour?

Thanks,
Mike


Michael Truman
[EMAIL PROTECTED]

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



RE: Tomcat 4 as an NT Service

2004-10-11 Thread Hubble, Christopher
If it were just one machine, that wouldn't be a problem.  However, I need to
set this up so that any user can install it.  I think I finally got it
working, however, it doesn't seem to want to stop.  Anyone have any
suggestions?

Chris

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Monday, October 11, 2004 11:29 AM
To: [EMAIL PROTECTED]
Subject: RE: Tomcat 4 as an NT Service


I see.. Why don't you try to modify the registry key directly.

Head over to HKLM\SYSTEM\CurrentControlSet\Services\[your tomcat service]\

Look for the "ImagePath" key.. You should be able to update that value to
whatever you want.

Thanks,
 
Azam Khan
Network Data Support Center
Verizon Wireless
866-222-7114
http://ndsc.eng.vzwcorp.com

-Original Message-
From: Hubble, Christopher [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 11, 2004 11:11 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat 4 as an NT Service

I'm doing client auth and need to provide the server with a truststore.

Your method only works for one initial run of tomcat.  As soon as you stop
the service, the parameter goes away, and upon starting again, it's back to
the default.

Chris

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Monday, October 11, 2004 11:16 AM
To: [EMAIL PROTECTED]
Subject: RE: Tomcat 4 as an NT Service


Hello Chris:
If you don't mind me asking, what args do you need to pass to enable SSL? My
implementation of SSL is all done through my {CATALINA_HOME}\conf\server.xml
file... 

In either case, if you wish to pass arguments to the Apache Tomcat service,
just go into computer management (right click my computer, properties) and
then scroll down to services, double click the Apache Tomcat service and you
can specify Start parameters towards the bottom of that dialog window.

Good luck

Azam Khan

-Original Message-
From: Hubble, Christopher [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 11, 2004 10:54 AM
To: [EMAIL PROTECTED]
Subject: Tomcat 4 as an NT Service

I'm trying to install tomcat 4 as a service.  I can't use the exe as I need
to pass in jvm args for SSL.  I've tried multiple different args to
tomcat.exe.  I've seen several posts mentioning that the jvm's are
different.  I tried the one in java_home\jre\bin\server and the one in
client.  They both install without any errors, but when I go to start the
service, it tells me that it couldn't start and there was no error.  I tried
installing the service with the jvm.dll in program
files\java\j2re1.4.2_03\bin\client, and when I first started it, there was
no error, but it immediately stopped.  I then started it again and it gave
me the following"Error 1607: The process terminated unexpectedly"  Any help
would be appreciated.

Chris

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

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



RE: Forum instead of mailist!!

2004-10-11 Thread Dale, Matt
This isn't the same as an out of office which can easily be set up to only respond to 
each address once. You shouldnt be signing up to a list like this using an address 
with any kind of auto-responder.

I prefer this way of working to a forum as do most on here.

-Original Message-
From: Bernhard Slominski [mailto:[EMAIL PROTECTED]
Sent: 11 October 2004 16:14
To: 'Tomcat Users List'
Subject: Forum instead of mailist!!


These autoreply is really annoying, but it can easily happen if you forget
to unsubscribe, before leaving on holiday
That's why I vote for a forum instead of a mailist!
Does anyone agree?

Cheers

Bernhard

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 11. Oktober 2004 16:59
An: Tomcat Users List
Betreff: AutoReply: Tomcat 4 as an NT Service



Hello "Tomcat Users List" <[EMAIL PROTECTED]>,
 
This refers to your mail with subject as "Tomcat 4 as an NT Service".
Thank you for sending your CV and registering with A.S. Consultancy
Services.
 
Our team will review your CV and match it against current requirements. If
your profile matches with any ongoing opening, we will contact you by
telephone / email.
 
We recommend that you update your profile and send us an updated CV whenever
your contact details or your career path changes, so that your record is
up-to-date with us.
 
Please be assured that your CV will remain confidential with us and we will
submit your profile to our clients only after due consultation with you.
 
In case you require any further information please do contact us.
with warm regards,
 
Staffing Team
A.S. Consultancy Services 
#1205, 2nd Main, 2nd Cross, Vijayanagar, Bangalore - 560040, India
Tele - 91 80 2310 9012, Telefax - 91 80 2330 5364, Email -
[EMAIL PROTECTED] 
URL: www.asconsultancy.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]

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.


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

RE: tomcat oracle jdbc pooling

2004-10-11 Thread David Short
Take a look here to get the skinny on what's available
(http://www.exciton.cs.rice.edu/JavaResources/Oracle/oracle/jdbc/pool/Oracle
ConnectionCacheImpl.html).  Also, I set the "Setters" in my web.xml file.

 is set in either your server.xml or your
/tomcat/conf/catalina/localhost/webapp.xml file, depending on the version of
Tomcat you're using.


web.xml


http://java.sun.com//dtd/web-app_2_3.dtd";>


  
  
  
jdbcURL
jdbc:oracle:oci8:@SIDNameHere
  

  

  
  
user
UserNameHere
  

  
  
password
PasswordHere
  

  
  
minLimit
2
  

  
  
maxLimit
50
  

  
jdbc/WEBAPPNameHere
javax.sql.DataSource
Container
  




-Original Message-
From: Bj [mailto:[EMAIL PROTECTED]
Sent: Monday, October 11, 2004 6:49 AM
To: Tomcat Users List
Subject: Re: tomcat oracle jdbc pooling


I've tried but I didn't manage to set these parameters in the server.xml
tomcat file. I can do this in the java code but it increases oracle
dependancy and I would like to avoid that.

Bj

David Smith a écrit :

> I'll go on a limb here.  I just started actually reading the fantastic
> docs on JDBC.  Been using databases essentially by example for a couple
> years now.  It looks like you're replacing the DBCP datasource with the
> Oracle pooling datasource.  In that case you should take a look at the
> setters for the OracleDataSourceFactory to see what parameters are
> available.
>
> --David
>
> Bj wrote:
>
>> Hi,
>>
>> I'm using tomcat jdbc connection pooling through dbcp
>> datasourceFactory and it works well.
>> Now, I want to use oracle.jdbc.pool.OracleDataSourceFactory to
>> instanciate oracle.jdbc.pool.OracleDataSource.
>>
>> It seems to work, but I'm wondering is there's some specific
>> parameters to add ?
>> I also want to manage MaxStatements and ExplicitCachingEnabled
>> parameters in the Tomcat server XML but it doesn't work with these
>> parameter names. Does someone know how to do this ?
>>
>> I would like my java code to only use standard jdbc classes and to
>> have the benefit of Oracle jdbc statement pooling. Is there a way to
>> do this ?
>>
>> best regards,
>>
>> Bj
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

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




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



RE: Tomcat 4 as an NT Service

2004-10-11 Thread khanaz
I see.. Why don't you try to modify the registry key directly.

Head over to HKLM\SYSTEM\CurrentControlSet\Services\[your tomcat service]\

Look for the "ImagePath" key.. You should be able to update that value to
whatever you want.

Thanks,
 
Azam Khan
Network Data Support Center
Verizon Wireless
866-222-7114
http://ndsc.eng.vzwcorp.com

-Original Message-
From: Hubble, Christopher [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 11, 2004 11:11 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat 4 as an NT Service

I'm doing client auth and need to provide the server with a truststore.

Your method only works for one initial run of tomcat.  As soon as you stop
the service, the parameter goes away, and upon starting again, it's back to
the default.

Chris

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Monday, October 11, 2004 11:16 AM
To: [EMAIL PROTECTED]
Subject: RE: Tomcat 4 as an NT Service


Hello Chris:
If you don't mind me asking, what args do you need to pass to enable SSL? My
implementation of SSL is all done through my {CATALINA_HOME}\conf\server.xml
file... 

In either case, if you wish to pass arguments to the Apache Tomcat service,
just go into computer management (right click my computer, properties) and
then scroll down to services, double click the Apache Tomcat service and you
can specify Start parameters towards the bottom of that dialog window.

Good luck

Azam Khan

-Original Message-
From: Hubble, Christopher [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 11, 2004 10:54 AM
To: [EMAIL PROTECTED]
Subject: Tomcat 4 as an NT Service

I'm trying to install tomcat 4 as a service.  I can't use the exe as I need
to pass in jvm args for SSL.  I've tried multiple different args to
tomcat.exe.  I've seen several posts mentioning that the jvm's are
different.  I tried the one in java_home\jre\bin\server and the one in
client.  They both install without any errors, but when I go to start the
service, it tells me that it couldn't start and there was no error.  I tried
installing the service with the jvm.dll in program
files\java\j2re1.4.2_03\bin\client, and when I first started it, there was
no error, but it immediately stopped.  I then started it again and it gave
me the following"Error 1607: The process terminated unexpectedly"  Any help
would be appreciated.

Chris

-
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: Forum instead of mailist!!

2004-10-11 Thread Andoni
I don't see why we just can't use NNTP and have a proper newsgroup.

Andoni.

- Original Message - 
From: "Bernhard Slominski" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Monday, October 11, 2004 4:13 PM
Subject: Forum instead of mailist!!


> These autoreply is really annoying, but it can easily happen if you forget
> to unsubscribe, before leaving on holiday
> That's why I vote for a forum instead of a mailist!
> Does anyone agree?
>
> Cheers
>
> Bernhard
>
> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 11. Oktober 2004 16:59
> An: Tomcat Users List
> Betreff: AutoReply: Tomcat 4 as an NT Service
>
>
>
> Hello "Tomcat Users List" <[EMAIL PROTECTED]>,
>
> This refers to your mail with subject as "Tomcat 4 as an NT Service".
> Thank you for sending your CV and registering with A.S. Consultancy
> Services.
>
> Our team will review your CV and match it against current requirements. If
> your profile matches with any ongoing opening, we will contact you by
> telephone / email.
>
> We recommend that you update your profile and send us an updated CV
whenever
> your contact details or your career path changes, so that your record is
> up-to-date with us.
>
> Please be assured that your CV will remain confidential with us and we
will
> submit your profile to our clients only after due consultation with you.
>
> In case you require any further information please do contact us.
> with warm regards,
>
> Staffing Team
> A.S. Consultancy Services
> #1205, 2nd Main, 2nd Cross, Vijayanagar, Bangalore - 560040, India
> Tele - 91 80 2310 9012, Telefax - 91 80 2330 5364, Email -
> [EMAIL PROTECTED]
> URL: www.asconsultancy.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: Forum instead of mailist!!

2004-10-11 Thread devenderb
absolutly, I just registerd and have more than 50 mails to delete in just 4 
hours.
any way this will be my last mail. I am oing to unscribe

Quoting Bernhard Slominski <[EMAIL PROTECTED]>:

> These autoreply is really annoying, but it can easily happen if you forget
> to unsubscribe, before leaving on holiday
> That's why I vote for a forum instead of a mailist!
> Does anyone agree?
> 
> Cheers
> 
> Bernhard
> 
> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 11. Oktober 2004 16:59
> An: Tomcat Users List
> Betreff: AutoReply: Tomcat 4 as an NT Service
> 
> 
> 
> Hello "Tomcat Users List" <[EMAIL PROTECTED]>,
>  
> This refers to your mail with subject as "Tomcat 4 as an NT Service".
> Thank you for sending your CV and registering with A.S. Consultancy
> Services.
>  
> Our team will review your CV and match it against current requirements. If
> your profile matches with any ongoing opening, we will contact you by
> telephone / email.
>  
> We recommend that you update your profile and send us an updated CV whenever
> your contact details or your career path changes, so that your record is
> up-to-date with us.
>  
> Please be assured that your CV will remain confidential with us and we will
> submit your profile to our clients only after due consultation with you.
>  
> In case you require any further information please do contact us.
> with warm regards,
>  
> Staffing Team
> A.S. Consultancy Services 
> #1205, 2nd Main, 2nd Cross, Vijayanagar, Bangalore - 560040, India
> Tele - 91 80 2310 9012, Telefax - 91 80 2330 5364, Email -
> [EMAIL PROTECTED] 
> URL: www.asconsultancy.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]



Forum instead of mailist!!

2004-10-11 Thread Bernhard Slominski
These autoreply is really annoying, but it can easily happen if you forget
to unsubscribe, before leaving on holiday
That's why I vote for a forum instead of a mailist!
Does anyone agree?

Cheers

Bernhard

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 11. Oktober 2004 16:59
An: Tomcat Users List
Betreff: AutoReply: Tomcat 4 as an NT Service



Hello "Tomcat Users List" <[EMAIL PROTECTED]>,
 
This refers to your mail with subject as "Tomcat 4 as an NT Service".
Thank you for sending your CV and registering with A.S. Consultancy
Services.
 
Our team will review your CV and match it against current requirements. If
your profile matches with any ongoing opening, we will contact you by
telephone / email.
 
We recommend that you update your profile and send us an updated CV whenever
your contact details or your career path changes, so that your record is
up-to-date with us.
 
Please be assured that your CV will remain confidential with us and we will
submit your profile to our clients only after due consultation with you.
 
In case you require any further information please do contact us.
with warm regards,
 
Staffing Team
A.S. Consultancy Services 
#1205, 2nd Main, 2nd Cross, Vijayanagar, Bangalore - 560040, India
Tele - 91 80 2310 9012, Telefax - 91 80 2330 5364, Email -
[EMAIL PROTECTED] 
URL: www.asconsultancy.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: Tomcat 4 as an NT Service

2004-10-11 Thread Hubble, Christopher
I'm doing client auth and need to provide the server with a truststore.

Your method only works for one initial run of tomcat.  As soon as you stop
the service, the parameter goes away, and upon starting again, it's back to
the default.

Chris

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Monday, October 11, 2004 11:16 AM
To: [EMAIL PROTECTED]
Subject: RE: Tomcat 4 as an NT Service


Hello Chris:
If you don't mind me asking, what args do you need to pass to enable SSL? My
implementation of SSL is all done through my {CATALINA_HOME}\conf\server.xml
file... 

In either case, if you wish to pass arguments to the Apache Tomcat service,
just go into computer management (right click my computer, properties) and
then scroll down to services, double click the Apache Tomcat service and you
can specify Start parameters towards the bottom of that dialog window.

Good luck

Azam Khan

-Original Message-
From: Hubble, Christopher [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 11, 2004 10:54 AM
To: [EMAIL PROTECTED]
Subject: Tomcat 4 as an NT Service

I'm trying to install tomcat 4 as a service.  I can't use the exe as I need
to pass in jvm args for SSL.  I've tried multiple different args to
tomcat.exe.  I've seen several posts mentioning that the jvm's are
different.  I tried the one in java_home\jre\bin\server and the one in
client.  They both install without any errors, but when I go to start the
service, it tells me that it couldn't start and there was no error.  I tried
installing the service with the jvm.dll in program
files\java\j2re1.4.2_03\bin\client, and when I first started it, there was
no error, but it immediately stopped.  I then started it again and it gave
me the following"Error 1607: The process terminated unexpectedly"  Any help
would be appreciated.

Chris

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

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

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



RE: Tomcat 4 as an NT Service

2004-10-11 Thread khanaz
Hello Chris:
If you don't mind me asking, what args do you need to pass to enable SSL? My
implementation of SSL is all done through my {CATALINA_HOME}\conf\server.xml
file... 

In either case, if you wish to pass arguments to the Apache Tomcat service,
just go into computer management (right click my computer, properties) and
then scroll down to services, double click the Apache Tomcat service and you
can specify Start parameters towards the bottom of that dialog window.

Good luck

Azam Khan

-Original Message-
From: Hubble, Christopher [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 11, 2004 10:54 AM
To: [EMAIL PROTECTED]
Subject: Tomcat 4 as an NT Service

I'm trying to install tomcat 4 as a service.  I can't use the exe as I need
to pass in jvm args for SSL.  I've tried multiple different args to
tomcat.exe.  I've seen several posts mentioning that the jvm's are
different.  I tried the one in java_home\jre\bin\server and the one in
client.  They both install without any errors, but when I go to start the
service, it tells me that it couldn't start and there was no error.  I tried
installing the service with the jvm.dll in program
files\java\j2re1.4.2_03\bin\client, and when I first started it, there was
no error, but it immediately stopped.  I then started it again and it gave
me the following"Error 1607: The process terminated unexpectedly"  Any help
would be appreciated.

Chris

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



AutoReply: Tomcat 4 as an NT Service

2004-10-11 Thread tester

Hello "Tomcat Users List" <[EMAIL PROTECTED]>,
 
This refers to your mail with subject as "Tomcat 4 as an NT Service".
Thank you for sending your CV and registering with A.S. Consultancy Services.
 
Our team will review your CV and match it against current requirements. If your 
profile matches with any ongoing opening, we will contact you by telephone / email.
 
We recommend that you update your profile and send us an updated CV whenever your 
contact details or your career path changes, so that your record is up-to-date with us.
 
Please be assured that your CV will remain confidential with us and we will submit 
your profile to our clients only after due consultation with you.
 
In case you require any further information please do contact us.
with warm regards,
 
Staffing Team
A.S. Consultancy Services 
#1205, 2nd Main, 2nd Cross, Vijayanagar, Bangalore - 560040, India
Tele - 91 80 2310 9012, Telefax - 91 80 2330 5364, Email - [EMAIL PROTECTED] 
URL: www.asconsultancy.com


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



Tomcat 4 as an NT Service

2004-10-11 Thread Hubble, Christopher
I'm trying to install tomcat 4 as a service.  I can't use the exe as I need
to pass in jvm args for SSL.  I've tried multiple different args to
tomcat.exe.  I've seen several posts mentioning that the jvm's are
different.  I tried the one in java_home\jre\bin\server and the one in
client.  They both install without any errors, but when I go to start the
service, it tells me that it couldn't start and there was no error.  I tried
installing the service with the jvm.dll in program
files\java\j2re1.4.2_03\bin\client, and when I first started it, there was
no error, but it immediately stopped.  I then started it again and it gave
me the following"Error 1607: The process terminated unexpectedly"  Any help
would be appreciated.

Chris

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



Re: AutoReply: ***

2004-10-11 Thread Bj
I'm not the owner of this list but I've already wrote to this address.
By the way, I didn't found any moderator or owner address for the 
mailing lists on the Jakarta site.

Bj
Andoni a écrit :
Can the owner of the list maybe write to [EMAIL PROTECTED] and ask them
to fix this problem?
Andoni.
- Original Message - 
From: <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, October 11, 2004 2:48 PM
Subject: AutoReply: Re: tomcat oracle jdbc pooling


Hello "Tomcat Users List" <[EMAIL PROTECTED]>,
This refers to your mail with subject as "Re: tomcat oracle jdbc pooling".
Thank you for sending your CV and registering with A.S. Consultancy
Services.
Our team will review your CV and match it against current requirements. If
your profile matches with any ongoing opening, we will contact you by
telephone / email.
We recommend that you update your profile and send us an updated CV
whenever your contact details or your career path changes, so that your
record is up-to-date with us.
Please be assured that your CV will remain confidential with us and we
will submit your profile to our clients only after due consultation with
you.
In case you require any further information please do contact us.
with warm regards,
Staffing Team
A.S. Consultancy Services
#1205, 2nd Main, 2nd Cross, Vijayanagar, Bangalore - 560040, India
Tele - 91 80 2310 9012, Telefax - 91 80 2330 5364, Email -
[EMAIL PROTECTED]
URL: www.asconsultancy.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: AutoReply: ***

2004-10-11 Thread Andoni
Can the owner of the list maybe write to [EMAIL PROTECTED] and ask them
to fix this problem?

Andoni.


- Original Message - 
From: <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, October 11, 2004 2:48 PM
Subject: AutoReply: Re: tomcat oracle jdbc pooling


>
> Hello "Tomcat Users List" <[EMAIL PROTECTED]>,
>
> This refers to your mail with subject as "Re: tomcat oracle jdbc pooling".
> Thank you for sending your CV and registering with A.S. Consultancy
Services.
>
> Our team will review your CV and match it against current requirements. If
your profile matches with any ongoing opening, we will contact you by
telephone / email.
>
> We recommend that you update your profile and send us an updated CV
whenever your contact details or your career path changes, so that your
record is up-to-date with us.
>
> Please be assured that your CV will remain confidential with us and we
will submit your profile to our clients only after due consultation with
you.
>
> In case you require any further information please do contact us.
> with warm regards,
>
> Staffing Team
> A.S. Consultancy Services
> #1205, 2nd Main, 2nd Cross, Vijayanagar, Bangalore - 560040, India
> Tele - 91 80 2310 9012, Telefax - 91 80 2330 5364, Email -
[EMAIL PROTECTED]
> URL: www.asconsultancy.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]



AutoReply: Re: tomcat oracle jdbc pooling

2004-10-11 Thread tester

Hello "Tomcat Users List" <[EMAIL PROTECTED]>,
 
This refers to your mail with subject as "Re: tomcat oracle jdbc pooling".
Thank you for sending your CV and registering with A.S. Consultancy Services.
 
Our team will review your CV and match it against current requirements. If your 
profile matches with any ongoing opening, we will contact you by telephone / email.
 
We recommend that you update your profile and send us an updated CV whenever your 
contact details or your career path changes, so that your record is up-to-date with us.
 
Please be assured that your CV will remain confidential with us and we will submit 
your profile to our clients only after due consultation with you.
 
In case you require any further information please do contact us.
with warm regards,
 
Staffing Team
A.S. Consultancy Services 
#1205, 2nd Main, 2nd Cross, Vijayanagar, Bangalore - 560040, India
Tele - 91 80 2310 9012, Telefax - 91 80 2330 5364, Email - [EMAIL PROTECTED] 
URL: www.asconsultancy.com


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



Re: tomcat oracle jdbc pooling

2004-10-11 Thread Bj
I've tried but I didn't manage to set these parameters in the server.xml 
tomcat file. I can do this in the java code but it increases oracle 
dependancy and I would like to avoid that.

Bj
David Smith a écrit :
I'll go on a limb here.  I just started actually reading the fantastic 
docs on JDBC.  Been using databases essentially by example for a couple 
years now.  It looks like you're replacing the DBCP datasource with the 
Oracle pooling datasource.  In that case you should take a look at the 
setters for the OracleDataSourceFactory to see what parameters are 
available.

--David
Bj wrote:
Hi,
I'm using tomcat jdbc connection pooling through dbcp 
datasourceFactory and it works well.
Now, I want to use oracle.jdbc.pool.OracleDataSourceFactory to 
instanciate oracle.jdbc.pool.OracleDataSource.

It seems to work, but I'm wondering is there's some specific 
parameters to add ?
I also want to manage MaxStatements and ExplicitCachingEnabled 
parameters in the Tomcat server XML but it doesn't work with these 
parameter names. Does someone know how to do this ?

I would like my java code to only use standard jdbc classes and to 
have the benefit of Oracle jdbc statement pooling. Is there a way to 
do this ?

best regards,
Bj
-
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]


AutoReply: Re: Undefined hosts being directed to localhost

2004-10-11 Thread tester

Hello "Tomcat Users List" <[EMAIL PROTECTED]>,
 
This refers to your mail with subject as "Re: Undefined hosts being directed to 
localhost".
Thank you for sending your CV and registering with A.S. Consultancy Services.
 
Our team will review your CV and match it against current requirements. If your 
profile matches with any ongoing opening, we will contact you by telephone / email.
 
We recommend that you update your profile and send us an updated CV whenever your 
contact details or your career path changes, so that your record is up-to-date with us.
 
Please be assured that your CV will remain confidential with us and we will submit 
your profile to our clients only after due consultation with you.
 
In case you require any further information please do contact us.
with warm regards,
 
Staffing Team
A.S. Consultancy Services 
#1205, 2nd Main, 2nd Cross, Vijayanagar, Bangalore - 560040, India
Tele - 91 80 2310 9012, Telefax - 91 80 2330 5364, Email - [EMAIL PROTECTED] 
URL: www.asconsultancy.com


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



Re: Undefined hosts being directed to localhost

2004-10-11 Thread Robert Hunt
Okay, I should have remembered about the defaultHost attr of the  
node. (duh Rob!)

However, I'd like to redirect/stop spurious requests that have nothing to do 
with my hosts; I've gotten a couple requests with "www.yahoo.com" as the 
requested host.  Anyone already got a (or cleverly configured an existing) 
 class to do so?

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


AutoReply: Re: euro sign tomcat 4 -> 5

2004-10-11 Thread tester

Hello "Tomcat Users List" <[EMAIL PROTECTED]>,
 
This refers to your mail with subject as "Re: euro sign tomcat 4 -> 5".
Thank you for sending your CV and registering with A.S. Consultancy Services.
 
Our team will review your CV and match it against current requirements. If your 
profile matches with any ongoing opening, we will contact you by telephone / email.
 
We recommend that you update your profile and send us an updated CV whenever your 
contact details or your career path changes, so that your record is up-to-date with us.
 
Please be assured that your CV will remain confidential with us and we will submit 
your profile to our clients only after due consultation with you.
 
In case you require any further information please do contact us.
with warm regards,
 
Staffing Team
A.S. Consultancy Services 
#1205, 2nd Main, 2nd Cross, Vijayanagar, Bangalore - 560040, India
Tele - 91 80 2310 9012, Telefax - 91 80 2330 5364, Email - [EMAIL PROTECTED] 
URL: www.asconsultancy.com


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



Re: euro sign tomcat 4 -> 5

2004-10-11 Thread Andoni
If the same web-app worked perfectly in Tomcat 4 and now doesn't that would
suggest the problem is with Tomcat, but if you never made the change to
UTF-8 in Tomcat4 then that would suggest the problem is with your webapp!!

Anyway, to change Tomcat to use UTF-8 you have to tell this to the JVM as it
starts. the best way to do this is by editing catalina.bat (window) and
setting CATALINA_OPTS = -Dfile.encoding=UTF-8

CATALINA_OPTS is then inserted by the script into the call to the JVM.

Hope that helps.
Andoni.

PS: I have never used Tomcat 5 but I would be surprised if this kind of
thing has changed much.

A.

- Original Message - 
From: "Michiel Toneman" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, October 11, 2004 2:07 PM
Subject: Re: euro sign tomcat 4 -> 5


> IIRC you need 8859-15 for the EURO symbol if you are using the 8859
> family of encodings. Better would be to use UTF-8. I'm guessing you were
> using UTF-8 before?
>
> Regards,
>
> Michiel
>
> Dale, Matt wrote:
>
> >Sounds like your character set is set to 8859-1 instead of 8859-2. I'm
not sure how or where to change this though.
> >
> >-Original Message-
> >From: Xavier Frisaye [mailto:[EMAIL PROTECTED]
> >Sent: 11 October 2004 13:50
> >To: Tomcat Users List
> >Subject: euro sign tomcat 4 -> 5
> >
> >
> >Hi all,
> >
> >I've ugraded from Tomcat 4.1.24 to 5.0.28 and i'm encountering problem
with euro sign when i try to write it from a servlet :
> >it appears as ? instead of â, certainly charset problem.
> >
> >Is there any change made to tomcat 5 wich could explain this problem?
> >
> >(It works perfectly with Tomcat 4.1.24)
> >
> >Regards
> >
> >Xavier Frisaye
> >
> >
> >
> >
> >Any opinions expressed in this E-mail may be those of the individual and
not necessarily the company. This E-mail and any files transmitted with it
are confidential and solely for the use of the intended recipient. If you
are not the intended recipient or the person responsible for delivering to
the intended recipient, be advised that you have received this E-mail in
error and that any use or copying is strictly prohibited. If you have
received this E-mail in error please notify the beCogent postmaster at
[EMAIL PROTECTED]
> >Unless expressly stated, opinions in this email are those of the
individual sender and not beCogent Ltd. You must take full responsibility
for virus checking this email and any attachments.
> >Please note that the content of this email or any of its attachments may
contain data that falls within the scope of the Data Protection Acts and
that you must ensure that any handling or processing of such data by you is
fully compliant with the terms and provisions of the Data Protection Act
1984 and 1998.
> >
> >
> >
> >
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> -- 
> Michiel Toneman  Software Engineer   Bibit Global Payment Services
> Regulierenring 10  3981 LB  Bunnik   [EMAIL PROTECTED]
> Tel. +31-30-6595168  Fax +31-30-6564464  http://www.bibit.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]



AutoReply: Re: tomcat oracle jdbc pooling

2004-10-11 Thread tester

Hello "Tomcat Users List" <[EMAIL PROTECTED]>,
 
This refers to your mail with subject as "Re: tomcat oracle jdbc pooling".
Thank you for sending your CV and registering with A.S. Consultancy Services.
 
Our team will review your CV and match it against current requirements. If your 
profile matches with any ongoing opening, we will contact you by telephone / email.
 
We recommend that you update your profile and send us an updated CV whenever your 
contact details or your career path changes, so that your record is up-to-date with us.
 
Please be assured that your CV will remain confidential with us and we will submit 
your profile to our clients only after due consultation with you.
 
In case you require any further information please do contact us.
with warm regards,
 
Staffing Team
A.S. Consultancy Services 
#1205, 2nd Main, 2nd Cross, Vijayanagar, Bangalore - 560040, India
Tele - 91 80 2310 9012, Telefax - 91 80 2330 5364, Email - [EMAIL PROTECTED] 
URL: www.asconsultancy.com


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



Re: tomcat oracle jdbc pooling

2004-10-11 Thread David Smith
I'll go on a limb here.  I just started actually reading the fantastic 
docs on JDBC.  Been using databases essentially by example for a couple 
years now.  It looks like you're replacing the DBCP datasource with the 
Oracle pooling datasource.  In that case you should take a look at the 
setters for the OracleDataSourceFactory to see what parameters are 
available.

--David
Bj wrote:
Hi,
I'm using tomcat jdbc connection pooling through dbcp 
datasourceFactory and it works well.
Now, I want to use oracle.jdbc.pool.OracleDataSourceFactory to 
instanciate oracle.jdbc.pool.OracleDataSource.

It seems to work, but I'm wondering is there's some specific 
parameters to add ?
I also want to manage MaxStatements and ExplicitCachingEnabled 
parameters in the Tomcat server XML but it doesn't work with these 
parameter names. Does someone know how to do this ?

I would like my java code to only use standard jdbc classes and to 
have the benefit of Oracle jdbc statement pooling. Is there a way to 
do this ?

best regards,
Bj
-
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]


AutoReply: Re: euro sign tomcat 4 -> 5

2004-10-11 Thread tester

Hello "Tomcat Users List" <[EMAIL PROTECTED]>,
 
This refers to your mail with subject as "Re: euro sign tomcat 4 -> 5".
Thank you for sending your CV and registering with A.S. Consultancy Services.
 
Our team will review your CV and match it against current requirements. If your 
profile matches with any ongoing opening, we will contact you by telephone / email.
 
We recommend that you update your profile and send us an updated CV whenever your 
contact details or your career path changes, so that your record is up-to-date with us.
 
Please be assured that your CV will remain confidential with us and we will submit 
your profile to our clients only after due consultation with you.
 
In case you require any further information please do contact us.
with warm regards,
 
Staffing Team
A.S. Consultancy Services 
#1205, 2nd Main, 2nd Cross, Vijayanagar, Bangalore - 560040, India
Tele - 91 80 2310 9012, Telefax - 91 80 2330 5364, Email - [EMAIL PROTECTED] 
URL: www.asconsultancy.com


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



Re: euro sign tomcat 4 -> 5

2004-10-11 Thread Michiel Toneman
IIRC you need 8859-15 for the EURO symbol if you are using the 8859 
family of encodings. Better would be to use UTF-8. I'm guessing you were 
using UTF-8 before?

Regards,
Michiel
Dale, Matt wrote:
Sounds like your character set is set to 8859-1 instead of 8859-2. I'm not sure how or 
where to change this though.
-Original Message-
From: Xavier Frisaye [mailto:[EMAIL PROTECTED]
Sent: 11 October 2004 13:50
To: Tomcat Users List
Subject: euro sign tomcat 4 -> 5
Hi all,
I've ugraded from Tomcat 4.1.24 to 5.0.28 and i'm encountering problem with euro sign 
when i try to write it from a servlet :
it appears as ? instead of â, certainly charset problem.
Is there any change made to tomcat 5 wich could explain this problem?
(It works perfectly with Tomcat 4.1.24)
Regards
Xavier Frisaye
 


Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.
 


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

--
Michiel Toneman  Software Engineer   Bibit Global Payment Services
Regulierenring 10  3981 LB  Bunnik   [EMAIL PROTECTED]
Tel. +31-30-6595168  Fax +31-30-6564464  http://www.bibit.com/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


AutoReply: RE: euro sign tomcat 4 -> 5

2004-10-11 Thread tester

Hello "Tomcat Users List" <[EMAIL PROTECTED]>,
 
This refers to your mail with subject as "RE: euro sign tomcat 4 -> 5".
Thank you for sending your CV and registering with A.S. Consultancy Services.
 
Our team will review your CV and match it against current requirements. If your 
profile matches with any ongoing opening, we will contact you by telephone / email.
 
We recommend that you update your profile and send us an updated CV whenever your 
contact details or your career path changes, so that your record is up-to-date with us.
 
Please be assured that your CV will remain confidential with us and we will submit 
your profile to our clients only after due consultation with you.
 
In case you require any further information please do contact us.
with warm regards,
 
Staffing Team
A.S. Consultancy Services 
#1205, 2nd Main, 2nd Cross, Vijayanagar, Bangalore - 560040, India
Tele - 91 80 2310 9012, Telefax - 91 80 2330 5364, Email - [EMAIL PROTECTED] 
URL: www.asconsultancy.com


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



RE: euro sign tomcat 4 -> 5

2004-10-11 Thread Dale, Matt

Sounds like your character set is set to 8859-1 instead of 8859-2. I'm not sure how or 
where to change this though.

-Original Message-
From: Xavier Frisaye [mailto:[EMAIL PROTECTED]
Sent: 11 October 2004 13:50
To: Tomcat Users List
Subject: euro sign tomcat 4 -> 5


Hi all,

I've ugraded from Tomcat 4.1.24 to 5.0.28 and i'm encountering problem with euro sign 
when i try to write it from a servlet :
it appears as ? instead of â, certainly charset problem.

Is there any change made to tomcat 5 wich could explain this problem?

(It works perfectly with Tomcat 4.1.24)

Regards

Xavier Frisaye
Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.


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

SSL connection

2004-10-11 Thread Edouard Dalla-Costa
Hi,

I have a question of configuration. I am trying to use SSL
connection with tomcat 5.0.28. But it does not work, I am having a
FileNotFound exception when I am adding the className
SSLServerSocketFactory to the server.xml file. If I don't add the
className variable, the Secure connection looks to be working using
internet explorer but not with Firefox or Opera navigator.

Thank you very much

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



AutoReply: euro sign tomcat 4 -> 5

2004-10-11 Thread tester

Hello "Tomcat Users List" <[EMAIL PROTECTED]>,
 
This refers to your mail with subject as "euro sign tomcat 4 -> 5".
Thank you for sending your CV and registering with A.S. Consultancy Services.
 
Our team will review your CV and match it against current requirements. If your 
profile matches with any ongoing opening, we will contact you by telephone / email.
 
We recommend that you update your profile and send us an updated CV whenever your 
contact details or your career path changes, so that your record is up-to-date with us.
 
Please be assured that your CV will remain confidential with us and we will submit 
your profile to our clients only after due consultation with you.
 
In case you require any further information please do contact us.
with warm regards,
 
Staffing Team
A.S. Consultancy Services 
#1205, 2nd Main, 2nd Cross, Vijayanagar, Bangalore - 560040, India
Tele - 91 80 2310 9012, Telefax - 91 80 2330 5364, Email - [EMAIL PROTECTED] 
URL: www.asconsultancy.com


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



euro sign tomcat 4 -> 5

2004-10-11 Thread Xavier Frisaye
Hi all,

I've ugraded from Tomcat 4.1.24 to 5.0.28 and i'm encountering problem with euro sign 
when i try to write it from a servlet :
it appears as ? instead of â, certainly charset problem.

Is there any change made to tomcat 5 wich could explain this problem?

(It works perfectly with Tomcat 4.1.24)

Regards

Xavier Frisaye


Re: AutoReply: tomcat oracle jdbc pooling

2004-10-11 Thread Renan Galang
Hello,

I'm really sorry but I think i speak for everybody when I say this
AutoReplying address is getting really annoying. Can't the owner of this
address please unregister?


- Original Message - 
From: <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, October 11, 2004 8:14 PM
Subject: AutoReply: tomcat oracle jdbc pooling


>
> Hello "Tomcat Users List" <[EMAIL PROTECTED]>,
>
> This refers to your mail with subject as "tomcat oracle jdbc pooling".
> Thank you for sending your CV and registering with A.S. Consultancy
Services.
>
> Our team will review your CV and match it against current requirements. If
your profile matches with any ongoing opening, we will contact you by
telephone / email.
>
> We recommend that you update your profile and send us an updated CV
whenever your contact details or your career path changes, so that your
record is up-to-date with us.
>
> Please be assured that your CV will remain confidential with us and we
will submit your profile to our clients only after due consultation with
you.
>
> In case you require any further information please do contact us.
> with warm regards,
>
> Staffing Team
> A.S. Consultancy Services
> #1205, 2nd Main, 2nd Cross, Vijayanagar, Bangalore - 560040, India
> Tele - 91 80 2310 9012, Telefax - 91 80 2330 5364, Email -
[EMAIL PROTECTED]
> URL: www.asconsultancy.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]



AutoReply: tomcat oracle jdbc pooling

2004-10-11 Thread tester

Hello "Tomcat Users List" <[EMAIL PROTECTED]>,
 
This refers to your mail with subject as "tomcat oracle jdbc pooling".
Thank you for sending your CV and registering with A.S. Consultancy Services.
 
Our team will review your CV and match it against current requirements. If your 
profile matches with any ongoing opening, we will contact you by telephone / email.
 
We recommend that you update your profile and send us an updated CV whenever your 
contact details or your career path changes, so that your record is up-to-date with us.
 
Please be assured that your CV will remain confidential with us and we will submit 
your profile to our clients only after due consultation with you.
 
In case you require any further information please do contact us.
with warm regards,
 
Staffing Team
A.S. Consultancy Services 
#1205, 2nd Main, 2nd Cross, Vijayanagar, Bangalore - 560040, India
Tele - 91 80 2310 9012, Telefax - 91 80 2330 5364, Email - [EMAIL PROTECTED] 
URL: www.asconsultancy.com


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



tomcat oracle jdbc pooling

2004-10-11 Thread Bj
Hi,
I'm using tomcat jdbc connection pooling through dbcp datasourceFactory 
and it works well.
Now, I want to use oracle.jdbc.pool.OracleDataSourceFactory to 
instanciate oracle.jdbc.pool.OracleDataSource.

It seems to work, but I'm wondering is there's some specific parameters 
to add ?
I also want to manage MaxStatements and ExplicitCachingEnabled 
parameters in the Tomcat server XML but it doesn't work with these 
parameter names. Does someone know how to do this ?

I would like my java code to only use standard jdbc classes and to have 
the benefit of Oracle jdbc statement pooling. Is there a way to do this ?

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


AutoReply: Katja Handtusch/268/DCAG/DCX ist außer Haus.

2004-10-11 Thread tester

Hello "Tomcat Users List" <[EMAIL PROTECTED]>,
 
This refers to your mail with subject as "Katja Handtusch/268/DCAG/DCX ist 
=?ISO-8859-1?Q?au=DFer_Haus=2E?=".
Thank you for sending your CV and registering with A.S. Consultancy Services.
 
Our team will review your CV and match it against current requirements. If your 
profile matches with any ongoing opening, we will contact you by telephone / email.
 
We recommend that you update your profile and send us an updated CV whenever your 
contact details or your career path changes, so that your record is up-to-date with us.
 
Please be assured that your CV will remain confidential with us and we will submit 
your profile to our clients only after due consultation with you.
 
In case you require any further information please do contact us.
with warm regards,
 
Staffing Team
A.S. Consultancy Services 
#1205, 2nd Main, 2nd Cross, Vijayanagar, Bangalore - 560040, India
Tele - 91 80 2310 9012, Telefax - 91 80 2330 5364, Email - [EMAIL PROTECTED] 
URL: www.asconsultancy.com


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



Katja Handtusch/268/DCAG/DCX ist außer Haus.

2004-10-11 Thread katja . handtusch




Ich werde ab  11.10.2004 nicht im Büro sein. Ich kehre zurück am
22.10.2004.

Ich werde Ihre Nachricht nach meiner Rückkehr beantworten.
Bei dringenden Angelegenheiten wenden Sie sich bitte an meine Vertretung
Alexandra Pürschel (Tel.: 5463).


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



AutoReply: RE: Tomcat 4.1 random crashes

2004-10-11 Thread tester

Hello "Tomcat Users List" <[EMAIL PROTECTED]>,
 
This refers to your mail with subject as "RE: Tomcat 4.1 random crashes".
Thank you for sending your CV and registering with A.S. Consultancy Services.
 
Our team will review your CV and match it against current requirements. If your 
profile matches with any ongoing opening, we will contact you by telephone / email.
 
We recommend that you update your profile and send us an updated CV whenever your 
contact details or your career path changes, so that your record is up-to-date with us.
 
Please be assured that your CV will remain confidential with us and we will submit 
your profile to our clients only after due consultation with you.
 
In case you require any further information please do contact us.
with warm regards,
 
Staffing Team
A.S. Consultancy Services 
#1205, 2nd Main, 2nd Cross, Vijayanagar, Bangalore - 560040, India
Tele - 91 80 2310 9012, Telefax - 91 80 2330 5364, Email - [EMAIL PROTECTED] 
URL: www.asconsultancy.com


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



RE: Tomcat 4.1 random crashes

2004-10-11 Thread Dale, Matt
I can't see anything in there that would cause Tomcat to crash but you have a whole 
host of errors to look at. Permission denied while accessing some files, a jar not 
loaded, unknown host for a start plus more. I'd take these errors one at a time and 
try to correct them and it will hopefully lead you to the root cause of the crashes.

Ta
Matt

-Original Message-
From: Richard Lewis [mailto:[EMAIL PROTECTED]
Sent: 11 October 2004 10:54
To: Tomcat Users List
Subject: Re: Tomcat 4.1 random crashes


OK here's my $CATALINA_HOME/logs/catalina.out file from about 09:30  
this morning (BST).  At this point the server wasn't working and I did  
a restart:

11 Oct 2004 09:26:04,292 [Thread-14] DEBUG (BrokerPool.java [sync]:334)  
- syncing buffers to disk
11 Oct 2004 09:26:04,293 [Thread-14] INFO  (BTree.java  
[printStatistics]:1250) - elements.dbx INDEX 768 / 0 / 0 / 0
11 Oct 2004 09:26:04,294 [Thread-14] INFO  (BFile.java  
[printStatistics]:340) - elements.dbx DATA 2112 / 0 / 0 / 0
11 Oct 2004 09:26:04,294 [Thread-14] INFO  (BTree.java  
[printStatistics]:1250) - collections.dbx INDEX 1536 / 1 / 1 / 1
11 Oct 2004 09:26:04,295 [Thread-14] INFO  (BFile.java  
[printStatistics]:340) - collections.dbx DATA 1536 / 1 / 1 / 1
11 Oct 2004 09:26:04,296 [Thread-14] INFO  (BTree.java  
[printStatistics]:1250) - dom.dbx INDEX 768 / 1 / 121 / 1
11 Oct 2004 09:26:04,296 [Thread-14] INFO  (DOMFile.java  
[printStatistics]:587) - dom.dbx DATA 192 / 1 / 329 / 1
11 Oct 2004 09:26:04,298 [Thread-14] INFO  (BTree.java  
[printStatistics]:1250) - words.dbx INDEX 2688 / 0 / 0 / 0
11 Oct 2004 09:26:04,299 [Thread-14] INFO  (BFile.java  
[printStatistics]:340) - words.dbx DATA 2688 / 0 / 0 / 0
Stopping service Tomcat-Standalone
11-Oct-2004 09:27:03 org.apache.coyote.http11.Http11Protocol destroy
INFO: Stoping http11 protocol on 8080  
Catalina:type=ThreadPool,name=http8080
Mon Oct 11 09:27:05 BST 2004 SHUTDOWN : System.exit() was not called
- Scheduler Cocoon_$_Wed_Oct_06_16:15:37_BST_2004 paused.
- Scheduler Cocoon_$_Wed_Oct_06_16:15:37_BST_2004 shutting down.
- Scheduler Cocoon_$_Wed_Oct_06_16:15:37_BST_2004 paused.
- Scheduler Cocoon_$_Wed_Oct_06_16:15:37_BST_2004 shutdown complete.
- Called close for main
- Called close for groupIdCache
11-Oct-2004 09:27:09 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.30
11-Oct-2004 09:27:12 org.apache.struts.util.PropertyMessageResources  

INFO: Initializing, config='org.apache.struts.util.LocalStrings',  
returnNull=true
11-Oct-2004 09:27:12 org.apache.struts.util.PropertyMessageResources  

INFO: Initializing, config='org.apache.struts.action.ActionResources',  
returnNull=true
11-Oct-2004 09:27:13 org.apache.struts.util.PropertyMessageResources  

INFO: Initializing,  
config='org.apache.webapp.admin.ApplicationResources', returnNull=true
trying to register database
trying to register database
- setting defaults to DC
- setting defaultCompositeCacheAttributes to [ useLateral = true,  
useRemote = true, useDisk = true, maxObjs = 100, maxSpoolPerRun = -1 ]
- Could not find value for key jcs.default.elementattributes
- Could not instantiate eAttr named 'jcs.default.elementattributes',  
using defaults.
- setting defaultElementAttributes to [ IS_LATERAL = false, IS_SPOOL =  
false, IS_REMOTE = false, IS_ETERNAL = true, MaxLifeSeconds = -1,  
IdleTime = -1, CreateTime = 1097483254871, LastAccessTime =  
1097483254871, getTimeToLiveSeconds() = -1001, createTime =  
1097483254871 ]
- Could not find value for key jcs.system.groupIdCache.elementattributes
- Could not instantiate eAttr named  
'jcs.system.groupIdCache.elementattributes', using defaults.
- initialized LRUMemoryCache for groupIdCache
- Constructed cache with name: groupIdCache
- Cache file root directory:  
/var/webapps/tomcat/work/Standalone/localhost/cocoon/cocoon-files/ 
cache-dir
- Failure initializing for fileName: groupIdCache and root directory:  
/var/webapps/tomcat/work/Standalone/localhost/cocoon/cocoon-files/ 
cache-dir
java.io.FileNotFoundException:  
/var/webapps/tomcat/work/Standalone/localhost/cocoon/cocoon-files/ 
cache-dir/groupIdCache.data (Permission denied)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.(RandomAccessFile.java:204)
at java.io.RandomAccessFile.(RandomAccessFile.java:94)
at  
org.apache.jcs.auxiliary.disk.indexed.IndexedDisk.(IndexedDisk.jav 
a:61)
at  
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache.(IndexedDis 
kCache.java:94)
at  
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheManager.getCache(I 
ndexedDiskCacheManager.java:136)
at  
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheFactory.createCach 
e(IndexedDiskCacheFactory.java:50)
at  
org.apache.jcs.engine.control.CompositeCacheConfigurator.parseAuxiliary( 
CompositeCacheConfigurator.java:413)
at  
org.apache.jcs.engi

Tomcat 5 & SunONE Identity Server

2004-10-11 Thread Simon Coles
Hi,

Does anyone have experience of using the SunONE Identity Server for
Single Sign On with Tomcat 5.x? e.g. once the user logs into another
site which uses the Identity Server for authentication, they are
logged into all applications/servers - including ours.

The Sun site has a "Policy Agent" (e.g. adaptor) for Tomcat 4.1.x, but
I can't see anything for Tomcat 5.

It seems the Identiry Server supports the Liberty Alliance protocols
as well, so we might be able to use that rather than the specific
SunONE Identity Server interface. So I guess any integration between
Tomcat 5 and Liberty Alliance might help too.

We're hoping to do this with JBoss 3.2.x using the embedded Tomcat 5.x
server, on a RHEL 3 server.

Any thoughts, pointers, tips etc. gratefully accepted. From what we
can see it can't be that hard, but then again we haven't done it yet -
and hopefully someone might have done this before us.

If we can't find any existing work and end up doing the integration
ourselves, I hope we'll be able put the resulting work back into the
community. If there's a best way to do this, that would be helpful
too.

Many thanks,



Simon

-- 
Simon J. Coles
President & COO, Amphora Research Systems
http://www.amphora-research.com/
EMail: [EMAIL PROTECTED]
Phone: (513) 697-4764

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



AutoReply: Re: Tomcat 4.1 random crashes

2004-10-11 Thread tester

Hello "Tomcat Users List" <[EMAIL PROTECTED]>,
 
This refers to your mail with subject as "Re: Tomcat 4.1 random crashes".
Thank you for sending your CV and registering with A.S. Consultancy Services.
 
Our team will review your CV and match it against current requirements. If your 
profile matches with any ongoing opening, we will contact you by telephone / email.
 
We recommend that you update your profile and send us an updated CV whenever your 
contact details or your career path changes, so that your record is up-to-date with us.
 
Please be assured that your CV will remain confidential with us and we will submit 
your profile to our clients only after due consultation with you.
 
In case you require any further information please do contact us.
with warm regards,
 
Staffing Team
A.S. Consultancy Services 
#1205, 2nd Main, 2nd Cross, Vijayanagar, Bangalore - 560040, India
Tele - 91 80 2310 9012, Telefax - 91 80 2330 5364, Email - [EMAIL PROTECTED] 
URL: www.asconsultancy.com


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



Re: Tomcat 4.1 random crashes

2004-10-11 Thread Richard Lewis
OK here's my $CATALINA_HOME/logs/catalina.out file from about 09:30  
this morning (BST).  At this point the server wasn't working and I did  
a restart:

11 Oct 2004 09:26:04,292 [Thread-14] DEBUG (BrokerPool.java [sync]:334)  
- syncing buffers to disk
11 Oct 2004 09:26:04,293 [Thread-14] INFO  (BTree.java  
[printStatistics]:1250) - elements.dbx INDEX 768 / 0 / 0 / 0
11 Oct 2004 09:26:04,294 [Thread-14] INFO  (BFile.java  
[printStatistics]:340) - elements.dbx DATA 2112 / 0 / 0 / 0
11 Oct 2004 09:26:04,294 [Thread-14] INFO  (BTree.java  
[printStatistics]:1250) - collections.dbx INDEX 1536 / 1 / 1 / 1
11 Oct 2004 09:26:04,295 [Thread-14] INFO  (BFile.java  
[printStatistics]:340) - collections.dbx DATA 1536 / 1 / 1 / 1
11 Oct 2004 09:26:04,296 [Thread-14] INFO  (BTree.java  
[printStatistics]:1250) - dom.dbx INDEX 768 / 1 / 121 / 1
11 Oct 2004 09:26:04,296 [Thread-14] INFO  (DOMFile.java  
[printStatistics]:587) - dom.dbx DATA 192 / 1 / 329 / 1
11 Oct 2004 09:26:04,298 [Thread-14] INFO  (BTree.java  
[printStatistics]:1250) - words.dbx INDEX 2688 / 0 / 0 / 0
11 Oct 2004 09:26:04,299 [Thread-14] INFO  (BFile.java  
[printStatistics]:340) - words.dbx DATA 2688 / 0 / 0 / 0
Stopping service Tomcat-Standalone
11-Oct-2004 09:27:03 org.apache.coyote.http11.Http11Protocol destroy
INFO: Stoping http11 protocol on 8080  
Catalina:type=ThreadPool,name=http8080
Mon Oct 11 09:27:05 BST 2004 SHUTDOWN : System.exit() was not called
- Scheduler Cocoon_$_Wed_Oct_06_16:15:37_BST_2004 paused.
- Scheduler Cocoon_$_Wed_Oct_06_16:15:37_BST_2004 shutting down.
- Scheduler Cocoon_$_Wed_Oct_06_16:15:37_BST_2004 paused.
- Scheduler Cocoon_$_Wed_Oct_06_16:15:37_BST_2004 shutdown complete.
- Called close for main
- Called close for groupIdCache
11-Oct-2004 09:27:09 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.30
11-Oct-2004 09:27:12 org.apache.struts.util.PropertyMessageResources  

INFO: Initializing, config='org.apache.struts.util.LocalStrings',  
returnNull=true
11-Oct-2004 09:27:12 org.apache.struts.util.PropertyMessageResources  

INFO: Initializing, config='org.apache.struts.action.ActionResources',  
returnNull=true
11-Oct-2004 09:27:13 org.apache.struts.util.PropertyMessageResources  

INFO: Initializing,  
config='org.apache.webapp.admin.ApplicationResources', returnNull=true
trying to register database
trying to register database
- setting defaults to DC
- setting defaultCompositeCacheAttributes to [ useLateral = true,  
useRemote = true, useDisk = true, maxObjs = 100, maxSpoolPerRun = -1 ]
- Could not find value for key jcs.default.elementattributes
- Could not instantiate eAttr named 'jcs.default.elementattributes',  
using defaults.
- setting defaultElementAttributes to [ IS_LATERAL = false, IS_SPOOL =  
false, IS_REMOTE = false, IS_ETERNAL = true, MaxLifeSeconds = -1,  
IdleTime = -1, CreateTime = 1097483254871, LastAccessTime =  
1097483254871, getTimeToLiveSeconds() = -1001, createTime =  
1097483254871 ]
- Could not find value for key jcs.system.groupIdCache.elementattributes
- Could not instantiate eAttr named  
'jcs.system.groupIdCache.elementattributes', using defaults.
- initialized LRUMemoryCache for groupIdCache
- Constructed cache with name: groupIdCache
- Cache file root directory:  
/var/webapps/tomcat/work/Standalone/localhost/cocoon/cocoon-files/ 
cache-dir
- Failure initializing for fileName: groupIdCache and root directory:  
/var/webapps/tomcat/work/Standalone/localhost/cocoon/cocoon-files/ 
cache-dir
java.io.FileNotFoundException:  
/var/webapps/tomcat/work/Standalone/localhost/cocoon/cocoon-files/ 
cache-dir/groupIdCache.data (Permission denied)
	at java.io.RandomAccessFile.open(Native Method)
	at java.io.RandomAccessFile.(RandomAccessFile.java:204)
	at java.io.RandomAccessFile.(RandomAccessFile.java:94)
	at  
org.apache.jcs.auxiliary.disk.indexed.IndexedDisk.(IndexedDisk.jav 
a:61)
	at  
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache.(IndexedDis 
kCache.java:94)
	at  
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheManager.getCache(I 
ndexedDiskCacheManager.java:136)
	at  
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheFactory.createCach 
e(IndexedDiskCacheFactory.java:50)
	at  
org.apache.jcs.engine.control.CompositeCacheConfigurator.parseAuxiliary( 
CompositeCacheConfigurator.java:413)
	at  
org.apache.jcs.engine.control.CompositeCacheConfigurator.parseRegion(Com 
positeCacheConfigurator.java:259)
	at  
org.apache.jcs.engine.control.CompositeCacheConfigurator.parseSystemRegi 
ons(CompositeCacheConfigurator.java:161)
	at  
org.apache.jcs.engine.control.CompositeCacheConfigurator.doConfigure(Com 
positeCacheConfigurator.java:107)
	at  
org.apache.jcs.engine.control.CompositeCacheManager.configure(CompositeC 
acheManager.java:208)
	at  
org.apache.cocoon.components.store.impl.JCSDefaultStore.initialize(JCSDe 
faultStore.java:178)
	at  
org.apache.avalon.framework.container.Conta

AutoReply: RE: Tomcat 4.1 random crashes

2004-10-11 Thread tester

Hello "Tomcat Users List" <[EMAIL PROTECTED]>,
 
This refers to your mail with subject as "RE: Tomcat 4.1 random crashes".
Thank you for sending your CV and registering with A.S. Consultancy Services.
 
Our team will review your CV and match it against current requirements. If your 
profile matches with any ongoing opening, we will contact you by telephone / email.
 
We recommend that you update your profile and send us an updated CV whenever your 
contact details or your career path changes, so that your record is up-to-date with us.
 
Please be assured that your CV will remain confidential with us and we will submit 
your profile to our clients only after due consultation with you.
 
In case you require any further information please do contact us.
with warm regards,
 
Staffing Team
A.S. Consultancy Services 
#1205, 2nd Main, 2nd Cross, Vijayanagar, Bangalore - 560040, India
Tele - 91 80 2310 9012, Telefax - 91 80 2330 5364, Email - [EMAIL PROTECTED] 
URL: www.asconsultancy.com


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



  1   2   >