RE: HTTPS to HTTP proxying
Any particular reason you're using a proxy instead of Tomcats built in HTTPS support? (it came with 3.2 so you need to get that version if you're not already using it). Regards, Stefan. -Original Message- From: Geoff Lane [mailto:[EMAIL PROTECTED]] Sent: 29. janar 2001 23:31 To: [EMAIL PROTECTED] Subject: HTTPS to HTTP proxying Ok, so I have a situation where we are doing an HTTPS to HTTP proxy. Essentially a proxy recieves the HTTPS request, makes an HTTP request to the server with Tomcat running standalone and then the response is returned through the proxy back to the user. So, I access something like: https://somehost/index.html and there is a redirect in it like: out.sendRedirect( "nextpage.html" ); Tomcat in this case will return the user to http://somehost/nextpage.html (notice no https). This makes some sense because Tomcat sees the scheme as HTTP not HTTPS. The odd part though is that this same setup worked with Java Web Server. Anyone know how to handle this other than rewriting all of the redirects to absolute URLs? Thanks. -- Geoff Lane [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: Secured Documents with Tomcat ?
Hi, The trivial solution is to write a servlet which takes the html page locations as parameter and reads the files, which should be located ot of your web space, and prints the file content to the screen. Since html files are not accessible by default the only possibility is to use your servlet to reach the files. you may utilize Jason Hunter's servlet util classes, or write your own servlet which accomplishes this task. I would also be glad to learn if there are solutions where tomcat can handle this situation with a few configuration details. On Tue, 30 Jan 2001, Lukman W. Kusuma wrote: Dear All, I am sorry if my question below are one of the FAQs, but I really couldn't choose the keyword of my issue. I am using Tomcat 3.1 (yes, only Tomcat, no Apache) with Caldera OpenLinux 2.4, OpenSSL, and a database to store/modify/read secured online documentation. It works fine for all newly created documentation that I need to put there, but not for the old ones. The issue is for the existing big static HTML documents Some of the documentation is well written in .html with thousands of pages. I could put it in one of the Tomcat's web directory and write the servlet for the first index.html (this way I can verify the user's session). But once I logged in, I could see the link for other pages. Subsequently I don't need to use that servlet anymore, instead, I will use those links to access those pages directly. How should I protect those pages? Can Tomcat do it? What is the best solutions? Can I put it in a protected access (with https auth), and let my servlet checked the session (so it could be accessed only after the servlet verify it)? TIA Lukman Nuri Alpay KARAGOZ e-mail: [EMAIL PROTECTED] Project Assistant homepage: http://www.ii.metu.edu.tr/~alpay Department of Information Systems Voice: +90-312-210 37 44 Middle East Technical UniversityFax: +90-312-210 37 45 06531 Ankara, Turkey - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Load own classes when Tomcat starts?
Hi, is there any way to load own classes as permission objects and other stuff of my application when Tomcat starts up? Greetings, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: SOT : Object Pools
Take a look at JDO and Castor JDO. It is a JSR that is currently in development. http://castor.exolab.org/ Christophe "Shahed Ali" shahed@enoorTo: [EMAIL PROTECTED] .comcc: Subject: SOT : Object Pools 01/29/01 10:40 PM Please respond to tomcat-user Sorry for this off topic post, but we are planning to use Tomcat as an Application server. Tomcat does not offer facilities that products like WebLogic etc offer i.e Connection Pooling etc etc etc. So does anyone know of a good Java Object Pool that can be used in conjunction with Tomcat ? (Not only for pooling JDBC connections, but also Statements/Prepared Statements etc etc and ResultSet caching) I have looked into PoolMan, but am not happy with it. Even the JBoss Minevera stuff does not look impresive. Any recomendations ? Thanks Shahed. - 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: IIS - Tomcat 3.2.1 problem: no more servlet handling on live ip
I'm hosting the webserver myself, on an ADSL connection with fixed IP address. Anyway, the site is up and running now, including the servlets. The problem was that port 8007 was disabled on my connection, now that it is enabled everything is working fine. Regards, Wim Praet. -Original Message- From: Darrell Porter [mailto:[EMAIL PROTECTED]] Sent: maandag 29 januari 2001 17:37 To: '[EMAIL PROTECTED]' Subject: RE: IIS - Tomcat 3.2.1 problem: no more servlet handling on live ip Are you hosting this yourself or is it hosted on an ISP-owned machine? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, January 29, 2001 4:20 AM To: [EMAIL PROTECTED] Subject: IIS - Tomcat 3.2.1 problem: no more servlet handling on live ip Hello, I have a problem with the following setup: - W2K prof. - IIS5.0 - Tomcat 3.2.1 I wrote several servlets and they are working when I test mij webapp on http://localhost ... unfortunately, when I substitute the localhost name for the real world (live) ip address or hostname, only static html pages will show but the servlets do not react anymore to requests. The isapi.log file tells me the following: [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 [jk_isapi_plugin.c (554)]: HttpExtensionProc error, service() failed Could someone explain to me what could be the problem? (I think the problem is that my isp blocked the 8007 port of mij outgoing server line). Regards, Wim Praet. - 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: mod_jk and Mandrake 7.2
You must compile mod_jk.so from sources in your system. The binaries from the Jakarta Project doesn't redirect jsp files to Tomcat correctly. Mark Balster escribi: Any known issues with mod_jk and the Mandrake 7.2 distribution? I have not been successful in getting Apache and Tomcat 3.2.1 to cooperate. I have been succesful under RH 6.2. TIA, Mark begin:vcard n:García;Jorge tel;fax:34 91 562 68 13 tel;work:34 91 411 86 94 x-mozilla-html:TRUE url:www.inner.es org:INNER Research;Sistemas de Información adr:;;cl Velázquez 109;Madrid;;28006;SPAIN version:2.1 email;internet:[EMAIL PROTECTED] title:Director del Sistema de Información x-mozilla-cpt:;0 fn:Jorge García end:vcard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Cancing of pages
Hi guys, Does tomcat caches the content displayed on the site or provision is to be made for cahcing to happen. Tarun - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Bug in HttpServletRequest.getQueryString()? from POST
Hi when processing a request in a tag extension class I get a "null" returned when I call HttpServletRequest.getQueryString() after a POST when I change the form to use GET, I get the QueryString as expected. my code fragment looks like: public int doStartTag( ) throws JspTagException { try { previous = start - count; if ( previous 0 ) { previous = 0; } out.print( "a href="+nextPage+"?startAmbiguity="+previous ); // // WHY does getQueryString() return null from POST? // out.print( ""+((HttpServletRequest)pageContext.getRequest( )).getQueryString( ) ); out.print( ""+title+"/a" ); return SKIP_BODY; } catch ( IOException ex ) { throw new JspTagException( ex.toString( ) ); } } The query string contains information which I don't particularily displayed in a GET URL, so how do I work around this, apart from getting all the parameters and building the query string myself? begin:vcard n:McPherson;Sandy tel;cell:+31 6 224 70517 tel;fax:+31 527 68 74 80 tel;work:+31 527 68 70 10 x-mozilla-html:TRUE org:Allset Consultancy BV. version:2.1 email;internet:[EMAIL PROTECTED] title:Senior Consultant adr;quoted-printable:;;Robbenplaat 18=0D=0A;Urk;;8321PA;Netherlands x-mozilla-cpt:;32288 fn:Sandy McPherson end:vcard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Mapping
Hello, I've got the same problem as yesterday. My servlet's (a jar-file) directory is /webapps/intramail/WEB-INF/lib/ Everything works fine when I call http://localhost:8080/intramail/servlet/IntraMail, but I'd like to call http://localhost:8080/intramail/IntraMail. I tried mapping, but it doesn't work. Here is my web.xml file: ... web-app servlet servlet-name IntraMail /servlet-name servlet-class net.intrasys.servlet.intramail.IntraMail /servlet-class /servlet servlet-mapping servlet-name IntraMail /servlet-name url-pattern /intramail/IntraMail /url-pattern /servlet-mapping /web-app pleas help me, thanx -- Best regards, Markus Diesing mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Mapping
Just try servlet-mapping servlet-name IntraMail /servlet-name url-pattern /IntraMail /url-pattern /servlet-mapping normally http://localhost:8080/intramail/Intramail will work now because the url pattern is relative to your webapp context, which is /intramail . regards, Wim. -Original Message- From: Markus Diesing [mailto:[EMAIL PROTECTED]] Sent: dinsdag 30 januari 2001 10:21 To: [EMAIL PROTECTED] Subject: Mapping Hello, I've got the same problem as yesterday. My servlet's (a jar-file) directory is /webapps/intramail/WEB-INF/lib/ Everything works fine when I call http://localhost:8080/intramail/servlet/IntraMail, but I'd like to call http://localhost:8080/intramail/IntraMail. I tried mapping, but it doesn't work. Here is my web.xml file: ... web-app servlet servlet-name IntraMail /servlet-name servlet-class net.intrasys.servlet.intramail.IntraMail /servlet-class /servlet servlet-mapping servlet-name IntraMail /servlet-name url-pattern /intramail/IntraMail /url-pattern /servlet-mapping /web-app pleas help me, thanx -- Best regards, Markus Diesing mailto:[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: mod_jk load balancing error mechanisms during tomcat failure
Title: RE: mod_jk load balancing error mechanisms during tomcat failure Hi, Running Apache 1.3.14, Win 2k pro, and tomcat 3.2.1, with mod_jk, and with pretty much the same setup, only with 2 tomcats, it did reconnect to the failed server after about 1 minute. jk_lb_worker.c says that: #define WAIT_BEFORE_RECOVER (60*1) which is the time in seconds before mod_jk tries to reconnect a failed tomcat. Fancy that. However, it is the minimum time it will wait. If you have no incoming requests, it will not reconnect. I think. See below. You asked: Once server C comes back on line, do we have to do anything specific to inform the load balancers or will they try to connect to a failed server/work on a ragular basis From looking at jk_lb_worker in tomcat/src/native/jk, it seems to me that every time there is a request, it tries to get the most suitable worker. If there is a worker that has failed, but has failed more than WAIT_BEFORE_RECOVER seconds ago, it will mark it as recovering, and return it as a worker. If it is still failed then it is again marked as failed, and it tries to find another worker. So, the answer to your question is no, yes, and but. :) No, you do not have to do anything specific to inform the load balancer that a tomcat has recovered. Yes, they will try to connect to a failed server on a regular basis. But, there have to be incoming requests to apache for it to try to connect to a failed server. Hope this helps, Jord. -Original Message- From: Steven Toth [mailto:[EMAIL PROTECTED]] Sent: Monday, January 29, 2001 11:38 AM To: [EMAIL PROTECTED] Subject: mod_jk load balancing error mechanisms during tomcat failure Hi, A question ... but before I ask ... I'll give everyone a little background... I'm working on an application that we want to be able to scale n-way with a number of apache servers (using mod_jk and load balancing) to a number of tomcat servers running on seperate dedicated servers. In practise, server A (running apache and mod_jk) is configured to load balance between servers C,D,E and F. Server B (also running apache and mod_jk with load balancing) will balance between the same set of servers C,D,E anf F. We're also using the DNS round-robin for distribute the incoming http requests between servers A amd B. My question is... Assuming server C dies. The load balancers on servers A and B will eventually notice and redirect the requests to either D,E or F. That's fine and it seems to work. Once server C comes back on line, do we have to do anything specific to inform the load balancers or will they try to connect to a failed server/work on a ragular basis I've tested a little and the results indicate that it doesn't notice a failed servers resuming operation. Anyone know for sure what happens? Steve _ 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]
RE: Virtual Hosting
Take a look at the bottom of the default server.xml. I shall include it here for you: !-- Virtual host example - In "127.0.0.1" virtual host we'll reverse "/" and "/examples" (XXX need a better example ) (use "http://127.0.0.1/examples" ) Host name="127.0.0.1" Context path="" docBase="webapps/examples" / Context path="/examples" docBase="webapps/ROOT" / /Host -- I figure that the 'name' attribute in the host tag should be the name of the virtual host. Never tried it though. Jord. -Original Message-From: Andrea Bertone [mailto:[EMAIL PROTECTED]]Sent: Monday, January 29, 2001 6:24 PMTo: [EMAIL PROTECTED]Subject: Virtual Hosting Can anyone forward an example of setting up Tomcat for Virtual Hosts for .jsp pages. I figure it's something with server.xml. I use Apache for web server. Thank you, Andrea
Re: Mapping
servlet servlet-nameIntraMail/servlet-name servlet-classyour.package.IntraMail/servlet-class /servlet servlet-mapping servlet-nameIntraMail/servlet-name url-pattern/IntraMail/url-pattern /servlet-mapping your servlet can now be accessed as you want it to. - Original Message - From: "Markus Diesing" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 30, 2001 5:21 PM Subject: Mapping Hello, I've got the same problem as yesterday. My servlet's (a jar-file) directory is /webapps/intramail/WEB-INF/lib/ Everything works fine when I call http://localhost:8080/intramail/servlet/IntraMail, but I'd like to call http://localhost:8080/intramail/IntraMail. I tried mapping, but it doesn't work. Here is my web.xml file: ... web-app servlet servlet-name IntraMail /servlet-name servlet-class net.intrasys.servlet.intramail.IntraMail /servlet-class /servlet servlet-mapping servlet-name IntraMail /servlet-name url-pattern /intramail/IntraMail /url-pattern /servlet-mapping /web-app pleas help me, thanx -- Best regards, Markus Diesing mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] .ahg~hikzmj)rj(r
RE: Virtual Hosting
Can anyone please help me on how to setup contexts for ex: http://localhost:8080/tcp and please also kindly me know the username and password for the http://localhost:8080/admin page or is there any alternative for the above. Raj. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Bug in HttpServletRequest.getQueryString()? from POST
The query string is ONLY the parameters passed on the URL after the ?, these can appear on both a GET and a POST (though for POST it would have to be in the action URL itself, not a form parameter). If you want the list of parameters from form fields on a POST, you can get them via request.getInputStream(). Normally they are encoded in the same way as the query string (unless you change the enctype on the form). This isn't a bug. [EMAIL PROTECTED] on 30/01/2001 04:18:59 Please respond to [EMAIL PROTECTED]; Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: Ken X Horn) Subject: Bug in HttpServletRequest.getQueryString()? from POST Hi when processing a request in a tag extension class I get a "null" returned when I call HttpServletRequest.getQueryString() after a POST when I change the form to use GET, I get the QueryString as expected. my code fragment looks like: public int doStartTag( ) throws JspTagException { try { previous = start - count; if ( previous 0 ) { previous = 0; } out.print( "a href="+nextPage+"?startAmbiguity="+previous ); // // WHY does getQueryString() return null from POST? // out.print( ""+((HttpServletRequest)pageContext.getRequest( )).getQueryString( ) ); out.print( ""+title+"/a" ); return SKIP_BODY; } catch ( IOException ex ) { throw new JspTagException( ex.toString( ) ); } } The query string contains information which I don't particularily displayed in a GET URL, so how do I work around this, apart from getting all the parameters and building the query string myself? begin:vcard n:McPherson;Sandy tel;cell:+31 6 224 70517 tel;fax:+31 527 68 74 80 tel;work:+31 527 68 70 10 x-mozilla-html:TRUE org:Allset Consultancy BV. version:2.1 email;internet:[EMAIL PROTECTED] title:Senior Consultant adr;quoted-printable:;;Robbenplaat 18=0D=0A;Urk;;8321PA;Netherlands x-mozilla-cpt:;32288 fn:Sandy McPherson end:vcard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Question
Hellow, I've got a problem with Tomcat IIS HowTo. The problem is that I can't load the jakarta filter after restarting IIS. My configuration is IIS 4.0 - SP6, Tomcat 31. Yours Dusan Radeka.
RE: Tomcat3.2 MySql and JDBC-ODBC bridge
It's fixed in CVS for 3.2.2.. and 3.3, i dont remember if for 4.0 if it's done,if not it will be .. Tomcat will start with or without DB server..., It will try to access DB the first time a user it's authenticated , not at tomcat start.. Saludos , Ignacio J. Ortega -Mensaje original- De: Gilles Laborderie [mailto:[EMAIL PROTECTED]] Enviado el: martes 30 de enero de 2001 7:45 Para: [EMAIL PROTECTED] Asunto: Tomcat3.2 MySql and JDBC-ODBC bridge Hi, Basically Tomcat refuses to start when mysql is not already launched. My Config: on Win32 Tomcat 3.2 MySql 3.23.11 using MyOBDC 2.50.36 I added the following to server.xml: RequestInterceptor className="org.apache.tomcat.request.JDBCRealm" debug="99" driverName="sun.jdbc.odbc.JdbcOdbcDriver" connectionURL="jdbc:odbc:" connectionName="" connectionPassword="" / When I try to start Tomcat WHITOUT staring mySQL before, I receive the following error: FATAL:java.lang.RuntimeException: JDBCRealm.start.readXml: java.sql.SQLException: [TCX][MyODBC]Can't connect to MySQL server on '127.0.0.1' (10061) java.lang.RuntimeException: JDBCRealm.start.readXml: java.sql.SQLException: [TCX][MyODBC]Can't connect to MySQL server on '127.0.0.1' (10061) at org.apache.tomcat.request.JDBCRealm.contextInit(JDBCRealm.java:439) at org.apache.tomcat.core.ContextManager.initContext(ContextManag er.java:491) at org.apache.tomcat.core.ContextManager.init(ContextManager.java:453) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) Of course, if I start mySQL before, everything goes fine. However, I'd like to know if there is anyway to start Tomcat even when mySQL is not started. Thanks Gilles - 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: applet-servlet communication
GOOD CODE. I am going through it and will get back to you very soon.can I reply to you offlist?? RKJHA, ELECTRONICS ENGINEER At 10:41 30/01/01 +0100, you wrote: I wrote a pair applet-servlet to do a server-based circuit simulation from an applet located in some client computer. Here are the sources, FYI (yet in development). If you want, you can email me directly to discuss the implementation details. Applet source follows-- This applet has a simple GUI interface to allow the user to input a electronic circuit description (text format) in a multi-line text edit control. Then, by pressing the "Simulate" button, the text edit content is sent to the servlet via a POST method. The servlet writes down this text to a file and invokes the simulator (ng-spice), sending the results back to the applet for displaying them into the user screen. //Title: SPICE - Applets i Servlets //Version: //Copyright: Copyright (c) 2000 //Author: Orestes Mas //Company: GEC-UPC //Description: Execuci de SPICE en mode client-servidor package es.upc.gec; import java.awt.*; import java.awt.event.*; import java.applet.*; import java.net.*; import java.io.*; public class SpiceApplet extends Applet { boolean isStandalone = false; BorderLayout Layout = new BorderLayout(); Label titol = new Label(); Panel panellBotons = new Panel(); Button botoSimular = new Button(); Button botoVisualitzar = new Button(); TextArea arxiu = new TextArea(); private String arxiuCIR = ""; private String arxiuOUT = ""; private String direccio = "http://your servlet URL here.../SPICEServlet"; private URL urlservlet; //Es crea la URL private URLConnection conservlet; private ObjectOutputStream sortida; //Streams de comunicaci amb el Servlet private ObjectInputStream entrada; //Construct the applet public SpiceApplet() { } //Initialize the applet public void init() { try { jbInit(); } catch(Exception e) { e.printStackTrace(); } } //Component initialization private void jbInit() throws Exception { titol.setFont(new java.awt.Font("SansSerif", 0, 20)); titol.setText("SPICE - Simulador Remot"); this.setLayout(Layout); botoSimular.setLabel("Simular"); botoSimular.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { botoSimular_actionPerformed(e); } }); botoVisualitzar.setEnabled(false); botoVisualitzar.setLabel("Veure .OUT"); botoVisualitzar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { botoVisualitzar_actionPerformed(e); } }); arxiuCIR = "Circuit de prova\n"; arxiuCIR += "* Canvia el titol per un de mes adient\n"; arxiuCIR += "* i entra la descripcio del circuit a continuacio\n"; arxiu.setFont(new java.awt.Font("Monospaced", 0, 14)); arxiu.setText(arxiuCIR); this.add(titol, BorderLayout.NORTH); this.add(panellBotons, BorderLayout.SOUTH); panellBotons.add(botoSimular, null); panellBotons.add(botoVisualitzar, null); this.add(arxiu, BorderLayout.CENTER); } //Get Applet information public String getAppletInfo() { return "Applet Information"; } void botoSimular_actionPerformed(ActionEvent e) { // 1) Desactivar el bot de "Veure .OUT" i netejar continguts botoVisualitzar.setEnabled(false); // 2) Copiar el contingut de la TextArea a una var. interna arxiuCIR = arxiu.getText(); try { // 3) Obrir una connexi amb el Servlet //Missatge: Connectant amb el simulador remot... titol.setText("Connectant amb el simulador remot..."); urlservlet = new URL(direccio); conservlet = urlservlet.openConnection(); // Obrim connexi amb el Servlet // Fixem diversos parmetres de la connexi... conservlet.setDoInput(true); conservlet.setDoOutput(true); conservlet.setUseCaches(false); conservlet.setDefaultUseCaches(false); conservlet.setRequestProperty("Content-Type","application/octet-stream"); // 4) Enviar el contingut de la TextArea //Missatge: Enviant .CIR al simulador... titol.setText("Connectat: Enviant .CIR al simulador..."); //Se crea un Stream de sortida (para objetos). sortida = new ObjectOutputStream(conservlet.getOutputStream()); sortida.writeObject(arxiuCIR); // Se escribe el objeto. // 5) Esperar resposta i col.locar-la en un objecte intermig //Missatge: Esperant resposta... titol.setText("Arxiu enviat: Esperant resposta..."); //Se abre un Stream de entrada, (importante, tanto si se esperan datos como si no) entrada = new ObjectInputStream(conservlet.getInputStream()); //Se lee el objeto, es necesario un "moldeo" del objeto leido. arxiuOUT =
Re: Tomcat and SSL
Ok if I am following this right you want to do SSL via Apache and Tomcat using ( I am guessing mod_jk ). Correct me if I am wrong but Apache handles SSL via mod_jk and you don't need to make any changes to your server.xml file - those changes are for Tomcat to use SSL standalone. -- Pete -- - Original Message - From: "Allen Akers" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, January 28, 2001 7:03 PM Subject: Tomcat and SSL I followed the instructions to the letter and I've tried it on two different platforms, so I'm just flat out MISSING something. I rebuilt Tomcat with SSL with no problems, modified my server.xml for SSL and it started with no errors, but when I go to connect to the SSL port from a browser I get a message on Netscape of "Netscape and this server cannot communicate securely because they have no common encryption algorithm(s)." and on IE it just gives the generic "Can't display this page" garbage. Has anyone seen (and hopefully solved) this problem??? Thanks. Allen Akers Programmer Analyst Strategic Web and Voice Development [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]
mod_jserv and graceful shutdown of balanced Tomcat Procs
I'm trying to use mod_jserv+Apache for load-balancing with tomcat running on different machines. Works great so far. Now - how do I use the status-interface of jserv to graceful shutdown specific tomcat-processes so they are not included in the balance process but still get the old requests. With Jserv there was no problem - with Tomcat it doesn't work :-( Does the status module actually connects to Tomcat / Jserv to get/tell the actual status? Has anybody experiece with it / got it work? Thanks for any help. Sven Peters Tipp24.de 20457 Hamburg | Germany http://www.Tipp24.de - Der kostenlose Internet-Annahmeservice fr Lotto und Oddset - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
isapi_redirect strangeness
All, We're using Tomcat and struts for development and have installed the IIS redirector without a hitch on 3 machines. When I went to install on another machine, I couldn't get it to work. Symptom is tomcat getting called for the /jakarta/isapi_redirect.dll. Since I have a working system, I started to compare the set-up and could find no difference. Reinstalled a vanilla Tomcat 3.2.1 and dll from apache.org. Still didn't work. Got the source code to the redirector and added some debug code. Now I have more information about what's going wrong, but don't know why. On the working machine I see the filter code in the dll recognises my request /xyz and figures out that it should go to Tomcat to serve it. Next thing I see, is it opening the connection to Tomcat and all is well. On the non-working machine it gets the request for /xyz, but then sees the request for /jakarta/isapi_redirect.dll also, and correctly returns next_in_chain (or whatever it's called) value. However, the TOMCAT headers that have been added by the filter have been 'lost' by the time it gets around to handle the original /xyz. The working machine is running IIS on NT4/SP5 and the broken machine is running IIS on NT4/SP6a. I see that the redirector has been tested on SP6a so that shouldn't be a problem, but the two IIS'es seem to be behaving differently. I can understand the IIS filter getting called for all requests, but why doesn't the working machine show this behaviour? Any clues? pb - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RedHat 7 :HANDLER THREAD PROBLEM: java.io.IOException:
Hi, I'm installing "Tomcat 3.2.1" on a Linux RedHat 7 system running a 2.2.16 kernel and the "jdk1.3" Java version. Tomcat in stand-alone mode produces the following error: (I try to connect to "http://localhost:8007", the default settings) HANDLER THREAD PROBLEM: java.io.IOException: Stream brokenjava.io.IOException: Stream broken at org.apache.tomcat.service.connector.AJP12RequestAdapter.readNextRequest(Ajp12ConnectionHandler.java:486) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:147) ... Please, Is there anybody that solved this problem??? Any idea?? Thanks, Joel ___ Do You Yahoo!? -- Pour dialoguer en direct avec vos amis, Yahoo! Messenger : http://fr.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Problem with installing tomcat as NT service - spaces in path cause crash
As discussed on this list before, yes this is a know bug. The two work arounds are: 1. Don't use pathes with spaces 2. Use the 8 character name for the path (i.e. Program~1). I believe that some people have reported that this option didn't work for them. Randy -Original Message- From: Brian Radovich [mailto:[EMAIL PROTECTED]] Sent: Monday, January 29, 2001 6:42 PM To: [EMAIL PROTECTED] Subject: Problem with installing tomcat as NT service - spaces in path cause crash Howdy When I have my install program configure the wrapper.properties file, it can inset a line like wrapper.tomcat_home=C:\Program Files\Application Name\tomcat The service will not work... it only works when the path to tomcat has no spaces in it... I tried using double quotes and it didn't work. Is this a known bug or am I doing something wrong? TIA Brian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Context Problem
Hi can someone help please I've just installed tomcat onto a windows 2000 server, its running fine and went on really easily, the examples all work but I've run into a problem I don't know how to solve. I have a second web server running on d:\studentwork with each sub dir being a student username, I need my students to be able to ftp jsp files into their accounts for testing. I presume I need to setup a new context that referes to d:\studentwork but when I tried this it either still gave me the source code rather than executing the file or it stopped serving files altogether. the tomcat server was installed into c:\jakarta-tomcat ad the main inetpub is also on c:\ I presume I need to alter two files server.xml and uriworkermap.properties - but what needs to go into them - if anyone can help that would be great. I had something along the lines of Context path="d:\studentwork" docBase="studentwork/" crossContext="false" debug="0" reloadable="true" /Context in server.xml and /studentwork/*.jsp=ajp12 in the uriworkermap.properties. Thanks for any advice Matthew Matthew Birkin IT Manager School of Mathematics and Computing University of Derby Tel: 01332 591828 Fax: 01332 622745 Email : [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Error: Calling servlet Wrapper(tomcat.errorPage S:org.apache.tomcat.servlets.DefaultErrorPage)
Hi all, Thanks a lot in advance. I have a grave problem with tomcat. To run my servlet i have place all my .class file in the D:\jakarta-tomcat\webapps\examples\WEB-INF\classes Directory. To see them working from my browser i have to call http://localhost:8080/examples/servlet/CookieExample from browser this works fine. But if i want to place my class in a user directory in my own directory like d:\myclassfile. Then in server.xml file in add the following context Context path="/myclass" docBase="d:\myclassfile" debug="9" reloadable="true" /Context Then i keep all my class files in d:\myclassfile and in the browser if i type http://localhost:8080/myclass/ServletName then i get the following error in the log file. Error: Calling servlet Wrapper(tomcat.errorPage S:org.apache.tomcat.servlets.DefaultErrorPage) But on the other hand all my jsp pages work fine. BTW am using tomcat 3.1 with jdk1.2.2 Thanks a lot Best Regards Moin. _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Porting apps from v3.1.x to v3.2.1
I am trying to port my application from Tomcat v3.1.x to the latest release v.3.2.1 and I get this exception: java.lang.reflect.InvocationTargetException: java.lang.NullPointerException at netdb.Prenota.setCity(Prenota.java, Compiled Code) at java.lang.reflect.Method.invoke(Native Method) at org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper(JspRuntimeLibra ry.java, Compiled Code) at _0002faddrHandler_0002ejspaddrHandler_jsp_16._jspService(_0002faddrHandler_0 002ejspaddrHandler_jsp_16.java, Compiled Code) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va, Compiled Code) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java, Compiled Code) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java, Compiled Code) at org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled Code) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java, Compiled Code) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code) at java.lang.Thread.run(Thread.java, Compiled Code) netdb.Prenota is under WEB-INF/classes, I've tried to put the CLASSPATH manually but still does not work properly. Any idea? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: applet-servlet communication
Carlos - I'm curious, how are you sending the data from the applet to the servlet? Why do you think the applet is setup to use the "POST" method? You could always call your doPost() method in your servlet from the doGet() method. --- Carlos R Armas [EMAIL PROTECTED] wrote: I am trying to have an applet communicate with a servlet. I don't want to use form so I can't set the method to GET/POST. I do want to restrict the servelt to only use POST, not GET. The HttpServletResponse/HttpServletRequest classes are being used to exchange the messages. I have the applet "sending" the data... I believe using the POST method. The servlet on the other hand, gets the initial communication and session information but the actual data never arrives and the method that the servlet claims to have used is GET. The servlet communicates back to the applet with no problem. Now, the question is: Is there some configuration needed so that when the applet sends the information (to tomcat?) it can be passed on to the servlet using the chosen -POST- delivery method? The servlet works fine if I test it with a html file that has a form which uses POST to send the data. So half the implementation is working. Any help will be appreciated. armas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] = Wyn Easton [EMAIL PROTECTED] __ Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Tomcat and SSL
Nope...I want Tomcat to do SSL directly. I have it working just fine with Apache+mod_jk+Tomcat, but I don't need Apache because everything being served is jsp or servlet, so Apache is unneeded overhead and an extra thing to maintain. [EMAIL PROTECTED] 01/29/01 06:43PM Ok if I am following this right you want to do SSL via Apache and Tomcatusing ( I am guessing mod_jk ). Correct me if I am wrong but Apache handlesSSL via mod_jk and you don't need to make any changes to your server.xmlfile - those changes are for Tomcat to use SSL standalone.-- Pete --- Original Message -From: "Allen Akers" [EMAIL PROTECTED]To: [EMAIL PROTECTED]Sent: Sunday, January 28, 2001 7:03 PMSubject: Tomcat and SSL I followed the instructions to the letter and I've tried it on two different platforms, so I'm just flat out MISSING something. I rebuilt Tomcat with SSL with no problems, modified my server.xml for SSL and it started with no errors, but when I go to connect to the SSL port from a browser I get a message on Netscape of "Netscape and this server cannot communicate securely because they have no common encryption algorithm(s)." and on IE it just gives the generic "Can't display this page" garbage. Has anyone seen (and hopefully solved) this problem??? Thanks. Allen Akers Programmer Analyst Strategic Web and Voice Development [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: Can sendRedirect() be used to POST?
Try Forwarding the request intstead... if the origional request was a POST then the forwarded one will be as well. Matt Goss David Wall wrote: Is there a way to setup a sendRedirect() URL to result in a POST to that URL? I know I can set the contentType to "application/x-www-form-urlencoded", but I'm not sure how I'd set the Method to "POST" and how I'd stuff in a parameter that I'd like to send along. The root problem I am trying to solve is having a user login page that exists on www.host.com (running on server 1), which then validates the user is allowed into the application, and then redirects that user to the one of several other web servers that has all of that user's data, such as app1.host.com or app2.host.com, etc. In our case, because we can have lots of users, we don't want to attempt to stuff everybody's data into one huge database. We don't want to have a bank of web servers load balanced in front of a single clustered backend server fronting a single huge database. So, I'd like to be able to authenticate the user (that service will have a large number of rows, but they will be fairly small -- containing a user id, hashed password and the server that contains the user's data), then redirect them to the correct server. In doing so, I'd like that server to be able to trust that the user is actually logged on, so I'd like to pass in some credentials from www.host.com to app1.host.com with a redirect so that app1 can be sure that the user really did come there from a valid logon from www.host.com (it's possible that app1.host.com is not even in the same city as the server where www.host.com resides). I don't think that an encrypted, base64 encoded authentication piece will fit in a standard URL query string because of their length limitation. Thanks for any thoughts... David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] begin:vcard n:Goss;Matt tel;fax:919-657-1501 tel;work:919-657-1432 x-mozilla-html:FALSE adr:;; version:2.1 email;internet:[EMAIL PROTECTED] fn:Matt end:vcard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Porting apps from v3.1.x to v3.2.1
What are you doing in setCity that might cause an NullPointer? Randy -Original Message- From: Marino Vittorio [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 30, 2001 9:20 AM To: 'Tomcat-User (E-mail) Subject: Porting apps from v3.1.x to v3.2.1 I am trying to port my application from Tomcat v3.1.x to the latest release v.3.2.1 and I get this exception: java.lang.reflect.InvocationTargetException: java.lang.NullPointerException at netdb.Prenota.setCity(Prenota.java, Compiled Code) at java.lang.reflect.Method.invoke(Native Method) at org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper(JspRuntimeLibra ry.java, Compiled Code) at _0002faddrHandler_0002ejspaddrHandler_jsp_16._jspService(_0002faddrHandler_0 002ejspaddrHandler_jsp_16.java, Compiled Code) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va, Compiled Code) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java, Compiled Code) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java, Compiled Code) at org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled Code) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java, Compiled Code) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code) at java.lang.Thread.run(Thread.java, Compiled Code) netdb.Prenota is under WEB-INF/classes, I've tried to put the CLASSPATH manually but still does not work properly. Any idea? 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]
RE: Problem with installing tomcat as NT service - spaces in path cause crash
Hi, have you tried to enclose the whole path with double quotes, quotes or something in the style ?? wrapper.tomcat_home="C:\Program Files\Application Name\tomcat" Justa thought, I never tried to use it that way. Cheers -- Vctor A. Rodrguez ( http://www.bit-man.com.ar) Telefnica de Argentina - http://www.Telefonica.com.ar Tel. (54-11) 4333-7305 - Fax: (54-11) 4303-5586 int. 1680 -Mensaje original- De: Brian Radovich [mailto:[EMAIL PROTECTED]] Enviado el: Monday, January 29, 2001 20:42 Para: [EMAIL PROTECTED] Asunto: Problem with installing tomcat as NT service - spaces in path cause crash Howdy When I have my install program configure the wrapper.properties file, it can inset a line like wrapper.tomcat_home=C:\Program Files\Application Name\tomcat The service will not work... it only works when the path to tomcat has no spaces in it... I tried using double quotes and it didn't work. Is this a known bug or am I doing something wrong? TIA Brian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Trouble with session object
Hi List, I created an object that tracks the amount of sessions and can refer to any of them if needed be. It uses a weak reference to make it possible that Tomcat can still drop a session if a user leaves the server. The trouble is Tomcat doesn't drop any sessions! It can't be because I have a reference to the session because I use a weak reference to them. Does anybody know a sollution to be able to refer to a session object only if they are in use? Greetings, Ivo Limmen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: where does one find instructions on configuring IIS with tomcat as a servlet runner?
Here is one: http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-iis-howto.html -Original Message-From: Betty Chang [mailto:[EMAIL PROTECTED]]Sent: Friday, January 26, 2001 10:13 PMTo: [EMAIL PROTECTED]Subject: where does one find instructions on configuring IIS with tomcat as a servlet runner? Hi all -- I'm seeking documentation on configuring IIS with tomcat Betty
Help using JDBC Realms
Hi everybody, I want to use JDBC Realms with TOmcat for authentication. Can some body point me in the right direction? Is there any documentation on how to implement one using Tomcat? Or has anybody done it so that they can provide me with first hand knowledge about how to do it? All help would be greatly appreciated. Thanks, Sunitha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Trouble with session object
Ivo Limmen typed the following on 03:58 PM 1/30/2001 +0100 I created an object that tracks the amount of sessions and can refer to any of them if needed be. It uses a weak reference to make it possible that Tomcat can still drop a session if a user leaves the server. The trouble is Tomcat doesn't drop any sessions! It can't be because I have a reference to the session because I use a weak reference to them. Does anybody know a sollution to be able to refer to a session object only if they are in use? Tracking sessions is a bit tricky, because Tomcat (like other servlet engines) pools session objects: after the user's session is done, the session object's data is cleared and it is put on a list to be reused for later users. This helps make Tomcat much faster than it used to be, but does make tracking sessions tricky. Look into using the Listener interfaces in the Servlet 2.2 API (Tomcat 3.2) or Servlet 2.3 API (Tomcat 4 - which is currently in development). Kief - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Help using JDBC Realms
Hi, Have a look the the JDBCRealm-HowTo located in the Tomcat docs folder in the distribution. It is fairly simple to implement however there is only support for Basic authentication in Tomcat 3.x. Regards, Raimee Hi everybody, I want to use JDBC Realms with TOmcat for authentication. Can some body point me in the right direction? Is there any documentation on how to implement one using Tomcat? Or has anybody done it so that they can provide me with first hand knowledge about how to do it? All help would be greatly appreciated. Thanks, Sunitha - 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 using JDBC Realms
And FORM authentication too not only BASIC.. In addition Tomcat 3.X standalone supports SSL as well as connected to Apache Server, it's easy to do a SSL secured BASIC authentication in Tomcat 3." and up.. Tomcat 4.0 has CLIENT_CERT ( please teake ti easy i do not have the spec in the wall now ) and DIGEST authentication in additions to ones supported on Tomcat 3.X.. Saludos , Ignacio J. Ortega -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Enviado el: martes 30 de enero de 2001 16:28 Para: [EMAIL PROTECTED] Asunto: Re: Help using JDBC Realms Hi, Have a look the the JDBCRealm-HowTo located in the Tomcat docs folder in the distribution. It is fairly simple to implement however there is only support for Basic authentication in Tomcat 3.x. Regards, Raimee Hi everybody, I want to use JDBC Realms with TOmcat for authentication. Can some body point me in the right direction? Is there any documentation on how to implement one using Tomcat? Or has anybody done it so that they can provide me with first hand knowledge about how to do it? All help would be greatly appreciated. Thanks, Sunitha - 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]
strange error
Hi... Anyone have any idea what this means? I have no idea what is being configured wrong or where it is being configured. Very odd. javax.xml.parsers.FactoryConfigurationError: com.sun.xml.parser.SAXParserFactoryImpl at java.lang.Throwable.init(Compiled Code) at java.lang.Error.init(Compiled Code) at javax.xml.parsers.FactoryConfigurationError.init(Compiled Code) at javax.xml.parsers.SAXParserFactory.newInstance(Compiled Code) at org.apache.tomcat.util.xml.XmlMapper.readXml(Compiled Code) at org.apache.tomcat.startup.Tomcat.execute(Compiled Code) at org.apache.tomcat.startup.Tomcat.main(Compiled Code) - tomcat 3.2.1, etc... Is there any other information that I should be providing here? TIA rr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Tomcat and SSL
I've done this with tomcat 3.2.1 with JSSE (loaded at sun) I've added jsse jars in the classpach,; changed few properties about security providers, in the server.xml I've activated the SSL connector that is commented out... it works perfectly with that section in server.xml Connector className="org.apache.tomcat.service.PoolTcpConnector" Parameter name="handler" value="org.apache.tomcat.service.http.HttpConnectionHandler"/ Parameter name="socketFactory" value="org.apache.tomcat.net.SSLSocketFactory" / Parameter name="port" value="8543"/ Parameter name="keystore" value="d:\openssl\maui\cacerts" / Parameter name="storetype" value="jks" / Parameter name="keypass" value="changeit" / Parameter name="secure"value="true" / !-- Parameter name="clientAuth" value="true" / -- /Connector I had more problems than that because I wanted also to support apache redirection, and to allow tomcat to call itself back in SSL (needed to run the XSL taglib example using the include tag) eg: -you need to use ajp13 protocol version in apache (this mean not using the conf-auto generated file but edit it manually under another name, and include it instead in the httpd.conf of apache) and nable it in tomcat (uncomment the connector in web.xml) -to support HTTPS client URL you need to define a property so that JSSE URL factory is used instead of standard one. -you need to set a valid server certificat otherwise Java HTTPS URL will reject the connection. -you need to trust the server CA for the same reason but it does work at the end, even for the most demanding users... -Message d'origine- De: Allen Akers [mailto:[EMAIL PROTECTED]] Nope...I want Tomcat to do SSL directly. I have it working just fine with Apache+mod_jk+Tomcat, but I don't need Apache because everything being served is jsp or servlet, so Apache is unneeded overhead and an extra thing to maintain. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Apache/Tomcat integration, help !
Hi! As a newbie, I try to integrate Tomcat 3.2 with Apache 3.12 under RedHat 7.0. So I need the mod_jk.so shared library. But I don't find the mod_jk library in the build directory of Tomcat 3.1 or 3.2 (under 3.1 there is a mod_jserv.so, but i such the mod_jk !!!). nb: I don't want to dowload Apache and build mod_jk with apxs... Can someone send me the mod_jk library ? or give me an address where to dowload ? Thanks Joel ___ Do You Yahoo!? -- Pour dialoguer en direct avec vos amis, Yahoo! Messenger : http://fr.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Apache/Tomcat integration, help !
Check it out... http://www.ccl.net/cca/software/UNIX/apache/ There is a link to compiled mod_jk.so there... Jan On Tue, 30 Jan 2001, [iso-8859-1] Joel Cordonnier wrote: Hi! As a newbie, I try to integrate Tomcat 3.2 with Apache 3.12 under RedHat 7.0. So I need the mod_jk.so shared library. But I don't find the mod_jk library in the build directory of Tomcat 3.1 or 3.2 (under 3.1 there is a mod_jserv.so, but i such the mod_jk !!!). nb: I don't want to dowload Apache and build mod_jk with apxs... Can someone send me the mod_jk library ? or give me an address where to dowload ? Thanks Joel ___ Do You Yahoo!? -- Pour dialoguer en direct avec vos amis, Yahoo! Messenger : http://fr.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] Jan K. Labanowski|phone: 614-292-9279, FAX: 614-292-7168 Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 1224 Kinnear Rd, |http://www.ccl.net/chemistry.html Columbus, OH 43212-1163 |http://www.osc.edu/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Apache/Tomcat integration, help !
Joel Cordonnier wrote: Hi! As a newbie, I try to integrate Tomcat 3.2 with Apache 3.12 under RedHat 7.0. So I need the mod_jk.so shared library. But I don't find the mod_jk library in the build directory of Tomcat 3.1 or 3.2 (under 3.1 there is a mod_jserv.so, but i such the mod_jk !!!). nb: I don't want to dowload Apache and build mod_jk with apxs... Can someone send me the mod_jk library ? or give me an address where to dowload ? Thanks Joel ___ Do You Yahoo!? -- Pour dialoguer en direct avec vos amis, Yahoo! Messenger : http://fr.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] Joel, You should try H.Gomez's rpms . They work like a charm. DO a search for mod-jk at fr.rpmfind.net Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Tomcat and Apache integration
I'd like to use the Apache web server with Tomcat. I haven't managed to locate any documentation in this regard. Can someone point me to the URL? Thank you, Paul Asarak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Tomcat and Apache integration
Check it out... http://www.ccl.net/cca/software/UNIX/apache/ On Tue, 30 Jan 2001 [EMAIL PROTECTED] wrote: I'd like to use the Apache web server with Tomcat. I haven't managed to locate any documentation in this regard. Can someone point me to the URL? Thank you, Paul Asarak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] Jan K. Labanowski|phone: 614-292-9279, FAX: 614-292-7168 Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 1224 Kinnear Rd, |http://www.ccl.net/chemistry.html Columbus, OH 43212-1163 |http://www.osc.edu/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Create new context
Hi, I have NT4 and Tomcat on IIS4. All works fine. All servlet samples runs very well. I want to create a new context like http://127.0.0.1/newcontext/servlet/HelloWorldExample Is someone can give me a step by step ? Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Tomcat and Apache integration
Try http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-apache-howto. html Gilles -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 30, 2001 11:17 AM To: [EMAIL PROTECTED] Subject: Tomcat and Apache integration I'd like to use the Apache web server with Tomcat. I haven't managed to locate any documentation in this regard. Can someone point me to the URL? Thank you, Paul Asarak - 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: Context Problem
Can anyone help with this please? really need to be able to let students write their own jsp/servlets and have them work without having to make huge alterations to the server. thanks Matthew -Original Message- From: Matthew Birkin Sent: 30 January 2001 13:38 To: [EMAIL PROTECTED] Subject: Context Problem Hi can someone help please I've just installed tomcat onto a windows 2000 server, its running fine and went on really easily, the examples all work but I've run into a problem I don't know how to solve. I have a second web server running on d:\studentwork with each sub dir being a student username, I need my students to be able to ftp jsp files into their accounts for testing. I presume I need to setup a new context that referes to d:\studentwork but when I tried this it either still gave me the source code rather than executing the file or it stopped serving files altogether. the tomcat server was installed into c:\jakarta-tomcat ad the main inetpub is also on c:\ I presume I need to alter two files server.xml and uriworkermap.properties - but what needs to go into them - if anyone can help that would be great. I had something along the lines of Context path="d:\studentwork" docBase="studentwork/" crossContext="false" debug="0" reloadable="true" /Context in server.xml and /studentwork/*.jsp=ajp12 in the uriworkermap.properties. Thanks for any advice Matthew Matthew Birkin IT Manager School of Mathematics and Computing University of Derby Tel: 01332 591828 Fax: 01332 622745 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]
Delay in invoking first servlet
I've got tomcat running with apache, and everything's working fine, but when I invoke the first servlet from a browser, I get a 60-80 second delay. Everything after that is fast -- it's just that first servlet that's showing the delay. It doesn't matter which servlet I use, or whether I load-on-startup -- it still happens. Anyone know what's going on, or how to fix it? Thanks! -- Rachel Gollub [EMAIL PROTECTED] http://www.equiltblocks.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Apache/Tomcat integration, help !
I'll provide one ASAP... On ne peut rsoudre les problmes les plus graves avec le mme esprit qui les a cres. -- Albert Einstein -Original Message- From: Joel Cordonnier [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 30, 2001 4:47 PM To: [EMAIL PROTECTED] Subject: Apache/Tomcat integration, help ! Hi! As a newbie, I try to integrate Tomcat 3.2 with Apache 3.12 under RedHat 7.0. So I need the mod_jk.so shared library. But I don't find the mod_jk library in the build directory of Tomcat 3.1 or 3.2 (under 3.1 there is a mod_jserv.so, but i such the mod_jk !!!). nb: I don't want to dowload Apache and build mod_jk with apxs... Can someone send me the mod_jk library ? or give me an address where to dowload ? Thanks Joel ___ Do You Yahoo!? -- Pour dialoguer en direct avec vos amis, Yahoo! Messenger : http://fr.messenger.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: HTTPS to HTTP proxying
Because it allows us to have multiple machines serving one URL without having multiple SSL certificates. It also offloads SSL encryption to dedicated hardware. Those are the main reasons. Stefn F. Stefnsson wrote: Any particular reason you're using a proxy instead of Tomcats built in HTTPS support? (it came with 3.2 so you need to get that version if you're not already using it). Regards, Stefan. -Original Message- From: Geoff Lane [mailto:[EMAIL PROTECTED]] Sent: 29. janar 2001 23:31 To: [EMAIL PROTECTED] Subject: HTTPS to HTTP proxying Ok, so I have a situation where we are doing an HTTPS to HTTP proxy. Essentially a proxy recieves the HTTPS request, makes an HTTP request to the server with Tomcat running standalone and then the response is returned through the proxy back to the user. So, I access something like: https://somehost/index.html and there is a redirect in it like: out.sendRedirect( "nextpage.html" ); Tomcat in this case will return the user to http://somehost/nextpage.html (notice no https). This makes some sense because Tomcat sees the scheme as HTTP not HTTPS. The odd part though is that this same setup worked with Java Web Server. Anyone know how to handle this other than rewriting all of the redirects to absolute URLs? Thanks. -- Geoff Lane [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] -- --- Geoff Lane [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
administrative webapp breaks JDBCRealms
Hi, on Tomcat 3.2.1 (Linux 2.2, IBM JDK 1.3), I experience the problem that removing an application through the administrative webapp breaks database connections for JDBCRealms (which are not subsequently reestablished, unfortunately). Is this a bug or am I doing something wrong and this shouldn't happen? -- Ingo Luetkebohle / [EMAIL PROTECTED] / 95428014 / | Student of Computational Linguistics Computer Science; | Fargonauten.DE sysadmin; Gimp Registry maintainer; | FP: 3187 4DEC 47E6 1B1E 6F4F 57D4 CD90 C164 34AD CE5B - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Delay in invoking first servlet
I'm not sure, but I've heard on the list that there is an expensive random number seeding process that occurs on the first access to the server. This could be what you are seeing. To make this less obtrusive, you could create a load-on-startup servlet which makes a request to your server so that this delay is incurred automatically and not by the first human user. Regards, Paul -Original Message- From: Rachel Gollub [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 30, 2001 11:32 AM To: [EMAIL PROTECTED] Subject: Delay in invoking first servlet I've got tomcat running with apache, and everything's working fine, but when I invoke the first servlet from a browser, I get a 60-80 second delay. Everything after that is fast -- it's just that first servlet that's showing the delay. It doesn't matter which servlet I use, or whether I load-on-startup -- it still happens. Anyone know what's going on, or how to fix it? Thanks! -- Rachel Gollub [EMAIL PROTECTED] http://www.equiltblocks.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/Apache/Firewalls
I'm trying to get my head around trying to make tomcat as secure as possible. Basically I'm unable to get any other ports open in our firewall bar 80. What I'm trying to do is when a user sends a request to our site (first hes reversed proxied just to knock out any bizarre strings) then the query gets sent to apache,( with mod_jk, and tomcat hanging off it.) runs various servlets (cocoon, xerces,xalan, etc) but sends the response back via port 80? Is this possible? Or do I just have to live with the fact of having other ports (for tomcat and the ajpmountpoint) open on the router? Cheers Gearid Griffin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
applet communicating a servlet
Hi, I am looking for a "How to" document about that subject, does anyone know of a good article? thanks, David. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re:RE: Problem with installing tomcat as NT service - spaces
this is a known limitation, you can't use spaces in the wrapper path. d. Reply Separator Subject:RE: Problem with installing tomcat as NT service - spaces in Author: [EMAIL PROTECTED] Date: 30/01/2001 3:54 PM Hi, have you tried to enclose the whole path with double quotes, quotes or something in the style ?? wrapper.tomcat_home="C:\Program Files\Application Name\tomcat" Justa thought, I never tried to use it that way. Cheers -- Vctor A. Rodrguez ( http://www.bit-man.com.ar) Telefnica de Argentina - http://www.Telefonica.com.ar Tel. (54-11) 4333-7305 - Fax: (54-11) 4303-5586 int. 1680 -Mensaje original- De: Brian Radovich [mailto:[EMAIL PROTECTED]] Enviado el: Monday, January 29, 2001 20:42 Para: [EMAIL PROTECTED] Asunto: Problem with installing tomcat as NT service - spaces in path cause crash Howdy When I have my install program configure the wrapper.properties file, it can inset a line like wrapper.tomcat_home=C:\Program Files\Application Name\tomcat The service will not work... it only works when the path to tomcat has no spaces in it... I tried using double quotes and it didn't work. Is this a known bug or am I doing something wrong? TIA Brian - 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: Tomcat/Apache/Firewalls
This is right. The process is firewal - Apache - mod_jk - Tomcat, and then the reverse. The client receives the request on port 80 and never even knows that Tomcat was involved. The downside to this is that you can't shutdown Tomcat from outside the network (probably no a problem, though). Randy -Original Message- From: Gearoid Griffin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 30, 2001 11:59 AM To: [EMAIL PROTECTED] Subject: Tomcat/Apache/Firewalls I'm trying to get my head around trying to make tomcat as secure as possible. Basically I'm unable to get any other ports open in our firewall bar 80. What I'm trying to do is when a user sends a request to our site (first hes reversed proxied just to knock out any bizarre strings) then the query gets sent to apache,( with mod_jk, and tomcat hanging off it.) runs various servlets (cocoon, xerces,xalan, etc) but sends the response back via port 80? Is this possible? Or do I just have to live with the fact of having other ports (for tomcat and the ajpmountpoint) open on the router? Cheers Gearid Griffin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Context Help
Can anyone help me on how to create a context like /tcp or /exams in the server.xml file. And also please let me know the password and username to enter into the /admin pages. Rajshekhar. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: applet-servlet communication
Try adding: uc.setRequestMethod("POST"); Before you get the output stream. Also, a word of caution. I have found that if the response from the web server takes longer that the keep-alive timeout value set for your web sever, your applet will not be notified (no exception thrown). I client will hang on the read "forever". I've tried looping on the available() method of InputStream but it always returns 0 (zero) bytes and never throws an exception, even if the web server has closed the connection. Maybe some one has a suggestion that could help both of us??? --- Carlos R Armas [EMAIL PROTECTED] wrote: I am using something like the following (applet): URL url = new URL("http://localhost:8080/..."); URLConnection uc = url.openConnection(); uc.setDoOutput(true); uc.setDoInput(true); uc.setUseCaches(false); uc.setRequestProperty(...); DataOutputStream out = new DataOutputStream(uc.getOutputStream()); out.writeBytes(...); out.flush(); out.close(); then I use InputStreamReader to read whatever the servlet sent back. My assumption was that this is the mechanism to send POST data from the applet. Maybe here is my mistake. I haven't tried calling doPost from the doGet method. Wyn Easton wrote: Carlos - I'm curious, how are you sending the data from the applet to the servlet? Why do you think the applet is setup to use the "POST" method? You could always call your doPost() method in your servlet from the doGet() method. --- Carlos R Armas [EMAIL PROTECTED] wrote: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] = Wyn Easton [EMAIL PROTECTED] __ Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: RE: Problem with installing tomcat as NT service - spaces
Will the old c:\progra~1\applic~1\tomcat method work ? Damian -Original Message- From: DIEGO RODRIGO [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 30, 2001 9:14 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re:RE: Problem with installing tomcat as NT service - spaces Importance: High this is a known limitation, you can't use spaces in the wrapper path. d. Reply Separator Subject:RE: Problem with installing tomcat as NT service - spaces in Author: [EMAIL PROTECTED] Date: 30/01/2001 3:54 PM Hi, have you tried to enclose the whole path with double quotes, quotes or something in the style ?? wrapper.tomcat_home="C:\Program Files\Application Name\tomcat" Justa thought, I never tried to use it that way. Cheers -- Vctor A. Rodrguez ( http://www.bit-man.com.ar) Telefnica de Argentina - http://www.Telefonica.com.ar Tel. (54-11) 4333-7305 - Fax: (54-11) 4303-5586 int. 1680 -Mensaje original- De: Brian Radovich [mailto:[EMAIL PROTECTED]] Enviado el: Monday, January 29, 2001 20:42 Para: [EMAIL PROTECTED] Asunto: Problem with installing tomcat as NT service - spaces in path cause crash Howdy When I have my install program configure the wrapper.properties file, it can inset a line like wrapper.tomcat_home=C:\Program Files\Application Name\tomcat The service will not work... it only works when the path to tomcat has no spaces in it... I tried using double quotes and it didn't work. Is this a known bug or am I doing something wrong? TIA Brian - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: applet communicating a servlet
David Treves wrote: Hi, I am looking for a "How to" document about that subject, does anyone know of a good article? thanks, David. The http://javaranch.com/common.jsp collection of methods -- WBB - [EMAIL PROTECTED] Java Cert mock exams http://www.lanw.com/java/javacert/ Author of Java Developer's Guide to Servlets and JSP ISBN 0-7821-2809-2 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Delay in invoking first servlet
Hi Paul, in your answer toRachel you mention a "load-on-startup servlet". Do you have/know an example how to write and implement such a servlet? Greetings, Andreas Paul FitzPatrick wrote: I'm not sure, but I've heard on the list that there is an expensive random number seeding process that occurs on the first access to the server. This could be what you are seeing. To make this less obtrusive, you could create a load-on-startup servlet which makes a request to your server so that this delay is incurred automatically and not by the first human user. Regards, Paul -Original Message- From: Rachel Gollub [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 30, 2001 11:32 AM To: [EMAIL PROTECTED] Subject: Delay in invoking first servlet I've got tomcat running with apache, and everything's working fine, but when I invoke the first servlet from a browser, I get a 60-80 second delay. Everything after that is fast -- it's just that first servlet that's showing the delay. It doesn't matter which servlet I use, or whether I load-on-startup -- it still happens. Anyone know what's going on, or how to fix it? Thanks! -- Rachel Gollub [EMAIL PROTECTED] http://www.equiltblocks.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Re:RE: Problem with installing tomcat as NT service - spaces
this is a known limitation, you can't use spaces in the wrapper path. wrapper.tomcat_home="C:\Program Files\Application Name\tomcat" You can always use the following: wrapper.tomcat_home=C:\Progra~1\Applic~1\tomcat (Check the real 8.3 names in your system) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Delay in invoking first servlet
There is no difference from a standard servlet in terms of writing it, except for one addition - you have to write an init procedure. Then to make it load on startup, you need to modify your web.xml file to have the container do this process. The prototypes for the functions and the additions to web.xml are listed below. Regards, Paul Here is the prototype (and comments taken from the servlet api documentation) : public void init(ServletConfig config) throws ServletException //Called by the servlet container to indicate to a servlet //that the servlet is being placed into service. See // Servlet.init(javax.servlet.ServletConfig). -- OR -- public void init() throws ServletException // A convenience method which can be overridden so that there's // no need to call super.init(config). Instead of overriding // init(ServletConfig), simply override this method and it // will be called by GenericServlet.init(ServletConfig config). // The ServletConfig object can still be retrieved via getServletConfig(). Here are the web.xml changes. servlet servlet-namecatalog/servlet-name servlet-classcom.mycorp.CatalogServlet/servlet-class init-param param-namecatalog/param-name param-valueSpring/param-value /init-param !-- This is the additional line to make it load. The number specified is up to you. It just indicates a relative oridering of the servlets which are loaded. Lower numbers are loaded first. If not specified the container can load it in any order it desires. The number must be a positive integer -- load-on-startup100/load-onstartup /servlet -Original Message- From: Todd S Neven [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 30, 2001 1:13 PM To: Paul FitzPatrick Subject: FW: Delay in invoking first servlet -Original Message- From: Andreas Schlegel [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 30, 2001 1:08 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: Delay in invoking first servlet Hi Paul, in your answer toRachel you mention a "load-on-startup servlet". Do you have/know an example how to write and implement such a servlet? Greetings, Andreas Paul FitzPatrick wrote: I'm not sure, but I've heard on the list that there is an expensive random number seeding process that occurs on the first access to the server. This could be what you are seeing. To make this less obtrusive, you could create a load-on-startup servlet which makes a request to your server so that this delay is incurred automatically and not by the first human user. Regards, Paul -Original Message- From: Rachel Gollub [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 30, 2001 11:32 AM To: [EMAIL PROTECTED] Subject: Delay in invoking first servlet I've got tomcat running with apache, and everything's working fine, but when I invoke the first servlet from a browser, I get a 60-80 second delay. Everything after that is fast -- it's just that first servlet that's showing the delay. It doesn't matter which servlet I use, or whether I load-on-startup -- it still happens. Anyone know what's going on, or how to fix it? Thanks! -- Rachel Gollub [EMAIL PROTECTED] http://www.equiltblocks.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Delay in invoking first servlet
It's not hard. Just add the following code to your web.xml (the one inside your webapp/WEB-INF, since conf/web.xml isn't used at all): web-app servlet servlet-name InitServlet /servlet-name servlet-class InitServlet /servlet-class load-on-startup1/load-on-startup /servlet ... /webapp and then code something like: public class InitServlet extends HttpServlet { public void init(ServletConfig config) { // do your init stuff here } } This way, the servlet will be executed right after you start Tomcat, and before any requests start coming. If you have several servets you'd like started at startup (what an odd phrase :), the number inside load-on-startup wil be the order at which they're initialized. Enjoy, Alex. Andreas Schlegel wrote: Hi Paul, in your answer toRachel you mention a "load-on-startup servlet". Do you have/know an example how to write and implement such a servlet? Greetings, Andreas Paul FitzPatrick wrote: I'm not sure, but I've heard on the list that there is an expensive random number seeding process that occurs on the first access to the server. This could be what you are seeing. To make this less obtrusive, you could create a load-on-startup servlet which makes a request to your server so that this delay is incurred automatically and not by the first human user. Regards, Paul -Original Message- From: Rachel Gollub [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 30, 2001 11:32 AM To: [EMAIL PROTECTED] Subject: Delay in invoking first servlet I've got tomcat running with apache, and everything's working fine, but when I invoke the first servlet from a browser, I get a 60-80 second delay. Everything after that is fast -- it's just that first servlet that's showing the delay. It doesn't matter which servlet I use, or whether I load-on-startup -- it still happens. Anyone know what's going on, or how to fix it? Thanks! -- Rachel Gollub [EMAIL PROTECTED] http://www.equiltblocks.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] - 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: applet-servlet communication
Will give that a shot. Although it will require a minor modification. I remember that rather than using URLConnection, I should use HttpURLConnection (not sure, but I think the latter is derived from URLConnection). armas (*) Will not know the results til tomorrow... machine is at home!! Wyn Easton wrote: Try adding: uc.setRequestMethod("POST"); Before you get the output stream. Also, a word of caution. I have found that if the response from the web server takes longer that the keep-alive timeout value set for your web sever, your applet will not be notified (no exception thrown). I client will hang on the read "forever". I've tried looping on the available() method of InputStream but it always returns 0 (zero) bytes and never throws an exception, even if the web server has closed the connection. Maybe some one has a suggestion that could help both of us??? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Delay in invoking first servlet
Check out a recent thread in the Tomcat message archive...search for "Session creation speed" to find the thread... From one msg in that thread... -Dtomcat.sessionid.randomclass=java.util.Random used to change to use a non-secure Random nbr generator. OK for development, suggest switching back for deployment for greater security. Rick Horowitz At 07:08 PM 1/30/01 +0100, you wrote: Hi Paul, in your answer toRachel you mention a "load-on-startup servlet". Do you have/know an example how to write and implement such a servlet? Greetings, Andreas Paul FitzPatrick wrote: I'm not sure, but I've heard on the list that there is an expensive random number seeding process that occurs on the first access to the server. This could be what you are seeing. To make this less obtrusive, you could create a load-on-startup servlet which makes a request to your server so that this delay is incurred automatically and not by the first human user. Regards, Paul -Original Message- From: Rachel Gollub [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 30, 2001 11:32 AM To: [EMAIL PROTECTED] Subject: Delay in invoking first servlet I've got tomcat running with apache, and everything's working fine, but when I invoke the first servlet from a browser, I get a 60-80 second delay. Everything after that is fast -- it's just that first servlet that's showing the delay. It doesn't matter which servlet I use, or whether I load-on-startup -- it still happens. Anyone know what's going on, or how to fix it? Thanks! -- Rachel Gollub [EMAIL PROTECTED] http://www.equiltblocks.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] Rick Horowitz _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Delay in invoking first servlet
Rachel Gollub wrote: I've got tomcat running with apache, and everything's working fine, but when I invoke the first servlet from a browser, I get a 60-80 second delay. Everything after that is fast -- it's just that first servlet that's showing the delay. It doesn't matter which servlet I use, or whether I load-on-startup -- it still happens. Anyone know what's going on, or how to fix it? To quote myself from a message I sent a few days ago: When the getSession line is reached in the code it freezes for around 9-10 seconds before returning a session, leading the user to think theyre not going to get anything back... That's because of the secure random number generator that's used to create the session ID - it takes quite some time to initialize. You could try adding -dtomcat.sessionid.randomclass=java.util.Random to the JVM's command line (i.e. add the above string to TOMCAT_OPTS) which makes Tomcat use the standard JAVA random number generator... I guess they're using the SecureRandom generator because it'll make guessing the next session ID harder based on the current one, but I think that that's not needed for development purposes, especially with that speed hit incurred by using the SecureRandom generator... That should fix your startup delay, but don't use this on production servers, as it would allow evil-minded individuals to semi-"guess" session IDs... -- Kurt Bernhard Pruenner --- Haendelstrasse 17 --- 4020 Linz --- Austria Music: http://www.mp3.com/Leak --- Work: http://www.ssw.uni-linz.ac.at ...It might be written "Mindfuck", but it's spelt "L-A-I-N"... np: Pole - Lachen (1) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Context Help
1) Setting up a Context server.xml Context path="/tcp" docBase="C:/SomePath/to/tcpRoot" crossContext="false" debug="0" reloadable="true" /Context C:/SomePath/to/tcpFolderRoot then has the following directory structure C:/SomePath/to/tcpRoot/Web-inf - web.xml goes here if you need one C:/SomePath/to/tcpRoot/Web-inf/classes - java classes including servlets go here in their proper package directory structure C:/SomePath/to/tcpRoot/Web-inf/lib - jar files C:/SomePath/to/tcpRoot/Meta-inf - Manifest.mf goes here if you need one C:/SomePath/to/tcpRoot/anySubDirectoriesYouWantForStaticContent JSP's can be stored in the tcpRoot directory or in anySub...'s and would just be referenced as http://localhost:8080/tcp/SomeJSP.jsp or http://localhost:8080/tcp/anySub.../SomeJSP.jsp Servlets would be http://localhost:8080/tcp/servlet/package.SomeServlet 2) /admin password From what I've seen, by default there isn't a password set. I would imagine this is because they want *you* to come up with your own unique username and password instead of having some generic username/password that people might forget to change causing security problems. What you need to do is add a user and password for the "admin" role to tomcat-users.xml From: "Java Softech Pvt Ltd" [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Context Help Date: Tue, 30 Jan 2001 16:08:45 +0530 Can anyone help me on how to create a context like /tcp or /exams in the server.xml file. And also please let me know the password and username to enter into the /admin pages. Rajshekhar. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] _ Get your FREE download of MSN Explorer at http://explorer.msn.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Delay in invoking first servlet
I've seen the same. And I know the load-on-startup IS working. I added: lynx -dump http://localhost/YOUR_URI_HERE 2 /dev/null To tomcat.sh ... it's not the cure but it masks the symptom. -Original Message- From: Rachel Gollub [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 30, 2001 11:32 AM To: [EMAIL PROTECTED] Subject: Delay in invoking first servlet I've got tomcat running with apache, and everything's working fine, but when I invoke the first servlet from a browser, I get a 60-80 second delay. Everything after that is fast -- it's just that first servlet that's showing the delay. It doesn't matter which servlet I use, or whether I load-on-startup -- it still happens. Anyone know what's going on, or how to fix it? Thanks! -- Rachel Gollub [EMAIL PROTECTED] http://www.equiltblocks.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]
Compile Problems (mod_jk.so)
Whenever I build mod_jk.so with apxs i get this problem! Can someone please help! Thank-you Phil [root@Fileserver apache1.3]# apxs -o mod_jk.so -I../jk -I/usr/java/jsdk/include -I/usr/java/jsdk/include/linux -c *.c ../jk/*.c gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java/jsdk/include -I/usr/java/jsdk/include/linux -c mod_jk.c gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java/jsdk/include -I/usr/java/jsdk/include/linux -c ../jk/jk_ajp12_worker.c gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java/jsdk/include -I/usr/java/jsdk/include/linux -c ../jk/jk_ajp13.c gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java/jsdk/include -I/usr/java/jsdk/include/linux -c ../jk/jk_ajp13_worker.c gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java/jsdk/include -I/usr/java/jsdk/include/linux -c ../jk/jk_connect.c gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java/jsdk/include -I/usr/java/jsdk/include/linux -c ../jk/jk_jni_worker.c gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java/jsdk/include -I/usr/java/jsdk/include/linux -c ../jk/jk_lb_worker.c gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java/jsdk/include -I/usr/java/jsdk/include/linux -c ../jk/jk_map.c ../jk/jk_map.c:468:1: warning: no newline at end of file gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java/jsdk/include -I/usr/java/jsdk/include/linux -c ../jk/jk_msg_buff.c gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java/jsdk/include -I/usr/java/jsdk/include/linux -c ../jk/jk_nwmain.c gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java/jsdk/include -I/usr/java/jsdk/include/linux -c ../jk/jk_pool.c gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java/jsdk/include -I/usr/java/jsdk/include/linux -c ../jk/jk_sockbuf.c ../jk/jk_sockbuf.c:214:1: warning: no newline at end of file gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java/jsdk/include -I/usr/java/jsdk/include/linux -c ../jk/jk_uri_worker_map.c ../jk/jk_uri_worker_map.c:438:1: warning: no newline at end of file gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java/jsdk/include -I/usr/java/jsdk/include/linux -c ../jk/jk_util.c gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/apache/include -I../jk -I/usr/java/jsdk/include -I/usr/java/jsdk/include/linux -c ../jk/jk_worker.c In file included from ../jk/jk_worker.c:63: ../jk/jk_worker_list.h:126:36: warning: no newline at end of file -o mod_jk.so jk_worker.o jk_util.o jk_uri_worker_map.o jk_sockbuf.o jk_pool.o jk_nwmain.o jk_msg_buff.o jk_map.o jk_lb_worker.o jk_jni_worker.o jk_connect.o jk_ajp13_worker.o jk_ajp13.o jk_ajp12_worker.o mod_jk.o apxs:Break: Command failed with rc=255 [root@Fileserver apache1.3]# - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Context Help
Be careful with case. The directory name shoul dbe WEB-INF not Web-inf. Even though Windows ignores case, it still preserves case, and tomcat enforces the rules on case sensitivity despite windows. Also, the WEB-INF directory is protected, so no files will be served from there. Regards, Paul -Original Message- From: Zelestrial Signs [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 30, 2001 2:44 PM To: [EMAIL PROTECTED] Subject: Re: Context Help 1) Setting up a Context server.xml Context path="/tcp" docBase="C:/SomePath/to/tcpRoot" crossContext="false" debug="0" reloadable="true" /Context C:/SomePath/to/tcpFolderRoot then has the following directory structure C:/SomePath/to/tcpRoot/Web-inf - web.xml goes here if you need one C:/SomePath/to/tcpRoot/Web-inf/classes - java classes including servlets go here in their proper package directory structure C:/SomePath/to/tcpRoot/Web-inf/lib - jar files C:/SomePath/to/tcpRoot/Meta-inf - Manifest.mf goes here if you need one C:/SomePath/to/tcpRoot/anySubDirectoriesYouWantForStaticContent JSP's can be stored in the tcpRoot directory or in anySub...'s and would just be referenced as http://localhost:8080/tcp/SomeJSP.jsp or http://localhost:8080/tcp/anySub.../SomeJSP.jsp Servlets would be http://localhost:8080/tcp/servlet/package.SomeServlet 2) /admin password From what I've seen, by default there isn't a password set. I would imagine this is because they want *you* to come up with your own unique username and password instead of having some generic username/password that people might forget to change causing security problems. What you need to do is add a user and password for the "admin" role to tomcat-users.xml From: "Java Softech Pvt Ltd" [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Context Help Date: Tue, 30 Jan 2001 16:08:45 +0530 Can anyone help me on how to create a context like /tcp or /exams in the server.xml file. And also please let me know the password and username to enter into the /admin pages. Rajshekhar. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] _ Get your FREE download of MSN Explorer at http://explorer.msn.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: Problem with installing tomcat as NT service - spaces
Try Linux :-) DIEGO RODRIGO wrote: this is a known limitation, you can't use spaces in the wrapper path. d. Reply Separator Subject:RE: Problem with installing tomcat as NT service - spaces in Author: [EMAIL PROTECTED] Date: 30/01/2001 3:54 PM Hi, have you tried to enclose the whole path with double quotes, quotes or something in the style ?? wrapper.tomcat_home="C:\Program Files\Application Name\tomcat" Justa thought, I never tried to use it that way. Cheers -- Vctor A. Rodrguez ( http://www.bit-man.com.ar) Telefnica de Argentina - http://www.Telefonica.com.ar Tel. (54-11) 4333-7305 - Fax: (54-11) 4303-5586 int. 1680 -Mensaje original- De: Brian Radovich [mailto:[EMAIL PROTECTED]] Enviado el: Monday, January 29, 2001 20:42 Para: [EMAIL PROTECTED] Asunto: Problem with installing tomcat as NT service - spaces in path cause crash Howdy When I have my install program configure the wrapper.properties file, it can inset a line like wrapper.tomcat_home=C:\Program Files\Application Name\tomcat The service will not work... it only works when the path to tomcat has no spaces in it... I tried using double quotes and it didn't work. Is this a known bug or am I doing something wrong? TIA Brian - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
TagBeginGenerator.java
Hi! I'm developing JSP Taglibs for a research project at our university. While doing so I had some trouble with the setters of the Tags: java.lang.NullPointerException at org.apache.jasper.compiler.TagBeginGenerator.generateSetters(TagBeginGenerat or.java:196) at org.apache.jasper.compiler.TagBeginGenerator.generateServiceMethodStatements (TagBeginGenerator.java:291) at org.apache.jasper.compiler.TagBeginGenerator.generate(TagBeginGenerator.java :360) at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.generate(J spParseEventListener.java:773) at org.apache.jasper.compiler.JspParseEventListener.generateAll(JspParseEventLi stener.java:220) at org.apache.jasper.compiler.JspParseEventListener.endPageProcessing(JspParseE ventListener.java:175) ... Now I had a look at the source code for that class line 196: Method m = tc.getSetterMethod(attrName); Class c[] = m.getParameterTypes(); and some lines later there is a check: if (m == null) Shouldn't it come before the user of m? Is there already a bugfix? by the way I use Tomcat 3.2 with JDK1.3 Allthough I've still a problem: The setter-methods are not found. I've registered them correctly in the tld etc. Are there any naming rules? Sometimes if I change the name of the attribute in the class-file, tld and the jsp-page it is running. But I don't understand why for example the attribute-name 'connection' is not running but 'connect' does. Greetings Ralph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Tomcat and Apache
I'd like to use the Apache web server with Tomcat 3.2.1. I haven't managed to find the connector for them. Can someone point me to the appropriate URL? Thanks, Paul Asarak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Tomcat and Apache
Two hours ago, I provided you with the pointer where you can find the mod_jk.so connector: http://www.ccl.net/cca/software/UNIX/apache/index.shtml The RPMS were also mentioned: http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/rpms/ In the Instructions for Linux RH7.0 (e.g.: http://www.ccl.net/cca/software/UNIX/apache/apacheRH7.0httpd/README.html ) there is a link to mod_jk.so compiled. If you use Netscape, just do Alt/7 and search for mod_jk. Of course, it may not work for you since the mod_jk has to be compiled for a given version of UNIX, of JAVA (the java include files), C library, and of APACHE (there are some small changes between apaches 1.3.X which may produce modules not compatible with other versions). For this simple reason, the easiest way to get mod_jk working is to compile it yourself. Jan K. Labanowski|phone: 614-292-9279, FAX: 614-292-7168 Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 1224 Kinnear Rd, |http://www.ccl.net/chemistry.html Columbus, OH 43212-1163 |http://www.osc.edu/ On Tue, 30 Jan 2001 [EMAIL PROTECTED] wrote: I'd like to use the Apache web server with Tomcat 3.2.1. I haven't managed to find the connector for them. Can someone point me to the appropriate URL? Thanks, Paul Asarak - 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 and Apache
For Win32 --- http://jakarta.apache.org/builds/tomcat/release/v3.2.1/bin/win32/i386/ For Linux --- http://jakarta.apache.org/builds/tomcat/release/v3.1.1/bin/linux/i386/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 30, 2001 2:17 PM To: [EMAIL PROTECTED] Subject: Tomcat and Apache I'd like to use the Apache web server with Tomcat 3.2.1. I haven't managed to find the connector for them. Can someone point me to the appropriate URL? Thanks, Paul Asarak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Build mod_jk.so - no match
Hi I try to build mod_jk.so and system replies No match. My configurations is: Solaris 8 Forte developer 6 (C++ compiler) Tomcat 3.2.1 Apache 1.3.14 Both Tomcat and Apache work fine by itself. The online command is: /usr/local/apache/bin/apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/java/include -I/usr/java/include/solaris -lposix4 -c *.c../jk/*.c No match Is this has to do with the C++ compiler or makefile Thanks in advance. Connie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
tomcat 4 / castor
Hello I'm having trouble trying to run a webapp requiring castor (exolab.org) in tomcat 4. Problems seems to be due to castor requiring xerces, which itself conflict with crimson. I may be completely wrong on this... anyway, I tried to strip unneeded xerces classes while keeping only the relevant package (org.apache.xml.serialize.*), but without much success. Did anyone manage to use castor in tomcat 4 ? any pointer appreciated before I start spending more time on this... alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Build mod_jk.so - no match
It is known that compiling apache under non-GNU C compiler is a problem... On the other hand, under gcc it compiles like charm... Jan [EMAIL PROTECTED] Jan K. Labanowski|phone: 614-292-9279, FAX: 614-292-7168 Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 1224 Kinnear Rd, |http://www.ccl.net/chemistry.html Columbus, OH 43212-1163 |http://www.osc.edu/ On Tue, 30 Jan 2001, Wong, Connie wrote: Hi I try to build mod_jk.so and system replies No match. My configurations is: Solaris 8 Forte developer 6 (C++ compiler) Tomcat 3.2.1 Apache 1.3.14 Both Tomcat and Apache work fine by itself. The online command is: /usr/local/apache/bin/apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/java/include -I/usr/java/include/solaris -lposix4 -c *.c../jk/*.c No match Is this has to do with the C++ compiler or makefile Thanks in advance. Connie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Making Tomcat 3.2.1 listen on a given IP/port
All My apologies for asking this, which I guess is in some documentation/archive somewhere --- I just can't find it. I have Tomcat 3.2.1 and I want it to listen on given IP address (on a host with many) and a given port. I've looked in manuals in server.xml and see some hope -- the virtual server example, I just can't seem to make it work. I want Tomcat to listen on one IP address (port 8080 is fine) not more than one -- I want this to be the main input -- not some additional one. (I want all content/context to be there -- if that is the right way to say it in tomcat speak.) Can somebody point me at documentation or tell me how? My appreciations in advance.. regards, Adam -- Open Business Interchange: http://www.obizi.com Free B2B software: B2B2000 http://b2b.obizi.com XML/SOAP-based client for rapid B2B partnerships. Forums http://groups.obizi.com/mailman/listinfo News Groups: news://groups.obizi.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Exception on Startup in 3.2.1
Has anyone seen this error on startup in 3.2.1? Exception in thread "main" java.lang.ExceptionInInitializerError: java.util.MissingResourceException : Can't find bundle for base name org.apache.tomcat.resources.LocalStrings, locale en_US at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:7 07) at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:679) at java.util.ResourceBundle.getBundle(ResourceBundle.java:546) at org.apache.tomcat.util.StringManager.init(StringManager.java:115) at org.apache.tomcat.util.StringManager.getManager(StringManager.java:260) at org.apache.tomcat.startup.Tomcat.clinit(Tomcat.java:24) This is on a win2K pro machine. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: getting server push to work
Oh, woah. I just came in the middle of this discussion. I'm looking for something that would let me have server push through HTTP, and this looks like it could work. How does this look on the client side? Do you simply use a URLConnection and read from the InputStream like it was a normal stream? Gerard Monsen 1Finder.com [EMAIL PROTECTED] wrote: This doesn't work with tomcat 3.2 try one of the nightly 3.3 builds. thanks, - Dale On Mon, Jan 29, 2001 at 11:47:43AM -0800, Sean Agnew wrote: Iv'e not had any luck with server push and Tomcat. Flushing the PrintWriter doesn't seem to be sending any data. The Browser only hangs until the servlet is completely finished. How can I disable Tomcat from buffering servlet output? response.setContentType("multipart/x-mixed-replace;boundary=boundary"); PrintWriter out = response.getWriter(); String s = "Awaiting query results, please wait ...\n"; out.println("--boundary"); out.println("Content-Type: text/html\r"); out.println("\r"); out.println(s); out.println("\r"); out.println("--boundary--"); out.println("\r"); out.flush(); try { Thread.sleep(3000); } catch (Exception e) { out.println("interrupted: " + e); } out.println("Content-Type: text/html\r"); out.println("\r"); out.println("This is the end"); out.println("--boundary--"); out.flush(); __ NetZero - Defenders of the Free World Get your FREE Internet Access and Email at http://www.netzero.net/download/index.html - 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]
Help On running Tomcat
Dear List, I am trying to run tomcat stand alone on an NT platform. I am trying to run the server on a different ip from that of the host i.e we need to be able to run tomcat not from the localhost address but from an allocated ip address. What cahnges do i need to make this work as I keep getting the screen which disappears after a few seconds when trying to run startup.bat Regards Sushil Prabhakar Cybernet Communications Inc. Suite 207 20 Amber Street Markham, Ontario L3R 5P4 Tel: (905) 947 1801 Fax:(905) 947 1802 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Error when trying to configure tomcat to work with IIS 5.0 on win2000
Hi there. Wondering if you can help me get this to work. When i try to run the jsp examples I get the following errors: in the file ex010130.log which was in my System32\LogFiles\W3SVC1 directory - #Software: Microsoft Internet Information Services 5.0 #Version: 1.0 #Date: 2001-01-30 21:25:06 #Fields: time c-ip cs-method cs-uri-stem sc-status 21:25:06 192.168.0.1 GET /jakarta/isapi_redirect.dll 401 in the isapi.log file that tomcat created - [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_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_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_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 and when i try to run http://localhost/examples/jsp/index.html I get a "You are not authorized to view this page" 401.3 error please help me Andre Di Cicco Get your small business started at Lycos Small Business at http://www.lycos.com/business/mail.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Help On running Tomcat
You're haveing the same problem I am. If you go run $TOMCAT_HOME\bin\tomcat run it will run the server in the same window so when it quits you'll be able to see why. I'll bet dollars to dounuts you'll see this: Exception in thread "main" java.lang.ExceptionInInitializerError: java.util.MissingResourceException : Can't find bundle for base name org.apache.tomcat.resources.LocalStrings, locale en_US at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:7 07) at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:679) at java.util.ResourceBundle.getBundle(ResourceBundle.java:546) at org.apache.tomcat.util.StringManager.init(StringManager.java:115) at org.apache.tomcat.util.StringManager.getManager(StringManager.java:260) at org.apache.tomcat.startup.Tomcat.clinit(Tomcat.java:24) I don't know why it's doing it or how to fix it though. -Original Message- From: sushil [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 30, 2001 4:47 PM To: [EMAIL PROTECTED] Subject: Help On running Tomcat Dear List, I am trying to run tomcat stand alone on an NT platform. I am trying to run the server on a different ip from that of the host i.e we need to be able to run tomcat not from the localhost address but from an allocated ip address. What cahnges do i need to make this work as I keep getting the screen which disappears after a few seconds when trying to run startup.bat Regards Sushil Prabhakar Cybernet Communications Inc. Suite 207 20 Amber Street Markham, Ontario L3R 5P4 Tel: (905) 947 1801 Fax:(905) 947 1802 - 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: getting server push to work
What will server push do? -Original Message- From: Gerard Monsen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 30, 2001 1:12 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: getting server push to work Oh, woah. I just came in the middle of this discussion. I'm looking for something that would let me have server push through HTTP, and this looks like it could work. How does this look on the client side? Do you simply use a URLConnection and read from the InputStream like it was a normal stream? Gerard Monsen 1Finder.com [EMAIL PROTECTED] wrote: This doesn't work with tomcat 3.2 try one of the nightly 3.3 builds. thanks, - Dale On Mon, Jan 29, 2001 at 11:47:43AM -0800, Sean Agnew wrote: Iv'e not had any luck with server push and Tomcat. Flushing the PrintWriter doesn't seem to be sending any data. The Browser only hangs until the servlet is completely finished. How can I disable Tomcat from buffering servlet output? response.setContentType("multipart/x-mixed-replace;boundary=boundary"); PrintWriter out = response.getWriter(); String s = "Awaiting query results, please wait ...\n"; out.println("--boundary"); out.println("Content-Type: text/html\r"); out.println("\r"); out.println(s); out.println("\r"); out.println("--boundary--"); out.println("\r"); out.flush(); try { Thread.sleep(3000); } catch (Exception e) { out.println("interrupted: " + e); } out.println("Content-Type: text/html\r"); out.println("\r"); out.println("This is the end"); out.println("--boundary--"); out.flush(); __ NetZero - Defenders of the Free World Get your FREE Internet Access and Email at http://www.netzero.net/download/index.html - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: getting server push to work
I think the problem is that tomcat is buffering data from the servlet, and only sends when the servlet finishes. I've tried the nightly 3.3 builds from 01/29 on NT, with no luck. There should be a way to turn off this buffering but it's been elusive so far. If you figure this out let me know. -Sean -Original Message- From: Gerard Monsen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 30, 2001 1:12 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: getting server push to work Oh, woah. I just came in the middle of this discussion. I'm looking for something that would let me have server push through HTTP, and this looks like it could work. How does this look on the client side? Do you simply use a URLConnection and read from the InputStream like it was a normal stream? Gerard Monsen 1Finder.com [EMAIL PROTECTED] wrote: This doesn't work with tomcat 3.2 try one of the nightly 3.3 builds. thanks, - Dale On Mon, Jan 29, 2001 at 11:47:43AM -0800, Sean Agnew wrote: Iv'e not had any luck with server push and Tomcat. Flushing the PrintWriter doesn't seem to be sending any data. The Browser only hangs until the servlet is completely finished. How can I disable Tomcat from buffering servlet output? response.setContentType("multipart/x-mixed-replace;boundary=boundary"); PrintWriter out = response.getWriter(); String s = "Awaiting query results, please wait ...\n"; out.println("--boundary"); out.println("Content-Type: text/html\r"); out.println("\r"); out.println(s); out.println("\r"); out.println("--boundary--"); out.println("\r"); out.flush(); try { Thread.sleep(3000); } catch (Exception e) { out.println("interrupted: " + e); } out.println("Content-Type: text/html\r"); out.println("\r"); out.println("This is the end"); out.println("--boundary--"); out.flush(); __ NetZero - Defenders of the Free World Get your FREE Internet Access and Email at http://www.netzero.net/download/index.html - 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] __ NetZero - Defenders of the Free World Get your FREE Internet Access and Email at http://www.netzero.net/download/index.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Help On running Tomcat
sushil wrote: Dear List, I am trying to run tomcat stand alone on an NT platform. I am trying to run the server on a different ip from that of the host i.e we need to be able to run tomcat not from the localhost address but from an allocated ip address. What cahnges do i need to make this work as I keep getting the screen which disappears after a few seconds when trying to run startup.bat Regards Modify the catalina.bat or tomcat.bat file in the bin directory so that it doesn't do a "start" before running java. Then you will be able to see what errors it is giving. You lost me on the IP thing. Tomcat will repond on whatever IP's your machine has available by default.. localhost is just the name of the default loopback. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Where is mod_jk.so for linux?
Hi Trying to install Tomcat. The user guide says binaries are already available for linux. But I don't see thje mod_jk.so file on the download page. I tried to compile but apxs is giving me an error apxs:Error: @sbindir@/httpd not found or not executable who can help this poor newbie thanks! Bowden g GE Corporate Research and Development ___ __ G. Bowden Wise mailto:[EMAIL PROTECTED] Electronic Systems Laboratory KW-C603 General Electric Corporate Research Development One Research Circle Niskayuna NY 12309 Fax: 518-387-4042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Help On running Tomcat
On Win32 "$TOMCAT_HOME\bin\startup.bat" or "$TOMCAT_HOME\bin\tomcat start" -- will start Tomcat in a different window "$TOMCAT_HOME\bin\tomcat run" -- will start Tomcat in the current MS-DOS prompt window The latter is great to begug a problematic server start since you can actually see the error messages before Tomcat fails and quits. Gilles -Original Message- From: Morris, Cavan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 30, 2001 4:31 PM To: '[EMAIL PROTECTED]' Subject: RE: Help On running Tomcat You're haveing the same problem I am. If you go run $TOMCAT_HOME\bin\tomcat run it will run the server in the same window so when it quits you'll be able to see why. I'll bet dollars to dounuts you'll see this: Exception in thread "main" java.lang.ExceptionInInitializerError: java.util.MissingResourceException : Can't find bundle for base name org.apache.tomcat.resources.LocalStrings, locale en_US at java.util.ResourceBundle.throwMissingResourceException(ResourceBun dle.java:7 07) at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:679) at java.util.ResourceBundle.getBundle(ResourceBundle.java:546) at org.apache.tomcat.util.StringManager.init(StringManager.java:115) at org.apache.tomcat.util.StringManager.getManager(StringManager.java:260) at org.apache.tomcat.startup.Tomcat.clinit(Tomcat.java:24) I don't know why it's doing it or how to fix it though. -Original Message- From: sushil [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 30, 2001 4:47 PM To: [EMAIL PROTECTED] Subject: Help On running Tomcat Dear List, I am trying to run tomcat stand alone on an NT platform. I am trying to run the server on a different ip from that of the host i.e we need to be able to run tomcat not from the localhost address but from an allocated ip address. What cahnges do i need to make this work as I keep getting the screen which disappears after a few seconds when trying to run startup.bat Regards Sushil Prabhakar Cybernet Communications Inc. Suite 207 20 Amber Street Markham, Ontario L3R 5P4 Tel: (905) 947 1801 Fax:(905) 947 1802 - 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]
How to prevent a .jsp from being accessed directly?
Since no one responded, does that mean there's nothing wrong with the xml below? It's still not working. Any suggestions would be welcome. --Michael -Original Message- From: Michael Molloy [mailto:[EMAIL PROTECTED]] Sent: Monday, January 29, 2001 7:41 PM To: Tomcat Subject: How to prevent a .jsp from being accessed directly? I'm using the following web.xml file inside a servlet context (/opt/tomcat/webapps/staging/WEB-INF/web.xml). However, it's not preventing direct access to the jsp file, which is what I'm hoping to achieve. I got this from the O'Reilly Javaserver Pages book, but it's not working. Any suggestions? Thanks --Michael web-app servlet servlet-nameRosterServlet/servlet-name servlet-classRosterServlet/servlet-class load-on-startup1/load-on-startup /servlet servlet-mapping servlet-nameRosterServlet/servlet-name url-pattern/process/url-pattern /servlet-mapping security-constraint web-resource-collection web-resource-nameno-access/web-resource-name url-patternselectroster.jsp/url-pattern /web-resource-collection auth-constraint role-namenobody/role-name /auth-constraint /security-constraint /web-app - 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 and windows98
Is it possible to run tomcat with windows 98 ? I can't do it, the window's command crash before the end of initialisation - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Do I need apache for servlet-only use?
The main benefit I've read of using apache with tomcat instead of just tomcat standalone is that apache is faster for serving static pages. If I am starting a new development effort that will only be using servlets, is there any reason to use apache, or should I just stick with tomcat in standalone mode to service the requests? Any comments would be appreciated. Thanks in advance, James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Still Problems with tag libraries
I have done this by placing the *.tld files under WEB-INF directory because I had problems when I kept those files in WEB-INF/lib. Then in my web.xml file I refer to this as: taglib taglib-uri/WEB-INF/some.tld/taglib-uri taglib-location/WEB-INF/some.tld/taglib-location /taglib Now, in my jsp page, I would have the following: %@ taglib uri="/WEB-INF/some.tld" prefix="whatever" % Thats all. Give it a try. - Purav Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm list-help: mailto:[EMAIL PROTECTED] list-unsubscribe: mailto:[EMAIL PROTECTED] list-post: mailto:[EMAIL PROTECTED] Delivered-To: mailing list [EMAIL PROTECTED] From: Antillon Reyes Rafael Martin - EXT [EMAIL PROTECTED] To: [EMAIL PROTECTED], A mailing list about Java Server Pages specification andreference [EMAIL PROTECTED] Subject: Still Problems with tag libraries MIME-Version: 1.0 X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by virtucon.East.Sun.COM id RAA19003 Hello Everyone: My problem is that when i run my Example.jsp, it doesnt recognizes the tag library within it. Im using Tomcat 3.1 This is the Jsp portion where the error is: - %@ taglib uri="rollo" prefix="csajsp" % - my web.xml (the one in the local WEB-INF directory)look like this: - taglib taglib-uri rollo /taglib-uri taglib-location /WEB-INF/lib/csajsp-taglib.tld /taglib-location /taglib - The tag library obviously is csajsp-taglib.tld, but i dont know where to put it, is in /WEB-INF/lib, or what am i missing. Theres an example and ive done it how i see it is, but still get the error below. any ideas, cuz im desperated. Thanz in advance. Rafael. The error is something like this, and happens when i run the Example.jsp: - Error: 500 Location: /des/jsp/SimpleExample.jsp Internal Servlet Error: (Cant open "rollo" tag library, in english) org.apache.jasper.JasperException: No se puede abrir la libreria de tags rollo : Parse Error in the tag library descriptor: com.sun.xml.parser/V-036 web-app servlet at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEve ntListener.java:672) at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingList ener.java:116) at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215) at org.apache.jasper.compiler.Parser.parse(Parser.java:1073) at org.apache.jasper.compiler.Parser.parse(Parser.java:1038) at org.apache.jasper.compiler.Parser.parse(Parser.java:1034) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:182) at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:149) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja va:161) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:160) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338 ) at java.lang.Thread.run(Unknown Source)
Tomcat and win98 more...
When i try to run tomcat i have this message : D:\Apache Group\jakarta-tomcat-3.2.1\bintomcat run Including all jars in ..\lib in your CLASSPATH. Using CLASSPATH: ..\classes;..\lib\ANT.JAR;..\lib\JAXP.JAR;..\lib\SERVLET.JAR;.. \lib\PARSER.JAR;..\lib\WEBSER~1.JAR;..\lib\JASPER.JAR;D:\jdk1.3\lib\tools.jar 2001-01-30 11:31:33 - ContextManager: Adding context Ctx( /examples ) Starting tomcat. Check logs/tomcat.log for error messages 2001-01-30 11:31:33 - ContextManager: Adding context Ctx( /admin ) 2001-01-30 11:31:33 - ContextManager: Adding context Ctx( ) 2001-01-30 11:31:33 - ContextManager: Adding context Ctx( /test ) FATAL:java.net.BindException: Address in use: JVM_Bind java.net.BindException: Address in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:397) at java.net.ServerSocket.init(ServerSocket.java:170) at java.net.ServerSocket.init(ServerSocket.java:121) at org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:97) at org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java:239) at org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:188) at org.apache.tomcat.core.ContextManager.start(ContextManager.java:527) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: How to prevent a .jsp from being accessed directly?
You may want to try setting the url pattern relative to the root i.e. url-pattern/dir1/subdir1/selectroster.jsp/url-pattern Bob -Original Message- From: Michael Molloy [mailto:[EMAIL PROTECTED]] Sent: Monday, January 29, 2001 7:41 PM To: Tomcat Subject: How to prevent a .jsp from being accessed directly? I'm using the following web.xml file inside a servlet context (/opt/tomcat/webapps/staging/WEB-INF/web.xml). However, it's not preventing direct access to the jsp file, which is what I'm hoping to achieve. I got this from the O'Reilly Javaserver Pages book, but it's not working. Any suggestions? Thanks --Michael web-app servlet servlet-nameRosterServlet/servlet-name servlet-classRosterServlet/servlet-class load-on-startup1/load-on-startup /servlet servlet-mapping servlet-nameRosterServlet/servlet-name url-pattern/process/url-pattern /servlet-mapping security-constraint web-resource-collection web-resource-nameno-access/web-resource-name url-patternselectroster.jsp/url-pattern /web-resource-collection auth-constraint role-namenobody/role-name /auth-constraint /security-constraint /web-app - 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 prevent a .jsp from being accessed directly?
You may also want to try setting the url pattern relative to the root going only down to the directory in which it exist to see if that atleast works, rather than specifying the coplete path to the file. i.e. url-pattern/dir1/subdir1/*/url-pattern Bob -Original Message- From: Michael Molloy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 30, 2001 4:09 PM To: Tomcat Subject: How to prevent a .jsp from being accessed directly? Since no one responded, does that mean there's nothing wrong with the xml below? It's still not working. Any suggestions would be welcome. --Michael -Original Message- From: Michael Molloy [mailto:[EMAIL PROTECTED]] Sent: Monday, January 29, 2001 7:41 PM To: Tomcat Subject: How to prevent a .jsp from being accessed directly? I'm using the following web.xml file inside a servlet context (/opt/tomcat/webapps/staging/WEB-INF/web.xml). However, it's not preventing direct access to the jsp file, which is what I'm hoping to achieve. I got this from the O'Reilly Javaserver Pages book, but it's not working. Any suggestions? Thanks --Michael web-app servlet servlet-nameRosterServlet/servlet-name servlet-classRosterServlet/servlet-class load-on-startup1/load-on-startup /servlet servlet-mapping servlet-nameRosterServlet/servlet-name url-pattern/process/url-pattern /servlet-mapping security-constraint web-resource-collection web-resource-nameno-access/web-resource-name url-patternselectroster.jsp/url-pattern /web-resource-collection auth-constraint role-namenobody/role-name /auth-constraint /security-constraint /web-app - 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]
AW: Still Problems with tag libraries
I don't change my web.xml at all. In my JSP-page I have the following: %@ taglib uri="/WEB-INF/some.tld" prefix="whatever" % where the uri gives the path to the tld-file relative to the webapp you are working on. Then you need no taglib... in your web.xml. it's the easiest way I think. Hope that help's Ralph -Ursprngliche Nachricht- Von: Purav Patel - Sun Microsystems [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 30. Januar 2001 23:26 An: [EMAIL PROTECTED] Betreff: Re: Still Problems with tag libraries I have done this by placing the *.tld files under WEB-INF directory because I had problems when I kept those files in WEB-INF/lib. Then in my web.xml file I refer to this as: taglib taglib-uri/WEB-INF/some.tld/taglib-uri taglib-location/WEB-INF/some.tld/taglib-location /taglib Now, in my jsp page, I would have the following: %@ taglib uri="/WEB-INF/some.tld" prefix="whatever" % Thats all. Give it a try. - Purav Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm list-help: mailto:[EMAIL PROTECTED] list-unsubscribe: mailto:[EMAIL PROTECTED] list-post: mailto:[EMAIL PROTECTED] Delivered-To: mailing list [EMAIL PROTECTED] From: Antillon Reyes Rafael Martin - EXT [EMAIL PROTECTED] To: [EMAIL PROTECTED], A mailing list about Java Server Pages specification andreference [EMAIL PROTECTED] Subject: Still Problems with tag libraries MIME-Version: 1.0 X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by virtucon.East.Sun.COM id RAA19003 Hello Everyone: My problem is that when i run my Example.jsp, it doesnt recognizes the tag library within it. Im using Tomcat 3.1 This is the Jsp portion where the error is: -- -- - %@ taglib uri="rollo" prefix="csajsp" % -- -- - my web.xml (the one in the local WEB-INF directory)look like this: -- -- - taglib taglib-uri rollo /taglib-uri taglib-location /WEB-INF/lib/csajsp-taglib.tld /taglib-location /taglib -- -- - The tag library obviously is csajsp-taglib.tld, but i dont know where to put it, is in /WEB-INF/lib, or what am i missing. Theres an example and ive done it how i see it is, but still get the error below. any ideas, cuz im desperated. Thanz in advance. Rafael. The error is something like this, and happens when i run the Example.jsp: -- -- - Error: 500 Location: /des/jsp/SimpleExample.jsp Internal Servlet Error: (Cant open "rollo" tag library, in english) org.apache.jasper.JasperException: No se puede abrir la libreria de tags rollo : Parse Error in the tag library descriptor: com.sun.xml.parser/V-036 web-app servlet at org.apache.jasper.compiler.JspParseEventListener.handleDirective(J spParseEve ntListener.java:672) at org.apache.jasper.compiler.DelegatingListener.handleDirective(Dele gatingList ener.java:116) at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215) at org.apache.jasper.compiler.Parser.parse(Parser.java:1073) at org.apache.jasper.compiler.Parser.parse(Parser.java:1038) at org.apache.jasper.compiler.Parser.parse(Parser.java:1034) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:182) at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNeces sary(JspSe rvlet.java:149) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(Jsp Servlet.ja va:161) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper .java:503) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559) at
RE: Do I need apache for servlet-only use?
If you are in a development cycle where you only use servlets, then I would suggest that you utilize Tomcat in standalone mode, as you will not gain anything by throwing Apache into the mix. In fact, However, since you will ultimately deploy to a production environment where you will most likely have a web-server such as Apache, I would suggest that you configure the connectivity between Apache and Tomcat as part of your testing cycle to ensure that you are testing in an environment that is as close as possible to the production deployment environment. Cor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of James Jouett Sent: Tuesday, January 30, 2001 2:22 PM To: [EMAIL PROTECTED] Subject: Do I need apache for servlet-only use? The main benefit I've read of using apache with tomcat instead of just tomcat standalone is that apache is faster for serving static pages. If I am starting a new development effort that will only be using servlets, is there any reason to use apache, or should I just stick with tomcat in standalone mode to service the requests? Any comments would be appreciated. Thanks in advance, James - 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 prevent a .jsp from being accessed directly?
I've tried several variations, from your suggestion below to including the entire url (www. . . .). I'll take another look at it. Thanks --Michael -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 30, 2001 4:29 PM To: [EMAIL PROTECTED] Subject: RE: How to prevent a .jsp from being accessed directly? You may want to try setting the url pattern relative to the root i.e. url-pattern/dir1/subdir1/selectroster.jsp/url-pattern Bob -Original Message- From: Michael Molloy [mailto:[EMAIL PROTECTED]] Sent: Monday, January 29, 2001 7:41 PM To: Tomcat Subject: How to prevent a .jsp from being accessed directly? I'm using the following web.xml file inside a servlet context (/opt/tomcat/webapps/staging/WEB-INF/web.xml). However, it's not preventing direct access to the jsp file, which is what I'm hoping to achieve. I got this from the O'Reilly Javaserver Pages book, but it's not working. Any suggestions? Thanks --Michael web-app servlet servlet-nameRosterServlet/servlet-name servlet-classRosterServlet/servlet-class load-on-startup1/load-on-startup /servlet servlet-mapping servlet-nameRosterServlet/servlet-name url-pattern/process/url-pattern /servlet-mapping security-constraint web-resource-collection web-resource-nameno-access/web-resource-name url-patternselectroster.jsp/url-pattern /web-resource-collection auth-constraint role-namenobody/role-name /auth-constraint /security-constraint /web-app - 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]