RE: Struts with Tomcat and Apache

2004-04-09 Thread David Short
Hey John,

When you get home, would you mind posting the names of the books?

Thanks,

Dave

-Original Message-
From: John Thompson [mailto:[EMAIL PROTECTED]
Sent: Friday, April 09, 2004 2:55 PM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: Struts with Tomcat and Apache


Ralf, 
I'm not familiar with the document you refer to but Struts is essentially a
library of functions and JSP tags that are part of your servlet.  Neither
the Tomcat nor Apache configurations are really affected by Struts.  The
documents at http://jakarta.apache.org/struts/ talk about how to put the
libraries in the right places.  

If you haven't used Struts before, I'd suggest the bookstore.  There are a
couple of decent books on it.  Sorry, but I don't have either of mine with
me right now.  It definitely was not straight forward but made easier with
lots of examples.

John

-Original Message-
From: Ralf Schneider [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 09, 2004 4:39 PM
To: 'Tomcat Users List'
Subject: Struts with Tomcat and Apache

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

I want to use Struts 1.1 with Tomcat 5.0.16 and Apache 2.0.48. The Struts 
documentation only talks about Tomcat 3.x.

My first try was to follow the instructions for Tomcat 3.2.1. I copied the 
war files included with the binary distribution into the webapps directory
of 
my Tomcat installation. Then I restarted Tomcat, but the file 
tomcat-apache.conf is not generate as described in the docs.

So, I assume the installation works a bit different with these newer
versions, 
but how? I that described anywhere? And if yes, where?

Any hint would be apreciated,
Ralf.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFAdxfe7YyyfykA0YkRAmb9AJ48UdZw2EZ6mDqJlEa6Jwwu8LwslgCfY02w
ZkhLHZdDKMiqy3HoijINtCQ=
=hJ/+
-END PGP SIGNATURE-


-
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: Struts with Tomcat and Apache

2004-04-09 Thread David Short
Would also mind stating which one you recommend the most?

-Original Message-
From: John Thompson [mailto:[EMAIL PROTECTED]
Sent: Friday, April 09, 2004 3:03 PM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: Struts with Tomcat and Apache


You bet.  One is at home and the other at the office.  I'll post as soon as
I can.

-Original Message-----
From: David Short [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 09, 2004 5:02 PM
To: 'Tomcat Users List'
Subject: RE: Struts with Tomcat and Apache

Hey John,

When you get home, would you mind posting the names of the books?

Thanks,

Dave

-Original Message-
From: John Thompson [mailto:[EMAIL PROTECTED]
Sent: Friday, April 09, 2004 2:55 PM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: Struts with Tomcat and Apache


Ralf, 
I'm not familiar with the document you refer to but Struts is essentially a
library of functions and JSP tags that are part of your servlet.  Neither
the Tomcat nor Apache configurations are really affected by Struts.  The
documents at http://jakarta.apache.org/struts/ talk about how to put the
libraries in the right places.  

If you haven't used Struts before, I'd suggest the bookstore.  There are a
couple of decent books on it.  Sorry, but I don't have either of mine with
me right now.  It definitely was not straight forward but made easier with
lots of examples.

John

-Original Message-
From: Ralf Schneider [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 09, 2004 4:39 PM
To: 'Tomcat Users List'
Subject: Struts with Tomcat and Apache

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

I want to use Struts 1.1 with Tomcat 5.0.16 and Apache 2.0.48. The Struts 
documentation only talks about Tomcat 3.x.

My first try was to follow the instructions for Tomcat 3.2.1. I copied the 
war files included with the binary distribution into the webapps directory
of 
my Tomcat installation. Then I restarted Tomcat, but the file 
tomcat-apache.conf is not generate as described in the docs.

So, I assume the installation works a bit different with these newer
versions, 
but how? I that described anywhere? And if yes, where?

Any hint would be apreciated,
Ralf.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFAdxfe7YyyfykA0YkRAmb9AJ48UdZw2EZ6mDqJlEa6Jwwu8LwslgCfY02w
ZkhLHZdDKMiqy3HoijINtCQ=
=hJ/+
-END PGP SIGNATURE-


-
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: Struts with Tomcat and Apache

2004-04-09 Thread David Short
Thanks!

-Original Message-
From: QM [mailto:[EMAIL PROTECTED]
Sent: Friday, April 09, 2004 3:15 PM
To: Tomcat Users List
Subject: Re: Struts with Tomcat and Apache


On Fri, Apr 09, 2004 at 03:01:30PM -0700, David Short wrote:
: Hey John,
: 
: When you get home, would you mind posting the names of the books?

I'm not John, but I'll play him on TV. ;)

Seriously:

"Struts in Action" (Husted et al, Manning Press) has been my guide.
It's a little heavy on the theory at times, but I find that much more
useful than the quick-hit books that leave you stranded the minute you
want to do something advanced.

This text covers Tiles, I18N, declarative exception handling, and
several other topics that other books (at the time, at least) either
glossed over or omitted entirely. 

Don't be fooled by its age: it's technically written for Struts 1.0
(with a chapter or two on 1.1), but much of the book is Overall Struts
Concepts which makes it largely version-independent.

Just be careful of which printing you get: the first printing was rife
with typos. For a while I had two bookmarks: one, for the page I was
reading; the other, for the page I'd made corrections based on the
publisher's errata site... ;)


If you're interested, there was also a recent thread on the struts-user
list of this same topic.

-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: DBCP pooling error

2004-06-16 Thread David Short
I believe you need to move the Oracle classes12.jar and nls_charset12.jar
files into your Tomcat\common\lib directory.

-Original Message-
From: Bliesner, Christopher P [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 8:34 AM
To: Tomcat Users List
Subject: re: DBCP pooling error
Importance: High


I'm running Tomcat 4.12 and trying to setup the DBCP.  I followed
everything outlined on the Jakarta/Tomcat site for setting up a DBCP for
Oracle 8.1.7 but I'm still receiving the following message:

 

Cannot load JDBC driver class 'null'

 

Any help would be appreciated, thanks!

 

Chris Bliesner

Lead Oracle DBA/Unix admin

Wk Phone 915-834-1757

 


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

RE: Apache 2.0.48 and Tomcat 5.0.16

2004-01-14 Thread David Short
Hi Brian,
 
Can you repost your files?  I didn't see them attached.
 
Dave

-Original Message-
From: Brian Danford [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 13, 2004 11:53 PM
To: [EMAIL PROTECTED]
Subject: Apache 2.0.48 and Tomcat 5.0.16
Importance: High



I did a fresh install on Redhat 9, built version of apache 2.0.48 from
source (/usr/local/apache2), tomcat 5.0.16 from binary (symbolic
/usr/local/tomcat points to /usr/local/jakarta-tomcat-5.0.16).

When i call http://localhost/expamles   I get the
initial index.html but when I call a jsp page, im getting a http 500,
internal server error. I have an alias /examples wich points to
/usr/local/tomcat/webapps/jsp-examples/

I have included my httpd.conf, the workers.properties, and the access_log
files. The mod_jk.log file is empty.

Any help would be great. Ive been banging my head against the wall for a
while now, and im sure im not the only one with this problem.

Thanks!


Brian D. Danford
[EMAIL PROTECTED]
[EMAIL PROTECTED]






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

RE: Signal 11 crash and mod_jk, mod_jk2, apache2

2004-01-14 Thread David Short
Hi Peter,

It sounds like you've got Tomcat 5.0.16 running in-process with Apache2.
I'm trying to get this configuration working.  Would you mind posting your
workers.properties file?

Thanks,

Dave

-Original Message-
From: Peter Burkholder [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 14, 2004 8:29 AM
To: [EMAIL PROTECTED]
Subject: Signal 11 crash and mod_jk, mod_jk2, apache2


I've seen similar threads but not a resolution, so I'll raise this issue
again.

I'm moving our web server and web apps to a new machine, a dual Xeon Redhat
8 box.  Tomcat 5.0.16 and Tomcat 4.1.29 both handle loads well when using
the Tomcat HTTP server.  But I need to connect Tomcat to an Apache
front-end, currently 2.0.28.  When I use either mod_jk or mod_jk2, the JVM
crashes after 1970-1980 requests with Signal 11 and this in
logs/catalina.out:

JVMDG217: Dump Handler is Processing a Signal - Please Wait.
JVMDG303: JVM Requesting Java core file
JVMDG304: Java core file written to
/ucar/dpc/aegean/www/web/www.dlese.org/tomcat/javacore.20040113.142044.6635.
txt
JVMDG215: Dump Handler has Processed Exception Signal 11.

 and this exception in the java core:

 2XMEXCPINFOJVM Exception 0x2 (subcode 0x0) occurred in thread
 "TP-Processor9" (TID:0x10174AB8)

I've seen suggested avenues like:
# kernel rebuilds (some 2.4.18-2.4.2? kernels had bad thread handling)
# switching JVMs, e.g., Sun, IBM, BEA JRockit
# cleaning out the work directory,
# using or not using LD_ASSUME_KERNEL,
# disabling hyperthreading,
# disabling SMP,
# adjusting heap and stack sizes
# rebuilding the mod_jk or mod_jk2 connectores.
# expanding user ulimits

That makes for a huge matrix of possibilities.  Any hints on which paths
might be more fruitful, or others to consider.  Are more data needed to help
isolate this problem?

Thanks,

Peter


MISC DETAILS:
Kernel: Redhat 2.4.20-27.8smp
JVM:  IBMJava2-141
glibc Version: 2.3.2
Memory: 2Gb
JVM Memory: Behavior is the same with either -Xms250m or -Xms512m
2 CPUS /w hyperthreading looks like 4 CPUs

CORE EXCERPTS:
1HPUSERLIMITS  User Limits (in bytes except for NOFILE and NPROC) -
NULL   ---
2HPUSERLIMIT   RLIMIT_FSIZE   : infinity
2HPUSERLIMIT   RLIMIT_DATA: infinity
2HPUSERLIMIT   RLIMIT_STACK   : 2093056
2HPUSERLIMIT   RLIMIT_CORE: 0
2HPUSERLIMIT   RLIMIT_NOFILE  : 1024
2HPUSERLIMIT   RLIMIT_NPROC   : 7168

2HPENVVAR
 IBM_JAVA_COMMAND_LINE=/opt/java/java/bin/java -Xmx512m -Djava.end
orsed.dirs=/opt/tomcat/tomcat4.1/common/endorsed -classpath
/opt/java/java/lib/t
ools.jar:/opt/tomcat/tomcat4.1/bin/bootstrap.jar -Dcatalina.base=/www/web//w
ww.d
lese.org/tomcat -Dcatalina.home=/opt/tomcat/tomcat4.1 -Djava.io.tmpdir=/www/
web/
/www.dlese.org/tomcat/temp org.apache.catalina.startup.Bootstrap -config
/www/we
b//www.dlese.org/tomcat/conf/dds.xml start

--
Peter Burkholder, System Administrator
Digital Library for Earth System Education (DLESE® -- http://www.dlese.org)
[EMAIL PROTECTED]
DLESE Program Center (DPC)   ~~~  ~~     __o
UCAR/DPC, P.O. Box 3000   Ph) +1-303-497-2663  ~~~   ~~
_`\<,_
Boulder, CO 80307-3000Fx) +1 303-497-8336  ~~~    (*)/
(*)

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




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



Apache 2.0.48 and Tomcat 5.0.16 in-process on W2K

2004-01-14 Thread David Short
Does anyone know which jar files need to be included in the Apache
workers2.properties file?

Here's what I have so far:

OPT=-Djava.class.path=${CATALINA_HOME}/server/lib/tomcat-jni.jar

On Apache startup, the following message is written to the
Apache2\logs\error.log:

Can't find class org/apache/jk/apr/AprImpl

I'm starting to get desperate...

Any help would be greatly appreciated.



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



RE: Linking tomcat with apache

2004-01-19 Thread David Short
Add shm.file=c:/Apache2/logs/jk2.shm to your
$CATALINA_HOME\conf\jk2.properties file.

-Original Message-
From: Allan Bruce [mailto:[EMAIL PROTECTED]
Sent: Monday, January 19, 2004 6:52 AM
To: Tomcat Users List
Subject: Re: Linking tomcat with apache


Thanks Tim,

I am a step closer I think, my configs are detailed below.  I have tomcat
running with jk2 fine, the log states

INFO: JK2: ajp13 listening on /0.0.0.0:8019


but apache has the following error:

[Mon Jan 19 14:32:37 2004] [notice] Apache-AdvancedExtranetServer/2.0.44
configured -- resuming normal operations
[Mon Jan 19 14:32:37 2004] [error] shm.init(): No file
[Mon Jan 19 14:33:23 2004] [error] workerEnv.init() create slot epStat.0
failed
[Mon Jan 19 14:33:23 2004] [error] lb.service() worker failed
ajp13:localhost:8019
[Mon Jan 19 14:33:23 2004] [error] lb.service() unrecoverable error...
[Mon Jan 19 14:33:23 2004] [error] mod_jk.handler() Error connecting to
tomcat 12
[Mon Jan 19 14:34:28 2004] [error] shm.init(): No file
[Mon Jan 19 14:35:53 2004] [error] workerEnv.init() create slot epStat.2
failed
[Mon Jan 19 14:35:53 2004] [error] lb.service() worker failed
ajp13:localhost:8019
[Mon Jan 19 14:35:53 2004] [error] lb.service() unrecoverable error...
[Mon Jan 19 14:35:53 2004] [error] mod_jk.handler() Error connecting to
tomcat 12




What am I doing wrong?
Thanks
Allan

config files added/changed
--added to /etc/httpd/conf/commonhttpd.conf
LoadModule jk2_module /usr/lib/apache2/mod_jk2.so

--/etc/httpd/conf/workers2.properties
#min for working
[channel.socket:localhost:8019]
info=Ajp13 forwarding over socket
tomcatId=localhost:8019
# Map the Tomcat examples webapp to the Web server uri space
[uri:/examples/*]
info=Map the whole webapp


--/usr/local/sites/tomcat/tomcat/conf/jk2.properies
# list of needed handlers.
handler.list=apr,channelSocket,request
# Override the default port for the channelSocket
channelSocket.port=8019
# Dynamic library
apr.NativeSo=/usr/lib/apache2/mod_jk2.so


--added to /usr/local/sites/tomcat/tomcat/conf/server.xml




- Original Message -
From: "Tim Funk" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Sunday, January 18, 2004 7:23 PM
Subject: Re: Linking tomcat with apache


> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html
> http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Links
>
> -Tim
>
> Allan Bruce wrote:
> > I have tomcat and apache both setup and running.  At the moment, I am
using
> > a permanent redirect for urls to servlets to tomcat.  But this is not
> > correct.  How do I get them set up correctly? I have jk2 installed.
> > Thanks
> > Allan
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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




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



RE: Apache 2.048 + Tomcat 5 + Win 2k

2004-01-19 Thread David Short
I, too, am having difficulty getting Apache 2.0.48 to load Tomcat 4.1.29
in-process.  Apache installed and runs just fine, Tomcat installed and runs
just fine on it's own (I can access the examples JSPs and servlets, etc.)
and I'm using the latest mod_jk2.dll (in the Apache2\modules directory).  I
used this link
http://www.gregoire.org/howto/Apache2_Jk2_TC4.1.x_JSDK1.4.x.html to perform
the installations.

The server.xml file is "out of the box" unchanged.
I added LoadModule jk2_module modules/mod_jk2.dll to the httpd.conf file
(this was the only change).


Here's my jk2.properties file:

## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
## WHEN YOU EDIT THE FILE.

## COMMENTS WILL BE _LOST_

## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.

# Set the desired handler list
# handler.list=apr,request,channelJni
#
# Override the default port for the socketChannel
# channelSocket.port=8019
# Default:
# channelUnix.file=${jkHome}/work/jk2.socket
# Just to check if the the config  is working
shm.file=${jkHome}/work/jk2.shm

# In order to enable jni use any channelJni directive
channelJni.disabled = 0
# And one of the following directives:

# apr.jniModeSo=/opt/apache2/modules/mod_jk2.so

# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
apr.jniModeSo=inprocess


Here's my workers2.properties file:

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

[logger]
level=DEBUG

[config:]
#file=${serverRoot}/conf/workers2.properties
file=c:/Apache2/conf/workers2.properties
debug=0
debugEnv=0

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

# Alternate file logger
#[logger.file:0]
#level=DEBUG
#file=${serverRoot}/logs/jk2.log

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

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

# Default Native Logger (apache2 or win32 )
# can be overriden to a file logger, useful
# when tracing win32 related issues
#logger=logger.file:0

[lb:lb]
info=Default load balancer.
debug=0

#[lb:lb_1]
#info=A second load balancer.
#debug=0

[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=0
tomcatId=localhost:8009

#[channel.socket:localhost:8019]
#info=A second tomcat instance.
#debug=0
#tomcatId=localhost:8019
#lb_factor=1
#group=lb
#group=lb_1
#disabled=0

#[channel.un:/opt/33/work/jk2.socket]
#info=A second channel connecting to localhost:8019 via unix socket
#tomcatId=localhost:8019
#lb_factor=1
#debug=0

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

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

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

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

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

#[uri:127.0.0.1:8003]
#info=Example virtual host. Make sure myVirtualHost is in /etc/hosts to test
it
#alias=myVirtualHost:8003

#[uri:127.0.0.1:8003/ex]
#info=Example webapp in the virtual host. It'll go to lb_1 ( i.e.
localhost:8019 )
#context=/ex
#group=lb_1

[uri:/examples]
info=Example webapp in the default context.
context=/examples
debug=0

#[uri:/examples1/*]
#info=A second webapp, this time going to the second tomcat only.
#group=lb_1
#debug=0

[uri:/examples/servlets/*]
info=Prefix mapping

[uri:/examples/*.jsp]
info=Extension mapping

[uri:/examples/*]
info=Map the whole webapp

[uri:/examples/servlets/HelloW]
info=Exampel with debug enabled.
debug=10

Here's the Apache2\logs\error.log

[Mon Jan 19 10:53:20 2004] [notice] Parent: Created child process 2852
[Mon Jan 19 10:53:21 2004] [notice] Child 2852: Child process is running
[Mon Jan 19 10:53:21 2004] [notice] jk2_init() Found child 2852 in
scoreboard slot 0
[Mon Jan 19 10:53:21 2004] [notice] vm.init(): Jni lib: C:\Program
Files\JavaSoft\JRE\1.3.1_03\bin\hotspot\jvm.dll
[Mon Jan 19 10:53:21 2004] [notice] vm.open2() done
[Mon Jan 19 10:53:21 2004] [notice] jni.validate() class=
org/apache/jk/apr/TomcatStarter
[Mon Jan 19 10:53:21 2004] [notice] Loaded org/apache/jk/apr/TomcatStarter
[Mon Jan 19 10:53:21 2004] [error] Can't find class
org/apache/jk/apr/AprImpl
java.lang.NoClassDefFoundError: javax/management/MBeanRegistration
 at java.lang.ClassLoader.defineClass0(Native Method)
 at java.lang.ClassLoade

RE: Tomcat 5.0 & mod_jk Configuration

2004-01-21 Thread David Short
I've been asking for an example or a working 4.1.29 or 5.0.16
workers2.properties file for a couple weeks now.  Somewhere between 4.1.0
and 4.1.29, the workers2.properties file syntax has changed.  I can get
Apache 2.0.48 to talk to Tomcat 4.1.0 in-process, via mod_jk2.dll (2.0.43),
on W2K without issue.  Apache 2.0.48 doesn't work with Tomcat 4.1.29 using
the same 4.1.0 workers2.properties file...

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Barker
Sent: Wednesday, January 21, 2004 7:57 PM
To: [EMAIL PROTECTED]
Subject: Re: Tomcat 5.0 & mod_jk Configuration


It seems that the Jk2 syntax is:
JkSet config.file /path/to/apache/conf/workers2.properties

Of course, the syntax of workers2.properties is different from Jk1's
workers.properties.  I don't really use Jk2, so I can't comment much on what
you need.  You could try the docs ;-), or (better) search the archives for
one of the many posted examples of a working file.

"Brennon Obst" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Attn: Bill Barker
>
> Dear usergroup,
>
> In my httpd.conf I have added my jk module sucessfully but my syntax
> complains when I declair my workers file as follows.
>
> LoadModule jk2_module modules/mod_jk.dll
>
> #
> # Configure mod_jk - sytax error apparently
> #
> JkWorkersFile conf/workers.properties
> #JkLogFile logs/mod_jk.log
> #JkLogLevel info
>
> The sytax error is:
>
> C:\Program Files\Apache Group\Apache2\bin>apache.exe -t
> Syntax error on line 140 of C:/Program Files/Apache
> Group/Apache2/conf/httpd.con
> f:
> Invalid command 'JkWorkersFile', perhaps mis-spelled or defined by a
> module not
> included in the server configuration
>
> This use to work I am assuming with mod_jk however now it does not.
>
> I am using the guide located here:
> http://raibledesigns.com/tomcat/
>
> Thank you in advance,
>
> /brennon
>
>
> > Thank you for the reply,
> >
> > Could you please clairify a few points.
> > 1. Is the new home available for web access?
>
> It is just a re-packaging, nothing more.  TC 5 doesn't contain the
> o.a.ajp.** packages.
>
> >
> > 2. For  > className="org.apache.ajp.tomcat4.config.ApacheConfig"
> > modJk="/usr/local/apache2/modules/mod_jk.so"
> > >>> Is this the same for tomcat 5? (notice ...ajp.tomcat4.config...)?
> >
>
> 
> Everything else is the same.
>
> > 3. Is there a new version of the how-to for jk2/Apache2/tomcat5.0 ?
> >
>
> Not yet (As another thread has pointed out, I'm not the best doc writer
> :). The TC 4 docs are still vaild, once you change the package name
> however. Also, ApacheConfig doesn't work with mod_jk2:  It is only for
> mod_jk.
>
> > Thank you in advance,
> >
> > Brennon Obst
> >
> > -Original Message-
> > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker
> > Sent: Wednesday, 21 January 2004 4:42 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Tomcat 5.0 & mod_jk Configuration
> >
> >
> > As of 5.0.18, ApacheConfig and friends have moved to their new home in
>
> > the org.apache.jk.config package.  With 5.0.18, there is no change in
> > the functionality.  It may be extended on future releases.
> >
> > "Brennon Obst" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> > > Tomcat 5.0 & mod_jk Configuration
> > > by James Thornton <[EMAIL PROTECTED] PROTECTED] > Dec
> > >
> >  > rc
> > hive
> > > /2003-12-31.html> 31, 2003 at 12:34 AM
> > >
> > >
> > >
> > > What in tomcat 5.0's configuration for mod_jk differs from how you
> > > would
> > >
> > > do it for tomcat 4.x? Is this documented anywhere?
> > >
> > >
> > >
> > > In the tomcat 4.x server.xml, I had:
> > >
> > >
> > >
> > >  > >
> > > modJk="/usr/local/apache2/modules/mod_jk.so" />
> > >
> > >
> > >
> > > Is this the same for tomcat 5? (notice ...ajp.tomcat4.config...)
> > >
> > >
> > >
> > > I tried simply changing it to ...ajp.tomcat5.config... to no avail.
> > >
> > >
> > >
> > > Thanks.
> > >
> > >
> > >
> > > I have posted this exact same thing and also do not have any avenues
>
> > > yet. Can anyone help us out here? thank you in advance,
> > >
> > >
> > > Brennon Obst
> > >
> > >
> > > Java Security Programmer
> > > iEnergy Main Branch
> > > 39 Melbourne St. / Brisbane
> > > p. (617) 3846-
> > > [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 PROT

RE: running tomcat5 in-process

2004-01-23 Thread David Short
Hi Paul,

Would you mind posting your workers2.properties file?  I've been trying to
get Apache 2.0.48 to load Tomcat 4.1.29/5.0.16 in-process without much
success.

Thanks,

Dave

-Original Message-
From: Phil Adams [mailto:[EMAIL PROTECTED]
Sent: Friday, January 23, 2004 7:42 AM
To: tomcat
Subject: running tomcat5 in-process


Well...
I am and have been for about a week trying to get Apache2 to start Tomcat5
in-process on Windows XP.  I have finally gotten Apache2 to process thru
the workers2.properties file without errors.  I can start Tomcat5 manually
without errors. I have mod_jk2, what appears to be at least, loading
correctly.
no more errors anyway...

The one piece I believe that is missing is a  entry in server.xml
for Tomcat for the jni connector.  Tomcat3 had a "jni_connect.dll" as well
as a class  "org.apache.tomcat.service.JNIEndpointConnector".
I cannot find these for Tomcat5.  Any suggestions?  I have tried using older
versions of components before wihtour success.

Thanks for all your help...

_Phil Adams
Fort Worth, Texas



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



RE: running tomcat5 in-process

2004-01-23 Thread David Short
Meant to address this to Phil, sorry about that!

Hi Paul,

Would you mind posting your workers2.properties file?  I've been trying to
get Apache 2.0.48 to load Tomcat 4.1.29/5.0.16 in-process without much
success.

Thanks,

Dave

-Original Message-
From: Phil Adams [mailto:[EMAIL PROTECTED]
Sent: Friday, January 23, 2004 7:42 AM
To: tomcat
Subject: running tomcat5 in-process


Well...
I am and have been for about a week trying to get Apache2 to start Tomcat5
in-process on Windows XP.  I have finally gotten Apache2 to process thru
the workers2.properties file without errors.  I can start Tomcat5 manually
without errors. I have mod_jk2, what appears to be at least, loading
correctly.
no more errors anyway...

The one piece I believe that is missing is a  entry in server.xml
for Tomcat for the jni connector.  Tomcat3 had a "jni_connect.dll" as well
as a class  "org.apache.tomcat.service.JNIEndpointConnector".
I cannot find these for Tomcat5.  Any suggestions?  I have tried using older
versions of components before wihtour success.

Thanks for all your help...

_Phil Adams
Fort Worth, Texas



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



RE: running tomcat5 in-process

2004-01-23 Thread David Short
I'm getting that error.  DO you know what causes this error?

-Original Message-
From: Alvaro Seixas [mailto:[EMAIL PROTECTED]
Sent: Friday, January 23, 2004 8:10 AM
To: Tomcat Users List
Subject: Re: running tomcat5 in-process


Aren't you getting this error in Apache's error.log:
[error] mod_jk child init 1 0
???


- Original Message -
From: "Phil Adams" <[EMAIL PROTECTED]>
To: "tomcat" <[EMAIL PROTECTED]>
Sent: Friday, January 23, 2004 1:42 PM
Subject: running tomcat5 in-process


Well...
I am and have been for about a week trying to get Apache2 to start Tomcat5
in-process on Windows XP.  I have finally gotten Apache2 to process thru
the workers2.properties file without errors.  I can start Tomcat5 manually
without errors. I have mod_jk2, what appears to be at least, loading
correctly.
no more errors anyway...

The one piece I believe that is missing is a  entry in server.xml
for Tomcat for the jni connector.  Tomcat3 had a "jni_connect.dll" as well
as a class  "org.apache.tomcat.service.JNIEndpointConnector".
I cannot find these for Tomcat5.  Any suggestions?  I have tried using older
versions of components before wihtour success.

Thanks for all your help...

_Phil Adams
Fort Worth, Texas


-
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: running tomcat5 in-process

2004-01-23 Thread David Short
Excellent, I'll give it a try.  Any chance of getting a copy of mod_jk2.dll
that you compiled?
Thanks.

-Original Message-
From: Phil Adams [mailto:[EMAIL PROTECTED]
Sent: Friday, January 23, 2004 8:17 AM
To: Tomcat Users List
Subject: Re: running tomcat5 in-process


Here is where I am so far.
I finally got past all of the errors with Apache by compiling my own
mod_jk2.dll.
I also compiled the jkjni.dll for the apr.NativeSo but this created even
more errors.
so I have it currently commented out of jk2.properties.

I also found that I needed an 'apache2_home' as well as 'apache_home' in my
environment vars.  also, make sure you have 'catalina_home', 'tomcat_home'
and 'java_home'.

As you can read from my original post I am searching for the jni connector
for tomcat5.
I believe this is the missing key to the puzzle.

--
jk2.properties
--
shm.file=c:/Apache2/logs/jk2.shm
#apr.NativeSo=C:/tomcat/bin/jkjni.dll
handler.list=apr,request,channelJni
apr.jniModeSo=inprocess
channelJni.disabled = 0

--
workers2.properties
--
[logger]
level=DEBUG

[config:]
file=c:/Apache2/conf/workers2.properties
debug=0
debugEnv=0

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

[shm]
file=c:/Apache2/logs/jk2.shm
size=1048576
debug=0
disabled=0

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

[lb:lb]
info=Default load balancer.
debug=0

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

[worker.jni:onStartup]
info=Command to be executed by the VM on startup. This one will start
tomcat.
class=org/apache/jk/apr/TomcatStarter
# For Tomcat 5 use the 'stard' for startup argument
ARG=stard
stdout=c:/Apache2/logs/stdout.log
stderr=c:/Apache2/logs/stderr.log

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

[vm:]
info=Parameters used to load a JVM in the server process
OPT=-Djava.class.path=c:/Tomcat/server/lib/tomcat-jk2.jar;c:/Tomcat/server/l
ib/tomcat-jni.jar;c:/Tomcat/server/lib/commons-logging.jar;c:/tomcat/common/
lib/jmx.jar;c:/tomcat/bin/bootstrap.jar;c:/Tomcat/server/lib/commons-digeste
r.jar;c:/Tomcat/server/lib/commons-beanutils.jar;c:/Tomcat/server/lib/common
s-modeler.jar;c:/Tomcat/server/lib/tomcat-util.jar;c:/Tomcat/server/lib/tomc
at-coyote.jar;c:/Tomcat/common/lib/commons-collections.jar;c:/Tomcat/common/
lib/naming-common.jar;c:/Tomcat/common/lib/servlet-api.jar;c:/Tomcat/server/
lib/catalina.jar;c:/java2/lib/tools.jar
OPT=-Dtomcat.home=c:/Tomcat
OPT=-Dcatalina.home=c:/Tomcat
OPT=-Dcatalina.base=c:/Tomcat
OPT=-Djava.home=c:/java2
OPT=-Dserverroot=c:/apache2
OPT=-Djava.endorsed.dirs=C:/Tomcat/common/endorsed
OPT=-Djava.io.tmpdir=C:/Tomcat/temp
OPT=-Dstdout=c:/Apache2/logs/stdout.log
OPT=-Dstderr=c:/Apache2/logs/stderr.log
OPT=-Xmx128M

# Map the Tomcat webapps to the Web server uri space
[uri:/servlets-examples/*]
context=/servlets-examples

[uri:/jsp-examples/*]
context=/jsp-examples

[uri:/tomcat-docs/*]
context=/tomcat-docs

[uri:/jetspeed/*]
context=/jetspeed

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

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

--
End of workers2.properties
--

_Phil
[EMAIL PROTECTED]
Fort Worth, Texas


-
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: running tomcat5 in-process

2004-01-23 Thread David Short
Phil posted his mod_jk2.dll a few posts ago.  He also posted his
workers2.properties file a few posts back.  Check out his [vm:] section for
the JAR list (OPT=-Djava.class.path=) directive and the "Can't find class
org/apache/jk/apr/AprImpl" error  should go away.  It looks like the
"[error] mod_jk child init 1 0" is a bug, as you pointed out.

-Original Message-
From: Alvaro Seixas [mailto:[EMAIL PROTECTED]
Sent: Friday, January 23, 2004 8:47 AM
To: Tomcat Users List
Subject: Re: running tomcat5 in-process


Yeah man, would be great if you post your mod_jk2.dll.
Cause my workers2.properties looks pretty much like yours, but I'm getting
these errors:

This one occurs when I add '[worker.jni:onStartup]'
[error] Can't find class org/apache/jk/apr/AprImpl


This one all the time:
[error] mod_jk child init 1 0


Thanks a lot,
Alvaro

----- Original Message -
From: "David Short" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Friday, January 23, 2004 2:26 PM
Subject: RE: running tomcat5 in-process


> Excellent, I'll give it a try.  Any chance of getting a copy of
mod_jk2.dll
> that you compiled?
> Thanks.
>
> -Original Message-
> From: Phil Adams [mailto:[EMAIL PROTECTED]
> Sent: Friday, January 23, 2004 8:17 AM
> To: Tomcat Users List
> Subject: Re: running tomcat5 in-process
>
>
> Here is where I am so far.
> I finally got past all of the errors with Apache by compiling my own
> mod_jk2.dll.
> I also compiled the jkjni.dll for the apr.NativeSo but this created even
> more errors.
> so I have it currently commented out of jk2.properties.
>
> I also found that I needed an 'apache2_home' as well as 'apache_home' in
my
> environment vars.  also, make sure you have 'catalina_home', 'tomcat_home'
> and 'java_home'.
>
> As you can read from my original post I am searching for the jni connector
> for tomcat5.
> I believe this is the missing key to the puzzle.
>
> --
> jk2.properties
> --
> shm.file=c:/Apache2/logs/jk2.shm
> #apr.NativeSo=C:/tomcat/bin/jkjni.dll
> handler.list=apr,request,channelJni
> apr.jniModeSo=inprocess
> channelJni.disabled = 0
>
> --
> workers2.properties
> --
> [logger]
> level=DEBUG
>
> [config:]
> file=c:/Apache2/conf/workers2.properties
> debug=0
> debugEnv=0
>
> [uriMap:]
> info=Maps the requests. Options: debug
> debug=0
>
> [shm]
> file=c:/Apache2/logs/jk2.shm
> size=1048576
> debug=0
> disabled=0
>
> [workerEnv:]
> info=Global server options
> timing=1
> debug=0
>
> [lb:lb]
> info=Default load balancer.
> debug=0
>
> [channel.jni:jni]
> info=The jni channel, used if tomcat is started inprocess
> debug=0
>
> [worker.jni:onStartup]
> info=Command to be executed by the VM on startup. This one will start
> tomcat.
> class=org/apache/jk/apr/TomcatStarter
> # For Tomcat 5 use the 'stard' for startup argument
> ARG=stard
> stdout=c:/Apache2/logs/stdout.log
> stderr=c:/Apache2/logs/stderr.log
>
> [worker.jni:onShutdown]
> info=Command to be executed by the VM on shutdown. This one will stop
> tomcat.
> class=org/apache/jk/apr/TomcatStarter
> ARG=stop
>
> [vm:]
> info=Parameters used to load a JVM in the server process
>
OPT=-Djava.class.path=c:/Tomcat/server/lib/tomcat-jk2.jar;c:/Tomcat/server/l
>
ib/tomcat-jni.jar;c:/Tomcat/server/lib/commons-logging.jar;c:/tomcat/common/
>
lib/jmx.jar;c:/tomcat/bin/bootstrap.jar;c:/Tomcat/server/lib/commons-digeste
>
r.jar;c:/Tomcat/server/lib/commons-beanutils.jar;c:/Tomcat/server/lib/common
>
s-modeler.jar;c:/Tomcat/server/lib/tomcat-util.jar;c:/Tomcat/server/lib/tomc
>
at-coyote.jar;c:/Tomcat/common/lib/commons-collections.jar;c:/Tomcat/common/
>
lib/naming-common.jar;c:/Tomcat/common/lib/servlet-api.jar;c:/Tomcat/server/
> lib/catalina.jar;c:/java2/lib/tools.jar
> OPT=-Dtomcat.home=c:/Tomcat
> OPT=-Dcatalina.home=c:/Tomcat
> OPT=-Dcatalina.base=c:/Tomcat
> OPT=-Djava.home=c:/java2
> OPT=-Dserverroot=c:/apache2
> OPT=-Djava.endorsed.dirs=C:/Tomcat/common/endorsed
> OPT=-Djava.io.tmpdir=C:/Tomcat/temp
> OPT=-Dstdout=c:/Apache2/logs/stdout.log
> OPT=-Dstderr=c:/Apache2/logs/stderr.log
> OPT=-Xmx128M
>
> # Map the Tomcat webapps to the Web server uri space
> [uri:/servlets-examples/*]
> context=/servlets-examples
>
> [uri:/jsp-examples/*]
> context=/jsp-examples
>
> [uri:/tomcat-docs/*]
> context=/tomcat-docs
>
> [uri:/jetspeed/*]
> context=/jetspeed
>
> ###
> [status:]
> info=Status worker, displays runtime informations
>
> [uri:/jkstat

RE: running tomcat5 in-process

2004-01-24 Thread David Short
Ok, I tried the mod_jk2.dll with Apache 2.0.48 and Tomcat 4.1.0 - everything
loaded without error messages.  However, my JSPs started misbehaving.  Looks
as though it can't understand JSTL...  I then tried with Tomcat 5.0.16 and
got the following errors in the Apache2\logs\error.log

[Sat Jan 24 09:56:26 2004] [notice] config.update(): done logger
[Sat Jan 24 09:56:26 2004] [notice] config.update(): done config:
[Sat Jan 24 09:56:26 2004] [notice] config.update(): done uriMap:
[Sat Jan 24 09:56:26 2004] [notice] config.update(): done shm
[Sat Jan 24 09:56:26 2004] [notice] config.update(): done workerEnv:
[Sat Jan 24 09:56:26 2004] [notice] config.update(): done lb:lb
[Sat Jan 24 09:56:26 2004] [notice] config.update(): done channel.jni:jni
[Sat Jan 24 09:56:26 2004] [notice] config.update(): done
worker.jni:onStartup
[Sat Jan 24 09:56:26 2004] [notice] config.update(): done
worker.jni:onShutdown
[Sat Jan 24 09:56:26 2004] [notice] config.update(): done vm:
[Sat Jan 24 09:56:26 2004] [notice] config.update(): done
uri:/servlets-examples/*
[Sat Jan 24 09:56:26 2004] [notice] config.update(): done
uri:/jsp-examples/*
[Sat Jan 24 09:56:26 2004] [notice] config.update(): done uri:/tomcat-docs/*
[Sat Jan 24 09:56:27 2004] [notice] config.update(): done uri:/jetspeed/*
[Sat Jan 24 09:56:27 2004] [notice] config.update(): done status:
[Sat Jan 24 09:56:27 2004] [notice] config.update(): done uri:/jkstatus/*
[Sat Jan 24 09:56:27 2004] [notice] Parent: Created child process 1924
[Sat Jan 24 09:56:27 2004] [notice] config.update(): done logger
[Sat Jan 24 09:56:27 2004] [notice] config.update(): done config:
[Sat Jan 24 09:56:27 2004] [notice] config.update(): done uriMap:
[Sat Jan 24 09:56:27 2004] [notice] config.update(): done shm
[Sat Jan 24 09:56:27 2004] [notice] config.update(): done workerEnv:
[Sat Jan 24 09:56:27 2004] [notice] config.update(): done lb:lb
[Sat Jan 24 09:56:27 2004] [notice] config.update(): done channel.jni:jni
[Sat Jan 24 09:56:27 2004] [notice] config.update(): done
worker.jni:onStartup
[Sat Jan 24 09:56:27 2004] [notice] config.update(): done
worker.jni:onShutdown
[Sat Jan 24 09:56:27 2004] [notice] config.update(): done vm:
[Sat Jan 24 09:56:27 2004] [notice] config.update(): done
uri:/servlets-examples/*
[Sat Jan 24 09:56:27 2004] [notice] config.update(): done
uri:/jsp-examples/*
[Sat Jan 24 09:56:27 2004] [notice] config.update(): done uri:/tomcat-docs/*
[Sat Jan 24 09:56:27 2004] [notice] config.update(): done uri:/jetspeed/*
[Sat Jan 24 09:56:27 2004] [notice] config.update(): done status:
[Sat Jan 24 09:56:27 2004] [notice] config.update(): done uri:/jkstatus/*
[Sat Jan 24 09:56:27 2004] [notice] Child 1924: Child process is running
[Sat Jan 24 09:56:27 2004] [notice] jk2_init() Setting scoreboard slot 0 for
child 1924
[Sat Jan 24 09:56:27 2004] [notice] vm.init(): Jni lib: C:\Program
Files\JavaSoft\JRE\1.3.1_03\bin\hotspot\jvm.dll
[Sat Jan 24 09:56:27 2004] [notice] vm.open2() done
[Sat Jan 24 09:56:27 2004] [notice] jni.validate() class=
org/apache/jk/apr/TomcatStarter
security properties not found. using defaults.
[Sat Jan 24 09:56:27 2004] [notice] Loaded org/apache/jk/apr/TomcatStarter
[Sat Jan 24 09:56:27 2004] [error] Can't find class
org/apache/jk/apr/AprImpl
java.lang.NoClassDefFoundError: javax/management/MBeanRegistration
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
[Sat Jan 24 09:56:27 2004] [notice] vm.detach() ok
[Sat Jan 24 09:56:27 2004] [error] workerEnv.initWorkers() init failed for
worker.jni:onStartup
[Sat Jan 24

OT JSP/Java data type conversion

2004-01-29 Thread David Short
Sorry for the off topic post, but this is driving me crazy.  How can I
convert a String data type to a BigDecimal data type?  I'm reading a
request.getResponse('userId") and need to convert to a BigDecimal for
insertion into a database.



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



RE: OT JSP/Java data type conversion

2004-01-29 Thread David Short
Yes, that worked - thanks!

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 29, 2004 7:46 AM
To: Tomcat Users List
Subject: RE: OT JSP/Java data type conversion



Howdy,

>Sorry for the off topic post, but this is driving me crazy.  How can I
>convert a String data type to a BigDecimal data type?  I'm reading a
>request.getResponse('userId") and need to convert to a BigDecimal for
>insertion into a database.

Does 
String paramValue = request.getParameter("userId");
BigDecimal bd = new BigDecimal(paramValue)
work for you?

Yoav Shapira



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


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


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

Yet another OT question.

2004-02-02 Thread David Short
It seems like a slow day on the list so, thought I'd throw my issue out
there.

I'm working with Tomcat 4.1.0, Oracle 8.1.7 and JDBC 1.2.  It seems that the
JDBC executeUpdate() method doesn't raise an exception when I pass an
incorrect SQL statement.  It returns 0 rows, but no exception.  Anyone seen
this before?



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



RE: Yet another OT question.

2004-02-02 Thread David Short
I pulled the latest (1.2 for Oracle 8.1.7) off of Oracle's web site today.

-Original Message-
From: George Sexton [mailto:[EMAIL PROTECTED]
Sent: Monday, February 02, 2004 6:33 PM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: Yet another OT question.


Probably a flake in the Oracle driver. Check you are using the latest
one.

-Original Message-----
From: David Short [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 02, 2004 4:18 PM
To: 'Tomcat Users List'
Subject: Yet another OT question.


It seems like a slow day on the list so, thought I'd throw my issue out
there.

I'm working with Tomcat 4.1.0, Oracle 8.1.7 and JDBC 1.2.  It seems that
the
JDBC executeUpdate() method doesn't raise an exception when I pass an
incorrect SQL statement.  It returns 0 rows, but no exception.  Anyone
seen
this before?



-
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: Yet another OT question.

2004-02-02 Thread David Short
My statement is performing an insert, which would not return a result set.
An executeQuery() would return a result set.  I too, read the description
about returning an int.  I intentionally tried inserting a duplicate value
in the index, trying to force an error, and no error was generated.  The
return value was 0.  So, it is returning zero (nothing was inserted) but
that's it.  No SQLException.  There's got to be a way to catch an error like
this.

-Original Message-
From: George Sexton [mailto:[EMAIL PROTECTED]
Sent: Monday, February 02, 2004 8:10 PM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: Yet another OT question.


I broke out my JDBC handbook (JDBC API Tutorial and Reference, Second
Edition) and it says:

"Returns an int indicating the number of rows affeted by an
INSERT,UPDATE, or DELETE statement; 0 if no rows were affected or the
statement executed was a DDL statement."

"Throws SQLException if the sepcified argument is a statement that
generates a result set."

>From reading this, it appears the driver is compliant and working per
the specification.

-Original Message-
From: David Short [mailto:[EMAIL PROTECTED]
Sent: Monday, February 02, 2004 7:59 PM
To: 'Tomcat Users List'
Subject: RE: Yet another OT question.


I pulled the latest (1.2 for Oracle 8.1.7) off of Oracle's web site
today.

-Original Message-
From: George Sexton [mailto:[EMAIL PROTECTED]
Sent: Monday, February 02, 2004 6:33 PM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: Yet another OT question.


Probably a flake in the Oracle driver. Check you are using the latest
one.

-Original Message-
From: David Short [mailto:[EMAIL PROTECTED]
Sent: Monday, February 02, 2004 4:18 PM
To: 'Tomcat Users List'
Subject: Yet another OT question.


It seems like a slow day on the list so, thought I'd throw my issue out
there.

I'm working with Tomcat 4.1.0, Oracle 8.1.7 and JDBC 1.2.  It seems that
the
JDBC executeUpdate() method doesn't raise an exception when I pass an
incorrect SQL statement.  It returns 0 rows, but no exception.  Anyone
seen
this before?



-
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: Yet another OT question.

2004-02-02 Thread David Short
How about replying to one email address or the other. ok?  I'm getting
duplicate messages.  Don't get me wrong, I appreciate your help. I just
don't need the same message twice.

-Original Message-
From: George Sexton [mailto:[EMAIL PROTECTED]
Sent: Monday, February 02, 2004 9:20 PM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: Yet another OT question.


The error is signaled by getting 0 back as the number of affected
records.

-Original Message-
From: David Short [mailto:[EMAIL PROTECTED]
Sent: Monday, February 02, 2004 10:16 PM
To: 'Tomcat Users List'
Subject: RE: Yet another OT question.


My statement is performing an insert, which would not return a result
set.
An executeQuery() would return a result set.  I too, read the
description
about returning an int.  I intentionally tried inserting a duplicate
value
in the index, trying to force an error, and no error was generated.  The
return value was 0.  So, it is returning zero (nothing was inserted) but
that's it.  No SQLException.  There's got to be a way to catch an error
like
this.

-Original Message-
From: George Sexton [mailto:[EMAIL PROTECTED]
Sent: Monday, February 02, 2004 8:10 PM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: Yet another OT question.


I broke out my JDBC handbook (JDBC API Tutorial and Reference, Second
Edition) and it says:

"Returns an int indicating the number of rows affeted by an
INSERT,UPDATE, or DELETE statement; 0 if no rows were affected or the
statement executed was a DDL statement."

"Throws SQLException if the sepcified argument is a statement that
generates a result set."

>From reading this, it appears the driver is compliant and working per
the specification.

-Original Message-
From: David Short [mailto:[EMAIL PROTECTED]
Sent: Monday, February 02, 2004 7:59 PM
To: 'Tomcat Users List'
Subject: RE: Yet another OT question.


I pulled the latest (1.2 for Oracle 8.1.7) off of Oracle's web site
today.

-Original Message-
From: George Sexton [mailto:[EMAIL PROTECTED]
Sent: Monday, February 02, 2004 6:33 PM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: Yet another OT question.


Probably a flake in the Oracle driver. Check you are using the latest
one.

-Original Message-
From: David Short [mailto:[EMAIL PROTECTED]
Sent: Monday, February 02, 2004 4:18 PM
To: 'Tomcat Users List'
Subject: Yet another OT question.


It seems like a slow day on the list so, thought I'd throw my issue out
there.

I'm working with Tomcat 4.1.0, Oracle 8.1.7 and JDBC 1.2.  It seems that
the
JDBC executeUpdate() method doesn't raise an exception when I pass an
incorrect SQL statement.  It returns 0 rows, but no exception.  Anyone
seen
this before?



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


-
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: Yet another OT question.

2004-02-04 Thread David Short
I've tested my OCI8 installation with the JdbcCheckup.java program from the
Oracle JDBC Developer's Guide (attached) and it works.  I'm using Oracle's
connection caching class (OracleConnectionCacheImpl) and everything works
fine with the thin driver.  When I try the oci8 driver I get this message:

2004-02-03 22:55:24 Failed to create data source: No suitable driver

I tried executing the following code before I initialize the connect pool:

DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());

This didn't seem to make a difference.

Is the oci8 driver compatible with Oracle's OracleConnectionCacheImpl class?
If so, what am I doing wrong.

W2K
Oracle 8.1.7
Apache 2.0.43
Tomcat 4.1.0

-----Original Message-
From: David Short [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 03, 2004 9:14 PM
To: 'George Sexton'
Subject: RE: Yet another OT question.



  
jdbcURL

(description=(address=(host=hostname)(protocol=tcp)(port=1521))
(connect_data=(sid=orcl)))
  

  
user
username
  

  
password
password
  

  
maxLimit
50
  

  
minLimit
5
  

-Original Message-
From: George Sexton [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 03, 2004 8:13 PM
To: [EMAIL PROTECTED]
Subject: RE: Yet another OT question.


If you could show me the values for your context-params I could make
some suggestions. I don't use the pooling stuff.


-Original Message-
From: David Short [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 03, 2004 8:59 PM
To: 'George Sexton'
Subject: RE: Yet another OT question.


I've been reading on Oracle's web site and think that the thin driver,
which
is what I've been using, doesn't perform extensive error checking like
the
OCI driver does.  So, I'm trying to get the OCI driver working.  I've
got
the Oracle client software loaded (ocijdbs8.dll in the
%ORACLE_HOME%\jdbs\bin directory and classes12.zip and nls_charset12.zip
in
%ORACLE_HOME%\jdbs\lib directory).

Tomcat complained about an invalid driver designation.

2004-02-03 19:35:10 Failed to create data source: ORA-06401: NETCMN:
invalid
driver designator

So, I got to looking around and found a post stating I should change my
database URL to this.

  
jdbcURL

(description=(address=(host=serverName)(protocol=tcp)(port=
1521
))(connect_data=(sid=orcl)))
  

Now, I get this error:

2004-02-03 19:47:14 Failed to create data source: No suitable driver

My environment is set up according to the Oracle installation
instructions.

I'm still digging, any ideas?

-Original Message-
From: George Sexton [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 03, 2004 7:22 PM
To: [EMAIL PROTECTED]
Subject: RE: Yet another OT question.


The list software that Tomcat uses seems to have more than it's share of
problems with Auto Responders, and the like. I also noticed that it
doesn't strip off notification requests. I ended up re-writing my
procmail filter to remove them. In general, the list software has a lot
of problems.

-Original Message-
From: David Short [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 03, 2004 8:21 PM
To: 'George Sexton'
Subject: RE: Yet another OT question.


Yours is the only one that returns two replies...  Anyway, thanks for
your
help!

-Original Message-
From: George Sexton [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 03, 2004 8:58 AM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: Yet another OT question.


Complain to the list maintainers or check your own MUA for a spurious
REPLY-TO header. The message comes in with two reply-to headers and my
MUA is just honoring them when I hit reply:

There are two cases going on here. The first is that you have invalid
SQL. You might be able to catch this by using a prepared statement
rather than a statement. In my experience, the preparation of the
statement will throw an error.

In the second case, if you really need notification about whether the
insert failed because the record existed, you need to create a stored
procedure and send back a result from it. The result will have to be in
the form of a record set (or if Oracle supports it, an OUTPUT variable).
This has the unfortunate side effect of increased overhead to handle the
result set.

I think the problem is that the executeUpdate() method was intentionally
designed to be light-weight and you are trying to use it in a situation
where you need more functionality.


Return-Path:
<[EMAIL PROTECTED]>
Received: from mail.apache.org (daedalus.apache.org [208.185.179.12])
by starbug.mhsoftware.com (8.12.8/8.12.8) with SMTP id
i135NvL8031350
for <[EMAIL PROTECTED]>; Mon, 2 Feb 2004 22:23:57 -0700
Received: (qmail 5054 invoked by uid 500); 3 Feb 2004 05:23:13 -
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:[EMAIL PROTECTED]>
Lis

Tomcat, Oracle and connection caching.

2004-02-05 Thread David Short
Does anyone have Tomcat 4.1.x running with connection caching using the
Oracle oci8 driver?  I can get it to work using the thin driver but it won't
work with the oci8 driver.  The oci8 driver works just fine with the test
program provided by Oracle, so my configuration is right.  There's something
about the OracleConnectionCacheImpl class that the oci8 driver doesn't like.

Here's the error: java.sql.SQLException: No suitable driver

Any help would be greatly appreciated.




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



RE: Tomcat, Oracle and connection caching.

2004-02-06 Thread David Short
It requires the Oracle client DLLs (or .so files) to be installed in the
correct place and the path setup correctly.  I have tested my oci8
configuration with the JdbcCheck program supplied by Oracle and the oci8
driver works just fine without JNI.  For some reason, it's not working with
JNI.  I've been reading everything I can find on the subject and haven't
seen anything explicitly describing special configurations, outside of what
I've already tried, for JNI.  The documentation states to simply replace
thin with oci8 in the JDBCURL string.  Also, in researching this, I've found
that you need to replace the thin JDBCURL string as follows in the web.xml
file:

Thin driver:
jdbc:oracle:thin:@serverName:1521:orcl

oci8 driver:
(description=(address=(host=serverName)(protocol=tcp)(port=1521
))(connect_data=(sid=orcl)))

Not sure where to go from here.  Perhaps, if you had a few spare moments,
you could try the oci8 driver and see what you come up with?

Thanks

Dave
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Friday, February 06, 2004 6:04 AM
To: Tomcat Users List
Subject: RE: Tomcat, Oracle and connection caching.



Howdy,
I have it running with the thin driver.  I haven't tried OCI.  Doesn't
the OCI driver require some system libraries that have to be declared in
the LD_LIBRARY_PATH or loaded via JNI?

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-
>From: David Short [mailto:[EMAIL PROTECTED]
>Sent: Friday, February 06, 2004 12:14 AM
>To: 'Tomcat Users List'
>Subject: Tomcat, Oracle and connection caching.
>
>Does anyone have Tomcat 4.1.x running with connection caching using the
>Oracle oci8 driver?  I can get it to work using the thin driver but it
>won't
>work with the oci8 driver.  The oci8 driver works just fine with the
test
>program provided by Oracle, so my configuration is right.  There's
>something
>about the OracleConnectionCacheImpl class that the oci8 driver doesn't
>like.
>
>Here's the error: java.sql.SQLException: No suitable driver
>
>Any help would be greatly appreciated.
>
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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


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

RE: Tomcat, Oracle and connection caching.

2004-02-06 Thread David Short
Still no luck.  Here's the output from the
System.getProperty("java.library.path"):

java.library.path=c:/orahome/bin;c:/orahome/jdbc/lib

Here's the code:

public class ResourceManagerListener implements ServletContextListener
  {
  private OracleConnectionCacheImpl ds = null;
  private Context ctx = null;

  public void contextInitialized(ServletContextEvent sce)
{
ServletContext application  = sce.getServletContext();

/*
 * Get the JDBC URL, user, password and limit from the web.xml
 * context init parameters
 */
String jdbcURL  = application.getInitParameter("jdbcURL");
String user = application.getInitParameter("user");
String password = application.getInitParameter("password");
String minLimit = application.getInitParameter("minLimit");
String maxLimit = application.getInitParameter("maxLimit");
try
  {
  ds = new OracleConnectionCacheImpl();
  ds.setURL(jdbcURL);
  ds.setUser(user);
  ds.setPassword(password);
  ds.setMinLimit(Integer.parseInt(minLimit));
  ds.setMaxLimit(Integer.parseInt(maxLimit));
  }
catch (Exception e)
  {
>>>   application.log("Failed to create data source: " + e.getMessage());
<<< this is where it fails.
  }

/*
  Initialize the database connection pool.
*/
try
  {
  ctx = new InitialContext();
  ctx.lookup("java:comp/env/jdbc/altura");
  }
catch (Exception e)
  {
  application.log("Failed to create database connection pool: " +
e.getMessage());
  }

application.setAttribute("appDataSource", ds);
}

  public void contextDestroyed(ServletContextEvent sce)
{
ServletContext application  = sce.getServletContext();
application.removeAttribute("appDataSource");
// Close the connections in the DataSource
try
  {
  ds.close();
  }
catch (java.sql.SQLException e)
  {}

ds = null;
}
  }

Here are the web.xml entries:

  
jdbcURL

(description=(address=(host=serverName)(protocol=tcp)(port=1521
))(connect_data=(sid=orcl)))
  

  
user
userName
  

  
password
password
  

  
maxLimit
50
  

  
minLimit
5
  


and the Tomcat application error log message:

2004-02-06 08:57:05 Failed to create data source: No suitable driver


There is a strange twist.  If I use the oci8 driver, with the
ds.setMinLimit(Integer.parseInt(minLimit)); line above, this message appears
in the Tomcat application log.  If I comment out the line, no message
appears, but when I try to get a connection, I get the
java.sql.SQLException: No suitable driver message and the application fails.



-Original Message-
From: Ryan Lissack [mailto:[EMAIL PROTECTED]
Sent: Friday, February 06, 2004 8:21 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat, Oracle and connection caching.


Make sure that the directory containing the DLLs/SOs is in your java library
path.  You can check by printing System.getProperty("java.library.path"), if
it isn't there you can set it at vm startup (add
-Djava.library.path=/path/to/so)

-Original Message-
From: David Short [mailto:[EMAIL PROTECTED]
Sent: 06 February 2004 16:09
To: 'Tomcat Users List'
Subject: RE: Tomcat, Oracle and connection caching.


It requires the Oracle client DLLs (or .so files) to be installed in the
correct place and the path setup correctly.  I have tested my oci8
configuration with the JdbcCheck program supplied by Oracle and the oci8
driver works just fine without JNI.  For some reason, it's not working with
JNI.  I've been reading everything I can find on the subject and haven't
seen anything explicitly describing special configurations, outside of what
I've already tried, for JNI.  The documentation states to simply replace
thin with oci8 in the JDBCURL string.  Also, in researching this, I've found
that you need to replace the thin JDBCURL string as follows in the web.xml
file:

Thin driver:
jdbc:oracle:thin:@serverName:1521:orcl

oci8 driver:
(description=(address=(host=serverName)(protocol=tcp)(port=1521
))(connect_data=(sid=orcl)))

Not sure where to go from here.  Perhaps, if you had a few spare moments,
you could try the oci8 driver and see what you come up with?

Thanks

Dave
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Friday, February 06, 2004 6:04 AM
To: Tomcat Users List
Subject: RE: Tomcat, Oracle and connection caching.



Howdy,
I have it running with the thin driver.  I haven't tried OCI.  Doesn't
the OCI driver require some system libraries that have to be declared in
the LD_LIBRARY_PATH or loaded via JNI?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: David Short [mailto:[EMAIL PROTECTED]
>Sent: Friday, February 06, 2004 12:14

RE: Tomcat, Oracle and connection caching.

2004-02-06 Thread David Short
Are you using it with connection caching?

-Original Message-
From: Ryan Lissack [mailto:[EMAIL PROTECTED]
Sent: Friday, February 06, 2004 10:09 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat, Oracle and connection caching.


I have only used the oci driver under Oracle 9i. Our url looked something
like this though:

jdbc:oracle:oci:@TNS_ENTRY_NAME

where TNS_ENTRY_NAME is an entry in
[ORACLE_CLIENT_HOME]/network/ADMIN/tnsnames.ora

So for you, something like this ...

TNS_ENTRY_NAME =
(description=(address=(host=serverName)(protocol=tcp)(port=1521
))(connect_data=(sid=orcl))


-Original Message-----
From: David Short [mailto:[EMAIL PROTECTED]
Sent: 06 February 2004 17:20
To: 'Tomcat Users List'
Subject: RE: Tomcat, Oracle and connection caching.


Still no luck.  Here's the output from the
System.getProperty("java.library.path"):

java.library.path=c:/orahome/bin;c:/orahome/jdbc/lib

Here's the code:

public class ResourceManagerListener implements ServletContextListener
  {
  private OracleConnectionCacheImpl ds = null;
  private Context ctx = null;

  public void contextInitialized(ServletContextEvent sce)
{
ServletContext application  = sce.getServletContext();

/*
 * Get the JDBC URL, user, password and limit from the web.xml
 * context init parameters
 */
String jdbcURL  = application.getInitParameter("jdbcURL");
String user = application.getInitParameter("user");
String password = application.getInitParameter("password");
String minLimit = application.getInitParameter("minLimit");
String maxLimit = application.getInitParameter("maxLimit");
try
  {
  ds = new OracleConnectionCacheImpl();
  ds.setURL(jdbcURL);
  ds.setUser(user);
  ds.setPassword(password);
  ds.setMinLimit(Integer.parseInt(minLimit));
  ds.setMaxLimit(Integer.parseInt(maxLimit));
  }
catch (Exception e)
  {
>>>   application.log("Failed to create data source: " + e.getMessage());
<<< this is where it fails.
  }

/*
  Initialize the database connection pool.
*/
try
  {
  ctx = new InitialContext();
  ctx.lookup("java:comp/env/jdbc/altura");
  }
catch (Exception e)
  {
  application.log("Failed to create database connection pool: " +
e.getMessage());
  }

application.setAttribute("appDataSource", ds);
}

  public void contextDestroyed(ServletContextEvent sce)
{
ServletContext application  = sce.getServletContext();
application.removeAttribute("appDataSource");
// Close the connections in the DataSource
try
  {
  ds.close();
  }
catch (java.sql.SQLException e)
  {}

ds = null;
}
  }

Here are the web.xml entries:

  
jdbcURL

(description=(address=(host=serverName)(protocol=tcp)(port=1521
))(connect_data=(sid=orcl)))
  

  
user
userName
  

  
password
password
  

  
maxLimit
50
  

  
minLimit
5
  


and the Tomcat application error log message:

2004-02-06 08:57:05 Failed to create data source: No suitable driver


There is a strange twist.  If I use the oci8 driver, with the
ds.setMinLimit(Integer.parseInt(minLimit)); line above, this message appears
in the Tomcat application log.  If I comment out the line, no message
appears, but when I try to get a connection, I get the
java.sql.SQLException: No suitable driver message and the application fails.



-Original Message-
From: Ryan Lissack [mailto:[EMAIL PROTECTED]
Sent: Friday, February 06, 2004 8:21 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat, Oracle and connection caching.


Make sure that the directory containing the DLLs/SOs is in your java library
path.  You can check by printing System.getProperty("java.library.path"), if
it isn't there you can set it at vm startup (add
-Djava.library.path=/path/to/so)

-Original Message-
From: David Short [mailto:[EMAIL PROTECTED]
Sent: 06 February 2004 16:09
To: 'Tomcat Users List'
Subject: RE: Tomcat, Oracle and connection caching.


It requires the Oracle client DLLs (or .so files) to be installed in the
correct place and the path setup correctly.  I have tested my oci8
configuration with the JdbcCheck program supplied by Oracle and the oci8
driver works just fine without JNI.  For some reason, it's not working with
JNI.  I've been reading everything I can find on the subject and haven't
seen anything explicitly describing special configurations, outside of what
I've already tried, for JNI.  The documentation states to simply replace
thin with oci8 in the JDBCURL string.  Also, in researching this, I've found
that you need to replace the thin JDBCURL string as follows in the web.xml
file:

Thin driver:
jdbc:oracle:thin:@serverName:1521:orcl

oci8 driver:
(des

RE: Tomcat, Oracle and connection caching.

2004-02-06 Thread David Short
I have not had a chance to test with your suggestions.  I will later
shortly.  I want to use the oci8 driver for two reasons.

1) I want better database error checking.  (for testing mostly, we can
deploy with the thin driver).
2) Performance.  The docs state the oci8 driver is faster, at least for 8i.

Thanks for you help and I'll report back with my results.

-Original Message-
From: Ryan Lissack [mailto:[EMAIL PROTECTED]
Sent: Friday, February 06, 2004 10:31 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat, Oracle and connection caching.


Yeah, I have in the past.

We have successfully used the oci driver with the OracleConnectionCacheImpl
and the OracleOCIConnectionPool.

Have you tried the jdbc:oracle:oci:@TNS_ENTRY_NAME format?  Your 'No such
driver' problem looks to be caused by your url.

At present we only use the thin driver with the OracleConnectionCacheImpl.

Is there any reason you are using the oci driver?  We found after a lot of
testing that the thin driver was at least as fast, and normally faster, than
the oci driver in most situations.

Bear in mind this is all with 9i not 8.

-Original Message-
From: David Short [mailto:[EMAIL PROTECTED]
Sent: 06 February 2004 18:19
To: 'Tomcat Users List'
Subject: RE: Tomcat, Oracle and connection caching.


Are you using it with connection caching?

-
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 and connection caching.

2004-02-06 Thread David Short
It worked!  Where in the Oracle docs did it specify this?  It picks up table
or view does not exist type errors (I intenally screwed up a select
statement) but it doesn't pick up duplicate value in index type errors.  Is
there a error severity level that can selected?

-Original Message-
From: Ryan Lissack [mailto:[EMAIL PROTECTED]
Sent: Friday, February 06, 2004 10:31 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat, Oracle and connection caching.


Yeah, I have in the past.

We have successfully used the oci driver with the OracleConnectionCacheImpl
and the OracleOCIConnectionPool.

Have you tried the jdbc:oracle:oci:@TNS_ENTRY_NAME format?  Your 'No such
driver' problem looks to be caused by your url.

At present we only use the thin driver with the OracleConnectionCacheImpl.

Is there any reason you are using the oci driver?  We found after a lot of
testing that the thin driver was at least as fast, and normally faster, than
the oci driver in most situations.

Bear in mind this is all with 9i not 8.

-Original Message-
From: David Short [mailto:[EMAIL PROTECTED]
Sent: 06 February 2004 18:19
To: 'Tomcat Users List'
Subject: RE: Tomcat, Oracle and connection caching.


Are you using it with connection caching?

-
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: Tomcat, Oracle and connection caching.

2004-02-06 Thread David Short
I take that back.  It does catch duplicate value in index type errors.  I've
been screwing with my code so much trying to catch errors, that I was
trapping that error and ignoring it.  So, bottom line, I've got it working.
Thank you very much for your help!

-Original Message-----
From: David Short [mailto:[EMAIL PROTECTED]
Sent: Friday, February 06, 2004 4:01 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat, Oracle and connection caching.


It worked!  Where in the Oracle docs did it specify this?  It picks up table
or view does not exist type errors (I intenally screwed up a select
statement) but it doesn't pick up duplicate value in index type errors.  Is
there a error severity level that can selected?

-Original Message-
From: Ryan Lissack [mailto:[EMAIL PROTECTED]
Sent: Friday, February 06, 2004 10:31 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat, Oracle and connection caching.


Yeah, I have in the past.

We have successfully used the oci driver with the OracleConnectionCacheImpl
and the OracleOCIConnectionPool.

Have you tried the jdbc:oracle:oci:@TNS_ENTRY_NAME format?  Your 'No such
driver' problem looks to be caused by your url.

At present we only use the thin driver with the OracleConnectionCacheImpl.

Is there any reason you are using the oci driver?  We found after a lot of
testing that the thin driver was at least as fast, and normally faster, than
the oci driver in most situations.

Bear in mind this is all with 9i not 8.

-Original Message-
From: David Short [mailto:[EMAIL PROTECTED]
Sent: 06 February 2004 18:19
To: 'Tomcat Users List'
Subject: RE: Tomcat, Oracle and connection caching.


Are you using it with connection caching?

-
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: ALL-NEW running tomcat5 in-process

2004-02-06 Thread David Short
Did you ever figure this out?  If so, I sure would like to see your config
files!

-Original Message-
From: Phil Adams [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 29, 2004 3:37 PM
To: Tomcat Users List
Subject: ALL-NEW running tomcat5 in-process


OKAY!
I have figured it out!
I have managed to get Apache2 to start Tomcat5 with mod_jk2.
AND... it sends requests to Tomcat thru 'JNI'
apparently the whole thing is actually AJP1.3 over Coyote which
uses the CoyoteHandler which in turn calls the JKHandler.

the following is the only connector entry in my server.xml.
notice the port is set to zero.


I will post the entire saga tomorrow... (including all configs)
I am very tired right now and I need a BEER!

QUESTION:
the only thing I have left to resolve is that I get:
"No Host matches server name localhost"

I remember seeing a write-up about this before. can someone point me to the
thread
or pass along the answer to this last and final hurdle.



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



Apache 2.0.48 + Tomcat 4.1.29 + Mod_jk2

2004-02-07 Thread David Short
Does anyone have Tomcat 4.1.29 running in-process with Apache 2.0.48 and
mod_jk2 on W2K?  I keep getting the following error when I start Apache:

[Sat Feb 07 17:30:16 2004] [notice] Parent: Created child process 3192
[Sat Feb 07 17:30:16 2004] [notice] Child 3192: Child process is running
security properties not found. using defaults.
[Sat Feb 07 17:30:17 2004] [error] Can't find class
org/apache/jk/apr/AprImpl
java.lang.NoClassDefFoundError: javax/management/MBeanRegistration
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
[Sat Feb 07 17:30:17 2004] [error] workerEnv.initWorkers() init failed for
worker.jni:onStartup
[Sat Feb 07 17:30:17 2004] [error] Can't find class
org/apache/jk/apr/AprImpl
java.lang.NoClassDefFoundError: javax/management/MBeanRegistration
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
[Sat Feb 07 17:30:17 2004] [error] workerEnv.initWorkers() init failed for
worker.jni:onShutdown
[Sat Feb 07 17:30:17 2004] [error] mod_jk child init 1 0
[Sat Feb 07 17:30:17 2004] [notice] Child 3192: Acquired the start mutex.
[Sat Feb 07 17:30:17 2004] [notice] Child 3192: Starting 250 worker threads.

Here's my workers2.properties [vm:] snippet:

[vm:]
info=Parameters used to load a JVM in the server process
OPT=-Djava.class.path=c:/Tomcat/server/lib/tomcat-jk2.jar;c:/Tomcat/server/l
ib/tomcat-jni.jar;c:/Tomcat/server/lib/commons-logging.jar;c:/tomcat/common/
lib/jmx.jar;c:/tomcat/bin/bootstrap.jar;c:/Tomcat/server/lib/commons-digeste
r.jar;c:/Tomcat/server/lib/commons-beanutils.jar;c:/Tomcat/server/lib/common
s-modeler.jar;c:/Tomcat/server/lib/tomcat-util.jar;c:/Tomcat/server/lib/tomc
at-coyote.jar;c:/Tomcat/common/lib/commons-collections.jar;c:/Tomcat/common/
lib/naming-common.jar;c:/Tomcat/common/lib/servlet-api.jar;c:/Tomcat/server/
lib/catalina.jar;c:/jdk1.4.2/lib/tools.jar
OPT=-Dtomcat.home=c:/Tomcat
OPT=-Dcatalina.home=c:/Tomcat
OPT=-Dcatalina.base=c:/Tomcat
OPT=-Djava.home=c:/jdk1.4.2
OPT=-Dserverroot=c:/Apache2
OPT=-Djava.endorsed.dirs=c:/Tomcat/common/endorsed
OPT=-Djava.io.tmpdir=c:/Tomcat/temp
OPT

RE: Apache 2.0.48 + Tomcat 4.1.29 + Mod_jk2

2004-02-08 Thread David Short
Not sure what you're asking ...

-Original Message-
From: Enrique Herrera Noya [mailto:[EMAIL PROTECTED]
Sent: Saturday, February 07, 2004 9:12 PM
To: Tomcat Users List
Subject: Re: Apache 2.0.48 + Tomcat 4.1.29 + Mod_jk2


Filip Hanik (lists) wrote:
> downgrade to 4.1.27that should solve it :)
what???

with 4.1.29 not found ?
and with 4.1.27 found?
thank you
Enrique


P.S. i apology for my spanglish


> Filip
>
> -Original Message-----
> From: David Short [mailto:[EMAIL PROTECTED]
> Sent: Saturday, February 07, 2004 5:37 PM
> To: 'Tomcat Users List'
> Subject: Apache 2.0.48 + Tomcat 4.1.29 + Mod_jk2
>
>
> Does anyone have Tomcat 4.1.29 running in-process with Apache 2.0.48 and
> mod_jk2 on W2K?  I keep getting the following error when I start Apache:
>
> [Sat Feb 07 17:30:16 2004] [notice] Parent: Created child process 3192
> [Sat Feb 07 17:30:16 2004] [notice] Child 3192: Child process is running
> security properties not found. using defaults.
> [Sat Feb 07 17:30:17 2004] [error] Can't find class
> org/apache/jk/apr/AprImpl
> java.lang.NoClassDefFoundError: javax/management/MBeanRegistration
>   at java.lang.ClassLoader.defineClass0(Native Method)
>   at java.lang.ClassLoader.defineClass(Unknown Source)
>   at java.security.SecureClassLoader.defineClass(Unknown Source)
>   at java.net.URLClassLoader.defineClass(Unknown Source)
>   at java.net.URLClassLoader.access$100(Unknown Source)
>   at java.net.URLClassLoader$1.run(Unknown Source)
>   at java.security.AccessController.doPrivileged(Native Method)
>   at java.net.URLClassLoader.findClass(Unknown Source)
>   at java.lang.ClassLoader.loadClass(Unknown Source)
>   at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>   at java.lang.ClassLoader.loadClass(Unknown Source)
>   at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>   at java.lang.ClassLoader.defineClass0(Native Method)
>   at java.lang.ClassLoader.defineClass(Unknown Source)
>   at java.security.SecureClassLoader.defineClass(Unknown Source)
>   at java.net.URLClassLoader.defineClass(Unknown Source)
>   at java.net.URLClassLoader.access$100(Unknown Source)
>   at java.net.URLClassLoader$1.run(Unknown Source)
>   at java.security.AccessController.doPrivileged(Native Method)
>   at java.net.URLClassLoader.findClass(Unknown Source)
>   at java.lang.ClassLoader.loadClass(Unknown Source)
>   at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>   at java.lang.ClassLoader.loadClass(Unknown Source)
>   at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> [Sat Feb 07 17:30:17 2004] [error] workerEnv.initWorkers() init failed for
> worker.jni:onStartup
> [Sat Feb 07 17:30:17 2004] [error] Can't find class
> org/apache/jk/apr/AprImpl
> java.lang.NoClassDefFoundError: javax/management/MBeanRegistration
>   at java.lang.ClassLoader.defineClass0(Native Method)
>   at java.lang.ClassLoader.defineClass(Unknown Source)
>   at java.security.SecureClassLoader.defineClass(Unknown Source)
>   at java.net.URLClassLoader.defineClass(Unknown Source)
>   at java.net.URLClassLoader.access$100(Unknown Source)
>   at java.net.URLClassLoader$1.run(Unknown Source)
>   at java.security.AccessController.doPrivileged(Native Method)
>   at java.net.URLClassLoader.findClass(Unknown Source)
>   at java.lang.ClassLoader.loadClass(Unknown Source)
>   at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>   at java.lang.ClassLoader.loadClass(Unknown Source)
>   at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>   at java.lang.ClassLoader.defineClass0(Native Method)
>   at java.lang.ClassLoader.defineClass(Unknown Source)
>   at java.security.SecureClassLoader.defineClass(Unknown Source)
>   at java.net.URLClassLoader.defineClass(Unknown Source)
>   at java.net.URLClassLoader.access$100(Unknown Source)
>   at java.net.URLClassLoader$1.run(Unknown Source)
>   at java.security.AccessController.doPrivileged(Native Method)
>   at java.net.URLClassLoader.findClass(Unknown Source)
>   at java.lang.ClassLoader.loadClass(Unknown Source)
>   at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>   at java.lang.ClassLoader.loadClass(Unknown Source)
>   at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> [Sat Feb 07 17:30:17 2004] [error] workerEnv.initWorkers() init failed for
> worker.jni:onShutdown
> [Sat Feb 07 17:30:17 2004] [error] mod_jk child init 1 0
> [Sat Feb 07 17:30:17 2004] [notice] Child 3192: Acquired the start mutex.
> [Sat Feb 07 17:30:17 2004] [notice] Child 3192: Starting 250 worker
threads.
>

RE: J2K in process JNI with Tomcat 5.0.19 and apache 2

2004-03-20 Thread David Short
Did you ever get this working?

-Original Message-
From: Tim Stewart [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 18, 2004 11:42 PM
To: Tomcat Users List
Subject: Re: J2K in process JNI with Tomcat 5.0.19 and apache 2


Ok it doesn't like my properties files

jk2.properties
## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
## WHEN YOU EDIT THE FILE.

## COMMENTS WILL BE _LOST_

## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.

# Set the desired handler list
handler.list=apr,request,channelJni
#
# Override the default port for the socketChannel
# channelSocket.port=8019
# Default:
# channelUnix.file=${jkHome}/work/jk2.socket
# Just to check if the the config  is working
shm.file=c:/Apache2/logs/jk2.shm
#size=10485760

# In order to enable jni use any channelJni directive
channelJni.disabled=0
# And one of the following directives:

# apr.jniModeSo=/opt/apache2/modules/mod_jk2.so

# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
apr.jniModeSo=inprocess

workers2.properties

# Set level to ERROR or EMERG for production - check path
[logger.file:0]
level=DEBUG
file=C:/Apache2/logs/mod_jk2.log

[logger]
level=DEBUG

[config:]
file=c:/Apache2/conf/workers2.properties
debug=100
debugEnv=100

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

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

[workerEnv:]
info=Global server options
timing=1
debug=100
logger=logger.file:0

[channel.jni:jni]
info=The jni channel, used if tomcat is started inprocess
debug=100
disabled=0

# Define the parameters for the Java Virtual Machine
[vm:]
info=Parameters used to load a JVM in the server process
JVM=C:\j2sdk1.4.1_07\jre\bin\server\jvm.dll
OPT=-Djava.class.path=C:/Tomcat5/bin/bootstrap.jar;C:/tomcat5/server/lib/tom
cat-jni.jar;C:/tomcat5/common/lib/jmx.jar;C:/tomcat5/server/lib/commons-mode
ler.jar
OPT=-Dcatalina.home=C:/tomcat5
OPT=-Dtomcat.home=C:/tomcat5
OPT=-Xmx512M
disabled=0
debug=100

# JNI worker startup handler
[worker.jni:onStartup]
info=Command to be executed by the VM on startup. This one will start
tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=start
stdout=c:/Apache2/logs/stdout.log
stderr=c:/Apache2/logs/stderr.log
debug=100

# JNI worker shutdown handler
[worker.jni:onShutdown]
info=Command to be executed by the VM on shutdown. This one will stop
tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=stop
debug=100


# define the worker
[status:]
info the status worker

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

[uri:/servlet]
info=Example webapp in the default context.
context=/servlet
debug=100

[uri:/servlet/*]
info=Map the whole webapp
debug=100

  - Original Message -
  From: Tim Stewart
  To: Tomcat Users List
  Sent: Friday, March 19, 2004 12:40 AM
  Subject: Re: J2K in process JNI with Tomcat 5.0.19 and apache 2


  Here are my props.


- Original Message -
From: Tim Stewart
To: Tomcat Users List
Sent: Friday, March 19, 2004 12:37 AM
Subject: J2K in process JNI with Tomcat 5.0.19 and apache 2


I got the ajp13 to work great with standalone tomcat.

I tried to convert over to in process with JNI.

Tomcat is getting started correctly withing apache and printing out

Mar 19, 2004 12:15:41 AM org.apache.jk.common.ChannelJni init
INFO: JK2: listening on channel.jni:jni

when I try to browse to the path

http://localhost/servlet

I get a 500 error

the following is from my mod_jk2.log
[Fri Mar 19 00:16:06 2004] (debug ) [mod_jk2.c (631)]  mod_jk.handler()
serving /servlet/* with 8d7ea0 8d7e38 lb
[Fri Mar 19 00:16:06 2004] (debug ) [mod_jk2.c (641)]  mod_jk.handler():
new rpool 8df0a0
[Fri Mar 19 00:16:06 2004] (debug ) [jk_env.c (248)]  env.createBean2():
Create [endpoint] (null)
[Fri Mar 19 00:16:06 2004] (debug ) [jk_env.c (383)]  env.getByName():
Get by name workerEnv 870ff8
[Fri Mar 19 00:16:06 2004] (debug ) [jk_env.c (312)]  env.createBean2():
register endpoint:12 7b55240
[Fri Mar 19 00:16:06 2004] ( info ) [jk_shm.c (478)]  shm.createSlot()
Create 1 0xa0 0xa02000
[Fri Mar 19 00:16:06 2004] ( info ) [jk_endpoint.c (95)]
workerEnv.init() create slot epStat.0
[Fri Mar 19 00:16:06 2004] (debug ) [jk_endpoint.c (106)]  SHM stats 0
a02050 a02050 12 endpoint:12 childId=0
[Fri Mar 19 00:16:06 2004] (debug ) [jk_worker_ajp13.c (634)]
ajp13.getEndpoint(): Created endpoint ajp13:jni endpoint:12
[Fri Mar 19 00:16:06 2004] (debug ) [jk_worker_ajp13.c (563)]
ajp13.done() return to pool ajp13:jni
[Fri Mar 19 00:16:06 2004] (error ) [jk_worker_lb.c (402)]  lb.service()
worker failed 12 for ajp13:jni
[Fri Mar 19 00:16:06 2004] (error ) [jk_worker_lb.c (415)]  lb.service()
unrecoverable error...
[Fri Mar 19 00:16:06 2004]

RE: Error while trying to integrate apache and tomcat with jni

2004-03-23 Thread David Short
I don't believe you can run Tomcat inprocess with Apache on Unix.  You need
to use sockets.

-Original Message-
From: Zheng Neil [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 7:58 PM
To: [EMAIL PROTECTED]
Subject: Error while trying to integrate apache and tomcat with jni


Hi,

I tried hard these days to make tomcat and apache work together with jni
but only to find this in the [apache_home_dir]/logs/error_log
*
error_log
*
[Tue Mar 23 08:37:46 2004] [notice] Apache/2.0.49 (Unix) mod_jk2/2.0.2
configure
d -- resuming normal operations
[Tue Mar 23 08:37:46 2004] [error] jk2_init() Can't find child 25455 in
scoreboa
rd
[Tue Mar 23 08:37:46 2004] [error] jk2_init() Can't find child 25456 in
scoreboa
rd
[Tue Mar 23 08:37:46 2004] [error] jk2_init() Can't find child 25457 in
scoreboa
rd
.and many many as this
Then my site(was served ok by apache) become unvisible
It seemed the apache child proccess was unable to startup,it starts and down
immediately and it try again to start and ...

I am using redhat linux 9.0,j2sdk1.4.2_03,apache 2.0.49 and tomcat 4.1.30
Here is my workers2.properties
***
workers2.properties
***
[config:]
file=${serverRoot}/conf/workers2.properties
debug=0
debugEnv=0

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

[vm:]
info=Parameters used to load a JVM in the server process
JVM=/usr/java/j2sdk1.4.2_03/jre/lib/i386/server/libjvm.so
classpath=/usr/tomcat/tomcat4/lib
OPT=-Dtomcat.home=/usr/tomcat/tomcat4
OPT=-Dcatalina.home=/usr/tomcat/tomcat4
OPT=-Xmx128M
disabled=0

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

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

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

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

[uri:/jsp-examples/*]
info=Map the whole webapp (for tomcat5)

And here is the jk2.properties
***
jk2.properties
***
handler.list=apr,request,channelJni
apr.jniModeSo=inprocess
the comments was ommited

I really don't know what to do, and really need your help.

_
FREE pop-up blocking with the new MSN Toolbar – get it now!
http://toolbar.msn.com/go/onm00200415ave/direct/01/


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




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



RE: Error while trying to integrate apache and tomcat with jni

2004-03-23 Thread David Short
Don't know, you'll have to ask the developers.  I read it here on the list.
Just trying to help you avoid a little pain.

-Original Message-
From: Zheng Neil [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 8:22 PM
To: [EMAIL PROTECTED]
Subject: RE: Error while trying to integrate apache and tomcat with jni


Thank you for telling me this.But can i ask why?
Yes,I have already have apache2.0.40 and tomcat5.19 running together using
ajp13.


>From: "David Short" <[EMAIL PROTECTED]>
>Reply-To: <[EMAIL PROTECTED]>
>To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
>Subject: RE: Error while trying to integrate apache and tomcat with jni
>Date: Tue, 23 Mar 2004 20:06:51 -0800
>
>I don't believe you can run Tomcat inprocess with Apache on Unix.  You need
>to use sockets.
>
>-Original Message-
>From: Zheng Neil [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, March 23, 2004 7:58 PM
>To: [EMAIL PROTECTED]
>Subject: Error while trying to integrate apache and tomcat with jni
>
>
>Hi,
>
>I tried hard these days to make tomcat and apache work together with jni
>but only to find this in the [apache_home_dir]/logs/error_log
>*
>error_log
>*
>[Tue Mar 23 08:37:46 2004] [notice] Apache/2.0.49 (Unix) mod_jk2/2.0.2
>configure
>d -- resuming normal operations
>[Tue Mar 23 08:37:46 2004] [error] jk2_init() Can't find child 25455 in
>scoreboa
>rd
>[Tue Mar 23 08:37:46 2004] [error] jk2_init() Can't find child 25456 in
>scoreboa
>rd
>[Tue Mar 23 08:37:46 2004] [error] jk2_init() Can't find child 25457 in
>scoreboa
>rd
>.and many many as this
>Then my site(was served ok by apache) become unvisible
>It seemed the apache child proccess was unable to startup,it starts and
>down
>immediately and it try again to start and ...
>
>I am using redhat linux 9.0,j2sdk1.4.2_03,apache 2.0.49 and tomcat 4.1.30
>Here is my workers2.properties
>***
>workers2.properties
>***
>[config:]
>file=${serverRoot}/conf/workers2.properties
>debug=0
>debugEnv=0
>
>[shm:]
>disabled=1
>[channel.jni:jni]
>info=The jni channel, used if tomcat is started inprocess
>
>[vm:]
>info=Parameters used to load a JVM in the server process
>JVM=/usr/java/j2sdk1.4.2_03/jre/lib/i386/server/libjvm.so
>classpath=/usr/tomcat/tomcat4/lib
>OPT=-Dtomcat.home=/usr/tomcat/tomcat4
>OPT=-Dcatalina.home=/usr/tomcat/tomcat4
>OPT=-Xmx128M
>disabled=0
>
>[worker.jni:onStartup]
>info=Command to be executed by the VM on startup. This one will start
>tomcat.
>class=org/apache/jk/apr/TomcatStarter
>ARG=start
>disabled=0
>stdout=${serverRoot}/logs/stdout.log
>stderr=${serverRoot}/logs/stderr.log
>
>[worker.jni:onShutdown]
>info=Command to be executed by the VM on shutdown. This one will stop
>tomcat.
>class=org/apache/jk/apr/TomcatStarter
>ARG=stop
>disabled=0
>
>[status:]
>info=Status worker, displays runtime informations
>
>[uri:/jkstatus/*]
>info=Display status information and checks the config file for changes.
>group=status:
>
>[uri:/jsp-examples/*]
>info=Map the whole webapp (for tomcat5)
>
>And here is the jk2.properties
>***
>jk2.properties
>***
>handler.list=apr,request,channelJni
>apr.jniModeSo=inprocess
>the comments was ommited
>
>I really don't know what to do, and really need your help.
>
>_
>FREE pop-up blocking with the new MSN Toolbar ?get it now!
>http://toolbar.msn.com/go/onm00200415ave/direct/01/
>
>
>-
>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]
>

_
Is your PC infected? Get a FREE online computer virus scan from McAfee®
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


-
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: [ANNOUNCE] mod_jk2 2.0.4 released

2004-03-26 Thread David Short
Can you please provide the link to download?

-Original Message-
From: Henri Gomez [mailto:[EMAIL PROTECTED]
Sent: Friday, March 26, 2004 9:10 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [ANNOUNCE] mod_jk2 2.0.4 released


The Tomcat team is pleased to announce the release of version 2.0.4 of 
the Apache Tomcat mod_jk2 web server connector.

Tomcat is the reference implementation of a web application server which 
implements the Java Servlet and JavaServer Pages specifications.

mod_jk2 is a connector which allows a web server such as Apache HTTPD or 
IIS to act as a front end to the Tomcat web application server.

This version fixes a many majors bugs and is the first one to use APR 
which is now mandatory.

See the file CHANGES.txt in the source distribution for a complete list 
of changes.




-
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: building jk2 failure - cant find coyote

2004-03-26 Thread David Short
can you please provide the link where you downloaded the tarball from?

-Original Message-
From: Allan Bruce [mailto:[EMAIL PROTECTED]
Sent: Friday, March 26, 2004 11:44 AM
To: [EMAIL PROTECTED]
Subject: building jk2 failure - cant find coyote


I am trying to build the jk2 connector, and when I try I get an error saying
it cant find coyote.  Here is the exact output:

BUILD FAILED
/tmp/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/build.xml:142: Warning:
Could not find file
/tmp/jakarta-tomcat-connectors-jk2-2.0.4-src/coyote/build/lib/tomcat-coyote.
jar to copy.

There is no coyote directory in the tarball I downloaded.  What should I do?
Thanks
Allan



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



RE: [ANNOUNCE] mod_jk2 2.0.4 released

2004-03-26 Thread David Short
I found the zip file but the version under the
http://apache.towardex.com/jakarta/tomcat-connectors/jk2/binaries/win32/
directory only contained the Unix binary.

-Original Message-
From: Henri Gomez [mailto:[EMAIL PROTECTED]
Sent: Friday, March 26, 2004 9:10 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [ANNOUNCE] mod_jk2 2.0.4 released


The Tomcat team is pleased to announce the release of version 2.0.4 of
the Apache Tomcat mod_jk2 web server connector.

Tomcat is the reference implementation of a web application server which
implements the Java Servlet and JavaServer Pages specifications.

mod_jk2 is a connector which allows a web server such as Apache HTTPD or
IIS to act as a front end to the Tomcat web application server.

This version fixes a many majors bugs and is the first one to use APR
which is now mandatory.

See the file CHANGES.txt in the source distribution for a complete list
of changes.




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



mod_jk2 2.0.4 for Win32

2004-03-26 Thread David Short
Does anyone have the binary for the new mod_jk2 2.0.4 for W2K? 


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



mod_jk2 2.0.4 for Win32

2004-03-26 Thread David Short
Does anyone have the binary (.dll) for the new mod_jk2 2.0.4 for W2K? 


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



RE: mod_jk2 2.0.4 for Win32

2004-03-27 Thread David Short
Thank you!!!  I've been searching all over the place for the .dll.  I loaded
the .so and things seem to be ok so far.

-Original Message-
From: Mladen Turk [mailto:[EMAIL PROTECTED]
Sent: Friday, March 26, 2004 10:37 PM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: mod_jk2 2.0.4 for Win32




> -Original Message-----
> From: David Short [mailto:[EMAIL PROTECTED]
> Sent: Saturday, March 27, 2004 6:13 AM
> To: 'Tomcat Users List'
> Subject: mod_jk2 2.0.4 for Win32
>
> Does anyone have the binary (.dll) for the new mod_jk2 2.0.4 for W2K?
>

They are at usual places (binaries/win32).
You won't find the mod_jk2.dll cause it doesn't exist any more.
We changed the extension to .so to comply with the rest of apache modules.


MT.



-
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: RE: Connecting Apache and Tomcat

2004-03-30 Thread David Short
I've got Apache 2.0.49, Tomcat 5.0.19 and mod_jk 2.0.4 working "out of
process" on W2K server.  I can send config files if your interested.
Contact me offline.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 8:45 AM
To: Tomcat Users List
Subject: Re: RE: Connecting Apache and Tomcat


Thanks guys for the links. I will check them out. Sorry for the "nothing
works" blast, but I am just very frustrated with this.

Karl

>
> From: "Shapira, Yoav" <[EMAIL PROTECTED]>
> Date: 2004/03/30 Tue AM 10:36:26 CST
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Subject: RE: Connecting Apache and Tomcat
>
>
> Hi,
> That's the one I meant to paste in my second link ;)  Sometimes ctrl-c
> doesn't happen ;)  Thanks,
>
> Yoav Shapira
> Millennium Research Informatics
>
>
> >-Original Message-
> >From: Dale, Matt [mailto:[EMAIL PROTECTED]
> >Sent: Tuesday, March 30, 2004 11:31 AM
> >To: Tomcat Users List
> >Subject: RE: Connecting Apache and Tomcat
> >
> >Try this one
> >
> >http://www.connecties.com/cymulacrum/tomcat5/book1.html
> >
> >-Original Message-
> >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> >Sent: 30 March 2004 17:26
> >To: [EMAIL PROTECTED]
> >Subject: Connecting Apache and Tomcat
> >
> >
> >Someone on this planet surely has gotten this to work. I have found 4
> sites
> >with instructions, all 4 have vastly different instructions, and none
> of
> >them work, at least on my system.
> >
> >I am running Fedora Core 1, Apache 2.0.47 and Tomcat 5.0.19. I've tried
> a
> >pre-compiled connector. I've tried compiling it myself. Nothing works.
> >
> >The last setup I tried was the instruction found at
> >www.greenfieldresearch.ca/technical/jk2_config.html.
> >
> >Those also seemed to be the simplest instructions. I have gotten
> different
> >errors, but this setup from the site above gives me an error about a
> >possible misconfiguration. Other setups have given me a 503 Service
> >Unavailable error.
> >
> >My files are exactly as suggested on the site above. Any suggestions or
> >ideas are welcome.
> >
> >Thanks,
> >Karl
> >
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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




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



RE: How to use oracle pool instead of using DBCP pool?

2004-07-02 Thread David Short
Try this.

Here's how I do it using Struts on W2K.  Modify names and paths to suit your
needs.

Upon startup, a listener servlet (ResourceManagerListener) is called (See
 tag in the included web.xml source).

The listener servlet will create the connection pool based on your web.xml
parameters (See ResourceManagerListener.java).  Once started, the listener
servlet initializes an application scope variable (appDataSource), which
when called from your servlets/JSPs will return a DB DataSource object (DB
connection).


---

In your main servlet:

try
  {
  DataSource ds = (DataSource)
getServlet().getServletContext().getAttribute("appDataSource");
  xxxProcess = new xxxProcessBean();
  xxxInfo = new xxxInfoBean();
  xxxProcess.setDataSource(ds);
  xxxInfo = xxxProcess.getUser(userName, customerId);
  }

In your process bean:

public class xxxProcessBean implements Serializable
  {
  private DataSource dataSource;

  /**
   * Sets the dataSource property value.
   */
  public void setDataSource(DataSource dataSource)
{
this.dataSource = dataSource;
}


  public xxxInfoBean getUser(String userName, String customerId)
throws SQLException
{
// Get the user info from the database
Connection conn = dataSource.getConnection();
xxxInfoBean xxxResult = null;

try
  {
  xxxResult = getUserName(userName, customerId, conn);  // Execute
actual SQL statement.
  }

finally
  {
  try
{
conn.close();
conn = null;
}

catch (SQLException e)
  {} // Ignore

return xxxResult;


---

Change MachineNameHere to your machine name.
Change OracleSIDHere to your DB SID.
Change DBUserNameHere to your DB username.
Change DBPasswordHere to your DB password
Change ApplicationNameHere to a meaningful application designator.
Change xxx to your object name.

Copy Oracle's classes12.zip and nls_charset12.zip files (should live in
C:\OraHome\jdbc\lib) to C:\Tomcat\common\lib.  Depending on the version of
Tomcat, you may need to rename the .zip files to .jar.


I'll let you read/learn about Struts on your own.

Hoe this helps.

Dave


---
web.xml


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


  
  
javax.servlet.jsp.jstl.fmt.fallbackLocale
en
  

  

  
  
  
jdbcURL

jdbc:oracle:oci8:@OracleSIDHere
  

  
user
DBUserNameHere
  

  
password
DBPasswordHere
  

  
maxLimit
50
  

  
  
minLimit
10
  

  
  
accessControl

  com.ApplicationNameHere.servlets.AccessControlFilter


  loginPage
  /jsp/login.jsp

  

  
accessControl
/protected/*
  

  

  com.ApplicationNameHere.servlets.ResourceManagerListener

  

  
  
action
org.apache.struts.action.ActionServlet
1
  

  
  
errorDispatcher

com.ApplicationNameHere.servlets.ErrorDispatcherServlet

  errorPage
  /jsp/error/errorpage.jsp?debug=log

  

  
  
action
*.do
  

  
errorDispatcher
/errorDispatcher
  

  
  
1
  

  
  
java.lang.Throwable
/errorDispatcher
  

  
500
/errorDispatcher
  

  
java.sql.SQLException
/errorDispatcher
  

  
jdbc/ApplicationNameHere
javax.sql.DataSource
Container
  




---
ResourceManagerListener.java
package com.ApplicationNameHere.servlets;

import javax.servlet.*;
import javax.servlet.http.*;

import oracle.jdbc.pool.*;

import javax.naming.*;
import javax.sql.*;

import java.sql.*;
import java.math.*;
import java.util.*;

/**
 * This class manages the DataSource resource for an application,
 * creating an Oracle DataSource with pooling capabilities
 * and makes it available when the application starts and removes it
 * when the application is shut down.
 *
 * @author David Short, Relational Concepts, Inc.
 * @version David Short 01/10/2004 initial release.
 */
public class ResourceManagerListener implements ServletContextListener
  {
  private OracleConnectionCacheImpl ds = null;
  private Context ctx = null;

  public void contextInitialized(ServletContextEvent sce)
{
ServletContext application  = sce.getServletContext();

/*
 * Get the JDBC URL, user, password and limits from the web.xml
 * context init parameters
 */
String jdbcURL  = application.getInitParameter("jdbcURL");
String user = application.getInitParameter("user");
String password = application.getInitParameter("password");
String minLimit = application.getInitParameter("minLimit");

RE: How to use oracle pool instead of using DBCP pool?

2004-07-02 Thread David Short
I'm sure there's another way.  This is how I use it.  You can extract the
connection pool logic and embed in your framework.

-Original Message-
From: Claudio Carvalho [mailto:[EMAIL PROTECTED]
Sent: Friday, July 02, 2004 10:33 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: How to use oracle pool instead of using DBCP pool?


Hi Davi,

Thanks, but I'm trying to solve this problem without changing my J2EE
framework... using JNDI,etc...
Do you know any other approach?

Claudio Carvalho.

- Original Message -----
From: "David Short" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Friday, July 02, 2004 1:55 PM
Subject: RE: How to use oracle pool instead of using DBCP pool?


> Try this.
>
> Here's how I do it using Struts on W2K.  Modify names and paths to suit
your
> needs.
>
> Upon startup, a listener servlet (ResourceManagerListener) is called (See
>  tag in the included web.xml source).
>
> The listener servlet will create the connection pool based on your web.xml
> parameters (See ResourceManagerListener.java).  Once started, the listener
> servlet initializes an application scope variable (appDataSource), which
> when called from your servlets/JSPs will return a DB DataSource object (DB
> connection).
>
> --
--
> ---
>
> In your main servlet:
>
> try
>   {
>   DataSource ds = (DataSource)
> getServlet().getServletContext().getAttribute("appDataSource");
>   xxxProcess = new xxxProcessBean();
>   xxxInfo = new xxxInfoBean();
>   xxxProcess.setDataSource(ds);
>   xxxInfo = xxxProcess.getUser(userName, customerId);
>   }
>
> In your process bean:
>
> public class xxxProcessBean implements Serializable
>   {
>   private DataSource dataSource;
>
>   /**
>* Sets the dataSource property value.
>*/
>   public void setDataSource(DataSource dataSource)
> {
> this.dataSource = dataSource;
> }
>
>
>   public xxxInfoBean getUser(String userName, String customerId)
> throws SQLException
> {
> // Get the user info from the database
> Connection conn = dataSource.getConnection();
> xxxInfoBean xxxResult = null;
>
> try
>   {
>   xxxResult = getUserName(userName, customerId, conn);  // Execute
> actual SQL statement.
>   }
>
> finally
>   {
>   try
> {
> conn.close();
> conn = null;
> }
>
> catch (SQLException e)
>   {} // Ignore
>
> return xxxResult;
>
> --
--
> ---
>
> Change MachineNameHere to your machine name.
> Change OracleSIDHere to your DB SID.
> Change DBUserNameHere to your DB username.
> Change DBPasswordHere to your DB password
> Change ApplicationNameHere to a meaningful application designator.
> Change xxx to your object name.
>
> Copy Oracle's classes12.zip and nls_charset12.zip files (should live in
> C:\OraHome\jdbc\lib) to C:\Tomcat\common\lib.  Depending on the version of
> Tomcat, you may need to rename the .zip files to .jar.
>
>
> I'll let you read/learn about Struts on your own.
>
> Hoe this helps.
>
> Dave
>
> --
--
> ---
> web.xml
> 
>
>PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
>   "http://java.sun.com//dtd/web-app_2_3.dtd";>
>
> 
>   
>   
> javax.servlet.jsp.jstl.fmt.fallbackLocale
> en
>   
>
>   
>
>   
>   
>   
> jdbcURL
> 
> jdbc:oracle:oci8:@OracleSIDHere
>   
>
>   
> user
> DBUserNameHere
>   
>
>   
> password
> DBPasswordHere
>   
>
>   
> maxLimit
> 50
>   
>
>   
>   
> minLimit
> 10
>   
>
>   
>   
> accessControl
> 
>   com.ApplicationNameHere.servlets.AccessControlFilter
> 
> 
>   loginPage
>   /jsp/login.jsp
> 
>   
>
>   
> accessControl
> /protected/*
>   
>
>   
> 
>   com.ApplicationNameHere.servlets.ResourceManagerListener
> 
>   
>
>   
>   
> action
> org.apache.struts.action.ActionServlet
> 1
>   
>
>   
>   
> errorDispatcher
>
>
com.ApplicationNameHere.servlets.ErrorDispatcherServlet let-class>
> 
>   errorPage
>   /jsp/error/errorpage.jsp?

Tomcat 5.0.19 not dispatching to servlet

2004-08-09 Thread David Short
Hello,

I'm running Tomcat 5.0.19, Apache 2.0.49 and mod_jk2-2.0.4, stand alone (NOT
in-process), on a W2K box.  Tomcat is listening on port 8009 (port 8080 is
commented out) and Apache passes all requests of type "/psi/servlet/* to
Tomcat, via the workers2.properties file redirect (see below).  I have a
servlet defined in my web.xml file to load up at Tomcat startup.  I've
verified that the servlet is loading by writing debugging information in the
servlet init() method.  So, the servlet is loading at Tomcat startup but
when Apache redirects the servlet request to Tomcat, I get a 404 served up
by Tomcat.  I know this because the Tomcat version is displayed at the
bottom of the error page.  I'm using a context configuration file to define
my path and docbase (see below).  This same configuration works with another
application that uses Struts, .jsp and servlets.  Any ideas?

Thanks,

Dave

workers2.properties file:

# Set level to ERROR or EMERG for production - check path
[logger.file:0]
level=ERROR
file=C:/Apache2/logs/mod_jk2.log

[logger]
level=ERROR

[config:]
file=c:/Apache2/conf/workers2.properties
debug=0
debugEnv=0

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


[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
port=8009
host=localhost
lb_factor=1
group=lb
disabled=0
debug=0

# Define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009


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

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

# Announce a "status" worker
[status:status]
info=Status worker. Displays runtime information.

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

[uri:/psi/servlet/*]
info=PSI default context.
group=lb
debug=0


context configuration file:






  





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



Tomcat 5.0.19 not dispatching to servlet

2004-08-09 Thread David Short
Hello,

I'm running Tomcat 5.0.19, Apache 2.0.49 and mod_jk2-2.0.4, stand alone (NOT
in-process), on a W2K box.  Tomcat is listening on port 8009 (port 8080 is
commented out) and Apache passes all requests of type "/psi/servlet/* to
Tomcat, via the workers2.properties file redirect (see below).  I have a
servlet defined in my web.xml file to load up at Tomcat startup.  I've
verified that the servlet is loading by writing debugging information in the
servlet init() method.  So, the servlet is loading at Tomcat startup but
when Apache redirects the servlet request to Tomcat, I get a 404 served up
by Tomcat.  I know this because the Tomcat version is displayed at the
bottom of the error page.  I'm using a context configuration file to define
my path and docbase (see below).  This same configuration works with another
application that uses Struts, .jsp and servlets.

Any ideas?  I'm getting desperate...

Thanks,

Dave

workers2.properties file:

# Set level to ERROR or EMERG for production - check path
[logger.file:0]
level=ERROR
file=C:/Apache2/logs/mod_jk2.log

[logger]
level=ERROR

[config:]
file=c:/Apache2/conf/workers2.properties
debug=0
debugEnv=0

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


[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
port=8009
host=localhost
lb_factor=1
group=lb
disabled=0
debug=0

# Define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009


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

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

# Announce a "status" worker
[status:status]
info=Status worker. Displays runtime information.

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

[uri:/psi/servlet/*]
info=PSI default context.
group=lb
debug=0


context configuration file:






  





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



Trouble running Tomcat 5.0.29

2004-08-10 Thread David Short
Hi,

I just installed Tomcat 5.0.29 on a W2K box.  When trying to start the
Tomcat service, I get the following error in the
jakarta_service_20040810.log file.

[2004-08-10 09:21:27] [364  javajni.c] [error] Unsuported JNI version 65537

This install is out of the box with zero modifications.

What am I doing wrong?

Thanks,

Dave



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



RE: Trouble running Tomcat 5.0.29

2004-08-10 Thread David Short
Oops...  I'm running 5.0.27 (downloaded last night...)

Anyway, it runs standalone from the command line (i.e.
c:\tomcat\bin\startup.bat).

5.0.19 runs as a service just fine (previous install).  The reason I loaded
the new version is because I'm having trouble running servlets, redirected
from Apache 2.0.49.  I posted a message yesterday regarding this issue and
no one responded.  So, I figured I'd try upgrading to see what happens.  I'm
perfectly happy to stay on 5.0.19 if I can get the servlet redirect working.

Thanks!

Dave

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 10, 2004 9:31 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: Trouble running Tomcat 5.0.29


Hi,
Well, you're way ahead of the rest of us in terms of Tomcat releases ;)
Maybe you meant 5.0.19?

Anyways, it seems like a messed up JDK and Windows Service communication
issues.  Try running it standalone first.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: David Short [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, August 10, 2004 12:24 PM
>To: Tomcat Users Group (E-mail)
>Subject: Trouble running Tomcat 5.0.29
>
>Hi,
>
>I just installed Tomcat 5.0.29 on a W2K box.  When trying to start the
>Tomcat service, I get the following error in the
>jakarta_service_20040810.log file.
>
>[2004-08-10 09:21:27] [364  javajni.c] [error] Unsuported JNI version
65537
>
>This install is out of the box with zero modifications.
>
>What am I doing wrong?
>
>Thanks,
>
>Dave
>
>
>
>-
>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]

Apache2, Tomcat5 and servlets

2004-08-10 Thread David Short
Does anyone have Apache2.x redirecting servlet requests to Tomcat 5.x via
mod_jk2 working?



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



RE: Apache2, Tomcat5 and servlets

2004-08-10 Thread David Short
Would you mind sharing your httpd.conf, workers2.properties, jk2.properties,
server.xml and web.xml?  Please...

If so, would you mind sending them, as attachments, to [EMAIL PROTECTED]

-Original Message-
From: Debra Bartling [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 10, 2004 12:10 PM
To: Tomcat Users List
Subject: Re: Apache2, Tomcat5 and servlets


At 12:00 PM 8/10/2004 -0700, you wrote:
>Does anyone have Apache2.x redirecting servlet requests to Tomcat 5.x via
>mod_jk2 working?

Yes, I can confirm it works on Solaris 9, using Apache 2.0.50, Tomcat
5.0.27, and JK 2.0.4. With a little help from this list. (My configuration
was an upgrade from Apache 1.3.x and a very, very old version of mod_jserv,
so I think anything should be possible!)

Debra Bartling


-
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: Apache2, Tomcat5 and servlets

2004-08-10 Thread David Short
Why do you have the bang in from of mod_jk?



Also, shouldn't it be  instead of ?

-Original Message-
From: Dan Lee [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 10, 2004 1:45 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: Apache2, Tomcat5 and servlets


It is automatically created when I startup tomcat.   I'm using 5.0.27

grep Tomcat catalina.out
[INFO] StandardEngine - Starting Servlet Engine: Apache Tomcat/5.0.27



Note:  I use localhost to cover up the identity of my server.

cat /opt/tomcat/conf/auto/mod_jk.conf

## Auto generated on Tue Aug 10 10:00:10 EDT 2004##


  LoadModule jk_module "/opt/apache/modules/mod_jk2.so"


JkWorkersFile "/opt/jakarta-tomcat-5.0.27/conf/jk/workers.properties"
JkLogFile "/opt/jakarta-tomcat-5.0.27/logs/mod_jk.log"

JkLogLevel emerg




ServerName localhost

 localhost:/webdav 

# Static files
Alias /webdav "/opt/jakarta-tomcat-5.0.27/webapps/webdav"


Options Indexes FollowSymLinks
DirectoryIndex



# Deny direct access to WEB-INF and META-INF
#

AllowOverride None
deny from all



AllowOverride None
deny from all


JkMount /webdav/*.jsp  ajp13
JkMount /webdav/*  ajp13
JkMount /webdav/*.jspx  ajp13

 localhost:/servlets-examples 

# Static files
Alias /servlets-examples
"/opt/jakarta-tomcat-5.0.27/webapps/servlets-examples"


Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp



# Deny direct access to WEB-INF and META-INF
#

AllowOverride None
deny from all



AllowOverride None
deny from all


JkMount /servlets-examples/jsp/security/protected/j_security_check
ajp13
JkMount /servlets-examples/servlet/RequestInfoExample/*  ajp13
JkMount /servlets-examples/servlet/RequestHeaderExample  ajp13
JkMount /servlets-examples/servlet/SessionExample  ajp13
JkMount /servlets-examples/servlet/HelloWorldExample  ajp13
JkMount /servlets-examples/servlet/CookieExample  ajp13
JkMount /servlets-examples/servlet/RequestParamExample  ajp13
JkMount /servlets-examples/*.jsp  ajp13
JkMount /servlets-examples/CompressionTest  ajp13
JkMount /servlets-examples/*.jspx  ajp13

 localhost:/tomcat-docs 

# Static files
Alias /tomcat-docs "/opt/jakarta-tomcat-5.0.27/webapps/tomcat-docs"


Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp



# Deny direct access to WEB-INF and META-INF
#

AllowOverride None
deny from all



AllowOverride None
deny from all


JkMount /tomcat-docs/*.jsp  ajp13
JkMount /tomcat-docs/*.jspx  ajp13

 localhost:/balancer 

# Static files
Alias /balancer "/opt/jakarta-tomcat-5.0.27/webapps/balancer"


Options Indexes FollowSymLinks



# Deny direct access to WEB-INF and META-INF
#

AllowOverride None
deny from all



AllowOverride None
deny from all



 localhost:/jsp-examples 

# Static files
Alias /jsp-examples "/opt/jakarta-tomcat-5.0.27/webapps/jsp-examples"


Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp



# Deny direct access to WEB-INF and META-INF
#

AllowOverride None
deny from all



AllowOverride None
deny from all


JkMount /jsp-examples/security/protected/j_security_check  ajp13
JkMount /jsp-examples/tagplugin/foreach.jsp  ajp13
JkMount /jsp-examples/cal/cal2.jsp  ajp13
JkMount /jsp-examples/jsp2/misc/dynamicattrs.jsp  ajp13
JkMount /jsp-examples/simpletag/foo.jsp  ajp13
JkMount /jsp-examples/jsp2/el/basic-arithmetic.jsp  ajp13
JkMount /jsp-examples/CompressionTest  ajp13
JkMount /jsp-examples/jsptoserv/hello.jsp  ajp13
JkMount /jsp-examples/forward/one.jsp  ajp13
JkMount /jsp-examples/jsp2/tagfiles/panel.jsp  ajp13
JkMount /jsp-examples/checkbox/checkresult.jsp  ajp13
JkMount /jsp-examples/security/protected/index.jsp  ajp13
JkMount /jsp-examples/snp/snoop.jsp  ajp13
JkMount /jsp-examples/jsp2/jspattribute/jspattribute.jsp  ajp13
JkMount /jsp-examples/jsp2/jspx/basic.jspx  ajp13
JkMount /jsp-examples/cal/cal1.jsp  ajp13
JkMount /jsp-examples/jsptoserv/jsptoservlet.jsp  ajp13
JkMount /jsp-examples/jsp2/tagfiles/products.jsp  ajp13
JkMount /jsp-examples/error/err.jsp  ajp13
JkMount /jsp-examples/security/protected/login.jsp  ajp13
JkMount /jsp-examples/dates/date.jsp  ajp13
JkMount /jsp-examples/jsp2/jspx/textRotate.jspx  ajp13
JkMount /jsp-examp

Tomcat 5.0.19 stdout.log error

2004-08-11 Thread David Short
Does anyone know why I'm getting the following error in my stdout.log file?
I'm using 5.0.19 on W2K.

[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080
[INFO] Catalina - -Initialization processed in 1472 ms
[INFO] StandardService - -Starting service Catalina
[INFO] StandardEngine - -Starting Servlet Engine: Apache Tomcat/5.0.19
[INFO] StandardHost - -XML validation disabled
[INFO] StandardHost - -Create Host deployer for direct deployment (
non-jmx )
[INFO] StandardHostDeployer - -Processing Context configuration file URL
file:C:\Tomcat\conf\Catalina\localhost\admin.xml
[INFO] PropertyMessageResources - -Initializing,
config='org.apache.struts.util.LocalStrings', returnNull=true
[INFO] PropertyMessageResources - -Initializing,
config='org.apache.struts.action.ActionResources', returnNull=true
[INFO] PropertyMessageResources - -Initializing,
config='org.apache.webapp.admin.ApplicationResources', returnNull=true
[INFO] StandardHostDeployer - -Processing Context configuration file URL
file:C:\Tomcat\conf\Catalina\localhost\balancer.xml
[INFO] StandardHostDeployer - -Processing Context configuration file URL
file:C:\Tomcat\conf\Catalina\localhost\manager.xml
[INFO] StandardHostDeployer - -Processing Context configuration file URL
file:C:\Tomcat\conf\Catalina\localhost\psi.xml
[INFO] StandardHostDeployer - -Installing web application at context path
/jsp-examples from URL file:C:\Tomcat\webapps\jsp-examples
[INFO] StandardHostDeployer - -Installing web application at context path
from URL file:C:\Tomcat\webapps\ROOT
[INFO] StandardHostDeployer - -Installing web application at context path
/servlets-examples from URL file:C:\Tomcat\webapps\servlets-examples
[INFO] StandardHostDeployer - -Installing web application at context path
/tomcat-docs from URL file:C:\Tomcat\webapps\tomcat-docs
[INFO] StandardHostDeployer - -Installing web application at context path
/webdav from URL file:C:\Tomcat\webapps\webdav
[INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 8080
[INFO] ChannelSocket - -JK2: ajp13 listening on 0.0.0.0/0.0.0.0:8009
[INFO] JkMain - -Jk running ID=0 time=0/50
config=c:\Tomcat\conf\jk2.properties
[INFO] Catalina - -Server startup in 3615 ms
[INFO] Http11Protocol - -http11protocol.pause
[ERROR] Catalina - -Catalina.stop LifecycleException:  Cannot find
message associated with key coyoteConnector.protocolHandlerPauseFailed
at
org.apache.coyote.tomcat5.CoyoteConnector.pause(CoyoteConnector.java:1462)
at org.apache.catalina.core.StandardService.stop(StandardService.java:560)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2379)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:643)
at org.apache.catalina.startup.Catalina.start(Catalina.java:618)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)



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



Tomcat 5.0.19 class problem

2004-08-11 Thread David Short
Can anyone tell me what is wrong with my Tomcat 5.0.19 install?  I keep
getting this error when accessing a servlet at runtime.

2004-08-11 10:52:39 StandardWrapperValve[Jaws]: Servlet.service() for
servlet Jaws threw exception
java.lang.NoClassDefFoundError: javax/transaction/UserTransaction

The servlet loads at Tomcat startup ok...

Is there a class path entry that needs to be made or something like that?

Thanks,

Dave



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



RE: Tomcat 5.0.19 class problem

2004-08-11 Thread David Short
Thank you!

At the risk of sounding ignorant, would you happen to know the URL for the
download?

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 11, 2004 10:56 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: Tomcat 5.0.19 class problem


Hi,
You need the JTA API (downloadable by itself from Sun: don't get the
whole j2ee.jar).  Put it in WEB-INF/lib of your webapp.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: David Short [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, August 11, 2004 1:57 PM
>To: Tomcat Users Group (E-mail)
>Subject: Tomcat 5.0.19 class problem
>
>Can anyone tell me what is wrong with my Tomcat 5.0.19 install?  I keep
>getting this error when accessing a servlet at runtime.
>
>2004-08-11 10:52:39 StandardWrapperValve[Jaws]: Servlet.service() for
>servlet Jaws threw exception
>java.lang.NoClassDefFoundError: javax/transaction/UserTransaction
>
>The servlet loads at Tomcat startup ok...
>
>Is there a class path entry that needs to be made or something like
that?
>
>Thanks,
>
>Dave
>
>
>
>-
>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]

Another class error

2004-08-12 Thread David Short
Hello,

Does anyone know why I'm getting the following error in the stdout.log?

[INFO] Catalina - -Server startup in 3626 ms
[ERROR] Catalina - -Catalina.stop LifecycleException:  Cannot find
message associated with key coyoteConnector.protocolHandlerPauseFailed
at
org.apache.coyote.tomcat5.CoyoteConnector.pause(CoyoteConnector.java:1462)
at org.apache.catalina.core.StandardService.stop(StandardService.java:560)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2379)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:643)
at org.apache.catalina.startup.Catalina.start(Catalina.java:618)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)

Environment:
Apahce2.0.49
mod_jk2-2.0.4
Tomcat 5.0.19
W2K



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



RE: ClassNotFoundException: OracleDriver

2004-08-12 Thread David Short
Do you have the Oracle classes .jar (classes12.jar) loaded in your
Tomcat\common\lib directory.  Actually the file, as it comes from Oracle, is
a .zip file (classes12.zip).  Just rename it.  It should reside in your
C:\OraHome\jdbc\lib directory.  Move the nls_charset12.zip file over as
well.

-Original Message-
From: Java Techie [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 12, 2004 2:13 PM
To: [EMAIL PROTECTED]
Subject: ClassNotFoundException: OracleDriver


Hi,
in my struts-config:
im using












--

The following error occurs:
 27:57[ERROR]
27:57org.apache.commons.dbcp.SQLNestedException:
Cannot load JDBC
driver class 'oracle.jdbc.driver.OracleDriver', cause:
java.lang.ClassNotFoundException:
oracle.jdbc.driver.OracleDriver
  at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1340)
  at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1189)
  at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Class.java:140)
--

I have added the zip
file(D:\Oracle\Ora8i\jdbc\lib\classes102.zip) to the
classpath; what else do i need to give.

Thanks.



__
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

-
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: servlet question

2004-08-14 Thread David Short
Are you running this through apache redirected to tomcat or straight from
tomcat?

Try loading the servlet at tomcat startup to see if the servlet is
recognized.

i.e. 1

last in the  tag set.

I had the same issue and discovered that my pattern in apache wasn't right.
However, if you're not using apache, I don't know what to say.  The syntax
looks correct.

-Original Message-
From: Schalk Neethling [mailto:[EMAIL PROTECTED]
Sent: Saturday, August 14, 2004 1:05 PM
To: Tomcat Users List
Subject: re: servlet question


Hey all!

I have a servlet called login. I have it mapped in my web.xml as follows:


login
org.volume4.authentication.login


login
*.login


My WEB-INF structure is as follows

WEB-INF/classes/org/volume4/authentication/login.class

Does anyone have an idea as to why when I call login as process.login
from a form it is not run? I have placed some System.out.println(); in
there but, it seems that the servlet is not called at all. I basically
just get a blank screen. When I look at the tomcat logs no errors are
recorded here either.

--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za

This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you.



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




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



RE: servlet question

2004-08-14 Thread David Short
Does the servlet load at startup?

-Original Message-
From: Schalk Neethling [mailto:[EMAIL PROTECTED]
Sent: Saturday, August 14, 2004 1:19 PM
To: Tomcat Users List
Subject: Re: servlet question


Directly on Tomcat

David Short wrote:

>Are you running this through apache redirected to tomcat or straight from
>tomcat?
>
>Try loading the servlet at tomcat startup to see if the servlet is
>recognized.
>
>i.e. 1
>
>last in the  tag set.
>
>I had the same issue and discovered that my pattern in apache wasn't right.
>However, if you're not using apache, I don't know what to say.  The syntax
>looks correct.
>
>-Original Message-
>From: Schalk Neethling [mailto:[EMAIL PROTECTED]
>Sent: Saturday, August 14, 2004 1:05 PM
>To: Tomcat Users List
>Subject: re: servlet question
>
>
>Hey all!
>
>I have a servlet called login. I have it mapped in my web.xml as follows:
>
>
>login
>org.volume4.authentication.login
>
>
>login
>*.login
>
>
>My WEB-INF structure is as follows
>
>WEB-INF/classes/org/volume4/authentication/login.class
>
>Does anyone have an idea as to why when I call login as process.login
>from a form it is not run? I have placed some System.out.println(); in
>there but, it seems that the servlet is not called at all. I basically
>just get a blank screen. When I look at the tomcat logs no errors are
>recorded here either.
>
>--
>Kind Regards
>Schalk Neethling
>Web Developer.Designer.Programmer.President
>Volume4.Development.Multimedia.Branding
>emotionalize.conceptualize.visualize.realize
>Tel: +27125468436
>Fax: +27125468436
>email:[EMAIL PROTECTED]
>web: www.volume4.co.za
>
>This message contains information that is considered to be sensitive or
>confidential and may not be forwarded or disclosed to any other party
>without the permission of the sender. If you received this message in
error,
>please notify me immediately so that I can correct and delete the original
>email. Thank you.
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za

This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you.



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




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



RE: servlet question

2004-08-14 Thread David Short
I don't think the servlet is the issue, since it's not even getting
executed.  Is your context path set up correctly in your servlet.xml or
tomcat\conf\catalina\localhost\context.xml file (tomcat 5).

Which version of tomcat are you running and on what os?

-Original Message-
From: Schalk Neethling [mailto:[EMAIL PROTECTED]
Sent: Saturday, August 14, 2004 1:22 PM
To: Tomcat Users List
Subject: Re: servlet question


Attached is the servlet, can you see any problems here? It compiles fine.

David Short wrote:

>Are you running this through apache redirected to tomcat or straight from
>tomcat?
>
>Try loading the servlet at tomcat startup to see if the servlet is
>recognized.
>
>i.e. 1
>
>last in the  tag set.
>
>I had the same issue and discovered that my pattern in apache wasn't right.
>However, if you're not using apache, I don't know what to say.  The syntax
>looks correct.
>
>-Original Message-
>From: Schalk Neethling [mailto:[EMAIL PROTECTED]
>Sent: Saturday, August 14, 2004 1:05 PM
>To: Tomcat Users List
>Subject: re: servlet question
>
>
>Hey all!
>
>I have a servlet called login. I have it mapped in my web.xml as follows:
>
>
>login
>org.volume4.authentication.login
>
>
>login
>*.login
>
>
>My WEB-INF structure is as follows
>
>WEB-INF/classes/org/volume4/authentication/login.class
>
>Does anyone have an idea as to why when I call login as process.login
>from a form it is not run? I have placed some System.out.println(); in
>there but, it seems that the servlet is not called at all. I basically
>just get a blank screen. When I look at the tomcat logs no errors are
>recorded here either.
>
>--
>Kind Regards
>Schalk Neethling
>Web Developer.Designer.Programmer.President
>Volume4.Development.Multimedia.Branding
>emotionalize.conceptualize.visualize.realize
>Tel: +27125468436
>Fax: +27125468436
>email:[EMAIL PROTECTED]
>web: www.volume4.co.za
>
>This message contains information that is considered to be sensitive or
>confidential and may not be forwarded or disclosed to any other party
>without the permission of the sender. If you received this message in
error,
>please notify me immediately so that I can correct and delete the original
>email. Thank you.
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za

This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you.




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



RE: servlet question

2004-08-14 Thread David Short
Is your context path set up correctly in your servlet.xml or
tomcat\conf\catalina\localhost\context.xml file for this webapp?

-Original Message-
From: Schalk Neethling [mailto:[EMAIL PROTECTED]
Sent: Saturday, August 14, 2004 1:30 PM
To: Tomcat Users List
Subject: Re: servlet question


I am running TC 5.0.25 on WindowsXP, my test environment. All other
servlets are running fine on other webapps.

David Short wrote:

>I don't think the servlet is the issue, since it's not even getting
>executed.  Is your context path set up correctly in your servlet.xml or
>tomcat\conf\catalina\localhost\context.xml file (tomcat 5).
>
>Which version of tomcat are you running and on what os?
>
>-Original Message-
>From: Schalk Neethling [mailto:[EMAIL PROTECTED]
>Sent: Saturday, August 14, 2004 1:22 PM
>To: Tomcat Users List
>Subject: Re: servlet question
>
>
>Attached is the servlet, can you see any problems here? It compiles fine.
>
>David Short wrote:
>
>
>
>>Are you running this through apache redirected to tomcat or straight from
>>tomcat?
>>
>>Try loading the servlet at tomcat startup to see if the servlet is
>>recognized.
>>
>>i.e. 1
>>
>>last in the  tag set.
>>
>>I had the same issue and discovered that my pattern in apache wasn't
right.
>>However, if you're not using apache, I don't know what to say.  The syntax
>>looks correct.
>>
>>-Original Message-
>>From: Schalk Neethling [mailto:[EMAIL PROTECTED]
>>Sent: Saturday, August 14, 2004 1:05 PM
>>To: Tomcat Users List
>>Subject: re: servlet question
>>
>>
>>Hey all!
>>
>>I have a servlet called login. I have it mapped in my web.xml as follows:
>>
>>
>>   login
>>   org.volume4.authentication.login
>>
>>
>>   login
>>   *.login
>>
>>
>>My WEB-INF structure is as follows
>>
>>WEB-INF/classes/org/volume4/authentication/login.class
>>
>>Does anyone have an idea as to why when I call login as process.login
>>
>>
>>from a form it is not run? I have placed some System.out.println(); in
>
>
>>there but, it seems that the servlet is not called at all. I basically
>>just get a blank screen. When I look at the tomcat logs no errors are
>>recorded here either.
>>
>>--
>>Kind Regards
>>Schalk Neethling
>>Web Developer.Designer.Programmer.President
>>Volume4.Development.Multimedia.Branding
>>emotionalize.conceptualize.visualize.realize
>>Tel: +27125468436
>>Fax: +27125468436
>>email:[EMAIL PROTECTED]
>>web: www.volume4.co.za
>>
>>This message contains information that is considered to be sensitive or
>>confidential and may not be forwarded or disclosed to any other party
>>without the permission of the sender. If you received this message in
>>
>>
>error,
>
>
>>please notify me immediately so that I can correct and delete the original
>>email. Thank you.
>>
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>
>>
>
>--
>Kind Regards
>Schalk Neethling
>Web Developer.Designer.Programmer.President
>Volume4.Development.Multimedia.Branding
>emotionalize.conceptualize.visualize.realize
>Tel: +27125468436
>Fax: +27125468436
>email:[EMAIL PROTECTED]
>web: www.volume4.co.za
>
>This message contains information that is considered to be sensitive or
>confidential and may not be forwarded or disclosed to any other party
>without the permission of the sender. If you received this message in
error,
>please notify me immediately so that I can correct and delete the original
>email. Thank you.
>
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za

This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you.



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




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



RE: servlet question

2004-08-14 Thread David Short
By context.xml I meant your 'context' in question, which in this case is
manageit.  So, the context of your manageit.xml should look something like
this:



  



Your URL is something like: localhost:8080\manageit\process.login - correct?

Did you try loading the servlet at tomcat startup?

-Original Message-
From: Schalk Neethling [mailto:[EMAIL PROTECTED]
Sent: Saturday, August 14, 2004 1:45 PM
To: Tomcat Users List
Subject: Re: servlet question


In 'tomcat\conf\catalina\localhost\' there is no context.xml file but
there is a manageit.xml file, which is the webapp in question.
server.xml does not contain any of the other info regarding my other
webapps which are running fine so I do not think this is where the
problem lies.


David Short wrote:

>Is your context path set up correctly in your servlet.xml or
>tomcat\conf\catalina\localhost\context.xml file for this webapp?
>
>-Original Message-
>From: Schalk Neethling [mailto:[EMAIL PROTECTED]
>Sent: Saturday, August 14, 2004 1:30 PM
>To: Tomcat Users List
>Subject: Re: servlet question
>
>
>I am running TC 5.0.25 on WindowsXP, my test environment. All other
>servlets are running fine on other webapps.
>
>David Short wrote:
>
>
>
>>I don't think the servlet is the issue, since it's not even getting
>>executed.  Is your context path set up correctly in your servlet.xml or
>>tomcat\conf\catalina\localhost\context.xml file (tomcat 5).
>>
>>Which version of tomcat are you running and on what os?
>>
>>-Original Message-
>>From: Schalk Neethling [mailto:[EMAIL PROTECTED]
>>Sent: Saturday, August 14, 2004 1:22 PM
>>To: Tomcat Users List
>>Subject: Re: servlet question
>>
>>
>>Attached is the servlet, can you see any problems here? It compiles fine.
>>
>>David Short wrote:
>>
>>
>>
>>
>>
>>>Are you running this through apache redirected to tomcat or straight from
>>>tomcat?
>>>
>>>Try loading the servlet at tomcat startup to see if the servlet is
>>>recognized.
>>>
>>>i.e. 1
>>>
>>>last in the  tag set.
>>>
>>>I had the same issue and discovered that my pattern in apache wasn't
>>>
>>>
>right.
>
>
>>>However, if you're not using apache, I don't know what to say.  The
syntax
>>>looks correct.
>>>
>>>-Original Message-
>>>From: Schalk Neethling [mailto:[EMAIL PROTECTED]
>>>Sent: Saturday, August 14, 2004 1:05 PM
>>>To: Tomcat Users List
>>>Subject: re: servlet question
>>>
>>>
>>>Hey all!
>>>
>>>I have a servlet called login. I have it mapped in my web.xml as follows:
>>>
>>>
>>>  login
>>>  org.volume4.authentication.login
>>>
>>>
>>>  login
>>>  *.login
>>>
>>>
>>>My WEB-INF structure is as follows
>>>
>>>WEB-INF/classes/org/volume4/authentication/login.class
>>>
>>>Does anyone have an idea as to why when I call login as process.login
>>>
>>>
>>>
>>>
>>>from a form it is not run? I have placed some System.out.println(); in
>>
>>
>>
>>
>>>there but, it seems that the servlet is not called at all. I basically
>>>just get a blank screen. When I look at the tomcat logs no errors are
>>>recorded here either.
>>>
>>>--
>>>Kind Regards
>>>Schalk Neethling
>>>Web Developer.Designer.Programmer.President
>>>Volume4.Development.Multimedia.Branding
>>>emotionalize.conceptualize.visualize.realize
>>>Tel: +27125468436
>>>Fax: +27125468436
>>>email:[EMAIL PROTECTED]
>>>web: www.volume4.co.za
>>>
>>>This message contains information that is considered to be sensitive or
>>>confidential and may not be forwarded or disclosed to any other party
>>>without the permission of the sender. If you received this message in
>>>
>>>
>>>
>>>
>>error,
>>
>>
>>
>>
>>>please notify me immediately so that I can correct and delete the
original
>>>email. Thank you.
>>>
>>>
>>>
>>>-
>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>>
>>>-
>>>To unsubscribe, e-mai

RE: Loading Oracle Driver Problems

2004-09-22 Thread David Short
Copy the Oracle JDBC classes file classes12.zip (rename to classes12.jar)
into your Tomcat\common\lib directory.

-Original Message-
From: Peter Shankey [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 22, 2004 8:44 AM
To: Tomcat Users List
Subject: Loading Oracle Driver Problems


Use Tomcat version 5.0.19 with Oracle 9.2.0.4

I have tried to follow the Tomcat instruction but somewhere along the line I
have missed something:

1) I have copied all jar files from $ORACLE_HOME/jdbc/lib to
$CATALINA_HOME/common/lib

2) Here is the web.xml file:
  
Oracle Datasource example
jdbc/myoracle
javax.sql.DataSource
Container
 

3) Here is the server.xml file, I put this section between the Host tags in
the xml file:


 
   
factory
org.apache.commons.dbcp.BasicDataSourceFactory
  

  driverClassName
  oracle.jdbc.driver.OracleDriver


url
  jdbc:oracle:thin:@192.168.1.101:1521:to1
 

username
test
  
  
password
test
  
  
maxActive
20
  
  
maxIdle
10
  
  
maxWait
-1
  


4) Here is the bean I am trying to use:
package mybean;

import java.beans.*;
import java.io.Serializable;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.sql.DataSource;
import java.sql.Connection;
import java.sql.*;

public class testDBConn extends Object implements Serializable {


public testDBConn() throws Exception {
Context initContext = new InitialContext();
Context envContext  = (Context)initContext.lookup("java:/comp/env");
DataSource ds = (DataSource)envContext.lookup("jdbc/myoracle");
Connection conn = ds.getConnection();
}


}

The error I keep receiving is:
MonitorFilter::javax.servlet.ServletException: Cannot create JDBC driver of
class '' for connect URL 'null', cause: No suitable driver


I am unsure where I am dropping the ball on this issue If you have any ideas
please let me know.


Thanks
Pete


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




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



RE: How to configure crystal report 10 in Tomcat 4.1

2004-09-22 Thread David Short
Please post the steps if/when you get this figured out.

-Original Message-
From: QM [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 22, 2004 10:23 AM
To: Tomcat Users List
Subject: Re: How to configure crystal report 10 in Tomcat 4.1


On Wed, Sep 22, 2004 at 12:15:32PM -0500, Kiran Patel wrote:
: I have a web application using tomcat 4.1.  I want to access a crystal
report.
: I have installed crystal report 10.  Can I view that from Tomcat 4.1?
What
: are the configuration steps?  I found the instruction for Tomcat 5.0 in
the
: web, but not for Tomcat 4.1.  Please help me.

You'll have to review the Crystal Reports docs to answer that.
Specifically: does CR require servlet spec 2.4 features?
If not, then Tomcat 4.1.x will be fine.

Then it's a matter of assembling a custom web application (or
dropping in a vendor-provided WAR file) and following the instructions
to get that app running inside Tomcat (e.g. database pooling).


-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: 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 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: test

2005-05-27 Thread David Short
You just did. 

-Original Message-
From: TK Banks [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 27, 2005 4:52 PM
To: tomcat-user@jakarta.apache.org
Subject: test

Why can't I post?

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com 




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



RE: Where is the compatibility package to download?

2005-05-31 Thread David Short
Hi Dave,

I've got it and will send it to you if you contact me directly.

Dave 

-Original Message-
From: Dave Guzda [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 31, 2005 7:42 AM
To: tomcat-user@jakarta.apache.org
Subject: Where is the compatibility package to download?

Hello, 

I'm trying to get Tomcat 5.5 running and I need to use Java 1.4.2. It seems
I require the 'compatibility package' to make this happen. Exactly where is
this available to download, i can't seem to find it.

Thanks
Dave




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



Tomcat 5.5.9

2005-05-31 Thread David Short
I just loaded Tomcat 5.5.9 on XP Home Edition.  When I fire it up, it wants
me to provide a username/password.  So, I give it admin/tomcat, which is
what I supplied when prompted when loading Tomcat.  After three tries, it
displays "Unauthorized".
 
Any ideas?


RE: Tomcat 5.5.9

2005-05-31 Thread David Short
Problem solved.  Oracle had a service running on port 8080 and I was seeing
their login popup.

-Original Message-
From: David Short [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 31, 2005 1:48 PM
To: Tomcat Users Group
Subject: Tomcat 5.5.9

I just loaded Tomcat 5.5.9 on XP Home Edition.  When I fire it up, it wants
me to provide a username/password.  So, I give it admin/tomcat, which is
what I supplied when prompted when loading Tomcat.  After three tries, it
displays "Unauthorized".
 
Any ideas?




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



RE: Tomcat 5 and STRUTS

2005-06-02 Thread David Short
Nope.  I'm using Struts and Tomcat 5.5.x without issue.  Just follow the
Struts documentation. 

-Original Message-
From: Søren Blidorf [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 02, 2005 9:00 AM
To: tomcat-user@jakarta.apache.org
Subject: Tomcat 5 and STRUTS

Hi.

I am getting a new server and want to install the tomcat 5 instead of the
4.1.

I am using STRUTS!!!

Does that give any major problems

Soren, DK
Nolas Consulting




-
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: need compatability package for tomcat

2005-06-04 Thread David Short
Look here - http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi
- the package is called "5.5.9 Compat tar.gz".  Just click the link and it
will download.

-Original Message-
From: Frank [mailto:[EMAIL PROTECTED] 
Sent: Saturday, June 04, 2005 5:52 AM
To: tomcat-user@jakarta.apache.org
Subject: need compatability package for tomcat

Ok, I installed and had working tomcat 5.5.6. Also JDK 1.5

I was having problem with library/jar capability between 1.4 compiles and
1.5 from the server machine.  So decided to revert back to 1.4.x JDK all
around.  Well no it seem I need some type of compatibly package to get
tomcat to work again?  Can't see to find it on the site any one have the
URL?  Start up error is as follows:

Using CATALINA_BASE:   /home/jakarta-tomcat-5.5.6
Using CATALINA_HOME:   /home/jakarta-tomcat-5.5.6
Using CATALINA_TMPDIR: /home/jakarta-tomcat-5.5.6/temp
Using JAVA_HOME:   /opt/SUNWappserver/jdk
This release of Apache Tomcat was packaged to run on J2SE 5.0 or later. It
can be run on earlier JVMs by downloading and installing a compatibility
package from the Apache Tomcat binary download page.




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





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



RE: Apache Tomcat JK1.2 Connector

2005-06-12 Thread David Short
Look in the Apache2\conf\workers.properties file. 

-Original Message-
From: Darrell Bechtel [mailto:[EMAIL PROTECTED] 
Sent: Sunday, June 12, 2005 5:41 PM
To: tomcat-user@jakarta.apache.org
Subject: Apache Tomcat JK1.2 Connector

I have connected these 2 servers previously, but I am now running into
problems getting apache 2.0.5 to communicate with tomcat 5.5.9 using the
jk1.2 connector on the Fedora Core 3 test 4.  From looking through the jk
log file it appears that apache is trying to communicate to
66.103.44.3:8009.  I have no idea where this ip is coming from since both
apache and tomcat are installed locally and there is only 1 nic with an
internal ip of 192.168.50.5.  If anyone can shed light on where I should be
looking to resolve this conflict it would be much appreciated.

 

Thanks, 

 

Darrell Bechtel

 




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



RE: Can anyone see this message?

2005-01-06 Thread David Short
yes

-Original Message-
From: Troy Simpson [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 06, 2005 3:02 PM
To: tomcat
Subject: Can anyone see this message?


Thanks,
Troy

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



Apache2.0.52, Tomcat 5.5.4 and jk1.2.8

2005-01-24 Thread David Short
Does anyone have this configuration working, or similar?  If so, would you
mind posting your httpd.conf, workers.properties and anything else you
changed?



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



RE: Apache2.0.52, Tomcat 5.5.4 and jk1.2.8

2005-01-25 Thread David Short
I got Apache 2.0.52, Tomcat 5.5.4 and Mod_jk 1.2.8 working...thanks!

However, Apache complains about the AddModule line.  Below, is the code
right off of the Apache/Tomcat website.  If I uncomment the AddModule line,
Apache complains about not recognizing the command.  If I comment it out,
everything seems to work just fine.

Any thoughts?


# Load mod_jk module
LoadModule jk_module C:/Apache2/modules/mod_jk-1.2.8.so

# Declare the module for 
#AddModule mod_jk-1.2.8.c

# Where to find workers.properties
JkWorkersFile C:/Apache2/conf/workers.properties

# Where to put jk logs
JkLogFile C:/Apache2/logs/mod_jk.log

# Set the jk log level [debug/error/info]
JkLogLevel info

# Select the log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "

# JkOptions indicate to send SSL KEY SIZE,
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories

# JkRequestLogFormat set the request format
JkRequestLogFormat "%w %V %T"

# Send servlet for context /examples to worker named worker1
JkMount /servlet/* worker1

# Send JSPs for context /examples to worker named worker1
JkMount /*.jsp worker1

-Original Message-
From: xand [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 25, 2005 5:02 AM
To: Tomcat Users List
Subject: Re: Apache2.0.52, Tomcat 5.5.4 and jk1.2.8


I have this configuration with the only thing that my Tomcat is 5.0.28.
You can see the steps I made to get this working here:
http://es.xand.ws/Tomcat/JK?v=w53. It is in spanish, but I think is
pretty undestandable.

David Short wrote:

>Does anyone have this configuration working, or similar?  If so, would you
>mind posting your httpd.conf, workers.properties and anything else you
>changed?
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>


--
xand
mailto: [EMAIL PROTECTED]
http://xand.ws
ICQ: 104439346
MSMSN: [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: Apache2.0.52, Tomcat 5.5.4 and jk1.2.8

2005-01-25 Thread David Short
Thanks for the reply.  Your link basically describes the same technique as
the Apache/Tomcat web site does.

Here's the message as reported in w2k event viewer:

The Apache service named  reported the following error:
>>> Invalid command 'AddModule', perhaps mis-spelled or defined by a module
not included in the server configuration.

Here's the httpd.conf entries:

LoadModule jk_module modules/mod_jk.so
AddModule mod_jk.c

Any ideas?


-Original Message-
From: Edmon Begoli [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 25, 2005 7:27 PM
To: Tomcat Users List
Subject: Re: Apache2.0.52, Tomcat 5.5.4 and jk1.2.8


Try this:

http://www.redhat.com/docs/manuals/rhaps/jonas-guide/s1-load-balancing.html

Helped me to got it to  work on Linux. Should not be much different on win.

Thank you,
Edmon Begoli

David Short wrote:

>I got Apache 2.0.52, Tomcat 5.5.4 and Mod_jk 1.2.8 working...thanks!
>
>However, Apache complains about the AddModule line.  Below, is the code
>right off of the Apache/Tomcat website.  If I uncomment the AddModule line,
>Apache complains about not recognizing the command.  If I comment it out,
>everything seems to work just fine.
>
>Any thoughts?
>
>
># Load mod_jk module
>LoadModule jk_module C:/Apache2/modules/mod_jk-1.2.8.so
>
># Declare the module for 
>#AddModule mod_jk-1.2.8.c
>
># Where to find workers.properties
>JkWorkersFile C:/Apache2/conf/workers.properties
>
># Where to put jk logs
>JkLogFile C:/Apache2/logs/mod_jk.log
>
># Set the jk log level [debug/error/info]
>JkLogLevel info
>
># Select the log format
>JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
>
># JkOptions indicate to send SSL KEY SIZE,
>JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
>
># JkRequestLogFormat set the request format
>JkRequestLogFormat "%w %V %T"
>
># Send servlet for context /examples to worker named worker1
>JkMount /servlet/* worker1
>
># Send JSPs for context /examples to worker named worker1
>JkMount /*.jsp worker1
>
>-Original Message-
>From: xand [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, January 25, 2005 5:02 AM
>To: Tomcat Users List
>Subject: Re: Apache2.0.52, Tomcat 5.5.4 and jk1.2.8
>
>
>I have this configuration with the only thing that my Tomcat is 5.0.28.
>You can see the steps I made to get this working here:
>http://es.xand.ws/Tomcat/JK?v=w53. It is in spanish, but I think is
>pretty undestandable.
>
>David Short wrote:
>
>
>
>>Does anyone have this configuration working, or similar?  If so, would you
>>mind posting your httpd.conf, workers.properties and anything else you
>>changed?
>>
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>
>>
>>
>
>
>--
>xand
>mailto: [EMAIL PROTECTED]
>http://xand.ws
>ICQ: 104439346
>MSMSN: [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: Apache2.0.52, Tomcat 5.5.4 and jk1.2.8

2005-01-25 Thread David Short
Check this link out.
http://www.apache.org/~rbowen/presentations/apachecon2004/apache2.0/slide35.
html

It looks like AddModule isn't needed for Apache 2, hence not recognized?

-Original Message-
From: Edmon Begoli [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 25, 2005 7:27 PM
To: Tomcat Users List
Subject: Re: Apache2.0.52, Tomcat 5.5.4 and jk1.2.8


Try this:

http://www.redhat.com/docs/manuals/rhaps/jonas-guide/s1-load-balancing.html

Helped me to got it to  work on Linux. Should not be much different on win.

Thank you,
Edmon Begoli

David Short wrote:

>I got Apache 2.0.52, Tomcat 5.5.4 and Mod_jk 1.2.8 working...thanks!
>
>However, Apache complains about the AddModule line.  Below, is the code
>right off of the Apache/Tomcat website.  If I uncomment the AddModule line,
>Apache complains about not recognizing the command.  If I comment it out,
>everything seems to work just fine.
>
>Any thoughts?
>
>
># Load mod_jk module
>LoadModule jk_module C:/Apache2/modules/mod_jk-1.2.8.so
>
># Declare the module for 
>#AddModule mod_jk-1.2.8.c
>
># Where to find workers.properties
>JkWorkersFile C:/Apache2/conf/workers.properties
>
># Where to put jk logs
>JkLogFile C:/Apache2/logs/mod_jk.log
>
># Set the jk log level [debug/error/info]
>JkLogLevel info
>
># Select the log format
>JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
>
># JkOptions indicate to send SSL KEY SIZE,
>JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
>
># JkRequestLogFormat set the request format
>JkRequestLogFormat "%w %V %T"
>
># Send servlet for context /examples to worker named worker1
>JkMount /servlet/* worker1
>
># Send JSPs for context /examples to worker named worker1
>JkMount /*.jsp worker1
>
>-Original Message-
>From: xand [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, January 25, 2005 5:02 AM
>To: Tomcat Users List
>Subject: Re: Apache2.0.52, Tomcat 5.5.4 and jk1.2.8
>
>
>I have this configuration with the only thing that my Tomcat is 5.0.28.
>You can see the steps I made to get this working here:
>http://es.xand.ws/Tomcat/JK?v=w53. It is in spanish, but I think is
>pretty undestandable.
>
>David Short wrote:
>
>
>
>>Does anyone have this configuration working, or similar?  If so, would you
>>mind posting your httpd.conf, workers.properties and anything else you
>>changed?
>>
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>
>>
>>
>
>
>--
>xand
>mailto: [EMAIL PROTECTED]
>http://xand.ws
>ICQ: 104439346
>MSMSN: [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]



Tag libraries and JSPs

2005-02-03 Thread David Short
I just upgraded from Tomcat 5.0.28 to 5.5.4 and now my taglib declaration
doesn't seem to work anymore in my JSPs

<%@ taglib prefix="c" uri="http://java.sun.com/products/jstl/core"; %>

Is there new syntax for 5.5.4?



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



RE: Cannot create JDBC driver of class '' for connect URL 'null'

2005-02-15 Thread David Short
Rename the Oracle classes12.zip file to classes12.jar and move to the
tomcat\common\lib directory.

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 15, 2005 6:39 AM
To: 'Tomcat Users List'
Subject: RE: Cannot create JDBC driver of class '' for connect URL
'null'


Post your jdbc url.

-Original Message-
From: g k [mailto:[EMAIL PROTECTED]
Sent: February 15, 2005 6:44 AM
To: tomcat-user@jakarta.apache.org
Subject: Cannot create JDBC driver of class '' for connect URL 'null'


Hi

I have added Oracle resource params to the server.xml file and reference
parameters to oracle in the web.xml

When i startup tomcat - i get the following error:

11:20:38,385 [ConnectDB.java] [ConnectDB] [getConnectionPoolForOracle:101] -

ERR
OR - failed to get the connection:
org.apache.commons.dbcp.SQLNestedException: C
annot create JDBC driver of class '' for connect URL 'null', cause: No
suitable
driver
11:20:38,385 [SendMessageAction.java] [SendMessageAction] [Send:227] - DEBUG

- C
onnection after:
null
java.net.MalformedURLException: no protocol:
at java.net.URL.(URL.java:537)
at java.net.URL.(URL.java:434)
at java.net.URL.(URL.java:383)
at
com.csc.nhs.web.legacypas.struts.action.SendMessageAction.Send(SendMe
ssageAction.java:231)

any thoughts?

regards

Gurpreet



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


!DSPAM:4211e08b66521973816187!



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



Capitalizing names OT

2005-02-18 Thread David Short
Does anyone know if there is an equivalent to the Oracle Initcap() function?
I am trying to write a database independent name capitalization routine.



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



RE: Capitalizing names OT

2005-02-18 Thread David Short
Thanks!

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Shankar Unni
Sent: Friday, February 18, 2005 4:18 PM
To: tomcat-user@jakarta.apache.org
Subject: Re: Capitalizing names OT


David Short wrote:
> Does anyone know if there is an equivalent to the Oracle Initcap()
function?
> I am trying to write a database independent name capitalization routine.

In what language? Java?

   public static String initCap(String s)
   {
 return (s == null || s.length() == 0) ? s :
s.substring(0,1).toUpperCase() + s.substring(1);
   }


-
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: Capitalizing names OT

2005-02-18 Thread David Short
Thanks!

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Friday, February 18, 2005 4:23 PM
To: Tomcat Users List
Subject: Re: Capitalizing names OT


http://jakarta.apache.org/commons/lang/apidocs/org/apache/commons/lang/Strin
gUtils.html#capitalize(java.lang.String)

-Tim

Shankar Unni wrote:
> David Short wrote:
>
>> Does anyone know if there is an equivalent to the Oracle Initcap()
>> function?
>> I am trying to write a database independent name capitalization routine.
>
>
> In what language? Java?
>
>   public static String initCap(String s)
>   {
> return (s == null || s.length() == 0) ? s :
>s.substring(0,1).toUpperCase() + s.substring(1);
>   }
>

-
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: Capitalizing names OT

2005-02-18 Thread David Short
Yep, I agree.  Thanks for the feedback.


-Original Message-
From: George Sexton [mailto:[EMAIL PROTECTED]
Sent: Friday, February 18, 2005 4:41 PM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: Capitalizing names OT


If you are doing proper names, it's a lot harder than that. Some issues with
names are:

The Mac names

McNeil, McKendry, and the other variants that are Mac.

Names that contain an apostrophe

O'Hara, O'Neil

Then you have Generational qualifiers,

III, IV, V


George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585


> -Original Message-
> From: David Short [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 18, 2005 3:29 PM
> To: Tomcat Users Group (E-mail)
> Subject: Capitalizing names OT
>
> Does anyone know if there is an equivalent to the Oracle
> Initcap() function?
> I am trying to write a database independent name
> capitalization routine.
>
>
>
> -
> 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]



Session state Tomcat 5.5.4

2005-03-02 Thread David Short
I'm experiencing, what I believe to be, strange behavior with Tomcat 5.5.4.
I'm using Oracle connection pooling and the pool is initialized, and
connections made to the database, upon startup.  I can query the v$session
view to verify that the connections were made.  I put the connection pool
object in the Application context.  My problem is this, when Tomcat
encounters some sort of error, like can't find a JSP page for example, the
session seems to be invalidated and the connection pool object is
unreachable.  However, the connections still exist.  Again, querying the
v$session view indicates the connections are still there.  At this point,
I'm forced to restart Tomcat, which resolves the problem.

Any ideas?



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



RE: Looking for Java programmers

2005-03-02 Thread David Short
Sounds like an exciting vacation...monitoring the Tomcat User List...

-Original Message-
From: John Najarian [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 02, 2005 3:51 PM
To: Tomcat Users List
Subject: Re: Looking for Java programmers


I'll send you my resume Saturday, I'm on vacation.

-Original Message-
From: Manish Poddar <[EMAIL PROTECTED]>
Sent: Mar 2, 2005 2:59 PM
To: Tomcat Users List 
Subject: Looking for Java programmers

I am looking for 1-2 mid level Java programmers for a job in Marina Del
Rey,California. The operating system we use is Linux, the web servers
Tomcat/Apache and programming language Java, Python, Jython, Perl, PHP.
Network and Linux knowledge a definite plus.

There is a lot of potential for growth, and learning in our company. 
Only interested candidates need to apply, no third parties please.
Resumes (zipped docs only) accepted only by email, please do not call.

-- 
Manish Poddar
Development Team Manager


-
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: book for servlet programming

2005-03-17 Thread David Short
I highly recommend "Java Server Pages" 3rd edition, by Hans Bergsten
(O'Reilly).  It covers servlets, JSP and struts.  Many examples and easy to
read and understand.  I own all three editions.

-Original Message-
From: brian [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 17, 2005 4:25 PM
To: tomcat list
Subject: book for servlet programming


I need a book for servlet programming-
 there are some good reviews for the Jason (O'Reilly) book.
and also for Goodwill's Servlet programming.

Please let me know your experiences about a good book to for
servlet programming. (shall be using Tomcat primarily)

references to some tutorials with tomcat/servlet programming
examples

Thanks



__
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/

-
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: RTE - Meridian Club <[EMAIL PROTECTED]>

2005-10-07 Thread David Short
I think Arup thought that you wanted to be removed from this list.  I'm
pretty sure you meant for the Meridian Club Auto-response message to be
blocked.  I would second the motion to block the Meridian Club messages.
Whoever the original poster was, I forgot, should use a different account to
communicate on this list.  These auto-reply messages are annoying and
unnecessarily consume resources.

Arup needs to work on his social skills.  We’re all here trying to help each
other, not to attack each other.

-Original Message-
From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
Sent: Friday, October 07, 2005 7:51 AM
To: Tomcat Users List
Subject: Re: RTE - Meridian Club <[EMAIL PROTECTED]>


On 10/7/05, Arup Vidyerthy <[EMAIL PROTECTED]> wrote:
> Why don't you use your eyes and read the bottom of the email. Or is that
too
> difficult?

Hae?
Leon

>
> -Original Message-
> From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
> Sent: 07 October 2005 15:39
> To: Tomcat Users List
> Subject: RTE - Meridian Club <[EMAIL PROTECTED]>
>
> can someone please remove this email from the list? It's kindof nerving...
>
> thanx
> leon
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> ___
> To help you stay safe and secure online, we've developed the all new
Yahoo! Security Centre. http://uk.security.yahoo.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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





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



RE: RTE - Meridian Club <[EMAIL PROTECTED]>

2005-10-07 Thread David Short
Well, it is Friday morning...at least here in the US.  It looks like Happy
Hour in the UK...now that's what I'm talking about!

-Original Message-
From: GB Developer [mailto:[EMAIL PROTECTED]
Sent: Friday, October 07, 2005 8:05 AM
To: 'Tomcat Users List'
Subject: RE: RTE - Meridian Club <[EMAIL PROTECTED]>



> -Original Message-
> From: David Short [mailto:[EMAIL PROTECTED]
>
> Arup needs to work on his social skills.  We're all here
> trying to help each other, not to attack each other.


but... at least he likes donuts. So he can't be all that bad.  ;)

> On 10/7/05, Arup Vidyerthy <[EMAIL PROTECTED]> wrote:


-
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: RTE - Meridian Club <[EMAIL PROTECTED]>

2005-10-07 Thread David Short
Hi Glen,

Thanks for the analysis.  I guess my point was that people (Arup) should
fully understand the issue at hand BEFORE flaming someone.  I knew exactly
what Leon was asking, without much effort.  I would imagine that Arup simply
perused the message without giving it much thought (he was busy, distracted,
etc.).  I do agree there are those who would rather have someone else to
their dirty work (unsubscribing).  However, even reprimanding someone for
being lazy can be done a little gentler.  There have been, and always will
be, new and lazy people on this list.  It’s the nature of the beast.  Simply
stated, anger and rage really don’t help anything.

Let's not turn this into a can of worms.  It can go away peacefully now.

Dave

-Original Message-
From: Glen Mazza [mailto:[EMAIL PROTECTED]
Sent: Friday, October 07, 2005 8:42 AM
To: Tomcat Users List
Subject: Re: RTE - Meridian Club <[EMAIL PROTECTED]>


Arup misunderstood Leon's message and thought he lazily wanted others to
unsubscribe him.  That was his main error.  But in fairness to Arup,
flames can be called for when people ask to be unsubscribed from a
technical mailing list that 1000's of other people are subscribed to.

People making such requests are usually either newbies who need to be
jolted (and also thereby jolting/informing other newbies about to make
the same request, keeping the ML free of additional requests), or by
rather lazy people who know how to unsubscribe but don't want to bother.
  The latter type might actually feed on the "kid glove" approach that
David may be inclined to recommend.

Glen


David Short wrote:
>
> Arup needs to work on his social skills.  We’re all here trying to help
each
> other, not to attack each other.
>

-
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: RTE - Meridian Club <[EMAIL PROTECTED]>

2005-10-07 Thread David Short
No worries.  Good luck in your new endeavor.

-Original Message-
From: Arup Vidyerthy [mailto:[EMAIL PROTECTED]
Sent: Friday, October 07, 2005 8:50 AM
To: 'Arup Vidyerthy'; 'Tomcat Users List'
Subject: RE: RTE - Meridian Club <[EMAIL PROTECTED]>


Somehow my apologetic message hasn't been delivered by the mail server as
yet.

-Original Message-
From: Arup Vidyerthy [mailto:[EMAIL PROTECTED]
Sent: 07 October 2005 16:11
To: 'Tomcat Users List'
Subject: RE: RTE - Meridian Club <[EMAIL PROTECTED]>

Guys,

My sincere apologies!! You see I handed in my notice at work today and was
feeling good until they have all started to treat me like an outsider. Hence
the anti social mood.

I'll be careful next time and use my eyes first before replying ;-)

Arup

-Original Message-
From: David Short [mailto:[EMAIL PROTECTED]
Sent: 07 October 2005 16:00
To: 'Tomcat Users List'; 'Leon Rosenberg'
Subject: RE: RTE - Meridian Club <[EMAIL PROTECTED]>

I think Arup thought that you wanted to be removed from this list.  I'm
pretty sure you meant for the Meridian Club Auto-response message to be
blocked.  I would second the motion to block the Meridian Club messages.
Whoever the original poster was, I forgot, should use a different account to
communicate on this list.  These auto-reply messages are annoying and
unnecessarily consume resources.

Arup needs to work on his social skills.  We're all here trying to help each
other, not to attack each other.

-Original Message-
From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
Sent: Friday, October 07, 2005 7:51 AM
To: Tomcat Users List
Subject: Re: RTE - Meridian Club <[EMAIL PROTECTED]>


On 10/7/05, Arup Vidyerthy <[EMAIL PROTECTED]> wrote:
> Why don't you use your eyes and read the bottom of the email. Or is
> that
too
> difficult?

Hae?
Leon

>
> -Original Message-
> From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
> Sent: 07 October 2005 15:39
> To: Tomcat Users List
> Subject: RTE - Meridian Club <[EMAIL PROTECTED]>
>
> can someone please remove this email from the list? It's kindof nerving...
>
> thanx
> leon
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> ___
> To help you stay safe and secure online, we've developed the all new
Yahoo! Security Centre. http://uk.security.yahoo.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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





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



___
How much free photo storage do you get? Store your holiday
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com

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




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