Re: Jasper 2 JSP Engine How To ant script - ServletException not found

2006-02-01 Thread Olinga K. Abbott
Glen, thanks for responding. I placed both the property and path element references to servlet-api at the beginning of their respective sections, and defined jdk.javac.path. I still get the same error. Any ideas on why build.xml provided by the Tomcat website doesn't work? --- Glen Mazza

percent sign in URI

2006-02-01 Thread abdurrahman sahin
I realized apache2 web server properyl handles % sign in URIs, i need = exact functionality on tomcat 5 too. When I try to pass a parameter containing % sign, the parameter value on = the server seems null. like http://localhost:8080/aSite/aPage?query=hi%everybody Tomcat 5 cannot handle that, Is

mapping of web-app roles to principals authenticated against JDBCRealm (compared to security-role-mapping in sun-web.xml)

2006-02-01 Thread Tobias Illik
Hi, I am trying to work out, how exactly I map Tomcat Users/Groups (defined in a JDBCRealm) to security roles, which are defined in my web application deployment descriptor. I am trying to understand the following in the context of formbased login: As the tomcat administrator, I have no

Re: Jasper 2 JSP Engine How To ant script - ServletException not found

2006-02-01 Thread Glen Mazza
Olinga K. Abbott wrote: Glen, thanks for responding. I placed both the property and path element references to servlet-api at the beginning of their respective sections, and defined jdk.javac.path. I still get the same error. Any ideas on why build.xml provided by the Tomcat website doesn't

Static content in Apache + tomcat + jk2

2006-02-01 Thread Grégoire Rolland
Hi, I'm a new user of this list. I have an Apache + tomcat + mod_jk2 running on my linux box. My Webapp control users log on and I have static content which could be accessed only by authorized user. I want to apache serve all static content. Is there a solution?? Thanks.

Re: percent sign in URI

2006-02-01 Thread Aurélien DEHAY
Hello. abdurrahman sahin wrote: I realized apache2 web server properyl handles % sign in URIs, i need = exact functionality on tomcat 5 too. When I try to pass a parameter containing % sign, the parameter value on = the server seems null. like

RE: Cannot transform and load jsp file with Tomcat under Eclipse

2006-02-01 Thread david ziants
Thank you for your responses Vinu and Chuck I got rid of the definition as Vinu suggested, and it seems that I do not have to have any context.xml in the META-INF for the app. The jsp file appears in my browser window, except it doesn't evaluate the jsp expression I include. Maybe you can tell

RE: percent sign in URI

2006-02-01 Thread abdurrahman sahin
hi; my friend tried it, reported that it didn't work. abdurrahman -Original Message- From: Aurélien DEHAY [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 01, 2006 11:29 AM To: Tomcat Users List Subject: Re: percent sign in URI Hello. abdurrahman sahin wrote: I realized apache2

Re: percent sign in URI

2006-02-01 Thread David Delbecq
Hello abdurrahman, Your url is incorrect, replace it with http://localhost:8080/aSite/aPage?query=hi%25everybody According to rfc 1738, 2.2. URL Character Encoding Issues Octets must be encoded ..., if the use of the corresponding character is unsafe, ... The character % is unsafe

How to identify version of a running Tomcat and similar trivia

2006-02-01 Thread Ralph.Grothe
Hi Tomcatters, I beg your pardon for this affront to any self-respecting servlet coder's mind. I am but merely a Unix sysadmin plagued with a varying zoo of Tomcats on different Unices who is largely Java-ignorant and only has to maintain these cats (sorry, but Perl suits my mundane admin tasks

RE: percent sign in URI

2006-02-01 Thread abdurrahman sahin
hi David; I am aware of the case. As I stated before Apache2 server properly handles that problem and I need that functionality because our customer's system built on it. -Original Message- From: David Delbecq [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 01, 2006 11:58 AM To:

Re: percent sign in URI

