Re: JSTL forEach acting funny

2004-12-02 Thread David Smith
As I understand it, you need to make sure Tomcat knows you want the 2.4 spec as opposed to the 2.3 spec to use JSTL semantics like ${}. What does your web.xml file show at the top? Does it use the 2.4 schema? --David sbeam wrote: On Thursday 02 December 2004 07:39 am, Allistair Crossley wrote

Re: Tomcat 5.5.4 memory JVM settings

2004-12-02 Thread David Boyer
Since you mention the registry, I take it you're running Tomcat as a Windows Serivce? I believe both Tomcat 4.x and 5.x using procrun , so the method for setting -Xmx would still be the same. [EMAIL PROTECTED] 12/2/2004 8:11:52 AM Hi all, Does anybody know how to change the memory

Re: Re[2]: getting desperate here :)

2004-12-02 Thread David Boyer
From the servlet API: Invalidates this session then unbinds any objects bound to it. If a browser's TomcatA session is invalidated and they return to TomcatA, TomcatA will issue a new session ID to the browser. The session ID represented in the cookie would no longer correspond to a know

Re: Errors in Log file

2004-12-02 Thread David Stevenson
the sendRedirect is used. http://java.sun.com/products/jsp/tags/11/syntaxref11.fm7.html http://www.esus.com/javaindex/j2ee/javajsp/jspbufferautoflush.html David Stevenson On Thu, 2004-12-02 at 05:15, Pradeep Chauhan wrote: 2. java.lang.IllegalStateException at org.apache.coyote.tomcat4

Re: Badly need any hint on Illegal State exception

2004-12-02 Thread David Stevenson
/jspbufferautoflush.html David Stevenson On Thu, 2004-12-02 at 12:30, Pradeep Chauhan wrote: - Root Cause - java.lang.IllegalStateException at org.apache.coyote.tomcat4.CoyoteResponseFacade.sendRedirect(CoyoteResponseFa cade.java:340) at org.apache.jsp.DreamScreen_jsp._jspService

Re: Tomcat/Java and SMP

2004-12-02 Thread David Boyer
The ability of Tomcat (or any other Java application) to use multiple CPUs depends on if the JVM can support multiple CPUs. Sun's JVM for Windows uses native threads which the OS can schedule across multiple CPUs. Clearly, your test application shows this. I believe Java threads are mapped

ssl configuration. 5.0.28

2004-12-01 Thread Pawson, David
server.xml shows !-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -- !-- Connector port=8443 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 debug=0 scheme=https

RE: ssl configuration. 5.0.28

2004-12-01 Thread Pawson, David
-Original Message- From: Allistair Crossley There is no concept of definitive, only valid. Look at the connector reference for 5.0 and make your mind up about what suits your needs. The SSL specific attributes are also on this page.

RE: ssl configuration. 5.0.28

2004-12-01 Thread Pawson, David
-Original Message- From: QM : which is definitive/correct/better please? Or where is : the definitive list found? I'm not sure what you mean. What definitive list? The online Tomcat docs should be fine, It is, as Allistair pointed out. Tks. I'd

Re: Q: ISAPI filter for JK 1.2.7-beta Visual C++ requirements

2004-12-01 Thread David Boyer
Thanks! That did the trick. I have the latest version of Visual Studio .Net on another system, and it sounds like it'd be better to use to get the full logger features. [EMAIL PROTECTED] 12/1/2004 1:05:19 AM David Boyer wrote: I'm attempting to build this from source, and I'm getting several

RE: ssl configuration. 5.0.28

2004-12-01 Thread Pawson, David
-Original Message- From: Allistair Crossley There is no concept of definitive, only valid. In which case the example in http://jakarta.apache.org/tomcat/tomcat-5.0-doc/ssl-howto.html would seem to be wrong. Although it names a tomcat class, there is no such

RE: ssl configuration. 5.0.28

2004-12-01 Thread Pawson, David
className is a common attribute of the Connector element. look at the common attributes table in http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html Sorry. Missed that. can you post what you have used for the SSL Connector? Connector port=8443

RE: ssl configuration. 5.0.28

