Vedr.: Tomcat iis and ntlm

2004-03-22 Thread Thomas Nybro Bolding
Hi Warren, assuming you have setup the ISAPI redirector correct and has IIS serving JSP/Servlets through port 80 make sure you have added request.tomcatAuthentication=false to your jk2.properties file. /Thomas Warren Black [EMAIL PROTECTED] 21-03-2004 21:53 Besvar venligst til Tomcat Users

Jetspeed classpath?

2004-03-22 Thread Vi
Hello, I have tomcat and jetspeed. I have added all jar files which are in $CATALINA_HOME to $CLASSPATH. ( find $CATALINA_HOME -name *.jar ) And I still can't compile portlets. I can compile servlets thow. Anyone? - To

RE: Jetspeed classpath?

2004-03-22 Thread STOCKHOLM, Raymond
You need the JDK (not just the JRE) to compile your jsp/portlets. What errors do you get ? -Message d'origine- De : Vi [mailto:[EMAIL PROTECTED] Envoyé : lundi 22 mars 2004 10:58 À : Tomcat Users List Objet : Jetspeed classpath? Hello, I have tomcat and jetspeed. I have added all jar

Re: Jetspeed classpath?

2004-03-22 Thread Vi
:)) Yes, I have jdk Errors are like, can't find blah, and so on STOCKHOLM, Raymond wrote: You need the JDK (not just the JRE) to compile your jsp/portlets. What errors do you get ? -Message d'origine- De : Vi [mailto:[EMAIL PROTECTED] Envoyé : lundi 22 mars 2004 10:58 À : Tomcat Users

RE: Jetspeed classpath?

2004-03-22 Thread STOCKHOLM, Raymond
can't find blah Can you be more specific? -Message d'origine- De : Vi [mailto:[EMAIL PROTECTED] Envoyé : lundi 22 mars 2004 11:03 À : Tomcat Users List Objet : Re: Jetspeed classpath? :)) Yes, I have jdk Errors are like, can't find blah, and so on STOCKHOLM, Raymond wrote: You need the

Re: Jetspeed classpath?

2004-03-22 Thread Vi
Sorry, here they are: HelloWorldPortlet.java:5: package org.apache.jetspeed.portal.portlets does not exist import org.apache.jetspeed.portal.portlets.AbstractInstancePortlet; ^ HelloWorldPortlet.java:9: package org.apache.ecs does not exist import

RE: Jetspeed classpath?

2004-03-22 Thread STOCKHOLM, Raymond
org.apache.jetspeed.portal.portlets.* is located in jetspeed.jar In your webapp, you need jetspeed.jar in WEB-INF/lib, along with the various jars used by jetspeed (quite a lot...) Are the errors you get displayed in the jetspeed.log file ? Note : Jetspeed is delivered as a war (jetspeed.war)

Re: Jetspeed classpath?

2004-03-22 Thread Vi
Hi, yes. Everything is ok now. I put jetspeed jars where they need to be, and redifined classpath. Thanks for help. :) STOCKHOLM, Raymond wrote: org.apache.jetspeed.portal.portlets.* is located in jetspeed.jar In your webapp, you need jetspeed.jar in WEB-INF/lib, along with the various jars

java.util.zip.ZipException error message

2004-03-22 Thread Chris Daly
hi i'm trying to stop tomcat 4.1 (bin/shutdown.sh) and getting the following error (unix sun machine) java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.init(ZipFile.java:110) at

Ant and Tomcat Manager over HTTPS

2004-03-22 Thread Harry Mantheakis
Hello Does anyone know if it is possible to use the Tomcat Manager tasks in Ant over HTTPS? I had everything working beautifully over HTTP, then I got the bright idea to get Manager to work off HTTPS only, and now my Ant tasks are all broken. I re-set Ant's Manager ULR to HTTPS//:...:8443/...

RE: HttpSession Replication in Tomcat Cluster not working with EJ B's!

2004-03-22 Thread Bodycombe, Andrew
Think of a stateful session bean as an extension of the client. By storing the remote reference inside your session, you are attempting to persist your Client extension across 2 different clients (2 different tomcat instances). I don't think this is a sensible idea, and I'm not sure it's even

Re: Ant and Tomcat Manager over HTTPS