2006-02-01 Thread David Delbecq
How does your customer system handle this? http://localhost:8080/aSite/aPage?query=I%fear%dead%results badly, obviously :) Possible solutions: 1) You can still try in servlet 'aPage' to grab the request using request.getQueryString() which should returns you query=hi%everybody 2) You can write

kindly help : where Business Logic(BL) files are been put?

2006-02-01 Thread gupta vidhi
hello, kindly tell me where Business Logic(BL) files are been put?i'd put in TOMCAT_HOME\webapps\primeReports\WEB-INF\classes\Reports\ where, primeReports is the name of the folder which i'd created. the following error is coming:- org.apache.jasper.JasperException: Unable

RE: percent sign in URI

2006-02-01 Thread abdurrahman sahin
hi David; I think I'll try your 2nd solution offer. thank you for your help. -Original Message- From: David Delbecq [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 01, 2006 1:16 PM To: Tomcat Users List Subject: Re: percent sign in URI How does your customer system handle this?

Re: percent sign in URI

2006-02-01 Thread Tim Funk
If this were fixed, there would be a host of people complaining about the opposite. The URL below is inavlid based ont the RFC. getParameter has some basic assumptions that the url is correctly encoded. If you wish to place bad data in the query string, I recommend using

RE: File /jsp/struts-html not found

2006-02-01 Thread Lothar Krenzien
Hi Dronesh, after lots of testing I've got it working now. It's looks like that I just had a wrong struts.jar in my classpath. Thanks, Lothar Tomcat Users List users@tomcat.apache.org schrieb am 31.01.06 19:47:58: Hi Lothar, Seems there is some configration problem or tld file is not in

Re: How to identify version of a running Tomcat and similar trivia

2006-02-01 Thread Tim Funk
See the FAQ. http://tomcat.apache.org/faq/ There are a few ways to get the version 1) Use version.sh (or vertsion.bat) 2) Look at the manager webapp (in url /manager/html/) 3) More ways that I can't remember -Tim [EMAIL PROTECTED] wrote: Hi Tomcatters, I beg your pardon for this affront to

RE: Cannot transform and load jsp file with Tomcat under Eclipse

2006-02-01 Thread birendar . waldiya
Hi All Can any one tell me exactly from wher can i download POI.jar and POI API documents . I tried http://www.reportmill.com/rm4/ http://apache.mirrors.tds.net/jakarta/poi/release/src/ when i clik on jar or tar the page keeps on waitign for download to happen. Thanks in Advance Birendar S

Re: percent sign in URI

2006-02-01 Thread Seak, Teng-Fong
I'm not sure properly is the correct word to use in your situation. Doing things based on bug is always a big risk. If one day Apache corrects this bug, your customer will have a great pain in the *ss! abdurrahman sahin wrote: hi David; I am aware of the case. As I stated before Apache2

BUG in Tomcat 4.3.31 with Oracle 9?

2006-02-01 Thread looptag
Hi! I tried the following code from a jsp-page one time on a tomcat 4.1.30 and one time on a tomcat 4.1.31. String up = update test_double set test_value = '26.5' where oid = '1'; Statement st = dbConn.createStatement(); st.executeUpdate(up); Interestingly this code works with tomcat 4.1.30 but

Re: Download file Problem - 404 error

2006-02-01 Thread David Smith
I've done code similar to this. Yore can go one of two ways: 1) Store your properties file in WEB- INF/classes and then call propFile.load(this.getClass().getClassLoader().getResourceAsStream(application.properties'')); 2) Store the properties file anywhere in the webapp and call

can't send email from tomcat using javamail api

2006-02-01 Thread Matthew Evans
Hi Guys I'm running a web application on Tomcat 5.5.12, and I cannot connect to my SMTP server using javamail from it for some reason. The error I am getting is the following:- javax.mail.MessagingException: Could not connect to SMTP host: smtpServer, port: 25; nested exception is:

jk2 question

2006-02-01 Thread Dieter Schicker
Hello, I have to connect an Apache location to a Tomcat webapp with a different name. How can I achieve this? e.g. http://localhost/edu/fedora should point to http://localhost:8080/fedora Any ideas? Many thanks in advance Dieter