2004-12-01 Thread Pawson, David
-Original Message- From: Allistair Crossley correction to my last post about SSL page returning squares .. I was requesting http. https://localhost:8443/ works for my suggestions with default tomcat page. And works for me sigh/ I was

RE: ssl configuration. 5.0.28

2004-12-01 Thread Pawson, David
actually, I notice you are using keystoreFile. are you certain when you ran keystore that you used -keystore parameter? it might well be that. i generated my key without using -keystore which tomcat looks at by default. try getting that working first. On win2k, so the

Admin and Manager applications don't work with modified CATALINA_BASE and startup.sh -security

2004-11-30 Thread David Crecente
Hi all, I have problems to run jakarta-tomcat-4.1.31 with CATALINA_BASE other than CATALINA_HOME using security. I use startup.sh -security. My CATALINA_HOME is /iobox/Sw_comercial/Tomcat/jakarta-tomcat-4.1.31 My CATALINA_BASE is /iobox/servicios/desarrollo/mms My admin.xml is

Re: [ANN] Jakarta Tomcat Connectors 1.2.7-beta released

2004-11-30 Thread David Boyer
Cool! I'm anxious to try the wildchar uri matching. the regular expressions I'm using with JK2 aren't very complex, so this looks like it will do the trick. [EMAIL PROTECTED] 11/30/2004 9:24:44 AM The Apache Jakarta Tomcat team is proud to announce the immediate availability of Jakarta

Re: Delivering JSPs without source

