Thanks Maurice. I'll need to look into this.
> The one difficulty I have NOT seen is losing the session ID.
> I do get session ID persistence where it is permitted (across http page
> transitions, across https page transitions, and across http->https page
> transition)
>
> Maurice Yarrow
The los
> Can this behavior be accomplished with mod proxy alone (meaning I can
> remove mod rewrite from the picture completely)? Could this rewrite be
> causing me to lose the session between Apache and Tomcat?
*ding ding ding*
We have a winner! I removed the rewrite rules from my httpd-vhosts.conf fil
I moved my port to 8081 and I still see the same behavior. *sigh*
I'm still getting no positive results. I'm now thinking this issue involves
one of two things. 1) Mod proxy and the way I've configured it; or 2) the
rewrite rules I do on each request to and from my domain.
This is my first time us
> In server.xml (tomcat's config file), the element
> receiving proxied requests from Apache HTTPd needs
> proxyName="www.mysite.com" and proxyPort="80" to properly handle cookies
> and writing URLs.
>
> There are commented examples of this in the original server.xml file
> distributed with t
I got your message through the list, Steffen.
I don't know how to help you, though.
Sorry.
Darren
> Hi
>
> I know, reasking the same question if there was no answer, is no good
> style. However I had problems using apache-lists earlier and I don't know
> wether my mail made it to the list. So
Thanks David,
> For using mod_proxy, have you also added proxy_name and proxy_port
> attributes to the connector receiving proxied requests? Those will need
> to be set so tomcat can create the session cookie correctly.
I don't believe I'm setting any of these things. Correct me if I'm wrong,
PROTECTED]
Sent: Friday, September 22, 2006 12:04 PM
To: Tomcat Users List
Subject: RE: New session PER REQUEST
> From: Darren Hall [mailto:[EMAIL PROTECTED]
> I'm running a webapp built on Struts 1.2.9 running in Tomcat
> 5.5 and using
> an Apache 2.2 http server. I've noticed tha
I wasn't sure if my issue was a Tomcat issue or a Struts issue, so I posted
it here just in case.
I have a serious problem.
I'm running a webapp built on Struts 1.2.9 running in Tomcat 5.5 and using
an Apache 2.2 http server. I've noticed that any value I put into the
session is always removed
> Which is why I suggested Ethereal to see what was really going over the
> wire between your Windows box and the DB machine.
Yep. I think you're right. I'll get that set up and take a look.
Be back in a while. Thanks for the help.
> They are, you just don't know it. From the doc:
>
> "These libraries are located in a single JAR at
> $CATALINA_HOME/common/lib/naming-factory-dbcp.jar.
Gotcha. Thanks, Chuck.
The naming-factory-dbcp.jar is in my /commons/lib dir.
The bizarre thing about all of this is that
A) I can connect
(In reverse order)
> have you used a DB utility such as tora/toad/sqlplus to successfully
> authenticate to your Database with the values for username and password?
Yes
> Inside struts-config.xml can you show us what you have supplied for each
> value associated with the following properties
>
> did you try printing out the username and password variables to see what
> credentials are coming through?
Well, yes and no. I've actually hard coded the username and password into my
code when I've tested *not* using connection pooling, so I know what they
are in that case. When using connecti
> That SQL Nested Exception thing in general looks like the root cause...any
> way to try going to the DOS prompt and connecting to SQL Plus with that
> username/pwd combo?
Yes, using that username and password works fine through SQL Plus, and I've
connected to the database several times through
> does your XP box give you any application log errors anywhere?
I see no errors in the event viewer in any of the logs that are related to
this issue, but it was a good idea. (I didn't think of it.)
> I wonder if Windows is looking for a domain authentication, that is a
> domain name stapled on
More progress with this issue.
It seems that on our development server (solaris box running solaris 10) the
connection pool connects properly. However on my local box (a Windows XP SP2
box where I'm doing my development before I move it to dev) the connection
pool returns to me an "invalid username
In any case, moving the ojdbc14.jar file to the common/lib directory worked.
Thanks.
-Original Message-
From: Darren Hall [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 19, 2006 12:09 PM
To: 'Tomcat Users List'
Subject: RE: cannot load jdbc driver??
> They will be
> They will be accessible by your war file code. You do not need the jar
> in both places. Only common/lib
No no. I understand that it will be available to my code (since the app
server will put the jar in my classpath), but it means I can't deploy
ojdbc14.jar with my war any longer. Correct?
> did you not specify a JDBC connection in the Realm? server.xml in the conf
> file?
I have no Realm specified in server.xml, however I'm attempting to get
connection pooling set-up (see my connection pool thread) so I've created a
context.xml file and specified my connection information inside a
Great - not only is the connection pool not working locally, but the drivers
cannot be loaded in my production environment.
I've packaged ojdbc14.jar into my war and it deploys into my WEB-INF/lib
directory. When Tomcat 5.5 starts up and I point a browser at my
application, I get a "Cannot load JD
> can you print the contents of context.xml?
Absolutely Martin,
The parameters are there, but they are included as attributes instead of
contained as the body of an element. I'm not sure if this matters or not,
but I have it implemented a way I saw it done in a "JNDI Datasource How-To"
on Apache'
> Have you tried
> username="myuserid" password="mypassword"
> instead username="(myuserid)" password="(mypassword)"
Yes Jean-Claude. In fact, I don't use the parenthesis around the username
and password in my context.xml file. I just listed it that way here in the
list so people would understand
logon denied" error. This leads
me to believe the error is in my configuration (or my code).
What am I doing wrong here??
Thanks,
Darren
-Original Message-----
From: Darren Hall [mailto:[EMAIL PROTECTED]
Sent: Monday, September 18, 2006 2:45 PM
To: 'Tomcat Users List'
S
Is there any other information I can supply to help people help me
understand why I'm getting this error (below)?
> I've made some progress on this. I'm now receiving a "SQLNestedException:
> Cannot create PoolableConnectionFactory" error when calling getConnection
> on the DataSource object ret
> You are likely connecting to the wrong catalog. Is the pool parameter
> defaultCatalog set?
That's specified in my Context, correct? If so, then no, I don't have my
defaultCatalog parameter set.
Here is my context.xml file (comments removed, as well as domain uname and
passwd)
I've made some progress on this. I'm now receiving a "SQLNestedException:
Cannot create PoolableConnectionFactory" error when calling getConnection on
the DataSource object retrieved from my connection pool. Here is the satck
trace:
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create
Po
Here's another question...
If the database pool is not created properly, will it fail silently, or will
an error be displayed in a log file? And if an error is output to a log
file, which one will it be?
-Original Message-
From: Darren Hall [mailto:[EMAIL PROTECTED]
Sent: M
The issue could be the path attribute or docbase attribute in the
context.xml. I'm not sure what values should appear for these.
-Original Message-
From: Darren Hall [mailto:[EMAIL PROTECTED]
Sent: Monday, September 18, 2006 11:26 AM
To: 'Tomcat Users List'
Subjec
D]
Sent: Monday, September 18, 2006 11:30 AM
To: Tomcat Users List
Subject: Re: Database connection pooling in Tomcat 5.5
Do you include a in your WEB-INF/web.xml file?
You might also want to post your web.xml
Pid wrote:
> post your context.xml
>
>
>
>
> Darren Hall wrote:
&g
pooling in Tomcat 5.5
post your context.xml
Darren Hall wrote:
> Hi all.
>
>
>
> I'm attempting to set up database connection pool using Tomcat 5.5 and
> Oracle 10g. I've been following the "JNDI How To" guide from Apache
>
(http://tomcat.apache.or
Hi all.
I'm attempting to set up database connection pool using Tomcat 5.5 and
Oracle 10g. I've been following the "JNDI How To" guide from Apache
(http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html
). My question is - where should I define the connection pool resource?
> And the filename for the ROOT app ( / ) would beROOT.xml ?
I don't know the answer, Lionel, but the logic seems to stand to reason.
*wink*
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail
the webapp. If your
webapp is in the folder foo in the webapps directory, the file would be
foo.xml. Also be sure your instructions are for tomcat 5.5 as the way
the JNDI resource definition is written is different from previous versions.
-David
Darren Hall wrote:
> Hi all.
>
> I'
Hi all.
I'm using Oracle 10g with Tomcat 5.5 and Struts 1.2.9.
I'd like to set up connection pooling for my application. I've read the
Tomcat "HOW-TO" on setting up a JNDI Datasource for connection pooling, but
one thing confuses me - In the how-to, it states "Configure the JNDI
DataSource in Tom
Hi all.
I'm using Oracle 10g with Tomcat 5.5 and Struts 1.2.9.
I'd like to set up connection pooling for my application. I've read the
Tomcat "HOW-TO" on setting up a JNDI Datasource for connection pooling, but
one thing confuses me -
In the how-to, it states "Configure the JNDI DataSource in Tomc
controller servet was not deployed with the war file.
Darren
-Original Message-
From: Darren Hall [mailto:[EMAIL PROTECTED]
Sent: Monday, July 24, 2006 3:07 PM
To: 'Tomcat Users List'
Subject: RE: Setting the classpath for my application
I wanted to confirm that jar files
s in the jar under the WEB-INF/lib directory???
Any help would be appreciated.
Thanks,
Darren
-----Original Message-
From: Darren Hall [mailto:[EMAIL PROTECTED]
Sent: Monday, July 24, 2006 1:59 PM
To: 'Tomcat Users List'
Subject: Setting the classpath for my application
Is the
or my application in Tomcat?
Thanks,
Darren
-Original Message-----
From: Darren Hall [mailto:[EMAIL PROTECTED]
Sent: Monday, July 24, 2006 11:19 AM
To: 'Tomcat Users List'
Subject: ClassNotFound - Is WEB-INF/lib in my app's classpath?
Ok, I've deployed my applicatio
Ok, I've deployed my application in Tomcat 5.5 on Solaris using the war
deploy feature in the manager.
The application (lets call it 'foo') shows up in the manager as '/foo', so I
know that it deploys. When I look in catalina.log, I see a ClassNotFound
exception, alerting me that the ClassLoader w
ed.
Thanks,
Darren
-Original Message-----
From: Darren Hall [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 19, 2006 9:03 AM
To: 'Tomcat Users List'
Cc: [EMAIL PROTECTED]
Subject: RE: The requested resource is not available
Thanks for the response Hassan.
> But if the above
Thanks for the response Hassan.
> But if the above url-pattern is in a Context with path '/abc', then you're
> telling it to give everything that looks like
> 'http://localhost:8080/abc/abc'
> to your control servlet, which probably isn't what you want... :-)
No, you are exactly right. This is
ing off the request to my serlvet.
Also I've tried hitting the servlet directly by pointing my browser
to http://localhost:8080/abc and I get the same "The requested resource
(/abc) is not available" error.
What have I done wrong?
Johnnie,
To remove your address from the list, send an empty message to:
<[EMAIL PROTECTED]>
Hope this helps,
Darren
-Original Message-
From: Johnnie Chang [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 14, 2006 11:05 AM
To: 'Tomcat Users List'
Subject: RE: problems with unsubscri
I'm having a problem getting tomcat 5.5.17 running on Solaris 10. I
preformed a default install of all the binary files and set my JAVA_HOME
variable to my install of jdk1.5 (/opt/jdk1.5/)
The problem I am running into is when I try to view my servlets-examples
page I get a 404 error from tomcat
Steven,
What web server are you running, and have you correctly connected the web
server to your app server? Check your web server access logs to verify that
the web server is receiving your browser request.
Darren
-Original Message-
From: Steven Peacock [mailto:[EMAIL PROTECTED]
Sent
Chris,
Not sure if this is helpful but it appears the next step that is failing is
the actual connection to tomcat from apache (unless you've left this part of
your mod_jk.log out of your post).
Here's the mod_jk.log output of a test I did on my local machine. The first
worker 'testworker' connec
Those evil people at Sun with their weird and often difficult to use
"javascript"!! *shakes fist*
Now ECMAScript THAT'S a different story...
=P
-Original Message-
From: Roel De Nijs [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 02, 2006 10:52 AM
To: users@tomcat.apache.org
Subj
> Hmm, you're mixing up that "/servlet" story.
> Better remove everything named "servlet" from
> your environment... It is only confusing.
>
> Create app.xml, put the Context path "/"
> or "/app", and then "/FCLxyzServlet" or
> "/app/FCLxyzServlet" are the correct URLs.
>
> Does that make any se
Georg,
> if I look at your original configuration
>
> >
> > SimpleServlet
> > /simple-servlet
> >
> ---snip---
> > reloadable="true" debug="99">
>
> then, if I am not overlooking something,
> the correct URL to invoke the servlet is
>
> http://localhost/simple-servlet
I can definitely deploy a servlet the way I am trying to, but
it also raises questions about why the resource bundle couldn't be located.
Is all of this really a classpath or class loader issue in some way?
-----Original Message-
From: Darren Hall [mailto:[EMAIL PROTECTED]
Sent: Monday, Januar
> On 1/23/06, Darren Hall <[EMAIL PROTECTED]> wrote:
> > > > From: Darren Hall [mailto:[EMAIL PROTECTED]
> > > > Subject: RE: (newb) Tomcat servlet mapping problem
> > > >
> > > > Is there a way I can map these servlets (in the web.xml f
> > From: Darren Hall [mailto:[EMAIL PROTECTED]
> > Subject: RE: (newb) Tomcat servlet mapping problem
> >
> > Is there a way I can map these servlets (in the web.xml file) so
> > that Tomcat can see them and execute them?
>
> Not that I'm aware of, s
age-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Sunday, January 22, 2006 9:19 PM
To: Tomcat Users List
Subject: RE: (newb) Tomcat servlet mapping problem
> From: Darren Hall [mailto:[EMAIL PROTECTED]
> Subject: RE: (newb) Tomcat servlet mapping problem
>
> I have. T
vlet class file...
- Original Message -
From: "Darren Hall" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" ; <[EMAIL PROTECTED]>
Sent: Monday, January 23, 2006 9:43 AM
Subject: RE: (newb) Tomcat servlet mapping problem
>
> Have you tried accessing the se
I specify the classpath for the classloader for this app?
(Please forgive my Tomcat classloading ignorance.)
Darren
-Original Message-
From: Darren Hall [mailto:[EMAIL PROTECTED]
Sent: Sunday, January 22, 2006 8:44 PM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: (newb)
na.log, nothing goes to stdout.log or stderr.log
at all) so it makes fixing this problem that much more fun/challenging!
-Original Message-
From: Steve Ochani [mailto:[EMAIL PROTECTED]
Sent: Sunday, January 22, 2006 8:37 PM
To: Darren Hall; 'Tomcat Users List'
Subject: RE: (
al Message-
From: Warren Pace [mailto:[EMAIL PROTECTED]
Sent: Saturday, January 21, 2006 9:34 AM
To: Tomcat Users List
Subject: Re: (newb) Tomcat servlet mapping problem
>
> From: "Darren Hall" <[EMAIL PROTECTED]>
> Date: 2006/01/20 Fri PM 02:28:22 EST
> To:
>
I'm running Tomcat 5.0.30 and Apache 2.0 (both are running fine and without
errors).
I've connected them using mod_jk2, and I can see that apache is correctly
forwarding URLs specified in the workers2.properties file correctly.
I am now attempting to map a test servlet called "SimpleServlet" t
57 matches
Mail list logo