I retrieved an object of DataSource using Tomcat's JNDI simulation. It is an
instance of BasicDataSource. I tried to cast it to BasicDataSource and got a
ClassCastException.
Context ctx = new InitialContext() ;
Context envCtx = (Context) ctx.lookup(java:comp/env) ;
DataSource ds = (DataSource)
Rename jdbc driver package to .jar and put in common/lib
Regards,
Phillip Qin
Software Developer
Canadian Shareowner
121 Richmond Street W, 7th Floor
Toronto, ON M5H 2K1
(416) 595-9600 ext 291
-Original Message-
From: Sinclair, Alan (CORP, GEAccess)
Rename jdbc to .jar and put in common/lib
Regards,
Phillip Qin
Software Developer
Canadian Shareowner
121 Richmond Street W, 7th Floor
Toronto, ON M5H 2K1
(416) 595-9600 ext 291
-Original Message-
From: John Ruffin [mailto:John.Ruffin;AccredoHealth.com]
Sent: October 28, 2002
Can you send us the log file? Usually it contains info about when to load
jndi, params etc. that might help figuring out what went wrong during jws
startup.
Regards,
Phillip Qin
Software Developer
Canadian Shareowner
121 Richmond Street W, 7th Floor
Toronto, ON M5H 2K1
(416) 595-9600 ext
Will remove work?
Regards,
Phillip Qin
Software Developer
Canadian Shareowner
121 Richmond Street W, 7th Floor
Toronto, ON M5H 2K1
(416) 595-9600 ext 291
-Original Message-
From: Stefan Wachter [mailto:Stefan.Wachter;gmx.de]
Sent: October 30, 2002 11:55 AM
To: [EMAIL PROTECTED]
Default port is 8080.
Regards,
Phillip Qin
Software Developer
Canadian Shareowner
121 Richmond Street W, 7th Floor
Toronto, ON M5H 2K1
(416) 595-9600 ext 291
-Original Message-
From: Parvick [mailto:parvick;rediffmail.com]
Sent: October 31, 2002 12:52 AM
To: [EMAIL PROTECTED]
Where do you setup your datasource? If Global or default context, you should
be able to see JNDI reference loading when you start your tomcat.
Regards,
Phillip Qin
Software Developer
Canadian Shareowner
121 Richmond Street W, 7th Floor
Toronto, ON M5H 2K1
(416) 595-9600 ext 291
So how does ssl play in this checklist?
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: February 6, 2003 10:06 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat and Apache
Which tomcat-connector do I use to build mod_jk2 for Apache 2.0.44 - Tomcat
4.1.18? where can I download?
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
I am in trouble with this tomcat-connector. I use Apache 2.0.x's SSL and run
my app on tomcat.
If I typed in http://1.1.1.1/myapp, I was redirected to
https://1.1.1.1/myapp; then I purposely changed https back to http and hit
Enter, I was redirected to http.
There is only one connector in my
Is it renamed? I remember in tomcat 4.1.12, it was named
Jakarta-tomcat-connector-4.1.12-src. That's why I could not find it.
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
I am confused. Which tarball shall I grab?
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0.
2/
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.18/src/
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
There are two places that you define shm.file, tomcat jk2.properties and
apache workers2.properties. If you comment out one, you have to comment out
another.
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Varley,
Is your jdbc driver in jar file?
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Uros Kotnik [mailto:[EMAIL PROTECTED]]
Sent: February 6, 2003 11:24 AM
To: [EMAIL PROTECTED]
Subject: Cannot load JDBC driver class
Red Hat's apache is 1.3.
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Hans Deragon [mailto:[EMAIL PROTECTED]]
Sent: February 6, 2003 3:16 PM
To: [EMAIL PROTECTED]
Subject: jakarta-tomcat-connectors-jk2-2.0.2-src
They are always in common/lib in 4.1.12 and onwards.
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]]
Sent: February 6, 2003 5:16 PM
To: Tomcat Users List
Subject:
There are explanations about why we shall use Apache + Tomcat not TC alone.
I think the main reason is Apache interprets htm/html page faster than
Tomcat while Tomcat is good at interpreting jsp/servlet. Things have
changed. Tomcat now claims interpret htm/html as fast as Apache.
If your web site
POST should hide the query string.
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Luc Foisy [mailto:[EMAIL PROTECTED]]
Sent: February 7, 2003 9:11 AM
To: Tomcat User List (E-mail)
Subject: Question about options
Have you created workers2.properties in apache2/conf?
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Carlos Cajina [mailto:[EMAIL PROTECTED]]
Sent: February 7, 2003 11:00 AM
To: Tomcat Users List
Subject: Re:
Yesterday I built apache 2.0.44 and tomcat connector 4.1.18. I loaded module
mod_jk2.so in apache. There are two issues.
Issue 1:
If I create a jk2.properties like this
Handlers.list=apr,channleUnix,request
Channel.Unix blah blah
Is it possible to automatically redirect any http request to https in an
Apache + Tomcat environment? For example, If I enter
http://my.domain.com/mycontext http://my.domain.com/mycontext , I would be
automatically redirected to https://my.domain.com/mycontext?
Regards,
PQ
This
Actually I want to force the https access of my context
1. I included ssl.conf in httpd.conf.
2. In ssl.conf, I enabled SSL and
VirtualHost _default_:*
ServerName my.domain.com:443
..
/VirtualHost
3. In my server.xml, the only connector loaded is a secure one.
Connector
Yes, I use struts. It used to automatically redirect http request to https
with https setup in ssl.conf. After I upgraded to b3, 4.1.18, 2.0.44, http
is http and https is https.
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original
If that's the case, I would recommend commons-logging as it supports jdk and
log4j.
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Joe Tomcat [mailto:[EMAIL PROTECTED]]
Sent: February 9, 2003 6:04 PM
To: Tomcat
If you enable jk logging in workers2.properties, you will see that apache2
is looking into your connector src directory for workers.c. Could not figure
out why?
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Andy
Copy libjkjni.so to somewhere in your apache2 or tomcat and create an entry
in your workers2.properties apr.NativeSo=/somewhere/libjkjni.so
I didn't get IOException but ClassDefNotFoundException: cant create apr.
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What
/usr/local/apache2/lib
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Brzezinski, Paul J [mailto:[EMAIL PROTECTED]]
Sent: February 12, 2003 11:47 AM
To: Tomcat Users List
Subject: RE: java.io.IOException: no jkjni
I had a build error which complained about libapr.so not found. So I linked
libapr-0.so.0.9.2 to libapr.so and passed compilation. I am wondering how
you passed build?
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
It is in conf and you can specify default properties file, please refer to
jk2 doc.
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Diego Algorta Casamayou [mailto:[EMAIL PROTECTED]]
Sent: February 12, 2003 11:53
Because jk2 is way too easy to setup, people don't believe that the jk2 doc
is complete. I would say the documentation on build is incomplete.
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Jake Robb [mailto:[EMAIL
You load mod_jk2.so in httpd.conf and apache will load workers2.properties
from its conf dir. Simple?
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Diego Algorta Casamayou [mailto:[EMAIL PROTECTED]]
Sent:
Create workers2.properties and put these lines
[config]
file=/my/location/myjk2.config
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Diego Algorta Casamayou [mailto:[EMAIL PROTECTED]]
Sent: February 12, 2003
There is no direct link since sun requires you to say I agree.
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Alberto A C A S Magalhães [mailto:[EMAIL PROTECTED]]
Sent: February 12, 2003 1:14 PM
To: Tomcat Users
apr.NativeSo has to be placed in jk2.properties in order for channelUnix to
work.
If I don't put apr.NativeSo, there is no error in Catalina.out. However,
there is no channelUnix either.
If I put apr.nativeSo, I got that error.
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy
The context in your server.xml is what you need to specify in [uri]. For
example, $CATALINA_HOME/webapps/examples translated into uri is
[uri:/examples/*]
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Jake Robb
What about your app's web.xml? This is a classic question, You many search
through this list or struts/commons lists for answer. There is also a
documentation on Jakarta.apache.org's.
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original
Try following
[uri:/*] in your workers2.properties
in $CATALINA_HOME/webapps/ROOT, modify index.jsp to redirect your request to
somewhere you want to go.
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Jake Robb
I guess it was cached. Try close your browser and re-launch it.
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: John Ruffin [mailto:[EMAIL PROTECTED]]
Sent: February 14, 2003 12:13 PM
To: 'Tomcat Users List'
According to commons-logging documentation, commons-logging automatically
search for available logging config, log4j, jdk, commons-logging, simplelog
etc. The idea is good. It makes life much easier using different logging
api.
I am happy with log4j so why switch?
Regards,
PQ
This Guy
One easy way to tell if your xml is incorrect is to double click on your
web.xml and struts-config.xml. It brings up your web browser. Your web
browser should interpret your xml based on the dtd provided by your xml. If
there is something wrong, the error message must be seen in the browser.
Use apachectl configtest to check your httpd.conf
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: February 18, 2003 2:07 AM
To: Tomcat Users List
Subject: RE: JK2
Move that header file one level up.
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Xue-Feng Yang [mailto:[EMAIL PROTECTED]]
Sent: February 18, 2003 1:34 AM
To: Tomcat Users List
Subject: Re: Tomcat 4.1.18 and
This problem only happens when you compile a connector on linux.
The exact location of jni_md.h is $JAVA_HOME/include/linux. In order to pass
the compile, you have to move this header file one level up to
$JAVA_HOME/include.
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks
Sorry if I misunderstood your question.
I encountered errors like jni_md.h no such file etc when I was building my
connector. After I read and followed the instruction provided by
http://www.pubbitch.org/jboss/mod_jk2.html, I passed the compile.
So below is what I think might be helpful.
1.
We should not waste precious resource teaching people how to read the
link.:)
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Barney Hamish [mailto:[EMAIL PROTECTED]]
Sent: February 18, 2003 12:19 PM
To: 'Tomcat
Yes, mine is 7.2 too. If I were you, I would choose not to install apache
which came with RH8. Building apache from source should ease your pain.
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: sunisson
Postgre sql?
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Jens Skripczynski [mailto:[EMAIL PROTECTED]]
Sent: February 18, 2003 1:20 PM
Cc: [EMAIL PROTECTED]
Subject: [OT] free Database with Transaction (Sorry
Looking through connector how-to you should find answers.
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]]
Sent: February 18, 2003 3:32 PM
To: 'Tomcat Users List'
Servlet.jar is not in your classpath
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Ryan Dooley [mailto:[EMAIL PROTECTED]]
Sent: February 19, 2003 12:57 PM
To: [EMAIL PROTECTED]
Subject: Question about building
url is your manager app's url, e.g. http://localhost:8080/manager
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]]
Sent: February 19, 2003 12:55 PM
To: 'Tomcat Users List'
Always use java:comp/env/yourdatasource
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Haytham Samad [mailto:[EMAIL PROTECTED]]
Sent: February 19, 2003 1:13 PM
To: Tomcat Users List
Subject: How To Unit Testing
No idea about JBoss.
Tomcat's JNDI is not a real directory service but a simulation. Look at
struts' test suites.
C:\jakarta-struts-1.1-b3-src\src\test\org\apache\struts\action
Class TestActionServlet might be helpful.
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He
My opinion is you choose whatever you like. Obviously jdk1.4 logging API is
for jdk 1.4. commons-logging is a good API only if you use it as a logger
not a wrapper of another logger.
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original
Tomcat's connection pooling utilizes its JNDI implementation plus
commons-dbcp and pooling, so you have to use whatever the JNDI-datasource
documentation tells you to do, that is
1. type=javax.sql.DataSource
2.
namedriverClassName/name
valueoracle.jdbc.driver.OracleDriver/value
3. Do not define
Are you sure its 8019 not 8009? 8019 is just an example supplied by tomcat.
The real port is 8009 as it is defined in server.xml
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Robert Andersson [mailto:[EMAIL
I did it for Oracle and succeeded. You need to use both commons-dbcp and
commons-pooling. I switched to Tomcat JNDI + pooling after I found out that
Tomcat's implementation is DAMN simple.
The documentation on using commons APIs is sufficient (it suits any kind of
pooling). But you have to
This is the story I was told.
In old days, Tomcat was a JSP/Servlet Container - interpreting JSP/Servlet
pages faster than it did for static html. So people chose Apache to load
HTML pages and redirected requests of JSP/Servlet to Tomcat. Now Tomcat
claims to be as fast as Apache in terms of
There are two options.
1. Tomcat JNDI: refer to Tomcat's JNDI datasource how-to
2. commons-dbcp + commons-pooling: refer to commons-dbcp and pooling API
documentation
Which one do you want to know?
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
I built apache and jk2 for my linux box. I have to admit it is slightly
difficult to build and config. I still have an error after I start apache
[error] mod_jk child init 1 0 - I am not even running mod_jk but mod_jk2!
Yesterday I installed apache and jk2 on w2k box. Few minutes, I was done.
Not sure if mode_jk2-2.0.43.so works with apache 2.0.44. But
workers2.properties and jk2.properties are quite simple.
After I built tomcat-connector from source, I only did following changes
1. /usr/local/apache2/conf/workers2.properties
# shared memory handling.
[shm]
Try channel.socket::8009
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Dani [mailto:alchasira@xxx]
Sent: February 21, 2003 1:15 PM
To: Tomcat Users List
Subject: RE: apache tomcat (this old problem)
I have had this problem before. But I forgot which config I corrected. Check
your ssl.conf
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Bryan Field-Elliot [mailto:bryan_lists@xxx]
Sent: February 21, 2003
Does your tomcat load MBean server during startup?
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Achim Hügen [mailto:[EMAIL PROTECTED]
Sent: February 24, 2003 4:44 AM
To: [EMAIL PROTECTED]
Subject: MBeans and
This is a Tomcat JNDI implementation. I tried different solutions Tomcat,
Oracle connection caching and commons. Among them, Tomcat's is very simple.
commons-dbcp + pooling require more coding but have more flexibility of
course.
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy
I see similar messages in my Catalina.out. Since my app works just fine, I
simple ignore them. I think it is either apache timeout setup or ssl setup.
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Sven Köhler
I was scared some one run tomcat on win95 box.
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Ian Hunter [mailto:[EMAIL PROTECTED]
Sent: February 25, 2003 11:11 AM
To: Tomcat Users List
Subject: Re: tcp/ip stack
This issue has been asked and answered again and again in the mailing list
of tomcat, struts, and commons. Consider that Oracle is so populate, setup
should be pretty straightforward.
My advice is to make sure that you have read carefully the tomcat datasource
documentation.
My environment is
Since it is classical, by searching archive of this list you will find
answer.
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Victor Gonzalez [mailto:[EMAIL PROTECTED]
Sent: February 25, 2003 1:49 PM
To: 'Tomcat
Tomcat connector setup on Windows doesn't even need John's instruction - too
simple compare to Linux's.
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Kaarle Kaila [mailto:[EMAIL PROTECTED]
Sent: February 25, 2003
I built everything from source.
mod_jk init 1 -2: stop and restart apache once or several times.
mod_jk init 1 0: won't disappear and won't hurt my app.
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Edson Alves
Do it in your apache httpd.conf
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: runu rathi [mailto:[EMAIL PROTECTED]
Sent: February 25, 2003 3:33 PM
To: [EMAIL PROTECTED]
Subject: how can I disable directory
Search struts archive. I remember some one posted similar question. All you
have to do is to write HTML code.
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Jens Skripczynski [mailto:[EMAIL PROTECTED]
Sent:
Is it you who posted the same question or some one else? Search through
tomcat or struts archive. There was an answer last week.
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Simon Wong [mailto:[EMAIL PROTECTED]
Remove unnecessary lines from build.properties, e.g. tomcat41=.
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Albert Lunde [mailto:[EMAIL PROTECTED]
Sent: February 26, 2003 11:08 AM
To: [EMAIL PROTECTED]
Which tomcat connector are you using, jk or jk2? For jk2, check
workers2.properties, jk2.properties and server.xml. I don't use jk.
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Charles A Jordan [mailto:[EMAIL
Server.xml connector=
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Charles A Jordan [mailto:[EMAIL PROTECTED]
Sent: February 26, 2003 1:20 PM
To: [EMAIL PROTECTED]
Subject: RE: Connection refused question
How
Or hard-coded your fully-qualified file name in web.xml
init-param
param-namemytextfile/param-name
param-valuemy.text.file/param-value
/init-param
Then get file name using getInitParameter(mytextfile) in your Servlet.
Regards,
PQ
This Guy Thinks He Knows Everything
This
77 matches
Mail list logo