AW: how to get the original requestURI after jsp:forward()

2005-07-25 Thread Schwarz
Hello, I have a forward to a jsp-file. This jsp-file needs to know which URI was requested in the initial request. Currently, I can only see the requestURI of the forwarded jsp-file. Any ideas? set a session bean with the original uri.

Tomcat 5.5.9 does loads classes from the wrong webapp

2005-07-20 Thread Schwarz
Hi, short: the classloader does load classes from a complete seperate webapp, because classes are the same and differ only by code versions. with this setup in server.conf : Host name=servername.de Alias name=bugzilla.servername.de

How to redirect URL in Tomcat 4 server,xml?

2004-08-19 Thread Jürgen Schwarz
Hi, I want to redirect requests to another URL (different server) using the server.xml configuration file. Something like the Redirect directive in Apache Server except that I have only Apache Tomcat and not Apache Server. Is this possible to do in the server.xml file? Bye, Juergen GEFASOFT

AW: How to configure Tomcat to acceppt PUT requests for servlets?

2003-09-24 Thread Jürgen Schwarz
: Jürgen Schwarz [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 1:32 AM To: 'Tomcat Users List' Subject: AW: How to configure Tomcat to acceppt PUT requests for servlets? Yes, sorry, I meant PUT, but I have already a doPut() method in my servlet but it is never called because my

How to configure Tomcat to acceppt PUT requests for servlets?

2003-09-23 Thread Jürgen Schwarz
Hi, how do I configure Tomcat 4.x to accept POST requests for my servlet? I always receive HTTP error 405 Method not allowed. POST works without problems. Regards, Juergen - To unsubscribe, e-mail: [EMAIL PROTECTED] For

AW: How to configure Tomcat to acceppt PUT requests for servlets?

2003-09-23 Thread Jürgen Schwarz
ChemInformatics -Original Message- From: Jürgen Schwarz [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 10:52 AM To: [EMAIL PROTECTED] Subject: How to configure Tomcat to acceppt PUT requests for servlets? Hi, how do I configure Tomcat 4.x to accept POST requests

tomcat-3.3.2 dev 12. July 2003

2003-07-15 Thread Power-Netz \(Schwarz\)
[EMAIL PROTECTED] /java]# less /var/log/tomcat.log Exception in thread main java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.apache.tomcat.util.compat.Jdk11Compat.clinit(Jdk11Compat.java:77) at org.apache.tomcat.startup.Main.clinit(Main.java:153) [EMAIL

AW: tomcat-3.3.2 dev 12. July 2003

2003-07-15 Thread Power-Netz \(Schwarz\)
Check and see if you have commons-logging-api.jar under the %CATALINA_HOME%/common/lib directory. If you don't, you can download one at http://mirrors.ccs.neu.edu/Apache/dist/jakarta/commons/logging/binaries/ -Sudhir. thx..

GD Lib for TC or Java ?

2003-06-26 Thread Power-Netz \(Schwarz\)
Hi, I seek something like the gdlib , in best case the gdlib :) , for java. Has anyone an idea whats best for tc/java ? It should scale images and create images, should handle texts. It does not need to be full of functions , just some basic routines .. Thx M.Schwarz POWER-NETZ®

AW: [ot] Re: GD Lib for TC or Java ?

2003-06-26 Thread Power-Netz \(Schwarz\)
http://jcharts.sourceforge.net/ that's for charts, i meat more makeing complet images alone.. self drawn.. Power-Netz (Schwarz) wrote: Hi, I seek something like the gdlib , in best case the gdlib :) , for java. Has anyone an idea whats best for tc/java ? It should scale

AW: AW: [ot] Re: GD Lib for TC or Java ?

2003-06-26 Thread Power-Netz \(Schwarz\)
In that case - You can use awt to an offscreen buffer and just use all the awt methods. Then conver the buffer to an image. There are plenty google links about this. Interresting idea. Thx. - To unsubscribe, e-mail:

AW: Session Obj List