2004-03-22 Thread Gregor . Kovac
Importing CA's certificate to cacerts($JAVA_HOME/jre/lib/security) should resolve your problem. Password for cacerts is changeit Best regards, Kovi -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ | Gregor Kovac |[EMAIL PROTECTED] |

mod_jk2, lb_factor question

2004-03-22 Thread Torsten Henschel
Hi, can anybody describe me the values of lb_factor. lb_factor=1 lb_factor=10 Which value means more requests for the worker? Normaly 10, but the worker with value 1 recieves 99% of requests, but not all! Regards Torsten

How does Tomcat work?

2004-03-22 Thread Bernd Kauling
Hello list, i am a 18 year old student from germany, who needs some information about the tomcat server. How does it work? Do you have some background information i may can use? I would be pleased, for every little hint on this topic. thanks :) regards: Bernd

RE: How does Tomcat work?

2004-03-22 Thread STOCKHOLM, Raymond
go and check the documentation online : (tomcat 4.1) http://jakarta.apache.org/tomcat/tomcat-4.1-doc/index.html or (tomcat 5.0) http://jakarta.apache.org/tomcat/tomcat-5.0-doc/index.html An excellent book : O'Reilly', Tomcat The Definitive Guide -Message d'origine- De : Bernd Kauling

RE: How does Tomcat work?

2004-03-22 Thread Bernd Kauling
Whooaa many thanks :) regards: Bernd Am Mon, 2004-03-22 um 12.55 schrieb STOCKHOLM, Raymond: go and check the documentation online : (tomcat 4.1) http://jakarta.apache.org/tomcat/tomcat-4.1-doc/index.html or (tomcat 5.0) http://jakarta.apache.org/tomcat/tomcat-5.0-doc/index.html An

Dynamic class reloading and memory reclaiming

2004-03-22 Thread Allistair Crossley
Hi Guys I am able to generate an OutOfMemoryException on Tomcat by recompiling the main servlet of my application which forces Tomcat to reload my web application from scratch (i.e all the application scope objects and so on). Is it correct that Tomcat will not reclaim the memory that the old

Re: Ant and Tomcat Manager over HTTPS

2004-03-22 Thread Philipp Taprogge
Hi! Harry Mantheakis wrote: Does anyone know if it is possible to use the Tomcat Manager tasks in Ant over HTTPS? snip Now I am running my own server, and I have got to bite this bullet. Any pointers would be much appreciated! Firstly, it would be nice if you could start your own thread next time

Deployment strategy in a clustered environment

2004-03-22 Thread Hubbert, Thomas
Hi, I'm looking for a deployment strategy for my production server which enables me to deploy new code without terminating all the user sessions. I was thinking about using two tomcat 5 instances and set up in memory session replication, but I still don't know what to do after I stopped the first

Re: http://localhost/ works but http://ip address/ doesn't

2004-03-22 Thread Parsons Technical Services
Ted, Last thing first. I did find you can set the IP with address=??? in the server.xml. Check for this. Unless you have a specific need to you can remove it. Now in case that is not the issue: Sitting at you windows box that is running TC you can open IE and access http://localhost but if

RE: internal error (); ServletException: Error instantiating servlet; StackOverflowError

2004-03-22 Thread Rostislav Svoboda
Shapira, Yoav wrote: Well, thanks for providing a bit of entertainment as we head into the weekend :) you're welcomed :) Look in your Login servlet class for infinite loops or infinite recursion. This has nothing to do with tomcat's classes and it's far from being a tomcat bug. it was a sneaky

Re: Ant and Tomcat Manager over HTTPS

2004-03-22 Thread Parsons Technical Services
Phil, Harry DID start his own. He may have used the same subject line as an old message, but nothing existing in the last few months. Yeah I know, time for an afternoon nap or some caffeine. Doug - Original Message - From: Philipp Taprogge [EMAIL PROTECTED] To: Tomcat Users List

Re: Ant and Tomcat Manager over HTTPS

2004-03-22 Thread Philipp Taprogge
Hi! Parsons Technical Services wrote: Harry DID start his own. He may have used the same subject line as an old message, but nothing existing in the last few months. I am sorry, but he did not. Quoting from the headers: Philipp Taprogge wrote: Subject: Programmatically deploying webapps

RE: catalina logs