RE: How to identify version of a running Tomcat and similar trivia

2006-02-01 Thread Caldarale, Charles R
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: How to identify version of a running Tomcat and similar trivia 3. How to identify a Tomcat's config? 4. Parsing the config 5. Tool for monitoring a Tomcat's state For all of the above, try the manager and admin apps that are

Re: Tomcat and client certificates

2006-02-01 Thread Markus
Setting clientAuth to true / false in the Connector configuration works fine, but how do I configure client authenticaton on a per-directory or even per-servlet basis? This is my current configuration: In server.xml: Connector port=8443 maxThreads=150 minSpareThreads=25

RE: RE: context.xml

2006-02-01 Thread Klotz Jr, Dennis
Thanks Warren, Tim and Charles, Right now I'll leave it as $CATALINA_HOME/conf/context.xml since at this time I'm only deploying one webapp. I had hoped to make it webapp specific, but oh well... If I do end up having more webapps I'll create a shell script (linux OS here) that copies a webapp

Re: BUG in Tomcat 4.3.31 with Oracle 9?

2006-02-01 Thread Glen Mazza
[EMAIL PROTECTED] wrote: Hi! I tried the following code from a jsp-page one time on a tomcat 4.1.30 and one time on a tomcat 4.1.31. String up = update test_double set test_value = '26.5' where oid = '1'; Statement st = dbConn.createStatement(); st.executeUpdate(up); Interestingly this code

Re: can't send email from tomcat using javamail api

2006-02-01 Thread Steve Ochani
On 2 Feb 2006 at 0:12, Matthew Evans wrote: Hi Guys I'm running a web application on Tomcat 5.5.12, and I cannot connect to my SMTP server using javamail from it for some reason. The error I am getting is the following:- javax.mail.MessagingException: Could not connect to SMTP host:

HTTP Status 408

2006-02-01 Thread scott soward
I am getting this error occasionally and am unable to figure out the problem. -- HTTP/1.1 408 The time allowed for the login process has been exceeded. If you wish to continue you must either click back twice and re-click the link you requested or close and re-open your

RE: Tomcat and client certificates