2003-04-02 Thread Power-Netz \(Schwarz\)
(B Is there any way we can get List /Enum of all session Objects in a (B particular Context? I am trying for disabling multiple logins by the same (B user. (B (Btell your login bean to be on applicationwide scope. (Band use a session scoped userdata bean. (B (BMarius (B (B

GNUPG TC , could be OT!

2003-03-10 Thread Power-Netz \(Schwarz\)
Hi, we have the following constellation: A webapp uses a java class to send emails , this class uses another class to SIGN this email via GNUPG. The host was up for app. 200 days without rebooting and everything worked fine until last friday ( An idiot @ our computer centre switched the

export exel stylesheets from jsp

2003-02-06 Thread Power-Netz \(Schwarz\)
Hi , does anyone know if theres a package to make exel stylesheets ? I want to dump a database and make downloadable on the fly for the user.. Ihr Support-Team POWER-NETZ® Full-Service-Provider Online-Support: Support: 0190 - 15 11 15 (EUR 0,62/Min)

AW: export exel spreadsheets from jsp

2003-02-06 Thread Power-Netz \(Schwarz\)
Thx all, thats very helpfull, because it's useable for Word as well. There is a link on jakarta home to article on how to use POI to create Excel reports. I would think that might be a starting point... and , jepp , it's of course spreadsheet :-) Did to much html in the last weeks ;-)

AW: AW: [OT] jspMyAdmin

2003-01-30 Thread Power-Netz \(Schwarz\)
o.k., I jared the classes dir, where exactly did you put the file and what was it's name? unimportant, all jars in the spezific dir are loaded/used.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

AW: [OT] jspMyAdmin

2003-01-29 Thread Power-Netz \(Schwarz\)
-Ursprungliche Nachricht- Von: Henning Heil [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 28. Januar 2003 21:50 An: Tomcat Users List Betreff: [OT] jspMyAdmin Good evening! (or good-whatever daytime you may have :-)) I just found an older version (0.6) of this tiny little

AW: [OT] jspMyAdmin

2003-01-29 Thread Power-Netz \(Schwarz\)
org.apache.jasper.JasperException: /myadmin/jspmyadmin/index.jsp(16,0) This absolute uri (http://jakarta.apache.org/taglibs/i18n-1.0) cannot be resolved in either web.xml or the jar files deployed with this application at

AW: Session Tracking based on the Client's IP

2002-11-21 Thread Power-Netz \(Schwarz\)
would have to punch in the code for verification, that would definetly defeat any script but is less convenient for the user. I would prefer to dynamically identify any individual user who uses my service more than say 10-15 times in a minute and ban him for an hour or so. Set a cookie

AW: JSP to JSP

2002-11-12 Thread Power-Netz \(Schwarz\)
is it possible to get the data of a remote database by invoking the jsp running at that location ???. Any help in this regard will be helpfull.. Why don't you connect to the other database directly ??? If you won't do that, send your data via a normal POST form to the other JSP M.Schwarz

AW: Sending GIF image from tomat web application to browser

2002-11-11 Thread Power-Netz \(Schwarz\)
-Ursprungliche Nachricht- Von: Peter Lee [mailto:tomcatuser;shaw.ca] Gesendet: Dienstag, 5. November 2002 11:52 An: [EMAIL PROTECTED] Betreff: Sending GIF image from tomat web application to browser I am trying to send GIF or JPEG images from a Tomcat web application servlet to

AW: JSP blank lines !?

2002-10-31 Thread Power-Netz \(Schwarz\)
There is one linefeed between each tag, if you want to avoid that, you have to use something like that: %! // some code %jsp:useBean ... /jsp:useBean ... /% // some code % Ralph is right , with one exception: the last % in your doc will produce a \n . If anyone knows how

AW: index.jsp + index$jsp.java + index$jsp.class == wasted-space.

2002-10-31 Thread Power-Netz \(Schwarz\)
-Ursprungliche Nachricht- Von: Garrett Smith [mailto:javadevmac2;yahoo.com] Gesendet: Freitag, 1. November 2002 03:24 An: Tomcat Users List Betreff: index.jsp + index$jsp.java + index$jsp.class == wasted-space. Can I eliminate this wasted space somehow? you will find

AW: Server.xml and keystore password

2002-10-31 Thread Power-Netz \(Schwarz\)
security hole. Is there anyway around this? Any ideas or recommendations will be greatly appreciated. set the ugw flags to readonly for the tomcat user :) -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail:

tc3.3.2dev: Exception: getOutputstream() called twice

2002-10-30 Thread Power-Netz \(Schwarz\)
Hi , I get this exception from tc 3.3.2dev: java.lang.IllegalStateException: getOutputStream() has already been called at org.apache.tomcat.facade.HttpServletResponseFacade.getWriter(HttpServletResp onseFacade.java:199) at

closed: php - jdni - java : simulation JSP via php?

2002-10-23 Thread Power-Netz \(Schwarz\)
Due to a lack of wisdome this posting has been closed. Has anyone expiriencies with converting jsp/java to php/j(d)?(n)i/java ? I have seen, that someone did using java under php. The question is how complicate is it, to rewrite jsp to php so, that the whole thing will works without TC .

php - jdni - java : simulation JSP via php?

2002-10-21 Thread Power-Netz \(Schwarz\)
Hi, Has anyone expiriencies with converting jsp/java to php/j(d)?(n)i/java ? I have seen, that someone did using java under php. The question is how complicate is it, to rewrite jsp to php so, that the whole thing will works without TC . It's a complex application, i uses perlscript via

AW: Problems binding tomcat to a single IP

2002-10-18 Thread Power-Netz \(Schwarz\)
but after a restart, the Tomcat blocks the other 9 ip ´s on the server too. You can't run two services on one port. You have to connect ISS and Tomcat with modjk or something similar. On the other hand , why using ISS if you can have tomcat alone??? :-))) cu -- To unsubscribe, e-mail:

AW: Too Many Sessions!

2002-10-10 Thread Power-Netz \(Schwarz\)
I'm using Tomcat 4.1.12 on a NT 4.0 system. I've been watching my logs and I'm noticing a lot of sessions being created for no apparent reason when there is no user activity on the system and no activity (as far as I can tell) in my servlet. Here's a sample from the logs... Do

AW: tomcat3.3.1 JDBC

2002-10-07 Thread Power-Netz \(Schwarz\)
-Ursprungliche Nachricht- Von: CLAIRE Celine [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 7. Oktober 2002 17:07 An: [EMAIL PROTECTED] Betreff: tomcat3.3.1 JDBC hello! I use tomcat 3.3.1 I would like to know if a web application can access a database via a JDBC driver? thanks

AW: tomcat3.3.1 JDBC

2002-10-07 Thread Power-Netz \(Schwarz\)
-Ursprüngliche Nachricht- Von: CLAIRE Celine [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 7. Oktober 2002 18:01 An: Tomcat Users List Betreff: RE: tomcat3.3.1 JDBC is there any configuration to do in server.xml and web.xml? nope. M.Schwarz -- To unsubscribe, e-mail:

AW: HELP! Configuring HTTP-headers per mime type?

2002-09-10 Thread Power-Netz \(Schwarz\)
I'd like to send out the following HTTP headers for all *.xml files Content-Cache=maxage=3600 while for *.jsp it should be Content-Cache=no-cache. I know how to configure headers per mime type under Apache, but how is this done under Tomcat? *Can* it be done? simple :

3.3.2dev and CGI-Servlets

2002-09-10 Thread Power-Netz \(Schwarz\)
Hi, has anyone a good resource for a cgi / php / perl servlets for TC 3.3.2dev ? I want to do calls like this /webapp/cgi/addblah.pl Is something like this available? Ihr Support-Team POWER-NETZ® Full-Service-Provider Online-Support: Support: 0190 - 15 11 15 (EUR 0,62/Min)

AW: Communicating with Tomcat3 through shell scripts.

2002-09-10 Thread Power-Netz \(Schwarz\)
We need to disable the user input sometimes and typically we store a flag in the session. To modify this flag we use a jsp page. If I can communicate with tomcat from shell scripts while it is running, I will be able to able to set it up in crontab etc. Write a framework that can be

AW: Tomcat standalone Versus Apache

2002-09-09 Thread Power-Netz \(Schwarz\)
What do most people run for production and why? Tomcat standalone or Tomcat with Apache? And for that matter, isn't the http server for Tomcat Apache - or is it something else? For help in your decision : we run our tc standalone because nearly every page handles dynamic content. just the

AW: line feeds in response

2002-09-09 Thread Power-Netz \(Schwarz\)
use %@. %jsp: / aso. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

AW: Tomcat standalone Versus Apache

2002-09-09 Thread Power-Netz \(Schwarz\)
Von: Vikramjit Singh [mailto:[EMAIL PROTECTED]] Betreff: RE: Tomcat standalone Versus Apache 4) https. i don't know if any certificate signing authorities do certs for java/tomcat (probably) but its very easy for mod_ssl or apache-ssl. Theres no difference in SSL, maybe you have one step

AW: Tomcat shutdown does not kill java process

2002-08-30 Thread Power-Netz \(Schwarz\)
-Ursprungliche Nachricht- Von: Jim Coble [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 30. August 2002 16:18 An: [EMAIL PROTECTED] Betreff: Tomcat shutdown does not kill java process I'm running Tomcat 4.0.3 stand-alone on a Solaris 8 server. When I execute

OT: mm.mysql 2.0.8 : unwanted query output : solution

2002-08-27 Thread Power-Netz \(Schwarz\)
Just informational for JDBC + MySQL user: If someone still uses the mm.mysql2.0.8 jdbc driver (maybe other versions too), you will have unwanted output from the driver in your stdout. class EscapeProcessor { . --- System.out.println(Query is: + stringbuffer1.toString());

noone here who ever made subdomains for vhosts?

2002-08-22 Thread Power-Netz \(Schwarz\)
I can't believe that noone ever made a subdomain within tomcat ? --repost-- Hi, I tried to setup a subdomain for a vhost, but it only reaches the sld vhost entry. As you can see i tried two version, but neither routet bugzilla to the /ticket webapp :-( Any ideas ? for tc.3.3.2 :

Q: subdomains for vhosts

2002-08-21 Thread Power-Netz \(Schwarz\)
Hi, I tried to setup a subdomain for a vhost, but it only reaches the sld vhost entry. As you can see i tried two version, but neither routet bugzilla to the /ticket webapp :-( Any ideas ? for tc.3.3.2 : --- v2 Host name=xxx.de Alias name=bugzilla.xxx.de

AW: Refresh Issue

2002-08-15 Thread Power-Netz \(Schwarz\)
Add this to your servlet generated html META HTTP-EQUIV=Cache-Control CONTENT=no-cache how about setting it in the resonse ? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

global errorpage?

2002-08-15 Thread Power-Netz \(Schwarz\)
Hi, which was the server.xml or apps-??.xml option to set an errorpage i.e. for page not found errors .. ??? TC 3.3.2 thx Ihr Support-Team POWER-NETZ® Full-Service-Provider Online-Support: Support: 0190 - 15 11 15 (EUR 0,62/Min) http://Support.Power-Netz.de (kostenlos)

AW: Missing constructor!??

2002-08-09 Thread Power-Netz \(Schwarz\)
I thought constructors weren't supposed to be marked public? Either way I tried and it made no difference. You have tested your class from a normal java test routine or? If you can use it from normal java code, you can use it from jsp, except you did something wrong in the includes..

AW: configuring tomcat for 100+ contexts

2002-08-09 Thread Power-Netz \(Schwarz\)
student in the servlet.xml. I would _like_ to be able to say for every directory that you find a WEB-INF, such as /var/www/htdocs/$course/$student/WEB-INF Would Context path= docBase=/var/www/htdocs/*/* appBase=/var/www/htdocs/ reloadable=true debug=0/ make any

AW: TC and applicationwide beans

2002-07-30 Thread Power-Netz \(Schwarz\)
If you need only one instance, how about some sort of static factory that creates one instance of your bean JVM-wide? good idea. thx. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

TC and applicationwide beans

2002-07-29 Thread Power-Netz \(Schwarz\)
Hi, can tomcat swap beans from one application to another if both use the classes? If I have a webapp A which granted access to the system and uses a login bean to store the data, does tc accept this bean ( in the same session ) on the webapp B with same classes? Or is a new session created if

AW: TC and applicationwide beans

2002-07-29 Thread Power-Netz \(Schwarz\)
So, you can use the same class definition of a bean in two separate webapps if the class definition is in $TOMCAT_HOME/lib/apps... (or alternatively, in the WEB-INF/lib directories of your two webapps, but that is just wasted space). The webapps will create two separate instances of your

AW: Request forwarding to a specific target frame?

2002-07-25 Thread Power-Netz \(Schwarz\)
3 ways to achive something like that: - include javascript in the output of the servlet - include javascript in the calling page that issues the request from the right target. - forget abou frames (That's what I prefer) 4th way: - output of [autoreloading] frameset and saving the

AW: localhost vs IP address in the URL

2002-07-23 Thread Power-Netz \(Schwarz\)
on the same machine where tomcat is installed. Using localhost is 20 times slower than using IP address. names - ip resolves take time . not caching the name - ip result will take MUCH MORE TIME :)) Doesnt make a difference if I use Apache/AJP/Tomcat or Direct to Tomcat web server. If

AW: TOMCAT + SSL or APACHE+TOMCAT+SSL??

2002-07-23 Thread Power-Netz \(Schwarz\)
Hello, I need to have SSL certificate . Web server is Tomcat4.04 serving static and dynamic pages. Should i upgrade it to APACHE+TOMCAT+SSL or TOMCAT+SSL will do? . TOMCAT+SSL will do. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL

AW: Reposting Bean question

2002-07-22 Thread Power-Netz \(Schwarz\)
I posted this question, but no one responded before, so here it is again: maybe , because you didn't even tell us, which system / releases you use? mySite folder jarred the bean with it's mainfest. Now I'm getting a ClassNotFoundException and a list of packages where it must be looking

getRemoteHost()/Addr() do always return localhost/127.0.0.1

2002-07-19 Thread Power-Netz \(Schwarz\)
Hi, can anyone tell me if it^s normal with TC 3.3.x to get localhost/127.0.0.1 instead of the correct remote ip with response.getRemoteHost/Addr() It's the default state of this tc implementation since the first day. Examples in /examples have the same problem. TC 3.3.x Linux RH 7.2 Ihr

AW: getRemoteHost()/Addr() do always return localhost/127.0.0.1

2002-07-19 Thread Power-Netz \(Schwarz\)
Hi, can anyone tell me if it^s normal with TC 3.3.x to get localhost/127.0.0.1 instead of the correct remote ip with response.getRemoteHost/Addr() It's the default state of this tc implementation since the first day. Examples in /examples have the same problem. TC 3.3.x Linux RH

AW: Connect JSP and Mysql

2002-07-18 Thread Power-Netz \(Schwarz\)
Hi, I get confuse when I try to connect JSP and Mysql. I use statement: %@page import=java.sql.*% % //Khai bao ket noi: Connection conn; Statement stm; ResultSet rs_matau; String sql_matau=; //Create connection: Class.forName(org.gjt.mm.mysql.Driver); conn =

jsp:forward encodeURL()

2002-07-18 Thread Power-Netz \(Schwarz\)
Hi, we found out that encodeURL() should not be used for URL for jsp:forward calls with TC 3.3.x . It just does not work. I think the forward takes filenames instead of URLs, right? Ok, just fine and clear because when the code gets to the forward the session is already set and the next

Excapetion Handling in JSP

2002-07-16 Thread Power-Netz \(Schwarz\)
Is it possible for me to catch this exception inside a jsp? A simple yes or no is enough :) -- javax.servlet.ServletException: getAttributeNames: Session already invalidated Root Cause: java.lang.IllegalStateException:

AW: Excapetion Handling in JSP

2002-07-16 Thread Power-Netz \(Schwarz\)
-Ursprüngliche Nachricht- Von: Power-Netz (Schwarz) [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 16. Juli 2002 12:59 An: tomcat liste Betreff: Excapetion Handling in JSP Is it possible for me to catch this exception inside a jsp? A simple yes or no is enough

AW: getRequestURI() final.

2002-07-11 Thread Power-Netz \(Schwarz\)
JRun 3.1 and Jrun 4.0 are sure it should return /index.jsp;jsessionid=384975938475 While all other Application servers return just: /index.jsp Who is right? If you had tested it with cookies turned off , you had have this result : index.jsp;jsessionid=n2mcnodtnl with cookies turned

AW: getRequestURI() final.

2002-07-11 Thread Power-Netz \(Schwarz\)
I have tested it on tomcat 4.0.x (Resine, WebLogic, WebSphere) both with cookies turn of and on both cases return /index.jsp (WITHOUT any jsessionid) only on JRUN jsession is added to the name of the file If you had tested it with cookies turned off , you had have this result :

AW: Connect JSP and Mysql

2002-07-10 Thread Power-Netz \(Schwarz\)
onnection: // Class.forName(org.gjt.mm.mysql.Driver); ^^^use this, it works. conn = DriverManager.getConnection(jdbc:mysql_caucho://localhost/ticket localhost:PORT/DBNAME PORT =

VHOSTS and different SSL keys??

2002-07-10 Thread Power-Netz \(Schwarz\)
Hi , is it possible to use different ssl keys for differen vhosts? TC 3.3.x Linux? M.Schwarz Ihr Support-Team POWER-NETZ® Full-Service-Provider Online-Support: Support: 0190 - 15 11 15 (EUR 0,62/Min) http://Support.Power-Netz.de (kostenlos) http://Support.Power-Netz.com

AW: Tomcat Performance question

2002-07-08 Thread Power-Netz \(Schwarz\)
One more point. These servlets must be in a secure environment. They use a Thawte certificate for security. I thought Tomcat could be configured to use a secure certificate fairly simply, but he says otherwise. Thawte certs can be used with tomcat, just the installation of the cert is

AW: Problems with jsp:setProperty

2002-07-03 Thread Power-Netz \(Schwarz\)
I'm unable to use setProperty with any of my beans with tomcat, it worked under jserv so I know my beans have the correct mutators. jsp:useBean id=conn class=wiBeans.ConnectionBean scope=session / jsp:setProperty name=conn property=username / jsp:setProperty name=conn

AW: updating records in a Mysql db using jsp.

2002-07-03 Thread Power-Netz \(Schwarz\)
Hi, I am using a mysql db with jdbc on a win2000 server with Tomcat. I wonder how I can update or delete items in a row or delete a complete row. I can select the specific data in the table and put it on the webpage, but I also want to edit this selected item. stmt.execute(update

AW: querying remote databases

2002-07-02 Thread Power-Netz \(Schwarz\)
Hi, I want to query remote databases, which are located in different computers and different instituon by using servlets an JSP. For this purpose, I want to send a parameter to this remote databases using an HTML form. And I want to receive all responds and serve them in a HTML page to

expired beans in expired sessions block new sessions? TC 3.3.x

2002-07-02 Thread Power-Netz \(Schwarz\)
Hi, i wonder about this behavior: 1. Login in my site via a login bean ( self made ) login.jsp ... jsp:useBean id=login scope=session class=web.Login/ if (login.valid()) { %jsp:forward page=prozesse.jsp/% } ... login Form target - login2.jsp ... This works great as long as

AW: Tomcat 4 - OpenSSL - IE client certificate works partially

2002-07-01 Thread Power-Netz \(Schwarz\)
This is the answere: http://www.comu.de/docs/tomcat_ssl.htm and its really easy. -Ursprungliche Nachricht- Von: Henrik Schultz [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 1. Juli 2002 16:43 An: tomcat-user Betreff: Tomcat 4 - OpenSSL - IE client certificate works partially

AW: JNDI - What resources are loaded?

2002-06-28 Thread Power-Netz \(Schwarz\)
OT: what is JNDI ??? Is there a way to list all of the JNDI Resources that are loaded for a particular context? Sure. Here is a snipp from my JNDI browser JSP: %@ page info=JNDI browser import=javax.naming.*, javax.sql.*, java.sql.* contentType=text/html;

Re: getSession always returns null

2002-06-25 Thread Marius Schwarz
Hello Jerry On 21-Jun-02, you wrote: The default behavior is to create an session if it doesn't already exist. I tried both with and without the true argument with the same effect. you use a invalid cookie setting in your browser. Even if cookies are enabled, it can be wrong. I had the same

Re: Memory blowup and performance problems

2002-06-25 Thread Marius Schwarz
Hello Michael On 19-Jun-02, you wrote: hi, i have a problem with running tomcat 4.03 on my linux box. after starting tomcat, java takes nearly all my memory (~500megs) until theres no more. for this it needs about 1 day. now tomcat needs about 1 to 2 minutes to react, escecially after

Re: tomcat won't load oracle driver

2002-06-25 Thread Marius Schwarz
Am 23-Jun-02 schrieb Keith Wannamaker: Someone mentioned on -dev that one has to remove the java*.sql classes from the oracle jdbc jar in order to work with jdk 1.4 (since 1.4 began bundling these classes as well) he could extract them and place them in his classpath, that has to work. Gruss

AW: Apache SSLCERT + Tomcat 3.3 + keytool

2002-06-14 Thread Power-Netz \(Schwarz\)
See http://www.comu.de/docs/tomcat_ssl.htm | i have a THAWTE standart CERTIFICATION which thawte says it's X.509v3 , | but the keytool does not allow to import the corresponding RSA key, | with / without the password, build as .pem file. | The same .pem works great with the apache. |

AW: Error found while connecting to mysql from JSP page deployedontomcat

2002-06-14 Thread Power-Netz \(Schwarz\)
Hi, I have installed tomcat on HP-UX box.I have deployed my web application on tomcat container.I have copied mysql JDBC driver under common/lib area. While running the application i am getting following error Cannot load JDBC driver class 'null' java.lang.NullPointerException:

AW: Tomcat performance issues

2002-06-14 Thread Power-Netz \(Schwarz\)
Hi All I have designed some jsp pages which extract from a database. But the pages can take upto 5 minutes before they show the content. Is there anyway I can pinpoit where the bottle neck is. My current settings are APACHE + MOD_jk + Tomcat 4.03 (could the bottle neck be my Apache and

Tomcat SSL + VHosts was: Apache SSLCERT + Tomcat 3.3 + keytool

2002-06-14 Thread Power-Netz \(Schwarz\)
and now to MultiDomainVirtuellHosting and SSL with different CERTS :-) To add serveral CERTS to the keyring is not the problem, but to tell Tomcat to use a specific key for a vhost. Is this possible?? I can't see any options for this in the vhost xml directives. Any suggestions? -- To

AW: Versisign Global Certificate and Tomcat 4.0.3?

2002-06-14 Thread Power-Netz \(Schwarz\)
http://www.comu.de/docs/tomcat_ssl.htm change the defaults alias to 'tomcat' and ie. password=changeit. -Ursprungliche Nachricht- Von: Ryan Cornia [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 14. Juni 2002 16:22 An: [EMAIL PROTECTED] Betreff: Versisign Global Certificate and

Apache SSLCERT + Tomcat 3.3 + keytool

2002-06-13 Thread Power-Netz \(Schwarz\)
Hi, i have a THAWTE standart CERTIFICATION which thawte says it's X.509v3 , but the keytool does not allow to import the corresponding RSA key, with / without the password, build as .pem file. The same .pem works great with the apache. How to import this RSA Key with keytool? Ihr

AW: How many rows have a ResultSet?

2002-06-12 Thread Power-Netz \(Schwarz\)
If you are using JDBC 1.2 you can do it like this (snippet): //declare your Statement to return a scroll insensitive result set //before you make the query stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY); //get the number of rows by scrolling

AW: JasperException

2002-06-10 Thread Power-Netz \(Schwarz\)
I'm trying to use a jsp page with a JavaBean and getting the following error: org.apache.jasper.JasperException: Unable to compile class for JSP The jsp page is very simple: html head titleTEST PAGE/title /head body jsp:useBean is=usr class=study.User /

AW: Security problem?

2002-06-07 Thread Power-Netz \(Schwarz\)
-Ursprüngliche Nachricht- Von: Laura [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 7. Juni 2002 10:47 An: [EMAIL PROTECTED] Betreff: Security problem? Hi all, it might be that I have a security problem and you should tell me if I am right. Well, I have a server with an

AW: Security problem?

2002-06-07 Thread Power-Netz \(Schwarz\)
This is one way, there are probably others. By using encryption you can make such a transaction secure. If site X is where they buy the thing and site Y is your site: You could get site X to pass two things: - the amount of money the user is to pay in clear text - the amount of money the

AW: Security problem?

2002-06-07 Thread Power-Netz \(Schwarz\)
In response to M. Schwarz, with public key encryption schemes know the clear text of really doesn't help very much at cracking the private key. Besides which, the user (presumably) knows what the price of the thing they are buy anyway right? So they know what the cleartext of the message

AW: AW: Security problem?

2002-06-07 Thread Power-Netz \(Schwarz\)
Hi all, thanks for your advices. Well, I have never worked with encryption. Well I know what is RSA, but how can I implement it? Do I have to install something? What have I to use to implement ansd use an RSA alghoritm? javax.crypto classes could help you. M.Schwarz -- To

AW: Oracle JDBC Drivers not fully working

2002-06-05 Thread Power-Netz \(Schwarz\)
It is still true. Did you find another drivers to replace them??? No. I had to work around it. But I didn't searched the whole internet for it ;) M.Schwarz -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

AW: Detect Cookie Rejection

2002-06-04 Thread Power-Netz \(Schwarz\)
Does anyone know of a way to detect when cookies are not accepted by a browser. My site uses session cookies and I'd like to be able to redirect people somewhere to tell them that the site requires cookies and what to do to activate them... An easy way to find out if cookies are enabled AND

Oracle JDBC Drivers not fully working

2002-06-04 Thread Power-Netz \(Schwarz\)
Hi, last time i tried oracle, i found that serveral extremly nice functions about traversing a resultset, are not implemented in the oracle drivers. They just throw SQL-exceptions. Be prepared for it :-) POWER-NETZ® Full-Service-Provider Online-Support: Support: 0190 - 15 11

AW: Session variables?

2002-06-04 Thread Power-Netz \(Schwarz\)
in JSP or JavaBeans? In JSP with JavaBeans :-) JSP:usebean id=yourname class=web.whatever scope=session / % int X; yourname.setValue(X); X = yourname.getValueX(); % public class whatever { private int x = 0; void setValue(int value) {

mod_jk slows down apache 1.3.23

2002-06-04 Thread Power-Netz \(Schwarz\)
Hi, I have found that the auto config of tomcat for mod_jk slows down my apache. I guess that i did not configure tomcat correctly. Where should i look for and change things?? mod_jk is working so far, as i can access my apps via normale http urls like http://domain/application but no longer

tomcat 3.3 | contexts | sessions

2002-05-31 Thread Power-Netz \(Schwarz\)
JDK 1.4 Tomcat 3.3final Linux RH7 Hi, i have two problems with tomcat: 1. i want one application i.e. /datenbank be accessible from only one virtual host, which is already defined in httpd.conf ( apache 1.3.23 ) . All other apps should not be accessible, and! no other vhost should access

AW: tomcat 3.3 | contexts | sessions

2002-05-31 Thread Power-Netz \(Schwarz\)
For 2: - Are cookies enable/disabled ? as far as i see , yes.. i check the session state with isNew(), and get everytime the true. - Do you use response.encodeUrl() for all links between pages ? how is it done? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional

AW: Killing endless loop servlet - howto ? killing JVM or unload class ?

2001-07-12 Thread Thorsten Schwarz
I thought the problem with threads was that you actually _cannot_ kill them, even in Java. I find this stupid, and hope I'm wrong! But That's the point. There is NO WAY in a JVM to stop or kill an arbitrary thread from outside. This is one of the main disadvantages in Java!! Even unloading

Re: [tomcat-user] how to use generic servlets

2001-07-02 Thread Niko Schwarz
Am Montag, 2. Juli 2001 03:05 schrieben erhelltest du mich hiermit: I have no idea about this in practice, but AFAIK I cant see any reason why you'd need to depart from a standard web.xml file. I'm assuming that the servlet-class needs to be a Servlet (not HttpServlet). How far have you

Re: [tomcat-user] how to use generic servlets

2001-07-02 Thread Niko Schwarz
Am Montag, 2. Juli 2001 03:59 schrieben erhelltest du mich hiermit: I have just gotten though enough of the Servlet 2.3 specs, and while a servlet *must* implement the HTTP protocol, it can also implement other protocols. are you sure you read correctly? if you mean the piece im reading,

Re: [tomcat-user] how to use generic servlets

2001-07-02 Thread Niko Schwarz
Am Montag, 2. Juli 2001 15:45 schrieben erhelltest du mich hiermit: [servlet containers must support generic servlets] You are absolutely correct. Servlet ok, could one say from here that tomcat does not go along the spec in all cases? developers, heard that? I am still volunteering to

[tomcat-user] how to use generic servlets

2001-07-01 Thread Niko Schwarz
Hi, all the literature i have just deals with HttpServlets and stuff, and anyway: its not much literature. could someone give me a nice example how to write a web.xml in which i can use my generic servlet which uses my own protocol? tia, nick -- The moon is a planet just like the Earth,

Is ajp12 a necessity..if so why

2001-03-16 Thread Brett Schwarz
I understand that ajp12 is a connector between Tomcat and a web server. So, if I only have Tomcat, then I would expect that I do not need to define it. However, I saw in docs that it is needed for Tomcat shutdown. So, bottom-line, is ajp12 needed for a stand alone Tomcat? If so, why? thanks,