2004-11-30 Thread David Stevenson
com.yourcompany.YourJavaClass ; public class YourJavaClass { public void YourJavaMethod ( HttpServletRequest request, HttpServletResponse response, ServletConfig config, ServletContext application, HttpSession session ) { // Your logic here. } } David Stevenson On Tue, 2004-11

Re: Delivering JSPs without source

2004-11-30 Thread David Stevenson
page, Tomcat would have no file to compare the date against in your scheme of putting the compiled .jsp page in a .jar file only. David Stevenson On Tue, 2004-11-30 at 12:08, Steve Procter wrote: Sorry if this wasn't clear; the source code is not delivered. It is the compiled jsp files which

Q: ISAPI filter for JK 1.2.7-beta Visual C++ requirements

2004-11-30 Thread David Boyer
I'm attempting to build this from source, and I'm getting several errors related to an undeclared identifier '__FUNCTION__'. Visual C++ 7 supports __FUNCTION__, but VC++ 6.0 does not. Does anyone know if this is an intended change in the build requirements, or am I just doing something wrong?

RE: Multipe Tomcat instances

2004-11-30 Thread David Boyer
As far as Tomcat 4.x and 5.0.x, Tomcat uses %CATALINA_BASE%/conf/server.xml unless you specifically specify an alternative. Optionally, you can pass '-config fullpath' to the main method of the startup class where fullpath is the full path to your config file. For example:

No more threads

2004-11-29 Thread David Teruel
problems. Does any one know the reason of this problem? An the proper solution? Thanks. -- ** David Teruel Vioque GFI-Informática. Telefónica I+D Tfl: 91.312.99.85 (29985) email: [EMAIL PROTECTED] [EMAIL

Re: No more threads

2004-11-29 Thread David Teruel
, David Teruel wrote: Hello everyone. Push your memory utilisation for the JVM up. See one of the previous threads that I responded too. Also make sure that you enough sockets available. :P I'm having one little problem with the memory of my Tomcat 5.5.4. I'm doing a little test for knowing how many

Tomcat 5.0.x or 5.5.x in production

2004-11-29 Thread David Boyer
We've been using Tomcat 5.0.x in production for the past nine months or so. There appear to be numerous benefits to moving to 5.5.x, not the least of which being that it's the current focus of development. With 5.5.4 being labeled 'stable', I'm interested in moving our sites to 5.5.x. Is 5.5.4

Re: No more JK2 ?

2004-11-29 Thread David Boyer
http://jakarta.apache.org/tomcat/connectors-doc/ [EMAIL PROTECTED] 11/29/2004 10:25:49 AM Where can I find more information on not only the official announcement, but the latest on the connector development. I have also been using JK2 for some time, and was really happy with it. Thank you.

RE: What Connector Should I Use?

2004-11-29 Thread David Boyer
I use JK2 also (although I'm running on IIS 6.0). Is JK2 easier to configure? It probably depends on your existing familiarity. It sounds to me like JK is used much more heavily than JK2, so it's getting more real-world stress testing and probably greater developer attention. I really like

Re: Multipe Tomcat instances

2004-11-29 Thread David Boyer
I would say one of the benefits is the ability to have sites using different versions of Tomcat and Java. We run two instances on our main server: one hosts our official sites, the other hosts user (student/faculty) sites. This lessens the possibility that any 'untrusted' code on our user sites

Re: help - Java error starting Tomcat 5

2004-11-29 Thread David Stevenson
$CATALINA_HOME/common/lib/commons-logging-api.jar ? David Stevenson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: help - Java error starting Tomcat 5

2004-11-29 Thread David Stevenson
: Solaris tar != GNU tar David Stevenson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: JDNI: define my own resource

2004-11-29 Thread David Stevenson
2001, 477 pages, ISBN 059600088X http://www.bookpool.com/.x/rramaxk81n/sm/059600088X David Stevenson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [HttpSession creation: When How]

2004-11-29 Thread David Stevenson
You could put the following page directive on your login? .jsp page: %@ page session=false % David Stevenson On Mon, 2004-11-29 at 20:35, Frank W. Zammetti wrote: Yes, the session is created automagically when a servlet-served resource is accessed (meaning things other than HTML, images

Tomcat 4.1: Setting Up Connection Pooling, Adding Resource to server.xml

2004-11-26 Thread David Stevenson
() ; } } } David Stevenson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

How to add a request filter for TC5.5.3? It was working for TC5.0.29!

2004-11-26 Thread David Lee
this context into TC5.5.3, I tried to put it into conf\context.xml file and I saw the errors when I started TC5.5.3. I struggle for a while and still don't know how to do it? Thanks in advance for any help David Lee

RE: How to add a request filter for TC5.5.3? It was working for TC5.0.29!

2004-11-26 Thread David Lee
Yes, It has been rewritten and recompiled, the last thing is How do I specify the context, I mean move the context to TC5.5.3. Thanks David -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: Friday, November 26, 2004 3:25 PM To: [EMAIL PROTECTED

RE: How to add a request filter for TC5.5.3? It was working for TC5.0.29!

2004-11-26 Thread David Lee
,\x0a,\x0d/ /Context TC5.5.3 starts no errors, but when I accessed it http://localhost:8080, a blank page Appears. If I take out the above context, I can the page, something wrong with how do I move the conf\server.xml context into the TC5.5.3 file? David -Original

Re: Tomcat 4.1: Setting Up Connection Pooling, Adding Resource to server.xml,

2004-11-26 Thread David Stevenson
the Jakarta Archives looking for closer versions. [EMAIL PROTECTED] logs]$ ll -rt $CATALINA_HOME/common/lib ... -rw-r--r--1 davidstevenson 175426 Nov 26 20:06 commons-collections-2.1.1.jar -rw-r--r--1 davidstevenson42492 Nov 26 20:06 commons-pool-1.2.jar -rw-r--r--1 david

OFF TOPIC: Merging data into a PDF form

2004-11-23 Thread David Wall
, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Tomcat Virtual Host Stop/Start Questions

2004-11-23 Thread David Tepper
Hi there, I'm using Tomcat 4.1.27 on AIX 5.2 I have a shared binary setup for Tomcat where: server.xml is the default instance server_vhost1.xml is one of the dev instances I have made a config change to the server_vhost1.xml file and I need to implement that change. In order to do so, I

RE: Installing a webmail client such as squirrelmail (PHP) on tomcat?

2004-11-19 Thread David Lee
is not running. It was running like that for more than 3 monthes and Finally I gave up, because my focus is Tomcat, I just want to make everything works first on tomcat and then Think other options. It will simplify the application development and deployment. David Lee -Original Message

Re: JNI, tomcat thread safety

2004-11-19 Thread David Boyer
Tomcat won't do anything to manage this. I think this is more a generic JNI question. Multiple threads can access your native library concurrently. What it's going to boil down to is whether or not you native library is thread-safe, and whether you want to impose some degree of

RE: Installing a webmail client such as squirrelmail (PHP) on tomcat?

2004-11-19 Thread David Lee
Thanks for the suggestion. BTW, what is the OS you are using, mine is winXP professional, I heard apache is Not suitable or not tuned for win but UNIX/LINUX, that's why it's not stable on winXP platform, just an Afterthrought. David -Original Message- From: Andoni [mailto:[EMAIL

new isapi_redirector2.dll

2004-11-19 Thread David Boyer
I noticed there have been some commits since the last official release in March, so I've built a version based on the latest snapshot. I've also added a How to page for people interested in building it themselves. http://web.bvu.edu/staff/david/index.jsp?section=softwaresubsection=isapipage

Re: Problem displaying PDF in IE6 from Tomcat using the ActiveX R eader Plug-in

2004-11-18 Thread David Wall
be a problem, too. David - Original Message - From: Aman Raheja [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, November 18, 2004 8:47 AM Subject: Re: Problem displaying PDF in IE6 from Tomcat using the ActiveX R eader Plug-in Some more info to respond

Installing a webmail client such as squirrelmail (PHP) on tomcat?

2004-11-18 Thread David Lee
Hi! Folks, Has anyone run the php application on Tomcat?. I'm trying to install the squirrelmail on tomcat so I can web access my james email server. What is the best way to integrate the php with tomcat or any suggesstions or pitfalls to avoid? Any comments welcome. Thanks David Lee

Re: Installing a webmail client such as squirrelmail (PHP) on tomcat?

2004-11-18 Thread David Boyer
the squirrelmail on tomcat so I can web access my james email server. What is the best way to integrate the php with tomcat or any suggesstions or pitfalls to avoid? Any comments welcome. Thanks David Lee

RE: Installing a webmail client such as squirrelmail (PHP) ontomcat?

2004-11-18 Thread David Lee
Thanks, I'll look into it. -Original Message- From: David Boyer [mailto:[EMAIL PROTECTED] Sent: Thursday, November 18, 2004 2:47 PM To: [EMAIL PROTECTED] Subject: Re: Installing a webmail client such as squirrelmail (PHP) ontomcat? I think you'd be better off fronting Tomcat

RE: Installing a webmail client such as squirrelmail (PHP) on tomcat?

2004-11-18 Thread David Lee
Hi! Hassan, You mean phpservlet to read the php app config file or php files and then phpservlet to serve the php page? Your calendar app were written using PHP? Thanks David Lee -Original Message- From: Hassan Schroeder [mailto:[EMAIL PROTECTED] Sent: Thursday, November 18, 2004 3

RE: Installing a webmail client such as squirrelmail (PHP) on tomcat?

2004-11-18 Thread David Lee
Thanks lot, I will study it. David Lee -Original Message- From: Hassan Schroeder [mailto:[EMAIL PROTECTED] Sent: Thursday, November 18, 2004 3:51 PM To: Tomcat Users List Subject: Re: Installing a webmail client such as squirrelmail (PHP) on tomcat? David Lee wrote: You mean

Re: Server Component....What IP does the shutdown service listen to?

2004-11-17 Thread David Smith
To my understanding, you are correct. It's locked to only listen for a shutdown command on the localhost interface 127.0.0.1 for security reasons. --David Troy Simpson wrote: OS: Sun Solaris 8 Tomcat: 5.5.4 Documentation: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/server.html

Q: valve versus filter

2004-11-17 Thread David Boyer
We're using IIS 6 with the JK2 ISAPI filter (Tomcat 5.0.28). I have several filters that I'm using on almost every context in production: an authentication filter, an access-control filter, and a compression filter. I'd be interested in implementing these things at a more global level rather

RE: Problem displaying PDF in IE6 from Tomcat using the ActiveX R eader Plug-in

2004-11-16 Thread David Boyer
Are you setting the MIME type in the response header properly for the PDF? Also note that the Acrobat Reader plugin doesn't like to read PDFs if they've been served using HTTP compression (I don't know if that applies in your case or not). Also, if the PDF is being sent over SSL, note that IE

RE: Problem displaying PDF in IE6 from Tomcat using the ActiveX R eader Plug-in

2004-11-16 Thread Graff, David
I've developed a couple of applications that spit back PDF files from within Struts. One thing I did have to do was make sure the generated PDF's response content type was application/pdf I don't think I've had to do anything with filename extensions. -Original Message- From: Phillip

RE: Tomcat JRE vs JDK Issue

2004-11-16 Thread David Boyer
Correct me if I'm wrong. One of the things the JDK brings that the JRE does not is tools.jar which contains com.sun.tools.javac, which is needed to compile JSPs. It might be possible to use the JRE as long as you have tools.jar from the JDK somewhere in your classpath. It seems like I saw a

Re: How might I read docBase into my application

2004-11-16 Thread David Boyer
application.getRealPath(/) This should return the full filesystem path to the root of your current web application (e.g. context). I believe this should be the value represented by docBase in your context config. [EMAIL PROTECTED] 11/16/2004 8:35:55 AM Can anyone tell me how I can obtain the

RE: How might I read docBase into my application

2004-11-16 Thread David Boyer
Thank you. That is very good to know. [EMAIL PROTECTED] 11/16/2004 8:47:49 AM Hi, application.getRealPath(/) This should return the full filesystem path to the root of your current web application (e.g. context). I believe this should be the value represented by docBase in your context

Re: JDBC transactions using MySQL / DBCP in Tomcat 5.0.28

2004-11-16 Thread David Boyer
Prior to your first insert, do you need to execute an SQL Start transaction? Otherwise, it sounds like autocommit will revert to the default start of true. http://dev.mysql.com/doc/mysql/en/COMMIT.html [EMAIL PROTECTED] 11/16/2004 12:14:13 PM Hi all! In my webapp I do two db inserts into

Re: compatible javamail vsersio n with tomcat-5.5.4

2004-11-15 Thread David Smith
code? --David Kantartzis Vasilis wrote: Hi all i am developing a web-based e-mail system. i have encountred the following prioblem. while testing the methods that post e-mails through a java stand alone application the code works fine When a call the same methods from a servlet i get the following

Content-disposition for file downlaod with Mozilla/Firefox

2004-11-15 Thread David Wall
are allowed to contain spaces and it's only a newline that should end the value of a header. Is this something I need to concern myself with from the web application side, or is this just a bug with Mozilla/Firefox? Thanks, David

Re: setting java options and verbosegc output

2004-11-15 Thread David Boyer
you might find this useful for fine-tuning JVM options: http://web.bvu.edu/staff/david/tcservcfg/ [EMAIL PROTECTED] 11/15/2004 10:42:46 AM Howdy, I am running tomcat as a service. How do I set options for the JVM to run. In particular, I wish to monitor garbage collection as I have run

Re: gc output for tomcat?? where is it

2004-11-15 Thread David Boyer
try adding -Xloggc:file [EMAIL PROTECTED] 11/15/2004 12:39:45 PM I have set the -verbose:gc flag for tomcat. Where does the output go? Do I need to set the log level to Info instead of Error?? John McClain Senior Software Engineer TCS Healthcare [EMAIL PROTECTED] (530)886-1700x235 Before

Re: Setup Xms Xmx

2004-11-15 Thread David Boyer
Another shameless plug: http://web.bvu.edu/staff/david/tcservcfg/ [EMAIL PROTECTED] 11/15/2004 2:03:33 PM Hi, my platform is: Windows 2K Tomcat 5.0.27 I start Tomcat as Win2K service, can I setup JAVA_OPTS like Xms and Xms. Thank a lot and best regards. ciao

Re: Content-disposition for file downlaod with Mozilla/Firefox

2004-11-15 Thread David Wall
to be a Mozilla bug. So I now use something like: Content-Disposition: attachment;filename=Some Agreement 2004-11-15.doc Thanks again, David - Original Message - From: Tim Funk [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, November 15, 2004 3:54 PM Subject: Re

has anyone tried or run the TC -security with mail session or database connection successfully?

2004-11-12 Thread David Lee
Thanks lot if anyone can point me in the right direction. TC5.5.4 ( it happens to other versions) Window XP JAVA 1.5.0 My program runs successfully without turning on the -security, but has the errors when it is turned on. The errors generated look like not related to access violation because

RE: SSL Not working properly

2004-11-11 Thread David Austin
Chris, or Birendar Were you able to get the redirect working on those ports: 8080 and 8443? I have the same setup for tomcat 4.1.31, but i can only get it to work using port 80 and 443... -dave -- Original Message -- From: Hubble, Christopher [EMAIL

RE: SSL Not working properly

2004-11-11 Thread David Austin
running SSL on the default ports. I believe your problem is that your specifying https and 8080. Try https://localhost:8443 Chris -Original Message- From: David Austin [mailto:[EMAIL PROTECTED] Sent: Thursday, November 11, 2004 9:28 AM To: Tomcat Users List Subject: RE: SSL Not working

RE: Tomcat - 4.1 - SSL redirect only works on ports 8

2004-11-11 Thread David Austin
Ok, here are my connector tags: !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443

Re: jsps are not working

2004-11-10 Thread David Stevenson
On 10/11/04 11:58, Akhthar Parvez. K [EMAIL PROTECTED] wrote: Please let me know what I am missing Sufficient detail in your question. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Tomcat - 4.1 - SSL redirect only works on ports 80 and 443

2004-11-10 Thread David Austin
Good Morning, This is my first post to this site, so please go easy on me... I am running a tomcat 4.1 standalone server and I am trying to implement an SSL connector. I followed the instructions and was able to successfully get it to work with one problem: For some reason the redirect

jvm invisible to tomcat

2004-11-10 Thread David Russo
Running xp pro (all service packs and mods installed), jdk 1.4.2, JAVA_HOME, CATALINA_HOME both defined (user and system). when trying to install either 5.0.28 (.exe download) or 5.0.29 installation halts with a NO JVM message. JVM is clearly on system at path C:\Sun\Appserver\jdk\bin. I can

Re: hide source of a page

2004-11-09 Thread David Stevenson
On 9/11/04 4:57, Frank W. Zammetti [EMAIL PROTECTED] wrote: No, there are actually plug-ins for other browsers to run ActiveX controls. I don't know if they are particularly stable, but they do exist. Can you show me one for Safari, and one for the Nokia 6310? Thanks

Re: SSL Certificate configuration

2004-11-09 Thread David Goodenough
= / My keystore: D:\db\certificateskeytool -keystore keystore -list should that not be .keystore, not keystore? David Enter keystore password: Keystore type: jks Keystore provider: SUN Your keystore contains 3 entries rootca, Nov 9, 2004, trustedCertEntry, Certificate fingerprint (MD5

Re: SSL Certificate configuration

2004-11-09 Thread David Goodenough
. David On Thursday 11 November 2004 11:47, Robert Cole wrote: Hi David, I'm unfortunately on a Wintel server and the OS has problems with files named with a preceding. My connector references the 'keystore' and accessing the keystore via keytool. I've tried it with the .keystore name

Anyone knows how to deal with mail session -security error for TC5.5.4

2004-11-09 Thread David Lee
if running tomcat5.5.4 without turning on -security, everything works fine for jndi context mail session and DBCP. But if -security turned on, I got the following errors. If anyone can point to me what I missed or did wrong, greatly appreciated. Thanks David 1. TC errors access: access

RE: Accessing resource in WEB-INF outside servlet

2004-11-08 Thread David Evans
Is using JNDI to access a file like this a reasonable approach? I just started using JNDI to name my database connections via a connection pool. And when i saw the simplicity of accessing the JNDI context within my java classes, i got to thinking that i should use it to access many of my

RE: Accessing resource in WEB-INF outside servlet

2004-11-08 Thread David Evans
Thanks for the reply. So the next question of course is, what is a better approach? I understand idea of using putting an object in the ServletContext during application initialization, but that leads to other problems. Well, to be specific, heres the problem i have with that in my application:

RE: Accessing resource in WEB-INF outside servlet

2004-11-08 Thread David Evans
Ok, thanks i will look into the getResource configuration method, it sounds like that would subsitute for the JNDI lookup cleanly. So one last thing, if you've got the time. You said: Having each Bean get its own connection path itself is not clean, but it's your design, so it's up to you. so how

RE: Accessing resource in WEB-INF outside servlet

2004-11-08 Thread David Evans
On Mon, 2004-11-08 at 09:35, Shapira, Yoav wrote: Hi, so how do you handle this? do you pass in the connection info to every DAO method, like this: public static Book getBook(String connection, String bookId) public static void updateBook(String connection, Book book) that seems tedious,

RE: Accessing resource in WEB-INF outside servlet

2004-11-08 Thread David Evans
Thanks again for the help, this approach is very clean, and i'll be using it. dave On Mon, 2004-11-08 at 10:15, Shapira, Yoav wrote: Hi, So the intialization of this sington datasource provider occurs the first time the class is called? and from then on out there's only one instance of the

Many many unclosed connections, their state is CLOSE_WAIT

2004-11-08 Thread David Zhung
We developed a web application in Tomcat4.1. Recently, when we did test for this application, sometimes we can get many many unclosed connections. The detail environment is: - Server OS is Win2000 server or win2003 ES - Tomcat4.1 - Mysql4.0 We deployed it in the computer named Server_1 and

How to fix the security error like this for tomcat5.5.4 -security

2004-11-08 Thread David Lee
when tc security turned on then errors, if no security, it works fine, tried everything, still has errors Thanks for anyone who can help!!! greatly appreciated David Lee 1. Errors: access: access allowed (java.util.PropertyPermission line.separator read) Nov 8, 2004 9:55:25 PM

reinstalled SDK - NT Service doesn't start

2004-11-05 Thread David Aleksanyan
Hello guys, After reinstalling the SDK. Tomcat 4.1.28 works from console but the NT doesn't start Do you guys know how to fix this? I'm suspecting that some config files are pointing to the old SDK install. Or maybe some registry value? Thanks, David

Re: reinstalled SDK - NT Service doesn't start

2004-11-05 Thread David Aleksanyan
From the tomcat config screen, click the Java tab and update the path to your jvm. On Fri, 2004-11-05 at 16:01, David Aleksanyan wrote: Hello guys, After reinstalling the SDK. Tomcat 4.1.28 works from console but the NT doesn't start Do you guys know how to fix this? I'm suspecting

Re: reinstalled SDK - NT Service doesn't start

2004-11-05 Thread David Aleksanyan
: Ben Souther [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, November 05, 2004 4:14 PM Subject: Re: reinstalled SDK - NT Service doesn't start From the tomcat config screen, click the Java tab and update the path to your jvm. On Fri, 2004-11-05 at 16:01, David

What's a sealing violation please?

2004-11-02 Thread Pawson, David
From the log 2004-11-02 09:24:51 StandardContext[/servlets-examples]SessionListener: contextInitialized() 2004-11-02 09:25:52 StandardWrapperValve[putpr]: Servlet.service() for servlet putpr threw exception java.lang.SecurityException: sealing violation: can't seal package nu.xom: already

RE: What's a sealing violation please?

2004-11-02 Thread Pawson, David
Thanks for the reply Jon. -Original Message- From: Jon Wingfield It's part of the core java security model. If a package is sealed within a jar then packages of the same name cannot be defined in another jar, or elsewhere on the classpath. Within the

Re: Response and file downloads

2004-11-01 Thread David Wall
, but in fact, you just returned a page, and that page triggered the auto-GET that triggers the download. David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Response and file downloads

2004-11-01 Thread David Wall
that instructs the client to automatically issue the GET to download the file when the page is returned. David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Response and file downloads

2004-11-01 Thread Pawson, David
-Original Message- From: Justin Ruthenbeck It seems like what you want is for a user to fill out a form, click submit, then be presented with a new, fresh, form again ... with the file download on the side. If you have determined that you absolutely

RE: Tomcat5.5.3 serious problems!

2004-10-29 Thread David Lee
I will take a look at this one, BTW, I just uploaded my test war file in response to Remy's comments. Thanks David -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 5:06 PM To: Tomcat Users List Subject: Re: Tomcat5.5.3 serious problems

Re: Tomcat in a High Traffic Environment

2004-10-29 Thread David Rees
Mladen Turk wrote: Yes, but the keepalive is used mainly for making the 'state' out of 'stateless' protocol, and it's main advantage is that you don't need to acquire a new connection all the time. Take a look at RFC2068. Even apache keeps the thread open on keepalive connections (Of course

Re: Tomcat in a High Traffic Environment

2004-10-29 Thread David Rees
Andrew Miehs wrote: A connection pool of 750 threads seems unusable... How can 1 thread per connection scale? or have I misunderstood how tomcat uses its connection pool? And should all of these threads ever have something to do at the same time, the box would just fall over with a load of

Re: JNDI Resources in web.xml

2004-10-28 Thread David Smith
web.xml files are validated against a schema and don't suffer that limitation. --David Steve Kirk wrote: that section opens by talking about the web-app element and says All sub elements under this element can be in an arbitrary order. so it seems that even if orderingused to be an issue, it's

Re: c:forEach within custom tag definition

2004-10-28 Thread David Stevenson
... I wanted to raise it here for suggestions before submitting a bug report... Just as well I didn't do a bug report! It's now resolved. The book I was using didn't have the necessary info, but I've now found it and fixed the problem. The attribute in the tag file defaults to type

Re: JNDI Resources in web.xml

2004-10-28 Thread David Smith
Yes to both. --David Benson Margulies wrote: The question is not 'DTD or schema'. The question is, 'does the 2.4 schema relax the order, and does Tomcat comply?' -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 7:49 AM To: Tomcat Users

Tomcat5.5.3 serious problems!

2004-10-28 Thread David Lee
loop, just kept runnin...runing. What happened! The war file I tried to upload works perfect on Tomcat5.0.29. Thanks David Lee

RE: Interesting discoveries about catalina GUI manager deploy (5.0.28 and 5.0.29)

2004-10-27 Thread David Lee
How do I get this value from within context in java program, thanks Environment name=david value=10 type=java.lang.Integer override=false/ From: Igor [mailto:[EMAIL PROTECTED] Sent: Tue 10/26/2004 9:52 PM To: [EMAIL PROTECTED] Subject: Re: Interesting

How to specify catalina jdbcstore username/password?

2004-10-27 Thread David Lee
I'm trying to use the jdbcstore to save the session data, the only thing I don't know is how to specify database username/password. where should I put it? Manager className=org.apache.catalina.session.PersistentManager debug=0 saveOnRestart=true

c:forEach within custom tag definition

2004-10-27 Thread David Stevenson
is: In test.jsp str1 str2 str3 In utils:xyz.tag first: [str1 other: str2 last: str3] The JSP source is %@ taglib prefix=curi=http://java.sun.com/jsp/jstl/core; % %@ taglib prefix=utilstagdir=/WEB-INF/tags/utils % !-- $Id$ @author David Stevenson @author a href=mailto:[EMAIL

Re: Sv: JNDI DataSource GlobalResources problem

2004-10-26 Thread David Smith
/loginDb, then it should be the same (case as well as spelling) in Resource-Params, ResourceLink, and resource-ref. --David Roland Carlsson wrote: Hello! Thanks for your answer. I have no ResourceLink in my configuration. I understand that I should put it a Context-tag but not where. How does

Re: which Linux Platform is best for Tomcat?

2004-10-26 Thread David Goodenough
Likewise Debian Sid. Works well, but no .deb file to install it so had to use the tar file. On Tuesday 26 October 2004 16:02, Mike Curwen wrote: What the heck.. haven't heard mine yet. Slack 9, no problems at all. :) -Original Message- From: Giuseppe Briotti [mailto:[EMAIL

How to put context.xml into ant war target

2004-10-26 Thread David Lee
I used ant war task to create the deployable war file, I just want to know how to put the context.xml into the meta-inf directory using war target. Thanks

<    2   3   4   5   6   7   8   9   10   11   >