2006-02-01 Thread Duan, Nick
The clientAuth attribute of the connector has to be set to true. Then you will need a client cert to access resources under /html/*, but not other pages. See the Tomcat SSL guide on how to create the client cert. ND -Original Message- From: Markus [mailto:[EMAIL PROTECTED] Sent:

Re: HTTP Status 408

2006-02-01 Thread Tim Funk
The code says (in FormAuthenticator) if (session == null) session = request.getSessionInternal(false); if (session == null) { if (containerLog.isDebugEnabled()) containerLog.debug (User took so long to log on the session

RE: can't send email from tomcat using javamail api

2006-02-01 Thread Matthew Evans
No, it's running on a different server. -Original Message- From: Steve Ochani [mailto:[EMAIL PROTECTED] Sent: Thursday, 2 February 2006 1:59 AM To: Tomcat Users List; Matthew Evans Subject: Re: can't send email from tomcat using javamail api On 2 Feb 2006 at 0:12, Matthew Evans wrote:

RE: BUG in Tomcat 4.3.31 with Oracle 9?

2006-02-01 Thread Duan, Nick
Could you publish the stack trace for this? ND -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 01, 2006 8:06 AM To: users@tomcat.apache.org Subject: BUG in Tomcat 4.3.31 with Oracle 9? Hi! I tried the following code from a jsp-page one

Re: HTTP Status 408

2006-02-01 Thread scott soward
Thank you Tim, I'll try your suggestions. Scott --- Tim Funk [EMAIL PROTECTED] wrote: The code says (in FormAuthenticator) if (session == null) session = request.getSessionInternal(false); if (session == null) { if (containerLog.isDebugEnabled())

RE: mod_jk connection problem after couple of days or a week

2006-02-01 Thread Jonathon Reeve
Hi all, Don't know if anyone remembers my original mail about this from 20/1/06, but it's just happened again. I've pasted the section where the connector went nuts below (at end of mail). This is the first thing to appear in mod_jk's log. Then, about 30 seconds later, The JBoss server on the

RE: How to identify version of a running Tomcat and similar trivia

2006-02-01 Thread Ralph.Grothe
Hi Tim, thanks for referring me to the Tomcat FAQs. That's for sure the first source of information one should read before nagging the list community with redundant questions. At least did I find therein a description how to enable CGI support. Yet, the trivial task of identifying a running Java

Re: Identifying a page with no extension to be a JSP

2006-02-01 Thread Christian Andersson
if you just want to do it for this file, just add the filename instead of the *, for example servlet-mapping servlet-namejsp/servlet-name url-pattern/path/file/url-pattern /servlet-mapping in your web.xml this has worked for me, when I've done it for files in the main path anyway,

Re: can't send email from tomcat using javamail api

2006-02-01 Thread Leon Rosenberg
just shooting from the hip... do you have any java policies configured, which forbids connections to another server? Leon On 2/1/06, Matthew Evans [EMAIL PROTECTED] wrote: No, it's running on a different server. -Original Message- From: Steve Ochani [mailto:[EMAIL PROTECTED] Sent:

RE: Tomcat log to syslog

2006-02-01 Thread Richard Mixon
Oh, as to your original question about log/syslog. I believe since the later versions of Tomcat 5.5.x all can use Log4J for all logging, you can do this. I believe reading that Log4J has a syslog appender that will re-direct output to syslog. You will need to go to the Log4J site

Desperate for help with isapi_redirect.dll

2006-02-01 Thread David Thielen
Hi; Is there anyone on this list that know isapi_redirect? I have this bad feeling that there is only 1 person who knows this code (the one who wrote it) and that he/she is not on this list. If I have to pay for support that's fine but I really need to get this answered (or we'll be forced to

Re: Jasper 2 JSP Engine How To ant script - ServletException not found

2006-02-01 Thread Olinga K. Abbott
Glen, thanks for the suggestion on the search terms. After reading some search hits, I copied all the jars in TOMCAT_HOME\common\lib to ANT_HOME\lib and everything works now. --- Glen Mazza [EMAIL PROTECTED] wrote: Olinga K. Abbott wrote: Glen, thanks for responding. I placed both the

RE: Desperate for help with isapi_redirect.dll

2006-02-01 Thread Earnie Dyke
-Original Message- From: David Thielen [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 01, 2006 11:35 AM To: tomcat-user@jakarta.apache.org Subject: Desperate for help with isapi_redirect.dll Hi; David, As I understand it, you want the jk version 1.2.x NOT jk2. jk2 was a splitter

RE: can't send email from tomcat using javamail api

2006-02-01 Thread Matthew Evans
Yes, and it worked fine. That's what made me even more confused. -Original Message- From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Sent: Thursday, 2 February 2006 3:02 AM To: Tomcat Users List Subject: Re: can't send email from tomcat using javamail api P.S. Have you tried to execute

Re: Tomcat and client certificates

2006-02-01 Thread Markus
Creating client certs is no problem, I already had client authentication working on the Connector-Level. Nick: In other words: it is NOT possible in tomcat to have a webapp with BOTH, a private part with ssl AND client authentication and a public part with ssl but WITHOUT client authentication?

Re: can't send email from tomcat using javamail api

2006-02-01 Thread Leon Rosenberg
$JAVA_HOME/jre/lib/security/java.policy tomcat permissions are configured in $TOMCAT_HOME/conf/catalina.policy regards Leon On 2/1/06, Matthew Evans [EMAIL PROTECTED] wrote: I don't think so. The webapp is currently able to make SOAP calls to another server on the network. And connect to a

Re: Identifying a page with no extension to be a JSP

2006-02-01 Thread Martin Dubuc
Yees! I had tried to put the filename as a URL pattern, but without the path Tomcat didn't like it. Now, just adding a slash in front a the filename solves my problem! Thanks! Martin Christian Andersson [EMAIL PROTECTED] wrote: if you just want to do it for this file, just add the

Re: can't send email from tomcat using javamail api

2006-02-01 Thread Mike Sabroff
it is the smtp server that is rejecting the connection.do you need to authenticate to your smtp server? Matthew Evans wrote: I don't think so. The webapp is currently able to make SOAP calls to another server on the network. And connect to a SQL Server database. Where would you suggest I

Re: can't send email from tomcat using javamail api

2006-02-01 Thread Mike Sabroff
There are also a few other things. I had this happen one time, and it was a dns problemanother time it was another networking problem. Whatever it is, like I said beforeor should have restated as: it appears that java is attempting to make the connection, but is being refused for some

Re: How to identify version of a running Tomcat and similar trivia

2006-02-01 Thread Tim Funk
Tomcat is like any server based java app. It will always require a convulted classpath as well as multiple classloaders to do anything interesting. The most failsafe way to get the version regarless of the packaging is to do the following: (no, i'm not kidding) 1) find catalina.jar. It

question regarding jdk log in Tomcat

2006-02-01 Thread Alan Honczar
Hi, I have a question about java logging within a context. I´d like to have a way to isolate the jdk1.4 log between Tomcat contexts. In my own lines of code, I create a JDK1.4 logger with an associated name, Handler and Formatter. This way, I have one log file per context. My problem is when I

Re: Tomcat and client certificates

2006-02-01 Thread David Delbecq
Hi Yes, it is possible. From connector configuration doc: clientAuth: Set this value to true if you want Tomcat to require all SSL clients to present a client Certificate in order to use this socket. Set this value to want if you want Tomcat to request a client Certificate, but not fail

Re: rotating tomcat logs

2006-02-01 Thread Francis Galiegue
2006/2/1, Tim Lucia [EMAIL PROTECTED]: I use log4j as the logging implementation, and then chose the RollingFileAppender (Daily or Size--your choice) Or use logrotate (that is, if you use some Unix variant and the program exists). -- Francis Galiegue, [EMAIL PROTECTED], [EMAIL PROTECTED],

Re: How to identify version of a running Tomcat and similar trivia

2006-02-01 Thread Mike Sabroff
go to tomcat/bin type catalina.sh version output will look like: Using CATALINA_BASE: /usr/local/tomcat Using CATALINA_HOME: /usr/local/tomcat Using CATALINA_TMPDIR: /usr/local/tomcat/temp Using JRE_HOME: /usr/local/java Server version: Apache Tomcat/5.5.12 Server built: Sep 23 2005

Re: mapping of web-app roles to principals authenticated against JDBCRealm (compared to security-role-mapping in sun-web.xml)

2006-02-01 Thread Mark Thomas
Tobias Illik wrote: snip How can I establish this link/mapping in Tomcat? It has to be performed in web.xml Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Tomcat and client certificates

2006-02-01 Thread Mark Thomas
Markus wrote: Setting clientAuth to true / false in the Connector configuration works fine, but how do I configure client authenticaton on a per-directory or even per-servlet basis? snip/ And here are the results I get: https://domain/anypage : OK https://domain/html/anypage : HTTP

RE: Desperate for help with isapi_redirect.dll

2006-02-01 Thread David Thielen
Hello; I am using 1.2.14 so that's not the problem. And yes, Tomcat is on the same box as IIS and so they can talk. Port 8009 is blocked by our corporate firewall but is not blocked internally. And it works - you can go to http://www.windwardreports.com/store/pages/demo.faces and that is served

Re: Desperate for help with isapi_redirect.dll

2006-02-01 Thread Mark Thomas
David Thielen wrote: Hello; I am using 1.2.14 so that's not the problem. And yes, Tomcat is on the same box as IIS and so they can talk. Port 8009 is blocked by our corporate firewall but is not blocked internally. And it works - you can go to

why does not tomcat replace the missing files in the ROOT after a restart.

2006-02-01 Thread Vutukuru_Shashidhar
Hi All, I have a small question. Please excuse me if this is a trivial question. I have a case where in I have some files missing in the ROOT folder. I wanted to know why Tomcat does not replace the missing files in the ROOT folder after I place a new ROOT.war in the webapps and

Re: How to secure a folder?

2006-02-01 Thread Mark Thomas
François wrote: I've successfully implemented this type of authentication for jsp files (using url-pattern/path/to/my/folder/*/url-pattern), but any other type of ressources, and in particular .txt type of files, are not protected at all. security-constraint web-resource-collection

