Having a problem when accessing servlets.

2004-12-27 Thread alis asma alias
I am having a problem when accessing servlets in all applications from My tomcat webserver. It seems like the Tomcat is having a problem when executing the servlets. Before this all the applications worked but I realize after I got comment from one of the users this morning , it does not work. it

Re: windows-1251 (Russian encoding)

2004-12-27 Thread Igor
Hello! Please try to run tomcat with -Dfile.encoding=ISO-8859-1 java option. It might help I am from Ukraine too :-) Igor - Original Message - From: [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Friday, December 24, 2004 12:57 PM Subject: windows-1251 (Russian encoding)

Cornelia Mayerhofer/Vie/PorscheInt ist außer Haus.

2004-12-27 Thread cornelia . mayerhofer
Ich werde ab 24.12.2004 nicht im Büro sein. Ich kehre zurück am 10.01.2005. Ich werde Ihre Nachrichten nach meiner Rückkehr beantworten. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

extend JDBCRealm?

2004-12-27 Thread Ilja Smoli
Hi Question is: is it possible to extend org.apache.catalina.realm.JDBCRealm and override method authenticate(String username, String credentials)? And if it is possible (i guess it is), where to put it and etc... - To

Connection: close

2004-12-27 Thread Diego Rodriguez
Hi everybody! I'm using tomcat 4.1.27 to serve contents through a servlet. In my app it's very important to close connections everytime, so I use header Connection: close in the response everytime the content is served. My question is: this header makes Tomcat to close the connection by

can anybody please help me!!

2004-12-27 Thread Raasi Potluri
Dear Friends, I have written a simple servlet which reads a init parameter from the web.xml file and displays on the browser. I'm a beginner and trying to learn simple servlets, I have reached where I can read some init params from the web.xml file and displays on the browser, but all the simple

Re: extend JDBCRealm?

2004-12-27 Thread Tim Funk
Yes. Place the file in $CATALINA_HOME/classes/yourpackage/YourClass.class (or somewhere in the server classloader) -Tim Ilja Smoli wrote: Hi Question is: is it possible to extend org.apache.catalina.realm.JDBCRealm and override method authenticate(String username, String credentials)? And if it

Re: can anybody please help me!!

2004-12-27 Thread Hardik Tank
Hi, Are you using init() method of the servlet for fetching init parameters like this? String str = getServletConfig().getInitParameter(param1); Rgrds, Hardik --- Raasi Potluri [EMAIL PROTECTED] wrote: Dear Friends, I have written a simple servlet which reads a init parameter from the

Re: can anybody please help me!!

2004-12-27 Thread Raasi Potluri
Hello Hardik, thanks for your reply, yeas, I'm using the same code as you written, thanx eversomuch, please help me out the code looks like this [code] package com.jspbook; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class InternationalizedHelloWorld

Re: can anybody please help me!!

2004-12-27 Thread Hardik Tank
Hi, Use init(ServletConfig config) method of servlet for init parameters. bcs, init parameters will be set only once it is initialised... so, u have to do the same in the init() method only... thanks. --- Raasi Potluri [EMAIL PROTECTED] wrote: Hello Hardik, thanks for your reply, yeas, I'm

Re: Connection: close

2004-12-27 Thread DJohnson
Use a network packet trace tool like ethereal (http://www.ethereal.com/), which is open-source and available for multiple platforms. This will let you see if the connection is closed, and who initiates the close. Please respond to Tomcat Users List tomcat-user@jakarta.apache.org To:

Query on Upgrade of tomcat 4.0.6 to 5.0.x

2004-12-27 Thread Murthy Tetali
Hi, We would like to upgrade our production Tomcat Server from 4.0.6 to 5.0.x Our application is higly multi-threaded, having 2000 concurrent users. This Application is running on tomcat 4.0.6 from last 2 years without any problem. I will be looking forward for your

SSL encryption

2004-12-27 Thread VAN DER MARLIERE FREDERIC
Hi all. I would like to encrypt my login process so that login and password are not visible on the network. That's why I defined a SSL connector on port 8443 in my server.xml. My problem is that after the user logged in, request keep on using the https protocol on port 8443. Does someone know

Re: Query on Upgrade of tomcat 4.0.6 to 5.0.x

2004-12-27 Thread Wade Chandler
Murthy Tetali wrote: Hi, We would like to upgrade our production Tomcat Server from 4.0.6 to 5.0.x Our application is higly multi-threaded, having 2000 concurrent users. This Application is running on tomcat 4.0.6 from last 2 years without any problem. I will be looking forward for your

RE: extend JDBCRealm?

2004-12-27 Thread pandu yelamanchili
Yes it is. You will have to change the name in server.xml file also to your class name. Also the class/jar file should be placed in the common folder since tomcat needs access to it. Pandu From: Ilja Smoli [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To:

SV: SSL encryption

2004-12-27 Thread Roland Carlsson
Hi! SSL in tomcat does not allow for having the same session both http and https. Something about developer misstakes leading to security-holes that would reflekt badly back on Tomcat... At least that is the answer I got. You can write your own Connector if you really need to work your way

Re: Tomcat 4.1 DBCP DB2 Problem (UPDATED)

2004-12-27 Thread Friedrich Gonzalez
hi everyone. The problem did show up again in the web application. So the solution of upgrading the dbcp.jar helped performance but did not solve the situation. I found this site: http://java.sun.com/j2se/1.3/docs/guide/jdbc/getstart/bridge.doc.html/ ... The JDBC-ODBC Bridge driver is

Re: Connection: close

2004-12-27 Thread Diego Rodriguez
Thanks for your response, I will try this solution (I find it very useful for this and another doubts of tomcat handling requests/responses), but, any tomcat programmer knows if tomcat closes (or should close according to specs) the connection when a servlet sets header Connection: close

JVM Crash

2004-12-27 Thread Rodrigo Schmidt
Hello all, I deployed Atlassian Jira Enterprise 3.0.3 in Tomcat 5.0.28 and I experienced two random JVM crashes in a period of one month. The strange part is that the crashes occured when the application was at a very low load, doing almost nothing. I searched the archives for this topic, but I

Re: JVM Crash

2004-12-27 Thread Wade Chandler
Rodrigo Schmidt wrote: snip Local Time = Sun Dec 26 13:39:24 2004 Elapsed Time = 437787 # # HotSpot Virtual Machine Error : 11 # Error ID : 4F530E43505002EF # Please report this error at # http://java.sun.com/cgi-bin/bugreport.cgi # # Java VM: Java HotSpot(TM) Server VM (1.4.2_06-b03 mixed mode) #

Re: JVM Crash

2004-12-27 Thread Wade Chandler
Wade Chandler wrote: Rodrigo Schmidt wrote: snip Local Time = Sun Dec 26 13:39:24 2004 Elapsed Time = 437787 # # HotSpot Virtual Machine Error : 11 # Error ID : 4F530E43505002EF # Please report this error at # http://java.sun.com/cgi-bin/bugreport.cgi # # Java VM: Java HotSpot(TM) Server VM

Re: Newbie question on Database and struts

2004-12-27 Thread Dustin
This isn't exactly answering your question but... Check out iBATIS SQL Maps: http://www.ibatis.com/common/sqlmaps.html I won't go into how to use it. They have an excellent manual and tutorial. It is ridiculously easy to learn and use. Especially with Struts. Basically, you set up a query in

Including jsp files that exist outside of the web application

2004-12-27 Thread raiden
Hello, We have a web application that is overwritten each time we push a new version of the code into production. However, we have jsp files that are included by the web application (dynamically via a jsp:include), but are edited outside of the web application... and should not be overwritten

tomcat manager servlet stats sometimes off by one?

2004-12-27 Thread Annie Wang
hi, regarding http://host:8080/manager/status/all i am only using connector http8080. i was wondering if Request count and Error count for http8080 should be the sum of Request count and Error count of all web applications using port 8080? for example, in the below, http8080 shows 15 requests.

Re: How to configure struts enable application to reload

2004-12-27 Thread QM
On Mon, Dec 27, 2004 at 10:31:41AM +0530, Amit Gupta wrote: : My Concern is that whenever I deploy finished application to give demo to : clinet, I need to realod application at hosting server. As said I cannot do it : due to lack of access to tomcat manager. Chances are, they won't give you JMX

Re: Including jsp files that exist outside of the web application

2004-12-27 Thread QM
On Mon, Dec 27, 2004 at 12:22:50PM -0800, [EMAIL PROTECTED] wrote: : What is the best practice for including jsp files that exist outside the : web application? I don't think there really is one. read on: : I have seen a couple of threads of putting these : included jsp files in a separate web

Re: JVM Crash

2004-12-27 Thread Rodrigo Schmidt
Hi Wade, thanks for your reply. I already reported the bug, but they can take a long time to send an answer. Searching the bug database I found some posts that reported the problem happening with the client vm as well. I am considering trying another vm. I've just tested BEA JRockit 1.4.2_05,

Re: extend JDBCRealm?

2004-12-27 Thread Bob Feretich
I extended it and placed the class com.xxx.realm.classname in the server/classes folder for Tomcat 4.1.24. It's working, but I don't use any of the class methods in my application. And you need to name the class in server.xml as Pandu states. Host ... Context... Realm

Re: SSL encryption

2004-12-27 Thread Bob Feretich
A general solution for this will probably not be available until/unless rfc-2965 is approved. There is currently no standard that states the scope of a session as related to protocol or port. The servlet working group delayed clarifying this until Java Servlet Spec 2.5. Best practice rfc-2964

Re: Including jsp files that exist outside of the web application

2004-12-27 Thread raiden
On Mon, 27 Dec 2004, QM wrote: On Mon, Dec 27, 2004 at 12:22:50PM -0800, [EMAIL PROTECTED] wrote: : What is the best practice for including jsp files that exist outside the : web application? I don't think there really is one. read on: : I have seen a couple of threads of putting these

RE: Oracle 9i client connection to 8i database

2004-12-27 Thread Brad Rhoads
I always assumed the Oracle client was required. . . I uninstalled the client and get the same results. With the sid syntax I at least get an entry in the listener.log: 27-DEC-2004 16:58:11 * (CONNECT_DATA=(SID=test)(CID=(PROGRAM=)(HOST=__jdbc__)(USER=oracle))) *

RE: Including jsp files that exist outside of the web application

2004-12-27 Thread Brad Rhoads
On Mon, 27 Dec 2004, QM wrote: On Mon, Dec 27, 2004 at 12:22:50PM -0800, [EMAIL PROTECTED] wrote: : What is the best practice for including jsp files that exist outside the : web application? I don't think there really is one. read on: FWIW - We let our clients brand

Re: Including jsp files that exist outside of the web application

2004-12-27 Thread QM
On Mon, Dec 27, 2004 at 01:58:53PM -0800, [EMAIL PROTECTED] wrote: : Maybe that's the real question. Is there a way to include jsp code : outside of the webapp that will be compiled runtime? What about jsp:include/? (or is that %@ include /? I forget which is runtime, and which is

How to access web-app context-params from Servlet.init()?

2004-12-27 Thread Shankar Unni
I'd like to configure a set of web-app-level parameters for use by both Java-based Servlets, and JSP pages. I thought of setting these up as context-params at the web-app level in web.xml. For JSPs, all is cool: %= application.getInitParameter(foo) % returns these parameters. For Servlets,

RE: How to access web-app context-params from Servlet.init()?

2004-12-27 Thread Benson Margulies
You need a ServletContextListener, and you can get to them from there. -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Shankar Unni Sent: Monday, December 27, 2004 5:47 PM To: tomcat-user@jakarta.apache.org Subject: How to access web-app context-params from

Re: How to access web-app context-params from Servlet.init()?

2004-12-27 Thread QM
On Mon, Dec 27, 2004 at 02:47:27PM -0800, Shankar Unni wrote: : For JSPs, all is cool: %= application.getInitParameter(foo) % : returns these parameters. : : For Servlets, how do I get at them from the init() method? (I need them : there!). I find that calling config.getInitParameter() doesn't

Re: Including jsp files that exist outside of the web application

2004-12-27 Thread raiden
On Mon, 27 Dec 2004, QM wrote: On Mon, Dec 27, 2004 at 01:58:53PM -0800, [EMAIL PROTECTED] wrote: : Maybe that's the real question. Is there a way to include jsp code : outside of the webapp that will be compiled runtime? What about jsp:include/? (or is that %@ include /? I forget which

Re: SSL encryption

2004-12-27 Thread John Smith
I think you may do that the same way that hotmail and google does, namely; immediatly redirecting the user after loggin and placing some user authorized/online flag on a database run ethereal and trace the request/responce conversation while logging into hotmail . . . - Original Message

Re: How to run servlet for every 30 minutes in Tomcat 4.1.30

2004-12-27 Thread phil campaigne
Jukka Uusisalo wrote: Jorge Sopena wrote: Why is bad using own threads inside web application? Aren't all the servlet request actually a thread in Tomcat? I can't find a reason why it's so bad solution. I think that comes from J2EE specs. I do not remember is threads just forbidden but if you

Re: Including jsp files that exist outside of the web application

2004-12-27 Thread Liem Do
Could you do something like the following? You'll be essentially doing something like curl to get the output from the other app and simply writing it out in your app. This has been tested but should help you get the idea. I did something similar to send a POST request to an external site and then

Re: How to run servlet for every 30 minutes in Tomcat 4.1.30

2004-12-27 Thread phil campaigne
Frank W. Zammetti wrote: It's interesting, Craig and I had an exchange about threads in servlet containers last week... I can't find a link to the thread unfortunately. Anyway, the basic idea behind that don't spawn your own threads inside a servlet container admonishment is based more on the

Re: JVM Crash

2004-12-27 Thread Wade Chandler
Rodrigo Schmidt wrote: Hi Wade, thanks for your reply. I already reported the bug, but they can take a long time to send an answer. Searching the bug database I found some posts that reported the problem happening with the client vm as well. I am considering trying another vm. I've just tested

Re: Including jsp files that exist outside of the web application

2004-12-27 Thread raiden
On Mon, 27 Dec 2004 [EMAIL PROTECTED] wrote: On Mon, 27 Dec 2004, QM wrote: On Mon, Dec 27, 2004 at 01:58:53PM -0800, [EMAIL PROTECTED] wrote: : Maybe that's the real question. Is there a way to include jsp code : outside of the webapp that will be compiled runtime? What about

RE: JVM Crash

2004-12-27 Thread Amit Gupta
You are using User mode Linux or dedicated server? Amit Gupta Mobile: 91-9818052171 -Original Message- From: Rodrigo Schmidt [mailto:[EMAIL PROTECTED] Sent: Monday, December 27, 2004 11:18 PM To: tomcat-user@jakarta.apache.org Subject: JVM Crash Hello all, I deployed Atlassian Jira

RE: Newbie question on Database and struts

2004-12-27 Thread Amit Gupta
I tried SQLMaps. It is wonderful but is there any easy manual (except PDF that come with ibatis) available on net? Amit Gupta -Original Message- From: Dustin [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 28, 2004 1:28 AM To: Tomcat Users List Subject: Re: Newbie question on

I need to configure logs on my virtual hosting

2004-12-27 Thread Amit Gupta
Hi, I need to configure logs on my virtual hosting. How can I do it? Till now logs are created at global logs directory to which I don't have access. I need logs in my webapps directory.

Re: Query on Upgrade of tomcat 4.0.6 to 5.0.x

2004-12-27 Thread Murthy Tetali
Hi Wade, Thank You. Your opinion will be good input for me. The reason for upgradation is, we would like upgrade the specs and as well want to take the advantage of JMX support. Thank Regards Murthy Tetali Wade Chandler [EMAIL PROTECTED] wrote: Murthy Tetali wrote: Hi, We would like

tomcat 4.1.31 is working on linux, but not on solaris 9?

2004-12-27 Thread Bill Fung
Currently, tomcat 4.1.18 is running fine on host a. I want to upgrade tomcat from 4.1.18 to 4.1.31 on host a. I install 4.1.31 and use the default config (only uncomment the ssl part). It startup with error message (at the end of this post). Then I install the SAME keystore and copy of 4.1.31 to

Re: windows-1251 (Russian encoding)

2004-12-27 Thread
No effect. 8( I think truth is out there. :) Thanks for help. - Original Message - From: Igor [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Monday, December 27, 2004 11:42 AM Subject: Re: windows-1251 (Russian encoding) Hello! Please try to run tomcat with