too many open files
Hi, Conf: Tomcat 3.2.2 and jdk 1.1.8 OS Solaris 2.6 Browser Netscape After a while that my applet is running and tomcat loading classes, I receive following exception, continously and tomcat dies. Do you have an idea? Is like tomcat can't load any more classes: 2001-07-23 11:53:55 - PoolTcpEndpoint: Endpoint ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8089] ignored exception: ja va.net.SocketException: Too many open files - java.net.SocketException: Too many open files at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:379) at java.net.ServerSocket.implAccept(ServerSocket.java:199) at java.net.ServerSocket.accept(ServerSocket.java:181) at org.apache.tomcat.service.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java: 286) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:402) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java) 2001-07-23 11:53:55 - PoolTcpEndpoint: Endpoint ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8089] ignored exception: ja va.net.SocketException: Too many open files - java.net.SocketException: Too many open files at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:379) at java.net.ServerSocket.implAccept(ServerSocket.java:199) at java.net.ServerSocket.accept(ServerSocket.java:181) at org.apache.tomcat.service.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java: 286) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:402) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java) I saw some other people having this problem on this mailing-list, but the solution was to go to 3.2.2..and is where I am. Thanx a lot Raffaella _ Raffaella Tognolini * [EMAIL PROTECTED]
IIS and Tomcat
Hello. Anyone got a handy url of 'how to get tomcat 4 working with IIS'? I actually hate IIS, but I'm being forced to do this. Sob. John Baker -- John Baker, BSc CS. Java developer, Linux lover. I don't wanna rock, DJ.
Unable to instantiate Login Configuration
Hi, I have a JSP which is used to authenticate a user to a service. This JSP reads a value from a Javabean which is in turn using Jaas which determines whether the user has authentication or not.When I run this JSP through tomcat I receive an error saying Unable to instantiate login configuration. javax.servlet.ServletException: Unable to locate a login configuration Could anyone help me with this problem.Thanks in advance. Thomas.
RE: please help
Hi Please some one tell me what i am doing wrong. Trying to compile a servlet. It worked for me before . now i am getting invalid flag. regards. C:\java>javac -classpath=C:/tst/java/jsdk2.1/Servlet.jar HelloServelt.java javac: invalid flag: -classpath=C:/tst/java/jsdk2.1/Servlet.jar Usage: javac where possible options include: -g Generate all debugging info -g:none Generate no debugging info -g:{lines,vars,source} Generate only some debugging info -O Optimize; may hinder debugging or enlarge class file -nowarn Generate no warnings -verbose Output messages about what the compiler is doing -deprecation Output source locations where deprecated APIs are us ed -classpath Specify where to find user class files -sourcepath Specify where to find input source files -bootclasspath Override location of bootstrap class files -extdirs Override location of installed extensions -d Specify where to place generated class files -encoding Specify character encoding used by source files -target Generate class files for specific VM version C:\java>
AW: too many open files
Hi, My applet ist just a java-"application" and is doing nothing with files, the only files I open directly, I close them. In DEBUG of tomcat, you can see, it's just loading classes and after a while (not long) doing nothing else then opening different windows in my applet (new classes are loaded) tomcat can't anymore... On my Solaris there is a soft-limit of 64 open files and an hard limit of 1024 I could add some more to the soft-limit, but I thought, that jvm or the classloader of tomcat should just work There are other people that also did last-test with their applet and had the same problem, and just on solaris, but not on linux or others... Thanx Raffaella > -Ursprüngliche Nachricht- > Von: John Clark Naldoza y Lopez [SMTP:[EMAIL PROTECTED]] > Gesendet am: Dienstag, 24. Juli 2001 10:38 > An: [EMAIL PROTECTED] > Betreff: Re: too many open files > > "Tognolini Raffaella, CH" wrote: > > > > Hi, > > Conf: Tomcat 3.2.2 and jdk 1.1.8 OS Solaris 2.6 > > Browser Netscape > > > > After a while that my applet is running and tomcat loading classes, I > > receive > > following exception, continously and tomcat dies. Do you have an idea? > > Is like tomcat can't load any more classes: > > What's the maximum number of open files for Solaris 2.6? How many open > files are there? > > What does your applet do? Does it open files and not close them after > they are read? > > > Cheers, > > > John Clark > -- > /) John Clark Naldoza y Lopez (\ > / )Software Design Engineer III ( \ > _( (__ Web-Application Development_) )_ > (((\ \> /_>Cable Modem Network Management System <_\( \_/ / NEC Telecom Software Phils., Inc. \ \_/ ) > \ / \ / >\_/ phone: (+63 32) 233-9142 loc. 3112\_/ >/ / cellphone: (+63 919) 399-4742 \ \ > / / email: [EMAIL PROTECTED]\ \
RE: please help
use C:\java>javac -classpath %CLASSPATH%;C:\tst\java\jsdk2.1\Servlet.jar HelloServelt.java instead ;) -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Envoyé : mardi 24 juillet 2001 11:10 À : [EMAIL PROTECTED] Objet : RE: please help Hi Please some one tell me what i am doing wrong. Trying to compile a servlet. It worked for me before . now i am getting invalid flag. regards. C:\java>javac -classpath=C:/tst/java/jsdk2.1/Servlet.jar HelloServelt.java javac: invalid flag: -classpath=C:/tst/java/jsdk2.1/Servlet.jar Usage: javac where possible options include: -gGenerate all debugging info -g:none Generate no debugging info -g:{lines,vars,source}Generate only some debugging info -OOptimize; may hinder debugging or enlarge class file -nowarn Generate no warnings -verbose Output messages about what the compiler is doing -deprecation Output source locations where deprecated APIs are us ed -classpath Specify where to find user class files -sourcepath Specify where to find input source files -bootclasspath Override location of bootstrap class files -extdirsOverride location of installed extensions -d Specify where to place generated class files -encoding Specify character encoding used by source files -target Generate class files for specific VM version C:\java>
Re: please help
I doubt that ever worked I'm afraid. Try replacing "=" with a single whitespace, e.g. javac -classpath C:/tst/java/jsdk2.1/Servlet.jar HelloServelt.java Good luck, Matt. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 24 July 2001 10:10 Subject: RE: please help Hi Please some one tell me what i am doing wrong. Trying to compile a servlet. It worked for me before . now i am getting invalid flag. regards. C:\java>javac -classpath=C:/tst/java/jsdk2.1/Servlet.jar HelloServelt.java javac: invalid flag: -classpath=C:/tst/java/jsdk2.1/Servlet.jar Usage: javac where possible options include: -g Generate all debugging info -g:none Generate no debugging info -g:{lines,vars,source} Generate only some debugging info -O Optimize; may hinder debugging or enlarge class file -nowarn Generate no warnings -verbose Output messages about what the compiler is doing -deprecation Output source locations where deprecated APIs are us ed -classpath Specify where to find user class files -sourcepath Specify where to find input source files -bootclasspath Override location of bootstrap class files -extdirs Override location of installed extensions -d Specify where to place generated class files -encoding Specify character encoding used by source files -target Generate class files for specific VM version C:\java>
View destro6y in servlet.log
Hi! I,m trying to check out when servlets are destroyed by Tomcat That event isn't shown in my servlet.log (there are only init events) is it possible to view destroy() method in that log file? When are servlets destroyed by container? Thanks a lot and regards form Spain
RE: View destro6y in servlet.log
Try this ;) http://www.jguru.com/faq/view.jsp?EID=211722 -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]De la part de Jaime Velasco Praga Envoyé : mardi 24 juillet 2001 11:15 À : [EMAIL PROTECTED] Objet : View destro6y in servlet.log Hi! I,m trying to check out when servlets are destroyed by Tomcat That event isn't shown in my servlet.log (there are only init events) is it possible to view destroy() method in that log file? When are servlets destroyed by container? Thanks a lot and regards form Spain
AW: too many open files
How many open files are needed by tomcat depend on several points. Have a look at lsof (as root) to see what and how many files are open at a given time. 64 open files is a quite low number. (Even the limit of 1024 can be quite low if the server is under heavy load or runs more applications than just the web server and tomcat.) > -Ursprüngliche Nachricht- > Von: Tognolini Raffaella, CH [mailto:[EMAIL PROTECTED]] > Gesendet: Dienstag, 24. Juli 2001 11:10 > An: '[EMAIL PROTECTED]' > Betreff: AW: too many open files > > > Hi, > My applet ist just a java-"application" and is doing nothing > with files, the > only files I open directly, I close them. > In DEBUG of tomcat, you can see, it's just loading classes > and after a while > > (not long) doing nothing else then opening different windows > in my applet > (new classes are loaded) tomcat can't anymore... > On my Solaris there is a soft-limit of 64 open files and an > hard limit of > 1024 I could add some more to the soft-limit, but I thought, > that jvm or the > classloader of tomcat should just work > There are other people that also did last-test with their > applet and had the > same problem, and just on solaris, but not on linux or others... > Thanx > Raffaella > > > -Ursprüngliche Nachricht- > > Von:John Clark Naldoza y Lopez [SMTP:[EMAIL PROTECTED]] > > Gesendet am:Dienstag, 24. Juli 2001 10:38 > > An: [EMAIL PROTECTED] > > Betreff:Re: too many open files > > > > "Tognolini Raffaella, CH" wrote: > > > > > > Hi, > > > Conf: Tomcat 3.2.2 and jdk 1.1.8 OS Solaris 2.6 > > > Browser Netscape > > > > > > After a while that my applet is running and tomcat > loading classes, I > > > receive > > > following exception, continously and tomcat dies. Do you > have an idea? > > > Is like tomcat can't load any more classes: > > > > What's the maximum number of open files for Solaris 2.6? > How many open > > files are there? > > > > What does your applet do? Does it open files and not close > them after > > they are read? > > > > > > Cheers, > > > > > > John Clark > > -- > > /) John Clark Naldoza y Lopez (\ > > / )Software Design Engineer III ( \ > > _( (__ Web-Application Development_) )_ > > (((\ \> /_>Cable Modem Network Management System <_\ > ( \_/ / NEC Telecom Software Phils., Inc. \ \_/ ) > > \ / \ / > >\_/ phone: (+63 32) 233-9142 loc. 3112\_/ > >/ / cellphone: (+63 919) 399-4742 \ \ > > / / email: [EMAIL PROTECTED]\ \ >
AW: too many open files
lsof is also on Solaris available? (out of context, but just to follow disc. ;-)) Have you ever seen this problem? Has something with the classloader to do, or surely not? Thanx R. > -Ursprüngliche Nachricht- > Von: Ralph Einfeldt [SMTP:[EMAIL PROTECTED]] > Gesendet am: Dienstag, 24. Juli 2001 11:43 > An: '[EMAIL PROTECTED]' > Betreff: AW: too many open files > > How many open files are needed by tomcat depend > on several points. > > Have a look at lsof (as root) to see what and > how many files are open at a given time. > > 64 open files is a quite low number. (Even the limit of > 1024 can be quite low if the server is under heavy load > or runs more applications than just the web server and > tomcat.) > > > -Ursprüngliche Nachricht- > > Von: Tognolini Raffaella, CH [mailto:[EMAIL PROTECTED]] > > Gesendet: Dienstag, 24. Juli 2001 11:10 > > An: '[EMAIL PROTECTED]' > > Betreff: AW: too many open files > > > > > > Hi, > > My applet ist just a java-"application" and is doing nothing > > with files, the > > only files I open directly, I close them. > > In DEBUG of tomcat, you can see, it's just loading classes > > and after a while > > > > (not long) doing nothing else then opening different windows > > in my applet > > (new classes are loaded) tomcat can't anymore... > > On my Solaris there is a soft-limit of 64 open files and an > > hard limit of > > 1024 I could add some more to the soft-limit, but I thought, > > that jvm or the > > classloader of tomcat should just work > > There are other people that also did last-test with their > > applet and had the > > same problem, and just on solaris, but not on linux or others... > > Thanx > > Raffaella > > > > > -Ursprüngliche Nachricht- > > > Von: John Clark Naldoza y Lopez [SMTP:[EMAIL PROTECTED]] > > > Gesendet am: Dienstag, 24. Juli 2001 10:38 > > > An: [EMAIL PROTECTED] > > > Betreff: Re: too many open files > > > > > > "Tognolini Raffaella, CH" wrote: > > > > > > > > Hi, > > > > Conf: Tomcat 3.2.2 and jdk 1.1.8 OS Solaris 2.6 > > > > Browser Netscape > > > > > > > > After a while that my applet is running and tomcat > > loading classes, I > > > > receive > > > > following exception, continously and tomcat dies. Do you > > have an idea? > > > > Is like tomcat can't load any more classes: > > > > > > What's the maximum number of open files for Solaris 2.6? > > How many open > > > files are there? > > > > > > What does your applet do? Does it open files and not close > > them after > > > they are read? > > > > > > > > > Cheers, > > > > > > > > > John Clark > > > -- > > > /) John Clark Naldoza y Lopez (\ > > > / )Software Design Engineer III ( \ > > > _( (__ Web-Application Development_) )_ > > > (((\ \> /_>Cable Modem Network Management System <_\ > > ( \_/ / NEC Telecom Software Phils., Inc. \ \_/ ) > > > \ / \ / > > >\_/ phone: (+63 32) 233-9142 loc. 3112\_/ > > >/ / cellphone: (+63 919) 399-4742 \ \ > > > / / email: [EMAIL PROTECTED]\ \ > >
RE: View destro6y in servlet.log
OK, thanks, but one cuestion more: I,m not Unix administrator; how can I access Tomcat windows or those Tomcat messages?
Re: Tomcat-Apache integration
> On Tue, 24 Jul 2001, Gurjeet Singh Osahan wrote: > > >> First I run tomcat3.2.3 and it runs fine >> Next when I try running apache it gives the error message : >> >> "Invalid command JkWorkersFile,perhaps mispelled or defined by a module >> not included in the servers cofiguration" >> >> Is some command to be added in httpd.conf file. > >--On tirsdag, juli 24, 2001 15:56:43 +1000 Dmitri Colebatch <[EMAIL PROTECTED]> wrote: > > You have loaded the module haven't you? > > LoadModule jk_module /packages/apache/libexec/mod_jk.so > I recently integrated tomcat 3.2.3 with Apache 1.3.14 on a system slightly upgraded from RedHat 7.0, using mod_jk. The auto-generated configuration-file (made for inclusion in httpd.conf), searched for mod_jk.so in the libexec-directory, while it turned out that the httpd.conf-file requested libraries through a directory-link called "modules". I solved the problem by creating a link called "libexec" in the same place as the link called "modules", pointing at the same directory as "modules", that is "/usr/lib/apache". I think this Apache-installation was the standard installation that came with RedHat 7.0, so the problem with incorrect names and links might apply elsewhere. This is worth a look-see if you still have this problem. Then again, someone here might've been tweeking on our Apache without my knowledge of it ;) Regards, Arne Meyer Hansen
Tomcat 3.2
Hello, i just implemented Tomcat 3.2 on a Windows 2000 box. I want to start Tomcat as a NT service and i followed the instructions on the "working with the Jakarta NT service" document. A service named "Tomcat" is working properly but when the user loggs off from the system, the service stops.This is an unwanted situation. Could you please tell me if there are any workarounds or methods to avoid this situation? Thanks a lot Deniz Gülmez Implementation and Localization Specialist Digilane Professional Internet Services Inc. http://www.digilane.com.tr address: Yapi Kredi Plaza C Blok Kat 8 80620 Levent Istanbul Turkey phone : +90 212 270 96 66(pbx) fax: +90 212 278 11 49
Re: Tomcat 3.2
Hi, Just replace Classic VM with HotSpot Server VM. Best regards Dalibor [EMAIL PROTECTED] __ Reply Separator _ Subject: Tomcat 3.2 Author: [EMAIL PROTECTED] (Deniz Gülmez <[EMAIL PROTECTED]>) at INTERNET Date:24.7.2001 5:08 Hello, i just implemented Tomcat 3.2 on a Windows 2000 box. I want to start Tomcat as a NT service and i followed the instructions on the "working with the Jakarta NT service" document. A service named "Tomcat" is working properly but when the user loggs off from the system, the service stops.This is an unwanted situation. Could you please tell me if there are any workarounds or methods to avoid this situation? Thanks a lot Deniz Gülmez Implementation and Localization Specialist Digilane Professional Internet Services Inc. http://www.digilane.com.tr address: Yapi Kredi Plaza C Blok Kat 8 80620 Levent Istanbul Turkey phone : +90 212 270 96 66(pbx) fax: +90 212 278 11 49
socket write error
hello I keep getting this error all the time when I start tomcat and often when I request for any page. Can anyone throw some light on it. 2001-07-24 03:03:40 - Ctx( /projects ): IOException in: R( /projects + /aspssales/ReportDispFrame.jsp + null) Connection reset by peer: socket write error 2001-07-24 03:03:40 - Ctx( /projects ): IOException in: R( /projects + /aspssales/ReportDispFrame.jsp + null) Connection reset by peer: socket write error Thanks in anticipation Kaushik Pattnayak
Re: SSL Apache & Tomcat (NameBased VirtualHosts)
Here are the solution from the official modssl FAQ: Why can't I use SSL with name-based/non-IP-based virtual hosts? [L] The reason is very technical. Actually it's some sort of a chicken and egg problem: The SSL protocol layer stays below the HTTP protocol layer and encapsulates HTTP. When an SSL connection (HTTPS) is established Apache/mod_ssl has to negotiate the SSL protocol parameters with the client. For this mod_ssl has to consult the configuration of the virtual server (for instance it has to look for the cipher suite, the server certificate, etc.). But in order to dispatch to the correct virtual server Apache has to know the Host HTTP header field. For this the HTTP request header has to be read. This cannot be done before the SSL handshake is finished. But the information is already needed at the SSL handshake phase. Bingo! Lars Nielsen Lind - Original Message - From: "John Bazeley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 24, 2001 2:42 AM Subject: RE: SSL Apache & Tomcat (NameBased VirtualHosts) > Lars,> > I thought you could only have SSL on one of your name based virtual> hosts. To have more than 1 SSL server you need to move over to IP-> based hosting.> > There's a very good reason for this which slips my mind. Something> to do with SSL handshaking happening before you read the hostname> from out of the HTTP headers. Check the archives for a more, erm,> complete explanation. Also maybe www.modssl.org has an explanation.> > cheers,> --> John> > > > -Original Message-> > From: Lars Nielsen Lind [mailto:[EMAIL PROTECTED]]> > Sent: Monday, 23 July 2001 22:13> > To: [EMAIL PROTECTED]> > Subject: Re: SSL Apache & Tomcat (NameBased VirtualHosts)> >> >> > Anyone that have accomplished to get SSL working with> > Apache/Jakarta-Tomcat and NameBased VirtualHosts?> >> > Is it possibe to receive a copy of the httpd.conf and the SSL> > conf files - and an URL to the website where it is working?> >> > Thanks.> >> > Lars Nielsen Lind> >> > - Original Message -> > From: "Lars Nielsen Lind" <[EMAIL PROTECTED]>> > To: <[EMAIL PROTECTED]>> > Sent: Thursday, July 19, 2001 10:24 PM> > Subject: Re: SSL Apache & Tomcat (NameBased VirtualHosts)> >> >> > It dows not function correct. So I'll have to start one Apache> > instance with the httpd.conf file (port80) and another with the> > httpd_ssl.conf file (port443 - made by myself). Just as it is> > written in Professional Apache from Wrox.> >> > It is apparently the one and only way to solve the problems with> > NameBased VirtualHost and mod_ssl.> >> > I have tried to use the apache, apachectl command, and also the> > /ect/rc.d/init.d/httpd start command with -f , but it> > won't start with the SSL settings. The apache and apachectl won't> > work at all.> >> > Any solutions.> >> > - Original Message -> > From: "Ralph Einfeldt" <[EMAIL PROTECTED]>> > To: <[EMAIL PROTECTED]>> > Sent: Thursday, July 19, 2001 3:11 PM> > Subject: AW: SSL Apache & Tomcat (NameBased VirtualHosts)> >> >> > 1. this is a bit off topic for questions like that, it's> > better go to the apache list> >> > 2. you don't have to setup 2 apaches:> > just define two virtual hosts in httpd.conf:> >> > NameVirtualHost 111.22.33.44> >> > > > ServerName www.domain.tld> > DocumentRoot /www/domain> > > >> > > > ServerName www.domain.tld> > DocumentRoot /www/domain> > > >> > > > ServerName www.otherdomain.tld> > DocumentRoot /www/otherdomain> > > >> > > > ServerName www.otherdomain.tld> > DocumentRoot /www/otherdomain> > > >> > see: http://httpd.apache.org/docs/vhosts/name-based.html> >> > 3. To start apache with a different config file use> > apache -f > >> > -Ursprüngliche Nachricht-> > Von: Lars Nielsen Lind [mailto:[EMAIL PROTECTED]]> > Gesendet: Donnerstag, 19. Juli 2001 14:32> > An: [EMAIL PROTECTED]> > Betreff: SSL Apache & Tomcat (NameBased VirtualHosts)> >> >> > I want to use SSL with my Apache & Tomcat (mod_jk) - NameBased> > VirtualHosts.> >> > I have read that I then should make to configuration files for the Apache> > Web Server. One for communicating with port 80 (without SSL) and one for> > communicating with port 443 (with SSL). Finally I shall start two> > instances> > of the Apache Web Server - one that handles http requests and another that> > handles https requests.> >> > 1.) Normally the httpd.conf file is placed in /etc/httpd/conf/httpd.conf.> > Where shall I place the new SSL configuration file?> >> > 2.) How do I start two instances of the Apache Web Server - that> > uses their> > own configuration files?> >> > Thanks> >> > Lars Nielsen Lind> >> >> >> >> >> >> >> >> > >
tomcat download
Iam unable 2 download the binaries & source code of tomcat Can anyone help me When I click on the link from where I've to download it give retry window adinfinitum _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
RE: Tomcat takes 100% of CPU
You would do well to read your TOMCAT_HOME\doc\readme file, item 6.11. Randy -Original Message- From: Dave Finch [mailto:[EMAIL PROTECTED]] Sent: Monday, July 23, 2001 7:11 PM To: '[EMAIL PROTECTED]' Subject: Tomcat takes 100% of CPU I have an NT 4 server running IIS and Tomcat 3.2.1 using the ISAPI filter and the NT Service. After about 10 minutes of running and not a single request the tomcat (java.exe) process takes 100% of the CPU usage. I initially thought it was a problem with the code but it happens whether any requests are received by the web server or not and I have the same configuration and code running on another server. I am also sure it is not a hardware issue. Any ideas would be appreciated. TIA, Dave Finch
RE: Common sun/tools/javac/Main problem
1. You don't need tools.jar in your path, you need it in your classpath. 2. *.class NEVER, EVER goes into a lib folder, only *.jar does. In short, undo everything that you have done since you installed Tomcat. Make sure that you set your JAVA_HOME correctly (this will add tools.jar to the classpath in most configurations). If that doesn't work, then add tools.jar to your classpath. Randy > -Original Message- > From: Robert B. Weeks [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 24, 2001 1:46 AM > To: [EMAIL PROTECTED] > Subject: Common sun/tools/javac/Main problem > > > Hello all - > > I am getting the familiar sun/tools/javac/Main exception for > all my jsp > pages. > > I have tools.jar in my path, AND I unjarred them and put the > com and sun > dirs in the $TOMCAT_HOME/lib dir (as per another users help), > and STILL > cannot seem to get past this. > > I am using j2se: > # java full version "1.3.0" > > And as you can see when I startup, tools.jar IS in my classpath: > > # $TOMCAT_HOME/bin/startup.sh > Using classpath: > /usr/local/java/jakarta/dist/tomcat/classes:/usr/local/java/jak > arta/dist/tomcat/lib/ant.jar:/usr/local/java/jakarta/dist/tomc > at/lib/com:/us > r/local/java/jakarta/dist/tomcat/lib/jasper.jar:/usr/local/jav > a/jakarta/dist > /tomcat/lib/jaxp.jar:/usr/local/java/jakarta/dist/tomcat/lib/p > arser.jar:/usr > /local/java/jakarta/dist/tomcat/lib/servlet.jar:/usr/local/jav > a/jakarta/dist > /tomcat/lib/sun:/usr/local/java/jakarta/dist/tomcat/lib/test:/ > usr/local/java > /jakarta/dist/tomcat/lib/webserver.jar:/usr/java/lib/tools.jar > :.:..:/usr/loc > al/java/jakarta/dist/tomcat/lib/com:/usr/local/java/jakarta/di > st/tomcat/lib/ > sun > > > I am also using Apache1.3.20 > > Any help would be GREATLY appreciated. I am pulling my hair out here! > =) > > - > Robert Weeks >
Re: for jsp
thanks for this "Please read the documentation, as you always should, then if you still don't understand, read the documentation" it did help . but it could have been put softer ... and please dont think I asked for spoon-feed. After reaching the same dead-ends repetedly so often that I could predict the errors ( but unfortunately find no answers!! ) did I post the question best regards anagha. Michael Wentzel wrote: > > can some-one tell me what are all the steps to be taken to host a jsp > > page. for now i have tomcat on NT. for the build ( one using ant ) to > > execute what all details do i have to take care of ? especially the > > web.xml file ... > > what will it contain - as there are no servlet specific details ... > > This is a VERY rudamentary question. Please read the documentation, as > you always should, then if you still don't understand, read the > documentation > again, then if you STILL don't understand search the list archives > thoroughly, then finally you should post a question if you don't understand. > > While this list is for tomcat users to help each other learn the nuances of > tomcat it is not here to spoon feed those who wish to simply be given the > answers to their question with no work on their part. > > Typically, you can find the answer more quickly on your own anyways. > Especially, > on a weekend. > > Note: The reason I post this to the list is so everyone is aware that > this is the way a mailing list SHOULD be utilized. > > --- > Michael Wentzel > Software Developer > Software As We Think - http://www.aswethink.com -- Where the mind is without fear and the head is held high; Where knowledge is free; Where the world has not been broken up into fragments by narrow domestic walls; Where words come out from the depths of truth; ... Where the mind is led by thee into ever-widening thought and action; Into that heaven of freedom,my Father,let my country awake.
Re: socket write error
hi, this is because IE is too "clever" and closes connection before all files (images, etc.) are served by tomcat. IE perhaps checks what files are in cache. It works with netscape and HotJava browser. rgds, Dalibor __ Reply Separator _ Subject: socket write error Author: [EMAIL PROTECTED] ("Kaushik Pattnayak" <[EMAIL PROTECTED]>) at INTERNET Date:24.7.2001 6:07 hello I keep getting this error all the time when I start tomcat and often when I request for any page. Can anyone throw some light on it. 2001-07-24 03:03:40 - Ctx( /projects ): IOException in: R( /projects + /aspssales/ReportDispFrame.jsp + null) Connection reset by peer: socket write error 2001-07-24 03:03:40 - Ctx( /projects ): IOException in: R( /projects + /aspssales/ReportDispFrame.jsp + null) Connection reset by peer: socket write error Thanks in anticipation Kaushik Pattnayak
RE: socket write error
For more information on why, check out http://www.aswethink.com/employees/randy/tomcat/IOException.html Randy > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 24, 2001 8:24 AM > To: [EMAIL PROTECTED] > Subject: Re: socket write error > > > > hi, > > this is because IE is too "clever" and closes connection > before all > files (images, etc.) are served by tomcat. IE perhaps checks what > files are in cache. It works with netscape and HotJava browser. > > rgds, > Dalibor > > > __ Reply Separator > _ > Subject: socket write error > Author: [EMAIL PROTECTED] ("Kaushik Pattnayak" > <[EMAIL PROTECTED]>) at INTERNET > Date:24.7.2001 6:07 > > > > > > hello > > I keep getting this error all the time when I start tomcat > and often when I > request for any page. Can anyone throw some light on it. > > 2001-07-24 03:03:40 - Ctx( /projects ): IOException in: R( /projects + > /aspssales/ReportDispFrame.jsp + null) Connection reset by > peer: socket > write error > > 2001-07-24 03:03:40 - Ctx( /projects ): IOException in: R( /projects + > /aspssales/ReportDispFrame.jsp + null) Connection reset by > peer: socket > write error > > Thanks in anticipation > > Kaushik Pattnayak > >
Re: session management
What do you mean by "manage my session"? If you are loading a static page from the web server where you have already create a session, you don't need to do anything. Your session cookie will flow back and forth in the HTTP header and you will still be able to access the session when you need it in a servlet or JSP. --- [EMAIL PROTECTED] wrote: > hi all > how do i manage my session in static pages put on > iis server > without rerouting it to my application server > thanx > priya __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
RE: Tomcat takes 100% of CPU (SourceSafe)
Yes I have read this and I am quite familiar with the server.xml file. Correct me if I am wrong but from my experience I have found that if the server.xml is wrong i.e. syntactically correct but is missing a host, then a endless loop occurs sending the processor to 100% when a request is made to that a jsp or servlet on that host. In my case no requests are received, the network cable is even unplugged. Could it be anything to do with Microsoft Visual Source Safe which also uses an isapi filter? Dave -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 24, 2001 7:00 AM To: [EMAIL PROTECTED] Subject: RE: Tomcat takes 100% of CPU You would do well to read your TOMCAT_HOME\doc\readme file, item 6.11. Randy -Original Message- From: Dave Finch [mailto:[EMAIL PROTECTED]] Sent: Monday, July 23, 2001 7:11 PM To: '[EMAIL PROTECTED]' Subject: Tomcat takes 100% of CPU I have an NT 4 server running IIS and Tomcat 3.2.1 using the ISAPI filter and the NT Service. After about 10 minutes of running and not a single request the tomcat (java.exe) process takes 100% of the CPU usage. I initially thought it was a problem with the code but it happens whether any requests are received by the web server or not and I have the same configuration and code running on another server. I am also sure it is not a hardware issue. Any ideas would be appreciated. TIA, Dave Finch
SSL probs in Apache.
Hi everyone. I have my application running on Apache Server. I want to have SSL Authentication. I have generated my servers Self signed Certificates. I have also downloaded the openSSL & Mod-SSl & placed them according to the Mannual. In the httpd.config i have LoadModule ApacheModSSl something like that . When i start the server the file is not Recognised . Please resolve my problem. If any other solution please let me know about it. Thanking You. Mehul S Dave * Mehul S Dave Scientific Officer, (STCS Dept.), Tata Institute of Fundamental Research Phone - 2152971 Extn - 2372 Mumbai . webpage:- http://www.csc.tifr.res.in/~mehul *
RE: Please help Please Help
no > -Original Message- > From: Sarkar, Indra [SMTP:[EMAIL PROTECTED]] > Sent: Thursday, July 12, 2001 5:29 PM > To: [EMAIL PROTECTED] > Subject: RE: Please help Please Help > > are you still looking for help with this? > > > Indra > > __ > > [t]+44 (0) 1442 22 3742[m]+44 (0) 7866 734 683 > [e][EMAIL PROTECTED] [e2m][EMAIL PROTECTED] > __ > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: 10 July 2001 22:52 > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; > [EMAIL PROTECTED] > Subject: RE: Please help Please Help > > > New to java. > I want to create my environmet variables (tomcat_home). > My programs are in > C:\java\tomcat\jakarta-tomcat-3.2.2\jakarta-tomcat-3.2.2 > How do I go about it. Please help. > Regards hossein. > . > Disclaimer This communication together with any attachments transmitted with it ('this E-mail') is intended only for the use of the addressee and may contain information which is privileged and confidential. If the reader of this E-mail is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient you are notified that any use of this E-mail is prohibited. Addressees should check this E-mail for viruses. The Carphone Warehouse Group PLC makes no representations as regards the absence of viruses in this E-mail. If you have received this E-mail in error please notify our ISe Response Team immediately by telephone on + 44 (0)20 8896 5828 or via E-mail at [EMAIL PROTECTED] Please then immediately destroy this E-mail and any copies of it. Please feel free to visit our website: http://www.phonehouse.com
Wat is JDBC realm basically
Hi, I am sorry to ask this easiest query but i dont have any idea about it. Wat is JDBC realm . Wat is it all about wat can i do with it? * Mehul S Dave Scientific Officer, (STCS Dept.), Tata Institute of Fundamental Research Phone - 2152971 Extn - 2372 Mumbai . webpage:- http://www.csc.tifr.res.in/~mehul *
keeping sessions when switching from http to https
Hi, Without cookies, I loose my session object when switching from http to https using encodeUrl. Can anyone help? Otherwise, it makes Tomcat really useless in real life applications, where it is absolutely necessary to support customers that have cookies disabled. Thanks, Pat
403: Forbidden error, you are unable to access /examples from this server
Hi all, I have installed apache 1.3.11 and tomcat 3.2.2 with mod_jk, apache and tomcat are working perfect separately. I have also installed jetspeed and cocoon (web applications) in the webapps directory, When i point my browser to http://localhost:8080/jetspeed/ i am able to view the page, but when i point my browser to http://localhost/jetspeed i get this error Forbidden You don't have permission to access /cocoon on this server. Apache/1.3.11 Server at stonebox Port 80 Can anyone suggest how to overcome this problem. bye, raghu "black holes are,when GOD is dividing by zero"
Re: for jsp
It may be worth having a look at a JSP book from your publisher of choice. To answer your question in one line, hosting a jsp page is essentially no different from hosting a shtml (or asp, or php) page. Just that tomcat processes the file (and does a few other things) instead of apache, or iis. cheers dim On Tue, 24 Jul 2001, Anagha Mudigonda wrote: > thanks for this > "Please read the documentation, as > you always should, then if you still don't understand, read the > documentation" > it did help . > but it could have been put softer ... and please dont think I asked for > spoon-feed. After reaching the same dead-ends repetedly so often that I could > predict the errors ( but unfortunately find no answers!! ) did I post the > question > > best regards > anagha. > > Michael Wentzel wrote: > > > > can some-one tell me what are all the steps to be taken to host a jsp > > > page. for now i have tomcat on NT. for the build ( one using ant ) to > > > execute what all details do i have to take care of ? especially the > > > web.xml file ... > > > what will it contain - as there are no servlet specific details ... > > > > This is a VERY rudamentary question. Please read the documentation, as > > you always should, then if you still don't understand, read the > > documentation > > again, then if you STILL don't understand search the list archives > > thoroughly, then finally you should post a question if you don't understand. > > > > While this list is for tomcat users to help each other learn the nuances of > > tomcat it is not here to spoon feed those who wish to simply be given the > > answers to their question with no work on their part. > > > > Typically, you can find the answer more quickly on your own anyways. > > Especially, > > on a weekend. > > > > Note: The reason I post this to the list is so everyone is aware that > > this is the way a mailing list SHOULD be utilized. > > > > --- > > Michael Wentzel > > Software Developer > > Software As We Think - http://www.aswethink.com > > -- > Where the mind is without fear and the head is held high; > Where knowledge is free; > Where the world has not been broken up into fragments by narrow domestic walls; > Where words come out from the depths of truth; > ... > Where the mind is led by thee into ever-widening thought and action; > Into that heaven of freedom,my Father,let my country awake. > > >
Re: keeping sessions when switching from http to https
What if you don't create the session until you switch to https? A session is pinned to a domain. The domain includes the scheme (http or https) so when you switch from http to https you will loose your session. Also the port number will change, which changes the domain. --- Brigger Patrick <[EMAIL PROTECTED]> wrote: > Hi, > > Without cookies, I loose my session object when > switching from http to https > using encodeUrl. Can anyone help? > Otherwise, it makes Tomcat really useless in real > life applications, where > it is absolutely necessary to support customers that > have cookies disabled. > > Thanks, > > Pat __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
ISAPI Filter
Hi, Where can I get the source code for the Jakarta ISAPI filter? I want to modify it to correct problems I am having when I have an ISAPI filter for Microsoft Visual SourceSafe installed. I will obviously pass back any modifications. TIA, Dave Finch
Tomcat/Apache on OpenVMS (alpha)
Hi all, Is there anybody who is running Compaq Apache/Tomcat on OpenVMS? I'm trying to port a tomcat/apache application from TRU64 Unix to OpenVMS. Problem I have is that classes can not be found from a jar file. apache$specific:[00]apache$jakarta_server_output.log shows: java.lang.NoClassDefFoundError: nl/DICgroep/DIC_Aida/AidaAapOutpu tStream VMS version 7.3, J2DSK 1.3.0-1, CSWS version 1.1, CSWS_java version 1.0 jar - and java files are stream_lf format. (checked/converted) Disk = ODS-5 define(d) APACHE$JAKARTA_USER_CLASSPATH apache$common:[jakarta.lib]DIC_Aida.jar jar -tvf DIC_Aida.jar shows the class (nl/DICgroep/DIC_Aida/AidaAapOutputStream)needed. sys$startup:apache$jakarta_config.com modified so that cleanup area is skipped. JAVA$CLASSPATH shows the right logical and javac "*java" does compile without problems. So it is able to find the include import nl.DICgroep.DIC_Aida.*; statements Any idea what the problem might be? Thanks a lot in advance! DIC Information Consultants Joop M. Schipper [EMAIL PROTECTED]
RE: Wat is JDBC realm basically
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/JDBCRealm.howto -- Bill K. > -Original Message- > From: Mehul S Dave [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 24, 2001 6:00 AM > To: Tomcat User archive > Subject: Wat is JDBC realm basically > > > Hi, >I am sorry to ask this easiest query but i dont have any > idea about it. >Wat is JDBC realm . Wat is it all about wat can i do with it? > > * > Mehul S Dave > Scientific Officer, (STCS Dept.), > Tata Institute of Fundamental Research > Phone - 2152971 Extn - 2372 > Mumbai . > webpage:- http://www.csc.tifr.res.in/~mehul > * >
Re: Which comes first basic authentication or redirection to SSL?
Is automatic redirection to SSL supported in 3.2.x? Is this a 4.0 feature? I'm currently redirecting to SSL through brute force in my JSP page. How do I configure Tomcat to redirect automatically? Can anyone point me to a good resource on configuring Tomcat? Thanks, Dave "Craig R. McClanahan" <[EMAIL PROTECTED]> on 07/23/2001 08:52:17 PM Please respond to [EMAIL PROTECTED] To: Tomcat User List <[EMAIL PROTECTED]> cc: Subject: Re: Which comes first basic authentication or redirection to SSL? For Tomcat 4.0, the user data constraint is enforced *before* the authentication constraint. The reasoning for this is that, if you're going to use BASIC or FORM based authentication, you certainly don't want the username and password going across the network in clear text. Note that you won't necessarily be able to see this ordering if you're using BASIC, however. The reason is that the pop-up window for authentication happens before the location bar (or the page itself) have been updated. To verify the order in which things happen, try switching to form-based login temporarily. Craig McClanahan On Mon, 23 Jul 2001, Jonathan Eric Miller wrote: > I'm using the following configuration in my web.xml file. I have it setup so > that SSL is required. I also have it setup so that basic authentication is > required. > > What I'm wondering though is what happens first, redirection to the SSL port > or basic authentication? > > So, say I enter the following into my browser, > > http://localhost:8080/servlet/Test > > It gets redirected to, > > https://localhost:8443/servlet/Test > > However, I don't see the https until after I have authenticated. Does this > mean that the authentication happened before the redirection? > > Jon > > > > > > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" > "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd";> > > > > >Test > > >Test > > >initParameter >value1 > > > > > > Protected Area > > > /* > > > >tomcat > > >CONFIDENTIAL > > > > BASIC > tomcat > > > > >
starting/testing tomcat3.2.3
Hi, When I start tomcat 3.2.3 using sh tomcat.sh start it displays following lines -- Using classpath: /home/einsteinium/squid/depot/tomcat/jakarta-tomcat-3.2.3/lib/ant.jar:/home/einsteinium/squid/depot/tomcat/jakarta-tomcat-3.2.3/lib/jasper.jar:/home/einsteinium/squid/depot/tomcat/jakarta-tomcat-3.2.3/lib/jaxp.jar:/home/einsteinium/squid/depot/tomcat/jakarta-tomcat-3.2.3/lib/parser.jar:/home/einsteinium/squid/depot/tomcat/jakarta-tomcat-3.2.3/lib/servlet.jar:/home/einsteinium/squid/depot/tomcat/jakarta-tomcat-3.2.3/lib/test:/home/einsteinium/squid/depot/tomcat/jakarta-tomcat-3.2.3/lib/webserver.jar:/usr/java1.2/lib/tools.jar 10:27am sampath@einsteinium ~squid/depot/tomcat/jakarta-tomcat-3.2.3/bin > Starting tomcat. Check logs/tomcat.log for error messages 2001-07-24 10:28:00 - ContextManager: Adding context Ctx( /examples ) 2001-07-24 10:28:00 - ContextManager: Adding context Ctx( /admin ) 2001-07-24 10:28:00 - ContextManager: Adding context Ctx( ) 2001-07-24 10:28:00 - ContextManager: Adding context Ctx( /test ) 2001-07-24 10:28:01 - PoolTcpConnector: Starting HttpConnectionHandler on 8080 2001-07-24 10:28:01 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007 which I guess is starting tomcat correctly. Now when I want to test it http://localhost:8080 it says server not found. I didn't make any changes in server.xml like context root or so . I tried different ports other than 8080. Still it doesn't display test page / examples . I tried telnet/ping and timed out. Its on Solaris 5.7 I'm not sure whats happening. I don't find any /logs/tomcat.log file to check for any errors. Can you please suggest. Thanks in Advance, Sampath
Re: for jsp
oh I solved my problem ... I read the docs but did'nt interpret it right. But now it's fine. the only thing i wanted to say was that i was'nt trying to get spoon-fed or get my work done by someone else !! thanks a lot for the info. have a nice day regards anagha. Dmitri Colebatch wrote: > It may be worth having a look at a JSP book from your publisher of > choice. To answer your question in one line, hosting a jsp page is > essentially no different from hosting a shtml (or asp, or php) page. Just > that tomcat processes the file (and does a few other things) instead of > apache, or iis. > > cheers > dim > > On Tue, 24 Jul 2001, Anagha Mudigonda wrote: > > > thanks for this > > "Please read the documentation, as > > you always should, then if you still don't understand, read the > > documentation" > > it did help . > > but it could have been put softer ... and please dont think I asked for > > spoon-feed. After reaching the same dead-ends repetedly so often that I could > > predict the errors ( but unfortunately find no answers!! ) did I post the > > question > > > > best regards > > anagha. > > > > Michael Wentzel wrote: > > > > > > can some-one tell me what are all the steps to be taken to host a jsp > > > > page. for now i have tomcat on NT. for the build ( one using ant ) to > > > > execute what all details do i have to take care of ? especially the > > > > web.xml file ... > > > > what will it contain - as there are no servlet specific details ... > > > > > > This is a VERY rudamentary question. Please read the documentation, as > > > you always should, then if you still don't understand, read the > > > documentation > > > again, then if you STILL don't understand search the list archives > > > thoroughly, then finally you should post a question if you don't understand. > > > > > > While this list is for tomcat users to help each other learn the nuances of > > > tomcat it is not here to spoon feed those who wish to simply be given the > > > answers to their question with no work on their part. > > > > > > Typically, you can find the answer more quickly on your own anyways. > > > Especially, > > > on a weekend. > > > > > > Note: The reason I post this to the list is so everyone is aware that > > > this is the way a mailing list SHOULD be utilized. > > > > > > --- > > > Michael Wentzel > > > Software Developer > > > Software As We Think - http://www.aswethink.com > > > > -- > > Where the mind is without fear and the head is held high; > > Where knowledge is free; > > Where the world has not been broken up into fragments by narrow domestic walls; > > Where words come out from the depths of truth; > > ... > > Where the mind is led by thee into ever-widening thought and action; > > Into that heaven of freedom,my Father,let my country awake. > > > > > > -- Where the mind is without fear and the head is held high; Where knowledge is free; Where the world has not been broken up into fragments by narrow domestic walls; Where words come out from the depths of truth; ... Where the mind is led by thee into ever-widening thought and action; Into that heaven of freedom,my Father,let my country awake.
msg 3534
i am trying to integreate tomcat as a NT service and it is giving me a messag " The Service did't not return any error" More hlep is available by typing net msg3534 . When i look at the message it says check with ur Network administrator. I don't see where the problem is happening. I know tomcat is working bcz if i start the startup.bat file i can access the web site from anywhere. well it would be of great help if u guys can tell me wat the problem is . thanks vamsi([EMAIL PROTECTED])
tomcat 3.2.3 configuration
Hi folks I am really stumped here and am wondering if someone can lend a helping hand. I want to create my own web application. From what I have read, if I put a directory under /webapps, tomcat will automatically add that directory to its web applications using ContextManager. I created a /baseball directory under /webapps, however, whenever I type in http://localhost:8080/baseball, it does not find the directory. So, I went and changed server.xml and added the . But that also did not work :) Is there something I am doing wrong here? I've noticed in the /webapps directory there exists .war files... do I need to do create a war file? if so, how? Any help would be greatly appreciated! thanks! Aaron Cooper
RE: msg 3534
Take a look at bugs 884 and 2337: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=884 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2337 Also, search http://www.mail-archive.com/tomcat-user@jakarta.apache.org/ for "jk_nt_service" Your problem is most likely an issue with your JAVA_HOME or TOMCAT_HOME paths. - Ryan -Original Message-From: Teltron [mailto:[EMAIL PROTECTED]]Sent: Tuesday, July 24, 2001 10:59 AMTo: [EMAIL PROTECTED]Subject: msg 3534 i am trying to integreate tomcat as a NT service and it is giving me a messag " The Service did't not return any error" More hlep is available by typing net msg3534 . When i look at the message it says check with ur Network administrator. I don't see where the problem is happening. I know tomcat is working bcz if i start the startup.bat file i can access the web site from anywhere. well it would be of great help if u guys can tell me wat the problem is . thanks vamsi([EMAIL PROTECTED])
[Fwd: Tomcat-IIS Documentation Win2k]
Looked at the top rather than the bottom of the fine manual. Here's the documentation question: Original Message Subject: Tomcat-IIS Documentation Win2k Date: Thu, 19 Jul 2001 13:37:11 -0500 From: MIchael Martinson <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] CC: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] Gal, I'm wondering if you could fill me in on some information. When we tried to get Tomcat 3.2.3 to run via IIS 5 on Win2k sp2, we ended up needing to get some information from a third party. The url is: http://www.verysimple.com/scripts/support_tc_iis.html They have a .reg file (between --Start and --Finish below so there isn't a chance of putting the items in your registry) which doesn't exactly fit the documentation: --Start 001 Windows Registry Editor Version 5.00 002 003 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation] 004 005 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Apache Web Server] 006 007 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Apache Web Server\1.3.14] 008 009 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector] 010 011 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\1.0] 012 "extension_uri"="/jakarta/isapi_redirect.dll" 013 "log_file"="C:\\TomCat\\logs\\isapi.log" 014 "log_level"="error" 015 "worker_file"="C:\\TomCat\\conf\\workers.properties" 016 "worker_mount_file"="C:\\TomCat\\conf\\uriworkermap.properties" --Finish I'm wondering why the install requires lines 3-9 to work? Could you put a note in the docs about which lines are exactly needed for others? Thanks in advance, Michael -- Michael Martinson Software Engineer DTN [EMAIL PROTECTED] 402-255-8392
Re: starting/testing tomcat3.2.3
Sampath K Settipalli wrote: > Hi, > > When I start tomcat 3.2.3 using sh tomcat.sh start it displays > following lines > -- > Using classpath: > >/home/einsteinium/squid/depot/tomcat/jakarta-tomcat-3.2.3/lib/ant.jar:/home/einsteinium/squid/depot/tomcat/jakarta-tomcat-3.2.3/lib/jasper.jar:/home/einsteinium/squid/depot/tomcat/jakarta-tomcat-3.2.3/lib/jaxp.jar:/home/einsteinium/squid/depot/tomcat/jakarta-tomcat-3.2.3/lib/parser.jar:/home/einsteinium/squid/depot/tomcat/jakarta-tomcat-3.2.3/lib/servlet.jar:/home/einsteinium/squid/depot/tomcat/jakarta-tomcat-3.2.3/lib/test:/home/einsteinium/squid/depot/tomcat/jakarta-tomcat-3.2.3/lib/webserver.jar:/usr/java1.2/lib/tools.jar > > 10:27am sampath@einsteinium ~squid/depot/tomcat/jakarta-tomcat-3.2.3/bin > >>Starting tomcat. Check logs/tomcat.log for error messages 2001-07-24 >> > 10:28:00 - ContextManager: Adding context Ctx( /examples ) > > 2001-07-24 10:28:00 - ContextManager: Adding context Ctx( /admin ) > 2001-07-24 10:28:00 - ContextManager: Adding context Ctx( ) > 2001-07-24 10:28:00 - ContextManager: Adding context Ctx( /test ) > 2001-07-24 10:28:01 - PoolTcpConnector: Starting HttpConnectionHandler > on 8080 > 2001-07-24 10:28:01 - PoolTcpConnector: Starting Ajp12ConnectionHandler > on 8007 > > >which I guess is starting tomcat correctly. Now when I want to test > it http://localhost:8080 it says server not found. I didn't make any > changes in server.xml like context root or so . I tried different ports > other than 8080. Still it doesn't display test page / examples . I tried > telnet/ping and timed out. Its on Solaris 5.7 > I'm not sure whats happening. I don't find any /logs/tomcat.log file to > check for any errors. > Can you please suggest. > > Thanks in Advance, > Sampath > > Weird. It should work. Stupid question: Does 'localpath' resolve to 127.0.0.1? Try changing your debug levels in server.xml from "0" to something higher like "5" or "9". John -- John Alex Hebert [EMAIL PROTECTED] System Engineer
Re: tomcat 3.2.3 configuration
Aaron Cooper wrote: > Hi folks > >I am really stumped here and am wondering if someone can lend a helping hand. I >want to create my own web application. From what I have read, if I put a directory >under /webapps, tomcat will automatically add that directory to its web applications >using ContextManager. > > I created a /baseball directory under /webapps, however, whenever I type in > http://localhost:8080/baseball, it does not find the directory. So, I went and >changed server.xml and added the > . But that also did not work :) > > Is there something I am doing wrong here? I've noticed in the /webapps directory >there exists .war files... do I need to do create a war file? if so, how? > > Any help would be greatly appreciated! > > thanks! > > Aaron Cooper > > Aaron, Nothing is wrong, other than that there is no application under baseball. Read http://jakarta.apache.org/tomcat/tomcat-3.2-doc/appdev/index.html and try playing with the examples. John -- John Alex Hebert [EMAIL PROTECTED] System Engineer
RE: tomcat 3.2.3 configuration
It should be http://localhost:8080/servlet/baseball ^^^ If you want to use http://localhost:8080/baseball you'll need to define your own web.xml, aliasing your servlet to "/baseball" like, cut here BaseballServlet baseball BaseballServlet /baseball cut here For more information, read the JSDK spec, at http://java.sun.com/products/servlet/download.html -- Bill K. > -Original Message- > From: Aaron Cooper [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 24, 2001 7:59 AM > To: [EMAIL PROTECTED] > Subject: tomcat 3.2.3 configuration > > > Hi folks > >I am really stumped here and am wondering if someone can > lend a helping hand. I want to create my own web > application. From what I have read, if I put a directory > under /webapps, tomcat will automatically add that directory > to its web applications using ContextManager. > > I created a /baseball directory under /webapps, however, > whenever I type in > http://localhost:8080/baseball, it does not find the > directory. So, I went and changed server.xml and added the > > . But that also did not work :) > > Is there something I am doing wrong here? I've noticed in the > /webapps directory there exists .war files... do I need to do > create a war file? if so, how? > > Any help would be greatly appreciated! > > thanks! > > Aaron Cooper >
Re: Wat is JDBC realm basically
Mehul S Dave wrote: > Hi, >I am sorry to ask this easiest query but i dont have any idea about it. >Wat is JDBC realm . Wat is it all about wat can i do with it? A JDBCRealm is the default database connection used for getting security information such as username, password and role for user logins in a web application. This is a very simple definition, so you should read http://jakarta.apache.org/tomcat/tomcat-3.2-doc/JDBCRealm.howto and setup the suggested tables and data on a JDBC capable SQL server and uncomment the appropriate tags in server.xml. I recommend PostgreSQL (http://www.postgresql.org). Good luck! John -- John Alex Hebert [EMAIL PROTECTED] System Engineer
Re: tomcat 3.2.3 configuration
William Kaufman wrote: > It should be > > http://localhost:8080/servlet/baseball > ^^^ Ah, thanks William for clarifying that better than I could! :) -- John Alex Hebert [EMAIL PROTECTED] System Engineer
WAR files and the WEB-INF/lib directory
I am working on a web publishing app and am using Tomcat 3.2.1 with Cocoon. My application is installed by putting the .war file in the tomcat_home/webapps directory and restarting Tomcat. I am finding that any .jar files that I include in the WEB-INF/lib directory are not available to my application. However, if I explicitly include them in the CLASSPATH, when tomcat starts, everything works fine. Is there some configuration that I am missing or is an entry required in the web.xml file to get Tomcat to look at the application's WEB-INF/lib directory? I want to keep some .jars that apply to a particular app out of the global environment. Thanks
newbie (or a dummy?)
I am trying to run tomcat 3.2.2 and cocoon 1.8.2 on a win2k box. I followed all instructions to setup tomcat to work with cocoon, and when I try to run tomcat (w/ tomcat run, cause a new window closes to fast!) , the output looks normal up until this: Exception in thread "main" java.lang.InternalError: internal error: SHA-1 not available at sun.security.provider.SecureRandom.init(SecureRandom.java:89) ... the error stack goes on for twenty or so lines... I really would like to get this shtuff working! what have I overlooked? THANK YOU ;P {then when I try to put the error trace to a file for the sake of my hand-> (tomcat run >err.txt), the output is there up until the errors, then it says error report can be found in/logs/tomcat.log ... but its not there!}
RE: Servlet web hosting?
At 08:51 PM 7/23/2001, you wrote: >Hi all: > > Along the same lines, you might consider getting a DSL or cable modem >setup, then using a dynamic DNS service like http://easydns.com (there are >others, that's just the one I use) to point the domain to your home machine. >The downside is that if your IP address does change (e.g. at reboot), you >can be off the grid for an hour or so at a time because of IP address >caching. But you did say you were more interested in technology than >stability. You might also want to read the DSL provider's service agreement >carefully, as some don't want you running a server. If you want to run a server though make sure you get a static ip assignment. It's a real pain to run a server with a dynamic ip.
Re: Servlet web hosting?
Tim O'Neil wrote: > At 08:51 PM 7/23/2001, you wrote: > If you want to run a server though make sure you get a > static ip assignment. It's a real pain to run a server > with a dynamic ip. Doesn't have to be. Take a look at http://www.dyndns.org. They provide free scripts that report your dynamically assigned IP back to dyndns.org, which then updates its DNS records. I use them and it works fine. I assume other dynamic IP hosting services work in a similar manner. Of course, this is not a good idea for a production server that has to be up 24X7 since there could be a delay when reporting the new IP, but for development work, it will do the job. -- John Alex Hebert [EMAIL PROTECTED] System Engineer
Re: WAR files and the WEB-INF/lib directory
I don't think you are missing anything. The jar files in your web apps. web-inf/lib directory can not be seen from classes loaded from outside of your web app. Someplace you are probably loading a class that does not have access to the jar files in your web app. --- "Tait, Allen" <[EMAIL PROTECTED]> wrote: > I am working on a web publishing app and am using > Tomcat 3.2.1 with Cocoon. > My application is installed by putting the .war file > in the > tomcat_home/webapps directory and restarting Tomcat. > I am finding that any > .jar files that I include in the WEB-INF/lib > directory are not available to > my application. However, if I explicitly include > them in the CLASSPATH, > when tomcat starts, everything works fine. Is there > some configuration that > I am missing or is an entry required in the web.xml > file to get Tomcat to > look at the application's WEB-INF/lib directory? I > want to keep some .jars > that apply to a particular app out of the global > environment. > > Thanks > > __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
JKMount verses old JServ
What is the correct format for JKMount We are switch from JServ to Mod_JK with JServ we had ApJServMount /buy /ROOT Can I just use JkMount /buy ajp12 Or how do I do that? Thanks
RE: keeping sessions when switching from http to https
This is for use in an e-commerece application. The customer puts items in his shopping basket. When he decides to purchase, the login and credit card input pages are under https. Therefore, I need to establish a session under http and carry it over to https! This works perfectly fine using JServ (real life example: www.getabstract.com). I am surprised to find out that I should be the first one who needs this using Tomcat!(?). Any real-life e-shop application will face this requirement. Has really nobody done this before? Thanks for the answer, anyway. Pat -Original Message- From: Wyn Easton [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 24. Juli 2001 15:17 To: [EMAIL PROTECTED] Subject: Re: keeping sessions when switching from http to https What if you don't create the session until you switch to https? A session is pinned to a domain. The domain includes the scheme (http or https) so when you switch from http to https you will loose your session. Also the port number will change, which changes the domain. --- Brigger Patrick <[EMAIL PROTECTED]> wrote: > Hi, > > Without cookies, I loose my session object when > switching from http to https > using encodeUrl. Can anyone help? > Otherwise, it makes Tomcat really useless in real > life applications, where > it is absolutely necessary to support customers that > have cookies disabled. > > Thanks, > > Pat __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
AW: too many open files
If it's not already on your system you can get one here: http://ftp.uni-mainz.de/misc/lsof/binaries/sun/solaris/ > -Ursprüngliche Nachricht- > Von: Tognolini Raffaella, CH [mailto:[EMAIL PROTECTED]] > Gesendet: Dienstag, 24. Juli 2001 11:56 > An: '[EMAIL PROTECTED]' > Betreff: AW: too many open files > > > lsof is also on Solaris available? (out of context, but just > to follow disc. > ;-)) > Have you ever seen this problem? > Has something with the classloader to do, or surely not? > Thanx > R. > > > -Ursprüngliche Nachricht- > > Von:Ralph Einfeldt [SMTP:[EMAIL PROTECTED]] > > Gesendet am:Dienstag, 24. Juli 2001 11:43 > > An: '[EMAIL PROTECTED]' > > Betreff:AW: too many open files > > > > How many open files are needed by tomcat depend > > on several points. > > > > Have a look at lsof (as root) to see what and > > how many files are open at a given time. > > > > 64 open files is a quite low number. (Even the limit of > > 1024 can be quite low if the server is under heavy load > > or runs more applications than just the web server and > > tomcat.) > > > > > -Ursprüngliche Nachricht- > > > Von: Tognolini Raffaella, CH [mailto:[EMAIL PROTECTED]] > > > Gesendet: Dienstag, 24. Juli 2001 11:10 > > > An: '[EMAIL PROTECTED]' > > > Betreff: AW: too many open files > > > > > > > > > Hi, > > > My applet ist just a java-"application" and is doing nothing > > > with files, the > > > only files I open directly, I close them. > > > In DEBUG of tomcat, you can see, it's just loading classes > > > and after a while > > > > > > (not long) doing nothing else then opening different windows > > > in my applet > > > (new classes are loaded) tomcat can't anymore... > > > On my Solaris there is a soft-limit of 64 open files and an > > > hard limit of > > > 1024 I could add some more to the soft-limit, but I thought, > > > that jvm or the > > > classloader of tomcat should just work > > > There are other people that also did last-test with their > > > applet and had the > > > same problem, and just on solaris, but not on linux or others... > > > Thanx > > > Raffaella > > > > > > > -Ursprüngliche Nachricht- > > > > Von:John Clark Naldoza y Lopez [SMTP:[EMAIL PROTECTED]] > > > > Gesendet am:Dienstag, 24. Juli 2001 10:38 > > > > An: [EMAIL PROTECTED] > > > > Betreff:Re: too many open files > > > > > > > > "Tognolini Raffaella, CH" wrote: > > > > > > > > > > Hi, > > > > > Conf: Tomcat 3.2.2 and jdk 1.1.8 OS Solaris 2.6 > > > > > Browser Netscape > > > > > > > > > > After a while that my applet is running and tomcat > > > loading classes, I > > > > > receive > > > > > following exception, continously and tomcat dies. Do you > > > have an idea? > > > > > Is like tomcat can't load any more classes: > > > > > > > > What's the maximum number of open files for Solaris 2.6? > > > How many open > > > > files are there? > > > > > > > > What does your applet do? Does it open files and not close > > > them after > > > > they are read? > > > > > > > > > > > > Cheers, > > > > > > > > > > > > John Clark > > > > -- > > > > /) John Clark Naldoza y Lopez (\ > > > > / )Software Design Engineer III ( \ > > > > _( (__ Web-Application Development > _) )_ > > > > (((\ \> /_>Cable Modem Network Management System > <_\ > > > ( \_/ / NEC Telecom Software Phils., Inc. > \ \_/ ) > > > > \ / > \ / > > > >\_/ phone: (+63 32) 233-9142 loc. 3112 > \_/ > > > >/ / cellphone: (+63 919) 399-4742 > \ \ > > > > / / email: [EMAIL PROTECTED] > \ \ > > > >
Re: IIS and Tomcat
Hi all, I don't know why ppl have issues with IIS. I followed the jakarta docs to the ltter and had it working within an hour! Adam. John Baker wrote: > Hello. > > Anyone got a handy url of 'how to get tomcat 4 working with IIS'? > > I actually hate IIS, but I'm being forced to do this. Sob. > > > John Baker
RE: tomcat 3.2.3 configuration
Hi William Thanks for your reply. I appreciate it a lot. Ok, I will try what you suggested. However, I do not have any servlets in my application, just JSP pages. That being said, is it necessary for me to define a servlet mapping? Also, when I try http://localhost:8080/servlet/baseball, it still cannot find the directory. I've been following the examples I've seen to a tea, yet unsuccessful. Aren't computers fun :) I'll check out the URL you gave too. Cheers Aaron >>> William Kaufman <[EMAIL PROTECTED]> 07/24/01 12:18pm >>> It should be http://localhost:8080/servlet/baseball ^^^ If you want to use http://localhost:8080/baseball you'll need to define your own web.xml, aliasing your servlet to "/baseball" like, cut here BaseballServlet baseball BaseballServlet /baseball cut here For more information, read the JSDK spec, at http://java.sun.com/products/servlet/download.html -- Bill K. > -Original Message- > From: Aaron Cooper [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 24, 2001 7:59 AM > To: [EMAIL PROTECTED] > Subject: tomcat 3.2.3 configuration > > > Hi folks > >I am really stumped here and am wondering if someone can > lend a helping hand. I want to create my own web > application. From what I have read, if I put a directory > under /webapps, tomcat will automatically add that directory > to its web applications using ContextManager. > > I created a /baseball directory under /webapps, however, > whenever I type in > http://localhost:8080/baseball, it does not find the > directory. So, I went and changed server.xml and added the > > . But that also did not work :) > > Is there something I am doing wrong here? I've noticed in the > /webapps directory there exists .war files... do I need to do > create a war file? if so, how? > > Any help would be greatly appreciated! > > thanks! > > Aaron Cooper >
RE: keeping sessions when switching from http to https
Does anybody have solution for this issue -- keep session when switching from http to https, without cookie. It doesn't make sense not to create the session until the swtiching. For example, shopping cart is perfect on http until the user decides to check out. With https, it still needs the same shopping cart. I am also very interested in knowing such a solution. Thanks. -Original Message- From: Brigger Patrick [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 24, 2001 12:07 PM To: '[EMAIL PROTECTED]' Subject: RE: keeping sessions when switching from http to https This is for use in an e-commerece application. The customer puts items in his shopping basket. When he decides to purchase, the login and credit card input pages are under https. Therefore, I need to establish a session under http and carry it over to https! This works perfectly fine using JServ (real life example: www.getabstract.com). I am surprised to find out that I should be the first one who needs this using Tomcat!(?). Any real-life e-shop application will face this requirement. Has really nobody done this before? Thanks for the answer, anyway. Pat -Original Message- From: Wyn Easton [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 24. Juli 2001 15:17 To: [EMAIL PROTECTED] Subject: Re: keeping sessions when switching from http to https What if you don't create the session until you switch to https? A session is pinned to a domain. The domain includes the scheme (http or https) so when you switch from http to https you will loose your session. Also the port number will change, which changes the domain. --- Brigger Patrick <[EMAIL PROTECTED]> wrote: > Hi, > > Without cookies, I loose my session object when > switching from http to https > using encodeUrl. Can anyone help? > Otherwise, it makes Tomcat really useless in real > life applications, where > it is absolutely necessary to support customers that > have cookies disabled. > > Thanks, > > Pat __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
Re: IIS and Tomcat
On Tuesday 24 July 2001 17:13 pm, you wrote: > Hi all, > > I don't know why ppl have issues with IIS. I followed the jakarta docs > to the ltter and had it working within an hour! > Ahh, I havent downloaded the Win32 version yet. I'm just wondering if there were known issues. And my main issue with IIS is the fact it's totally insecure. And if it isn't IIS, it's IE. If it isn't IE it's Windows. John -- John Baker, BSc CS. Java developer, Linux lover. I don't wanna rock, DJ.
Re: tomcat 3.2.3 configuration
Aaron, basic question: do you have an index.html or index.jsp in your webapps/baseball directory? In order to get a page when you go to http://localhost:8080/baseball you'll need an index.jsp page in this directory. If you don't have this, try giving the name of your actual jsp page - something like http://localhost:8080/baseball/home.jsp another basic question: are you getting a 404 page not found or 500 internal server error? If you're getting the latter the problem could lie elsewhere such as a missing or incompatible java compiler. all the best, Raphael. - Original Message - From: "Aaron Cooper" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 24, 2001 9:41 PM Subject: RE: tomcat 3.2.3 configuration Hi William Thanks for your reply. I appreciate it a lot. Ok, I will try what you suggested. However, I do not have any servlets in my application, just JSP pages. That being said, is it necessary for me to define a servlet mapping? Also, when I try http://localhost:8080/servlet/baseball, it still cannot find the directory. I've been following the examples I've seen to a tea, yet unsuccessful. Aren't computers fun :) I'll check out the URL you gave too. Cheers Aaron >>> William Kaufman <[EMAIL PROTECTED]> 07/24/01 12:18pm >>> It should be http://localhost:8080/servlet/baseball ^^^ If you want to use http://localhost:8080/baseball you'll need to define your own web.xml, aliasing your servlet to "/baseball" like, cut here BaseballServlet baseball BaseballServlet /baseball cut here For more information, read the JSDK spec, at http://java.sun.com/products/servlet/download.html -- Bill K. > -Original Message- > From: Aaron Cooper [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 24, 2001 7:59 AM > To: [EMAIL PROTECTED] > Subject: tomcat 3.2.3 configuration > > > Hi folks > >I am really stumped here and am wondering if someone can > lend a helping hand. I want to create my own web > application. From what I have read, if I put a directory > under /webapps, tomcat will automatically add that directory > to its web applications using ContextManager. > > I created a /baseball directory under /webapps, however, > whenever I type in > http://localhost:8080/baseball, it does not find the > directory. So, I went and changed server.xml and added the > > . But that also did not work :) > > Is there something I am doing wrong here? I've noticed in the > /webapps directory there exists .war files... do I need to do > create a war file? if so, how? > > Any help would be greatly appreciated! > > thanks! > > Aaron Cooper > _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Re: keeping sessions when switching from http to https
Title: Re: keeping sessions when switching from http to https This is rubbish. I'm using tomcat and switching between secure and non secure sites and the session is following no probs. (i'm using cookies though) Is your context the same on the secure and insecure ones ? Can you provide an example of the link that you are using to go between the insecure one and the secure one. ( and the link that it produces :) ) Thanks David Brigger Patrick wrote: > > This is for use in an e-commerece application. The customer puts items > in > his shopping basket. When he decides to purchase, the login and credit > card > input pages are under https. Therefore, I need to establish a session > under > http and carry it over to https! > > This works perfectly fine using JServ (real life example: > www.getabstract.com). I am surprised to find out that I should be the > first > one who needs this using Tomcat!(?). Any real-life e-shop application > will > face this requirement. Has really nobody done this before? > > Thanks for the answer, anyway. > > Pat > > -Original Message- > From: Wyn Easton [mailto:[EMAIL PROTECTED]] > Sent: Dienstag, 24. Juli 2001 15:17 > To: [EMAIL PROTECTED] > Subject: Re: keeping sessions when switching from http to https > > What if you don't create the session until you switch > to https? > > A session is pinned to a domain. The domain includes > the scheme (http or https) so when you switch from > http to https you will loose your session. Also the > port number will change, which changes the domain. > > --- Brigger Patrick <[EMAIL PROTECTED]> > wrote: > > Hi, > > > > Without cookies, I loose my session object when > > switching from http to https > > using encodeUrl. Can anyone help? > > Otherwise, it makes Tomcat really useless in real > > life applications, where > > it is absolutely necessary to support customers that > > have cookies disabled. > > > > Thanks, > > > > Pat > > __ > Do You Yahoo!? > Make international calls for as low as $.04/minute with Yahoo! Messenger > http://phonecard.yahoo.com/
tomcat-user.xml
What is this file used for? What happens if tomcat is run without this file? Can somebody explain? Thanx Ganesh
HELP! I have already unsubscribed from this list but still get tons of them
_ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
Re: IIS and Tomcat
Windoze = pants IIS = pants Tomcat = amazing 8o) windoze + iis + tomcat = amazing sitting on two pairs of pants...not gonna work really is it 8o) He he. Just use Mandrake - much better Penguins 8o) Adam. John Baker wrote: > On Tuesday 24 July 2001 17:13 pm, you wrote: > >> Hi all, >> >> I don't know why ppl have issues with IIS. I followed the jakarta docs >> to the ltter and had it working within an hour! >> > > Ahh, I havent downloaded the Win32 version yet. I'm just wondering if there > were known issues. > > And my main issue with IIS is the fact it's totally insecure. And if it isn't > IIS, it's IE. If it isn't IE it's Windows. > > John
Re: tomcat-user.xml
Sankaranarayanan Ganapathy wrote: > What is this file used for? Provides basic security info when using servlets that provide logins via Basic or Form based authentication. Think of it as an example of how the real JDBCRealm database should be set up. > What happens if tomcat is run without this file? Nothing, if you don't hit a servlet that needs security. You will have to modify your server.xml as well. > Can somebody explain? Hope this helps just a bit. -- John Alex Hebert [EMAIL PROTECTED] System Engineer
RE: tomcat error messages
Hemm the second question is: But what could be the reason(s) for a such error ? -Message d'origine- De : Dmitri Colebatch [mailto:[EMAIL PROTECTED]] Envoyé : lundi 23 juillet 2001 06:28 À : [EMAIL PROTECTED] Objet : Re: tomcat error messages Hi, AFAIK the first null is the parameters, and in your case the second is because tomcat was unable to serve the request. tomcat.log will only exist if you configure it as such. open up server.xml and search for tomcat.log, you'll find a comment telling you how to have tomcat output go to the log file rather than stderr. cheers dim On Mon, 23 Jul 2001, Pancham Singh wrote: > I am having hard time trying to figure out what does the two "nulls" = > mean when Tomcat sends a 404 response back: > > 2001-07-22 14:20:35 - Ctx( ): 404 R( + /servlet/wps + null) null. > > Also, I never see tomcat.log file in $TOMCAT_HOME/logs directory, even = > thogh tomcat is writing error messges on System.err. Is it a = > configuration issue? > Thanks, > Pancham. > > > _ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp > >
question about WEB-INF/lib
It's my understanding that any jar files in the WEB-INF/lib directory should be found by the container when the app is deployed - however I havea jdbc driver in that directory and I'm getting a class not found exception. When ever I have set up tomcat before I've always edited the tomcat.sh script so search all the WEB-INF/lib directories for every web application - however this time I'd like to do it right. Thanks! joe -- ## # Joseph Toussaint # # Caribou Lake Software # # http://www.cariboulake.com # # [EMAIL PROTECTED] # # 952-837-98029 # ##
Re: tomcat error messages
Oups, I forgot my question. > Hello, > Could someone explain me what does this line mean ? > > 24-07-2001 05:51:14 - Ctx( /adfront ): 404 R( /adfront + /servlet/com.fivia.adfront.sales.AdFront + null) null > > Thanks in advance > > Loïc Lefèvre -Message d'origine- De : Loïc Lefèvre [mailto:[EMAIL PROTECTED]] Envoyé : mardi 24 juillet 2001 18:56 À : [EMAIL PROTECTED] Objet : RE: tomcat error messages Hemm the second question is: But what could be the reason(s) for a such error ? -Message d'origine- De : Dmitri Colebatch [mailto:[EMAIL PROTECTED]] Envoyé : lundi 23 juillet 2001 06:28 À : [EMAIL PROTECTED] Objet : Re: tomcat error messages Hi, AFAIK the first null is the parameters, and in your case the second is because tomcat was unable to serve the request. tomcat.log will only exist if you configure it as such. open up server.xml and search for tomcat.log, you'll find a comment telling you how to have tomcat output go to the log file rather than stderr. cheers dim On Mon, 23 Jul 2001, Pancham Singh wrote: > I am having hard time trying to figure out what does the two "nulls" = > mean when Tomcat sends a 404 response back: > > 2001-07-22 14:20:35 - Ctx( ): 404 R( + /servlet/wps + null) null. > > Also, I never see tomcat.log file in $TOMCAT_HOME/logs directory, even = > thogh tomcat is writing error messges on System.err. Is it a = > configuration issue? > Thanks, > Pancham. > > > _ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp > >
Re: keeping sessions when switching from http to https
Be careful when you experiment and report on this. I have found that IE 5 carries cookies from http to https but Netscape 4 does not. I have only tested this with cookies, not URL-rewriting. I'm grumped by this problem, but it's not critcal for me yet --- for my current site, I think I can get away with only having sessions on the https side. Mike
Apache + Tomcat/mod_jk.so
Hi everybody, I've got a war file in the good directory, server.xml seems correct as web.xml (appli+tomcat), I've just some problem running this because of the mod_rewrite module of apache. Could someone tell me if there is an other possibility to do what I want. Here is what I want to do + part of the files: ---8<--- --mod_jk.conf appended at httpd.conf ## # TOMCAT mod_jk.so MODULE CONFIGURATION FILE # ## JkWorkersFile /usr/local/tomcat/jakarta-tomcat-3.2.3/conf/workers.properties JkLogFile /usr/local/tomcat/log/mod_jk.log # # Log level to be used by mod_jk # debug / error / warn / info / fatal # JkLogLevel debug NameVirtualHost 192.1.1.128 ServerName loic.fivia.com DocumentRoot /usr/local/tomcat/jakarta-tomcat-3.2.3/webapps/adfront # 1: toutes les pages .jsp sont gérées par Tomcat # 2: toutes les url finissant par /servlet/* sont gérées par Tomcat # 3: toutes les url finissant par /adfront/* sont gérées par Tomcat JkMount /*.jsp ajp12 JkMount /servlet/* ajp12 JkMount /adfront/* ajp12 RedirectMatch /index.html $1/start/index.html ErrorLog /usr/local/tomcat/log/loic_error_html.log TransferLog /usr/local/tomcat/log/loic_access_html.log RewriteEngine on RewriteLog /usr/local/tomcat/log/loic_rewrite.log RewriteLogLevel 9 # REGLE DE REECRITURE n°1: # 1 condition # note : les conditions precedent toujours les regles # auxquelles elles se rapportent RewriteCond %{REQUEST_URI} ^/servlet* [NC] RewriteRule ^/servlet/(.*) /$1 [PT] # REGLE DE REECRITURE n°2: # 5 conditions # NC : condition insensible à la casse # si l'uri ne commence pas par "/adfront" RewriteCond %{REQUEST_URI} !^/adfront* [NC] # si l'uri ne commence pas par "/Image" RewriteCond %{REQUEST_URI} !^/Image* [NC] # si l'uri ne commence pas par "/Elemtech" RewriteCond %{REQUEST_URI} !^/Elemtech* [NC] # si l'uri ne commence pas par "/Erreur" RewriteCond %{REQUEST_URI} !^/Erreur* [NC] # si l'uri ne commence pas par "/.*/.*", pour les fichiers .js / .css etc... RewriteCond %{REQUEST_URI} ^/.*/.* # Alors on réécrit l'uri # QSA : query string append RewriteRule ^/(.*) /adfront/servlet/com.fivia.adfront.sales.AdFront?access=/$1 [PT,QSA] ---8<--- -- part of server.xml: ---8<--- -- AdFront com.fivia.adfront.sales.AdFront dbdriver com.sybase.jdbc2.jdbc.SybDriver ... AdFront /* 30 ---8<--- -- my directory structure (yes some files are missing...) log | mod_jk.log | tomcat_sdtout.log | loic_error_html.log | loic_access_html.log | loic_rewrite.log | conf | mod_jk.conf | jakarta-tomcat-3.2.3 | RELEASE-NOTES | KEYS | LICENSE | webapps | | adfront.war | | | adfront | | ... | META-INF | | MANIFEST.MF | | | web-inf | | | web.xml | | | | | classes | | com | | fivia | | adfront | | sales | | | AdFront.class (servlet entry point) | | | ... | | | Image | | | ... | | | Erreur | | erreur.html | | | Elemtech conf | | build.xml | | web.dtd | | tomcat.conf | | jni_workers.properties | | server.xml | | wrapper.properties | | tomcat-users.xml | | test-tomcat.xml | | web.xml | | uriworkermap.properties | | workers.properties | | manifest.servlet | | jni_server.xml | | tomcat.properties | | tomcat.policy | | obj.conf | | mod_jk.conf | | tomcat-apache.conf | | mod_jk.conf-auto | | iis_redirect.reg-auto | | uriworkermap.properties-auto | | obj.conf-auto | | | org | build.xml | jni_server.xml | jni_workers.properties | manifest.servlet | mod_jk.conf | obj.conf | server.xml | test-tomcat.xml | tomcat.conf | tomcat.policy | tomcat.properties | tomcat-users.xml | uriworkermap.properties | web.dtd | web.xml | workers.properties |
Re: starting/testing tomcat3.2.3
It looks like localhost isn't configured correctly. Try: http://127.0.0.1:8080 Make sure you put the http:// in front. - Original Message - From: "Sampath K Settipalli" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: 24 July 2001 15:36 Subject: starting/testing tomcat3.2.3 > Hi, > > When I start tomcat 3.2.3 using sh tomcat.sh start it displays > following lines > -- > Using classpath: > /home/einsteinium/squid/depot/tomcat/jakarta-tomcat-3.2.3/lib/ant.jar:/home/ einsteinium/squid/depot/tomcat/jakarta-tomcat-3.2.3/lib/jasper.jar:/home/ein steinium/squid/depot/tomcat/jakarta-tomcat-3.2.3/lib/jaxp.jar:/home/einstein ium/squid/depot/tomcat/jakarta-tomcat-3.2.3/lib/parser.jar:/home/einsteinium /squid/depot/tomcat/jakarta-tomcat-3.2.3/lib/servlet.jar:/home/einsteinium/s quid/depot/tomcat/jakarta-tomcat-3.2.3/lib/test:/home/einsteinium/squid/depo t/tomcat/jakarta-tomcat-3.2.3/lib/webserver.jar:/usr/java1.2/lib/tools.jar > > 10:27am sampath@einsteinium ~squid/depot/tomcat/jakarta-tomcat-3.2.3/bin > > Starting tomcat. Check logs/tomcat.log for error messages 2001-07-24 > 10:28:00 - ContextManager: Adding context Ctx( /examples ) > > 2001-07-24 10:28:00 - ContextManager: Adding context Ctx( /admin ) > 2001-07-24 10:28:00 - ContextManager: Adding context Ctx( ) > 2001-07-24 10:28:00 - ContextManager: Adding context Ctx( /test ) > 2001-07-24 10:28:01 - PoolTcpConnector: Starting HttpConnectionHandler > on 8080 > 2001-07-24 10:28:01 - PoolTcpConnector: Starting Ajp12ConnectionHandler > on 8007 > > >which I guess is starting tomcat correctly. Now when I want to test > it http://localhost:8080 it says server not found. I didn't make any > changes in server.xml like context root or so . I tried different ports > other than 8080. Still it doesn't display test page / examples . I tried > telnet/ping and timed out. Its on Solaris 5.7 > I'm not sure whats happening. I don't find any /logs/tomcat.log file to > check for any errors. > Can you please suggest. > > Thanks in Advance, > Sampath >
RE: Tomcat takes 100% of CPU (SourceSafe)
Title: RE: Tomcat takes 100% of CPU (SourceSafe) if your uriworkermap.properties has a mapping of /* ajp12 then any request to the webserver is sent to tomcat. It doesn't matter if it was intended for SourceSafe or not. likewise if you have a mapping of /*.html and you try to store html files in SourceSafe. In these cases see the aforementioned section 6.11 I haven't tried multiple isapi filters, so I don't know which one would be called first. I think you can order them in the iis setup. Charlie > -Original Message- > From: Dave Finch [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 24, 2001 8:52 AM > To: [EMAIL PROTECTED] > Subject: RE: Tomcat takes 100% of CPU (SourceSafe) > > > Yes I have read this and I am quite familiar with the server.xml file. > Correct me if I am wrong but from my experience I have found > that if the > server.xml is wrong i.e. syntactically correct but is missing > a host, then a > endless loop occurs sending the processor to 100% when a > request is made to > that a jsp or servlet on that host. > > In my case no requests are received, the network cable is > even unplugged. > > Could it be anything to do with Microsoft Visual Source Safe > which also uses > an isapi filter? > > Dave > > -Original Message- > From: Randy Layman [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 24, 2001 7:00 AM > To: [EMAIL PROTECTED] > Subject: RE: Tomcat takes 100% of CPU > > > You would do well to read your TOMCAT_HOME\doc\readme file, item > 6.11. > > Randy > > > -Original Message- > From: Dave Finch [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 23, 2001 7:11 PM > To: '[EMAIL PROTECTED]' > Subject: Tomcat takes 100% of CPU > > > I have an NT 4 server running IIS and Tomcat 3.2.1 using the > ISAPI filter > and the NT Service. > After about 10 minutes of running and not a single request the tomcat > (java.exe) process takes 100% of the CPU usage. > I initially thought it was a problem with the code but it > happens whether > any requests are received by the web server or not and I have the same > configuration and code running on another server. I am also > sure it is not a > hardware issue. > > Any ideas would be appreciated. > > TIA, > Dave Finch >
help please!
Hi I've checked documentation and have tried things already suggested, but still without success. Does anyone know where I could go to get information or give me some help? I have placed a /baseball under /webapps. When I type in http://localhost:8080/baseball from my UNIX workstation, it works fine. However, when I type the URL/baseball from my PC, it cannot find the directory. Apache came already set up with tomcat, I do not understand why it wont show from my PC, when the /examples directory shows perfectly finr from my PC. Any help greatly appreciated. Aaron
Help w/ Tomcat 4.0b6 and Apache
Folks: I have received but a single response to my multiple posts regarding Tomcat 4 Beta 6 and Apache, but, alas, it, was not helpful. Given the otherwise high level of activity on this list, I must again ask this question: "Is anybody on this list successfully using Tomcat 4 with Apache??" If so, I would desperately like to know your configuration and see the relevant parts of your server.xml, apache configs, and know what module/version you are using as bridge between Apache and Tomcat. Our desired benchmark is simply to achieve the same behaviors from the example JSP's through port 80 (via Apache) as we do through port 8080. It has taken enormous effort just to get something limping along, but still the transport between Apache and Tomcat (mod_webapp) is clearly broken - key header variables have default values instead of actual values, preventing the application from using sessions or accessing the proper values of header variables. As an example, the "snoop" JSP provides reasonable values when executed from port 8080 but reports mostly null's and -1's, when executed from port 80. We are using the latest versions of everything - Tomcat milestone 4.0b6, apr, and mod_webapp CVS snapshot. We have tried using the Java Warp code that comes with Tomcat, and replacing it with the Java part of the mod_webapp build. I have also rebuilt mod_webapp with --enable-debug and see NO DIFFERENCE WHATSOEVER in the log contents. Any ideas at all would be appreciated. If I don't get any responses I will have to conclude that nobody is actually using Tomcat 4. However, I find it difficult to justify that conclusion for a distribution in its 6th Beta!! Thanks, Mark -- Mark Dzmura Digital Mission LLC
RE: Tomcat takes 100% of CPU (SourceSafe)
Title: RE: Tomcat takes 100% of CPU (SourceSafe) I have the follow in my uriworkermap.properties /*.jsp = ajp12 /servlet/* = ajp12 but maybe it is because JSPs are in sourcesafe, but this does not really make sense since there are no requests not even to sourcesafe Dave -Original Message- From: Cox, Charlie [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 24, 2001 1:37 PM To: '[EMAIL PROTECTED]' Subject: RE: Tomcat takes 100% of CPU (SourceSafe) if your uriworkermap.properties has a mapping of /* ajp12 then any request to the webserver is sent to tomcat. It doesn't matter if it was intended for SourceSafe or not. likewise if you have a mapping of /*.html and you try to store html files in SourceSafe. In these cases see the aforementioned section 6.11 I haven't tried multiple isapi filters, so I don't know which one would be called first. I think you can order them in the iis setup. Charlie > -Original Message- > From: Dave Finch [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 24, 2001 8:52 AM > To: [EMAIL PROTECTED] > Subject: RE: Tomcat takes 100% of CPU (SourceSafe) > > > Yes I have read this and I am quite familiar with the server.xml file. > Correct me if I am wrong but from my experience I have found > that if the > server.xml is wrong i.e. syntactically correct but is missing > a host, then a > endless loop occurs sending the processor to 100% when a > request is made to > that a jsp or servlet on that host. > > In my case no requests are received, the network cable is > even unplugged. > > Could it be anything to do with Microsoft Visual Source Safe > which also uses > an isapi filter? > > Dave > > -Original Message- > From: Randy Layman [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 24, 2001 7:00 AM > To: [EMAIL PROTECTED] > Subject: RE: Tomcat takes 100% of CPU > > > You would do well to read your TOMCAT_HOME\doc\readme file, item > 6.11. > > Randy > > > -Original Message- > From: Dave Finch [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 23, 2001 7:11 PM > To: '[EMAIL PROTECTED]' > Subject: Tomcat takes 100% of CPU > > > I have an NT 4 server running IIS and Tomcat 3.2.1 using the > ISAPI filter > and the NT Service. > After about 10 minutes of running and not a single request the tomcat > (java.exe) process takes 100% of the CPU usage. > I initially thought it was a problem with the code but it > happens whether > any requests are received by the web server or not and I have the same > configuration and code running on another server. I am also > sure it is not a > hardware issue. > > Any ideas would be appreciated. > > TIA, > Dave Finch >
expression tag in JSP standar
Hi, I have notice a miss-implementation of the 'expression tag' ("<%= ... %>") between different JSP containers witch I want to share with you to clarify the standar vs. implementarion. The main issue is that an expression of type "<%= variable %> within a JSP page prints out different strings when 'variable' is 'null' ((variable == null) is true) ('variable' is of class 'String') Tomcat v3.2.1 prints out the string "null", while some other JSP containers (BEA Weblogic v6.0, HP Bluestone total-e-server v7.2) print out an empty string (nothing). However an expresion of type "<%= (variable1 + variable2) %>" prints out the same on every container (where both variables are 'String', and variable1 is NOT null and variable2 IS null) Does anyone have an opinion on what should be the correct behave for the expression-tag?. Is there any missunderstanding of the JSP specifications/standar?. Why the "<%= .. %>" tag behaves different on different containers (same jdk 1.3.0)?. I wonder what is the behave on other containers (iPlanet, Websphere, Tomcat 4, other..). Can anyone test it and give feedback?. Here is the code I've tested: jsp -- <% String a = null; String b = "hello world"; %> 1 -<%=a%>- 2 -<%=b%>- 3 -<%=(b + a)%>- -- Results: - TOMCAT - 1 -null- 2 -hello world- 3 -hello worldnull- - TOMCAT - - BEA & BLUESTONE - 1 -- 2 -hello world- 3 -hello worldnull- - BEA & BLUESTONE - Notice line 1 is different while 2 & 3 are equal. Best regards Bob.
Re: question about WEB-INF/lib
I see this problem, too. I'm using Tomcat 3.2.x. It appears to me to be a bug. I've seen others with this problem on this mailing list. Can anyone verify that this actually does work? (Just trying to add some weight to your claim and get it fixed if it is a bug. :o) Thanks, Dave Joseph D Toussaint <[EMAIL PROTECTED]> on 07/24/2001 11:55:44 AM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: question about WEB-INF/lib It's my understanding that any jar files in the WEB-INF/lib directory should be found by the container when the app is deployed - however I havea jdbc driver in that directory and I'm getting a class not found exception. When ever I have set up tomcat before I've always edited the tomcat.sh script so search all the WEB-INF/lib directories for every web application - however this time I'd like to do it right. Thanks! joe -- ## # Joseph Toussaint # # Caribou Lake Software # # http://www.cariboulake.com # # [EMAIL PROTECTED] # # 952-837-98029 # ##
RE: question about WEB-INF/lib
Joseph D Toussaint wrote: > It's my understanding that any jar files in the WEB-INF/lib directory > should be found by the container when the app is deployed - however I > havea jdbc driver in that directory and I'm getting a class not found > exception. What's the name of the JDBC file? If it ends in .zip try renaming it to .jar. See, for example, http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg27920.html -- Andrew
RE: question about WEB-INF/lib
The jar file I have is a ".jar" file however it is a compressed jar file - does this matter? I seem to remember something about having to explictily add compressed jar files to a classpath where as the jvm would find all the uncompressed jar files in a directory if you just passed it the directory name. Thanks joe On 24 Jul 2001 19:20:12 +0100, Andrew Inggs wrote: > Joseph D Toussaint wrote: > > It's my understanding that any jar files in the WEB-INF/lib directory > > should be found by the container when the app is deployed - however I > > havea jdbc driver in that directory and I'm getting a class not found > > exception. > > What's the name of the JDBC file? If it ends in .zip try renaming it > to .jar. > > See, for example, > http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg27920.html > > -- Andrew -- ## # Joseph Toussaint # # Caribou Lake Software # # http://www.cariboulake.com # # [EMAIL PROTECTED] # # 952-837-98029 # ##
APACHE & NT 4
Hi I have download the file apache_1.3.20-win32-no_src-r2.msi..msi and install apache in my NT (4.0 and sp 6) I have a jakarta-tomcat-3.2.3 and a jdk1.3.1 in that NT I put the line Include e:\tomcat\jakarta-tomcat-3.2.3\conf\tomcat-apache.conf in my httpd.conf but the first line of the tomcat-apache.conf : LoadModule jserv_module modules/ApacheModuleJServ.dll don't work I try 4 or 5 versions of ApacheModuleJServ.dll from http://java.apache.org/jserv/dist/old/dll/ and it do not work help please!
RE: newbie (or a dummy?)
Just a wild guess: may be you are missing SHA-1 security provider? See if you can get it in a separate download from Sun. --V. -Original Message- From: Henderson, Kevin CECOM RDEC STCD [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 24, 2001 8:35 AM To: '[EMAIL PROTECTED]' Subject: newbie (or a dummy?) I am trying to run tomcat 3.2.2 and cocoon 1.8.2 on a win2k box. I followed all instructions to setup tomcat to work with cocoon, and when I try to run tomcat (w/ tomcat run, cause a new window closes to fast!) , the output looks normal up until this: Exception in thread "main" java.lang.InternalError: internal error: SHA-1 not available at sun.security.provider.SecureRandom.init(SecureRandom.java:89) ... the error stack goes on for twenty or so lines... I really would like to get this shtuff working! what have I overlooked? THANK YOU ;P {then when I try to put the error trace to a file for the sake of my hand-> (tomcat run >err.txt), the output is there up until the errors, then it says error report can be found in/logs/tomcat.log ... but its not there!} *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. ***
Re: help please!
Aaron Cooper wrote: > Hi > >I've checked documentation and have tried things already suggested, but still >without success. Does anyone know where I could go to get information or give me some >help? > >I have placed a /baseball under /webapps. When I type in >http://localhost:8080/baseball from my UNIX workstation, it works fine. However, >when I type the URL/baseball from my PC, it cannot find the directory. Apache came >already set up with tomcat, I do not understand why it wont show from my PC, when the >/examples directory shows perfectly finr from my PC. Hmmm. Make sure your browser cache is clean. What you are doesn't seem like it should work. -- John Alex Hebert [EMAIL PROTECTED] System Engineer
Re: help please!
i've tried that John :) I'll still plug away at it :) Thanks for the reply. >>> John Hebert <[EMAIL PROTECTED]> 07/24/01 03:54pm >>> Aaron Cooper wrote: > Hi > >I've checked documentation and have tried things already suggested, but still >without success. Does anyone know where I could go to get information or give me some >help? > >I have placed a /baseball under /webapps. When I type in >http://localhost:8080/baseball from my UNIX workstation, it works fine. However, >when I type the URL/baseball from my PC, it cannot find the directory. Apache came >already set up with tomcat, I do not understand why it wont show from my PC, when the >/examples directory shows perfectly finr from my PC. Hmmm. Make sure your browser cache is clean. What you are doesn't seem like it should work. -- John Alex Hebert [EMAIL PROTECTED] System Engineer
RE: help please!
Aaron, Are you running apache/tomcat on your PC? We had this problem before and it turned out to be a case problem on the directories. The PC ignores case while UNIX is case-sensitive. We had Web-Inf instead of WEB-INF. Chris > -Original Message- > From: Aaron Cooper [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 24, 2001 1:41 PM > To: [EMAIL PROTECTED] > Subject: help please! > > > Hi > >I've checked documentation and have tried things already > suggested, but still without success. Does anyone know where > I could go to get information or give me some help? > >I have placed a /baseball under /webapps. When I type in > http://localhost:8080/baseball from my UNIX workstation, it > works fine. However, when I type the URL/baseball from my > PC, it cannot find the directory. Apache came already set up > with tomcat, I do not understand why it wont show from my PC, > when the /examples directory shows perfectly finr from my PC. > > Any help greatly appreciated. > > Aaron > >
RE: help please!
Hi Chris I am running apache/tomcat on a UNIX server, and I am trying to access the page from my PC. I can access the pages just fine by http://localhost:8080/baseball/ on the UNIX box, but when I type http://istest-vac.acc.gc.ca/baseball/baseball.jsp from my PC, it does not show up, however, /examples in the above URL works. I do not believe it is a case sensitivity problem here. I've checked that. Thanks for the reply :) Aaron >>> "Chris McNeilly" <[EMAIL PROTECTED]> 07/24/01 04:08pm >>> Aaron, Are you running apache/tomcat on your PC? We had this problem before and it turned out to be a case problem on the directories. The PC ignores case while UNIX is case-sensitive. We had Web-Inf instead of WEB-INF. Chris > -Original Message- > From: Aaron Cooper [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 24, 2001 1:41 PM > To: [EMAIL PROTECTED] > Subject: help please! > > > Hi > >I've checked documentation and have tried things already > suggested, but still without success. Does anyone know where > I could go to get information or give me some help? > >I have placed a /baseball under /webapps. When I type in > http://localhost:8080/baseball from my UNIX workstation, it > works fine. However, when I type the URL/baseball from my > PC, it cannot find the directory. Apache came already set up > with tomcat, I do not understand why it wont show from my PC, > when the /examples directory shows perfectly finr from my PC. > > Any help greatly appreciated. > > Aaron > >
HELP! retrieving X509Certificate
I am desperately needing advise. I'm running IIS 5.0 with Tomcat 3.2.2. Enabled SSL on IIS, requiring client certificate. In my servlet, using: X509Certificate[] certs = (X509Certificate[]) req.getAttribute("javax.servlet.request.X509Certificate"); returns null. In JRun, IIS makes certificate information available through headers. The following are headers that can be used with the getHeader() method to obtain certificate information: CERT_FLAGS CERT_COOKIE CERT_SUBJECT CERT_SERVER_SUBJECT This worked correctly with IIS and JRun. I tried the same with Tomcat, but all returned nulls. PLEASE HELP!
RE: help please!
Aaron Cooper wrote: >I am running apache/tomcat on a UNIX server, and I am > trying to access the page from my PC. I can access the > pages just fine by http://localhost:8080/baseball/ on the > UNIX box, but when I type > http://istest-vac.acc.gc.ca/baseball/baseball.jsp from my > PC, it does not show up, however, /examples in the above > URL works. Hang on, what happened to the :8080? What happens when you try http://localhost/baseball/ from the UNIX box? -- Andrew
RE: HELP! I have already unsubscribed from this list but still get tons of them
When you unsubscribed, did you return the "unsubscribe confirmation"? -Original Message- From: Jing Fan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 24, 2001 9:24 AM To: [EMAIL PROTECTED] Subject: HELP! I have already unsubscribed from this list but still get tons of them _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
RE: help please!
Sorry, I haven't read any of your previous emails but I noticed you are using a port number on the Unix box and not on your PC. You should try it with out the port# on the Unix box too. This will test your Apache/Tomcat setup. If that fails then you know where the problem is. Also, you should be able to specify the port number when accessing baseball from you PC. Although, you will be circumventing Apache and going straight to Tomcat with the request. It should work if it is working on the Unix box. > -Original Message- > From: Aaron Cooper [SMTP:[EMAIL PROTECTED]] > Sent: Tuesday, July 24, 2001 3:12 PM > To: [EMAIL PROTECTED] > Subject: RE: help please! > > Hi Chris > >I am running apache/tomcat on a UNIX server, and I am trying to access > the page from my PC. I can access the pages just fine by > http://localhost:8080/baseball/ on the UNIX box, but when I type > http://istest-vac.acc.gc.ca/baseball/baseball.jsp from my PC, it does not > show up, however, /examples in the above URL works. > > I do not believe it is a case sensitivity problem here. I've checked that. > > Thanks for the reply :) > > Aaron > > >>> "Chris McNeilly" <[EMAIL PROTECTED]> 07/24/01 04:08pm >>> > Aaron, > > Are you running apache/tomcat on your PC? We had this problem before > and it turned out to be a case problem on the directories. The PC > ignores case while UNIX is case-sensitive. We had Web-Inf instead of > WEB-INF. > > Chris > > > -Original Message- > > From: Aaron Cooper [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, July 24, 2001 1:41 PM > > To: [EMAIL PROTECTED] > > Subject: help please! > > > > > > Hi > > > >I've checked documentation and have tried things already > > suggested, but still without success. Does anyone know where > > I could go to get information or give me some help? > > > >I have placed a /baseball under /webapps. When I type in > > http://localhost:8080/baseball from my UNIX workstation, it > > works fine. However, when I type the URL/baseball from my > > PC, it cannot find the directory. Apache came already set up > > with tomcat, I do not understand why it wont show from my PC, > > when the /examples directory shows perfectly finr from my PC. > > > > Any help greatly appreciated. > > > > Aaron > > > > >
RE: help please!
when I try http://localhost/baseball from my UNIX box, it says "Not Found" >>> Andrew Inggs <[EMAIL PROTECTED]> 07/24/01 04:24pm >>> Aaron Cooper wrote: >I am running apache/tomcat on a UNIX server, and I am > trying to access the page from my PC. I can access the > pages just fine by http://localhost:8080/baseball/ on the > UNIX box, but when I type > http://istest-vac.acc.gc.ca/baseball/baseball.jsp from my > PC, it does not show up, however, /examples in the above > URL works. Hang on, what happened to the :8080? What happens when you try http://localhost/baseball/ from the UNIX box? -- Andrew
RE: help please!
Aaron Cooper wrote: > when I try http://localhost/baseball from my UNIX box, it says > "Not Found" OK, now we're getting somewhere. Apache is not configured correctly to forward JSP requests off to Tomcat. See if this helps: http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-apache-howto.html -- Andrew
RE: Changing error pages
Loïc, how will this help if Tomcat is not even running? -Original Message- From: Loïc Lefèvre [mailto:[EMAIL PROTECTED]] Sent: Monday, July 23, 2001 3:36 AM To: [EMAIL PROTECTED] Subject: RE: Changing error pages Try this url, ;) http://www.jguru.com/faq/view.jsp?EID=318806 Loïc Lefèvre -Message d'origine- De : Ivan E. Markovic [mailto:[EMAIL PROTECTED]] Envoyé : lundi 23 juillet 2001 13:30 À : [EMAIL PROTECTED] Objet : Changing error pages A quickie. Can I change the error page that appears when Tomcat is down? Or is this hard-coded into Apache? Somehow, someway I want to be able to provide people with notice of what's going on when I am taking the system down. Thank you. I v a n ... Ivan Markovic SculptLight http://www.sculptlight.com (+353) 87 2939256 (+353) 1 2982205 114 Lower Churchtown Rd, Dublin 14, Ireland. -- Ivan Markovic SculptLight http://www.sculptlight.com (+353) 87 2939256 (+353) 1 2982205 114 Lower Churchtown Rd, Dublin 14, Ireland.
RE: help please!
hi Andrew I thought that might be the case, but why would I be able to view the /examples directory from my PC if it were not configured correctly? Because of that, I thought it was configured properly. >>> Andrew Inggs <[EMAIL PROTECTED]> 07/24/01 04:38pm >>> Aaron Cooper wrote: > when I try http://localhost/baseball from my UNIX box, it says > "Not Found" OK, now we're getting somewhere. Apache is not configured correctly to forward JSP requests off to Tomcat. See if this helps: http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-apache-howto.html -- Andrew
RE: Tomcat/Apache advantage without static pages?'tomcat-user@jakarta .apache.org'
I recently read that if you have three or more images on a web page -- you will have faster response by serving them through Apache. In my applications, I make sure to set up Apache to handle images, stylesheets, and javascript includes (
RE: starting/testing tomcat3.2.3
Hi all: I ran into a problem just like this once while teaching a JSP class at a government office. Embarassing as all h* after I'd spent an hour telling everyone how great Tomcat was. Turned out that they had their browser setup to run through a proxy server for security reasons, and the proxy server was saying "I don't do port 8080!". In Internet Explorer, there's an option under Tools-->Internet Options-->Connections-->LAN Settings-->Bypass Proxy Server for local addresses. You didn't say what browser you were using; there may be a similar setting. Greg Trasuk, President StratusCom Manufacturing Systems Inc. - We use information technology to solve business problems on your plant floor. http://stratuscom.ca -Original Message- From: Sampath K Settipalli [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 24, 2001 10:37 AM To: [EMAIL PROTECTED] Subject: starting/testing tomcat3.2.3 Hi, When I start tomcat 3.2.3 using sh tomcat.sh start it displays following lines -- Using classpath: /home/einsteinium/squid/depot/tomcat/jakarta-tomcat-3.2.3/lib/ant.jar:/home/ einsteinium/squid/depot/tomcat/jakarta-tomcat-3.2.3/lib/jasper.jar:/home/ein steinium/squid/depot/tomcat/jakarta-tomcat-3.2.3/lib/jaxp.jar:/home/einstein ium/squid/depot/tomcat/jakarta-tomcat-3.2.3/lib/parser.jar:/home/einsteinium /squid/depot/tomcat/jakarta-tomcat-3.2.3/lib/servlet.jar:/home/einsteinium/s quid/depot/tomcat/jakarta-tomcat-3.2.3/lib/test:/home/einsteinium/squid/depo t/tomcat/jakarta-tomcat-3.2.3/lib/webserver.jar:/usr/java1.2/lib/tools.jar 10:27am sampath@einsteinium ~squid/depot/tomcat/jakarta-tomcat-3.2.3/bin > Starting tomcat. Check logs/tomcat.log for error messages 2001-07-24 10:28:00 - ContextManager: Adding context Ctx( /examples ) 2001-07-24 10:28:00 - ContextManager: Adding context Ctx( /admin ) 2001-07-24 10:28:00 - ContextManager: Adding context Ctx( ) 2001-07-24 10:28:00 - ContextManager: Adding context Ctx( /test ) 2001-07-24 10:28:01 - PoolTcpConnector: Starting HttpConnectionHandler on 8080 2001-07-24 10:28:01 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007 which I guess is starting tomcat correctly. Now when I want to test it http://localhost:8080 it says server not found. I didn't make any changes in server.xml like context root or so . I tried different ports other than 8080. Still it doesn't display test page / examples . I tried telnet/ping and timed out. Its on Solaris 5.7 I'm not sure whats happening. I don't find any /logs/tomcat.log file to check for any errors. Can you please suggest. Thanks in Advance, Sampath
RE: help please!
I'm going to take another shot at it ;-) Check your JkMounts and make sure that there are some for /baseball. mod_jk.conf-auto or whatever you changed it to. Chris > -Original Message- > From: Aaron Cooper [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 24, 2001 3:37 PM > To: [EMAIL PROTECTED] > Subject: RE: help please! > > > hi Andrew > >I thought that might be the case, but why would I be able > to view the /examples directory from my PC if it were not > configured correctly? > > Because of that, I thought it was configured properly. > > >>> Andrew Inggs <[EMAIL PROTECTED]> 07/24/01 04:38pm >>> > Aaron Cooper wrote: > > when I try http://localhost/baseball from my UNIX box, it says > > "Not Found" > > OK, now we're getting somewhere. Apache is not configured correctly > to forward JSP requests off to Tomcat. See if this helps: > http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-apache- > howto.html > > -- Andrew > >
RE: How can i get all table's name from JDBC driver?
What does this have to do with Tomcat? -Original Message-From: João Folha [mailto:[EMAIL PROTECTED]]Sent: Monday, July 23, 2001 7:48 PMTo: [EMAIL PROTECTED]Subject: How can i get all table's name from JDBC driver? Hi there, I need to get all table's name from JDBC driver and all column's name from any table. Can you help me? cheers João Folha
RE: How can i get all table's name from JDBC driver?
Umm ... can you guys take this off to a JDBC list somewhere? -Original Message-From: João Folha [mailto:[EMAIL PROTECTED]]Sent: Monday, July 23, 2001 7:56 PMTo: [EMAIL PROTECTED]Subject: Re: How can i get all table's name from JDBC driver? ODBC, with ms access. - Original Message - From: Sean Alphonse To: [EMAIL PROTECTED] Sent: Monday, July 23, 2001 3:55 PM Subject: RE: How can i get all table's name from JDBC driver? Which RDBMS are you using? -Original Message-From: João Folha [mailto:[EMAIL PROTECTED]]Sent: July 23, 2001 9:48 PMTo: [EMAIL PROTECTED]Subject: How can i get all table's name from JDBC driver? Hi there, I need to get all table's name from JDBC driver and all column's name from any table. Can you help me? cheers João Folha
server.xml settings for virtual hosts
I'm running Apache 1.3.20 and Tomcat 3.2.2 with JDK1.3.1 on an NT box. Both Apache and Tomcat are running as services. I am able to run the examples with and without Apache so my basic setup is OK. According to the "working with mod_jk" document (under Configuring Tomcat), I have to add an entry to server.xml to generate the Apache autoconfiguration file (presumably mod_jk.conf-auto). However, I can't find the entry refered to in the documentation. None the less, a mod_jk.conf-auto is created each time I start Tomcat. However, it ignores the entries I put into server.xml for virtual hosts and only generates contexts for subdirectories it finds in webapps. I can add a directory to webapps and it adds it to the .conf-auto. When I remove it again, it is removed from .conf-auto. It also ignores the entry I put in for Ajp13. My server.xml changes are similar to the ones shown in Table 1 of the "working with mod_jk" document and the comments in the server.xml file. The Ajp13 connector is a cut and paste of the Ajp12 connector with the values changed. The virtual hosts are similar to the examples only with the name and docBase adjusted to fit my server. This is moot since it seems to be ignoring the changes anyway. Can someone provide some insight into how I can get Tomcat to generate the mod_jk.conf-auto file with Ajp13 and the virtual hosts I specify?
TOMCAT 3.2.2
Hi. I've check the FAQ and other sources but can't find anything specifically related to my problem. There are other "404 not found" problems but mine only happens in certain contexts and I can't figure out why. I have the isapi-redirect.dll installed on IIS 4.0 / NT 4.0 SP6 and the green arrow shows in the isapi filter. I would appreciate any help. Thank you. These urls work : http://127.0.0.1/bookstore/bookstore.html http://127.0.0.1/examples/jsp/index.html I get the 404 with the following: http://127.0.0.1/examples/servlet/index.html http://127.0.0.1/examples/admin/index.html The pages are definitely in the right folders/directories. Following is information that may be of use: uriworkermap.properties-auto file contains: default.worker=ajp12 /servlet/*=$(default.worker) /*.jsp=$(default.worker) /examples/servlet/*=$(default.worker) /examples/*.jsp=$(default.worker) # /examples/*=$(default.worker) /admin/servlet/*=$(default.worker) /admin/*.jsp=$(default.worker) # /admin/*=$(default.worker) /bookstore/servlet/*=$(default.worker) /bookstore/*.jsp=$(default.worker) # /bookstore/*=$(default.worker) /test/servlet/*=$(default.worker) /test/*.jsp=$(default.worker) # /test/*=$(default.worker) iis-redirect.reg-auto contains: REGEDIT4 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\1.0] "extension_uri"="/jakarta/isapi_redirect.dll" "log_file"="D:\\Tomcat-3.2.2\\logs\\iis_redirect.log" "log_level"="debug" "worker_file"="D:\\Tomcat-3.2.2\\conf\\workers.properties" "worker_mount_file"="D:\\Tomcat-3.2.2\\conf\\uriworkermap.properties" servlet.log contains: 2001-07-06 03:00:10 - path="/examples" :jsp: init 2001-07-06 03:00:11 - path="/admin" :jsp: init 2001-07-06 03:00:11 - path="/bookstore" :jsp: init 2001-07-06 03:00:11 - path="" :jsp: init 2001-07-06 03:00:11 - path="/test" :jsp: init isapi.log contains: [jk_isapi_plugin.c (408)]: HttpFilterProc started [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of /examples/servlet/index.html [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker, Found a match ajp12 [jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/servlet/index.html] is a servlet url - should redirect to ajp12 [jk_isapi_plugin.c (461)]: HttpFilterProc check if [/examples/servlet/index.html] is points to the web-inf directory [jk_uri_worker_map.c (155)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [jk_uri_worker_map.c (195)]: Into jk_uri_worker_map_t::uri_worker_map_open [jk_uri_worker_map.c (210)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 15 [jk_uri_worker_map.c (266)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /servlet/=ajp12 was added [jk_uri_worker_map.c (255)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /.jsp=ajp12 was added [jk_uri_worker_map.c (266)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/servlet/=ajp12 was added [jk_uri_worker_map.c (255)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /examples/.jsp=ajp12 was added [jk_uri_worker_map.c (266)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/=ajp12 was added [jk_uri_worker_map.c (266)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /admin/servlet/=ajp12 was added [jk_uri_worker_map.c (255)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /admin/.jsp=ajp12 was added [jk_uri_worker_map.c (266)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /admin/=ajp12 was added [jk_uri_worker_map.c (266)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /bookstore/servlet/=ajp12 was added [jk_uri_worker_map.c (255)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /bookstore/.jsp=ajp12 was added [jk_uri_worker_map.c (266)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /bookstore/=ajp12 was added [jk_uri_worker_map.c (266)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /test/servlet/=ajp12 was added [jk_uri_worker_map.c (255)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /test/.jsp=ajp12 was added [jk_uri_worker_map.c (266)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /test/=ajp12 was added [jk_uri_worker_map.c (295)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 14 rules [jk_uri_worker_map.c (316)]: jk_uri_worker_map_t::uri_worker_map_open, done [jk_worker.c (82)]: Into wc_open [jk_worker.c (207)]: Into build_worker_map, creating 2 workers [jk_worker.c (213)]: build_worker_map, creating worker ajp12 [jk_worker.c (138)]: Into wc_create_worker [jk_worker.c (152)]: wc_create_worker, about to create instance ajp12 of ajp12 [jk_ajp12_worker.c (264)]: Into ajp12_worker_factory [jk_worker.c (161)]: wc_create_worker, about to validate and init ajp12 [jk_ajp12_worker.c (182)]: Into jk_worker_t::validate [jk_ajp12_worker.c (194)]: In jk