Repost:Port 80
I am going to install Tomcat4 as standalone and Apache, but not Apache+Tomcat.I want it them to operate separately. My willing configure is as follows: Apache listens port 80 (IP : xxx.xxx.xxx.1) Javaservlet listens port 80 ( IP : xxx.xxx.xxx.2) The question is : Is it possible to configure Apache,Tomcat4 to run separately on the different IP listening the same port 80? -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
server.xml
Hello all ! Where can I read the best about server.xml configuration ? -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Input from a FORM - encoding problem
if its servlet, try this.. response.setContentType(text/html;charset=UR ENCODING TYPE); PrintWriter out = new PrintWriter( new OutputStreamWriter(response.getOutputStream(), UR ENCODING TYPE)); -Original Message- From: Attila Szegedi [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 5:16 PM To: Tomcat Users List Subject: Re: Input from a FORM - encoding problem OK: he might try. I admit I've not used IE6, only IEs up to 5.5 and NN up to 4.72, but it's a fact that: - these browsers never appended a charset declaration to the Content-Type header (i.e. Content-Type: application/x-form-urlencoded and not Content-Type: application/x-form-urlencoded; charset=iso-8859-2 so it was up to the server side to figure out what the charset was. - Tomcat 3.2.x blindly decoded form data as ISO-8859-1 (in fact, it is the code in javax.servlet.http.HttpUtils#parsePostData() method which contains the following much revealing comment: quote // XXX we shouldn't assume that the only kind of POST body // is FORM data encoded using ASCII or ISO Latin/1 ... or // that the body should always be treated as FORM data. /quote So, even if your browser acts to the spec, Tomcat 3.2.x certainly does not. I must underline that I don't know if 3.3.x or 4.x Tomcats rely on this (flawed) code or not. Tomcat 4.x definitely should not, since it is supposed to implement request.setCharacterEncoding()... Cheers, Attila. -- Attila Szegedi home: http://www.szegedi.org - Original Message - From: Arnold Shore [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: 2002. febru? 18. 16:58 Subject: RE: Input from a FORM - encoding problem Re Don't bother fiddling with FORM attributes. I've done this before to no avail: I'm accepting Arabic, Hebrew, Russian, and Chinese doing exactly that, with IE 6 and using Unicode encodings. (Will be trying NN and Opera shortly.) And yes, I'm also using that encoding on the page. It's going into a database, with subsequent retrieval and display. Works correctly for the stuff I've tried. Arnold Shore Annapolis, MD USA -Original Message- From: Attila Szegedi [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 9:39 AM To: Tomcat Users List Subject: Re: Input from a FORM - encoding problem Don't bother fiddling with FORM attributes. I've done this before to no avail. Right now, no matter what you specify as an encoding in a HTML page, most browsers (all favorite IE and NN flavors) ignore it altogether and encode the form data using the encoding in which the page containing the form was sent to them. Worse yet, they *don't* specify the encoding of characters in the form data when sending them back via a POST request, so you must know on the server side what was the encoding of the page that contained the form. Servlet 2.3 spec is meant to contain a solution for this, but I don't know how is it (or isn't) implemented in Tomcat 4.x. As if all of the above weren't enough, Tomcat 3.x gives yet another stab to internationalization efforts: it will blindly interpret all form data as being iso-8859-1 (~ Cp1252), so your iso-8859-2 (~Cp1250) characters are lost. Again, I don't know how Tomcat 4.x line handles this. Being a Hungarian, I'm just as interested in entering 8859-2 characters in my pages, and not seeing ? marks on the server side, so I'm transcoding all form data strings on the fly. The off-the-wall solution looks like this: param = new String(param.getBytes(8859_1), 8859_2); altough this tends to be slow (running through Java char-to-byte, then through byte-to-char machinery). I have developed a fast 8859-1 to 8859-2 transcoder that addresses speed issues; contact me in private mail and I can send it to you. Cheers, Attila. -- Attila Szegedi home: http://www.szegedi.org - Original Message - From: Nikola Milutinovic [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: 2002. febru? 18. 15:17 Subject: Re: Input from a FORM - encoding problem quote FORM attribute accept-charset = charset list [CI] This attribute specifies the list of character encodings for input data that is accepted by the server processing this form. The value is a space- and/or comma-delimited list of charset values. The client must interpret this list as an exclusive-or list, i.e., the server is able to accept any single character encoding per entity received. This bit is a bit unclear to me. If I specify several encodings, how will the browser know which one was actually used? How will the server know which one was used? Nix. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe:
Redirector Comtext.
Hi all, I have installed tomcat 3.2.3 on IIS4 and had configured it as per the instruction. But i am facing a problem What Context to add in the server.xml file for this situation. The physical directory is E:\Indorama The Alias used in IIS is ircl so my intranet site is http://indorama/ircl the JSP pages are located in a the directory e:\indorama\indorama\jsp so at site it reflectes as http://indorama/ircl/indorama/jsp I want to know what will be the context to be added in server.xml Please help me. Thanks Regards ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ Vishal Mukherjee IRSSL Vashi 91.022.7896004.155 (voice) 022.7896020(fax) Don't take life too serious. You'll never escape it alive anyway. - Ebert Hubbard ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ Visit Our Cement Site at http://www.indorama.co.in Our Software Site at http://www.irssl.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Analysing client certificates
Hi Is there an easy way to analyse a clent certificate (e.g. get the distinguished name or whole certificate as an X509 object) from a request. I'm using Tomcat 4.02 and J2SDK1.4, and am passing a client certificate over SSL, but don't know how to get at it. Any ideas? Thanks in advance. Dig The information in this e-mail and any attachments (the 'e-mail') is confidential and intended solely for the addressee(s) named above. This e-mail may be subject to legal professional or other privilege or legal rules. The unauthorised use, disclosure or copying of the e-mail is prohibited. If you are not the intended recipient, or a person responsible for delivering the e-mail to the intended recipient you must not disclose, copy, distribute or retain this e-mail or any part of it. This e-mail does not, directly or indirectly, represent financial advice. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
saving files relative to the webapp-directory
hi, I want to cache some files, retrieved from a database on harddisk somewhere beneath my webapplication directory. I don't want to use an absolute path, because my webapplication should run anywhere. In this mailinglist I found something about retrieving resources with ServletContext.getResource(myContextRelativePath/file) but I can't find anything about writing to files in a similar manner? In the JavaDoc of the Class ServletContext I found only that some ServletContainers may allow to write to the URL I retrieve with ServletContext.getResource(...), but Tomcat seems not allow this... thanks in Advance for any help Bernhard -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
tomat 4 And IIS5
I have installed tomcat 4.0.2 in W2k Advanced Server and IIS5. When I try to execute a JSP file, this not fire and stderr.log shows that message: unrecognized option : -XRS could not create java virtual machine Can You help me? Thanks Moisés -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
COnfiguring Tomcat/apache with mod_jk
hi, I've been trying Tomcat/Apache with mod_webapp and now I'd like to compare with mod_jk I didn't find any doc about this... Has anyone a good resource about, or some examples about configuring this stuff ? Thanks in advance -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: COnfiguring Tomcat/apache with mod_jk
Tell the versions. -Original Message- From: Julien OIX [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 2:51 PM To: Tomcat list Subject: COnfiguring Tomcat/apache with mod_jk hi, I've been trying Tomcat/Apache with mod_webapp and now I'd like to compare with mod_jk I didn't find any doc about this... Has anyone a good resource about, or some examples about configuring this stuff ? Thanks in advance -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: COnfiguring Tomcat/apache with mod_jk
Shiva.Devaguptapu a écrit : Tell the versions. Using a RedHat 7.1 with these RPM's apache-1.3.22-1.7.1 (with mod_throttle-3.1.2-3 mod_put-1.3-2 mod_bandwidth-2.0.3-2) tomcat4-4.0.2-2 mod_jk-1.3-1.0-1.4.0.2 -Original Message- From: Julien OIX [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 2:51 PM To: Tomcat list Subject: COnfiguring Tomcat/apache with mod_jk hi, I've been trying Tomcat/Apache with mod_webapp and now I'd like to compare with mod_jk I didn't find any doc about this... Has anyone a good resource about, or some examples about configuring this stuff ? Thanks in advance -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Pooled connection JNDI DataSource?
Hi, I had the same problem and I found no clean working solution. So I just turned to open source connection pooling packages. You have the Poolman pooling package that's working quite well and has a lot of nice configurable functionnalities. Amine - Original Message - From: Mark [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, February 18, 2002 7:40 PM Subject: Pooled connection JNDI DataSource? Has anyone successfully implemented a JNDI pooled connection DataSource using Oracle/Tomcat 4.0.1? I'm able to get a straight DataSource working using javax.sql.DataSource as the resource type and oracle.jdbc.OracleDriver as the driver class, but not a pooled datasource (I've tried a mess of different combinations including oracle.jdbc.pool.OracleConnectionPoolDataSource to no avail). I've spent gobs of time spent trying to research this on the web and surprisingly came up empty. If anyone has done this, I'd really appreciate seeing your your web.xml and server.xml settings. Mark -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: COnfiguring Tomcat/apache with mod_jk
I have these instruction for apache1.3.20/tomcat3.2.3/win2k. I don't know about your env. Hope this can be atlease a reference.. Download and copy mod_jk.dll into the modules folder in the Apache installation folder Start Tomcat and a file with the name mod_jk.conf-auto will be created by the Tomcat in the folder TOMCAT_HOME\conf Now open httpd.conf in the conf folder inside the Apache installation folder and enter the following line at the end Include C:/jakarta-tomcat-3.2.3/conf/mod_jk.conf-auto (As we assumed that Tomcat installation directory is C:\jakarta-tomcat-3.2.3, replace with appropriate, if different) Now start the Apache and the in the console we can see the message Apache/1.3.20 (Win32) mod_jk running... indicating the success of integration We can test the working of the integration by placing a sample jsp file(say test.jsp) in TOMCAT_HOME\webapps\examples, open a browser and enter http://localhost/examples/somefile.jsp in the address box -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
AW: COnfiguring Tomcat/apache with mod_jk
Have a look at http://jakarta.apache.org/~hgomez/ajp13-tc4.0/ AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Wörthstraße 34 D-50668 Köln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ -Ursprüngliche Nachricht- Von: Julien OIX [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 19. Februar 2002 10:21 An: Tomcat list Betreff: COnfiguring Tomcat/apache with mod_jk hi, I've been trying Tomcat/Apache with mod_webapp and now I'd like to compare with mod_jk I didn't find any doc about this... Has anyone a good resource about, or some examples about configuring this stuff ? Thanks in advance -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. This message is exclusively for the person addressed or their representative. If you are not the intended recipient of this message and its contents, please notify the sender immediately. == -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Problem with SendMailServlet examples application
Thanks!!! I had to set my CLASSPATH environment to include: $CATALINA_HOME/common/lib/mail.jar: $CATALINA_HOME/common/lib/jndi.jar: $CATALINA_HOME/common/lib/servlet.jar and compile using: javac SendMailServlet.java It works fine! - Original Message - From: Reynir Hübner [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, February 18, 2002 2:21 PM Subject: RE: Problem with SendMailServlet examples application you must have mail.jar in your classpath (usually in the folder /tomcat/common/lib/(mail.jar). you should be able to compile the sendmail servlet by executing the command : classes/ javac -classpath $pathtotomcat/tomcat/common/lib/mail.jar;$pathtotomcat/tomcat/common/lib /servlet.jar; SendmailServlet.java I think that would do. (depends on what functionality you have added to your SendmailServlet). hope it helps [EMAIL PROTECTED] -Original Message- From: Jose Luis Rojano Piernagorda [mailto:[EMAIL PROTECTED]] Sent: 18. febrúar 2002 13:23 To: 'Tomcat Users List' Subject: Re: Problem with SendMailServlet examples application Hi Randy, Do you know why, in the example directory $CATALINA_HOME/webapps/examples/WEB-INF/classes we have every source file (*.java) with its corresponding binary (*.class) except for the SendMailServlet.java source? I also tried to compile the SendMailServlet.java to get the corresponding absent binary, but I don't know how to do it correctly. I have instaled the J2SDK 1.3.1 on a solaris 8 environment Regards, Jose. - Original Message - From: Randy Layman [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, February 18, 2002 1:03 PM Subject: RE: Problem with SendMailServlet examples application Tomcat doesn't compile .java files into .class files. As far as I know, this is only a feature of Resin and none of the other servlet containers. You will need to use javac to convert your .java into a .class and put that file into the WEB-INF/classes directory. Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 7:44 AM To: 'Tomcat Users List' Subject: Problem with SendMailServlet examples application Hi, I am having a problem while executing one of the examples that comes with the tomcat 4.0.1 and/or 4.0.2 distribution. After a clean installation of tomcat-401/402 i try to execute the sample application /examples that comes with the distribution. Everything goes fine with any of the other appz, but in the JSP samples page the Send Mail example application that gives me an error: ** Apache Tomcat/4.0.2 - HTTP Status 500 - Internal Server Error -- -- type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception javax.servlet.ServletException: Wrapper cannot find servlet class SendMailServlet or a class it depends on at org.apache.catalina.core.StandardWrapper.loadServlet(StandardW rapper.java:871) ... ... at org.apache.catalina.connector.warp.WarpConnection.run(WarpConn ection.java:194) at java.lang.Thread.run(Thread.java:484) root cause java.lang.ClassNotFoundException: SendMailServlet at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappC lassLoader.java:1394) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappC lassLoader.java:1243) ... ... at org.apache.catalina.connector.warp.WarpConnection.run(WarpConn ection.java:194) at java.lang.Thread.run(Thread.java:484) * In $CATALINA_HOME/webapps/examples/WEB-INF/classes directory i don't have the SendMailServlet.class binary, only the SendMailServlet.java source code. Any ideas? Best regards, Jose L. Rojano -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
hai
Title: hai Hi, Where can I keep the javascript files and html files in the tomcat server4.0? I want to access the javascript files and html files from servlet. Can anyone help me? thanking you, B.HARIKRISHNA. ** This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. ** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: hai
You can put all these files in your application root folder. -Original Message- From: Harikrishna_B [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 3:59 PM To: [EMAIL PROTECTED] Subject: hai Hi, Where can I keep the javascript files and html files in the tomcat server4.0? I want to access the javascript files and html files from servlet. Can anyone help me? thanking you, B.HARIKRISHNA. ** This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. **
Fw: Problem with SendMailServlet examples application
Thanks!!! I had to set my CLASSPATH environment to include: $CATALINA_HOME/common/lib/mail.jar: $CATALINA_HOME/common/lib/jndi.jar: $CATALINA_HOME/common/lib/servlet.jar and compile using: javac SendMailServlet.java It works fine! - Original Message - From: Reynir Hübner [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, February 18, 2002 2:21 PM Subject: RE: Problem with SendMailServlet examples application you must have mail.jar in your classpath (usually in the folder /tomcat/common/lib/(mail.jar). you should be able to compile the sendmail servlet by executing the command : classes/ javac -classpath $pathtotomcat/tomcat/common/lib/mail.jar;$pathtotomcat/tomcat/common/lib /servlet.jar; SendmailServlet.java I think that would do. (depends on what functionality you have added to your SendmailServlet). hope it helps [EMAIL PROTECTED] -Original Message- From: Jose Luis Rojano Piernagorda [mailto:[EMAIL PROTECTED]] Sent: 18. febrúar 2002 13:23 To: 'Tomcat Users List' Subject: Re: Problem with SendMailServlet examples application Hi Randy, Do you know why, in the example directory $CATALINA_HOME/webapps/examples/WEB-INF/classes we have every source file (*.java) with its corresponding binary (*.class) except for the SendMailServlet.java source? I also tried to compile the SendMailServlet.java to get the corresponding absent binary, but I don't know how to do it correctly. I have instaled the J2SDK 1.3.1 on a solaris 8 environment Regards, Jose. - Original Message - From: Randy Layman [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, February 18, 2002 1:03 PM Subject: RE: Problem with SendMailServlet examples application Tomcat doesn't compile .java files into .class files. As far as I know, this is only a feature of Resin and none of the other servlet containers. You will need to use javac to convert your .java into a .class and put that file into the WEB-INF/classes directory. Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 7:44 AM To: 'Tomcat Users List' Subject: Problem with SendMailServlet examples application Hi, I am having a problem while executing one of the examples that comes with the tomcat 4.0.1 and/or 4.0.2 distribution. After a clean installation of tomcat-401/402 i try to execute the sample application /examples that comes with the distribution. Everything goes fine with any of the other appz, but in the JSP samples page the Send Mail example application that gives me an error: ** Apache Tomcat/4.0.2 - HTTP Status 500 - Internal Server Error -- -- type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception javax.servlet.ServletException: Wrapper cannot find servlet class SendMailServlet or a class it depends on at org.apache.catalina.core.StandardWrapper.loadServlet(StandardW rapper.java:871) ... ... at org.apache.catalina.connector.warp.WarpConnection.run(WarpConn ection.java:194) at java.lang.Thread.run(Thread.java:484) root cause java.lang.ClassNotFoundException: SendMailServlet at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappC lassLoader.java:1394) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappC lassLoader.java:1243) ... ... at org.apache.catalina.connector.warp.WarpConnection.run(WarpConn ection.java:194) at java.lang.Thread.run(Thread.java:484) * In $CATALINA_HOME/webapps/examples/WEB-INF/classes directory i don't have the SendMailServlet.class binary, only the SendMailServlet.java source code. Any ideas? Best regards, Jose L. Rojano -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat4.0.2 MySQL Connection Pools ClassLoader - bug ?
Title: RE: Tomcat4.0.2 MySQL Connection Pools ClassLoader - bug ? Dear all, I am not exactly sure of what I have found a bug or a JNDI context misunderstanding from me. I have search since three days why, when I follow the JNDI howto, I cannot use JNDI datasource due to bind problems. The reason was that I use JBuilder : to compile I must include the required .jar. BUT when he generate the war, jbuilder include all the jar. Catalina find the jar in /WEB-INF/lib and seems to create another Context that can not access to java:comp used by common/lib I have just remove the /WEB-INF/lib directory and everything is running ok. Is it a know issue ? -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
win98+classpath
Hi everybody, I have succesed to install tomcat at windows 2000. But I couldn't run at windows98. I think some classpath definitions are wrong. Which configurations should I do in autoexec.bat and how? Thanks. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Problem configurating tomcat 4 with IIS
Hello there! I'm following the steps in the document at http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/index.html to setup tomcat 4 on Windows 2000 with IIS as an nt service. when I try to execute the order jk_nt_service -s tomcat, I get the following error: StartService failed - Acesso Denegado (0x5) Acceso Denegado is Access Denied. Any ideas, please? thanks in advance, Alex - Do You Yahoo!? Yahoo! Messenger! Comunicación instantánea gratis con tu gente.
Problem with includes
hi! I've Tomcat 4.0/WinME and I'm with problem when I use a include tag like this jsp:include page=include/header.inc flush=true/ It generates this error: type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception java.lang.IllegalStateException at org.apache.jasper.runtime.ServletResponseWrapperInclude.getOutputStream(ServletResponseWrapperInclude.java:109) ... If the file isn't or if I don't use the tag this problem don't occurs. What is happening?? Thanks in advance, -- Marcelo Mathias Lima [EMAIL PROTECTED] Java/JSP Developer
web connectors
What web connectors are available for connecting apache 1.3.x to tomcat 4.0.x? I recall trying to setup mod_webapp a while back but the attempt failed in frustration and I ended up reverting back to tomcat 3 and mod_jk. What connectors are available? (urls are good) What connectors are simplest to get working with apache 1.3.x and tomcat 4? Thanks Rob -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: web connectors
What web connectors are available for connecting apache 1.3.x to tomcat 4.0.x? I recall trying to setup mod_webapp a while back but the attempt failed in frustration and I ended up reverting back to tomcat 3 and mod_jk. What connectors are available? (urls are good) Tomcat 4.0.2 support now mod_jk ;) What connectors are simplest to get working with apache 1.3.x and tomcat 4? Take a look at Tomcat 4.0.2 distribution. http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.2/ :) The source connectors : http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.2/src jakarta-tomcat-connectors-4.0.2-01-src.tar.gz -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Reposting [INIMSS] How can I load a custom jar file for a particular web application. [a newbie question]
Putting the jar file in the ${TOMCAT_HOME}/webapps/yourapp/WEB-INF/libs directory will do the job. -Original Message- From: Dino Cherian K [mailto:[EMAIL PROTECTED]] Sent: 18 February 2002 08:17 To: [EMAIL PROTECTED] Subject: Reposting [INIMSS] How can I load a custom jar file for a particular web application. [a newbie question] Hi Please help me ASAP. I am having a third party jar file that is to be loaded from jsp pages to attain some task. The particular jar file is to be used only buy one web application. Where should I place the files and what all should I modify to make it work? I am using tomcat 3.3 and apache-1.3.19-5 on RedHat Linux 7.1. Thanks Dino CK -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] *** This email/attachment(s) has been virus checked upon receipt at the OS and is free of all known viruses. *** *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Easy question
Hi, I use application specific apps-name.xml to control each application and have had no problems with setting docBase. I have used forward slash and not backslash in the directory though: Context path=/myappname docBase=D:/My Documents/webapps/myappdir debug=0 reloadable=true /Context Hope this helps. Mark. -Original Message- From: Marcelo Mathias Lima [mailto:[EMAIL PROTECTED]] Sent: 18 February 2002 18:55 To: [EMAIL PROTECTED] Subject: Easy question One more easy question that can help me so... How can I set a absolute path on windows in this element? is it right? (server.xml) Context path=/ docBase=c:\jsp\mydir debug=0/ I'm using WinME / Tomcat4.0. if it is right my problem must have by other causes. So, help me please... Thak u all, -- Marcelo Mathias Lima [EMAIL PROTECTED] Web Applications Developer *** This email/attachment(s) has been virus checked upon receipt at the OS and is free of all known viruses. *** *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat4.0.2 MySQL Connection Pools ClassLoader - bug ?
Hi, I had a similar problem with using a DataSource with MySQL from Tomcat 4.0. I'm using the org.gt.mm etc. drivers version 2.04, and my *guess* is that these drivers simply don't work with the new DataSource 'model'/ 'paradigm'. If this is not the case, I would also like to know why it doesn't work. Regards, Eelco Jacquet, Frederic wrote: Dear all, I am not exactly sure of what I have found a bug or a JNDI context misunderstanding from me. I have search since three days why, when I follow the JNDI howto, I cannot use JNDI datasource due to bind problems. The reason was that I use JBuilder : to compile I must include the required .jar. BUT when he generate the war, jbuilder include all the jar. Catalina find the jar in /WEB-INF/lib and seems to create another Context that can not access to java:comp used by common/lib I have just remove the /WEB-INF/lib directory and everything is running ok. Is it a know issue ? -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
modwebapp gives Netscape HTML code, can't see page!
Has anybody else experienced hitting the server through modwebapp and only seeing the HTML code for Netscape 4.78? Not sure what's going on, works fine in IE but in Netscape pages are not getting rendered, the raw HTML just gets dumped out. Any ideas? This is not cool... -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Jserv to tomcat 3.3 migration
Hello Gurus, I have problems in migrating from JServ to Tomcat 3.3 .. After reading all the docs and doing all the necessary modification like defining web.xml and putting the classes under classes both are under WEB_INF/ in webapps, what I get is only directory listing of the servlets . Is there something I have to invoke or enable to execute the servlets. The examples under tomcat 3.3 execute but not webapp/servlets. Looks like I'm missing something. any pointers .. TIA h __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
AW: modwebapp gives Netscape HTML code, can't see page!
Hi, Scott. Maybe the servlet sends out the response with content-type text/plain? Make sure this is set to text/html. Hiran -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 19. Februar 2002 13:28 An: [EMAIL PROTECTED] Betreff: modwebapp gives Netscape HTML code, can't see page! Has anybody else experienced hitting the server through modwebapp and only seeing the HTML code for Netscape 4.78? Not sure what's going on, works fine in IE but in Netscape pages are not getting rendered, the raw HTML just gets dumped out. Any ideas? This is not cool... -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: modwebapp gives Netscape HTML code, can't see page!
Check the content type header. Maybe it's not set to text/html Donie Ps: otherwise send the first few lines of the response and we might be able to see what the problem is... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 19 February 2002 12:28 To: [EMAIL PROTECTED] Subject: modwebapp gives Netscape HTML code, can't see page! Has anybody else experienced hitting the server through modwebapp and only seeing the HTML code for Netscape 4.78? Not sure what's going on, works fine in IE but in Netscape pages are not getting rendered, the raw HTML just gets dumped out. Any ideas? This is not cool... -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
No suitable driver Datasource Problem
When I use a datasource I obtain this error. But when i use same option directly in my servelt all is OK. Have you seen this errors ??? regards Remy Java.sql.SQLException: No suitable driver at java.sql.DriverManager.getDriver(DriverManager.java:249) at tyrex.jdbc.xa.EnabledDataSource.getConnection(EnabledDataSource.java:233) at tyrex.jdbc.xa.EnabledDataSource.getConnection(EnabledDataSource.java:204) at fr.pixelpark.erh.servlets.ApplicantServlet.performTask(ApplicantServlet.java :92) at fr.pixelpark.toolbox.servlets.PixelServlet.doGet(PixelServlet.java:33) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 1012) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107 ) at java.lang.Thread.run(Thread.java:484) Le code : Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup( java:comp/env ); // Look up our data source out.println(envCtx =+envCtx); DataSource ds = envCtx.lookup(jdbc/ErhDB); -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
One Query .Where to keep static content
Hello All , I have just configured Apache-Tomcat .And it is working perfectly fine .It gave me Apache/1.3.23 (Win32) mod_jk/1.1.0 running... message as well. Earlier I had developed a complete site in Tomcat alone.All my Servlet, JSP and static pages are in Tomcat. Do i need to keep all my static pages in Apache server or leave it in Tomcat. Pls let me know . Thanks Anant Sagar - Original Message - From: Shiva.Devaguptapu [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, February 19, 2002 4:09 PM Subject: RE: hai You can put all these files in your application root folder. -Original Message- From: Harikrishna_B [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 3:59 PM To: [EMAIL PROTECTED] Subject: hai Hi, Where can I keep the javascript files and html files in the tomcat server4.0? I want to access the javascript files and html files from servlet. Can anyone help me? thanking you, B.HARIKRISHNA. ** This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. ** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: No suitable driver Datasource Problem
I'm would guess that your JDBC driver is not available to the correct class loader. Try moving the JDBC driver up to the TOMCAT_HOME/lib/common directory, restart Tomcat, and see if that works. Randy -Original Message- From: remy.menetrieux [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 7:51 AM To: Tomcat Users List Subject: No suitable driver Datasource Problem When I use a datasource I obtain this error. But when i use same option directly in my servelt all is OK. Have you seen this errors ??? regards Remy Java.sql.SQLException: No suitable driver at java.sql.DriverManager.getDriver(DriverManager.java:249) at tyrex.jdbc.xa.EnabledDataSource.getConnection(EnabledDataSourc e.java:233) at tyrex.jdbc.xa.EnabledDataSource.getConnection(EnabledDataSourc e.java:204) at fr.pixelpark.erh.servlets.ApplicantServlet.performTask(Applica ntServlet.java :92) at fr.pixelpark.toolbox.servlets.PixelServlet.doGet(PixelServlet. java:33) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilt er(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli cationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardW rapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.ja va:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardC ontextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at org.apache.catalina.valves.CertificatesValve.invoke(Certificat esValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.ja va:943) at org.apache.catalina.core.StandardContext.invoke(StandardContex t.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHost Valve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi spatcherValve. java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport Valve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv e.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.ja va:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEn gineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.ja va:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpP rocessor.java: 1012) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProce ssor.java:1107 ) at java.lang.Thread.run(Thread.java:484) Le code : Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup( java:comp/env ); // Look up our data source out.println(envCtx =+envCtx); DataSource ds = envCtx.lookup(jdbc/ErhDB); -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default
I re-ran the application this morning and am getting the sun/tools/javac/Main error. (This was not appearing yesterday. I am using JDK 1.4.0 final and Tomcat 4.0.2 RPM version. Very odd. Servlets run fine. javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:475) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 1012) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107 ) at java.lang.Thread.run(Thread.java:536) root cause java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:272) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:177) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:189) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:475) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at
Re: Reposting [INIMSS] How can I load a custom jar file for a particular web application. [a newbie question]
Hi Ya it worked. Thanks What if the thirdparty library is available as classes in a heirarchy. That is they are arranged in folder structure. Like + ClassA | | | ClassA1.class | ClassA2.class | + ClassB | | | ClassB1.class | ClassB3.class | + ClassC.class Thanks Dino Cherian K On Tuesday 19 February 2002 16:30, you wrote: Putting the jar file in the ${TOMCAT_HOME}/webapps/yourapp/WEB-INF/libs directory will do the job. -Original Message- From: Dino Cherian K [mailto:[EMAIL PROTECTED]] Sent: 18 February 2002 08:17 To: [EMAIL PROTECTED] Subject: Reposting [INIMSS] How can I load a custom jar file for a particular web application. [a newbie question] Hi Please help me ASAP. I am having a third party jar file that is to be loaded from jsp pages to attain some task. The particular jar file is to be used only buy one web application. Where should I place the files and what all should I modify to make it work? I am using tomcat 3.3 and apache-1.3.19-5 on RedHat Linux 7.1. Thanks Dino CK -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] *** This email/attachment(s) has been virus checked upon receipt at the OS and is free of all known viruses. *** *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
isapi_redirector.dll documentation???
Is there any documentation anywhere for setting up this file? I am trying to get Apache 1.3.23 and Tomcat 4.0.2 to work together. I am using Windows 2000 and have downloaded and installed the newest JDK1.4, and set my JAVA_HOME and CATALINA_HOME properties correctly. Why is it ALWAYS so hard to get these two products to talk to each other, especially when they both come from the same company? In the past, I have gotten mod_jk to work and then it switched to mod_webapp and I got that to work. Now it seems it has changed yet again and no documentation. Why cant these Apache and Tomcat just talk to each other automatically without ANY extra setup!?! Anyways, sorry for the rant... No flames please, a brief explaination would be nice though...Pleze! -Kevin Schmidt Cincinnati, OH -- NOTICE: The information contained in this electronic mail transmission is intended by Convergys Corporation for the use of the named individual or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone (collect), so that the sender's address records can be corrected. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat as a service...
One other thing... I have tried now, every now and then over the past 6 months to get Tomcat to run as an NT service. I have NEVER been sucessful and I have tried 4 or 5 different ways. I kept thinking that there was some silly bug that was going to be fixed in the next release. Well, I just installed the Tomcat 4.0.2 exe file, and during the install, checked the option to install as NT service.(I am running W2K), I have JAVA_HOME and CATALINA_HOME set properly, and reboot, and ONCE AGAIN, no tomcat service. The service is listed in the Admin Services console as being automatically started, but it wont actually start. When I try to start it manually from the services panel, I get this message, Could not start Tomcat on local computer. The service did not return an error. Could be windows internal error or internal error. If there was no error returned, then why WONT IT START And if there was an error, why not REPORT IT. How about telling the user what is wrong so that he/she can fix it. Duh. Sorry to be so brash, but it has been this way for a long time and noone seems to care about fixing it. -Kevin Schmidt Cincinnati, OH -- NOTICE: The information contained in this electronic mail transmission is intended by Convergys Corporation for the use of the named individual or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone (collect), so that the sender's address records can be corrected. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: jsp and tomcat4
javax.servlet.ServletException: sun/tools/javac/Main I had the same problem, though running Tomcat as a service on Win2k. It certainly seems to be JAVA_HOME classpath related, I somehow fluked fixing mine by changing this from D:\java\jdk to D:\java\jdk\ and running the startup script, I've changed the value back now and everything still works. I can only guess that some of the variables derived from this had got stuck with the wrong values. Cheers, Danny. --- Danny Ayers stuff http://www.isacat.net /stuff -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default
yup, that's EXACTLY what i'm seeingno solutions yet -Original Message- From: Shannon Brown [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 7:09 AM To: Tomcat Users List Subject: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default I re-ran the application this morning and am getting the sun/tools/javac/Main error. (This was not appearing yesterday. I am using JDK 1.4.0 final and Tomcat 4.0.2 RPM version. Very odd. Servlets run fine. javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:475) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 1012) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107 ) at java.lang.Thread.run(Thread.java:536) root cause java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:272) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:177) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:189) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at
RE: Tomcat as a service...
The reason that you get the message is because the only errors that can be reported are those detected by 2000 (like missing binary, improper permissions, etc). I would suggest that you look at the jvm.stderr and jvm.stdout for more information about what the error is that you are getting. Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 8:51 AM To: [EMAIL PROTECTED] Subject: Tomcat as a service... One other thing... I have tried now, every now and then over the past 6 months to get Tomcat to run as an NT service. I have NEVER been sucessful and I have tried 4 or 5 different ways. I kept thinking that there was some silly bug that was going to be fixed in the next release. Well, I just installed the Tomcat 4.0.2 exe file, and during the install, checked the option to install as NT service.(I am running W2K), I have JAVA_HOME and CATALINA_HOME set properly, and reboot, and ONCE AGAIN, no tomcat service. The service is listed in the Admin Services console as being automatically started, but it wont actually start. When I try to start it manually from the services panel, I get this message, Could not start Tomcat on local computer. The service did not return an error. Could be windows internal error or internal error. If there was no error returned, then why WONT IT START And if there was an error, why not REPORT IT. How about telling the user what is wrong so that he/she can fix it. Duh. Sorry to be so brash, but it has been this way for a long time and noone seems to care about fixing it. -Kevin Schmidt Cincinnati, OH -- NOTICE: The information contained in this electronic mail transmission is intended by Convergys Corporation for the use of the named individual or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone (collect), so that the sender's address records can be corrected. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat as a service...
Hi Kevin, Could you write your system configuration? (especially your network configuration) Cheers, Loïc Lefèvre -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Envoyé : mardi 19 février 2002 14:51 À : [EMAIL PROTECTED] Objet : Tomcat as a service... One other thing... I have tried now, every now and then over the past 6 months to get Tomcat to run as an NT service. I have NEVER been sucessful and I have tried 4 or 5 different ways. I kept thinking that there was some silly bug that was going to be fixed in the next release. Well, I just installed the Tomcat 4.0.2 exe file, and during the install, checked the option to install as NT service.(I am running W2K), I have JAVA_HOME and CATALINA_HOME set properly, and reboot, and ONCE AGAIN, no tomcat service. The service is listed in the Admin Services console as being automatically started, but it wont actually start. When I try to start it manually from the services panel, I get this message, Could not start Tomcat on local computer. The service did not return an error. Could be windows internal error or internal error. If there was no error returned, then why WONT IT START And if there was an error, why not REPORT IT. How about telling the user what is wrong so that he/she can fix it. Duh. Sorry to be so brash, but it has been this way for a long time and noone seems to care about fixing it. -Kevin Schmidt Cincinnati, OH -- NOTICE: The information contained in this electronic mail transmission is intended by Convergys Corporation for the use of the named individual or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone (collect), so that the sender's address records can be corrected. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default
Trying adding tools.jar to your classpath or better still in the Tomcat/lib directory. Thanks. RS Shannon Brown [EMAIL PROTECTED] on 02/19/2002 07:09:21 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] cc: Subject: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default I re-ran the application this morning and am getting the sun/tools/javac/Main error. (This was not appearing yesterday. I am using JDK 1.4.0 final and Tomcat 4.0.2 RPM version. Very odd. Servlets run fine. javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:475) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 1012) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107 ) at java.lang.Thread.run(Thread.java:536) root cause java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:272) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:177) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:189) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at
Re: [INIMSS] How can I load a custom jar file for a particular web application. [a newbie question]
It would be extremely helpful if we knew what version of Tomcat is running. If we're talking TC 4, then place it in WEB-INF/lib of your webapp and then restart the app. I believe that holds true for 3.3 as well (I'm more familiar with TC 4). For versions before 3.3, the classloader system wasn't implemented yet and you'll have to put it in the classpath somewhere. --David On Monday 18 February 2002 02:12 am, you wrote: Hi Please help me ASAP. I am having a third party jar file that is to be loaded from jsp pages to attain some task. The particular jar file is to be used only buy one web application. Where should I place the files and what all should I modify to make it work? Thanks Dino CK -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat as a service...
Kevin, have you set the service to Allow service to interact with desktop? it is on the Log On panel if you right click your catalina service in the services window. this may help see what the heck windows is doing. Sorry if you've done this already... B -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 7:51 AM To: [EMAIL PROTECTED] Subject: Tomcat as a service... One other thing... I have tried now, every now and then over the past 6 months to get Tomcat to run as an NT service. I have NEVER been sucessful and I have tried 4 or 5 different ways. I kept thinking that there was some silly bug that was going to be fixed in the next release. Well, I just installed the Tomcat 4.0.2 exe file, and during the install, checked the option to install as NT service.(I am running W2K), I have JAVA_HOME and CATALINA_HOME set properly, and reboot, and ONCE AGAIN, no tomcat service. The service is listed in the Admin Services console as being automatically started, but it wont actually start. When I try to start it manually from the services panel, I get this message, Could not start Tomcat on local computer. The service did not return an error. Could be windows internal error or internal error. If there was no error returned, then why WONT IT START And if there was an error, why not REPORT IT. How about telling the user what is wrong so that he/she can fix it. Duh. Sorry to be so brash, but it has been this way for a long time and noone seems to care about fixing it. -Kevin Schmidt Cincinnati, OH -- NOTICE: The information contained in this electronic mail transmission is intended by Convergys Corporation for the use of the named individual or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone (collect), so that the sender's address records can be corrected. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: jsp and tomcat4
yeah, tried that, didn't help. -Original Message- From: Danny Ayers [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 7:45 AM To: Tomcat Users List Subject: RE: jsp and tomcat4 javax.servlet.ServletException: sun/tools/javac/Main I had the same problem, though running Tomcat as a service on Win2k. It certainly seems to be JAVA_HOME classpath related, I somehow fluked fixing mine by changing this from D:\java\jdk to D:\java\jdk\ and running the startup script, I've changed the value back now and everything still works. I can only guess that some of the variables derived from this had got stuck with the wrong values. Cheers, Danny. --- Danny Ayers stuff http://www.isacat.net /stuff -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default
okay, but according to the docs, the start script throws away your classpath and rebuilds itwhere do I put the entry in that case? you mean i should copy the tools.jar to the tomcat/lib directory? would a symlink work? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 7:53 AM To: Tomcat Users List Subject: Re: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default Trying adding tools.jar to your classpath or better still in the Tomcat/lib directory. Thanks. RS Shannon Brown [EMAIL PROTECTED] on 02/19/2002 07:09:21 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] cc: Subject: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default I re-ran the application this morning and am getting the sun/tools/javac/Main error. (This was not appearing yesterday. I am using JDK 1.4.0 final and Tomcat 4.0.2 RPM version. Very odd. Servlets run fine. javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:475) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 1012) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107 ) at java.lang.Thread.run(Thread.java:536) root cause java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:272) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:177) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:189) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at
RE: Tomcat as a service...
No, I didnt know about that flag. I tried it though, and it doesnt seem to help anything. -Kevin Brian Adams [EMAIL PROTECTED] on 02/19/2002 08:57:21 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject: RE: Tomcat as a service... Kevin, have you set the service to Allow service to interact with desktop? it is on the Log On panel if you right click your catalina service in the services window. this may help see what the heck windows is doing. Sorry if you've done this already... B -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 7:51 AM To: [EMAIL PROTECTED] Subject: Tomcat as a service... One other thing... I have tried now, every now and then over the past 6 months to get Tomcat to run as an NT service. I have NEVER been sucessful and I have tried 4 or 5 different ways. I kept thinking that there was some silly bug that was going to be fixed in the next release. Well, I just installed the Tomcat 4.0.2 exe file, and during the install, checked the option to install as NT service.(I am running W2K), I have JAVA_HOME and CATALINA_HOME set properly, and reboot, and ONCE AGAIN, no tomcat service. The service is listed in the Admin Services console as being automatically started, but it wont actually start. When I try to start it manually from the services panel, I get this message, Could not start Tomcat on local computer. The service did not return an error. Could be windows internal error or internal error. If there was no error returned, then why WONT IT START And if there was an error, why not REPORT IT. How about telling the user what is wrong so that he/she can fix it. Duh. Sorry to be so brash, but it has been this way for a long time and noone seems to care about fixing it. -Kevin Schmidt Cincinnati, OH -- NOTICE: The information contained in this electronic mail transmission is intended by Convergys Corporation for the use of the named individual or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone (collect), so that the sender's address records can be corrected. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- NOTICE: The information contained in this electronic mail transmission is intended by Convergys Corporation for the use of the named individual or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone (collect), so that the sender's address records can be corrected. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat as a service...
what was the output? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 8:09 AM To: Tomcat Users List Subject: RE: Tomcat as a service... No, I didnt know about that flag. I tried it though, and it doesnt seem to help anything. -Kevin Brian Adams [EMAIL PROTECTED] on 02/19/2002 08:57:21 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject: RE: Tomcat as a service... Kevin, have you set the service to Allow service to interact with desktop? it is on the Log On panel if you right click your catalina service in the services window. this may help see what the heck windows is doing. Sorry if you've done this already... B -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 7:51 AM To: [EMAIL PROTECTED] Subject: Tomcat as a service... One other thing... I have tried now, every now and then over the past 6 months to get Tomcat to run as an NT service. I have NEVER been sucessful and I have tried 4 or 5 different ways. I kept thinking that there was some silly bug that was going to be fixed in the next release. Well, I just installed the Tomcat 4.0.2 exe file, and during the install, checked the option to install as NT service.(I am running W2K), I have JAVA_HOME and CATALINA_HOME set properly, and reboot, and ONCE AGAIN, no tomcat service. The service is listed in the Admin Services console as being automatically started, but it wont actually start. When I try to start it manually from the services panel, I get this message, Could not start Tomcat on local computer. The service did not return an error. Could be windows internal error or internal error. If there was no error returned, then why WONT IT START And if there was an error, why not REPORT IT. How about telling the user what is wrong so that he/she can fix it. Duh. Sorry to be so brash, but it has been this way for a long time and noone seems to care about fixing it. -Kevin Schmidt Cincinnati, OH -- NOTICE: The information contained in this electronic mail transmission is intended by Convergys Corporation for the use of the named individual or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone (collect), so that the sender's address records can be corrected. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- NOTICE: The information contained in this electronic mail transmission is intended by Convergys Corporation for the use of the named individual or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone (collect), so that the sender's address records can be corrected. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default
Thanks to all. I would not say that this is the right solution, but it is a solution. Add a symbolic link in the /var/tomcat4/lib directory to the tools.jar file in the java directory. In my case, this was: ln -s /usr/local/java/lib/tools.jar tools.jar I stopped and restarted Tomcat. The problem does seem to be resolved. This is rather odd, however, and I am concerned about future upgrades. The classpath is obliterated (I edited my dtomcat4 script to display the environment variables). I do not, however, see where this occurs. Shannon Brown Internet Technologies Architect Business Technologies Advisor www.shannonbrown.net [EMAIL PROTECTED] 717.665.5656 -Original Message- From: Jolet, John [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 8:49 AM To: 'Tomcat Users List' Subject: RE: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default okay, but according to the docs, the start script throws away your classpath and rebuilds itwhere do I put the entry in that case? you mean i should copy the tools.jar to the tomcat/lib directory? would a symlink work? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 7:53 AM To: Tomcat Users List Subject: Re: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default Trying adding tools.jar to your classpath or better still in the Tomcat/lib directory. Thanks. RS Shannon Brown [EMAIL PROTECTED] on 02/19/2002 07:09:21 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] cc: Subject: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default I re-ran the application this morning and am getting the sun/tools/javac/Main error. (This was not appearing yesterday. I am using JDK 1.4.0 final and Tomcat 4.0.2 RPM version. Very odd. Servlets run fine. javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:475) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at
RE: Tomcat as a service...
What do you mean by my Network config? I have tried it at home and at work, both with very different setups of Windows2000, and Tomcat pulls the same BS in both cases. Tomcat starts fine when either I double click on startup.bat, or use the Start Tomcat shortcut in the Start Menu(which just points to startup.bat). Do you want to know my varible settings? System variables: JAVA_HOME=C:\j2sdk1.4.0 CATALINA_HOME=C:\Progra~1\Apache~2 CLASSPATH=C:\IBMCON~1\classes;C:\IBMCON~1\CICS\Classes\CTGCLI~1.JAR;.;C:\Program~1\SQLLIB\java\db2java.zip;C:\Progra~1\SQLLIB\java\runtime.zip;C: \Progra~1\SQLLIB\java\sqlj.zip;C:\Progra~1\SQLLIB\bin Be more specific what settings you want to know... -Kevin Loïc Lefèvre [EMAIL PROTECTED] on 02/19/2002 09:01:45 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] cc: Subject: RE: Tomcat as a service... Hi Kevin, Could you write your system configuration? (especially your network configuration) Cheers, Loïc Lefèvre -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Envoyé : mardi 19 février 2002 14:51 À : [EMAIL PROTECTED] Objet : Tomcat as a service... One other thing... I have tried now, every now and then over the past 6 months to get Tomcat to run as an NT service. I have NEVER been sucessful and I have tried 4 or 5 different ways. I kept thinking that there was some silly bug that was going to be fixed in the next release. Well, I just installed the Tomcat 4.0.2 exe file, and during the install, checked the option to install as NT service.(I am running W2K), I have JAVA_HOME and CATALINA_HOME set properly, and reboot, and ONCE AGAIN, no tomcat service. The service is listed in the Admin Services console as being automatically started, but it wont actually start. When I try to start it manually from the services panel, I get this message, Could not start Tomcat on local computer. The service did not return an error. Could be windows internal error or internal error. If there was no error returned, then why WONT IT START And if there was an error, why not REPORT IT. How about telling the user what is wrong so that he/she can fix it. Duh. Sorry to be so brash, but it has been this way for a long time and noone seems to care about fixing it. -Kevin Schmidt Cincinnati, OH -- NOTICE: The information contained in this electronic mail transmission is intended by Convergys Corporation for the use of the named individual or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone (collect), so that the sender's address records can be corrected. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- NOTICE: The information contained in this electronic mail transmission is intended by Convergys Corporation for the use of the named individual or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone (collect), so that the sender's address records can be corrected. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat as a service...
Where can I find jvm.stderr and jvm.stdout? I dont see them in the log dir??? Sorry if I seem stupid, but I am a SUN Certified Programmer, not a system admin type guy. -Kevin Randy Layman [EMAIL PROTECTED] on 02/19/2002 08:08:51 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject: RE: Tomcat as a service... The reason that you get the message is because the only errors that can be reported are those detected by 2000 (like missing binary, improper permissions, etc). I would suggest that you look at the jvm.stderr and jvm.stdout for more information about what the error is that you are getting. Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 8:51 AM To: [EMAIL PROTECTED] Subject: Tomcat as a service... One other thing... I have tried now, every now and then over the past 6 months to get Tomcat to run as an NT service. I have NEVER been sucessful and I have tried 4 or 5 different ways. I kept thinking that there was some silly bug that was going to be fixed in the next release. Well, I just installed the Tomcat 4.0.2 exe file, and during the install, checked the option to install as NT service.(I am running W2K), I have JAVA_HOME and CATALINA_HOME set properly, and reboot, and ONCE AGAIN, no tomcat service. The service is listed in the Admin Services console as being automatically started, but it wont actually start. When I try to start it manually from the services panel, I get this message, Could not start Tomcat on local computer. The service did not return an error. Could be windows internal error or internal error. If there was no error returned, then why WONT IT START And if there was an error, why not REPORT IT. How about telling the user what is wrong so that he/she can fix it. Duh. Sorry to be so brash, but it has been this way for a long time and noone seems to care about fixing it. -Kevin Schmidt Cincinnati, OH -- NOTICE: The information contained in this electronic mail transmission is intended by Convergys Corporation for the use of the named individual or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone (collect), so that the sender's address records can be corrected. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- NOTICE: The information contained in this electronic mail transmission is intended by Convergys Corporation for the use of the named individual or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone (collect), so that the sender's address records can be corrected. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Reposting [INIMSS] How can I load a custom jar file for a particular web application. [a newbie question]
Just reference them as normal. Ie ClassA.ClassA1.class There's no magic involved... Donie -Original Message- From: Dino Cherian K [mailto:[EMAIL PROTECTED]] Sent: 18 February 2002 13:04 To: Tomcat Users List Subject: Re: Reposting [INIMSS] How can I load a custom jar file for a particular web application. [a newbie question] Hi Ya it worked. Thanks What if the thirdparty library is available as classes in a heirarchy. That is they are arranged in folder structure. Like + ClassA | | | ClassA1.class | ClassA2.class | + ClassB | | | ClassB1.class | ClassB3.class | + ClassC.class Thanks Dino Cherian K On Tuesday 19 February 2002 16:30, you wrote: Putting the jar file in the ${TOMCAT_HOME}/webapps/yourapp/WEB-INF/libs directory will do the job. -Original Message- From: Dino Cherian K [mailto:[EMAIL PROTECTED]] Sent: 18 February 2002 08:17 To: [EMAIL PROTECTED] Subject: Reposting [INIMSS] How can I load a custom jar file for a particular web application. [a newbie question] Hi Please help me ASAP. I am having a third party jar file that is to be loaded from jsp pages to attain some task. The particular jar file is to be used only buy one web application. Where should I place the files and what all should I modify to make it work? I am using tomcat 3.3 and apache-1.3.19-5 on RedHat Linux 7.1. Thanks Dino CK -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] *** This email/attachment(s) has been virus checked upon receipt at the OS and is free of all known viruses. *** *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat as a service...
And what do you have set in your wrapper.properties file? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 3:14 PM To: Tomcat Users List Subject: RE: Tomcat as a service... What do you mean by my Network config? I have tried it at home and at work, both with very different setups of Windows2000, and Tomcat pulls the same BS in both cases. Tomcat starts fine when either I double click on startup.bat, or use the Start Tomcat shortcut in the Start Menu(which just points to startup.bat). Do you want to know my varible settings? System variables: JAVA_HOME=C:\j2sdk1.4.0 CATALINA_HOME=C:\Progra~1\Apache~2 CLASSPATH=C:\IBMCON~1\classes;C:\IBMCON~1\CICS\Classes\CTGCLI~1.JAR;.;C:\Pro gram~1\SQLLIB\java\db2java.zip;C:\Progra~1\SQLLIB\java\runtime.zip;C: \Progra~1\SQLLIB\java\sqlj.zip;C:\Progra~1\SQLLIB\bin Be more specific what settings you want to know... -Kevin Loïc Lefèvre [EMAIL PROTECTED] on 02/19/2002 09:01:45 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] cc: Subject: RE: Tomcat as a service... Hi Kevin, Could you write your system configuration? (especially your network configuration) Cheers, Loïc Lefèvre -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Envoyé : mardi 19 février 2002 14:51 À : [EMAIL PROTECTED] Objet : Tomcat as a service... One other thing... I have tried now, every now and then over the past 6 months to get Tomcat to run as an NT service. I have NEVER been sucessful and I have tried 4 or 5 different ways. I kept thinking that there was some silly bug that was going to be fixed in the next release. Well, I just installed the Tomcat 4.0.2 exe file, and during the install, checked the option to install as NT service.(I am running W2K), I have JAVA_HOME and CATALINA_HOME set properly, and reboot, and ONCE AGAIN, no tomcat service. The service is listed in the Admin Services console as being automatically started, but it wont actually start. When I try to start it manually from the services panel, I get this message, Could not start Tomcat on local computer. The service did not return an error. Could be windows internal error or internal error. If there was no error returned, then why WONT IT START And if there was an error, why not REPORT IT. How about telling the user what is wrong so that he/she can fix it. Duh. Sorry to be so brash, but it has been this way for a long time and noone seems to care about fixing it. -Kevin Schmidt Cincinnati, OH -- NOTICE: The information contained in this electronic mail transmission is intended by Convergys Corporation for the use of the named individual or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone (collect), so that the sender's address records can be corrected. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- NOTICE: The information contained in this electronic mail transmission is intended by Convergys Corporation for the use of the named individual or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone (collect), so that the sender's address records can be corrected. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat as a service...
It just pops up a window that says something like Windows is attempting to start the serivce on the local computer... and then it gives me the same error message as before. It doesnt tell me anything new. :v( -Kevin Brian Adams [EMAIL PROTECTED] on 02/19/2002 09:05:56 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject: RE: Tomcat as a service... what was the output? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 8:09 AM To: Tomcat Users List Subject: RE: Tomcat as a service... No, I didnt know about that flag. I tried it though, and it doesnt seem to help anything. -Kevin Brian Adams [EMAIL PROTECTED] on 02/19/2002 08:57:21 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject: RE: Tomcat as a service... Kevin, have you set the service to Allow service to interact with desktop? it is on the Log On panel if you right click your catalina service in the services window. this may help see what the heck windows is doing. Sorry if you've done this already... B -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 7:51 AM To: [EMAIL PROTECTED] Subject: Tomcat as a service... One other thing... I have tried now, every now and then over the past 6 months to get Tomcat to run as an NT service. I have NEVER been sucessful and I have tried 4 or 5 different ways. I kept thinking that there was some silly bug that was going to be fixed in the next release. Well, I just installed the Tomcat 4.0.2 exe file, and during the install, checked the option to install as NT service.(I am running W2K), I have JAVA_HOME and CATALINA_HOME set properly, and reboot, and ONCE AGAIN, no tomcat service. The service is listed in the Admin Services console as being automatically started, but it wont actually start. When I try to start it manually from the services panel, I get this message, Could not start Tomcat on local computer. The service did not return an error. Could be windows internal error or internal error. If there was no error returned, then why WONT IT START And if there was an error, why not REPORT IT. How about telling the user what is wrong so that he/she can fix it. Duh. Sorry to be so brash, but it has been this way for a long time and noone seems to care about fixing it. -Kevin Schmidt Cincinnati, OH -- NOTICE: The information contained in this electronic mail transmission is intended by Convergys Corporation for the use of the named individual or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone (collect), so that the sender's address records can be corrected. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- NOTICE: The information contained in this electronic mail transmission is intended by Convergys Corporation for the use of the named individual or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone (collect), so that the sender's address records can be corrected. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- NOTICE: The information contained in this electronic mail transmission is intended by Convergys Corporation for the use of the named individual or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone (collect), so that the sender's address records can be corrected. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default
I suppose adding a symbolic link to JAVA_HOME/lib/tool.jar should work. Thanks. RS Jolet, John [EMAIL PROTECTED] on 02/19/2002 07:48:44 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject: RE: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default okay, but according to the docs, the start script throws away your classpath and rebuilds itwhere do I put the entry in that case? you mean i should copy the tools.jar to the tomcat/lib directory? would a symlink work? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 7:53 AM To: Tomcat Users List Subject: Re: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default Trying adding tools.jar to your classpath or better still in the Tomcat/lib directory. Thanks. RS Shannon Brown [EMAIL PROTECTED] on 02/19/2002 07:09:21 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] cc: Subject: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default I re-ran the application this morning and am getting the sun/tools/javac/Main error. (This was not appearing yesterday. I am using JDK 1.4.0 final and Tomcat 4.0.2 RPM version. Very odd. Servlets run fine. javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:475) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 1012) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107 ) at java.lang.Thread.run(Thread.java:536) root cause java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:272) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:177) at
RE: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default
it does...but shouldn't be necessary. WAS not necessary under 4.0.1. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 8:14 AM To: Tomcat Users List Subject: RE: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default I suppose adding a symbolic link to JAVA_HOME/lib/tool.jar should work. Thanks. RS Jolet, John [EMAIL PROTECTED] on 02/19/2002 07:48:44 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject: RE: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default okay, but according to the docs, the start script throws away your classpath and rebuilds itwhere do I put the entry in that case? you mean i should copy the tools.jar to the tomcat/lib directory? would a symlink work? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 7:53 AM To: Tomcat Users List Subject: Re: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default Trying adding tools.jar to your classpath or better still in the Tomcat/lib directory. Thanks. RS Shannon Brown [EMAIL PROTECTED] on 02/19/2002 07:09:21 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] cc: Subject: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default I re-ran the application this morning and am getting the sun/tools/javac/Main error. (This was not appearing yesterday. I am using JDK 1.4.0 final and Tomcat 4.0.2 RPM version. Very odd. Servlets run fine. javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:475) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 1012) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107 ) at java.lang.Thread.run(Thread.java:536) root cause java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136) at
Re: No suitable driver Datasource Problem
Thanks it's work... Remy Randy Layman wrote: I'm would guess that your JDBC driver is not available to the correct class loader. Try moving the JDBC driver up to the TOMCAT_HOME/lib/common directory, restart Tomcat, and see if that works. Randy -Original Message- From: remy.menetrieux [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 7:51 AM To: Tomcat Users List Subject: No suitable driver Datasource Problem When I use a datasource I obtain this error. But when i use same option directly in my servelt all is OK. Have you seen this errors ??? regards Remy Java.sql.SQLException: No suitable driver at java.sql.DriverManager.getDriver(DriverManager.java:249) at tyrex.jdbc.xa.EnabledDataSource.getConnection(EnabledDataSourc e.java:233) at tyrex.jdbc.xa.EnabledDataSource.getConnection(EnabledDataSourc e.java:204) at fr.pixelpark.erh.servlets.ApplicantServlet.performTask(Applica ntServlet.java :92) at fr.pixelpark.toolbox.servlets.PixelServlet.doGet(PixelServlet. java:33) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilt er(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli cationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardW rapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.ja va:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardC ontextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at org.apache.catalina.valves.CertificatesValve.invoke(Certificat esValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.ja va:943) at org.apache.catalina.core.StandardContext.invoke(StandardContex t.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHost Valve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi spatcherValve. java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport Valve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv e.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.ja va:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEn gineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.ja va:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpP rocessor.java: 1012) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProce ssor.java:1107 ) at java.lang.Thread.run(Thread.java:484) Le code : Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup( java:comp/env ); // Look up our data source out.println(envCtx =+envCtx); DataSource ds = envCtx.lookup(jdbc/ErhDB); -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat as a service...
They should be in the logs directory, but you might want to try searching the system for the files. Their lack of existence would point to the service not even getting loaded, probably a problem with your JAVA_HOME. I don't know about Tomcat 4, but with Tomcat 3 you had to edit the wrapper.properties file in the conf directory to set the JAVA_HOME. Maybe someone more familiar with Tomcat 4 could indicate how to set the JAVA_HOME for the service? Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 9:16 AM To: Tomcat Users List Subject: RE: Tomcat as a service... Where can I find jvm.stderr and jvm.stdout? I dont see them in the log dir??? Sorry if I seem stupid, but I am a SUN Certified Programmer, not a system admin type guy. -Kevin Randy Layman [EMAIL PROTECTED] on 02/19/2002 08:08:51 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject: RE: Tomcat as a service... The reason that you get the message is because the only errors that can be reported are those detected by 2000 (like missing binary, improper permissions, etc). I would suggest that you look at the jvm.stderr and jvm.stdout for more information about what the error is that you are getting. Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 8:51 AM To: [EMAIL PROTECTED] Subject: Tomcat as a service... One other thing... I have tried now, every now and then over the past 6 months to get Tomcat to run as an NT service. I have NEVER been sucessful and I have tried 4 or 5 different ways. I kept thinking that there was some silly bug that was going to be fixed in the next release. Well, I just installed the Tomcat 4.0.2 exe file, and during the install, checked the option to install as NT service.(I am running W2K), I have JAVA_HOME and CATALINA_HOME set properly, and reboot, and ONCE AGAIN, no tomcat service. The service is listed in the Admin Services console as being automatically started, but it wont actually start. When I try to start it manually from the services panel, I get this message, Could not start Tomcat on local computer. The service did not return an error. Could be windows internal error or internal error. If there was no error returned, then why WONT IT START And if there was an error, why not REPORT IT. How about telling the user what is wrong so that he/she can fix it. Duh. Sorry to be so brash, but it has been this way for a long time and noone seems to care about fixing it. -Kevin Schmidt Cincinnati, OH -- NOTICE: The information contained in this electronic mail transmission is intended by Convergys Corporation for the use of the named individual or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone (collect), so that the sender's address records can be corrected. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- NOTICE: The information contained in this electronic mail transmission is intended by Convergys Corporation for the use of the named individual or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone (collect), so that the sender's address records can be corrected. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default
I agree. I posted the solution on my web site: http://www.shannonbrown.net/resources/linux-resources.htm in case other people need this resolution. I combed through the scripts but do not yet see where the problem occurs with the CLASSPATH. Shannon Brown Internet Technologies Architect Business Technologies Advisor www.shannonbrown.net [EMAIL PROTECTED] 717.665.5656 -Original Message- From: Jolet, John [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 9:05 AM To: 'Tomcat Users List' Subject: RE: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default i agree, that fixed it for me, too. However, this behavior is NOT what the documentation says to expect. I would consider this a bug, since it is not, in fact building my classpath to include $JAVA_HOME/lib/tools.jar as the docs say. -Original Message- From: Shannon Brown [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 8:09 AM To: Tomcat Users List Subject: RE: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default Importance: High Thanks to all. I would not say that this is the right solution, but it is a solution. Add a symbolic link in the /var/tomcat4/lib directory to the tools.jar file in the java directory. In my case, this was: ln -s /usr/local/java/lib/tools.jar tools.jar I stopped and restarted Tomcat. The problem does seem to be resolved. This is rather odd, however, and I am concerned about future upgrades. The classpath is obliterated (I edited my dtomcat4 script to display the environment variables). I do not, however, see where this occurs. Shannon Brown Internet Technologies Architect Business Technologies Advisor www.shannonbrown.net [EMAIL PROTECTED] 717.665.5656 -Original Message- From: Jolet, John [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 8:49 AM To: 'Tomcat Users List' Subject: RE: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default okay, but according to the docs, the start script throws away your classpath and rebuilds itwhere do I put the entry in that case? you mean i should copy the tools.jar to the tomcat/lib directory? would a symlink work? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 7:53 AM To: Tomcat Users List Subject: Re: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default Trying adding tools.jar to your classpath or better still in the Tomcat/lib directory. Thanks. RS Shannon Brown [EMAIL PROTECTED] on 02/19/2002 07:09:21 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] cc: Subject: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default I re-ran the application this morning and am getting the sun/tools/javac/Main error. (This was not appearing yesterday. I am using JDK 1.4.0 final and Tomcat 4.0.2 RPM version. Very odd. Servlets run fine. javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:475) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at
Re: web connectors
the new connector are available only for linux where can i find buil mod_webapp for windows Thanks in advance Remy GOMEZ Henri wrote: What web connectors are available for connecting apache 1.3.x to tomcat 4.0.x? I recall trying to setup mod_webapp a while back but the attempt failed in frustration and I ended up reverting back to tomcat 3 and mod_jk. What connectors are available? (urls are good) Tomcat 4.0.2 support now mod_jk ;) What connectors are simplest to get working with apache 1.3.x and tomcat 4? Take a look at Tomcat 4.0.2 distribution. http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.2/ :) The source connectors : http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.2/src jakarta-tomcat-connectors-4.0.2-01-src.tar.gz -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat as a service...
wrapper.properties? I think your talking about one of the other ways to set up Tomcat as a service. There are like 3 or 4 different ways. I am just trying to get the normal jakarta-tomcat-4.0.2-LE-jdk14.exe install to work as it should be. I should be able to install this file, check the option to have it installed as a serivce, and it should WORK. If there is a problem with one of my settings, it should report that DURING THE INSTALL. Also, if windows wont report an error properly, then how about having another small program in the bin directory which simulates th OS attempting to run the service and reports the error to the user? Or something. You shouldnt just leave people in the dark. Help! Im trapped in the dark! :v) -Kevin Barney Hamish [EMAIL PROTECTED] on 02/19/2002 09:15:21 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject: RE: Tomcat as a service... And what do you have set in your wrapper.properties file? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 3:14 PM To: Tomcat Users List Subject: RE: Tomcat as a service... What do you mean by my Network config? I have tried it at home and at work, both with very different setups of Windows2000, and Tomcat pulls the same BS in both cases. Tomcat starts fine when either I double click on startup.bat, or use the Start Tomcat shortcut in the Start Menu(which just points to startup.bat). Do you want to know my varible settings? System variables: JAVA_HOME=C:\j2sdk1.4.0 CATALINA_HOME=C:\Progra~1\Apache~2 CLASSPATH=C:\IBMCON~1\classes;C:\IBMCON~1\CICS\Classes\CTGCLI~1.JAR;.;C: \Pro gram~1\SQLLIB\java\db2java.zip;C:\Progra~1\SQLLIB\java\runtime.zip;C: \Progra~1\SQLLIB\java\sqlj.zip;C:\Progra~1\SQLLIB\bin Be more specific what settings you want to know... -Kevin Loïc Lefèvre [EMAIL PROTECTED] on 02/19/2002 09:01:45 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] cc: Subject: RE: Tomcat as a service... Hi Kevin, Could you write your system configuration? (especially your network configuration) Cheers, Loïc Lefèvre -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Envoyé : mardi 19 février 2002 14:51 À : [EMAIL PROTECTED] Objet : Tomcat as a service... One other thing... I have tried now, every now and then over the past 6 months to get Tomcat to run as an NT service. I have NEVER been sucessful and I have tried 4 or 5 different ways. I kept thinking that there was some silly bug that was going to be fixed in the next release. Well, I just installed the Tomcat 4.0.2 exe file, and during the install, checked the option to install as NT service.(I am running W2K), I have JAVA_HOME and CATALINA_HOME set properly, and reboot, and ONCE AGAIN, no tomcat service. The service is listed in the Admin Services console as being automatically started, but it wont actually start. When I try to start it manually from the services panel, I get this message, Could not start Tomcat on local computer. The service did not return an error. Could be windows internal error or internal error. If there was no error returned, then why WONT IT START And if there was an error, why not REPORT IT. How about telling the user what is wrong so that he/she can fix it. Duh. Sorry to be so brash, but it has been this way for a long time and noone seems to care about fixing it. -Kevin Schmidt Cincinnati, OH -- NOTICE: The information contained in this electronic mail transmission is intended by Convergys Corporation for the use of the named individual or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone (collect), so that the sender's address records can be corrected. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- NOTICE: The information contained in this electronic mail transmission is intended by Convergys Corporation for the use of the named individual or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone (collect), so that the sender's address records can be corrected. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional
RE: modwebapp gives Netscape HTML code, can't see page!
Thanks you guys, luckily it was something simple like that and the default context type in Apache was set to text/plain. -Original Message- From: Donie Kelly [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19 2002 12:29 PM To: 'Tomcat Users List' Subject: RE: modwebapp gives Netscape HTML code, can't see page! Check the content type header. Maybe it's not set to text/html Donie Ps: otherwise send the first few lines of the response and we might be able to see what the problem is... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 19 February 2002 12:28 To: [EMAIL PROTECTED] Subject: modwebapp gives Netscape HTML code, can't see page! Has anybody else experienced hitting the server through modwebapp and only seeing the HTML code for Netscape 4.78? Not sure what's going on, works fine in IE but in Netscape pages are not getting rendered, the raw HTML just gets dumped out. Any ideas? This is not cool... -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Waiting for 1 instance(s) to be deallocated
Hello everybody, i need some help with the error message from my errorlog. I get this errormessage very often after i have edited my servlet, compiled it and started it again... The Servlet is running and nothing happens. How can i prevent this message to be generated? Thanx in Advance Stephan -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Waiting for 1 instance(s) to be deallocated
Oh yes, sorry for that. Here the complete Line from my errorlog: 2002-02-19 15:13:09 StandardWrapper[/carat:org.apache.catalina.INVOKER.User]: Waiting for 1 instance(s) to be deallocated At 09:20 19.02.2002 -0500, you wrote: which message? you seem to have left that part out. -Original Message- From: Stephan Mülhaus [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 8:32 AM To: Tomcat Users List Subject: Waiting for 1 instance(s) to be deallocated Hello everybody, i need some help with the error message from my errorlog. I get this errormessage very often after i have edited my servlet, compiled it and started it again... The Servlet is running and nothing happens. How can i prevent this message to be generated? Thanx in Advance Stephan -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat as a service...
When I look at the properties for the service, it says that the path to the executable is: C:\Program Files\Apache Tomcat 4.0\bin\tomcat.exe When I try to run this exe from the command line, tomcat, of course, doesnt start. How does the service know to perform all the stuff that startup.bat does??? Also, the service has no settings for environmental variables, so I assume it goes directly off whats in the system variables, correct? Question: Is a reboot needed if one of the env variables changes? Also, it has a line for Start parameters which is empty. Should something be here maybe??? Dependencies tab, how do I set it up so that Tomcat starts up before Apache does. Because, I have noticed, runnning on the command line, that Apache needs a restart once you load up Tomcat. Will the order of the services booting affect it? If so, it seems to me that the installer should detect if Apache is present or not and set it up for the user. Questions, questions... -Kevin Randy Layman [EMAIL PROTECTED] on 02/19/2002 08:36:17 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject: RE: Tomcat as a service... They should be in the logs directory, but you might want to try searching the system for the files. Their lack of existence would point to the service not even getting loaded, probably a problem with your JAVA_HOME. I don't know about Tomcat 4, but with Tomcat 3 you had to edit the wrapper.properties file in the conf directory to set the JAVA_HOME. Maybe someone more familiar with Tomcat 4 could indicate how to set the JAVA_HOME for the service? Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 9:16 AM To: Tomcat Users List Subject: RE: Tomcat as a service... Where can I find jvm.stderr and jvm.stdout? I dont see them in the log dir??? Sorry if I seem stupid, but I am a SUN Certified Programmer, not a system admin type guy. -Kevin Randy Layman [EMAIL PROTECTED] on 02/19/2002 08:08:51 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject: RE: Tomcat as a service... The reason that you get the message is because the only errors that can be reported are those detected by 2000 (like missing binary, improper permissions, etc). I would suggest that you look at the jvm.stderr and jvm.stdout for more information about what the error is that you are getting. Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 8:51 AM To: [EMAIL PROTECTED] Subject: Tomcat as a service... One other thing... I have tried now, every now and then over the past 6 months to get Tomcat to run as an NT service. I have NEVER been sucessful and I have tried 4 or 5 different ways. I kept thinking that there was some silly bug that was going to be fixed in the next release. Well, I just installed the Tomcat 4.0.2 exe file, and during the install, checked the option to install as NT service.(I am running W2K), I have JAVA_HOME and CATALINA_HOME set properly, and reboot, and ONCE AGAIN, no tomcat service. The service is listed in the Admin Services console as being automatically started, but it wont actually start. When I try to start it manually from the services panel, I get this message, Could not start Tomcat on local computer. The service did not return an error. Could be windows internal error or internal error. If there was no error returned, then why WONT IT START And if there was an error, why not REPORT IT. How about telling the user what is wrong so that he/she can fix it. Duh. Sorry to be so brash, but it has been this way for a long time and noone seems to care about fixing it. -Kevin Schmidt Cincinnati, OH -- NOTICE: The information contained in this electronic mail transmission is intended by Convergys Corporation for the use of the named individual or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone (collect), so that the sender's address records can be corrected. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- NOTICE: The information contained in this electronic mail transmission is intended by Convergys Corporation for the use of
Newbie deployment problem
Hi these are the steps i've done to deploy a servlet: 1. i've built my WAR (everythings in there, i checked) 2. shut down tomcat 4.0.1 3. deleted the dev tree webapps\messagelets and replaced it with the messagelets.war 4. added a context to server.xml ... Context path=/simplepublisherexample docBase=messagelets debug=0 reloadable=false/ 5. started up tomcat logging that my servlet does on init() is not seen when i run Tomcat through JBuilder6 it all works and i see my servlets init() logging have i missed a step out? should System.out logging in a servlet appear through the Tomcat console (inside overloaded init() method)? thanks paul This message contains confidential information and is intended only for the named individual and may not be disseminated without prior permission. If you are not the named addressee, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this message in error and delete this e-message from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, delayed in transmission, incomplete, or may contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this Message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any software or services. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Problems with RPM
Nice page :) I read : Tomcat 4.0.2 -- RPM Version javax.servlet.ServletException: sun/tools/javac/Main JSP examples will not execute in the default installation. To fix the problem, you need to manually create a symbolic link between the JAVA_HOME/lib/tools.jar and the CATALINA_HOME/lib. In my case, I created the following: ln -s /usr/local/java/lib/tools.jar tools.jar in the /var/tomcat4/lib directory. After creating the symbolic link, you must stop and start the Tomcat service. Execute tomcat4 stop and then tomcat4 start from the command line. = Fixed in RPM 4.0.2 release 3 (my fault ;() will be release before end of day (CET) Tomcat 4.0.2 -- RPM Version su: warning: cannot change directory to /var/tomcat: No such file or directory This problem is caused by a bug in the Tomcat4 install RPM file. The RPM file creates a new user called tomcat4 but sets the working directory incorrectly. = Fixed in RPM 4.0.2 release 2 ;) --- Tomcat 4.0.2 -- RPM Version ConnectionException The java.net.ConnectionException error can be difficult to troubleshoot. After hours of troubleshooting, I carefully reviewed the catalina.out log file in $CATALINA_HOME/logs. As a result, I commented out the Tomact-Apache Service definition in server.xml. This definition is near the end of the file and begins with a Service name=Tomcat-Apache tag and ends with the /Service tag. Do not comment out the final /Server tag or the XML file cannot be read. Save the server.xml file. Run tomcat4 stop. Run tomcat4 start. = The webapp connector could be removed if you don't have an Apache with mod_webapp module to speak with. BTW, what's the problem with ConnectionException. For Apache or IIS or iPlanet users, you could use ajp13 : !-- Define an AJP 1.3 Connector on port 8109 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8109 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ The default port for Ajp13 in RPM is 8109, to avoid conflict with a running Tomcat 3.2 or 3.3 which listen on 8009 Regards I agree. I posted the solution on my web site: http://www.shannonbrown.net/resources/linux-resources.htm in case other people need this resolution. I combed through the scripts but do not yet see where the problem occurs with the CLASSPATH. Shannon Brown Internet Technologies Architect Business Technologies Advisor www.shannonbrown.net [EMAIL PROTECTED] 717.665.5656 -Original Message- From: Jolet, John [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 9:05 AM To: 'Tomcat Users List' Subject: RE: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default i agree, that fixed it for me, too. However, this behavior is NOT what the documentation says to expect. I would consider this a bug, since it is not, in fact building my classpath to include $JAVA_HOME/lib/tools.jar as the docs say. -Original Message- From: Shannon Brown [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 8:09 AM To: Tomcat Users List Subject: RE: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default Importance: High Thanks to all. I would not say that this is the right solution, but it is a solution. Add a symbolic link in the /var/tomcat4/lib directory to the tools.jar file in the java directory. In my case, this was: ln -s /usr/local/java/lib/tools.jar tools.jar I stopped and restarted Tomcat. The problem does seem to be resolved. This is rather odd, however, and I am concerned about future upgrades. The classpath is obliterated (I edited my dtomcat4 script to display the environment variables). I do not, however, see where this occurs. Shannon Brown Internet Technologies Architect Business Technologies Advisor www.shannonbrown.net [EMAIL PROTECTED] 717.665.5656 -Original Message- From: Jolet, John [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 8:49 AM To: 'Tomcat Users List' Subject: RE: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default okay, but according to the docs, the start script throws away your classpath and rebuilds itwhere do I put the entry in that case? you mean i should copy the tools.jar to the tomcat/lib directory? would a symlink work? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 7:53 AM To: Tomcat Users List Subject: Re: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default Trying adding tools.jar to your classpath or better still in the Tomcat/lib directory. Thanks. RS Shannon Brown [EMAIL PROTECTED] on 02/19/2002 07:09:21 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] cc: Subject: Still Need Help RE: Tomcat
Signup servlet
Hi friends, I am doing a project now. I am trying to register a user into the database using Signup.java (Servlet). I did the code and it worked fine till some days but giving me problems now. It says that any user who wants to signup is already present in the database. I am attaching my java file here. Please check the file and correct me where I am wrong. To see this error in action, please visit http://www.globalleafs.com/Signup.html Thanks Uma
AW: Signup servlet
Which file ? Can't see an attachment. -Ursprüngliche Nachricht- Von: Uma Maheswar [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 19. Februar 2002 15:36 An: Tomcat Users List Betreff: Signup servlet snip/ the database. I am attaching my java file here. Please check snip/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Help with User Authentication in Tomcat 3.3a
Neither of the URL's http://localhost:8080/chi2002/index.html or http://localhost:8080/chi2002 match the /chi2002/demos/* pattern. What happens if you access a JSP page under the demos directory? Cheers, Larry -Original Message- From: Wise, Bowden (CRD) [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 5:14 PM To: 'tomcat-user' Subject: Help with User Authentication in Tomcat 3.3a I am tyring to set understand the various user authentication schemes available under Tomcat 3.3. I would like to eventually be able to use JDBCRealm with mysql. I found the instructions on the tomcat site, but so far I have been unsusccessful to get it to work. So I thought I would first try SimpleRealm but even after following the examples provided, I can't get this to work either! I would appreciate any suggestions! I used the example under the JSP files that includes a protected area using form login. I copied almost exactly, for some reason, whenever I reference the protected area in my browser, it never invokes the authentication and pop-up a form. SIMPLE REALM 1) Created a new web app and used ant to distribute to TOMCAT webapps with the following structure chi2002/ /demos /accepts /proofs /rejects Browsing to http://localhost:8080/chi2002/ works great. Below I tried to protect the URL /chi2002/demos/* so if I browse to a file such as http://localhost:8080/chi2002/index.html or http://localhost:8080/chi2002 shouldn't the FORM login pop-up? The FORM never appears and requires a login. So what am I Missing?? 2) web.xml for this app is: !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; web-app !-- General description of your web application -- display-namechi2002/display-name description CHI2002 DEMO FILES /description servlet servlet-nameXMLTransformServlet/servlet-name description /description servlet-classcom.ge.crd.smg.tg.XMLTransformServlet/servlet-class /servlet servlet-mapping servlet-nameXMLTransformServlet/servlet-name url-pattern/XMLTransformServlet/url-pattern /servlet-mapping security-constraint web-resource-collection web-resource-nameProtected Area/web-resource-name !-- Define the context-relative URL(s) to be protected -- url-pattern/chi2002/demos/*/url-pattern !-- If you list http methods, only those methods are protected -- http-methodDELETE/http-method http-methodGET/http-method http-methodPOST/http-method http-methodPUT/http-method /web-resource-collection auth-constraint !-- Anyone with one of the listed roles may access this area -- role-namechi2002/role-name /auth-constraint /security-constraint !-- Default login configuration uses BASIC authentication -- !-- login-config auth-methodBASIC/auth-method realm-nameExample Basic Authentication Area/realm-name /login-config -- !-- Form-based login is enabled by default. If you wish to try Basic authentication, comment out the login-config section below and uncomment the one above. -- login-config auth-methodFORM/auth-method realm-nameExample Form-Based Authentication Area/realm-name form-login-config form-login-page/login.jsp/form-login-page form-error-page/error.jsp/form-error-page /form-login-config /login-config /web-app 3) Created apps-chi2002.xml for Context: ?xml version=1.0 encoding=ISO-8859-1? webapps Context path=/chi2002 docBase=webapps/chi2002 crossContext=false debug=1 reloadable=true SimpleRealm filename=conf/users/chi2002-users.xml / !-- JDBCRealm debug=99 driverName=org.gjt.mm.mysql.Driver connectionURL=jdbc:mysql://localhost/authority connectionName=mysql connectionPassword=mysql02 userTable=users userNameCol=user_name userCredCol=user_pass userRoleTable=user_roles roleNameCol=role_name / -- /Context /webapps 4) Created conf/users/chi2002-users.xml tomcat-users user name=sigchi password=sigchi roles=chi2002 / /tomcat-users Bowden g GE Global Research Center __ _ G. Bowden Wise mailto:[EMAIL PROTECTED] Information and Decision Technologies GE Global Research
RE: Tomcat as a service...
I just downloaded and installed Tomcat 4.02 binary and everything works fine for me. The installer detected the JVM (1.3) on installation. The only difference is that I installed to a directory without spaces in it. It would seem that the service configuration is stored in the registry at HKEY_LOCAL_MACHINE\SYSTEM\Services\Apache Tomcat\Parameters. You might want to check these and make sure that the installer filled in the parameters correctly (epically quoting the parameters correctly). Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 9:41 AM To: Tomcat Users List Subject: RE: Tomcat as a service... When I look at the properties for the service, it says that the path to the executable is: C:\Program Files\Apache Tomcat 4.0\bin\tomcat.exe When I try to run this exe from the command line, tomcat, of course, doesnt start. How does the service know to perform all the stuff that startup.bat does??? Also, the service has no settings for environmental variables, so I assume it goes directly off whats in the system variables, correct? Question: Is a reboot needed if one of the env variables changes? Also, it has a line for Start parameters which is empty. Should something be here maybe??? Dependencies tab, how do I set it up so that Tomcat starts up before Apache does. Because, I have noticed, runnning on the command line, that Apache needs a restart once you load up Tomcat. Will the order of the services booting affect it? If so, it seems to me that the installer should detect if Apache is present or not and set it up for the user. Questions, questions... -Kevin Randy Layman [EMAIL PROTECTED] on 02/19/2002 08:36:17 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject: RE: Tomcat as a service... They should be in the logs directory, but you might want to try searching the system for the files. Their lack of existence would point to the service not even getting loaded, probably a problem with your JAVA_HOME. I don't know about Tomcat 4, but with Tomcat 3 you had to edit the wrapper.properties file in the conf directory to set the JAVA_HOME. Maybe someone more familiar with Tomcat 4 could indicate how to set the JAVA_HOME for the service? Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 9:16 AM To: Tomcat Users List Subject: RE: Tomcat as a service... Where can I find jvm.stderr and jvm.stdout? I dont see them in the log dir??? Sorry if I seem stupid, but I am a SUN Certified Programmer, not a system admin type guy. -Kevin Randy Layman [EMAIL PROTECTED] on 02/19/2002 08:08:51 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject: RE: Tomcat as a service... The reason that you get the message is because the only errors that can be reported are those detected by 2000 (like missing binary, improper permissions, etc). I would suggest that you look at the jvm.stderr and jvm.stdout for more information about what the error is that you are getting. Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 8:51 AM To: [EMAIL PROTECTED] Subject: Tomcat as a service... One other thing... I have tried now, every now and then over the past 6 months to get Tomcat to run as an NT service. I have NEVER been sucessful and I have tried 4 or 5 different ways. I kept thinking that there was some silly bug that was going to be fixed in the next release. Well, I just installed the Tomcat 4.0.2 exe file, and during the install, checked the option to install as NT service.(I am running W2K), I have JAVA_HOME and CATALINA_HOME set properly, and reboot, and ONCE AGAIN, no tomcat service. The service is listed in the Admin Services console as being automatically started, but it wont actually start. When I try to start it manually from the services panel, I get this message, Could not start Tomcat on local computer. The service did not return an error. Could be windows internal error or internal error. If there was no error returned, then why WONT IT START And if there was an error, why not REPORT IT. How about telling the user what is wrong so that he/she can fix it. Duh. Sorry to be so brash, but it has been this way for a long time and noone seems to care about fixing it. -Kevin Schmidt Cincinnati, OH -- NOTICE: The information contained in this electronic mail transmission is intended by Convergys Corporation
RE: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default
I agree with your statement. But maybe you have a corrupt setclasspath.sh. Look at setclasspath.sh (.bat for window users; called from catalina.sh:), it has a line # Set standard CLASSPATH CLASSPATH=$JAVA_HOME/lib/tools.jar Thanks. RS Jolet, John [EMAIL PROTECTED] on 02/19/2002 08:05:20 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject: RE: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default it does...but shouldn't be necessary. WAS not necessary under 4.0.1. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 8:14 AM To: Tomcat Users List Subject: RE: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default I suppose adding a symbolic link to JAVA_HOME/lib/tool.jar should work. Thanks. RS Jolet, John [EMAIL PROTECTED] on 02/19/2002 07:48:44 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject: RE: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default okay, but according to the docs, the start script throws away your classpath and rebuilds itwhere do I put the entry in that case? you mean i should copy the tools.jar to the tomcat/lib directory? would a symlink work? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 7:53 AM To: Tomcat Users List Subject: Re: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default Trying adding tools.jar to your classpath or better still in the Tomcat/lib directory. Thanks. RS Shannon Brown [EMAIL PROTECTED] on 02/19/2002 07:09:21 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] cc: Subject: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default I re-ran the application this morning and am getting the sun/tools/javac/Main error. (This was not appearing yesterday. I am using JDK 1.4.0 final and Tomcat 4.0.2 RPM version. Very odd. Servlets run fine. javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:475) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
RE: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default
And you have a good copy of setclasspath.sh (please do check if setclasspath.sh is called from catalina.sh) then maybe there's a bug with the linux install :-) Thanks. RS Jolet, John [EMAIL PROTECTED] on 02/19/2002 08:05:20 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject: RE: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default it does...but shouldn't be necessary. WAS not necessary under 4.0.1. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 8:14 AM To: Tomcat Users List Subject: RE: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default I suppose adding a symbolic link to JAVA_HOME/lib/tool.jar should work. Thanks. RS Jolet, John [EMAIL PROTECTED] on 02/19/2002 07:48:44 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject: RE: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default okay, but according to the docs, the start script throws away your classpath and rebuilds itwhere do I put the entry in that case? you mean i should copy the tools.jar to the tomcat/lib directory? would a symlink work? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 7:53 AM To: Tomcat Users List Subject: Re: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default Trying adding tools.jar to your classpath or better still in the Tomcat/lib directory. Thanks. RS Shannon Brown [EMAIL PROTECTED] on 02/19/2002 07:09:21 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] cc: Subject: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default I re-ran the application this morning and am getting the sun/tools/javac/Main error. (This was not appearing yesterday. I am using JDK 1.4.0 final and Tomcat 4.0.2 RPM version. Very odd. Servlets run fine. javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:475) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at
ArrayIndexOutOfBoundsException in catalina code...
I am using Tomcat4.0.2, JDK1.4, Windows2000 I load up Tomcat in console, and restart Apache. I go to http://127.0.0.1:8080/examples/jsp/index.html and everything is fine, I can run the examples without problem. Then I go to http://127.0.0.1:80/examples/jsp/index.html and the following exception is thrown from Tomcat4.0.2: Starting service Tomcat-Standalone Apache Tomcat/4.0.2 Starting service Tomcat-Apache Apache Tomcat/4.0.2 java.lang.ArrayIndexOutOfBoundsException: No data available at org.apache.catalina.connector.warp.WarpPacket.readUnsignedShort(WarpP acket.java:183) at org.apache.catalina.connector.warp.WarpPacket.readString(WarpPacket.j ava:218) at org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequ estHandler.java:184) at org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection. java:194) at java.lang.Thread.run(Thread.java:536) JAVA_HOME=C:\j2sdk1.4.0 CATALINA_HOME=C:\Progra~1\Apache~2 CLASSPATH=C:\IBMCON~1\classes;C:\IBMCON~1\CICS\Classes\CTGCLI~1.JAR;.;C:\Program~1\SQLLIB\java\db2java.zip;C:\Progra~1\SQLLIB\java\runtime.zip;C: \Progra~1\SQLLIB\java\sqlj.zip;C:\Progra~1\SQLLIB\bin -Kevin Schmidt -- NOTICE: The information contained in this electronic mail transmission is intended by Convergys Corporation for the use of the named individual or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone (collect), so that the sender's address records can be corrected. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Signup servlet
sorry, Forgot the file. Please check it now. Uma - Original Message - From: Ralph Einfeldt [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, February 19, 2002 8:16 PM Subject: AW: Signup servlet Which file ? Can't see an attachment. -Ursprüngliche Nachricht- Von: Uma Maheswar [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 19. Februar 2002 15:36 An: Tomcat Users List Betreff: Signup servlet snip/ the database. I am attaching my java file here. Please check snip/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] Signup.java Description: Binary data -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
R: Signup servlet
Could we have the error stack trace also? Regards Paolo -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: [INIMSS] How can I load a custom jar file for a particular web application. [a newbie question]
Hi Thanks for the help. I had already reposted the mail with the info you requested. Thank You On Tuesday 19 February 2002 19:29, you wrote: It would be extremely helpful if we knew what version of Tomcat is running. If we're talking TC 4, then place it in WEB-INF/lib of your webapp and then restart the app. I believe that holds true for 3.3 as well (I'm more familiar with TC 4). For versions before 3.3, the classloader system wasn't implemented yet and you'll have to put it in the classpath somewhere. --David On Monday 18 February 2002 02:12 am, you wrote: Hi Please help me ASAP. I am having a third party jar file that is to be loaded from jsp pages to attain some task. The particular jar file is to be used only buy one web application. Where should I place the files and what all should I modify to make it work? Thanks Dino CK -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default
Nice page :) I read : Tomcat 4.0.2 -- RPM Version javax.servlet.ServletException: sun/tools/javac/Main JSP examples will not execute in the default installation. To fix the problem, you need to manually create a symbolic link between the JAVA_HOME/lib/tools.jar and the CATALINA_HOME/lib. In my case, I created the following: ln -s /usr/local/java/lib/tools.jar tools.jar in the /var/tomcat4/lib directory. After creating the symbolic link, you must stop and start the Tomcat service. Execute tomcat4 stop and then tomcat4 start from the command line. = Fixed in RPM 4.0.2 release 3 (my fault ;() just uploaded :) BTW, same problem for jasper4 which miss to set initial classpath $JAVA_HOME/lib/tools.jar to Tomcat 4.0.2 -- RPM Version su: warning: cannot change directory to /var/tomcat: No such file or directory This problem is caused by a bug in the Tomcat4 install RPM file. The RPM file creates a new user called tomcat4 but sets the working directory incorrectly. = Fixed in RPM 4.0.2 release 2 ;) --- Tomcat 4.0.2 -- RPM Version ConnectionException The java.net.ConnectionException error can be difficult to troubleshoot. After hours of troubleshooting, I carefully reviewed the catalina.out log file in $CATALINA_HOME/logs. As a result, I commented out the Tomact-Apache Service definition in server.xml. This definition is near the end of the file and begins with a Service name=Tomcat-Apache tag and ends with the /Service tag. Do not comment out the final /Server tag or the XML file cannot be read. Save the server.xml file. Run tomcat4 stop. Run tomcat4 start. = The webapp connector could be removed if you don't have an Apache with mod_webapp module to speak with. BTW, what's the problem with ConnectionException. For Apache or IIS or iPlanet users, you could use ajp13 : !-- Define an AJP 1.3 Connector on port 8109 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8109 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ The default port for Ajp13 in RPM is 8109, to avoid conflict with a running Tomcat 3.2 or 3.3 which listen on 8009 Regards I agree. I posted the solution on my web site: http://www.shannonbrown.net/resources/linux-resources.htm in case other people need this resolution. I combed through the scripts but do not yet see where the problem occurs with the CLASSPATH. Shannon Brown Internet Technologies Architect Business Technologies Advisor www.shannonbrown.net [EMAIL PROTECTED] 717.665.5656 -Original Message- From: Jolet, John [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 9:05 AM To: 'Tomcat Users List' Subject: RE: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default i agree, that fixed it for me, too. However, this behavior is NOT what the documentation says to expect. I would consider this a bug, since it is not, in fact building my classpath to include $JAVA_HOME/lib/tools.jar as the docs say. -Original Message- From: Shannon Brown [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 8:09 AM To: Tomcat Users List Subject: RE: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default Importance: High Thanks to all. I would not say that this is the right solution, but it is a solution. Add a symbolic link in the /var/tomcat4/lib directory to the tools.jar file in the java directory. In my case, this was: ln -s /usr/local/java/lib/tools.jar tools.jar I stopped and restarted Tomcat. The problem does seem to be resolved. This is rather odd, however, and I am concerned about future upgrades. The classpath is obliterated (I edited my dtomcat4 script to display the environment variables). I do not, however, see where this occurs. Shannon Brown Internet Technologies Architect Business Technologies Advisor www.shannonbrown.net [EMAIL PROTECTED] 717.665.5656 -Original Message- From: Jolet, John [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 8:49 AM To: 'Tomcat Users List' Subject: RE: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default okay, but according to the docs, the start script throws away your classpath and rebuilds itwhere do I put the entry in that case? you mean i should copy the tools.jar to the tomcat/lib directory? would a symlink work? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 7:53 AM To: Tomcat Users List Subject: Re: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default Trying adding tools.jar to your classpath or better still in the Tomcat/lib directory. Thanks. RS Shannon Brown [EMAIL PROTECTED] on 02/19/2002 07:09:21 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] cc: Subject: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default I re-ran the
AW: Signup servlet
Some things you should change: - Move your variables Connection,... inside the doPost() method. Otherwise these variables will be shared between requests. You will get confusing result if two ore more requests run through the doPost() at the same time. - Use a ConnectionPool to handle the connection - Don't use the JdbcOdbcDriver It has some problems with multithreaded access to the db. - Use variables with sensefull names, not s1 to s12 this way your code is very hard to read. -Ursprüngliche Nachricht- Von: Uma Maheswar [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 19. Februar 2002 16:00 An: Tomcat Users List Betreff: Re: Signup servlet sorry, Forgot the file. Please check it now. Uma -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Newbie deployment problem
Paul Brown wrote: Just seen this in one of the logs: 2002-02-19 14:50:49 StandardContext[/messagelets]: Servlet /messagelets threw load() exception javax.servlet.ServletException: Error instantiating servlet class . java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav the digester stuff is in tomcat_home\server\libs, by the way surely, it doesnt have to be put in the WAR ? If the digester is a separate WAR or JAR, put it in ...webapps/messagelets/WEB-INF/lib 1. i've built my WAR (everythings in there, i checked) 2. shut down tomcat 4.0.1 3. deleted the dev tree webapps\messagelets and replaced it with the messagelets.war I think the war needs to go in messagelets dir == .../webapps/messagelets 4. added a context to server.xml ... Context path=/simplepublisherexample docBase=messagelets debug=0 reloadable=false/ If you don't need special stuff (like customized logfile, or reloadable classes), you *could* omit the entry from server.xml, but it won't hurt either. 5. started up tomcat logging that my servlet does on init() is not seen when i run Tomcat through JBuilder6 it all works and i see my servlets init() logging have i missed a step out? should System.out logging in a servlet appear through the Tomcat console (inside overloaded init() method)? Yep. You should look into logging your stuff using the log api one day, but System.out should work fine. Hope this helps, Eelco -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
EdH: Newbie deployment problem
Hi i have put the Digester jar inside my war and i still get the same problem at deployment time. ie. this stacktrace 2002-02-19 15:35:07 StandardContext[/messagelets]: Servlet /messagelets threw load() exception javax.servlet.ServletException: Error instantiating servlet class org.apache.commons.messagelet.ManagerServlet at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav a:894) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:809) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j ava:3272) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3393 ) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja va:821) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:486) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeploy er.java:278) at org.apache.catalina.core.StandardHost.install(StandardHost.java:680) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:394) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:319) at org.apache.catalina.startup.HostConfig.run(HostConfig.java:688) at java.lang.Thread.run(Thread.java:484) - Root Cause - java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav a:885) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:809) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j ava:3272) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3393 ) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja va:821) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:486) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeploy er.java:278) at org.apache.catalina.core.StandardHost.install(StandardHost.java:680) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:394) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:319) at org.apache.catalina.startup.HostConfig.run(HostConfig.java:688) at java.lang.Thread.run(Thread.java:484) -Original Message- From: Eelco den Heijer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 3:26 PM To: Tomcat Users List Subject: Re: Newbie deployment problem If the digester is a separate WAR or JAR, put it in ...webapps/messagelets/WEB-INF/lib 1. i've built my WAR (everythings in there, i checked) 2. shut down tomcat 4.0.1 3. deleted the dev tree webapps\messagelets and replaced it with the messagelets.war I think the war needs to go in messagelets dir == .../webapps/messagelets 4. added a context to server.xml ... Context path=/simplepublisherexample docBase=messagelets debug=0 reloadable=false/ If you don't need special stuff (like customized logfile, or reloadable classes), you *could* omit the entry from server.xml, but it won't hurt either. 5. started up tomcat logging that my servlet does on init() is not seen when i run Tomcat through JBuilder6 it all works and i see my servlets init() logging have i missed a step out? should System.out logging in a servlet appear through the Tomcat console (inside overloaded init() method)? Yep. You should look into logging your stuff using the log api one day, but System.out should work fine. Hope this helps, Eelco -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] This message contains confidential information and is intended only for the named individual and may not be disseminated without prior permission. If you are not the named addressee, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this message in error and delete this e-message from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, delayed in transmission, incomplete, or may contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this Message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell
RE: Jserv to tomcat 3.3 migration
Both Tomcat 3.x and 4.x serve web applications which were added to the specs following JServ. How to build a web application is different from what JServ required. I would recommend becoming familiar with the Servlet and JSP specs for the Tomcat you plan to use: Tomcat 3.x implements Servlet 2.2/JSP 1.1 Tomcat 4.x implements Servlet 2.3/JSP 1.2 The servlet specs may be obtained from: http://java.sun.com/products/servlet/download.html The JSP specs may be obtained from: http://java.sun.com/products/jsp/download.html Cheers, Larry -Original Message- From: hahah hs [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 7:30 AM To: Tomcat Users List Subject: Jserv to tomcat 3.3 migration Hello Gurus, I have problems in migrating from JServ to Tomcat 3.3 .. After reading all the docs and doing all the necessary modification like defining web.xml and putting the classes under classes both are under WEB_INF/ in webapps, what I get is only directory listing of the servlets . Is there something I have to invoke or enable to execute the servlets. The examples under tomcat 3.3 execute but not webapp/servlets. Looks like I'm missing something. any pointers .. TIA h __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
ConcurrentModificationException error
When I try to remove some information from the session I get a ConcurrentModificationException error. tomcat 3.X did not have this problem, but tomcat 4.X is complaining about this. here is a section of code that is having the problem java.util.Enumeration sessionNames = session.getAttributeNames(); while(sessionNames.hasMoreElements()){ String lstrSessionName = (String)sessionNames.nextElement(); if (!lvecTempVar.contains(lstrSessionName)) { session.removeAttribute(lstrSessionName); } } anyone have any ideas? _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
3.3a, cant find file when refresh
Hi Guys I have a html file which is included in a jsp page using the following method jsp:include page = ../jsp/PSTemplate.htm flush = true/ When I first load the page, everythings shows up as normal, but when I refresh, the browser doesnt load it and gives me ERROR:200. I recall it was the same with my previous assignmnet, which I tried to load a image file which gets loaded sometimes and other times it can be loaded. ERROR STATEMENT: == 2002-02-19 23:40:55 - SessionIdGenerator: Created random class java.security.SecureRandom 2002-02-19 23:41:24 - Ctx(/PS) : IOException in R( /PS + /images/Threadmill.jpg + null) - java.net.SocketException: Connection aborted by peer: socket write error == I have deduced for this case, its because it cant load a certain JPG file intermittenly, causing the rest of the page to have problems. How can i solve this? _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: EdH: Newbie deployment problem
Hi Paul, What if you put the digester jar in the messagelets/WEB-INF/lib ? Paul Brown wrote: Hi i have put the Digester jar inside my war and i still get the same problem at deployment time. ie. this stacktrace -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: ConcurrentModificationException error
Kent Kurima wrote: When I try to remove some information from the session I get a ConcurrentModificationException error. tomcat 3.X did not have this problem, but tomcat 4.X is complaining about this. here is a section of code that is having the problem java.util.Enumeration sessionNames = session.getAttributeNames(); while(sessionNames.hasMoreElements()){ String lstrSessionName = (String)sessionNames.nextElement(); if (!lvecTempVar.contains(lstrSessionName)) { session.removeAttribute(lstrSessionName); } Hi Kent, Probably, another servlet instance is accessing that attr. of the session; you have to synchronize access to it: while(sessionNames.hasMoreElements()){ String lstrSessionName = (String)sessionNames.nextElement(); if (!lvecTempVar.contains(lstrSessionName)) { synchronized (session) { session.removeAttribute(lstrSessionName); } } -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: 3.3a, cant find file when refresh
Hi again Decided to elaborate as i think wat i said is too abstract I tried to run this url http://localhost:8080/PS/jsp/index.jsp it has the following file jsp:include page = ../jsp/PSTemplate.htm flush = true/ however, when first loaded gives me Error: 200 Location: /PS/jsp/index.jsp den refresh its normal, refresh again ERROR comes out again. Note tat error comes out in Browser. As for the startup dos window, i see nuthin. Pleas ehelp... :( -Original Message- From: Keith Ng [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 11:53 PM To: Tomcat Users List Subject: 3.3a, cant find file when refresh Hi Guys I have a html file which is included in a jsp page using the following method jsp:include page = ../jsp/PSTemplate.htm flush = true/ When I first load the page, everythings shows up as normal, but when I refresh, the browser doesnt load it and gives me ERROR:200. I recall it was the same with my previous assignmnet, which I tried to load a image file which gets loaded sometimes and other times it can be loaded. ERROR STATEMENT: == 2002-02-19 23:40:55 - SessionIdGenerator: Created random class java.security.SecureRandom 2002-02-19 23:41:24 - Ctx(/PS) : IOException in R( /PS + /images/Threadmill.jpg + null) - java.net.SocketException: Connection aborted by peer: socket write error == I have deduced for this case, its because it cant load a certain JPG file intermittenly, causing the rest of the page to have problems. How can i solve this? _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: 3.3a, cant find file when refresh
This technically isn't an error. It indicates that the browser, realized that the Threadmill.jpg it is reading during the refresh isn't any newer than the Threadmill.jpg it has already cached locally. In order to save time, the browse simply closed the connection and used the local copy of Threadmill.jpg. Because the browser closed the connection before it read all the data, it causes Tomcat to generate the log output you see. Cheers, Larry -Original Message- From: Keith Ng [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 10:53 AM To: Tomcat Users List Subject: 3.3a, cant find file when refresh Hi Guys I have a html file which is included in a jsp page using the following method jsp:include page = ../jsp/PSTemplate.htm flush = true/ When I first load the page, everythings shows up as normal, but when I refresh, the browser doesnt load it and gives me ERROR:200. I recall it was the same with my previous assignmnet, which I tried to load a image file which gets loaded sometimes and other times it can be loaded. ERROR STATEMENT: == == == 2002-02-19 23:40:55 - SessionIdGenerator: Created random class java.security.SecureRandom 2002-02-19 23:41:24 - Ctx(/PS) : IOException in R( /PS + /images/Threadmill.jpg + null) - java.net.SocketException: Connection aborted by peer: socket write error == == == I have deduced for this case, its because it cant load a certain JPG file intermittenly, causing the rest of the page to have problems. How can i solve this? _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Jserv to tomcat 3.3 migration
Hi Larry , You mean to say that I cannot move from JServ to Tomcat without a rewrite ? TIA hangel __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat 4 Problem - Connection refused
I have two instances of jakarta-tomcat v3.3.2 4.0.1. 1)Thus my tomcat 4.0.1 standalone connector listens at TCP port instead of the default as tomact3.3.2 is set default 8080. Thus at the URL http://localhost: when i try it out in my browser i get a error alert The connection was refused when attempting to contact localhost:. 2)The three jsse jar's are in my jdkjre/lib/ext and my JSSE_HOME environment variable points to my ABSOLUTE PATH jdk in Autoexec.bat. JSSE_HOME=C:\jdk1.3\jre\jsse1.0.2 3)Thus i beleive that tomcat4.0.1 isn't installed properly.I have only one instance of CATALINA_HOME. Any suggestions on what can be the problem. Chuck Amadi IT Systems Programmer -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Reposting [INIMSS] How can I load a custom jar file for a particular web application. [a newbie question]
Well then the class structure would be placed in WEB-INF/classes where the classloader structure would find all your .class files. Then you would reference your classes on the import line as ClassA.ClassA1 for example. If you write them yourself, make sure each source .java file has a package line at the top defining the package they are associated with. Then compile them. --David On Monday 18 February 2002 08:03 am, you wrote: Hi Ya it worked. Thanks What if the thirdparty library is available as classes in a heirarchy. That is they are arranged in folder structure. Like + ClassA | ClassA1.class | ClassA2.class + ClassB | ClassB1.class | ClassB3.class + ClassC.class Thanks Dino Cherian K On Tuesday 19 February 2002 16:30, you wrote: Putting the jar file in the ${TOMCAT_HOME}/webapps/yourapp/WEB-INF/libs directory will do the job. -Original Message- From: Dino Cherian K [mailto:[EMAIL PROTECTED]] Sent: 18 February 2002 08:17 To: [EMAIL PROTECTED] Subject: Reposting [INIMSS] How can I load a custom jar file for a particular web application. [a newbie question] Hi Please help me ASAP. I am having a third party jar file that is to be loaded from jsp pages to attain some task. The particular jar file is to be used only buy one web application. Where should I place the files and what all should I modify to make it work? I am using tomcat 3.3 and apache-1.3.19-5 on RedHat Linux 7.1. Thanks Dino CK -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] *** This email/attachment(s) has been virus checked upon receipt at the OS and is free of all known viruses. *** *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat as a service...
I finally got it to work! Thanks Randy! I installed it in a directory with no spaces, and then, when I went to the services console, it wouldnt start, but it gave me an error saying that it didnt have privledge to run. So, I changed it to login using my account, instead of the LocalSystem account, and then it worked!!! Thanks guys! -Kevin BTW... Someone should fix it so that it works under ANY installed path!!! Randy Layman [EMAIL PROTECTED] on 02/19/2002 09:05:34 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject: RE: Tomcat as a service... I just downloaded and installed Tomcat 4.02 binary and everything works fine for me. The installer detected the JVM (1.3) on installation. The only difference is that I installed to a directory without spaces in it. It would seem that the service configuration is stored in the registry at HKEY_LOCAL_MACHINE\SYSTEM\Services\Apache Tomcat\Parameters. You might want to check these and make sure that the installer filled in the parameters correctly (epically quoting the parameters correctly). Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 9:41 AM To: Tomcat Users List Subject: RE: Tomcat as a service... When I look at the properties for the service, it says that the path to the executable is: C:\Program Files\Apache Tomcat 4.0\bin\tomcat.exe When I try to run this exe from the command line, tomcat, of course, doesnt start. How does the service know to perform all the stuff that startup.bat does??? Also, the service has no settings for environmental variables, so I assume it goes directly off whats in the system variables, correct? Question: Is a reboot needed if one of the env variables changes? Also, it has a line for Start parameters which is empty. Should something be here maybe??? Dependencies tab, how do I set it up so that Tomcat starts up before Apache does. Because, I have noticed, runnning on the command line, that Apache needs a restart once you load up Tomcat. Will the order of the services booting affect it? If so, it seems to me that the installer should detect if Apache is present or not and set it up for the user. Questions, questions... -Kevin Randy Layman [EMAIL PROTECTED] on 02/19/2002 08:36:17 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject: RE: Tomcat as a service... They should be in the logs directory, but you might want to try searching the system for the files. Their lack of existence would point to the service not even getting loaded, probably a problem with your JAVA_HOME. I don't know about Tomcat 4, but with Tomcat 3 you had to edit the wrapper.properties file in the conf directory to set the JAVA_HOME. Maybe someone more familiar with Tomcat 4 could indicate how to set the JAVA_HOME for the service? Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 9:16 AM To: Tomcat Users List Subject: RE: Tomcat as a service... Where can I find jvm.stderr and jvm.stdout? I dont see them in the log dir??? Sorry if I seem stupid, but I am a SUN Certified Programmer, not a system admin type guy. -Kevin Randy Layman [EMAIL PROTECTED] on 02/19/2002 08:08:51 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject: RE: Tomcat as a service... The reason that you get the message is because the only errors that can be reported are those detected by 2000 (like missing binary, improper permissions, etc). I would suggest that you look at the jvm.stderr and jvm.stdout for more information about what the error is that you are getting. Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 8:51 AM To: [EMAIL PROTECTED] Subject: Tomcat as a service... One other thing... I have tried now, every now and then over the past 6 months to get Tomcat to run as an NT service. I have NEVER been sucessful and I have tried 4 or 5 different ways. I kept thinking that there was some silly bug that was going to be fixed in the next release. Well, I just installed the Tomcat 4.0.2 exe file, and during the install, checked the option to install as NT service.(I am running W2K), I have JAVA_HOME and CATALINA_HOME set properly, and reboot, and ONCE AGAIN, no tomcat service. The service is listed in the Admin Services console as being automatically started, but it wont actually start. When I try to start it manually from the services panel, I get this message, Could not start Tomcat on local computer.
Re: Tomcat 4 Problem - Connection refused
Hi Chuck, Connection refused basically means: there is nothing on that port listening , so my guess is that TC 4.0.1 is not running (or at least, it not listening on port ) Try running TC4 without TC3.3, see if you connect to TC4 then. Eelco Chuck Amadi wrote: I have two instances of jakarta-tomcat v3.3.2 4.0.1. 1)Thus my tomcat 4.0.1 standalone connector listens at TCP port instead of the default as tomact3.3.2 is set default 8080. Thus at the URL http://localhost: when i try it out in my browser i get a error alert The connection was refused when attempting to contact localhost:. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat as a service...
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 11:24 AM To: Tomcat Users List Subject: RE: Tomcat as a service... BTW... Someone should fix it so that it works under ANY installed path!!! I don't know what tool the Jakarta guys use to build the installer, but I know that for a project I worked on last year we had the same restriction because the install builder (InstallAnywhere) wouldn't allow us to escape the strings properly. Randy -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Jserv to tomcat 3.3 migration
I have not attempted to do such a conversion, and am not that familar with the details of JServ. An not yet documented feature of the InvokerInterceptor is that it accepts a prefix attribute that can specify a prefix other than the default /servlet/*. This was requested by someone also doing a JServ to Tomcat conversion. It may help in your situation as well. However, from what little I recall from my dialog with this person, I would think it is likely that some amount of rewrite will be required. Cheers, Larry -Original Message- From: hahah hs [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 11:10 AM To: Tomcat Users List Subject: RE: Jserv to tomcat 3.3 migration Hi Larry , You mean to say that I cannot move from JServ to Tomcat without a rewrite ? TIA hangel __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: 3.3a, cant find file when refresh
Thanks larry, u helped me clarify an issue. Can u please help me with my other problem? Its regarding the ERROR:200 i get on my browser when i refresh... -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 12:07 AM To: 'Tomcat Users List' Subject: RE: 3.3a, cant find file when refresh This technically isn't an error. It indicates that the browser, realized that the Threadmill.jpg it is reading during the refresh isn't any newer than the Threadmill.jpg it has already cached locally. In order to save time, the browse simply closed the connection and used the local copy of Threadmill.jpg. Because the browser closed the connection before it read all the data, it causes Tomcat to generate the log output you see. Cheers, Larry -Original Message- From: Keith Ng [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 10:53 AM To: Tomcat Users List Subject: 3.3a, cant find file when refresh Hi Guys I have a html file which is included in a jsp page using the following method jsp:include page = ../jsp/PSTemplate.htm flush = true/ When I first load the page, everythings shows up as normal, but when I refresh, the browser doesnt load it and gives me ERROR:200. I recall it was the same with my previous assignmnet, which I tried to load a image file which gets loaded sometimes and other times it can be loaded. ERROR STATEMENT: == == == 2002-02-19 23:40:55 - SessionIdGenerator: Created random class java.security.SecureRandom 2002-02-19 23:41:24 - Ctx(/PS) : IOException in R( /PS + /images/Threadmill.jpg + null) - java.net.SocketException: Connection aborted by peer: socket write error == == == I have deduced for this case, its because it cant load a certain JPG file intermittenly, causing the rest of the page to have problems. How can i solve this? _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Running tomcat port 80
Andrew Rodwell wrote: Hi , We are trying to get TOMCAT 4.0 to run on the default web port - and can do it ok on windows. However when we try the same changes on SuSE Linux 7.3 it will not run. Somebody suggested that we start it under root - when we try this the commands are not found. You might have guessed we are noew to Linux - any ideas? Regards Andrew To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] Hey im a relative Linux RHv7.1 user . Anway try this ./startup.sh and to egleganlty close ./shutdown.sh respectivly this usually works for web apps/services on Linux .Don't need to be su (root user) -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: EdH: Newbie deployment problem
Big thanks to Eelco for fixing my problem! -Original Message- From: Eelco den Heijer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 4:18 PM To: Paul Brown Subject: Re: EdH: Newbie deployment problem Hi Paul, direct mail is okay, no problem. The exception suggests that the VM cannot load the specified class; so either the jar can not be loaded, but your log suggests otherwise, or the class is not in the jar, which is kinda odd (it looks like a 3rd party Apache lib, so I assume you haven't touched it). Anyway, it won't hurt to open the jar in WinZip (or use jar -tvf name.jar) to peek inside the jar, to make sure the class is in there. If so, the problem must be something else. Next, add a log file entry in server.xml. In the context def of your web app add (add as child element of Context element): Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_messagelets. suffix=.txt timestamp=true/ Then restart Tomcat. Now you should have your own logfile for your web app; it makes dev. slighly easier. Maybe there are specific errors in here. Another odd thing: what exactly is the name of your web app? Is it messagelets or simplepublisherexample? If the latter, put the jar in simplepublisherexample/WEB-INF/lib and restart TC. Hope this helps :-) Eelco Paul Brown wrote: hi that exactly where i put it ... here's another segment of the log ... snip 2002-02-19 15:19:19 WebappLoader[/simplepublisherexample]: Deploy JAR /WEB-INF/lib/commons-JXPath-0.1-dev.jar to C:\JWSDP-~1\webapps\messagelets\WEB-INF\lib\commons-JXPath-0.1-dev.jar 2002-02-19 15:19:19 WebappLoader[/simplepublisherexample]: Deploy JAR /WEB-INF/lib/commons-beanutils.jar to C:\JWSDP-~1\webapps\messagelets\WEB-INF\lib\commons-beanutils.jar 2002-02-19 15:19:19 WebappLoader[/simplepublisherexample]: Deploy JAR /WEB-INF/lib/commons-digester.jar to C:\JWSDP-~1\webapps\messagelets\WEB-INF\lib\commons-digester.jar 2002-02-19 15:19:19 WebappLoader[/simplepublisherexample]: Deploy JAR /WEB-INF/lib/commons-messenger.jar to C:\JWSDP-~1\webapps\messagelets\WEB-INF\lib\commons-messenger.jar 2002-02-19 15:19:19 WebappLoader[/simplepublisherexample]: Deploy JAR /WEB-INF/lib/commons-modeler.jar to C:\JWSDP-~1\webapps\messagelets\WEB-INF\lib\commons-modeler.jar snip i also, put the messenger.war under tomcat_home\webapps\messagelets strange. i hope you dont mind the direct email. if you do, just say and i'll keep it public :) thanks paul -Original Message- From: Eelco den Heijer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 3:56 PM To: Tomcat Users List Subject: Re: EdH: Newbie deployment problem Hi Paul, What if you put the digester jar in the messagelets/WEB-INF/lib ? Paul Brown wrote: Hi i have put the Digester jar inside my war and i still get the same problem at deployment time. ie. this stacktrace -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] Name: InterScan_Disclaimer.txt InterScan_Disclaimer.txtType: Plain Text (text/plain) Encoding: 7bit This message contains confidential information and is intended only for the named individual and may not be disseminated without prior permission. If you are not the named addressee, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this message in error and delete this e-message from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, delayed in transmission, incomplete, or may contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this Message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any software or services. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Running tomcat port 80
Andrew Rodwell wrote: Markus, Thank you for that. Our inexperiance of linux was showing. We have managed on windows 2000 and OS/400 to run tomcat but linux is a new beast. Regards. -Original Message- From: Markus Bengts [mailto:[EMAIL PROTECTED]] Sent: 18 February 2002 11:49 To: Tomcat Users List Subject: RE: Running tomcat port 80 On Mon, 18 Feb 2002, Andrew Rodwell wrote: We have tried various things. Making the previous user who ran tomcat a member of the root group. That does not work. We have set permissions on the tomcat directory to be root. We then log on as root and have set the java home and catalina home in the catalina.sh file. Navigate to the bin directory and try to run startup.sh and command is not found. Did you run it with the command: ./startup.sh ? Markus -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] Well played you beat me too it . -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
AW: ConcurrentModificationException error
AFAIK that's a result of the way tomcat 4.x implements the internal storage of the parameters. I think you can't remove a parameter inside a loop whitch getParameterNames(). One way around that, is to collect first the names and than remove the parameters. -Ursprüngliche Nachricht- Von: Eelco den Heijer [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 19. Februar 2002 17:00 An: Tomcat Users List Betreff: Re: ConcurrentModificationException error Kent Kurima wrote: When I try to remove some information from the session I get a ConcurrentModificationException error. tomcat 3.X did not have this problem, but tomcat 4.X is complaining about this. here is a section of code that is having the problem java.util.Enumeration sessionNames = session.getAttributeNames(); while(sessionNames.hasMoreElements()){ String lstrSessionName = (String)sessionNames.nextElement(); if (!lvecTempVar.contains(lstrSessionName)) { session.removeAttribute(lstrSessionName); } Hi Kent, Probably, another servlet instance is accessing that attr. of the session; you have to synchronize access to it: while(sessionNames.hasMoreElements()){ String lstrSessionName = (String)sessionNames.nextElement(); if (!lvecTempVar.contains(lstrSessionName)) { synchronized (session) { session.removeAttribute(lstrSessionName); } } -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]