Re: Urgent: Strange Exception in my jsp file

2003-06-09 Thread Holger Klawitter
> help me to solve this strange problem at my project. The rodrigo2.jsp file > ( CODE BELOW ) runs fine in JDeveloper but returns an strange exception in > TomCat 4.1.18. Servlets are not in the same package as jsp files; at least not by default. "Dica" may be visible in your servlet, but not i

Re: SSL client authentication with tomcat 4.1.24

2003-06-09 Thread Mario Ivankovits
It works! Thank you - Original Message - From: "Bill Barker" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, June 07, 2003 5:33 AM Subject: Re: SSL client authentication with tomcat 4.1.24 > I believe that the Sun 1.4 JVM ships with the certs for Verisign and Thawte >

[OT] document.createElement("textarea") how to invoke events on this

2003-06-09 Thread Vijay Pawar
Hi All, I would be obliged if someone helps me in this. I am dynamically creating rows in my jsp by using the dom-tree functions To create a text field i use :- document.createElement(""); The above code works fine and on double clicking, the the alert is invoked. Now to create a text area us

Re: Servlet thread safety

2003-06-09 Thread Bill Barker
If your servlet doesn't implement SingleThreadModel, then it is actually guaranteed by the Spec that there will be exactly one instance (per-Context) that executes the request. "John Corrigan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > No. > > Concurrent requests will most likel

Re: MBeanServer Fails - Admin Tool Won't Work

2003-06-09 Thread Bill Barker
I'm not a Windows user myself, but it looks like you are missing the JMX jars.In your %CATALINA_HOME%\server\lib their should be either a 'mx4j-jmx.jar' or a 'jmxri.jar'. If missing, you can grab the first from , and the second from http://java.sun.com/products/JavaMan

Re: Accessing data files via APPLET tags in JSP pages

2003-06-09 Thread Susan Hoddinott
On this same subject, I was wondering if there is any way of forcing an APPLET to access a server file, e.g. via socket connection, etc.? Regards, Susan Hoddinott http://www.hexworx.com - Original Message - From: "Magne Skjeret" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTE

Re: Accessing data files via APPLET tags in JSP pages

2003-06-09 Thread Susan Hoddinott
Thanks, I'll try that. The component toolkit methods and awt toolkit stuff were all looking for X11 and there did not seem to be anything else as you are probably aware. It does seems strange to me that the APPLETS will read sound and graphics files on the server but not a simple data file. Reg

Re: Urgent : Can we restrict access to a directory in tomcat

2003-06-09 Thread Jens Skripczynski
At 10:29 AM 6/9/2003, Dean Fantham wrote: > The only potential method that can catch most (but not all) of these > would be to create a separate image handling jsp/servlet, say > imageHandler. When imageHanlder servlet recieves an image request it > can check the http-referrer header and ensure th

Running Struts in Eclipse w/ Sysdeo Plugin: Digester Error on Startup

2003-06-09 Thread Watson, Jake
Apologies if this has been answered, but I've already searched the archives and have found no answer. I have also posted to the Struts list ... I get the following error when starting up my Web app in Eclipse (2.1) using the latest version of the Sysdeo plugin: 841 [main] ERROR digester.Digeste

Re: how to unsubscribe - tried twice!

2003-06-09 Thread Jens Skripczynski
I _belief_ you have to have it in the To: line. So --- To: [EMAIL PROTECTED] Subject: anything --- in the Email header would work --- To: anything Subject: [EMAIL PROTECTED] --- won't. Tomcat User: > I have as well...anyone have any ideas?? > > Dan LeBaron, CSS

Re: question on creating a file download servlet

2003-06-09 Thread budi
check this out: http://www.fawcette.com/javapro/2002_03/online/online_eprods/servlets_03_08/ budi ---Original Message--- > From: Mark W. Webb > Subject: question on creating a file download servlet > Sent: 09 Jun 2003 19:33:37 > > > I need to write a servlet that

RE: Having a problem with IIS and Tomcat 4.1.24 config

2003-06-09 Thread Jeffrey Cummings
Excuse my ignorance, but I am not sure which file these lines belong to. Is it the uriworkermap.properties file? What is shm.file a log file? Could I have the file parameter point to C:\Jakarta-4.1.24\logs\shm.file since all my log files are in that directory? Jeff -Original Message- Fr

Problem with request scope example

2003-06-09 Thread Julien Martin
Hello, I am trying to understand the use of the request scope. I have two jsp and a bean class as follows: ***first jsp First Page here ***second jsp <%@ page import="paquet.Person" %> <% p =

