Re: Need Help
Durai, I cannot answer on points #1 and #2, but as for point #3, in the files workers.properties and wrapper.properties, you set where (and therefore which) java compiler is used. Here's what I have in my workers and wrapper property files: workers.properties:workers.java_home=c:\java\jdk1.3 wrapper.properties:wrapper.java_home=c:\java\jdk1.3 - Liam At 10:51 AM 1/22/01 +0530, you wrote: Hi, I need help from you guys. 1. I am loading a jsp thro tomcat. It is working fine. I am interested to know the flag setting for java compiler( it is used while compiling the .java file produced from JSP). Can any one help me in this regard? 2. Does anyone know what jikes are? This is used to set compiler path in tomcat? 3. Does tomcat use java compiler from sun or does it use its own compiler( like a wrapper around standard java compiler)? Pls help me to get ans for these. I am using tomvcat,v3.2.1 thanks Durai
RE: Redirect question
Ok. I knew that I could do it with a cookie. Thanks anyway. But is there anyway of putting onto the request and doing an HTTP POST much like a form submit? Dave. [EMAIL PROTECTED] -Original Message- From: Andy Nuss [mailto:[EMAIL PROTECTED]] Sent: 21 January 2001 22:43 To: '[EMAIL PROTECTED]' Subject: RE: Redirect question 1)original jsp HttpSession session = req.getSession(false); MyParams params = new MyParams("a", "b", "c"); String retrieveid = "QUICK_RETRIEVE" + "/myredirect.jsp" + new Object().hashCode(); session.setAttribute(retrieveid, params); Cookie ck = new Cookie("QUICK_RETRIEVE", retrieveid); ck.setPath("/myredirect.jsp"); resp.addCookie(ck); resp.sendRedirect("/myredirect.jsp"); 2) redirected jsp HttpSession session = req.getSession(false); Cookie[] cks = req.getCookies(); Cookie ck = findCookieByNamePath(cks, "QUICK_RETRIEVE", "/myredirect.jsp"); MyParams params = (MyParams)session.getAttribute(ck.getValue()); -Original Message- From: David Oxley [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 21, 2001 6:02 AM To: [EMAIL PROTECTED] Subject: Redirect question When sending a HttpServletResponse resp.sendRedirect how can I specify parameters without having them appear on the URL in the browser address bar? Thanks. Dave. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Stand Alone SSL Tomcat Example Wanted - Please!
Hello - I have followed the instructions in the docs - tomcat-ssl-howto (SSL Direct) (Generate a SSL certificate (RSA) for tomcat) - From what I can understandfrom the docs I am configuring tomcat to use "secure socket layering" (https) via tomcat as a standalone server (no web server involved) I have done everything the docs say to do without a hitch. Also I tested JSSE to see if it was setup correctly via a servlet with this code fragment SSLServerSocketFactory factory = (SSLServerSocketFactory) SSLServerSocketFactory.getDefault(); SSLServerSocket sslSocket = (SSLServerSocket)factory.createServerSocket(5757); String [] cipherSuites = sslSocket.getEnabledCipherSuites(); for (int i = 0; i cipherSuites.length; i++) { System.out.println("Cipher Suite " + i + " = " + cipherSuites[i]); } Yes this test worked and setup is correct. Ok when I start tomcat I have a HttpConnectionHandler on 8443 (everything is on my local machine) When I try to access https://localhost:8443via internet explorer I get a dialog box that says Client Athenthentication The web site you want to use requests Athenthentication Select the certificate to use when connecting I configured the certificate as described in the docs What I would like to know is if anyone has a sample program (servlet or jsp) to connect to tomcat on a local machine using https. I downloaded the JSSE samples, but they don't make much since (all are applications) a tutorial somewhere that uses tomcat would be very helpful. The API for JSSE seems rather large and I am confused as to where to start. Hey you've got to crawl before you can walk. If anyone can help me out I would really appreciate it. You can email me directly at [EMAIL PROTECTED] Thanks -- Pete --
Troubles with Single Thread Model ?
Hi, all ! I'm working with Tomcat3.1 and have some troubles. I create http-servlet, to serve multiply clients requests and Tomcat don't create multiply copy of servlets to serve clients requests. Some code : [cut] protected void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { System.out.println(this.toString() + ". Doing service..."); try { boolean shutdown = false; while(!shutdown) { print somthing to client Thread.sleep(5000); } } catch(Exception e) { } System.out.println(this.toString() + ". Done."); } [/cut] Then i connect first client to this servlet - it's OK, but if i connect another client - no results... :( Are i do something wrong or is bug of Tomcat ? -- WBR Mishel Dudarev(BIFIT), [EMAIL PROTECTED] ICQ:83048679 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Problems with set JAVA_HOME in tomcat.bat
When I will execute startup.bat the message "You must set JAVA_HOME to point the Java-Development-Kit". I tried a lot of possibilities but nothing happens. Which file is to configurate? And which String I have to insert? Perhaps:"C:\Programme\Java-Development-Kit" Please help me... Thorsten Seddig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
AW: Problems with set JAVA_HOME in tomcat.bat
you have to set the enviroment variable java_home, which will be done with the follwoing "dos command": 1.) open a "dos-box" 2.) type: set JAVA_HOME=c:\Programme\jdk1.3 (or whereever you installed the java development kit) 3.) change to the tomcat directory and the change into the "bin" directory 4.) type: startup hope this helps -Ursprngliche Nachricht- Von: Thorsten Seddig [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 22. Januar 2001 12:47 An: [EMAIL PROTECTED] Betreff: Problems with set JAVA_HOME in tomcat.bat When I will execute startup.bat the message "You must set JAVA_HOME to point the Java-Development-Kit". I tried a lot of possibilities but nothing happens. Which file is to configurate? And which String I have to insert? Perhaps:"C:\Programme\Java-Development-Kit" Please help me... Thorsten Seddig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Problems with set JAVA_HOME in tomcat.bat
You need to check your sysetm variables are pointing to your java folder. For example I have java development kit 1.3 installed on my machine to the default location: c:\jdk1.3 Therefore the environment variable for JAVA_HOME is c:\jdk1.3 Chris Thompson -Original Message- From: Thorsten Seddig [mailto:[EMAIL PROTECTED]] Sent: 22 January 2001 11:47 To: [EMAIL PROTECTED] Subject: Problems with set JAVA_HOME in tomcat.bat When I will execute startup.bat the message "You must set JAVA_HOME to point the Java-Development-Kit". I tried a lot of possibilities but nothing happens. Which file is to configurate? And which String I have to insert? Perhaps:"C:\Programme\Java-Development-Kit" Please help me... Thorsten Seddig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
NT 4.0 + IIS + Multiple tomcat instances
Hello, Am trying to setup multiple tomcat instances under nt, when adding the registry entries for the isapi redirector what should I set regarding the second instance of tomcat, tried using "2.0" as the final key and then setup the strings under this in regedit but the service refused to start. Are there any instructions any place for this ? or can some please help... I have created c:\jakarta-tomcat1\and c:\jakarta-tomcat2\. etc and then i have virtual webs with each trying to use a different tomcat instance 1 or 2. 1 works fine but I must be getting the registry wrong on 2 because the service will no start? Any help much appreciated. Mark Parish Proprietor Pipeline Computers Programming and Web Design Email : [EMAIL PROTECTED] Phone : (03) 6244 6435 Address : 8 Ninda Street, Rosny TAS 7018 Web : http://www.pipelinecomputers.com.au - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
version problem
Hi All, Pleae tell about the enterprise and professional version.
RE: Redirect question
I don't know how the flow of your webapp is working in this situation but if you put the following in the referrer to the first jsp or possibly on your first jsp and ACTION="redirect.jsp" depending on you work flow: FORM ... ACTION="page1.jsp" INPUT TYPE="hidden" NAME="var1" VALUE="value1" INPUT TYPE="hidden" NAME="var2" VALUE="value2" INPUT TYPE="hidden" NAME="var3" VALUE="value3" ... /FORM The values will be in the request if you handle navigation by submitting the form. The only reason this would be programmatically better than the previous solution is if it can not be assumed that the user has cookies enabled or if cookies are not even an option per project specs. --- Michael Wentzel Software Developer A HREF="http://www.aswethink.com"Software As We Think/A A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Howto share objects between mutiple jsp pages
Another way is to write a bean and instantiate it with a appropriate scope(request, page, application, session), probably application, on your pages: jsp:usebean scope=? id=? class=?/jsp:usebean Don't know if you want the object shared across users. If so this solution will not work. --- Michael Wentzel Software Developer A HREF="http://www.aswethink.com"Software As We Think/A A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: How do I precompile JSP files for final Production use?
Another way to do this is write a servlet that will make a request to all jsp's in your webapp at startup. This takes care of the class name translations and such. --- Michael Wentzel Software Developer A HREF="http://www.aswethink.com"Software As We Think/A A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Stand Alone SSL Tomcat Example Wanted - Please!
I ran into this same snag. The docs state that in the server.xml file where you activate SSL you should put "ClientAuth=true". Make that "false". Basically what is happening is that the server is asking the browser to identify itself with a certificate. Most people do not have a certificate for their browser, so the ClientAuth setting needs to be false. Dion Vansevenant Internetwork Administrator MRO.com |+--- || "Pete Ehli" | || peteehli@tel| || eport.com | || | || 2001/01/22 | || 05:37| || Please | || respond to | || tomcat-user | || | |+--- | || | To: [EMAIL PROTECTED] | | cc: (bcc: Dion Vansevenant/PSDI) | | Subject: Stand Alone SSL Tomcat Example Wanted - Please! | | Hello - I have followed the instructions in the docs - tomcat-ssl-howto (SSL Direct) (Generate a SSL certificate (RSA) for tomcat) - From what I can understand from the docs I am configuring tomcat to use "secure socket layering" (https) via tomcat as a standalone server (no web server involved) I have done everything the docs say to do without a hitch. Also I tested JSSE to see if it was setup correctly via a servlet with this code fragment SSLServerSocketFactory factory = (SSLServerSocketFactory) SSLServerSocketFactory.getDefault(); SSLServerSocket sslSocket = (SSLServerSocket)factory.createServerSocket(5757); String [] cipherSuites = sslSocket.getEnabledCipherSuites(); for (int i = 0; i cipherSuites.length; i++) { System.out.println("Cipher Suite " + i + " = " + cipherSuites[i]); } Yes this test worked and setup is correct. Ok when I start tomcat I have a HttpConnectionHandler on 8443 (everything is on my local machine) When I try to access https://localhost:8443 via internet explorer I get a dialog box that says Client Athenthentication The web site you want to use requests Athenthentication Select the certificate to use when connecting I configured the certificate as described in the docs What I would like to know is if anyone has a sample program (servlet or jsp) to connect to tomcat on a local machine using https. I downloaded the JSSE samples, but they don't make much since (all are applications) a tutorial somewhere that uses tomcat would be very helpful. The API for JSSE seems rather large and I am confused as to where to start. Hey you've got to crawl before you can walk. If anyone can help me out I would really appreciate it. You can email me directly at [EMAIL PROTECTED] Thanks -- Pete -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: NT 4.0 + IIS + Multiple tomcat instances
Hi Mark, we already setted up a system running two instances of tomcat on the same machine (under nt4). The way we followed to achieve it was to download the sources of the isapi_redirect filter, change the lines referring to registration keys and recompile everything. Using the binaries coming from jakarta web site and the one we re-recompiled, we were able to set up two tomcat instances. Hope this helps, Etienne -Original Message- From: Mark Parish [mailto:[EMAIL PROTECTED]] Sent: lundi 22 janvier 2001 13:47 To: [EMAIL PROTECTED] Subject: NT 4.0 + IIS + Multiple tomcat instances Hello, Am trying to setup multiple tomcat instances under nt, when adding the registry entries for the isapi redirector what should I set regarding the second instance of tomcat, tried using "2.0" as the final key and then setup the strings under this in regedit but the service refused to start. Are there any instructions any place for this ? or can some please help... I have created c:\jakarta-tomcat1\and c:\jakarta-tomcat2\. etc and then i have virtual webs with each trying to use a different tomcat instance 1 or 2. 1 works fine but I must be getting the registry wrong on 2 because the service will no start? Any help much appreciated. Mark Parish Proprietor Pipeline Computers Programming and Web Design Email : [EMAIL PROTECTED] Phone : (03) 6244 6435 Address : 8 Ninda Street, Rosny TAS 7018 Web : http://www.pipelinecomputers.com.au - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
WinNT 4.0, Apache 1.3.14, tomcat 3.2.1, mod_jk
All, I have an applications that is currently running correctly on a Unix environment (using different versions of apache/tomcat and mod_jserv) that I need to port over to a WindowsNT environment. So, I installed Apache 1.3.14, tomcat 3.2.1, and mod_jk on WindowsNT 4.0 with SP 6a. All test and examples for servlets and jsp pages works fine. Placed my application on WindowsNT by creating new war and jar files via the ant command. I can reach my application's logon page fine, however, the main menu comes back completely blank. I've done some pretty exhaustive testing with some of the other jsp pages. It appears that every time I request data from my Oracle database, I'm returned to a blank page. When I view the log files, I cannot see anything that would be causing this problem. Has anyone run into this problem and/or have any suggestions? Note: I'm not using redirect in my jsp pages. Regards, Debbie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Recall: REMOVE
Dafang Zhang would like to recall the message, "REMOVE". - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Login page example
Hi, I am running Tomcat standalone and I have just tried to access index.jsp in /examples/jsp/security/protected/. I know this is protected and I am asked to login what I don't know is how the webserver authenticates me. I have seen some posting on setting up JDBC realms but I thought I only had to do this if I was running Tomcat through the Apache web server. Does anyone one know how I configer Tomcat with valid users and the roles that they have? Thanks. Jim. PLEASE READ: The information contained in this e-mail is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it and you should delete it and notify the sender immediately. Email is not a secure method of communication and Nomura International plc cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). Please check this e-mail for virus infection, for which Nomura International plc accepts no responsibility. If verification of this email is sought then please request a hard copy. Unless otherwise stated any views or opinions presented are solely those of the author and do not represent those of Nomura International plc. This email is intended for informational purposes only and is not a solicitation or offer to buy or sell securities or related financial instruments. Nomura International plc is regulated by the Securities and Futures Authority Limited and is a member of the London Stock Exchange. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
dtd for Tomcat 3.2.1's server.xml
Is the dtd for Tomcat 3.2.1's server.xml available somewhere? Bill - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: HELP WITH FIRST APPLICATION.............
I have tomcat 3.1.1 and my directory look like this: c:/jakarta-tomcat/webapps/project/WEB-INF c:/jakarta-tomcat/webapps/project/WEB-INF/classes c:/jakarta-tomcat/webapps/project/WEB-INF/lib and in server.xml in the conf directory: Context path="/project" docBase="webapps/project" debug="0" reloadable="true" /Context and i call them like this: http://localhost:8080/project/servlet/Someservlet and if its in a package: http://localhost:8080/project/servlet/somepackage.someservlet hope it helps. Rafael Antilln Reyes Grupo Vitro Tel. 3-29-17-00 Ext. 2966 [EMAIL PROTECTED] ICQ# 61057293 -Original Message- From: Michael Collins [mailto:[EMAIL PROTECTED]] Sent: Sbado, 20 de Enero de 2001 08:35 a.m. To: [EMAIL PROTECTED] Subject: HELP WITH FIRST APPLICATION. Hi all, Im new to tomcat and am unsure of a couple of things. I have installed some of the examples and they work away on httP:\\localhost8080 etc. I have started my own project for which I have developed all the HTML pages. I have converted the relevant pages to .jsp developed beans for one of the pages and compiled them to .class. I have gone over the documentation and just want to know how to structure the directories. Say I put everything into a folder called project right? This folder goes into the webapps folder right? Now inside in the project folder I have my web-inf folder, inside in that folder I have a classes folder and inside in that I have my beans (.java and .class) in there? I modify server.xml to look like this Context path="/project" docBase="c:/tomcat/webapps/project" debug="0" reloadable="true" trusted="false" /Context Is this all I have to do? I read the documentation and there is all other weird stuff that I dont understand. Whats the build.xml thing about and the cvs, do I have to do something with them? Could someone please just give me a step in the right direction, once I get one application working, Ill be delighted. A big thanks in advance, Michael _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: How do I precompile JSP files for final Production use?
I don't want the files to be compiled at startup. I don't want them to ever have to be compiled once installed on the users machine. I want to compile them, package the .class files and ship my application. Has anyone tried this with success? I don't want to install the JDK on the users machine, as I assume I will have to. Just the JVM. -Don -Original Message- From: Michael Wentzel [mailto:[EMAIL PROTECTED]] Sent: Monday, January 22, 2001 6:47 AM To: '[EMAIL PROTECTED]' Subject: RE: How do I precompile JSP files for final Production use? Another way to do this is write a servlet that will make a request to all jsp's in your webapp at startup. This takes care of the class name translations and such. --- Michael Wentzel Software Developer A HREF="http://www.aswethink.com"Software As We Think/A A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
tomcat
Hi All, From where i download the tomcat and can i use it for NT version. please give me reply "affan"
Re: accessing configuration info in server.xml?
William Au wrote: Is there anyway for a JSP or servlet running under Tomcat to ask for configuration information set inside server.xml? Not directly (although of course you could parse it yourself). Is there something in particular you are interested in finding out? Bill Craig McClanahan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: security and realms - multiple contexts
Vijay Prabhakar wrote: I'm working with the source edition Tomcat 3.2.1. I'd like to set up an instance of Tomcat where certain incoming requests need to be authenticated using one method and others need to be authenticated using another method (based upon the URL). Is there a nice way of doing this without just writing a big Interceptor that does all of the logic? I'm under the impression that I'll need to extend the SimpleRealm class, but any guidance would be greatly appreciated. Thanks! In Tomcat 3.2, the realm you specify is global to the entire Tomcat installation. In Tomcat 4.0, you can have a realm specific to a webapp (i.e. context), a virtual host, or the entire Tomcat JVM. vijay prabhakar Craig McClanahan
Re: SSL in Apache for windows.
Thanks a lot!!! It is better than I thought. p.d.- Only one more question what about access to a localhost using a domain name? For example instead of http://localhost/... http://www.myDomain.com - Mensaje original - De: "Filip Hanik" [EMAIL PROTECTED] Fecha: Jueves, Enero 18, 2001 8:06 pm Asunto: Re: SSL in Apache for windows. you can download a compiled installation package with open ssl, Apache 1.3.9 from http://news.pakana.com/opensa_0.20bin.exe Filip ~ Namaste - I bow to the divine in you. ~ Filip Hanik Technical Architect [EMAIL PROTECTED] - Original Message - From: "DPEDROCHE" [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 7:00 AM Subject: SSL in Apache for windows. Hello, Who can I install SSL in Apache for windows? Thanks a lot! ___ Consigue tu e-mail gratuito TERRA.ES Haz click en http://www.terra.es/correo/ --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] ___ Consigue tu e-mail gratuito TERRA.ES Haz click en http://www.terra.es/correo/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Parsing text to date - Urgent
Look in the JDBC API reference. The message you are receiving means exactly what it says: there is no constructor for class java.sql.Date that takes a String for a parameter. You'll need to use one of the available constructors. Probably the easiest is to parse your String into three integers representing day, month and year. -Original Message- From: Venkata Ratnam Vadlamannati [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 20, 2001 8:19 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Parsing text to date - Urgent Dear All I am taking date from an HTML form in 01/01/2001 format and take read this in a jsp page as request.getParameter("date") I try to put this in my MSSQL Server 7 table (table column is date with 8 characters width - default) with a prepared statement, it gives the following error: *** Error: 500 Location:/tests/test2.jsp Internal Servlet Error: org.apache.jasper.JasperException: Unable to compile class for JSPD:\tomcat\work\localhost_8080%2Ftests\_0002ftest_00032_0002ejsptest2_jsp_ 3.java:194: Incompatible type for method. Can't convert java.lang.String to java.sql.Date. ps.setDate(2,request.getParameter("publishdate")); ^ D:\tomcat\work\localhost_8080%2Ftests\_0002ftest_00032_0002ejsptest2_jsp_3.j ava:195: Incompatible type for method. Can't convert java.lang.String to java.sql.Date. ps.setDate(3,request.getParameter("archivedate")); ^ 2 errors at org.apache.jasper.compiler.Compiler.compile(Compiler.java:254) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:453) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:424) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:152) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:164) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:309) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:382) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:387) at org.apache.tomcat.core.Handler.service(Handler.java:263) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:74 9) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:695) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection (Ajp12ConnectionHandler.java:166) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:403) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) *** Can anybody suggest me as how do I put this into my table Thanks in advance Venkat mail to: [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: How to integrate tomcat with apache?
Look in the docs directory in your tomcat directory. There are several HOWTO's explaining how to integrate Tomcat with Apache. -Original Message-From: Shantanu Joshi [mailto:[EMAIL PROTECTED]]Sent: Saturday, January 20, 2001 10:01 AMTo: [EMAIL PROTECTED]Subject: How to integrate tomcat with apache? I was using apache 1.3 web server,but the FAQ suggests that it doesnot have java support.Hence i downloaded the Tomcat product. But i'm not too sure how to use it i.e should it be integrated with Apache or can it be used asa standalone server supporting Java. An urgent reply will be highly appreciated Regards Shantanu
Syntax and Performance
Is there any reason that I should not do this: %! String hostname;%% hostname = request.getParameter("Host"); % Does the compilerhave to do any extra work? Should I combine them?
Re: tomcat
Hello, you can find Tomcat in: http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/bin/jakarta-tomcat-3.2.1.zip Regards Rui Oliveira Affan Alim wrote: 00a601c08496$d3814880$3301a8c0@fz2"> Hi All, From where i download the tomcat and can i use it for NT version. please give me reply "affan"
Need Help
Hi, I need help from you. 1. I am loading a jsp thro tomcat. It is working fine. I am interested to know the flag setting for java compiler( it is used while compiling the .java file produced from JSP). Can any one help me in this regard? 2. Does anyone know what "jikes" are? This is used to set compiler path in tomcat? 3. Does tomcat use java compiler from sun or does it use its own compiler( like a wrapper around standard java compiler)? Pls help me to get ans for these. I am using tomvcat,v3.2.1 thanksDurai
Re: SSL in Apache for windows.
if you are on Windows NT, under /WinNT/system32/drivers/etc there is a file named "hosts" you can add in aliases there, for example add in the line 127.0.0.1 my.domain.com and save the file, then do a ping my.domain.com and you should get a reply from your own machine Filip ~ Namaste - I bow to the divine in you. ~ Filip Hanik Technical Architect [EMAIL PROTECTED] - Original Message - From: "DPEDROCHE" [EMAIL PROTECTED] To: "Filip Hanik" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Sunday, January 21, 2001 5:27 AM Subject: Re: SSL in Apache for windows. Thanks a lot!!! It is better than I thought. p.d.- Only one more question what about access to a localhost using a domain name? For example instead of http://localhost/... http://www.myDomain.com - Mensaje original - De: "Filip Hanik" [EMAIL PROTECTED] Fecha: Jueves, Enero 18, 2001 8:06 pm Asunto: Re: SSL in Apache for windows. you can download a compiled installation package with open ssl, Apache 1.3.9 from http://news.pakana.com/opensa_0.20bin.exe Filip ~ Namaste - I bow to the divine in you. ~ Filip Hanik Technical Architect [EMAIL PROTECTED] - Original Message - From: "DPEDROCHE" [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 7:00 AM Subject: SSL in Apache for windows. Hello, Who can I install SSL in Apache for windows? Thanks a lot! ___ Consigue tu e-mail gratuito TERRA.ES Haz click en http://www.terra.es/correo/ --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] ___ Consigue tu e-mail gratuito TERRA.ES Haz click en http://www.terra.es/correo/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
JSP ERROR 500 with jdk1.3
I recently installed Tomcat and am was relieved and very excited that it was so easy to install. However, I just discovered that the JSP examples generate errors such as the following if I set JAVA_HOME=jdk1.3 but work just fine for JAVA_HOME=jdk1.2.2. Error: 500 Location: /examples/jsp/num/numguess.jsp Internal Servlet Error: javax.servlet.ServletException at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399) at javax.servlet.http.HttpServlet.service(HttpServlet.java:840) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) Root cause: java.lang.NoSuchMethodError at org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java:209) at jsp.num._0002fjsp_0002fnum_0002fnumguess_0002ejspnumguess_jsp_0._jspService( _0002fjsp_0002fnum_0002fnumguess_0002ejspnumguess_jsp_0.java:150) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:840) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:840) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Login page example
FOr the simple realm (default) you have to edit the tomcat-user.xml file in the conf directory under your tomcatinstallation. The file is pretty self explainatory. Hope that helps Stefan
RE: How do I precompile JSP files for final Production use?
I am also trying to figure the same exact thing but have not resolved all the issues. First, here are the bugs I found: o -webapp switch did not work in 3.1 (ArrayOutOfBoundException). It works in 3.2.1 (did not try 3.2) o -webxml switch works but the url-pattern contains a \ instead of / (On Windows, I suppose there is no problem on unix) o You can't have a JSP page include a file one directory level up (that is page.jsp using %@include file="../xxx.jsp"%) See my post last Friday "jspc problem when including files (relative)" (no answer yet) o When I try to use a combination of uriroot and uribase switches I get an ArrayOutOfBoundException I don't understand the usage of both uriroot and uribase switches. could someone explain? How does one go about reporting a bug (or bugs I should say :)? Other than that, here is the process I follow: 1) generate java files and web.xml: e:\tomcat321\bin\jspc -uriroot e:\tomcat321\webapps\T1 -d e:\tomcat321\webapps\T1\web-inf\classes -webxml e:\tomcat321\webapps\T1\WEB-INF\web.xml -webapp e:\tomcat321\webapps\T1 2) compile java files 3) manually edit web.xml to replace all \ wih / 4) restart tomcat and delete all files in the work directory 5) test my app and check that no java and class files show up in the work directory Hope this helps you out. Thierry -Original Message- From: Hobson, Don [mailto:[EMAIL PROTECTED]] Sent: Monday, January 22, 2001 12:12 PM To: '[EMAIL PROTECTED]' Subject: RE: How do I precompile JSP files for final Production use? I don't want the files to be compiled at startup. I don't want them to ever have to be compiled once installed on the users machine. I want to compile them, package the .class files and ship my application. Has anyone tried this with success? I don't want to install the JDK on the users machine, as I assume I will have to. Just the JVM. -Don -Original Message- From: Michael Wentzel [mailto:[EMAIL PROTECTED]] Sent: Monday, January 22, 2001 6:47 AM To: '[EMAIL PROTECTED]' Subject: RE: How do I precompile JSP files for final Production use? Another way to do this is write a servlet that will make a request to all jsp's in your webapp at startup. This takes care of the class name translations and such. --- Michael Wentzel Software Developer A HREF="http://www.aswethink.com"Software As We Think/A A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
tomcat won't shutdown properly on hp-ux
Hello list, We are using Jakarta-Tomcat 3.2.1 on Solaris, NT and HP-UX but have found that while the shutdown.bat and shutdown.sh on Solaris will shut down the server, it takes 3 shutdown.sh runs to shut the server down on hp-ux. Not 1,2 or 4, exactly 3, every time. I'ved scanned the archives for Tomcat that I could find and have not seen this problem mentioned. Has anyone else seen this and found out what the problem was? I know that a workaround is just to execute the shutdown script three times, but this seems pretty klugy to me. thanks, DLC -- | Dennis Clark (970)898-4313email [EMAIL PROTECTED] | | Be well, Do good work, stay in touch -- Garrison Keillor | - CUT HERE - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: welcome-file-list is not working
Juan Pablo Goldfinger wrote: Hi: I have wrote in the web.xml of each tomca context, and nobody work!!! How I can work the welcome-file-list of the web.xml? Thanks, juan You will do much better asking a Tomcat-specific question on the TOMCAT-USER mailing list, rather than here. To save duplicated work, I will answer here this time, and cross-post to TOMCAT-USER so it shows up in the message archives. Historically, the most common problems getting welcome files to work have been: * Not following the required syntax of the web.xml file. * Trying to run Tomcat behind Apache - Apache does not read the web.xml file, so you will need to use httpd.conf directives (DirectoryIndex) to emulate this. Without more details about what you are doing, it is impossible to be more specific. Craig McClanahan
Re: accessing configuration info in server.xml?
I don't have the need for it yet but thought that it might be useful if I can get configuration information (like the port number). Do I need the dtd in order to parse server.xml myself? I have not been able to locate a copy of the dtd for server.xml. Bill "Craig R. McClanahan" wrote: William Au wrote: Is there anyway for a JSP or servlet running under Tomcat to ask for configuration information set inside server.xml? Not directly (although of course you could parse it yourself). Is there something in particular you are interested in finding out? Bill Craig McClanahan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: How do I precompile JSP files for final Production use?
[EMAIL PROTECTED] (Ciot, Thierry) writes: o You can't have a JSP page include a file one directory level up (that is page.jsp using %@include file="../xxx.jsp"%) See my post last Friday "jspc problem when including files (relative)" (no answer yet) I didn't see your original message, but I have reported this particular bug already. It only affects platforms where the file seperator char is not '/' (i.e. Windows). http://znutar.cortexity.com/BugRatViewer/ShowReport/714 The underlying problem may also be the cause of: o -webxml switch works but the url-pattern contains a \ instead of / (On Windows, I suppose there is no problem on unix) How does one go about reporting a bug (or bugs I should say :)? The link "Bug Database" off the Jakarta homepage. http://jakarta.apache.org/site/bugs.html -- `O O' | [EMAIL PROTECTED] // ^ \\ | http://www.pyrites.org.uk/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
How can i call my servlet ?
Hi all, i have a small question I created a servlet class in a pakage com.servlet and i stored it in the ROOT directory inside WEB-INF directory as com/servlet/myservlet.class with web.xml file and it works fine when i call it with URL http:8080//servlet/com.servlet.myservlet. but when i created another directory like "amin" and i copied all of the contents of the WEB-INF directory and when i tried to call my servlet from "amin" directory like http:8080//amin/servlet/com.servlet.myservlet tomcat generates an error message with file not found. I don't know why ? Can any one help me ? any comments will be appreciated. M. Amin
since catalina's not ready, can this be done w/ tomcat 2.2 servlets ...
The 2.3 servlet specs allow filters but since I'm running into several undocumented install issues with Catalina, I'd like to know if it's possible to insert code into html pages with the current servlet features of tomcat's 2.2 specs. Anyone know how this might be done? I'm running apache 1.3.14 tomcat 3.2.1. I havn't been able to get tomcat 4.0 built because of undoc'd env vars. Anyone have good rumors about Catalina's release? Adv(Thnxs)ance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: How can i call my servlet ?
"M. Amin" wrote: Hi all, i have a small question I created a servlet class in a pakage com.servlet and i stored it in the ROOT directory inside WEB-INF directory as com/servlet/myservlet.class with web.xml file and it works fine when i call it with URL http:8080//servlet/com.servlet.myservlet. but when i created another directory like "amin" and i copied all of the contents of the WEB-INF directory and when i tried to call my servlet from "amin" directory like http:8080//amin/servlet/com.servlet.myservlet tomcat generates an error message with file not found. I don't know why ? Can any one help me ? any comments will be appreciated. M. Amin It depends on the version of Tomcat you are using, but in the 3.2.x for example Tomcat needs to know about each "Context" before it will show it, if you have created a new directory in webapps you may have to restart tomcat to see the admin context. See also the server.xml file for explicitly stated contexts. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: How can i call my servlet ?
Place your package as such: ROOT/WEB-INF/classes/servlet/myServlet.class then access your package http://localhost:8080/servlet/servlet.myServlet similar to this: ROOT/WEB-INF/classes/servlet/packageName/classFile access: http://hostname/servlet/packageName.servletName You are almost there, place your package inside the classes directory. Regards, Craig -Original Message- From: M. Amin [mailto:[EMAIL PROTECTED]] Sent: Monday, January 22, 2001 11:40 AM To: [EMAIL PROTECTED] Subject: How can i call my servlet ? Hi all, i have a small question I created a servlet class in a pakage com.servlet and i stored it in the ROOT directory inside WEB-INF directory as com/servlet/myservlet.class with web.xml file and it works fine when i call it with URL http:8080//servlet/com.servlet.myservlet. but when i created another directory like "amin" and i copied all of the contents of the WEB-INF directory and when i tried to call my servlet from "amin" directory like http:8080//amin/servlet/com.servlet.myservlet tomcat generates an error message with file not found. I don't know why ? Can any one help me ? any comments will be appreciated. M. Amin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
.jar files
Hi, I would like to know where I must make the configuration to use class contained in an archive jar. Thanks __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: .jar files
I'm using HedHat 6.2 --- Andr Alves [EMAIL PROTECTED] escreveu: Hi, I would like to know where I must make the configuration to use class contained in an archive jar. Thanks __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
JSP based web-site - source posted
Dear All Myself and a friend recently put a JSP based website up at www.free-minder.com We have put a bit of background on the site up in the "About" section and as promised in an earlier posting to this list we have now posted the source. We are using a model/view/controller design but please take note that our main dispatcher works with Tomcat 3.1 but not 3.2. The site uses Interbase as its SQL database, Tomcat 3.1/JSP on a Cobalt RaQ4 and was developed using JBuilder for the servlets and beans driving the interface and Perl for the batch stuff. Please feel free to use the site as we intend to keep it free for use and free of adverts. Happy New Year Alan Wright and Fraser Maclennan PS reply direct to my mail address as I have unsubscribed from the list for the time being.
SOLVED: bizarre JasperException on Solaris box
All, In case anyone runs into this one again, we finally found a solution to this problem. The solution (sort of) that worked for us was to start Tomcat with the "server" jvm rather than the "client" jvm. We also tried increasing the default heap size but that only delayed the appearance of the problem for a short while. My best guess as to why it works with the server jvm is that we were running into some memory allocation problems with the client vm. Any other ideas? Much thanks goes to Jeffry Guttadauro who was seeing the same problem and ultimately found this solution! Troy -Original Message- From: Troy Landers Sent: Wednesday, January 10, 2001 10:19 AM To: '[EMAIL PROTECTED]' Subject: RE: bizarre JasperException on Solaris box But if method size was the problem then shouldn't it blow up when I try to compile it from the command line as well? javac had no problem with the generated servlet when I compiled it from the command line. BTW, the java file is roughly 90k and the resulting class file is about 26k. Thanks, Troy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2001 9:48 AM To: [EMAIL PROTECTED] Subject: RE: bizarre JasperException on Solaris box Ask around again ;o) -- the method size limit is actually due to the 16bit offset inside a class file. It's not javac. JDK 1.3 won't help either (afaik). I had this problem when using a lot of tags on my page -- they generate loads of code. You could either using scriptlets to call the functions you want instead of tags, or (what i did) refactor the page to minimise the number of actual tags present (I was able to loop a large section and factor out many of the calls). What is the size of you're class files / java files? If they're getting on for 64k this is probably your problem. I'm waiting to move to jsp 1.2 with include/flush=false, to get away from this problem (ie can have almost a method call of JSP). Ken. [EMAIL PROTECTED] on 10/01/2001 10:22:32 Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: Ken X Horn) Subject: RE: bizarre JasperException on Solaris box I've asked around, and nobody here seems to believe that there is a size limit for java methods. Further, these methods are not that extravagantly long, namely under 2000 lines... Therefore, I doubt that is the problem. However, upgrading the JDK to a release version surely wouldn't hurt. In case we're onto something with this Stronghold thing, is there any difference in how javac would be called from a page hit by Apache and forwarded to Tomcat versus a page served by Tomcat itself. Could this be a bug in the connector? -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2001 12:46 AM To: '[EMAIL PROTECTED]' Subject: AW: bizarre JasperException on Solaris box If William Brodgen's assumption, that you are hitting a size limitation in javac for a single method, is right, there are two things that might help: - use a more current JDK version (1.3.0_01 is the newest version I know: http://java.sun.com/j2se/1.3.0_01/index.html) - restructure your JSP Source in way that the service method gets smaller (put parts of your scriptlets in own methods and just call those methods from your scriptlets) -Ursprngliche Nachricht- Von: Troy Landers [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 9. Januar 2001 18:35 An: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]' Betreff: RE: bizarre JasperException on Solaris box - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
in other directory
how can i say to tomcat that the webs home directory doesn't the /opt/tomcat/webapps/ROOT and is the /usr/local/httpd/htdocs directory? thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Basic error building Tomcat on Solaris
I untarred the jakarta-tomcat-3.2.1-src.tar file into /export/local/jakarta/jakarta-tomcat-3.2.1-src Following the README, I added to /export/local/jakarta : jakarta-ant jakarta-servletapijakarta-tools (all bin versions) and : setenv TOMCAT_HOME /export/local/jakarta/jakarta-tomcat-3.2.1-src setenv JAVA_HOME "/afs/glue.umd.edu/software/java/current/sys" setenv CLASSPATH /export/local/java/jaxp1.0.1: /export/local/java/jsse1.0.2/lib: /export/local/jakarta/jakarta-ant/lib: /export/local/jakarta/jakarta-servletapi/lib setenv JAKARTA_HOME /export/local/jakarta But when I do ./build.sh I get 'command not found' (I have execute priveleges on it) So I made a 2nd build shell which should be the same as build: ./build2.sh:-- #! /bin/sh set JAVACMD = $JAVA_HOME/bin/java set JAVA_BUILD = ../jakarta-ant/lib/ant.jar:../jakarta-servletapi/lib/servlet.jar: ../jakarta-tools/moo.jar:../build/tomcat/classes:$JAVA_HOME/lib/tools.jar: $JAVA_HOME/lib/dev.jar $JAVACMD -classpath $cp:$CLASSPATH org.apache.tools.ant.Main "$@" --- but that gives me ./build2.sh: -classpath: not found What am I doing wrong?? I don't have a ../build/tomcat/ dir either... Should I? The README didn't even tell me to add jakarta-tools, I found it in http://jakarta.apache.org/from-cvs/jakarta-tools/ after seeing it in the build file. Please help! Thanks. -Tim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Great Software ... we'll go into production ;)
Hi ladies and gentlemen, I just wanted to tell you about a project which will use Tomcat as a backend. We are currently integrating a CRM solution to use servlets hostet in Tomcat as their major means of communication with the backend-systems and as a the only source for business-rule validation. The communication between client and server uses XML-documents that are POSTed to Tomcat. We chose Tomcat simply because it is available as OSS. [price didn't count at all, the whole projects costs are 10 millions of USD, software-licenses beeing about 1 million USD] Tomcat will be running on a Sun Enterprise 1 and support ~ 1500 LAN users and ~ 400 WAN users in the first line. In the second line, we will communicate with Customer-Self-Service web-applications as well ... We managed to create a running prototype (starting with zero-knowledge, except for some "personal" java experience of three developers) within 3 weeks. This prototype exceeded our performance expecations by far ... we can handle more then 70 requests/sec on a small-range sun enterprise (i think a 450). No memory leaks, no performance decrease on higher loads ... GREAT SOFTWARE! Starting with tomorrow, 6 developers will take the project and implement the needed business-rule-logic until march when we will go into production. keep up the good work, I'll keep you informed ;) bye, Ingo [sorry ... mustn't tell you the customer's name] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: WinNT 4.0, Apache 1.3.14, tomcat 3.2.1, mod_jk - EXISTING BUG REPORT FOUND
fyi - A co-worker found a bug reported back in December which is the cause of my problem. Bug Report #578 (RequestDispatcher includes automatically commit response). Regards, Debbie -Original Message- From: Debra Locke [mailto:[EMAIL PROTECTED]] Sent: Monday, January 22, 2001 11:26 AM To: [EMAIL PROTECTED] Subject: WinNT 4.0, Apache 1.3.14, tomcat 3.2.1, mod_jk All, I have an application that is currently running correctly on a Unix environment (using different versions of apache/tomcat and mod_jserv) that I need to port over to a WindowsNT environment. So, I installed Apache 1.3.14, tomcat 3.2.1, and mod_jk on WindowsNT 4.0 with SP 6a. All test and examples for servlets and jsp pages works fine. Placed my application on WindowsNT by creating new war and jar files via the ant command. I can reach my application's logon page fine, however, the main menu comes back completely blank. I've done some pretty exhaustive testing with some of the other jsp pages. It appears that every time I request data from my Oracle database, I'm returned to a blank page. When I view the log files, I cannot see anything that would be causing this problem. Has anyone run into this problem and/or have any suggestions? Note: I'm not using redirect in my jsp pages. Regards, Debbie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: in other directory
In the docs dir, read the tomcat-apache-howto.html, where you'll find a link to Tomcat User's Guide, then where it says "Starting Tomcat from Another Directory". It does a better job explaining than anything. -Original Message- From: Landaluze Produktions IS - Carlos [mailto:[EMAIL PROTECTED]] Sent: Monday, January 22, 2001 3:16 PM To: [EMAIL PROTECTED] Subject: in other directory how can i say to tomcat that the webs home directory doesn't the /opt/tomcat/webapps/ROOT and is the /usr/local/httpd/htdocs directory? thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
How to configure in tomcat an app. that was in JServ 1.0?
Hi, Im trying to configure a webapp in Tomcat 3.1 that was running on JServ 1.0, the app is under: /dir/app_name/ the servlets (classes) and html code is under: /dir/app_name/java /dir/app_name/html /dir/app_name/WEB-INF/web.xml My configuration in server.xml is: ... ContextManager Context path="/dir/app_name/java" docBase="app_name/java" debug="0" reloadable="true" /Context /ContextManager ... And my app web.xml looks like this: servlet-name servlet1 /servlet-name servlet-class servlet1 /servlet-class servlet-mapping servlet-name servlet1 /servlet-name url-pattern /app_name/java/servlet1 /url-pattern /servlet-mapping ... Im trying to do not modify the source code that I have in my java classes (I don't want to modify all the source code putting /servlet on every servlet invoqued), the source code actually make references to servlets like this: out.println(" form action='/app_name/java/servlet1'"); When I try to execute that the server response me The requested URL /app_name/java/servlet1 was not found on this server. I hope somebody give me some help for this problem... Thanks! Have a good day! Aide - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
tomcat and rmi
Hi there, Can anyone tell me how to set up tomcat3.2.1 to run servlet which look up remote object using rmi? Wendy _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
IIS 401 problem
Hi: I tried tomcat with IIS. I did exactly as described, I could read the log from isapi_redirect.dll. Yet when I tried "http://localhost/examples/jsp/index.html", the page could not be displayed and the error code from IIS is 401. I tried with in/out process, and both of them failed. The platform I tested is windows 2000 server. Could you tell me what causes the problem? The following is the log. Thanks. Minggui Chen Information Builders Inc. (917)3395176 [jk_uri_worker_map.c (155)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [jk_uri_worker_map.c (195)]: Into jk_uri_worker_map_t::uri_worker_map_open [jk_uri_worker_map.c (210)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 2 [jk_uri_worker_map.c (266)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /servlet/=jni was added [jk_uri_worker_map.c (266)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/=jni was added [jk_uri_worker_map.c (295)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 2 rules [jk_uri_worker_map.c (316)]: jk_uri_worker_map_t::uri_worker_map_open, done [jk_worker.c (82)]: Into wc_open [jk_worker.c (207)]: Into build_worker_map, creating 1 workers [jk_worker.c (213)]: build_worker_map, creating worker jni [jk_worker.c (138)]: Into wc_create_worker [jk_worker.c (152)]: wc_create_worker, about to create instance jni of jni [jk_jni_worker.c (610)]: Into jni_worker_factory [jk_jni_worker.c (678)]: Done jni_worker_factory [jk_worker.c (161)]: wc_create_worker, about to validate and init jni [jk_jni_worker.c (347)]: Into validate [jk_jni_worker.c (845)]: Into detect_jvm_version [jk_jni_worker.c (856)]: In detect_jvm_version, found: 10002, done [jk_jni_worker.c (914)]: Into open_jvm2 [jk_jni_worker.c (921)]: In open_jvm2, setting classpath to d:\tomcat\classes;d:\tomcat\lib\jaxp.jar;d:\tomcat\lib\parser.jar;d:\tomcat\lib\jasper.jar;d:\tomcat\lib\servlet.jar;d:\tomcat\lib\webserver.jar;d:\jdk122\lib\tools.jar [jk_jni_worker.c (944)]: In open_jvm2, setting tomcat.home=d:\tomcat [jk_jni_worker.c (965)]: In open_jvm2, the JVM will ignore unknown options [jk_jni_worker.c (972)]: In open_jvm2, about to create JVM... [jk_jni_worker.c (978)]: In open_jvm2, JVM created, done [jk_jni_worker.c (992)]: Into get_bridge_object [jk_jni_worker.c (1000)]: In get_bridge_object, loaded org/apache/tomcat/service/JNIEndpoint bridge class [jk_jni_worker.c (1032)]: In get_bridge_object, bridge built, done [jk_jni_worker.c (446)]: Done validate [jk_jni_worker.c (459)]: Into init [jk_jni_worker.c (502)]: In init, calling Tomcat to intialize itself... [jk_jni_worker.c (1128)]: In detach_from_jvm, detached ok [jk_jni_worker.c (514)]: In init, Tomcat initialized OK, done [jk_worker.c (177)]: wc_create_worker, done [jk_worker.c (223)]: build_worker_map, removing old jni worker [jk_worker.c (235)]: build_worker_map, done [jk_worker.c (102)]: wc_open, done [jk_uri_worker_map.c (175)]: Into jk_uri_worker_map_t::uri_worker_map_free [jk_uri_worker_map.c (326)]: Into jk_uri_worker_map_t::uri_worker_map_close [jk_uri_worker_map.c (334)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (184)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters [jk_worker.c (109)]: Into wc_close [jk_worker.c (111)]: wc_close, done [jk_uri_worker_map.c (155)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [jk_uri_worker_map.c (195)]: Into jk_uri_worker_map_t::uri_worker_map_open [jk_uri_worker_map.c (210)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 2 [jk_uri_worker_map.c (266)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /servlet/=jni was added [jk_uri_worker_map.c (266)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/=jni was added [jk_uri_worker_map.c (295)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 2 rules [jk_uri_worker_map.c (316)]: jk_uri_worker_map_t::uri_worker_map_open, done [jk_worker.c (82)]: Into wc_open [jk_worker.c (207)]: Into build_worker_map, creating 1 workers [jk_worker.c (213)]: build_worker_map, creating worker jni [jk_worker.c (138)]: Into wc_create_worker [jk_worker.c (152)]: wc_create_worker, about to create instance jni of jni [jk_jni_worker.c (610)]: Into jni_worker_factory [jk_jni_worker.c (678)]: Done jni_worker_factory [jk_worker.c (161)]: wc_create_worker, about to validate and init jni [jk_jni_worker.c (347)]: Into validate [jk_jni_worker.c (845)]: Into detect_jvm_version [jk_jni_worker.c (856)]: In detect_jvm_version, found: 10002, done [jk_jni_worker.c (914)]: Into open_jvm2 [jk_jni_worker.c (921)]: In open_jvm2, setting classpath to d:\tomcat\classes;d:\tomcat\lib\jaxp.jar;d:\tomcat\lib\parser.jar;d:\tomcat\lib\jasper.jar;d:\tomcat\lib\servlet.jar;d:\tomcat\lib\webserver.jar;d:\jdk122\lib\tools.jar [jk_jni_worker.c (944)]: In open_jvm2, setting tomcat.home=d:\tomcat [jk_jni_worker.c (965)]: In open_jvm2, the JVM will ignore unknown options [jk_jni_worker.c (972)]: In
Re: tomcat and rmi
that is a pure Java issue, remember that in a servlet you are just writing Java code like anywhere else. Just copy your current Java code into the servlet and bada bing, bada bom, you're done Filip ~ Namaste - I bow to the divine in you. ~ Filip Hanik Technical Architect [EMAIL PROTECTED] - Original Message - From: "jinchang wu" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 19, 2001 11:17 AM Subject: tomcat and rmi Hi there, Can anyone tell me how to set up tomcat3.2.1 to run servlet which look up remote object using rmi? Wendy _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
accessing server credentials from Tomcat
Hello, I have a Java bean that uses SSL to perform mutual authentication to another resource. I'd like for the Java bean (and Tomcat) to be able to use the certificate that I have installed for Apache. However, it looks like the credential has root read-access file permissions. Somehow, before Apache does a setuid to "nobody", it must read in the credentials. However, since the Tomcat process runs as user "nobody", it doesn't look like Tomcat or my beans can access the web server certificate/key. The 2 workarounds I can think of involve running Tomcat as root (probably a bad idea) or using another set of credentials that are owned by user "nobody" (which is an extra pain). For that matter, what kind of security goes on between the web server and Tomcat process (can mutual SSL auth. be performed)? Any ideas or insight is greatly appreciated. Thanks, Jason -- Jason Novotny [EMAIL PROTECTED] Home: (510) 704-9917Work: (510) 486-8662 NERSC Distributed Computing http://www-didc.lbl.gov - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: tomcat and rmi
Wendy, As far as Tomcat goes, you don't need to do anything except know the order in which to bring it up for your applications bindings. Nothing extra needs to be done if I remember right, been awhile. Ahhh, and don't forget to include your stub classes in your app tree. When I did it, my servlets were acting as RMI servers to applets on client browsers, and were clients to a backend RMI server. I had to include the stubs in the same location on both sides and watch the order in which I brought them up. If I lost a connection, Tomcat does not remember who it was talking with and will have to do another lookup upon a client connect. Depending upon your application, watch out for who needs to bind to who first and which processes need to be started first and distribuite all the rmi class files on both sides just to make it simple at first. And I say that because I don't know your app, otherwise you should know what lookups are being done and who needs what files. Hope it helps, -Original Message- From: jinchang wu [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 5:17 AM To: [EMAIL PROTECTED] Subject: tomcat and rmi Hi there, Can anyone tell me how to set up tomcat3.2.1 to run servlet which look up remote object using rmi? Wendy _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Tomcat - MySql Question
Hello, Is there anyone here using Tomcat-MySql, I need help to install the driver. I would like to know which is the best driver and how to install it. Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
OAS and jserv
I have a client who is committed to the Oracle Application Server. They are also committed to Java as a core architectural component, and of course they want to be sure they have a viable environment for deploying servlets and JSPs. OAS uses apache for its http server, and Oracle includes jserv as the servlet container. http://www.oracle.com/ip/deploy/ias/java_2/index.html?ajserv.html As the apache and mod_jk howtos point out, jserv is considered "feature complete," indicating that future development is likely to be minimal. Clearly Tomcat is a better choice going forward for delivering servlet and JSP functionality within the Apache environment (or any other for that matter.) There is no mention on the Oracle site about use of Tomcat with OAS. Questions: 1. To any developers on the list, what would your response be to this client who wants to use OAS, which compels the client to use jserv? Would you recommend jserv as a long-term technology for depoying servlets? 2. Does anyone on the list have experience configuring the OAS apache installation to use mod_jk? If it were just vanilla apache, I wouldn't have reservations. However, I have no idea what "value added" stuff the Oracle folks have put into their product that might interfere. A deja.com search turned up nothing. (I'm also planning on requesting information from Oracle...if I receive anything of value I will be happy to post it to the list.) TIA. --Scott Scott Came Senior Managing Consultant Logical eBusiness Solutions, Inc. Lacey, WA (360) 491-7774 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Stand Alone SSL Tomcat Example Wanted - Please!
Yes that works! Now I just have to study the JSSE documentation to better understand the Java security model. Thanks Dion -- Pete -- Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 22, 2001 5:49 AM Subject: Re: Stand Alone SSL Tomcat Example Wanted - Please! I ran into this same snag. The docs state that in the server.xml file where you activate SSL you should put "ClientAuth=true". Make that "false". Basically what is happening is that the server is asking the browser to identify itself with a certificate. Most people do not have a certificate for their browser, so the ClientAuth setting needs to be false. Dion Vansevenant Internetwork Administrator MRO.com |+--- || "Pete Ehli" | || peteehli@tel| || eport.com | || | || 2001/01/22 | || 05:37| || Please | || respond to | || tomcat-user | || | |+--- --- -| | | | To: [EMAIL PROTECTED] | | cc: (bcc: Dion Vansevenant/PSDI) | | Subject: Stand Alone SSL Tomcat Example Wanted - Please! | --- -| Hello - I have followed the instructions in the docs - tomcat-ssl-howto (SSL Direct) (Generate a SSL certificate (RSA) for tomcat) - From what I can understand from the docs I am configuring tomcat to use "secure socket layering" (https) via tomcat as a standalone server (no web server involved) I have done everything the docs say to do without a hitch. Also I tested JSSE to see if it was setup correctly via a servlet with this code fragment SSLServerSocketFactory factory = (SSLServerSocketFactory) SSLServerSocketFactory.getDefault(); SSLServerSocket sslSocket = (SSLServerSocket)factory.createServerSocket(5757); String [] cipherSuites = sslSocket.getEnabledCipherSuites(); for (int i = 0; i cipherSuites.length; i++) { System.out.println("Cipher Suite " + i + " = " + cipherSuites[i]); } Yes this test worked and setup is correct. Ok when I start tomcat I have a HttpConnectionHandler on 8443 (everything is on my local machine) When I try to access https://localhost:8443 via internet explorer I get a dialog box that says Client Athenthentication The web site you want to use requests Athenthentication Select the certificate to use when connecting I configured the certificate as described in the docs What I would like to know is if anyone has a sample program (servlet or jsp) to connect to tomcat on a local machine using https. I downloaded the JSSE samples, but they don't make much since (all are applications) a tutorial somewhere that uses tomcat would be very helpful. The API for JSSE seems rather large and I am confused as to where to start. Hey you've got to crawl before you can walk. If anyone can help me out I would really appreciate it. You can email me directly at [EMAIL PROTECTED] Thanks -- Pete -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Tomcat - MySql Question
I've used the mm.mysql at http://mmmysql.sourceforge.net/ with good results. But to be honest, never in a very intensive environment, only for some small testing projects - so I can't comment on stability under load or anything. It is released under the GPL so you can fix bugs if you find any . . . Web master wrote: Hello, Is there anyone here using Tomcat-MySql, I need help to install the driver. I would like to know which is the best driver and how to install it. Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] -- Geoff Lane [EMAIL PROTECTED] (650) 969-5000 x104 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
How can I share Sessions between Contexts?
Hello, I'm a newbie to forums like this and to Tomcat so please bare with me. I've a quick question. How can I share Sessions between Contexts? I have a User site and an Admin site, both have their own context entry in the server.xml file. Both Sites must also share the same session information as the interface allows users to move from one site to another while only logging on once. Here's the folder structure: webapps/User webapps/Admin I realize that I could move the two sites into one context but that is an unacceptable solution because this is would require extensive changes to a application that works fine in other App Servers. Any help would be greatly appreciated. William Boyd Email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Invoking a servlet from JSP
I have a self-contained servlet that returns a single value. I am trying to include the output of this servlet in-line on an HTML/JSP page. When I try to invoke the servlet using the following JSP INCLUDE tag, the page bombs with Exception #500 (java.lang.IllegalStateException: Writer is already being used for this request): jsp:include page="/servlet/TestServlet" flush="true" jsp:param name="type" value="apples" / /jsp:include But when I use the JSP FORWARD tag, the servlet and page work perfectly, except for the fact that the page returned contains only the output of the servlet (as expected): jsp:forward page="/servlet/TestServlet" jsp:param name="type" value="apples" / /jsp:forward How can I accomplish what I need? BTW, I am using Tomcat 3.2.1. Thanks, Bob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Tomcat and IIS 5.0 Windows 2000
I was considering connecting Tomcat and IIS 5.0 in windows 2000. Here is what the docs say Supported Configuration The IIS-Tomcat redirector was developed and tested on: WinNT4.0-i386 SP4/SP5/SP6a (it should be able to work on other versions of the NT service pack.) and Win98 IIS4.0 and PWS4.0 Tomcat3.0 - Tomcat3.2 Has anyone configuered Tomcat and IIS 5.0 - my Tomcat version is 3.2.1 and I have configuered it to use SSL (https:\\localhost:8443) If you have done this configueration will secure socket layering still work? Thanks -- Pete --
Single sign-on with Tomcat 3.21
The J2EE spec makes it clear that single sign-on for web-based applications should be supported (J2EE spec, section 3.4.1.1). The specification says: "It must be possible for one login session to span more than one application, allowing a user to log in once and access multiple applications." Is single sign-on supported by Tomcat 3.21? Frederic Kam-Thong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RequestDispatcher.include vs RequestDispatcher.forward(am I doing this the correct way???)
I will try to be brief, but this will need to explanation. 1) I was going to search the archives , but the search engine is down, so please don't flame to bad. I have jsps, that refer to database objects that have been populated by a servlet and then forwarded to the jsp. Looking at the code below, if a did a forward of the jspURL, it do not know of the UNservlet.consultant session object. If I do the include, the jsp does know about the UNservlet.consultant object. The problem is that this only works with IE. Netscape, displays the html generated in text(like view source) I hope this makes sense. Can someone please Help??? Thanks --snippet HttpSession session = req.getSession(true); session.putValue("UNservlet.consultant", new Consultant() ); RequestDispatcher disp = getServletConfig().getServletContext().getRequestDispatcher(jspURL); //the forward did not include the new session object //disp.forward(req,res); disp.include(req,res); - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
How to integrade with Netscape 3.62 on UNIX.
Hi I just installed tomcat and trying integrate with my Netscape web server 3.62 on UNIX. I looked at the Jakarta site but I do not find anything. The only integration information for Netscape I found is for NT. Can some one give me a little help? Thank you. Daniel Chan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Single sign-on with Tomcat 3.21
yeh.. but single sign on also covers multiple host.. hmm.. -Original Message- From: Frederic Kam-Thong [mailto:[EMAIL PROTECTED]] Sent: Monday, January 22, 2001 3:48 PM To: [EMAIL PROTECTED] Subject: Single sign-on with Tomcat 3.21 The J2EE spec makes it clear that single sign-on for web-based applications should be supported (J2EE spec, section 3.4.1.1). The specification says: "It must be possible for one login session to span more than one application, allowing a user to log in once and access multiple applications." Is single sign-on supported by Tomcat 3.21? Frederic Kam-Thong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: HELP WITH FIRST APPLICATION............Anyone?.
YOu are not using the correct naming pattern for your bean. The getter and setter methods should be named getThePrice() / setThePrice() because your variable is named thePrice. Ofcourse you could rename your variable into price or construct a beandescriptro that explains that your getter and setter methods are named differently. Stefan
Anybody using OpenSTA ?
Does anybody have any experience with OpenSTA (www.opensta.org) ? This is an open source test/load tool. I played with it an hour or two and it looks very impressive. Tal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: How can I share Sessions between Contexts?
William Boyd typed the following on 03:48 PM 1/22/2001 -0800 I have a User site and an Admin site, both have their own context entry in the server.xml file. Both Sites must also share the same session information as the interface allows users to move from one site to another while only logging on once. The obvious: keep the data in a shared location (a database or EJB server) and use a cookie set to a common subdomain to key on the data. Kief - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Anybody using OpenSTA ?
Very good. I tested our web application with it and for a pre version 1.0 product it is very functional. Cheers Jason Tal Dayan wrote: Does anybody have any experience with OpenSTA (www.opensta.org) ? This is an open source test/load tool. I played with it an hour or two and it looks very impressive. Tal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] -- Jason Pell Senior Analyst/Programmer - Web Developer Callista Software Services Pty Ltd 12 Gheringhap St, Geelong Victoria 3220 Australia Phone: 03 5227 8858 International: +61 3 5227 8858 Fax: 03 5227 8907 International: +61 3 5227 8907 E-mail [EMAIL PROTECTED] http://www.dssonline.com.au Customer Support Hotline: 1800 620 497 "Callista - the brightest solution in university management" --- Important Notice: The contents of this email transmission, including attachments, may be privileged and confidential. Any unauthorised use of the contents is expressly prohibited. If you have received this transmission in error, please advise the sender by return email or telephone immediately and destroy all versions. --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: How can I share Sessions between Contexts?
Ok - maybe I am wrong and I have been numerous times but the admin directory is for administration of the server. In the future a gui interface will be installed in tomcat for server administration via webapps\admin - Since your context is named Admin maybe you added your own context. ( This is just a guess) I think what you want to do is set in you contexts crossContext=true (allows you to access other contexts via ServletContext.getContext()) -- Pete -- I think if you want to - Original Message - From: "William Boyd" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 22, 2001 3:48 PM Subject: How can I share Sessions between Contexts? Hello, I'm a newbie to forums like this and to Tomcat so please bare with me. I've a quick question. How can I share Sessions between Contexts? I have a User site and an Admin site, both have their own context entry in the server.xml file. Both Sites must also share the same session information as the interface allows users to move from one site to another while only logging on once. Here's the folder structure: webapps/User webapps/Admin I realize that I could move the two sites into one context but that is an unacceptable solution because this is would require extensive changes to a application that works fine in other App Servers. Any help would be greatly appreciated. William Boyd Email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: How can I share Sessions between Contexts?
Thanks for your input but I already do have crossContext=true on all my context. Yes, I've added my own admin context and have a adminx context for tomcat admin. Thanks, William -Original Message- From: Pete Ehli [mailto:[EMAIL PROTECTED]] Sent: Monday, January 22, 2001 4:56 PM To: [EMAIL PROTECTED] Subject: Re: How can I share Sessions between Contexts? Ok - maybe I am wrong and I have been numerous times but the admin directory is for administration of the server. In the future a gui interface will be installed in tomcat for server administration via webapps\admin - Since your context is named Admin maybe you added your own context. ( This is just a guess) I think what you want to do is set in you contexts crossContext=true (allows you to access other contexts via ServletContext.getContext()) -- Pete -- I think if you want to - Original Message - From: "William Boyd" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 22, 2001 3:48 PM Subject: How can I share Sessions between Contexts? Hello, I'm a newbie to forums like this and to Tomcat so please bare with me. I've a quick question. How can I share Sessions between Contexts? I have a User site and an Admin site, both have their own context entry in the server.xml file. Both Sites must also share the same session information as the interface allows users to move from one site to another while only logging on once. Here's the folder structure: webapps/User webapps/Admin I realize that I could move the two sites into one context but that is an unacceptable solution because this is would require extensive changes to a application that works fine in other App Servers. Any help would be greatly appreciated. William Boyd Email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Syntax and Performance
I think it will generate a out.print("\n"); that is unecesary. Why don't you look at the generated code? Bye, Gaston - Original Message - From: Hobson, Don To: '[EMAIL PROTECTED]' Sent: Monday, January 22, 2001 2:36 PM Subject: Syntax and Performance Is there any reason that I should not do this: %! String hostname;%% hostname = request.getParameter("Host"); % Does the compilerhave to do any extra work? Should I combine them?
RE: Great Software ... we'll go into production ;)
Just curious, will that be running with Apache web server as well or just Tomcat? Thanks. Thierry. -Original Message- From: Ingo Rammer [mailto:[EMAIL PROTECTED]] Sent: Monday, January 22, 2001 4:30 PM To: '[EMAIL PROTECTED]' Subject: Great Software ... we'll go into production ;) Hi ladies and gentlemen, I just wanted to tell you about a project which will use Tomcat as a backend. We are currently integrating a CRM solution to use servlets hostet in Tomcat as their major means of communication with the backend-systems and as a the only source for business-rule validation. The communication between client and server uses XML-documents that are POSTed to Tomcat. We chose Tomcat simply because it is available as OSS. [price didn't count at all, the whole projects costs are 10 millions of USD, software-licenses beeing about 1 million USD] Tomcat will be running on a Sun Enterprise 1 and support ~ 1500 LAN users and ~ 400 WAN users in the first line. In the second line, we will communicate with Customer-Self-Service web-applications as well ... We managed to create a running prototype (starting with zero-knowledge, except for some "personal" java experience of three developers) within 3 weeks. This prototype exceeded our performance expecations by far ... we can handle more then 70 requests/sec on a small-range sun enterprise (i think a 450). No memory leaks, no performance decrease on higher loads ... GREAT SOFTWARE! Starting with tomorrow, 6 developers will take the project and implement the needed business-rule-logic until march when we will go into production. keep up the good work, I'll keep you informed ;) bye, Ingo [sorry ... mustn't tell you the customer's name] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Apache To Tomcat connection
Hi All, I am new to Tomcat. and i installed the Tomcat and i tested locally Tomcat server that is by giving http://localhost:8080/example/servlet/Helloorld.html it is running properly.. But After i have configured Apache to Tomcat by giving the command include /home/path to./conf/mod_jk.conf-auto in httpd.conf directory in Apache server, i could not access the port 8007 by giving. http://web-server:8007/. I know this is wrong way to test Apache - Tomcat .. Can anybody tell how i can test Apache - Tomcat communication by giving one example. Or how can i configure Apache server so that i can send request to Tomcat through Apache server Thanx in advance.. cheers Venkatesh.
Re: Apache To Tomcat connection
I am pretty sure that if you can successfully run http://localhost/examples/servlet/SnoopServlet, this will tell you whether apache is passing on servlet request to tomcat. Cheers Jason venkatesan wrote: Hi All, I am new to Tomcat. and i installed the Tomcat and i tested locally Tomcat server that is by giving http://localhost:8080/example/servlet/Helloorld.html it is running properly.. But After i have configured Apache to Tomcat by giving the command include /home/path to./conf/mod_jk.conf-auto in httpd.conf directory in Apache server, i could not access the port 8007 by giving. http://web-server:8007/. I know this is wrong way to test Apache - Tomcat .. Can anybody tell how i can test Apache - Tomcat communication by giving one example. Or how can i configure Apache server so that i can send request to Tomcat through Apache server Thanx in advance.. cheers Venkatesh. -- Jason Pell Senior Analyst/Programmer - Web Developer Callista Software Services Pty Ltd 12 Gheringhap St, Geelong Victoria 3220 Australia Phone: 03 5227 8858 International: +61 3 5227 8858 Fax: 03 5227 8907 International: +61 3 5227 8907 E-mail [EMAIL PROTECTED] http://www.dssonline.com.au Customer Support Hotline: 1800 620 497 "Callista - the brightest solution in university management" --- Important Notice: The contents of this email transmission, including attachments, may be privileged and confidential. Any unauthorised use of the contents is expressly prohibited. If you have received this transmission in error, please advise the sender by return email or telephone immediately and destroy all versions. ---
Re: Apache To Tomcat connection
Thank You Jason, Now it is running properly through Apache. I have still one problem. The servlet program is not working in my system. I compilied the example program which is in the directory namely webapp/examples/WEB-INF/classes> javac HelloworldExample.java ... It is giving package javax.servlet not found in import.. I am getting the same error if i run the program anywhere in my system.. I got the servlet.jar file in my /bin directory alongwith Tomcat. Is there any special configuration needed to run servlet programs Cheers Venkatesh.. Jason Pell wrote: I am pretty sure that if you can successfully run http://localhost/examples/servlet/SnoopServlet, this will tell you whether apache is passing on servlet request to tomcat. Cheers Jason venkatesan wrote: Hi All, I am new to Tomcat. and i installed the Tomcat and i tested locally Tomcat server that is by giving http://localhost:8080/example/servlet/Helloorld.html it is running properly.. But After i have configured Apache to Tomcat by giving the command include /home/path to./conf/mod_jk.conf-auto in httpd.conf directory in Apache server, i could not access the port 8007 by giving. http://web-server:8007/. I know this is wrong way to test Apache - Tomcat .. Can anybody tell how i can test Apache - Tomcat communication by giving one example. Or how can i configure Apache server so that i can send request to Tomcat through Apache server Thanx in advance.. cheers Venkatesh. -- Jason Pell Senior Analyst/Programmer - Web Developer Callista Software Services Pty Ltd 12 Gheringhap St, Geelong Victoria 3220 Australia Phone: 03 5227 8858 International: +61 3 5227 8858 Fax: 03 5227 8907 International: +61 3 5227 8907 E-mail [EMAIL PROTECTED] http://www.dssonline.com.au Customer Support Hotline: 1800 620 497 "Callista - the brightest solution in university management" --- Important Notice: The contents of this email transmission, including attachments, may be privileged and confidential. Any unauthorised use of the contents is expressly prohibited. If you have received this transmission in error, please advise the sender by return email or telephone immediately and destroy all versions. ---
RE: Apache To Tomcat connection
Im new to JSPjust want to know the reason why JSP examples are notrunning well in my Tomcat but the Servlets are working perfectly fine. What particular files do i have to place in my Classpath coz I only place jasper.jar did i miss something? Hope somebody outhere can help me Thanks! -Original Message-From: Jason Pell [mailto:[EMAIL PROTECTED]]Sent: Tuesday, January 23, 2001 3:08 PMTo: [EMAIL PROTECTED]Subject: Re: Apache To Tomcat connectionI am pretty sure that if you can successfully run http://localhost/examples/servlet/SnoopServlet, this will tell you whether apache is passing on servlet request to tomcat. Cheers Jason venkatesan wrote: Hi All, I am new to Tomcat. and i installed the Tomcat and i tested locally Tomcat server that is by giving http://localhost:8080/example/servlet/Helloorld.html it is running properly.. But After i have configured Apache to Tomcat by giving the command include /home/path to./conf/mod_jk.conf-auto in httpd.conf directory in Apache server, i could not access the port 8007 by giving. http://web-server:8007/. I know this is wrong way to test Apache - Tomcat .. Can anybody tell how i can test Apache - Tomcat communication by giving one example. Or how can i configure Apache server so that i can send request to Tomcat through Apache server Thanx in advance.. cheers Venkatesh. -- Jason Pell Senior Analyst/Programmer - Web Developer Callista Software Services Pty Ltd 12 Gheringhap St, Geelong Victoria 3220 Australia Phone: 03 5227 8858 International: +61 3 5227 8858 Fax: 03 5227 8907 International: +61 3 5227 8907 E-mail [EMAIL PROTECTED] http://www.dssonline.com.au Customer Support Hotline: 1800 620 497 "Callista - the brightest solution in university management" --- Important Notice: The contents of this email transmission, including attachments, may be privileged and confidential. Any unauthorised use of the contents is expressly prohibited. If you have received this transmission in error, please advise the sender by return email or telephone immediately and destroy all versions. ---
Problem with an external Engine
I have build a package with an Engine derived from org.apache.catalina.core.StandardEngine. My own class is indicated in an additional service I added to the server.xml conf file. When I start catalina, I get the error below. I can solve this problem by adding catalina.jar and servlet.jar to the CLASSPATH, but after this I get a ClassCastException on my own derived class, on a cast to LifeCycle. My code is very similar to WarpEngine, which is working very well on my machine and catlina is starting without any problems. Any idea? -- Exception during startup processing java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError: org /apache/catalina/core/StandardEngine at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11 1) at java.net.URLClassLoader.defineClass(URLClassLoader.java:248) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:297) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClas sLoader.java:1008) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClas sLoader.java:906) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClas sLoader.java:1008) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClas sLoader.java:906) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:611) at org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412) at org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:91 ) at org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.ja va:329) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1444) at org.apache.crimson.parser.Parser2.content(Parser2.java:1695) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1461) at org.apache.crimson.parser.Parser2.content(Parser2.java:1695) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1461) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499) at org.apache.crimson.parser.Parser2.parse(Parser2.java:304) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433) at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) at javax.xml.parsers.SAXParser.parse(SAXParser.java:300) at javax.xml.parsers.SAXParser.parse(SAXParser.java:245) at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228) at org.apache.catalina.startup.Catalina.start(Catalina.java:625) at org.apache.catalina.startup.Catalina.execute(Catalina.java:595) at org.apache.catalina.startup.Catalina.process(Catalina.java:176) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:157) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
JSP-Interface
Deepak ..i have one doubt ... how to implement a interface in JSP...in orelly u can find that implements :"interface name " have u tried it if u have not ...pleae ..consult with ..some one and let me know i need it urgent Regards Narayanan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
How to do this.
i have one doubt ...how to implement a interface in JSP...in orelly u can find that implements:"interface name " have u tried itif u have not ...pleae ..consult with ..some one and let me knowi need it urgent RegardsNarayanan.
Re: Apache To Tomcat connection
You need servlet.jar in the CLASSPATH, in order to compile the servlet. Cheers Jason venkatesan wrote: Thank You Jason, Now it is running properly through Apache. I have still one problem. The servlet program is not working in my system. I compilied the example program which is in the directory namely webapp/examples/WEB-INF/classes> javac HelloworldExample.java ... It is giving package javax.servlet not found in import.. I am getting the same error if i run the program anywhere in my system.. I got the servlet.jar file in my /bin directory alongwith Tomcat. Is there any special configuration needed to run servlet programs Cheers Venkatesh.. Jason Pell wrote: I am pretty sure that if you can successfully run http://localhost/examples/servlet/SnoopServlet, this will tell you whether apache is passing on servlet request to tomcat. Cheers Jason venkatesan wrote: Hi All, I am new to Tomcat. and i installed the Tomcat and i tested locally Tomcat server that is by giving http://localhost:8080/example/servlet/Helloorld.html it is running properly.. But After i have configured Apache to Tomcat by giving the command include /home/path to./conf/mod_jk.conf-auto in httpd.conf directory in Apache server, i could not access the port 8007 by giving. http://web-server:8007/. I know this is wrong way to test Apache - Tomcat .. Can anybody tell how i can test Apache - Tomcat communication by giving one example. Or how can i configure Apache server so that i can send request to Tomcat through Apache server Thanx in advance.. cheers Venkatesh. -- Jason Pell Senior Analyst/Programmer - Web Developer Callista Software Services Pty Ltd 12 Gheringhap St, Geelong Victoria 3220 Australia Phone: 03 5227 8858 International: +61 3 5227 8858 Fax: 03 5227 8907 International: +61 3 5227 8907 E-mail [EMAIL PROTECTED] http://www.dssonline.com.au Customer Support Hotline: 1800 620 497 "Callista - the brightest solution in university management" --- Important Notice: The contents of this email transmission, including attachments, may be privileged and confidential. Any unauthorised use of the contents is expressly prohibited. If you have received this transmission in error, please advise the sender by return email or telephone immediately and destroy all versions. --- -- Jason Pell Senior Analyst/Programmer - Web Developer Callista Software Services Pty Ltd 12 Gheringhap St, Geelong Victoria 3220 Australia Phone: 03 5227 8858 International: +61 3 5227 8858 Fax: 03 5227 8907 International: +61 3 5227 8907 E-mail [EMAIL PROTECTED] http://www.dssonline.com.au Customer Support Hotline: 1800 620 497 "Callista - the brightest solution in university management" --- Important Notice: The contents of this email transmission, including attachments, may be privileged and confidential. Any unauthorised use of the contents is expressly prohibited. If you have received this transmission in error, please advise the sender by return email or telephone immediately and destroy all versions. ---
Tomcat-- SinglethreadModel
Hello all, I have a question regarding Tomcat. Does Tomcat implements the servlets as SingleThreadModel or MultipleThreadModel? Thanks, Saikat - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Two instances of tomcat
Hi Mark, Indeed, we modified more than one line in the code, here they are : #define VERSION_STRING "Jakarta/ISAPI/1.0" replaced by : #define VERSION_STRING "Jakarta/ISAPI/1.0_bis" #define REGISTRY_LOCATION ("Software\\Apache Software Foundation\\Jakarta Isapi Redirector\\1.0") replaced by : #define REGISTRY_LOCATION ("Software\\Apache Software Foundation\\Jakarta Isapi Redirector\\1.0_bis") static char extension_uri[INTERNET_MAX_URL_LENGTH] = "/jakarta/isapi_redirect.dll"; replaced by : static char extension_uri[INTERNET_MAX_URL_LENGTH] = "/jakarta_bis/isapi_redirect_bis.dll"; You then need to recompile the sources and go to the windows registry to add entries for the recompiled version. Please notice that you will need to use 1.0_bis as version number (as used in the above example). In IIS, you will also need to create an additional virtual directory called jakarta_bis and you will need to make active as filter the file isapi_redirect_bis.dll (the jakarta_bis virtual directory must point to the physical folder that contains the isapi_redirect_bis.dll file). Compare to the iis_redirect.regauto file generated by tomcat (this file is automatically generated by tomcat 3.2.1, it allow you to automate the windows registration of the default instance of the isapi filter), your registry entries should look like this : [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\1.0_bis] "extension_uri"="/jakarta_bis/isapi_redirect_bis.dll" "log_file"="C:\\jakarta-tomcat2\\logs\\iis_redirect_bis.log" "log_level"="debug" "worker_file"="C:\\jakarta-tomcat2\\conf\\workers.properties" "worker_mount_file"="C:\\jakarta-tomcat2\\conf\\uriworkermap.properties" Don't hesitate to contact me if you need further information, Etienne -Original Message- From: Mark Parish [mailto:[EMAIL PROTECTED]] Sent: mardi 23 janvier 2001 6:41 To: [EMAIL PROTECTED] Subject: Two instances of tomcat Hi Etienne, Thanks for your excellent help, however am still having problem which I think is close to being solved. You might be able to sort it out. Have managed to compile the source for the isapi redirect and only discovered one place to change the registry key from 1.0 to 2.0, and noticed that you said there were (multiple ???) lines referring to reg keys, have I missed one ? Also when I start the second tomcat service , a file iis_redirect.regauto is created as per attached file. it looks incorrect because it is still saying 1.0 for reg key, yet the other values are correct, I am certian I am compiling the source ok but must have missed a reg entry in the source somewhere... What do your iis_redirect.regauto files look like for each instance of tomcat ? Do they specify different reg values because mine do not and I think they should. Also do you know what this file is used for ? Thanks again for your help ... Many cheers Mark Mark Parish Network Manager Elizabeth College Email : [EMAIL PROTECTED] Land Mail : 256 Elizabeth Street, Hobart Tasmania 7000 Phone : (03) 6235 6519 Fax : (03) 6231 2242 Web : http://www.eliz.tased.edu.au - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]