Re: why does not tomcat replace the missing files in the ROOT after a restart.

2006-02-01 Thread Mark Thomas
[EMAIL PROTECTED] wrote: I have a case where in I have some files missing in the ROOT folder. I wanted to know why Tomcat does not replace the missing files in the ROOT folder after I place a new ROOT.war in the webapps and restart the Tomcat. Here I am not deleting the ROOT folder. As per

tomcat + postgres

2006-02-01 Thread Matthew Whisenhunt
I followed the howto about connection pooling at http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html and I had following question: Do I use the DataSource class like in the example or the ConnectionPoolDataSource class (like it says to do in my book)? Any insights

Re: Cannot transform and load jsp file with Tomcat under Eclipse

2006-02-01 Thread David Ziants
I got the configuration working now and I thank the responders for their feedback and help. Although I created a completely new work set, I did copy my source files over to it. With this I also copied the web.xml file. What I forgot was that I had a servlet definition and mapping which

RE: why does not tomcat replace the missing files in the ROOT aft er a restart.

2006-02-01 Thread Vutukuru_Shashidhar
Thanks Mark for the reply... But do we have any way so that tomcat extracts the ROOT.war and replaces only the missing/changed files (can be based on the time stamp) in the ROOT folder even though the ROOT is not deleted..? Sorry if my question sounds dumb. Regards, Shashidhar V -Original