Re: What could be wrong if I see a list of files instead of generating the webpage

2003-06-09 Thread Liying Huang
Yeah, I realized that I should diable the directory-listing instead of enabling it. Thanks for the website, I will play there to see if I could get my page. Liying - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

Re: Mod_jk, ssl, java, and certificates question

2003-06-09 Thread Jeff Owens
Thanks Bill, Armed with your confirmation and some searching, I figured out that the Java (I'm using 1.4.1) X509TrustManager class can be overridden to make it think all certificates are ok. I'll remove the override once I get setup with a CA issued certificate. Anyway, thanks again! Jeff Owens

Re: What could be wrong if I see a list of files instead of generating the webpage

2003-06-09 Thread John Turner
You want to disable it, not enable it. Keep in mind that Tomcat 5 is alpha-almost-beta. Are you sure you want to be playing with it? It's not ready for production. Regarding directory listing and welcome files: http://tomcatfaq.sourceforge.net/configure.html John On Mon, 9 Jun 2003 17:08:1

Re: What could be wrong if I see a list of files instead of generating the webpage

2003-06-09 Thread Liying Huang
Sorry, I meant my directory listing is enabled, how to disable it? Liying - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: What could be wrong if I see a list of files instead of generating the webpage

2003-06-09 Thread Liying Huang
Thanks, I have welcome file, maybe directory listing is not enabled. I am new to this, can you tell me What I shall do to enable it? Tnaks, Liying - Original Message - From: "John Turner" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Monday, June 09, 2003 5:01 PM

log level set to DEBUG for serviceRequest

2003-06-09 Thread Angelov, Rossen
Hi, Tomcat 4.1.12 and Solaris 5.7 and JDK 1.4 Is there a way to change the log level to INFO or completely remove or change the location of bin/serviceRequest.log? Currently it prints out tons of lines that I don't really need in the bin directory. I was searching for serviceRequest in the conf

Re: What could be wrong if I see a list of files instead of generating the webpage

2003-06-09 Thread John Turner
Directory listing is enabled and no default page (welcome-file) is defined. John On Mon, 9 Jun 2003 16:59:01 -0400, Liying Huang <[EMAIL PROTECTED]> wrote: Hi, I am new to tomcat5 and I had the following problem. I have downloaded nightly build tomcat5. When I put my project project.war in we

Re: question on creating a file download servlet

2003-06-09 Thread Mark W. Webb
...thank you. Shapira, Yoav wrote: Howdy, Use the content-disposition header: http://www.onjava.com/pub/a/onjava/excerpt/jebp_3/index3.html Yoav Shapira Millennium ChemInformatics -Original Message- From: Mark W. Webb [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 3:34 PM To: [E

What could be wrong if I see a list of files instead of generating the webpage

2003-06-09 Thread Liying Huang
Hi, I am new to tomcat5 and I had the following problem. I have downloaded nightly build tomcat5. When I put my project project.war in webapps folder, and startup tomcat, and go to http://localhost:8080/project, instead of generating the webpage, I got to see list of files showing in that folder.

RES: What does this crazy error message mean?

2003-06-09 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Yes, it does! It has 2 constructors, one of then has no-args. I ve already taken it off, but this error message goes on... Thanks again, Euclides. -Mensagem original- De: Shapira, Yoav [mailto:[EMAIL PROTECTED] Enviada em: segunda-feira, 9 de junho de 2003 17:31 Para: [EMAIL PROTECTED] Ass

RE: JSTL and EL question - SOLVED

2003-06-09 Thread Karr, David
This behavior is described in the JSP 1.2 specification, in section JSP.7.3 (not in one single place in the section). > -Original Message- > From: Schwartz, David (CHR) [mailto:[EMAIL PROTECTED] > > Hi David. > This method works great. Thanks > Is there any downside to using it? Is it sti

Re: Having a problem with IIS and Tomcat 4.1.24 config

2003-06-09 Thread John Turner
Thanks! Jeffrey, does this help? John On Mon, 9 Jun 2003 19:51:39 +0200, Dominic Parry <[EMAIL PROTECTED]> wrote: Hi Sure can, here is an examples of mine: # Define the communication channel [shm] file=C:\Program Files\Apache Group\Tomcat 4.1\logs\shm.file size=1048576 [channel.socket:127.0.

RE: What does this crazy error message mean?

2003-06-09 Thread Shapira, Yoav
Howdy, This error is different than what you got before. Does your Dica bean have a public no-arguments constructor? Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Jose Euclides da Silva Junior - DATAPREVRJ >[mailto:[EMAIL PROTECTED] >Sent: Monday, June 09, 2003 4:2

RE: ClassNotFoundException and FileNotFoundException

2003-06-09 Thread Shapira, Yoav
Howdy, >Question: >Is there a tag I need to place in a config file, web.xml file, or somewhere >else to allow an applet access to use/find data/class (non-servlet) files >in a local (non-ROOT) WEB-INF subdirectory? No such option exists: it would be a violation of the servlet specification for a

RES: What does this crazy error message mean?

2003-06-09 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Dear Yoav, i ve already done it. But i always get the following error: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling t

ClassNotFoundException and FileNotFoundException

2003-06-09 Thread Robert Wray
Question: Is there a tag I need to place in a config file, web.xml file, or somewhere else to allow an applet access to use/find data/class (non-servlet) files in a local (non-ROOT) WEB-INF subdirectory? Problem: For non-servlets or servlets that have dependencies on other local classes/fil

Redirecting directories according to domain

2003-06-09 Thread Raphael
I have tomcat 4 installed in a Windows NT server, There are 2 domains (www.teste1.com.br, www.teste2.com.br) pointing to my Windows NT Server. I have one directory called "portal" ( in webapps directory ) and inside this directory I have a file called redirect.jsp, I need to call this file l

RE: What does this crazy error message mean?

2003-06-09 Thread Shapira, Yoav
Howdy, >I did it. I ve created a package ( named euc ) under my app directory, but >TomCat didnt find it - " package euc does not exist... " - TomCat returns >me. Classpath is setted correctly. Under your webapp root, you have a WEB-INF directory, which has a classes directory, which has a euc d

RES: What does this crazy error message mean?

2003-06-09 Thread Jose Euclides da Silva Junior - DATAPREVRJ
ok, la vai. Me ajude. Att,Euclides. I did it. I ve created a package ( named euc ) under my app directory, but TomCat didnt find it - " package euc does not exist... " - TomCat returns me. Classpath is setted correctly. I guess i need more help. Thanks, Euclides. -Mensagem original- De: S

RES: What does this crazy error message mean?

2003-06-09 Thread Jose Euclides da Silva Junior - DATAPREVRJ
I did it. I ve created a package ( named euc ) under my app directory, but TomCat didnt find it - " package euc does not exist... " - TomCat returns me. Classpath is setted correctly. I guess i need more help. Thanks, Euclides. -Mensagem original- De: Shapira, Yoav [mailto:[EMAIL PROTECTED]

[OT] Re: What Oracle is best?

2003-06-09 Thread Jason Bainbridge
Oracle is an enterprise level commercial Database Management System ie. $$$ where MySQL is an Open Source alternative designed mainly for web application uses (although this may change with their partnership with SAP). These DBMS's can be used within servlets and JSP's by using the appropriate

RE: What Oracle is best?

2003-06-09 Thread Schwartz, David (CHR)
if you have only one machine to run it on then get oracle 9i lite. Its great for dev & testing locally. I'm using it with oracle jdbc drivers, tomcat 4.1.24 -Original Message- From: Jonathan Michael Nowacki [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 3:36 PM To: Tomcat Users List

Re: What Oracle is best?

2003-06-09 Thread Michael Duffy
I believe you'd just need the JDBC driver jars. I'm connecting to Oracle from a servlet, and that's all I'm using. Installing the Oracle client SQL-Plus might be helpful for working directly with the database tables, but it's not necessary if someone else has already done that for you. You

RE: What does this crazy error message mean?

2003-06-09 Thread Marco Rojas
Euclides, Eu não recebi o código... Vc. poderia me enviar zipado? Abs. Marco -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: segunda-feira, 9 de junho de 2003 16:18 To: '[EMAIL PROTECTED]' Subject: What does this crazy error message m

RE: question on creating a file download servlet

2003-06-09 Thread Shapira, Yoav
Howdy, Use the content-disposition header: http://www.onjava.com/pub/a/onjava/excerpt/jebp_3/index3.html Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Mark W. Webb [mailto:[EMAIL PROTECTED] >Sent: Monday, June 09, 2003 3:34 PM >To: [EMAIL PROTECTED] >Subject: questi

What Oracle is best?

2003-06-09 Thread Jonathan Michael Nowacki
Just wondering what kind of oracle programs do I need to get Tomcat to access an SQL database. I have servlets already written that work on another Sun OS machine that I still have access to. Is there a way I can query the OS to find out what versions of oracle are installed? The RPM command obv

question on creating a file download servlet

2003-06-09 Thread Mark W. Webb
I need to write a servlet that handles file downloads, so that I can audit who downloaded from where, when..etc. When I click on the link to download a file, the "Save As" window comes up in my browser(Netscape), and as a default filename I get the servlet name. Is there a way to list the actua

RE: What does this crazy error message mean?

2003-06-09 Thread Shapira, Yoav
Howdy, Perhaps you should place Dica in a package: http://tomcatfaq.sourceforge.net/classnotfound.html Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Jose Euclides da Silva Junior - DATAPREVRJ >[mailto:[EMAIL PROTECTED] >Sent: Monday, June 09, 2003 3:18 PM >To: '[EMA

What does this crazy error message mean?

2003-06-09 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi everybody, i cant stand without solve this problem: whenever Rodrigo2.jsp runs, I always get the bellow message, but the bean Dica is there What should i do? The jsp complete code is attached. Regards, Euclides. An error occurred at line: 12 in the jsp file: /rodrigo2.jsp Generated servle

RE: Is possible to run JAX-RPC under Tomcat?

2003-06-09 Thread Shapira, Yoav
Howdy, Tomcat is a servlet container. It doesn't support all the web services APIs by itself. You can download JAX-RPC and a JAX-RPC implementation and use them in your tomcat-served webapp by putting the relevant jars in the WEB-INF/lib directory of your webapp. In the future, if JAX-RPC (the

MBeanServer Fails - Admin Tool Won't Work

2003-06-09 Thread Michael Duffy
I've installed Tomcat 4.1.24 using the install .exe. I'm running Tomcat as a service on Windows 2000 using JDK 1.4.1. The install was smooth, and Tomcat itself runs just fine. I can use the manager tool without problem, and my Web apps are running nicely. But I get this exception in stdout.log

Re: Urgent : Can we restrict access to a directory in tomcat

2003-06-09 Thread Justin Ruthenbeck
Without more information about the intended application, this discussion will continue to become more academic and less directly useful ... but, really, what's wrong with that? ;) If your app needs to serve images for non-authenticated users, but you want to approximate security (as if you're

Re: Urgent : Can we restrict access to a directory in tomcat

2003-06-09 Thread Scott Ahten
There is a very cool JSP/Servlet Filter developed for the Open For Business project which allows you to control what pages can be directly accessed via the address bar or other links. In other words, If someone tries to directly access a non authorized URL, instead of being sent there by re

Re: Having a problem with IIS and Tomcat 4.1.24 config

2003-06-09 Thread Dominic Parry
Hi Sure can, here is an examples of mine: # Define the communication channel [shm] file=C:\Program Files\Apache Group\Tomcat 4.1\logs\shm.file size=1048576 [channel.socket:127.0.0.1:8009] info=Ajp13 forwarding over socket tomcatId=localhost:8009 # Map the Tomcat examples webapp to the Web serve

Is possible to run JAX-RPC under Tomcat?

2003-06-09 Thread Vy Ho
Is JAX-RPC supported under Tomcat (out of the box)? Do I have to download some module for it? Or I have to run a separate server (such as Sun's J2EE or JBoss)? Is there some documents that you can point me to? Thank you very much in advanced. Vy Ho

Re: Urgent : Can we restrict access to a directory in tomcat

2003-06-09 Thread Dean Fantham
There is no guaranteed way to stop someone directly access a gif image via a browser url, because this is how an image is accessed by the browser itself anyways. The browser just makes a HTTP get request to the web-server (in this case tomcat) requesting the URL of the image to be included in the

RE: how to unsubscribe - tried twice!

2003-06-09 Thread Keith Adams
David [EMAIL PROTECTED] org isn't a valid email address. I sent the email to [EMAIL PROTECTED] on Friday. And sent it from the address I used to subscribe. Thanks, Keith -Original Message- From: David Legg [mailto:[EMAIL PROTECTED] Sent: Mon 6/9/2003 9:49 A

Re: Servlet thread safety

2003-06-09 Thread G. Wade Johnson
That's what I figured. Oh well, time for a little minor reorganization of code. G. Wade John Corrigan wrote: > > No. > > Concurrent requests will most likely be be processed by the same instance of > your Servlet class, however it is not guarantted. > > -Original Message- > From: G. W

basic authentication error page

2003-06-09 Thread Vladimer Shioshvili
Can i define the error page for the basic authentication? amd if yes, where? i have tried to define error-page for code 401, but realized that i am using constraint on everything , thus i am guessing that error page may be falling under the constraint as well. (not sure about that though..) Thu

RE: Servlet thread safety

2003-06-09 Thread John Corrigan
No. Concurrent requests will most likely be be processed by the same instance of your Servlet class, however it is not guarantted. -Original Message- From: G. Wade Johnson [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 9:43 AM To: Tomcat Users List Subject: Re: Servlet thread safet

RE: how to unsubscribe - tried twice!

2003-06-09 Thread David Legg
Have you tried sending an email to the following address... [EMAIL PROTECTED] org Maybe the address you are sending from is not the one you subscribed with? It may take a few hours to have any effect. David Legg -Original Message- From: Tomcat User [mailto:[EMAIL PROTECTED] Sent: 09 J

Re: Servlet thread safety

2003-06-09 Thread G. Wade Johnson
How about the flip side? Is instance data guaranteed separate for each request? I Have some code that relies on instance data and I just had the horrible realization that I have assumed that no two concurrent requests will be talking to the same object. Thanks again, G. Wade "Shapira, Yoav" wrot

RE: how to unsubscribe - tried twice!

2003-06-09 Thread Tomcat User
I have as well...anyone have any ideas?? Dan LeBaron, CSSA Ingenuit Technologies, Inc Complete Business Technology Solutions P 503.267.4089 F 888.861.9051 www.ingenuittechnologies.com [EMAIL PROTECTED] -Original Message- From: Keith Adams [mailto:[EMAIL PROTECTED] Sent: Monday, June

RE: [tomcat] RE: JNDI datasource non available in ServletContextListener.contextInitialized

2003-06-09 Thread Shapira, Yoav
Howdy, FYI, I do the same thing: JNDI calls from a ServletContextListener's contextInitialized() event -- no problems. Yoav Shapira Millennium ChemInformatics >-Original Message- >From: James Lewis [mailto:[EMAIL PROTECTED] >Sent: Monday, June 09, 2003 11:43 AM >To: Tomcat Users List >S

RE: Servlet thread safety

2003-06-09 Thread Shapira, Yoav
Howdy, You didn't miss it. No such guarantee exists for normal servlets. See the javax.servlet.SingleThreadModel interface for one approach to this issue. However, many people will tell you to avoid SingleThreadModel for various reasons. I tend to agree. The design and implementation of your

Re: Having a problem with IIS and Tomcat 4.1.24 config

2003-06-09 Thread John Turner
I'm pretty sure Jeffrey did...at least as far as I can tell. Do you have some examples of the correct way? John On Mon, 9 Jun 2003 18:16:49 +0200, Dominic Parry <[EMAIL PROTECTED]> wrote: you need to specify your uri's in workers.properties - Original Message - From: John Turner To: T

how to unsubscribe - tried twice!

2003-06-09 Thread Keith Adams
I tried twice, with the subject line: [EMAIL PROTECTED], on Friday, and I'm still receiving the emails. I even received a confirmation that I'd been unsubscribed. Has anybody else experienced this? Keith - To unsub

Re: Having a problem with IIS and Tomcat 4.1.24 config

2003-06-09 Thread Dominic Parry
you need to specify your uri's in workers.properties - Original Message - From: John Turner To: Tomcat Users List Sent: Monday, June 09, 2003 6:13 PM Subject: Re: Having a problem with IIS and Tomcat 4.1.24 config Sorry, I'm stumped, and I don't use IIS enough (hardly at a

Re: Having a problem with IIS and Tomcat 4.1.24 config

2003-06-09 Thread John Turner
Sorry, I'm stumped, and I don't use IIS enough (hardly at all) to help out with nitty gritty stuff. Hopefully someone else has more insight. John On Mon, 9 Jun 2003 10:43:27 -0400, Jeffrey Cummings <[EMAIL PROTECTED]> wrote: Yes I did install the filter and it does have the green arrow. This a

Servlet thread safety

2003-06-09 Thread G. Wade Johnson
This may be an obvious question, but is there any guarantee one way or the other about whether there is a separate servlet object for each concurrent request. In other words, is there any chance that instance data would be shared between two requests? If so, are we guaranteed if the instance data

RE: JSTL and EL question - SOLVED

2003-06-09 Thread Schwartz, David (CHR)
Hi David. This method works great. Thanks Is there any downside to using it? Is it still considered "standard"? -Original Message- From: Karr, David [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 11:21 AM To: Tomcat Users List Subject: RE: JSTL and EL question - SOLVED The setup

RE: Why does Oracle in JSP uses multiple ports.

2003-06-09 Thread Lawrence, Gabriel
There was a config option to stop this and make oracle just use 1521 that I used a couple years back for this very purpose... Here's a discussion about how the problem and how to get oracle to just use a single port: http://www.stunnel.org/examples/oracle.html -gabe -Original Message- F

RE: [tomcat] RE: JNDI datasource non available in ServletContextListener.contextInitialized

2003-06-09 Thread James Lewis
> always perform such a lookup successfully, but when I try from a > ContextListener contextInitialized method it fails: the same code WILL > NOT FAIL contextDestroyed !!! Hmmm, odd. This is *exactly* what I do pretty much. I have a LifeCycleListener specified in the webapps//WEB-INF/web.xml like

Re: Why does Oracle in JSP uses multiple ports.

2003-06-09 Thread Jason Bainbridge
Check out this newsgroup post, seems to explain it pretty well: http://tinyurl.com/dujx Regards, -- Jason Bainbridge http://jblinux.org On Mon, 9 Jun 2003 23:17, Brad Rhoads wrote: > I originally thought that was the exact issue. If you look at the > listener.log, the "new" port# is random. In

Re: [tomcat] RE: JNDI datasource non available in ServletContextListener.contextInitialized

2003-06-09 Thread Federico Spinazzi
James Lewis wrote: - define the resource in server.xml (this is a little 'limitating' for me) - deploy the applications in unpacked format (i.e. not from a war file: this is quite limiting, however) Yep, not good to stick them in server.xml. Your .xml file containing your resources should

Re: Assessing Tomcat's State

2003-06-09 Thread Francisco J. Bido
Thanks for the link. I didn't know about Nagios; it seems like a pretty useful tool. I'll have to take for a spin. About the Tomcat state issue, I actually got them resolved. I basically followed Tim Funk's tips (see prior posts). I modified some C code to get the UNIX PIDs straight from the

RE: JNDI datasource non available in ServletContextListener.contextInitialized

2003-06-09 Thread James Lewis
- define the resource in server.xml (this is a little 'limitating' for me) > - deploy the applications in unpacked format (i.e. not from a war file: > this is quite limiting, however) Yep, not good to stick them in server.xml. Your .xml file containing your resources should be in the webapps/ dir

RE: Why does Oracle in JSP uses multiple ports.

2003-06-09 Thread Brad Rhoads
I originally thought that was the exact issue. If you look at the listener.log, the "new" port# is random. In fact even the rang of numbers appears to be different on our different servers. In spite of this, we're getting ports 33047 & 40147 consistantly; it appears to be somehow be a function of

[OT]Changing Oracle ports (was: Re: Servlets not working in my context: SOLVED)

2003-06-09 Thread Jason Bainbridge
On Mon, 9 Jun 2003 23:05, Schwartz, David (CHR) wrote: > Oracle 9i installs a service on Port 8080. This causes the logon  popup. > You either have to change tomcats port or disable the oracle feature. > I changed Tomcat port to 80. > > Does anyone know how to disable or change oracle from port 808

JNDI datasource non available in ServletContextListener.contextInitialized

2003-06-09 Thread Federico Spinazzi
Hi you all, I'm trying to build application wide variable from a ServletContextListener under Tomcat 4.1.24. Some of the variables are built with data read from a database. I've been able to successfully define the JNDI datasources and to list them in the contextInitialized method but I needed t

RE: Servlets not working in my context: SOLVED

2003-06-09 Thread Schwartz, David (CHR)
Hi All. I finally got it. I was using Oracle 9i & Tomcat on port 8080. Oracle 9i installs a service on Port 8080. This causes the logon popup. You either have to change tomcats port or disable the oracle feature. I changed Tomcat port to 80. Does anyone know how to disable or change oracle from

Re: Why does Oracle in JSP uses multiple ports.

2003-06-09 Thread Tim Funk
I have just learned that the thin driver uses 1521 to begin the conversation. But that is just a handshake. The handshake then says - "Let's finish the rest of our work on another higher port" where the higher port is a range of ports. So you need a whole range of ports open. :( -Tim Brad Rho

Urgent: Strange Exception in my jsp file

2003-06-09 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi gurus, help me to solve this strange problem at my project. The rodrigo2.jsp file ( CODE BELOW ) runs fine in JDeveloper but returns an strange exception in TomCat 4.1.18. This jsp app creates a reference to a java bean, named DICA, which is instanced by an previous servlet. What does this messa

Why does Oracle in JSP uses multiple ports.

2003-06-09 Thread Brad Rhoads
My client had to open port 1521 between the webserver and Oracle DB server. This makes sense. But he also had to open port 33047 for our application pointing to the test SID and 40147 for the copy of the app pointing to the prod SID. Both ProdApp and TestApp are exactly the same except for the Ora

RE: clustering

2003-06-09 Thread Ben Ricker
I knew that, but the original message was so ambiguous about what exactly they were running, I thought a little clarity of terminology would help; blame my philosophy degree *grin*. I did not mean it in a condescending way. Ben Ricker Wellinx.com On Fri, 2003-06-06 at 16:17, Filip Hanik wrote: >

RE: Having a problem with IIS and Tomcat 4.1.24 config

2003-06-09 Thread Jeffrey Cummings
Yes I did install the filter and it does have the green arrow. This as the log file, mod_jk_iis.log when I start IIS [jk_uri_worker_map.c (156)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [jk_uri_worker_map.c (196)]: Into jk_uri_worker_map_t::uri_worker_map_open [jk_uri_worker_map.c (211)]: jk

RE: Hyperthreading and performance

2003-06-09 Thread Shapira, Yoav
Howdy, I haven't gotten around to benchmarking this, although I'm curious. It's not as much a tomcat issue as it is a general JVM performance one. Would you be able to benchmark your system with and without hyperthreading, and hopefully sharing the results with the list? Yoav Shapira Millennium C

Hyperthreading and performance

2003-06-09 Thread pete . storey
I realise that this is slightly a JVM dependant question but doe anyone have any views on using Hyperthreading on Xeon processors and whether it will affect performance or not? As far as I can ascertain, hyperthreading essentially splits the processor into two threads internally which appear t

RE: check for session

2003-06-09 Thread Collins, Jim
Hi Brian, I mainly develop Web apps that are front ends to Documentum and all the apps I write are JSP/Servlet based apps and I use the Struts framework to help build these apps. I use struts to help with the apps flow control and mapping logic and the custom tags that it provides to help with for

Re: Urgent : Can we restrict access to a directory in tomcat

2003-06-09 Thread John Turner
Very possible, I was just acknowledging my lack of experience in being able to judge whether it was a good design overall or not...it would certainly accomplish the "protect images" requirement, but I wasn't sure about any others. John On Mon, 09 Jun 2003 09:12:49 -0500, Jacob Kjome <[EMAIL PR

Re: Urgent : Can we restrict access to a directory in tomcat

2003-06-09 Thread John Turner
Not to mention spoofing. John On Mon, 09 Jun 2003 08:50:50 -0500, G. Wade Johnson <[EMAIL PROTECTED]> wrote: Unfortunately, this doesn't always work. In the past, I've had problems with IE not sending the Referer header on some requests. G. Wade Tom Oinn wrote: The other way to do it would be

RE: re. to Thomas.Rimmele( I used param tag just as u said)

2003-06-09 Thread Jacob Kjome
First, I think you mean super.init(config) and second, there is no need for that if you call the "init()" method rather than init(ServletConfig config). See the javadoc... public void init() throws ServletException A convenience method which can be overridden so that there's no need

Re: Urgent : Can we restrict access to a directory in tomcat

2003-06-09 Thread Jacob Kjome
I don't know why this would be any slower than tomcat itself? Tomcat serves images by loading them as a stream from the default servlet and returns them to the browser. It all depends on how you implement this. It very well could be faster than Tomcat itself since a servlet dedicated to serv

RE: check for session

2003-06-09 Thread Brian Menke
Hey Jim, I saw this and it intrigued me. Documentum is a document management system. I'm curious about how you are using struts with it?? Do you mind sharing briefly? -Brian -Original Message- From: Collins, Jim [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 2:14 AM To: 'Tomcat Use

Re: Urgent : Can we restrict access to a directory in tomcat

2003-06-09 Thread Jason Bainbridge
On Mon, 9 Jun 2003 21:52, John Turner wrote: > Could you just put all of the images under WEB-INF, and use a special > servlet to get them? > > The source attribute of the IMG tag would be something like > /servlet/imgGetter?image=someUniqueKey. > > The servlet would just retrieve the image from th

RE: tomcat does not release connections

2003-06-09 Thread Phillip Qin
I do it in my init servlet's destroy method. When I "start" my application, I use an init Servlet to initialize logger, connection pool etc. When Tomcat is shutting down, it automatically executes my init servlet's destroy method where I close the connection pool. -Original Message- From:

RE: Newbie Q:How to prevent Directory listing in Tomcat?

2003-06-09 Thread Phillip Qin
Having gone thru the source code, I figured out that this init param will only work with DefaultServlet. I wish we could have something similar to apache's per-directory disable/enable. -Original Message- From: David Legg [mailto:[EMAIL PROTECTED] Sent: June 9, 2003 5:50 AM To: 'Tomcat Us

RE: re. to Thomas.Rimmele( I used param tag just as u said)

2003-06-09 Thread Phillip Qin
Don't forget to call super.init() first. -Original Message- From: bilal sulehri [mailto:[EMAIL PROTECTED] Sent: June 9, 2003 5:43 AM To: [EMAIL PROTECTED] Subject: re. to Thomas.Rimmele( I used param tag just as u said) >From: [EMAIL PROTECTED] >Reply-To: "Tomcat Users List" <[EMAIL P

RE: Clear user session

2003-06-09 Thread Phillip Qin
Is this a re-post? I saw some pal posted a very good explaination why you cann't do it. Are you not reading those posts?. My suggestion is to use session.removeAttribute(attr_name) or simply set those attributes to null. -Original Message- From: shyam [mailto:[EMAIL PROTECTED] Sent: June

RE: Tomcat configuring for email

2003-06-09 Thread Phillip Qin
Tomcat has this nice feature called Resource mail/Session. Without this feature, in your code, you get a mail session by: Properties props = new Properties(); props.put("mail.smtp.host", "mysmtphost"); Session mailsession = Session.getDefaultInstance(props, null); With Tomcat's jndi lookup, you c

Re: Urgent : Can we restrict access to a directory in tomcat

2003-06-09 Thread John Turner
Could you just put all of the images under WEB-INF, and use a special servlet to get them? The source attribute of the IMG tag would be something like /servlet/imgGetter?image=someUniqueKey. The servlet would just retrieve the image from the WEB-INF directory, and spool it out as a stream. I'

Re: Urgent : Can we restrict access to a directory in tomcat

2003-06-09 Thread G. Wade Johnson
Unfortunately, this doesn't always work. In the past, I've had problems with IE not sending the Referer header on some requests. G. Wade Tom Oinn wrote: > > The other way to do it would be to check the referer page, this seems to > be quite a common trick and will confound most people trying to

Re: Urgent : Can we restrict access to a directory in tomcat

2003-06-09 Thread Tom Oinn
The other way to do it would be to check the referer page, this seems to be quite a common trick and will confound most people trying to link directly to your images (which is what I imagine you're trying to prevent). There may be a more elegant way of doing it, but you could create a servlet t

RE: Urgent : Can we restrict access to a directory in tomcat

2003-06-09 Thread Schwartz, David (CHR)
Store the images in your database & then your jsp can retrieve & show them. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 9:44 AM To: Tomcat Users List Subject: RE: Urgent : Can we restrict access to a directory in tomcat Howdy, That one's

RE: Urgent : Can we restrict access to a directory in tomcat

2003-06-09 Thread Shapira, Yoav
Howdy, That one's tricky (and strange). When you have a servlet or JSP, the output the user sees is HTML. In HTML, you have tags. The browser will request those images normally in HTTP requests. So from the server's perspective, the request is the same whether the user types in the image URL

java.net.SocketException: Connection reset

2003-06-09 Thread Mindaugas Genutis
Hello, I am getting the java.net.SocketException and my JSP application crashes. I have pasted the exception below. It comes from the catalina sockets engine. Does anyone have an idea where should I go further for fixing this socket problem? My server configuration: Redhat Linux, Tomcat 4.1.2

RE: Off Topic: JSP that reads and creates links to file directory

2003-06-09 Thread Tom Lyle
I'd say that the String path ="../dirList.jsp?path=//\\corportateFileServer\department\team\communication s\statusreports\monthlyConsolidatedReport&title=Team+Monthly+Status+Report" isnt a valid file path for File file = new File(path) > -Original Message- > From: Michele Emmi [mailto:[E

  1   2   >