another way could be passing "-Djava.library.path=/usr/local/apr/lib" to
tomcat using CATALINA_OPTS for example.
@all: any drawbacks doing it this way?
kind regards,
Markus
Ole Ersoy wrote:
> Ooooh - OK - That makes a lot of sense :-) Sweet - It looks like it's
> humming real well now, excep
On 8/16/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote:
>
> The ServletContext.getRealPath() call will fail if the webapp is in an
> unexpanded .war or running on a platform without a normal file system
> (e.g., a mobile phone). Better to use
> ServletContext.getResourceAsStream(), which will
Sorry for not being clear. Here is what I want.
I have an web application and its name is "app1". It has multiple
servlets registered in its web.xml already. For example, there
are servlets running at /app1/servlet1, /app1/servlet2...etc
I want to be able to register a servlet in the ROOT applic
> From: Thomas Kwan (eTechFocus) [mailto:[EMAIL PROTECTED]
> Subject: Register url in ROOT application
>
> I am using tomcat 5.5. I have a application with the context
> "/app1" already. But I want to register a servlet in the ROOT
> application to service request to the URI "/app1".
Not sure wh
I am using tomcat 5.5. I have a application with the context "/app1"
already.
But I want to register a servlet in the ROOT application to service
request to the URI "/app1".
Is it possible?
thanks
-
To start a new topic, e-mai
> From: Brian Munroe [mailto:[EMAIL PROTECTED]
> Subject: Re: Embedding XML documents as children of the
> context-param element
>
> ServletContext sc = getServletConfig().getServletContext();
> String myXMLFIlePath = sc.getRealPath("/WEB-INF/myXMLFIle.xml");
The ServletContext.getRealPath() ca
> From: Gregor Schneider [mailto:[EMAIL PROTECTED]
> Subject: Re: JDBC connection issue
>
> That's the big difference, before the classloader was delegating
That's simply not true - the webapp classloader delegates ONLY if the
classes cannot be found in the webapps's WEB-INF/lib or WEB-INF/class
> From: Hehl, Thomas [mailto:[EMAIL PROTECTED]
> Subject: RE: JDBC connection issue
>
> Before, we would run multiple webapps and each had their own
> context file that matched the webapps. Like for the one below,
> we had one called mo.xml.
That's still true in Tomcat 6. However, the preferre
thanks!
Mark Thomas wrote:
Matthew Kerle wrote:
You can send the patch to the dev list or open a bugzilla item for it.
The docs are all xml files in svn. Eg:
http://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk/webapps/docs/
Mark
---
Matthew Kerle wrote:
> Hi all
>
> In a recent thread, the issue of current documentation of setting up
> jndi datasources in tomcat 5.5/6.0 came up, with the observation that
> the existing doco was a bit terse on the subject.
>
> Are there any people on this list who know how to submit updates t
Ooooh - OK - That makes a lot of sense :-) Sweet - It looks like it's humming
real well now, except for a few SSL complaints, but I should be able to bang
those out.
Thanks a gazillion Filip, Rainer, Stephen, Lakshmi, and Hassan. You gracious
help enabled me to keep my last hair :-)
- Ole
Hi all
In a recent thread, the issue of current documentation of setting up
jndi datasources in tomcat 5.5/6.0 came up, with the observation that
the existing doco was a bit terse on the subject.
Are there any people on this list who know how to submit updates to the
tomcat documentation? I
Hi Chris
Christopher Schultz wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Matt,
I agree the documentation is terse and/or missing. If you implement any
of these strategies, consider submitting an update to the documentation
to help others in the future.
will do. I'm changing jobs soo
Joseph Shraibman wrote:
> Mark Thomas wrote:
>
>>request.setCharacterEncoding("UTF-8");
>
> Is this always safe? For responses I can (and do) check the
> accept-charset request paramater, but I can't figure out how to tell
> what the request encoding should be.
It should be reasonable u
Joseph Shraibman wrote:
> This is an old problem. See
> https://bugzilla.mozilla.org/show_bug.cgi?id=18643
> https://bugzilla.mozilla.org/show_bug.cgi?id=7533
>
> Firefox and MSIE use a magic _charset_ paramater, but I can't use it
> because if I call request.getParamater("_charset_") I can't set
I'm still using tomcat 5 :-) (and Weblogic 8.1), maybe someone interested
enough can apply the same test against newer products.
Johann
--
View this message in context:
http://www.nabble.com/Tomcat-benchmark-tf4278535.html#a12190970
Sent from the Tomcat - User mailing list archive at Nabble.com
ok, in your catalina.sh script you will need to do
export LD_LIBRARY_PATH=/usr/local/apr/lib:$LD_LIBRARY_PATH
the file it finds is the correct one.
the CLASSPATH variable only applies to java libraries, this is a native
C library.
Filip
Ole Ersoy wrote:
Hi Rainer and Filip,
Could tcnativ
/usr/local/apr/lib should be in your LD_LIBRARY_PATH.
--Lakshmi
-Original Message-
From: Ole Ersoy [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 16, 2007 2:47 PM
To: Tomcat Users List
Subject: Re: Installing APR on Fedora
Hi Rainer and Filip,
Could tcnative.so be called something e
Hi Rainer and Filip,
Could tcnative.so be called something else? I ran this:
find / -name tcnative*.so
and it came up blank. I tried
find / -name *tc*.so
And it finds:
/home/ole/Desktop/tomcat-6.0.14/bin/tomcat-native-1.1.10-src/jni/native/.libs/libtcnative-1.so
/usr/local/apr/lib/libtcn
On 8/16/07, Robert Segal <[EMAIL PROTECTED]> wrote:
> So as an alternative I know the second method will work but was curious
> if anyone has tried the first method.
>
I doubt the 1st method is valid, since you are basically inventing new
deployment descriptor elements, and I know for sure that E
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Robert,
Robert Segal wrote:
> I am curious about a certain possibility to embed XML as a child of a
> context-param value in a servlets web.xml file. Here is what I a
> looking for...
>
>
> ContextParam1
>
> A happy element
>
>
I don'
both links are from 2004...
Leon
On 8/16/07, bajistaman <[EMAIL PROTECTED]> wrote:
>
> Probably the best place to start is
> http://tomcat.apache.org/faq/performance.html and
> http://www.webperformanceinc.com/library/reports/ServletReport/index.html
> --
> View this message in context:
> http://
Hi everyone,
I am curious about a certain possibility to embed XML as a child of a
context-param value in a servlets web.xml file. Here is what I a
looking for...
ContextParam1
A happy element
This doesn't seem to work correctly however I have found using CDATA
tags this does work
if you want round robin, then set lbfactor to 1 for all your workers
Filip
Dean Lonsdale wrote:
Hi all
We are currently trying to setup load balancing in our environment and as
after testing the Load Balancing it would appear to be working. I have run
up two applications sessions, one of whi
Hi (Len),
got feedback from sun today and they confirmed our findings, i.e.
it's a problem known for a long time. All efforts fixing this failed due
to other incompatibilities, for example see sun-bug-ids 4273532 &
6243815 and their relatives.
The proposed software workaround is using File.toURI(
Probably the best place to start is
http://tomcat.apache.org/faq/performance.html
--
View this message in context:
http://www.nabble.com/Tomcat-benchmark-tf4278535.html#a12189509
Sent from the Tomcat - User mailing list archive at Nabble.com.
---
This is an old problem. See
https://bugzilla.mozilla.org/show_bug.cgi?id=18643
https://bugzilla.mozilla.org/show_bug.cgi?id=7533
Firefox and MSIE use a magic _charset_ paramater, but I can't use it
because if I call request.getParamater("_charset_") I can't set the
encoding after that!
Anyw
Hi all
We are currently trying to setup load balancing in our environment and as
after testing the Load Balancing it would appear to be working. I have run
up two applications sessions, one of which went to the 'A' tomcat worker
and the other to the 'C' tomcat worker. The status page suggests t
Hi Rainer,
Thanks for your suggestion! Using the specs file as suggested below did
not work.
Also, gcc -dumpspecs > /path/myspecs and then changing the *libgcc rule
did not
work either.
What finally worked was
export CC="gcc -static-libgcc"
But then I had to recompile OpenSSL, APR and then
This is more of a Servlet API question, but pertains to Tomcat
nonetheless. I am using Tomcat 5.5.23 with JDK 1.6.
I am having a problem with Generics and request.getParameterNames().
I keep getting a unchecked cast warning (just a warning, but still).
I was going to just use the @SuppressWarnin
Rainer Jung wrote:
Where do you put tcnative.so?
more specifically, is LD_LIBRARY_PATH pointing to the directory of the
.so file?
Filip
And: if you do ldd PATH_TO_TCNATIVE/tcnative.so: are there any
dependencies shown, which do not lie in /lib or /usr/lib, or which ldd
can not resolve? If
Peter Warren wrote:
A comet read event doesn't update the last accessed time of an
HttpSession -- which means comet read events will never prevent an
http session (not the comet session) from timing out and the
connection getting closed.
Is that by design? If so, can anyone offer me suggestions
A comet read event doesn't update the last accessed time of an
HttpSession -- which means comet read events will never prevent an
http session (not the comet session) from timing out and the
connection getting closed.
Is that by design? If so, can anyone offer me suggestions on how to
handle long
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Matt,
Matthew Kerle wrote:
> the doco is a bit... terse on the subject of setting up a JNDI
> datasource outside the war file, and it's not as straightforward or easy
> to find as compared to the method for placing the context.xml inside the
> deploym
I just checked the docs and the order in which classloaders are searched
hasn't changed from 5.5 -> 6.0. Still have to be careful a specific
class is only found once in the classloader tree from the perspective of
the webapp.
--David
Gregor Schneider wrote:
I see, so things quite changed f
Hi!
How can I solve the problem to point JNDI-Resources to different values
for the same webapplication that is deployed in serveral hosts on a
server without having to rewrite the context.xml in the webapp for each
deployment?
with using jndi-resource points to
resource1 defined in Glob
Where do you put tcnative.so?
And: if you do ldd PATH_TO_TCNATIVE/tcnative.so: are there any
dependencies shown, which do not lie in /lib or /usr/lib, or which ldd
can not resolve? If yes: which libraries, and which path resp. which
libraries without path? Maybe just post the result of the ldd
I see, so things quite changed from 5 to 6, however:
When it comes to a Tomcat 5.x, it still goes that you put your jar
(i.e. a jdbc-driver)
EITHER
in $CATALINA_HOME/lib (when used from Tomcat AND other webapps)
OR
in $CATALINA_HOME/webapps/yourwebapp/WEB-INF/lib (when used by a
specific web-a
OK, I was trying to go away from this approach because Tomcat 6 didn't ship
with a conf/Catalina/localhost directory, but apparently, this is still the
way to do things. So I created this directory, put the xml files that synced
with my webapp in there and everything's back to working peachy keen.
Right ... tomcat 6's version of common/lib/ is simply lib/
Location of the driver jars is not entirely as simple as either in your
webapp or on the container's lib directory. Like the Highlander (good
movie if you haven't seen it), there can be only one. If another webapp
is using it and it'
Mark Thomas wrote:
request.setCharacterEncoding("UTF-8");
Is this always safe? For responses I can (and do) check the
accept-charset request paramater, but I can't figure out how to tell
what the request encoding should be.
--
much better, thank you! I think I'm gonna have to put aside some time
to brush up on tomcat 5.5/6 jndi datasourcing as I'm obviously out of date.
cheers!
David Smith wrote:
I see. Some of the tomcat docs are probably out of date, depending on
someone pointing out the flaw or contributing upd
I see. Some of the tomcat docs are probably out of date, depending on
someone pointing out the flaw or contributing updates.
Tomcat uses reflection to configure the pool using bean setter methods.
That makes the full set of attributes dependant on the implementation
used -- in this case DBCP
Hi Chris
It seems like you guys have a pretty good setup going, better than the
one at my (current) company anyway. I didn't realise that your
environment doesn't have dependencies on statically linked war files
like ours does. The developer makes a release and creates the three wars
for depl
I'm not sure about Tomcat 6, but in Tomcat 5.x there's no such thing
as $CATALIN_HOME/lib. YOur JDBC-drivers should either be bundled with
your web-app (if that's the only one using them) or, if used both from
Tomcat and your webapp(s) to $CATALINA_HOME/common/lib
Coming to the context:
- Create
no I didn't...:-(
I was going off the globalresources config reference page, wher it lists
the attributes of a element as being:
**snip**
The valid attriutes for a element are as follows:
Attribute Description
auth
Specify whether the web Application code signs on to the corresponding
Hmm. Sounds like, yeah, this is what I need to do too.
-Original Message-
From: Matthew Kerle [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 16, 2007 1:37 PM
To: Tomcat Users List
Subject: Re: JDBC driver of class '' for connect URL 'null' in Tomcat 5.5.12
Hi Chris
I apologise for com
Hmmm. I'm thinking I'm beginning to get a whiff of the issue.
Before, we would run multiple webapps and each had their own context file
that matched the webapps. Like for the one below, we had one called mo.xml.
We'd put all these in the CATALINA_HOME/conf/Catalina/localhost and it all
worked grea
Hi Chris
I apologise for coming across a bit harsh there, don't mean to offend!
I'll take it a bit easier...;-p
Either of the methods you recommended looks good, the only trouble is
that the doco is a bit... terse on the subject of setting up a JNDI
datasource outside the war file, and it's
I just upgraded from 5.5 to 6.0 without any problems. My webapp was
deployed as a war file
with the config.xml in the META-INF (the exact config for 5.5). The
deployment does the
correct thing with the config.xml.
Make sure your jdbc library is in the CATALINA_HOME/lib dir.
I also was playing
As far as I'm aware, there is no difference between a
element in context.xml and a element in a
... block. Well... other
than the need to use a to make it available to an
individual webapp. Did you try it and get a failure?
--David
Matthew Kerle wrote:
now that sounds good! the only t
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Len,
Len Popp wrote:
> I don't get it. Are you assuming that the programmer would put the
> JDBC server info in a build.properties file that is used at compile
> time?
Well, you have to get creative. For instance, all our devs (and
deployment folks)
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Matt,
I disagree with many of your assertions.
Matthew Kerle wrote:
> it's doable, some of my teammates use that method, but it's a pain in
> the butt because you basically have to create 3 WARs per release (one
> for each target). considering a stru
On 8/16/07, Christopher Schultz <[EMAIL PROTECTED]> wrote:
> They're all crap solutions when nobody wants to do their job.
heh -- indeed.
And how about we add the "it depends" corollary -- they're all
crap solutions for /some/ specific environment(s) :-)
--
Hassan Schroeder --
Hi Rainer,
Thanks again for that great fix. When I fired up Tomcat, I still get this
message:
Aug 16, 2007 9:53:05 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The Apache Tomcat Native library which allows optimal performance in
production environments was not found on the java.
Compare performance...
On 8/16/07, Matthew Kerle <[EMAIL PROTECTED]> wrote:
>
> I assume you've already Googled what you're looking for and not found
> anything? What are you after exactly, performance or feature comparison?
> please be more specific...
>
> I assume you're after more than this:
>
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Len,
Len Popp wrote:
> How do you use a build.properties file to define a JNDI resource? Or
> do you create JDBC connections a different way?
Search-and-replace, baby. That's how I have my configuration working.
- -chris
-BEGIN PGP SIGNATURE
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Matt,
Matthew Kerle wrote:
> Most of the sysadmin's I've worked with really don't like the idea of
> having to rip open a war and update some weird config file just to do a
> deploy. the alternative is I know all the passwords and build a war for
> ea
On 8/16/07, Len Popp <[EMAIL PROTECTED]> wrote:
> I don't get it. Are you assuming that the programmer would put the
> JDBC server info in a build.properties file that is used at compile
> time? That doesn't work unless the programmer knows all the servers
> the app will eventually be deployed on -
no worries. I hadn't seen how to remove that dependency before, which is
why I didn't mention it in my reply. the APR just gives tomcat
comparable file reading performance as httpd, but unless you're running
slashdot or hea.net on your tomcat then not having it isn't a big issue
and your distr
I am testing our webapp under tomcat 6 after being under tomcat 5.5.
I have moved the following file from 5.5. into 6. I have placed it in the
conf directory:
This works under 5.5, but under 6.0, I get "Cannot create JDBC driver of
class '' for connect URL 'null'
And
That was the next thing I looked into after I solved this bug. I
"fixed" it by commenting out the line in
the server.xml file.
My take on the native APR stuff (which is likely completely wrong
since it consists of what I learned in about a 2 minute skim of some
documentation) was that it was rea
I don't get it. Are you assuming that the programmer would put the
JDBC server info in a build.properties file that is used at compile
time? That doesn't work unless the programmer knows all the servers
the app will eventually be deployed on - which isn't always the case
for me.
--
Len
On 8/16/07
it's doable, some of my teammates use that method, but it's a pain in
the butt because you basically have to create 3 WARs per release (one
for each target). considering a struts/hibernate/spring/xFire
application is about 30mb in 3rd party jars, that's a lot of space. ok
HD space is cheap, but
On 8/16/07, Len Popp <[EMAIL PROTECTED]> wrote:
> How do you use a build.properties file to define a JNDI resource? Or
> do you create JDBC connections a different way?
Not sure I understand the question -- we're talking about putting
a Resource element in META-INF/context.xml, right? So the detai
On 8/6/07, Dimitris Mouchritsas <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
>
>
Maybe just something like:
? HTH,
--
Hassan Schroeder [EMAIL PROTECTED]
-
To start a new topic, e-ma
now that sounds good! the only thing is I don't see how that maps to a
DataSource declaration, the element in
doesn't seem to allow the full range of
properties that you need to define a database connection, eg -
username/password/driverClassName/url etc...
Where would you define these?
Da
How do you use a build.properties file to define a JNDI resource? Or
do you create JDBC connections a different way?
--
Len
On 8/16/07, Hassan Schroeder <[EMAIL PROTECTED]> wrote:
> On 8/16/07, Len Popp <[EMAIL PROTECTED]> wrote:
>
> > You're right that putting server-specific info in context.xml
Hi everyone.
I'm testing this code:
${ table_data.package_price +
( road_assistance_2year == '-' ? 0.0 : road_assistance_2year ) +
( comp_offer_data.hasInsurance ? table_data.insuranceValue : 0.0 ) }
and in Tomcat 6.0.13 it works fine.
However in Tomcat 5.0.19 the page stops proccessing a
Hi Chris
my experience has been: one tomcat instance per dev/test/prod, & the
webapp on each instance always points to the same database (dev
tomcat->dev db, test tomcat -> test db etc), so the database connection
on a /single/ instance never changes. However when promoting code from
dev to t
On 8/16/07, Len Popp <[EMAIL PROTECTED]> wrote:
> You're right that putting server-specific info in context.xml in the
> .war is no good when the app could be installed on different servers.
Isn't that what build.properties files are for? :-)
--
Hassan Schroeder [EMAIL
The reason is that server.xml is for the whole server, so when you
change something you have to restart the whole server rather than just
the one application.
You're right that putting server-specific info in context.xml in the
.war is no good when the app could be installed on different servers.
In my experience, a resource is usually only relevant to one webapp.
There's no need to put it in server.xml as a GlobalNamingResource unless
you want that resource available in all your webapps. Moving the
resource to the block of a context.xml file also makes it so
resources can come and g
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Matt,
Matthew Kerle wrote:
> I never
> understood why, and personally doing things that way is a serious pain
> for me since it means I need to build a separate deployment descriptor
> for dev, test & prod, which means I need to know the prod database
looks like your xml doc has an un-closed tag or similar, hate to suggest
this but maybe can you recheck your change to make sure this isn't the case?
I'd suggest going with David's suggestion, and put your
definition in a separate file called 'context.xml'. Explode your WAR,
put this in /META
Hi David
David Smith wrote:
My only editorial comment on the page is to NOT place your
or definition in server.xml as
recommended on the page. Place it in context.xml or myapp.xml as I
describe above.
Just quickly, I was wondering why you recommend this? I know the tomcat
docs have chang
Hi Ian.
ojdbc14.jar needs to ONLY be in common/lib. It won't work in
myapp/WEB-INF/lib and won't work if you have the jar in both places.
Additionally you should take a look at the JDBC howto docs regarding
what your config in your myapp/META-INF/context.xml or
conf/Catalina/localhost/myap
why don't you use this jar? ojdbc14_g.jar
That's what I ended up upgrading to.
Let me know if you need it, Ian, and I'll send it to you offline.
Barry
And, you should put it in the common/lib folder.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday,
Thanks for your advice so far
I've upgraded to the latest Oracle ojdbc14.jar and placed it the
myapp\WEB-INF\lib folder, I also tried it the
Tomcat\common\lib for for good measure but still got the same results. I'll
continue to use ojdbc14.jar from now
though.
I've change the ResourceParams
Hi!
> Mario, you are a hero. do women come and worship you in the street?
Haha! Oh boy ... you don't want to know ...
Glad it helped you! :-)
Ciao,
Mario
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e
There were in fact bugs with requests > 2GB in both Tomcat and mod_jk
which were fixed recently, as Rainer pointed out. (And some of the
code was using -1 if the content-length was too large.) Upgrading to
6.0.14 or the next 5.5 release should fix the problem.
There's no size limit on commons-file
Hi,
When I start tomcat (5.5.16) as a non-root user (tomcat) I am unable to
access anything I have set up in my context container and I see nothing
in the logs to help (the access log says 404 for all the requests). For
example, I have the standard setup:
/usr/local/tomcat/latest/conf/Catalina/lo
Mario, you are a hero. do women come and worship you in the street? they
should! Using reflection to break into an object of a foreign class is
just...genius! this is the sort of thing that Ruby programmers do all
the time, but is very hard to do in Java...
my final code (in the context of a S
Hi Jung,
That did the trick!
I downloaded and installed:
http://www.axint.net/apache/apr/binaries/rpm/i386/apr-devel-1.2.8-1.i386.rpm
Then I ran this:
./configure --with-apr=/usr/bin/apr-1-config && make && make install
That did the trick :-)
Thanks Jung, Hassan, and Stephen,
- Ole
Rainer
It seems very unlikely to me that the problem is in the Tomcat code. It
is very widely deployed and any deadlocks would be found relatively
quickly unless you use a very obscure setup.
Did you do any standard deadlock debugging? E.g., thread dumps and
deadlock analysis when the freeze occurs,
Tomcat 5.5 has an all-to-all replication mechanism, hence all nodes
should be identical. you would only need to see the sessions on one node
to get a picture of what is looks like elsewhere.
there is a flag called "notifyListenersOnReplication" this is only for
attribute replication for nodes
http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html
this is why I can't reference any classes loaded from server/lib in my
webapp, the server/lib classes are loaded by the web application
classloader's "uncle", so to speak, the sibling of it's parent. so it
makes sense that no web
I posted the same question week back. People advised me to handle the
resource safely, like freeing up the database connections after use,
releasing file handles etc. I am very sure that I am doing that perfectly,
but still my tomcat freezes over long run. I've seen this case in many
instances. Is
Hi!
> A more flexible option is to use securityfilter
> (http://securityfilter.sourceforge.net) to handle everything.
>
If you are already using spring have a look at ACEGI.
It is not really easy to install, but allows you to e.g. have different
login methods within the same webapp.
Regarding t
> From: Matthew Kerle [mailto:[EMAIL PROTECTED]
> Subject: Re: catalina error log
>
> you're missing the Apache Portable Runtime library from your PATH
> variable. this is not a serious problem, but if you don't
> want to get this error then download the version of the library
If you don't ne
just downloaded security filter and had a look, it looks very cool. If I
had more robust requirements for my authentication (and more time!) I
would probably use it.
At the moment though I've got a workable work-around in using the
toString() method, so I'll just use that instead.
thanks Chr
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Matthew,
Matthew Kerle wrote:
> no, see my previous reply, tomcat fails to bootstrap if catalina.jar is
> not in server/lib...
That's too bad.
Why not just use the built-in authentication and authorization mechanism
instead of trying to use Tomcat's
I agree, the Principal interface is verily hobbled and almost useless
(Go Sun!). The catalina implementations are much more user-friendly, but
unfortunately difficult to access.
I can't really justify making the tomcat install non-standard (also
probably not possible as it's owned by the clien
no, see my previous reply, tomcat fails to bootstrap if catalina.jar is
not in server/lib...
Christopher Schultz wrote:
Peter,
Shouldn't it be acceptable to simply move catalina.jar from server/lib
to common/lib?
Sure, you'll still have a non-standard install, but it's easier to
script a setu
> From: Christopher Schultz [mailto:[EMAIL PROTECTED]
> Shouldn't it be acceptable to simply move catalina.jar from server/lib
> to common/lib?
>
> Sure, you'll still have a non-standard install, but it's easier to
> script a setup like that than pulling specific classes out of
> the distro (whi
Hi Chris
I naively tried relocating the catalina.jar to /common/lib, and got the
below error. Peter has a good comment to this problem in his reply, so
I'll continue the thread in response to his mail.
many thanks!
cmd /c C:\servers\apache-tomcat-5.5.23\bin\catalina.bat run
Using CATALINA_BA
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Peter,
Peter Crowther wrote:
> We ended up with the horrible, horrible hack of
> pulling the class out of catalina.jar, putting it in its own jar, and
> deploying that in common/lib.
Shouldn't it be acceptable to simply move catalina.jar from server/
> From: Matthew Kerle [mailto:[EMAIL PROTECTED]
> the MemoryUser class is in catalina.jar, which is in the server/lib
> folder. would I be right in saying that web application code
> is barred
> from loading any classes from the server/lib directory?
(light bulb comes on)
Ah yes, I remember t
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Matt,
Matthew Kerle wrote:
> this is weird, check this out:
>
> //code (tomcat 5.5.23)
> java.security.Principal p = request.getUserPrincipal();
> System.out.println(p.getClass().getName().equals(MemoryUser.class.getName()));
> // prints "true"
> Sys
you're exactly right again. I just checked my project settings, I had to
add catalina.jar to the project libraries to get the class to compile,
but I'd forgotten to prevent it from being deployed, so there was a copy
of catalina.jar in my /WEB-INF/lib, doh!
So I configured it to not be deploye
1 - 100 of 128 matches
Mail list logo