I have a non-static object initialised in a bean which I subsequently need
to access in a servlet. But exactly how do I do that? The bean itself is
initialised in another JSP so I cannot use
% Object myObj = myBean.getObject(); %
and then store the object in the request/session or application
IMHO most tuning potential is in the code of the developer rather than in
the servlet container.
Use DBCP and avoid looking up contexts and datasources all the time but
simply return these from a utility database class. If possible cache
data rather than update this upon each request (for
Having just upgraded to Tomcat 5.5.9 I choose to use JK rather than JK2 as
JK2 is being reported deprecated. With JK2 I used IIS integrated
authorization and simply entered tomcat.requestAuthentication=false in my
jk2.properties file. How do I accomplish the same with JK???
Best regards Thomas
As pointed out by Mr. Allistair Crossley in his blog
http://www.adcworks.com/blog/ one has to modify server.xml.
For anyone updating their Tomcat to 5.5x I highly recommend Allistairs
blog!
/Thomas
Thomas Nybro Bolding/THBO/Intranet/[EMAIL PROTECTED]
26-05-2005 17:42
Besvar venligst til
When installing multiple instances of Tomcat 5.5x on the same server do I
then need to install multiple JRE's as well?
My guess is that its not as I cant see how to install multiple instances
of an identical JRE, unless its not install but merely copy-and-paste.
But with one JRE would one
-user@jakarta.apache.org
cc:
Vedr.: RE: Multiple tomcats - multiple JVM's?
From: Thomas Nybro Bolding [mailto:[EMAIL PROTECTED]
When installing multiple instances of Tomcat 5.5x on the same
server do I then need to install multiple JRE's as well?
No.
But with one JRE
Same place as the rest of the packages:
http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi
Choose the Compat file...
/Thomas
Charlie Todd [EMAIL PROTECTED]
29-04-2005 11:19
Besvar venligst til Tomcat Users List
Til:tomcat-user@jakarta.apache.org
cc:
I have a some java beans in the session scope which are instantiated by
one page by get their properties updated by several other pages.
When the session expires Tomcat (correctly) throws an error when it tries
to update the no longer existing bean. My question is thus: how do I
detect its
From
http://www.reynir.net/java/greinar/nr/52
If you are using IIS V6, which ships with Windows Server 2003, you must
allow the Web Service Extension to operate. Earlier versions of IIS did
not require this step. Using the IIS Internet Services Manager, click on
the Web Services Extensions
- Original Message -
From: Thomas Nybro Bolding [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, April 26, 2005 8:55 AM
Subject: Vedr.: ISAPI_REDIRECT
From
http://www.reynir.net/java/greinar/nr/52
If you are using IIS V6, which ships with Windows
Due to security reasons.
The admin servlet is pretty powerfull and users should therefore
consciously choose to install it - which is simply a matter of unzupping
the module.
/Thomas
Geertjan Wielenga [EMAIL PROTECTED]
24-02-2005 11:56
Besvar venligst til Tomcat Users List
Til:
simply use
String userId = request.getRemoteUser();
in your JSP. This returns domain as well as username
You might also put
request.tomcatAuthentication=false
in your jk(2).properties file
Regards
Thomas Nybro Bolding
Senior Analytiker
Danske Bank
Danske Markets Forretningsstyring
I know this is (way) off topic and excuse if I hereby breach any code of
conduct for this list - if so please do NOT consider this a flamebait but
please just tell me or simply ignore the posting.
In the past I have lbeen looking for Tomcat (MySQL, PHP, Python,...)
hosting possibilities on the
Assuming you are using 1.4 or higher your classes have to be in packages -
see for instance this thread
http://forum.java.sun.com/thread.jsp?thread=536889forum=33message=2596508
/Thomas
[EMAIL PROTECTED]
06-09-2004 15:24
Besvar venligst til Tomcat Users List
Til:[EMAIL
Without packages you will soon have a myriad of classes and have no clue
as to which depends on which, nor how they relate. Further visibility and
accessibility of methods etc. take advantage of packages. Im sure there
are many more advantages but this is just my 5 cents...
/Thomas
[EMAIL
Hi William,
I am certain we are several who is running latest TC on IIS 5 with JK2. If
you could give us our config files chances are we quite fast could help
you. Also try google as there are alternative setup guides.
Meanwhile you can glance at my jk2 and workers2 files - these are pretty
j2sdk is the development kit and contains a _private_ jre whereas the
_public_ jre is installed in the default folder. JAVAHOME should point to
j2sdk.
/Thomas
Aris Javier [EMAIL PROTECTED]
16-07-2004 09:58
Besvar venligst til Tomcat Users List
Til:Tomcat Users List [EMAIL
If you going to integrate Tomcat with IIS 6.0 remember to put IIS into IIS
5.0 isolation mode.
There are several documents describing the IIS-Tomcat integration process
just Google for it! This one might be helpfull:
http://virtualict.net/support/kb/iis6-Tomcat5-JK2.html
Best regards Thomas
Upon uninstalling Tomcat you are prompted whether you want remove any work
done. Say no to this and you should be able to install in the same
directory keeping your webapps. Not sure about the server.xml,
jk2.properties and workers2.properties though (cant remember).
Anyway I would like to add
Hi Emerson,
these are non-critical but will stop to occur upon upgrading to 5.0.25.
/Thomas
Emerson Cargnin [EMAIL PROTECTED]
27-05-2004 14:14
Besvar venligst til Tomcat Users List
Til:Tomcat Users List [EMAIL PROTECTED]
cc:
Vedr.: Getting messages: INFO:
Yes! I posted this the 10-12-2003:
- - - - -
Having played around with Tomcat 5 recently I discovered it apparently
used the jvm.dll installed as part of the public JRE.
I uninstalled the public JRE (leaving the SDK including its JRE intact)
and learned Tomcat would neither start nor was
Hi Lipi,
are you by any chance integrating Tomcat with IIS using JK2? And does the death lock
occur whether you use port 80 or 8080?
/Thomas
rlipi [EMAIL PROTECTED]
06-05-2004 09:25
Besvar venligst til Tomcat Users List
Til:'Tomcat Users List' [EMAIL PROTECTED]
cc:
Yesterday I put a new a context consisting of a few JSP, Beans and
servlets into production on my TC5.019 being integrated with IIS using
JK2.04 all of it running on a Windows 2000 machine.
The result was that Tomcat refused display JSP located in another context
letting the browser hang
Hi Masood,
what kind of error(s) do you get?
I have myself had some trouble setting up a DB pool for SQL Server 2000 at work
following the guides but did not experience any problems setting up a pool for MySQL
back home.
/Thomas
Masood Reyhanei Hamedani [EMAIL PROTECTED]
22-04-2004 14:01
Driver classes in a jar in common/lib ?
Thomas Nybro Bolding wrote:
Dunno if this might be of interest to others but I guess some might have
or get the same problems as I have been through for the past couple of
hours and therefore post my findings...
Setting up a database connection pool
Dunno where the log file goes by default but in my workers2.properties
file I have:
[logger.file:0]
file=D:\DAT\logfiles\connections\jk2.log
Where this puts the jk2 log file you have to find out for yourself ;)
/Thomas
Allistair Crossley [EMAIL PROTECTED]
20-04-2004 13:10
Besvar venligst
Yes it does.
request.getRemoteUser() in your JSP gives you the IIS authenticated user. Make sure
your IIS is set to Integrated Windows authentication and insert
request.tomcatAuthentication=false in your jk2.properties file.
/Thomas
Insyde [EMAIL PROTECTED]
15-04-2004 18:06
Besvar
Dunno if this might be of interest to others but I guess some might have
or get the same problems as I have been through for the past couple of
hours and therefore post my findings...
Setting up a database connection pool in Tomcat is pretty straightforward:
either edit the server.xml or use
I know this perhaps is a connector issue but nevertheless I give it a
shoot hoping some of the Tomcat savvy might be able to help me out.
I have recently upgraded from TC 4.1.27 to 5.0.19. In both cases it is
being integrated with IIS running on Win2K and Suns JDK1.4.2_03 using JK2.
The
Hi Dennis,
this is just a wild guess but are your classes placed in packages? As I
recall at some point around 4.0x this became a prerequisite.
/Thomas
FONT SIZE=1 FACE=Arial___
Vi goer opmaerksom paa, at denne e-mail kan indeholde fortrolig information. Hvis du
ved en
Hi Warren,
assuming you have setup the ISAPI redirector correct and has IIS serving
JSP/Servlets through port 80 make sure you have added
request.tomcatAuthentication=false to your jk2.properties file.
/Thomas
Warren Black [EMAIL PROTECTED]
21-03-2004 21:53
Besvar venligst til Tomcat Users
Hi Björn,
I am using IIS 5.0 and JK2, dunno which version though. As in your setup
users are authenticated by IIS and the credentials are passed to Tomcat.
Since upgrading from JK I have experienced no problems so I assume its NOT a JK2 issue.
Cant tell whats wrong but be sure to add
You do NOT have to reinstall Tomcat.
It appears to be case sensitive so use -Xmx256m
/Thomas
STOCKHOLM, Raymond [EMAIL PROTECTED]
04-02-2004 18:12
Besvar venligst til Tomcat Users List
Til:Tomcat Users List [EMAIL PROTECTED]
cc:
Vedr.: RE: VM settings in
not reinstall the windows service ?
Environment variables are not used by the service.
-Message d'origine-
De : Thomas Nybro Bolding [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 5 février 2004 09:07
À : Tomcat Users List
Objet : Vedr.: RE: VM settings in windows service
You do NOT have
Hey Chris,
sorry for interrupting but if you into optimizing your JVM setting as well
as explorings its options I would recommend:
-
http://developers.sun.com/techtopics/mobility/midp/articles/garbagecollection2/
- http://java.sun.com/docs/hotspot/gc1.4.2/
Perhaps some of the more savvy
Simply put
request.tomcatAuthentication=false
somewhere in your jk2.properties file.
/Thomas
Jason Wilson [EMAIL PROTECTED]
08-01-04 18:54
Besvar venligst til Tomcat Users List
Til:[EMAIL PROTECTED]
cc:
Vedr.: IIS + Tomcat 5.0 + NT authentication AUTH_USER
The JVM options for Tomcat 5 go in HKEY_LOCAL_MACHINE/SOFTWARE/Apache
Software Foundation/Tomcat Service Manager/Tomcat5/Parameters but they
look somewhat tricky to enter yourself.
Instead you may specify them by running Configure Tomcat, select the
Java VM tab and enter appropriate JVM
Having been through the installation process for 5.0.16 a few times by now
I can assure it is pretty self explanatory.
Ensure you have j2sdk installed and a JAVA_HOME variable set.
Im still strugling trying to get Tomcat not to use the public JRE though
but this may be NT specific???
I have had
available!
Is this the same problem that you have?
/Jacob
-Original Message-
From: Thomas Nybro Bolding [mailto:[EMAIL PROTECTED]
Sent: 12. december 2003 11:25
To: Tomcat Users List
Subject: Vedr.: service installer for TC5
Having been through the installation process for 5.0.16 a few
or change the one installed by tomcat! Try to put the batch program I made
into a .bat file at execute it in your tomcat directory and copy the jre
to
the tomcat directory too! It is close but not there yet! :-)
/Jacob
-Original Message-
From: Thomas Nybro Bolding [mailto:[EMAIL PROTECTED
Greetings list,
I have just upgraded my Tomcat 4.1.27 using JK to Tomcat 5.0.16 using JK2.
In both cases I connect to IIS 4.0 running on Win NT.
Performance is now extremely poor when the JSP pages are being served
through JK2 whereas everything works smoothly when requesting port 8080. I
Having played around with Tomcat 5 recently I discovered it apparently
used the jvm.dll installed as part of the public JRE.
I uninstalled the public JRE (leaving the SDK including its JRE intact)
and learned Tomcat would neither start nor was configurable. I tried
various setting in the
nessecary?
Is your JAVA_HOME evironment variable pointing to the j2sdk?
On Wednesday 10 December 2003 10:15 am, Thomas Nybro Bolding wrote:
Having played around with Tomcat 5 recently I discovered it apparently
used the jvm.dll installed as part of the public JRE.
I uninstalled the public JRE
Without knowing your system setup especially JDK version, RAM and # of
processors my guess is that it could be due to an undersized heap and a
high call-setup rate.
If the pressure on the old collector is heavy enough, it can force the old
collector to revert to the traditional mark-sweep
I am using Tomcat 4.1.27, JDK1.4.2 on Windows NT 4.0 and have added a new
JVM Option Number contaning the string value -Xloggc:gc.log to my
Windows registry in the Apache-Tomcat section.
Still I see no garbage collection log what so ever? Where is this log
supposed to go and is the syntax
Hi Sarel,
regarding the jvm settings you might want to look at
http://web.bvu.edu/staff/david/index.jsp?section=softwaresubsection=tcservcfgpage=overview
from http://jakarta.apache.org/tomcat/faq/windows.html. I havent tried the
utility myself but has modified the parameters in the Windows
I have this experience as well on a test rig running IIS and Tomcat 4.1.27
whereas the problem does not occur on our production servers running IIS
and Tomcat 4.0.6.
No solutions found though...
/Thomas
Hart, Justin [EMAIL PROTECTED]
07-11-03 20:24
Besvar venligst til Tomcat Users List
Hi folks,
know this is somewhat off topic but Im still quite confident some (if not
most) of you is capable of answering my question.
Upon my users first request to my JSP-pages I retrive their user name and
loads their authorization level etc. from a database. This information is
stored in a
Use javascipt. There are several examples of this on the net.
You cannot use Tomcat/JSP as the users selection is not known by Tomcat
before the request is submitted.
/Thomas
Anson Zeall [EMAIL PROTECTED]
17-09-03 12:30
Besvar venligst til Tomcat Users List
Til:Tomcat Users
I think this could be done, but without knowing your application I think
this design has its drawbacks. Say a user wants to select foo placed as
no. 42 in your drop down box. Would you then call the servlet 41 times
before making the correct request?
/Thomas
Anson Zeall [EMAIL PROTECTED]
Hi santosh.
I have been using DBConnectionBroker from http://www.javaexchange.com/
with Tomcat 4.03 and am currently using it with Tomcat 4.1.27.
I have no clue what so ever about its performance etc. vs. DBCP but found
it very easy to configure and use as I had no experience with connection
second answer is YES - it is written and distributed under Open
Source License.
/Thomas
[EMAIL PROTECTED]
16-09-03 14:42
Til:[EMAIL PROTECTED]
cc: Thomas Nybro Bolding/THBO/Intranet/[EMAIL PROTECTED]
Vedr.: RE: Vedr.: RE: Connection Pooling in Tomcat 4.0
There was a thread the other day about the same issue I think. Two persons
answered:
Tim Funk replied:
YOu mean this?
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22096
-Tim
And John Wigfield replied:
Have you applied the hotfix?
I remember to have read in the documentation this option slows Tomcat down
and therefore should be used on a test server only. Does anyone have
experience with reloadable contexts in a production environment
performancewise?
Thomas
Fabio Bazzani [EMAIL PROTECTED]
29-08-03 14:10
Besvar
Having just upgraded to Tomcat 4.1.27 I also upgraded from jk to the jk2
redirector as I (has to!) use IIS to validate users etc.
Thing is that with the jk2 connector (isapi_redirector2.dll) my JSP pages
are CONSIDERABLY slower, i.e. way to slow to be acceptable.
Does anyone has any experiences
Hi,
this being my first post I regret if any formalities are offended.
I have just upgraded from Tomcat 4.0.3 and jdk1.4.0 to Tomcat 4.1.27
(tried 5.0.5 as well) and jdk1.4.2 on a Windows NT machine. Previously I
used the isapi_redirect.dll to redirect request from IIS but has now
installed
56 matches
Mail list logo