[OT] Sharing object between Bean and Servlet

2005-07-27 Thread Thomas Nybro Bolding
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

Vedr.: Pls give suggestions in tomcat tunning in production environment

2005-07-13 Thread Thomas Nybro Bolding
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

Tomcat 5.5.9 and JK: username returns null

2005-05-26 Thread Thomas Nybro Bolding
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

Vedr.: Tomcat 5.5.9 and JK: username returns null - solved

2005-05-26 Thread Thomas Nybro Bolding
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

Multiple tomcats - multiple JVM's?

2005-05-11 Thread Thomas Nybro Bolding
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

RE: RE: Multiple tomcats - multiple JVM's?

2005-05-11 Thread Thomas Nybro Bolding
-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

Vedr.: configurating tomcat 5.5

2005-04-29 Thread Thomas Nybro Bolding
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:

[OT] Session beans: testing for timeout and avoiding null pointer exceptions

2005-04-29 Thread Thomas Nybro Bolding
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

Vedr.: ISAPI_REDIRECT

2005-04-26 Thread Thomas Nybro Bolding
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

Vedr.: Re: Vedr.: ISAPI_REDIRECT

2005-04-26 Thread Thomas Nybro Bolding
- 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

Vedr.: Re: Admin tool

2005-02-24 Thread Thomas Nybro Bolding
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:

Vedr.: How to get NT login within Tomcat ?

2005-01-19 Thread Thomas Nybro Bolding
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

[OT] Tomcat hosting: your opinion about potentiel businessplan

2004-11-24 Thread Thomas Nybro Bolding
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

Vedr.: Problem when using TAGLIB in JSP

2004-09-06 Thread Thomas Nybro Bolding
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

Vedr.: Re: Vedr.: Problem when using TAGLIB in JSP

2004-09-06 Thread Thomas Nybro Bolding
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

Vedr.: Tomcat 5 JK2 IIS 5

2004-08-24 Thread Thomas Nybro Bolding
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

Vedr.: Where is the Real JAVAHOME?

2004-07-16 Thread Thomas Nybro Bolding
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

Vedr.: Re: tomcat 5.0.25 and windows 2003

2004-06-24 Thread Thomas Nybro Bolding
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

Vedr.: Re: Upgrading tomcat 5 on Windows

2004-06-09 Thread Thomas Nybro Bolding
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

Vedr.: Getting messages: INFO: Unknown message 0

2004-05-27 Thread Thomas Nybro Bolding
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:

Vedr.: Say it ain't so... (JRE needed to run Tomcat as a service on win2k)

2004-05-19 Thread Thomas Nybro Bolding
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

Vedr.: RE: How to limit time for Connector threads?

2004-05-06 Thread Thomas Nybro Bolding
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:

Strange Tomcat/JK2 load balancer issue???

2004-05-04 Thread Thomas Nybro Bolding
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

Vedr.: Connection pooling

2004-04-22 Thread Thomas Nybro Bolding
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

Vedr.: Re: JDNI, DBCP and global naming resources - problem solved!

2004-04-20 Thread Thomas Nybro Bolding
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

Vedr.: RE: JK connector -- isapi2 -- file upload - BUG HACK PROVED

2004-04-20 Thread Thomas Nybro Bolding
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

Vedr.: IIS and Tomcat security

2004-04-16 Thread Thomas Nybro Bolding
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

JDNI, DBCP and global naming resources - problem solved!

2004-04-16 Thread Thomas Nybro Bolding
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

TC 5.0.19 logs get cluttered in high performance scenarios

2004-04-14 Thread Thomas Nybro Bolding
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

Vedr.: Upgrading from 4.0.1 to 4.1.30

2004-03-29 Thread Thomas Nybro Bolding
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

Vedr.: Tomcat iis and ntlm

2004-03-22 Thread Thomas Nybro Bolding
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

Vedr.: JK contra JK2 with IIS-Authentification

2004-03-08 Thread Thomas Nybro Bolding
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

Vedr.: RE: VM settings in windows service

2004-02-05 Thread Thomas Nybro Bolding
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

Vedr.: RE: Vedr.: RE: VM settings in windows service

2004-02-05 Thread Thomas Nybro Bolding
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

Vedr.: Re: Memory Leaks

2004-01-14 Thread Thomas Nybro Bolding
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

Vedr.: IIS + Tomcat 5.0 + NT authentication AUTH_USER

2004-01-09 Thread Thomas Nybro Bolding
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

Vedr.: Tomcat 5.0 Windows service memory configuration

2003-12-30 Thread Thomas Nybro Bolding
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

Vedr.: service installer for TC5

2003-12-12 Thread Thomas Nybro Bolding
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

Vedr.: RE: Vedr.: service installer for TC5

2003-12-12 Thread Thomas Nybro Bolding
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

Vedr.: RE: Vedr.: RE: Vedr.: service installer for TC5

2003-12-12 Thread Thomas Nybro Bolding
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

JK2 and IIS 4.0 performance issue

2003-12-10 Thread Thomas Nybro Bolding
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

Tomcat 5: Public JRE nessecary?

2003-12-10 Thread Thomas Nybro Bolding
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

Vedr.: Re: Tomcat 5: Public JRE nessecary?

2003-12-10 Thread Thomas Nybro Bolding
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

Vedr.: Garbage Collection issues

2003-12-01 Thread Thomas Nybro Bolding
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

-Xloggc option in Windows

2003-11-27 Thread Thomas Nybro Bolding
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

Vedr.: Re: TOMCAT 3.3 crash daily

2003-11-26 Thread Thomas Nybro Bolding
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

Vedr.: RE: Server Tweaking

2003-11-08 Thread Thomas Nybro Bolding
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

[OT] reloading bean upon session time out

2003-10-30 Thread Thomas Nybro Bolding
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

Vedr.: Using drop down boxes in JSP

2003-09-17 Thread Thomas Nybro Bolding
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

Vedr.: RE: Using drop down boxes in JSP

2003-09-17 Thread Thomas Nybro Bolding
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]

Vedr.: RE: Connection Pooling in Tomcat 4.0

2003-09-16 Thread Thomas Nybro Bolding
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

Vedr.: RE: Vedr.: RE: Connection Pooling in Tomcat 4.0

2003-09-16 Thread Thomas Nybro Bolding
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

Vedr.: restart tomcat everytime I make change to servlet -- afterexperiment

2003-09-03 Thread Thomas Nybro Bolding
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?

Vedr.: Re: why i must restart the Tomcat ??

2003-08-29 Thread Thomas Nybro Bolding
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

IIS+jk2 = bad performance?

2003-08-14 Thread Thomas Nybro Bolding
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

Servere performance reduction upon upgrade

2003-08-04 Thread Thomas Nybro Bolding
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