automating use of webXmlFragment result - how to do?

2006-02-01 Thread Olinga K. Abbott
Use of the webXmlFragment attribute with Jasper produces an xml fragment requiring inserting into web.xml. Although I could write some custom code to perform this task, probably using xslt, this seems like a common enough use case that a solution should already exist. Does anyone know of such a

JAAS and Realms configuration

2006-02-01 Thread Stefan Baramov
Is it possible to confiugrat a LoginModule (according to JAAS guidelines) which will apply different authorization strategies according to the application requesting the JAAS service. My initial thoughts were around configuring two separeta JAAS Realms in this way: conf/server.xml Realm

Re: JAAS and Realms configuration

2006-02-01 Thread Mark Thomas
Stefan Baramov wrote: Using the realm-name/ tag I was hoping to link the login configuration for each application to a particular JAAS Realm. However this is not happening. Both application will use the second JAAS Realm and it seems that realm-name tag is completely ignored. Finally, I

RE: tomcat + postgres

2006-02-01 Thread Tim Lucia
Without knowing what book you refer to, and what class or interface ConnectionPoolDataSource represents, it is difficult to know for sure. DataSource (javax.sql.DataSource) is an Interface, not a class. Objects returned from tomcat are sure to implement this interface, and are pooled behind

Re: Desperate for help with isapi_redirect.dll

2006-02-01 Thread Mark Thomas
Mark Thomas wrote: You will need to send the war directly to me rather than to the list as it will get stripped out. OK. Test war received. IIS installed (I'd be lost without VMWare). ISAPI 1.2.15 installed. ISAPI configured to talk to Tomcat 5.5.x HEAD. I can reproduce the problem. (So far so

Re: How to identify version of a running Tomcat and similar trivia

2006-02-01 Thread Bill Barker
The Http10Connector refers to HTTP/1.0. It also means that you've got a TC 3.x server running there. If you've got a conf/modules.xml then it's probably TC 3.3.1a (since 3.3.2 uses the CoyoteConnector by default). Otherwise, it's probably TC 3.2.4. It also explains why there is no /manager