2004-03-22 Thread Shapira, Yoav
Hi, I understand that Tomcat has a logging API, I understand that it's a wrapper around some other log package (log4j?). Tomcat's logging is a mixture: it has its own Loggers and it uses commons-logging as well. As time goes on, we've converting more and more code to use commons-logging.

RE: Disable Coyote Connector at runtime?

2004-03-22 Thread Shapira, Yoav
Hi, Sure. See the pause(), stop(), destroy() methods of org.apache.coyote.tomcat5.CoyoteConnector. Yoav Shapira Millennium Research Informatics -Original Message- From: Andrew Clute [mailto:[EMAIL PROTECTED] Sent: Friday, March 19, 2004 10:37 PM To: [EMAIL PROTECTED] Subject: Disable

RE: Dynamic class reloading and memory reclaiming

2004-03-22 Thread Shapira, Yoav
Hi, Boy, you sure are running into a lot of problems ;) So many posts in the past weeks... I am able to generate an OutOfMemoryException on Tomcat by recompiling the main servlet of my application which forces Tomcat to reload my web application from scratch (i.e all the application scope

RE: HELP!

2004-03-22 Thread Shapira, Yoav
Hi, After spending a lot of time just trying to do a simple thing like configure Tomcat 3.2 to work with Apache 1.3, I'm beginning to rethink using Tomcat! Here is my question. I don't have an answer for your question, but a couple of tips: - There aren't as many people using Tomcat 3.x on this

RE: Image proccessing deployment problem, Give me some Idea's where to look.

2004-03-22 Thread Shapira, Yoav
Hi, Try the MyEclipse mailing list (I'm assuming there is one). Yoav Shapira Millennium Research Informatics -Original Message- From: Tom K [mailto:[EMAIL PROTECTED] Sent: Saturday, March 20, 2004 11:52 AM To: [EMAIL PROTECTED] Subject: Image proccessing deployment problem, Give me

RE: internal error (); ServletException: Error instantiating servlet; StackOverflowError

2004-03-22 Thread Shapira, Yoav
Hi, Cool, glad to help ;) Yoav Shapira Millennium Research Informatics -Original Message- From: Rostislav Svoboda [mailto:[EMAIL PROTECTED] Sent: Monday, March 22, 2004 8:23 AM To: Tomcat Users List Subject: RE: internal error (); ServletException: Error instantiating servlet;

RE: java.lang.OutOfMemoryError

2004-03-22 Thread Shapira, Yoav
Hi, You know, I remember the good old days on this list when people backed up claims and assertions with a bit of proof ;) Show us a profiler snapshot (or sequence thereof), provide a test program to reproduce the problem, anything really more than an empty claim... As to the original

Configuration Help

2004-03-22 Thread LILES, DAVID (CONTRACTOR)
For over a week I have been unable to get Tomcat 5 configured with IIS 5. I know the Tomcat server is working because I can get to the management console from the IP address:8080 and the two example web apps are working, both from the IP address:8080/servlet-examle and without the port... I

RE: Problem with tomcat talking to OpenEJB

2004-03-22 Thread Shapira, Yoav
Hi, java.lang.NullPointerException at org.apache.jsp.cardholder.account.statements_jsp._jspService(statements _jsp . java:206) Look at the java version of this JSP in tomcat's work directory. That will show you where the error occurs. If I had to guess without even looking, I'd say

Re: mod_jk (with Apache 1.3.29) support for cronolog

2004-03-22 Thread Anbu
Hello folks, I have been trying on making mod_jk 1.2.5 support for cronolog but it has not come through. I modified the mod_jk code so that we use the piped logging thru mechanims like ap_open_piped_log(). The cronolog processes are getting started. But the directories and log files are not

Parser error in web.xml

2004-03-22 Thread Edson Alves Pereira
Could someone explain why tomcat complain about it? 2004-03-22 10:54:06 ContextConfig[/osctrl-app] Parse error in application web.xml java.lang.IllegalArgumentException: addChild: Child name 'jsp' is not unique at

RE: Possible thread crossing

2004-03-22 Thread Shapira, Yoav
Hi, One thing I have noticed is that there is only one java thread when I start tomcat. On a previous install there had been about 8. Here is the output of ps -ef relative to tomcat: tomcat 13074 1 0 Mar11 ?00:00:32 /usr/local/java/bin/java

RE: Parser error in web.xml

2004-03-22 Thread Shapira, Yoav
Hi, If you want to override's the JSP servlet definition in $CATALINA_HOME/conf/web.xml, give it a different name. It's illegal to have to servlets with the same servlet-name in your web.xml (which is effectively merged at runtime with conf/web.xml). Yoav Shapira Millennium Research

RE: Tomcat Deployment question

2004-03-22 Thread Shapira, Yoav
Hi, The server doesn't need your .java files, only the compiled class files. You can put them in the WEB-INF/classes (as-is, .class files) or WEB-INF/lib (packaged in a jar file) directory of your webapp. You need to define and map your servlet in your WEB-INF/web.xml file. Yoav Shapira

Re: tomcat and css

2004-03-22 Thread Graham Reeds
Thank you, you answered my question - I was looking for how tomcat serves css files. I had noticed something strange. With Tomcat 3.2.1 running locally (http://localhost etc...), if I referenced a CSS file from a href=/mycss.css tomcat doesn't actually return it, though it works if you upload

Install Tomcat 5

2004-03-22 Thread lkiankok
Hi, I am trying to install tomcat version 5. After running jakarta-tomcat-5.0.19.exe, the tomcat does not seem to start. I checked the services Apache Tomcat, and try to start it. It returns a message Could not start the Apache Tomcat service on Local Computer. Error 1053: The service did not

Re: Ant and Tomcat Manager over HTTPS

2004-03-22 Thread Parsons Technical Services
Phil, In other words DON'T use the reply to when starting a new thread. Got It! Was unaware of that one. Haven't played with mail enough yet. Next on my to-do list. Now where was that old shoe I was saving for such an occasion. I stand corrected. Doug - Original Message - From:

Dynamic Class reloading and out of memory

2004-03-22 Thread Allistair Crossley
Yoav, I do apologise if it appears I am being prolific with problems and I do apologise if this is over critical, but it is testamount to the lack of quality documentation on Tomcat (and jakarta projects in general it has to be said) that has resulted in my not understanding how Tomcat is

RE: Install Tomcat 5

2004-03-22 Thread LILES, DAVID (CONTRACTOR)
I have experienced the same problem periodically... Oddly as it sounds, I've resolved the problem by re-booting the server -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, March 22, 2004 8:34 AM To: [EMAIL PROTECTED] Subject: Install Tomcat 5 Hi,

RE: Dynamic Class reloading and out of memory

2004-03-22 Thread Shapira, Yoav
Hi, Further, I will not be allowing reloading of webapps when the product goes live and the product does not have outofmemory issues so long as the webapp is left without reloading. Even though your app is architected perfectly you won't allow reloads? ;) That's a good practice. Thank you for

request/response headers

2004-03-22 Thread Koes, Derrick
What is the magic set of non-SSL request and/or response headers for a security-constrained servlet to download a pdf stream in IE 6 SP1? Netscape 7.1 works fine as a client, so I'm certain there is something I'm missing that is particular to IE. Thanks, Derrick This electronic

Re: Ant and Tomcat Manager over HTTPS

2004-03-22 Thread Harry Mantheakis
Hi Phil Firstly, it would be nice if you could start your own thread next time instead of hijacking an existing one with your question. I am sorry you thought I had hijacked a thread - I thought I had started a new one! (Did you have a thread with the same subject name?) As for your problem:

Difference between Basic Form authentication ??

2004-03-22 Thread Halcyon62 .
Hi all What is the difference between Basic Form authentication ?? Is it possible to pass the j_username j_password in the very first request to avoid the forward to a login page (or a popup window) Eric. _ MSN Premium

Garbage collector

2004-03-22 Thread Rob Wichterman
I was wondering if anyone had a preference in which garbage collector to use. I am currently using -XX:+UseConcMarkSweepGC but I was wondering which would be considered the best or most commonly used. Thanks

Re: Configuration Help

2004-03-22 Thread Adrian Lanning
Hey Dave, I'm a little fuzzy on my errors. Is 400 from iis or tomcat? Does tomcat work with the urls in standalone mode? Adrian - Original Message - From: LILES, DAVID (CONTRACTOR) [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, March 22, 2004 9:17 AM Subject:

Multiple login-config in the web.xml ?

2004-03-22 Thread Halcyon62 .
Hi Is it possible to map a login-config to a URL pattern ? Example: assign a FORM login-config to URL that starts by /admin/* and assign a BASIC long-config to URL that start with /download/* Thanks Eric. _ MSN Premium helps

RE: Configuration Help

2004-03-22 Thread Adam Fowler
400 Bad request http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html Generally Tomcat generates error HTML pages that have Apache Tomcat in hge letters at the top, so you should be getting them if its Tomcats fault. If you're using a URL like http://wibble.com/mydir then ensure you have

RE: Configuration Help

2004-03-22 Thread LILES, DAVID (CONTRACTOR)
Adrian, The 400 error is indicating that the page has been moved, server might not be available... blah, blah This URL will display the web app I'm working with... http://66.80.144.156/dynamichostings/ But if I try this URL I get the error http://dev.dynamichostings.com I think

AW: Garbage collector

2004-03-22 Thread Hubbert, Thomas
Hi Rob, I tried using the incremental gc mode which - in my case - led to a worse result than using the default gc mode. Currently I'm using the default mode for our production application and I'm not having any problems with it. But as with any other configuration I'm sure there is no best way

HPjmeter

2004-03-22 Thread Michael Südkamp
Hi, Are there any experiences with the profiling tool HPjmeter available from http://www.hp.com/products1/unix/java/hpjmeter with Tomcat? I can run it but the result shows a lot of Tomcat internals and I find it difficult to get any useful info about my web-app. Michael

Login by parameters (no prompts)

2004-03-22 Thread jginter
The application we are building allows file downloads from our UI. However, we also want users to be able to download these files using WGET from a command-line (perhaps as part of a script), like this: WGET 192.168.1.1/do/download?id=1 However, these file downloads are subject to

RE: Disable Coyote Connector at runtime?

2004-03-22 Thread Clute, Andrew
Thanks for the information...I didn't realize that the connector in Tomcat5 was now an Mbean. So, that should make it easier. Now, the next question is, is there any admin interface to control the lifecycle of that Mbean yet? Or would I need to do it programmatically? My ultimate goal would be

Does tomcat has an embeddable version like Jetty webserver?

2004-03-22 Thread Ikonne, Ike
Hi all, I would like to know if tomcat has an embeddable version like Jetty webserver provide? Thanks, Ike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Tomcat Deployment Question

2004-03-22 Thread k2ma
Hi Shapira, thanks so much for your help! right now, i've edited my web.xml file but my applet still can't make the connection to the servlet. 3 addition questions: 1. I would need to open an URL connection in my applet to the servlet... what URL would I give it? ie how do i make the

RE: Does tomcat has an embeddable version like Jetty webserver?

2004-03-22 Thread Shapira, Yoav
Hi, Sure, see the Embedded class JavaDoc at http://jakarta.apache.org/tomcat/tomcat-5.0-doc/catalina/docs/api/index. html. It also points you to an example usage supplied with tomcat. I won't get into an argument over who had an embedded version first, tomcat or jetty ;) Yoav Shapira

SocketException and NullPointerException

2004-03-22 Thread Hollerman Geralyn M
Folks, I have 2 errors in my catalina.out that I'm trying to chase down, and for both I've about come up with zero in terms of figuring out what's causing them and/or how to fix them. I'd appreciate ANY ideas/suggestions/comments! The first is of the form Mar 22, 2004 8:38:32 AM

Tomcat under Windows: deploying applications with shortcuts to other folders

2004-03-22 Thread Ashraf
Hi all, I'd like to have shortcuts to folders/files outside Tomcat installation added to my Tomcat application. Is this possible under windows? This would be similar to symbolic links in unix. Thanks, Ashraf __ Do you Yahoo!? Yahoo! Finance Tax Center - File

Re: bindaddress configuration??

2004-03-22 Thread Emerson Cargnin
any answer for this question? Emerson Cargnin wrote: I need to setup tomcat to listen to a different IP address (a virtual one create with ifconfig linux command)? I did it once a long time ago, nut don't remember exactly how to do it... I remember that this was a property at some node of

RE: bindaddress configuration??

2004-03-22 Thread D'Alessandro, Arthur
address For servers with more than one IP address, this attribute specifies which address will be used for listening on the specified port. By default, this port will be used on all IP addresses associated with the server. From: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html

RE: bindaddress configuration??

2004-03-22 Thread Shapira, Yoav
Hi, See the address attribute of the Connector element. Yoav Shapira Millennium Research Informatics -Original Message- From: Emerson Cargnin [mailto:[EMAIL PROTECTED] Sent: Monday, March 22, 2004 11:31 AM To: Tomcat Users List Subject: Re: bindaddress configuration?? any answer for

Re: Tomcat Deployment Question

2004-03-22 Thread k2ma
As u said, I changed my URL according to your advice but unfortunately, now there is another exception: java.io.EOFException... does this mean that my servlet file can be found now? Also, i now manually put my servlet class in:

RE: request/response headers

2004-03-22 Thread Koes, Derrick
Setting Cache-control to private resolves the problem for IE 6 SP1. -Original Message- From: Koes, Derrick Sent: Monday, March 22, 2004 9:51 AM To: '[EMAIL PROTECTED]' Subject: request/response headers What is the magic set of non-SSL request and/or response headers for a

IIS/Tomcat ISAPI - First request OK, next requests fail

2004-03-22 Thread Mariusz Stankiewicz
Hi, I've been looking for a solution to this problem everywhere, and I can't seem to find out what I've done wrong. I'm using IIS5.0/Win2kServer and Tomcat 5. I've set up isapi_redirect.dll all well and good, following all the doco's online. The problem I have is, the first request comes

Connector build error

2004-03-22 Thread Rick Lutowski
Am trying to build the .so connector to integrate tomcat 4.1.30 with apache 2.0.48 on debian linux. Both tomcat and apache are up and running just fine individually, but need a mod_jk2.so Ajp13 connector to get a servlet working. The current connectors source distribution

RE: Connector build error

2004-03-22 Thread Adam Fowler
Hi, This made me a bit miffed too. The developers have changed the jk/native2/README.txt to explain how to do it natively. Here is the post to the dev list below. If you get some annoying message saying could not find library -lapr-0 then fear not. You either: a) edit the

Bind webapp to virtual host

2004-03-22 Thread harm
Hi all, Sorry if this has been asked a million times before. Is it possible to bind a webapp to a specific virtualhost. So something like: www.myhost1.com --- /webapp1.war www.myhost2.com --- /webapp2.war And if so, how can this be achieved? Especially, if I use the integrated Tomcat in

RE: Bind webapp to virtual host

2004-03-22 Thread Adam Fowler
Not sure if its been asked before but... JBoss has the file: jboss/server/default/deploy/jbossweb-tomcat.sar/META-INF/jboss-service.xml that contains the Tomcat server.xml file. Just edit this and add two Host entries as described here:

Apache + Tomcat + MOD_JK on different machines

2004-03-22 Thread Hari Om
I am using Apache 2.0.47 and Tomcat 4.1.27 on my SuSE Linux. I had configured my mod_jk and it works just great! (My Web and App Server were on same box) Now I have a Web Server and App Server on a different box and was wondering what changes do I have to make to MOD_JK for the Integration to

Server_response_Close error message...

2004-03-22 Thread Bond
Hello all, We are getting an error on our website, and we can't seem to find any info about it, hope someone here can help. We have Tomcat Version 4.1.27 integrated with IIS 5 We are getting the following error: The server closed the connection while reading the response. Contact your

RE: Bind webapp to virtual host

2004-03-22 Thread harm
Thanks for your quick response... Unfortunatly this does not work... If I add a host entry I get the message: docBase has to be a WAR file I think it might complain because I used a exploded (unzipped) variant of my package. But, when i add something like this: host

How to write file into webapp directory?

2004-03-22 Thread Jonathan Melhuish
A FileOutputStream writes by default to the Tomcat bin directory. What's the easiest way to write a file into the current webapp folder? TIA, Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: Horrible memory leak in tomcat 5.0.19 (JMX bug?)

2004-03-22 Thread Joseph Shraibman
I know, I ran a few hundred lynx's at a time. Ralph Einfeldt wrote: To your question: I don't know. Having a delay in the jsp (or servlet) isn't enough to enshure concurrent requests. You have to do something on the calling site to enforce this. If you just call lynx as in your example, lynx

Re: How does Tomcat work?

2004-03-22 Thread Jonathan Melhuish
Bernd Kauling wrote: Hello list, i am a 18 year old student from germany, who needs some information about the tomcat server. How does it work? Do you have some background information i may can use? Yes, loads - http://jakarta.apache.org/tomcat/tomcat-5.0-doc/index.html If, after having

JSP encoding problems

2004-03-22 Thread Edson Alves Pereira
Hello folks, I created my JSP pages with JspC in the right encoding and i can ensure everything is ok, but when i see them already compiled in my web browser they show me a lot of encoding errors. All is made with ant, any hint? Regards, Edson

RE: How to write file into webapp directory?

2004-03-22 Thread Edson Alves Pereira
I think that the easyer way is to use, getRealPath( ). -- De: Jonathan Melhuish[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: segunda-feira, 22 de março de 2004 15:02 Para: Tomcat Users List Assunto: How to write file into webapp

RE: How to write file into webapp directory?

2004-03-22 Thread Shapira, Yoav
Hi, From a servlet, String path = getServletContext().getRealPath(/); File myFile = new File(path, myFileName.txt) ... Yoav Shapira Millennium Research Informatics -Original Message- From: Jonathan Melhuish [mailto:[EMAIL PROTECTED] Sent: Monday, March 22, 2004 1:02 PM To: Tomcat Users

Re: Tomcat5 service on Windows

2004-03-22 Thread Jonathan Melhuish
Daryl Stultz wrote: Tomcat Users List [EMAIL PROTECTED] writes: Hi, Not, tomcat doesn't require a JRE ;) It requires a JDK, always has. And the location of the JDK installation is not hard-coded anywhere. Are you sure? I know the JRE is installed as a part of the Java SDK, but I think

Re: Install Tomcat 5

2004-03-22 Thread Jonathan Melhuish
[EMAIL PROTECTED] wrote: Hi, I am trying to install tomcat version 5. After running jakarta-tomcat-5.0.19.exe, the tomcat does not seem to start. I checked the services Apache Tomcat, and try to start it. It returns a message Could not start the Apache Tomcat service on Local Computer. Error

Re: Tomcat under Windows: deploying applications with shortcuts to other folders

2004-03-22 Thread Jonathan Melhuish
Ashraf wrote: Hi all, I'd like to have shortcuts to folders/files outside Tomcat installation added to my Tomcat application. Is this possible under windows? This would be similar to symbolic links in unix. Have you tried making shortcuts, to see if it will follow them? Sorry for stating the

RE: How does Tomcat work?

2004-03-22 Thread Merrill, Roxann
I am going to be one of those people with very little understanding of Tomcat and how it works, so I am glad to read the response that there are people on this list willing to assist the newbes Roxann :) -Original Message- From: Jonathan Melhuish [mailto:[EMAIL PROTECTED] Sent: Monday,

Re: Install Tomcat 5

2004-03-22 Thread Emerson Cargnin
I had the same problem under windows 2000. It just sounds strange (the public JRE suggestion) becouse the service worked nicely for tomcat 4.1... thanks Emerson BTW, where can I find some docs about the configure shortcut that tomcat 5 has??? Jonathan Melhuish wrote: [EMAIL PROTECTED] wrote:

Re: bindaddress configuration??

2004-03-22 Thread Emerson Cargnin
do I have to change other nodes of server.xml file? or just the http connector is enough Ok I added the address property to Server too, but when I try to start apache (http) i got the error: [Mon Mar 22 15:15:24 2004] [crit] (98)Address already in use: make_sock: could not bind to port 80

Re: How to write file into webapp directory?

2004-03-22 Thread Jonathan Melhuish
Shapira, Yoav wrote: Hi, From a servlet, String path = getServletContext().getRealPath(/); File myFile = new File(path, myFileName.txt) Yay! :-) Thank you ever so much, you've just saved me a lot of stress! I can go home now, happy that I've actually acheived something today :-) Cheers,

Re: Ant and Tomcat Manager over HTTPS - Done!

2004-03-22 Thread Harry Mantheakis
Hi Kovi Thanks for the tip! That sorted me out :-) It took a little while (Googling, etc.) but I finally got the whole thing to work. One thing I had to do - and this is just for the record - was to make sure that my certificate's 'common name' was exactly the same as my server's host name.

Re: Tomcat under Windows: deploying applications with shortcuts to other folders

2004-03-22 Thread Hans
Hi, about 99,9% sure it will not follow them, because it sees shortcuts as files not as folders. Does it have to be a shortcut, or is it just a folder outside the tomcat root that you want to access ? That would have to be defined in the configuration files most probably. grtz Hans At 18:15

Database connection going from servlet to a bean

2004-03-22 Thread Tom K
I am going from a html--servlet--output to a jsp--javabean--jsp configuration. In my servlet I connect via JNDI like this: public void init(ServletConfig config) throws ServletException{ super.init(config); try{ Context env = (Context) new

IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.apache.commons.logging.impl.Log4JLogger

2004-03-22 Thread Mark Shifman
My server .xml is set out of the box with: unpackWARs=true autoDeploy=true If I copy a war file to webapps when there is an active session present i get this error: IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException:

RE: IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.apache.commons.logging.impl.Log4JLogger

2004-03-22 Thread Shapira, Yoav
Hi, Make sure all your session attributes are serializable: namely, do not put your logger in the session. Grep your code for session.setAttribute calls (and/or the JSP equivalent if you're using JSPs) to quickly ascertain this. Yoav Shapira Millennium Research Informatics -Original

Re: Login by parameters (no prompts)

2004-03-22 Thread Jacob Kjome
Well, if it were BASIC Auth, then you'd just do this (over SSL, of course, to hide the clear text username/password)... https://myusername:[EMAIL PROTECTED] If the username and password are valid, there will be no prompt for username or password. You'll get right to the resource. Jake Quoting

RE: Database connection going from servlet to a bean

2004-03-22 Thread Mike Curwen
There is a jspInit() method in a JSP that you can 'override' by doing: %! public void jspInit() { } % So the answer for 'how' is; the same way -Original Message- From: Tom K [mailto:[EMAIL PROTECTED] Sent: Monday, March 22, 2004 12:58 PM To: [EMAIL PROTECTED] Subject:

Re: Login by parameters (no prompts)

2004-03-22 Thread David Smith
Hi. Time to go from lurker to contributer: Ummm that's not conformant to RFC spec and it's being discontinued in IE (90+% of your clients right there). I wouldn't recommend putting username/password info in the URL anyway. -David Jacob Kjome wrote: Well, if it were BASIC Auth, then

RE: Database connection going from servlet to a bean

2004-03-22 Thread Tom K
Mike thanks for the feedback, but is this the practical solution? For example, I am using a connection pool, the init is only done once, the bean does the processing, after the processing it done (that is the beans set their properties) the results are forwarded to another jsp for viewing, so

Re: Connector build error

2004-03-22 Thread Rick Lutowski
Adam Fowler wrote: Hi, This made me a bit miffed too. The developers have changed the jk/native2/README.txt to explain how to do it natively. Here is the post to the dev list below. If you get some annoying message saying could not find library -lapr-0 then fear not. You either: a)

Re: Login by parameters (no prompts)

2004-03-22 Thread jginter
Thanks for the quick reply. Although this might work for BASIC authentication, we need to use FORM authentication so that the UI (which is 90% of our user access) can be validated properly (i.e., with nice forms, etc). Is it possible that your suggestion might work even though we are set for

RE: Database connection going from servlet to a bean

2004-03-22 Thread Shapira, Yoav
Hi, Mike thanks for the feedback, but is this the practical solution? For example, I am using a connection pool, the init is only done once, the bean does the processing, after the processing it done (that is the beans set their properties) the results are forwarded to another jsp for viewing,

RE: Database connection going from servlet to a bean

2004-03-22 Thread Mike Curwen
I think any object that has a connection can 'release' it back to the pool, simply by calling connection.close(). And no, the method I outlined isn't practical or a best practice, but if you were insistent on doing stuff in a JSP, that's how I'd do it (and have done it *meep*) ;)

Re: IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.apache.commons.logging.impl.Log4JLogger

2004-03-22 Thread Mark Shifman
Shapira, Yoav wrote: Hi, Make sure all your session attributes are serializable: namely, do not put your logger in the session. Grep your code for session.setAttribute calls (and/or the JSP equivalent if you're using JSPs) to quickly ascertain this. This is a very simple application in

  1   2   >