RE: HeadlessException: The chickens come home to roost!
What version of the jvm are you using. Headless is a 1.4+ feature. Chad Johnson Web Services Developer WS Packaging Group, Inc. Tel:(920)487-6271 -Original Message- From: Simon Brooke [mailto:[EMAIL PROTECTED] Sent: Monday, September 08, 2003 2:48 PM To: Tomcat Users List Subject: HeadlessException: The chickens come home to roost! -BEGIN PGP SIGNED MESSAGE- Long, long ago I spent a lot of time writing a Servlet which allowed drill-through graphs and charts to be built on the fly, server side. I was very proud of it, but getting it working on an X11 platform was such a bloody swine that I actually documented how to do it here: URL:http://www.weft.co.uk/library/jacquard/documentation/uk/co/weft/htf orm/Graphic.html Now I need to use this functionality in a new project, and can I get it to work? No, I **%$ can't. And the problem is a new one: java.awt.HeadlessException I get this whether or not I have CATALINA_OPTS=-Djava.awt.headless=true defined in /etc/default/tomcat4, and whether or not I have Xvfb running, with the DISPLAY environment variable pointing in the right place, and all X security off. Specifically I get: java.awt.HeadlessException at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:121) at java.awt.Window.(Window.java:266) at java.awt.Frame.(Frame.java:398) at java.awt.Frame.(Frame.java:363) at uk.co.weft.htform.MappedImage.(MappedImage.java:156) at uk.co.weft.htform.ExampleMappedImage.(ExampleMappedImageServlet.java:28) which is to say when I first try to create a java.awt.Frame I'm using tomcat 4.0.4 as packaged in Debian package tomcat4_4.0.4-4 on Debian 3.0 with Sun Java 1.4.0 and Sun Java 1.4.1; I also have, and could try if people think it would help, IBM Java 1.3.0 The last time this issue was discussed on this list was on 20th March this year; I've tried all the proposed solutions which were discussed at that time, including the eTeks PJA toolkit, which sounds a very clever solution but which unfortunately failed with a NullPointerException java.lang.NullPointerException at com.eteks.awt.servlet.PJARedirectServlet.servicePJA(PJARedirectServlet.j ava:195) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.eteks.awt.servlet.PJAServlet.HttpMethodInvoke(PJAServlet.java:793) at com.eteks.awt.servlet.PJAServlet.service(PJAServlet.java:775) Any further suggestions gratefully received. Simon - -- [EMAIL PROTECTED] (Simon Brooke) http://www.jasmine.org.uk/~simon/ ;; MS Windows: A thirty-two bit extension ... to a sixteen bit ;; patch to an eight bit operating system originally coded for a ;; four bit microprocessor and sold by a two-bit company that ;; can't stand one bit of competition -- anonymous -BEGIN PGP SIGNATURE- Version: 2.6.3ia Charset: noconv iQCVAwUBP1zdAHr1UrYJMbiJAQHSUAP/RoR0DwfzilZ3EySyin3kXFzPkLQopTM9 l1yHrFdLnFFW6MV9rIuoKxNS2U1vPJ9zlqfeJt8hJszKKYO3b5WII6IJ0sz3fOIL YaItN0wTGmgpDtOMSFHsv4hXrzHBVdzNXYuQaJ6Fo/alKcRMGdfKliYzNAR3PaeH zlgRCXecWio= =z/Pq -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: javac vs. jikes (a corrected title now)
Hey, My own two cents on the topic. The only reason I ever used jikes with TC was to avoid the memory leak when compiling code internally in the jvm. Now that TC by default compiles jsp's via the command line javac it's a non issue to me. Chad Johnson Web Services Developer WS Packaging Group, Inc. Tel:(920)487-6271 -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, July 17, 2003 11:11 AM To: Tomcat Users List Subject: RE: javac vs. jikes (a corrected title now) Howdy, Jikes has fallen out of favor with me as well, and I don't use it in production. Yoav Shapira Millennium ChemInformatics -Original Message- From: Simon Pabst [mailto:[EMAIL PROTECTED] Sent: Thursday, July 17, 2003 11:59 AM To: Tomcat Users List Subject: Re: javac vs. jikes (a corrected title now) I tried jikes, it failed the testing though, as it produced compile errors for our app where javac did not. At 11:25 17.07.2003 -0300, you wrote: Hi people, I´m configuring Tomcat on Solaris as a production system to serve one app on our intranet. It really doesn´t have any static page, so we´ve decided not to integrate Apache. I´ve followed some of the optimization tasks suggested on tomcat docs for a production environment. One of them is to substitute javac by jikes and the question is: Does it really make any diff? The docs say that jikes is faster than javac and it can compile more than one jsp simultaneously. Do you do this substitution? Does it really worth? Thanks in advance JR Garcia === Jose Roberto M. Garcia ICQ: 64364941 TecnologistaCPTEC/INPE (12) 3186-8405 MCT -- --- http://www.cptec.inpe.br === - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can't connect to X11 window server using '0:0' as the value of the display and now java.awt.HeadlessException
Hey, From the 1.4.x api docs: HeadlessException: Thrown when code that is dependent on a keyboard, display, or mouse is called in an environment that does not support a keyboard, display, or mouse. That Frame seems to be the culprit of this. -Chad Johnson -Original Message- From: Georges Roux [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 11:09 AM To: Tomcat Users List Subject: Re: Can't connect to X11 window server using '0:0' as the value of the display and now java.awt.HeadlessException Hi, I put System.setProperty(java.awt.headless, true); in my servlet init method it's ok, but now when I open a Frame, I get the exception HeadlessException: java.awt.HeadlessException at java.awt.GraphicsEnvironnement.checkHeadless(GraphicsEnvironement.java:1 21) at java.awt.window.init(Window.java:226) at java.awt.Frame.init(Frame.java:398) ... What can I do? Georges Chad Johnson wrote: If I had to wager a guess you'll need to run tomcat in a 'headless' JVM. To do that add : -Djava.awt.headless=true To the : CATALINA_OPTS environment variable. -Chad Johnson -Original Message- From: Georges Roux [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 18, 2003 5:32 PM To: [EMAIL PROTECTED] Subject: Can't connect to X11 window server using '0:0' as the value of the display Hello everybody, Hi run Tomcat 4.1.18 Standalone on Linux debian(sid)and use J2sdk1.4.1_01. I have a servlet which manipulate exif informations in jpg images. it works well but when I try to run it on tomcat it fails (error 500) I have the following error: Can't connect to X11 window server using '0:0' as the value of the display What can I do? Georges - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- 18:54 18:54 connard 18:55 18:54 t'as que ca a faire? ;) 18:56 18:55 je m'ennuies ferme ouais ! encore 5mn avant la fin du taf, donc j'en profite pour passer dans les fortunes :) +==+ | | | Georges Roux| | URL : georgesroux.pacageek.org | | email : [EMAIL PROTECTED]| | mobile : +33 (0) 613977573 | +==+ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: I need two really goods how-to both, IIS 5.0 and SQL Server
Hey, Microsoft actually maintains a JDBC driver for SQL Server : http://www.microsoft.com/downloads/details.aspx?FamilyID=4f8f2f01-1ed7-4 c4d-8f7b-3d47969e66aeDisplayLang=en -Chad Johnson -Original Message- From: Victor Gonzalez [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 10:15 AM To: 'Tomcat Users List' Subject: I need two really goods how-to both, IIS 5.0 and SQL Server Importance: High Hi, I have tomcat 4.1.18 to develop, but my client wants work with IIS and SQL Server, I want the how-to to realize these connections, Tnks. Victor González - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can't connect to X11 window server using '0:0' as the value of the display
If I had to wager a guess you'll need to run tomcat in a 'headless' JVM. To do that add : -Djava.awt.headless=true To the : CATALINA_OPTS environment variable. -Chad Johnson -Original Message- From: Georges Roux [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 18, 2003 5:32 PM To: [EMAIL PROTECTED] Subject: Can't connect to X11 window server using '0:0' as the value of the display Hello everybody, Hi run Tomcat 4.1.18 Standalone on Linux debian(sid)and use J2sdk1.4.1_01. I have a servlet which manipulate exif informations in jpg images. it works well but when I try to run it on tomcat it fails (error 500) I have the following error: Can't connect to X11 window server using '0:0' as the value of the display What can I do? Georges - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Connect JSP and Mysql
Hey, According to: http://www.caucho.com/projects/jdbc-mysql/index.xtp The Caucho Mysql driver needs Resin 2.0. -Chad Johnson - Original Message - From: Hai To Thanh [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 09, 2002 9:11 PM Subject: Connect JSP and Mysql Hi, I get confuse when I try to connect JSP and Mysql. I use statements: %@page import=java.sql.*% % //Khai bao ket noi: Connection conn; Statement stm; ResultSet rs_matau; String sql_matau=; //Create connection: // Class.forName(org.gjt.mm.mysql.Driver); Class.forName(com.caucho.jdbc.mysql.Driver); conn = DriverManager.getConnection(jdbc:mysql_caucho://localhost/ticket,root@loc alhost,); stm = conn.createStatement(); % After I browse, Netscape display error message: org.apache.jasper.JasperException: com.caucho.jdbc.mysql.Driver at org.apache.jasper.servlet.JspServletWrapper.service(Unknown Source) at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source) at org.apache.jasper.servlet.JspServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContext.invoke(Unknown Source) at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:376) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:518) at java.lang.Thread.run(Thread.java:536) root cause javax.servlet.ServletException: com.caucho.jdbc.mysql.Driver at org.apache.jasper.runtime.PageContextImpl.handlePageException(Unknown Source) at org.apache.jsp.dangkyMoi$jsp._jspService(dangkyMoi$jsp.java:227) at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(Unknown Source) at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source) at org.apache.jasper.servlet.JspServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source
Re: help, JDBCRealm, Why Need to authenticate three times to login
Rofl My apologies, I couldn't let the humor slip by! -Chad - Original Message - From: Hillel Bilman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 07, 2002 12:50 AM Subject: help, JDBCRealm, Why Need to authenticate three times to login Dear Tomcat Users I've installed tomcat v4.03 with JDBCRealm When you login incorrectly you go to the error page however if you login correctly you need to login three times before you can get to the index.jsp. Thanks for any assistance my web.xml is: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/j2ee/dtds/web-app_2_3.dtd; web-app session-config session-timeout2/session-timeout /session-config security-constraint web-resource-collection web-resource-name WebInterface /web-resource-name url-pattern/login/*/url-pattern http-methodGET/http-method http-methodPOST/http-method /web-resource-collection auth-constraint role-namemanager/role-name role-namecustomer/role-name /auth-constraint /security-constraint form-login-config login-config auth-method FORM /auth-method form-login-config form-login-page/login/login.jsp/form-login-page form-error-page/login/error.jsp/form-error-page /form-login-config /login-config server.xml: Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=org.postgresql.Driver connectionURL=jdbc:postgresql://localhost/catalina?user=dbuser;password=dbp as s userTable=users userNameCol=user_name userCredCol=user_pass userRoleTable=user_roles roleNameCol=role_name/ DefaultContext reloadable=true/ Context path=/interface docBase=bulkinterface debug=0 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_interface. suffix=.txt timestamp=true/ /Context I've Switched off default Memory Realm The login.jsp I've used is from the examples: html head titleLogin Page for Examples/title body bgcolor=white form method=POST action='%= response.encodeURL(j_security_check) %' table border=0 cellspacing=5 tr th align=rightUsername:/th td align=leftinput type=text name=j_username/td /tr tr th align=rightPassword:/th td align=leftinput type=password name=j_password/td /tr tr td align=rightinput type=submit value=Log In/td td align=leftinput type=reset/td /tr /table /form /body /html Best Regards Hillel Bilman Manager HZB Technologies mailto:[EMAIL PROTECTED] cell:083232 tel:(011)4436164 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Internal tomcat jar's compressed
I ended writing a perl script to repackage all the tomcat jars without compression. Now this did shave some time off the Tomcat startup time, but not by a significant amount (about 3-4 seconds). I measure startup time by monitoring processor utilization, when the 'java' processes cease to utilize the entire cpu I consider Tomcat 'up'. -Chad Johnson - Original Message - From: Chad Johnson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 05, 2002 3:04 PM Subject: Internal tomcat jar's compressed Hey, I notice that most, if not all, of the jar's packaged with Tomcat (4.0.3) are compressed. I can only guess that unpacking all these jar's only adds additional overhead, and time to starting Tomcat up. Whats the general consensus, would packaging these jar's up uncompressed save some time on the startup process? -Chad Johnson -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Internal tomcat jar's compressed
Hey, I notice that most, if not all, of the jar's packaged with Tomcat (4.0.3) are compressed. I can only guess that unpacking all these jar's only adds additional overhead, and time to starting Tomcat up. Whats the general consensus, would packaging these jar's up uncompressed save some time on the startup process? -Chad Johnson -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Question about mod_webapp
Hey, Just a quick question here. I remember a few months back there was talk about mod_webapp recognizing static content calls (.html, .jpg, etc) and not forwarding them off to Tomcat to be handled, and instead let Apache handle them. Was this ever implemented? -Chad Johnson
Re: Question about mod_webapp
Thanks! - Original Message - From: Ralph Einfeldt [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, February 12, 2002 8:45 AM Subject: AW: Question about mod_webapp According to the following link not. http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.2/RELEA SE-NOTES (But this might be outdated in this aspect ?) -Ursprüngliche Nachricht- Von: Chad Johnson [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 12. Februar 2002 15:36 An: [EMAIL PROTECTED] Betreff: Question about mod_webapp Hey, Just a quick question here. I remember a few months back there was talk about mod_webapp recognizing static content calls (.html, .jpg, etc) and not forwarding them off to Tomcat to be handled, and instead let Apache handle them. Was this ever implemented? -Chad Johnson -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Sessions across contexts, is it possible?
Hey, What if we change the scenario a little bit. Is is possible to share objects between contexts that reside in differant host blocks? getContext() does not seem to work in that scenario. -Chad Johnson On Fri, 11 Jan 2002, Craig R. McClanahan wrote: Containers are not required to let you call ServletContext.getContext() and get a non-null value -- it is allowed to return null for all requests (for security reasons). For Tomcat 4, the default is to disallow this kind of access, but you can turn it off (with the crossContext attribute). Other servers may or may not let you enable this facility. Even if you get the reference to the other ServletContext, I would be more concerned about your reliance on getRealPath() at all -- which implies that you are going to use file I/O to retrieve static resources from within the other webapp. This won't work at all when the application is *not* run from an unpacked directory -- you should use ServletContext.getResource() or ServletContext.getResourceAsStream() instead for maximum portability. Craig -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Sessions across contexts, is it possible?
Great, thanks for the insight. The persistance layer sounds most pleasing. -Chad On Fri, 11 Jan 2002, Craig R. McClanahan wrote: No, virtual hosts are considered (by the servlet API) to be totally independent. If you want to delve into container-specific behavior, classes that are loaded from a shared class loader in Tomcat (i.e. from the $CATALINA_HOME?lib directory, for example) are global to all web apps, even across virtual hosts. Static variables declared in such classes, for example, have only one instance across all web apps. However, I would *strongly* urge you to reconsider your overall application architecture if you are tempted by depending on this kind of feature (even though shared libraries of some sort are very commonly implemented). Dependence on global context like this (instead of writing APIs to an abstract persistence layer) is just going to get you into trouble later with scalability and maintainability issues. You'd be much better off designing your individual web applications as modularly as possible -- delegate any required state sharing to mechanisms to get common persistence layer objects from whatever storage mechanisms you are using. If you decide not to heed this advice (yes, I know, it is a lot more work up front), then don't expect any sympathy from me when you run into barriers trying to expand and enhance your application in the future. Craig McClanahan -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Where IS mod_webapp ??
Hey, Pier can correct me on this, but I believe mod_webapp is still beta quality. So grabbing whats in CVS is a safe bet. The binarys that come with Tomcat 4.0.1 have some bugs that have since been corrected (ie only being able to reference web apps in $CATALINA_HOME/webapps). -Chad - Original Message - From: Gerard van Enk [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, November 21, 2001 10:49 AM Subject: Re: Where IS mod_webapp ?? Endre Stølsvik wrote: On Wed, 21 Nov 2001, Gerard van Enk wrote: | Endre Stølsvik wrote: | | On Tue, 20 Nov 2001, Chad Johnson wrote: | | | The WebApp Module has a little webpage. Take a look here. | | | | http://nagoya.apache.org/~pier/ | | Thanks! | | But I'd also like a more stable release. How do I get that? | | | Take a look at | http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/bin/ | Here you'll find a stable version of mod_webapp (in the linux, macosx, | win32, solaris subdir). | But not for EAPI of Apache, as mentioned. I get this huge warning when Apache start, saying that this will be unstable, will probably break, almost certain, and remember Murphy's law or something similar. Oops, sorry. I hadn't read the original posting (only the reply). The source can be found in cvs, in the jakarta-tomcat-connectors module. See http://jakarta.apache.org/site/cvsindex.html for more info. Gerard -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Where IS mod_webapp ??
The WebApp Module has a little webpage. Take a look here. http://nagoya.apache.org/~pier/ -Chad Johnson - Original Message - From: Endre Stølsvik [EMAIL PROTECTED] To: Tomcat user list [EMAIL PROTECTED] Sent: Tuesday, November 20, 2001 2:51 PM Subject: Where IS mod_webapp ?? I've apparently missed out on something, because where is the mod_webapp for the different OS'es and where is the source (because the one in the tomcat 4.0 binary tree for linux is apparently using the wrong api, it should be using EAPI..) I've understood that there is something called j-t-c, but where is their webpage?? Thanks a lot.. Getting way too late too sit at work over here.. -- Mvh, Endre -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
mod_webapp question/problem
Hey yal, I thinking I'm running into a problem with mod_webapp. As I understand tomcat/webapp configuration: 1.) In server.xml, only the Tomcat-Apache service is needed. Inside that service an engine is specified. Now that engine specifies an appBase (In my particular case /www/docs). This appBase is the first part of the path to your application. 2.) No host/context entries have to be made in this service because that information can be gathered from mod_webapp. 3.) In apache a WebAppConnection is made. Also a WebAppDeploy is laid out Example WebAppDeploy xxx yyy zzz Where xxx is the final part of the path to your application. YYY is your WebAppConnection and zzz specifies the url where this application can be found. Feel free to correct me. My assumption might be what is confusing me. Alright, so I specify my appBase in the engine part of server.xml to /www/docs. I now do a: WebAppDeploy site Connection / Turn both Tomcat and apache on, access the site and nothing happens. Well its turns out both apache's error log and tomcat's apache log get spammed with misconfiguration errors. Specifically this in tomcat's: == 2001-09-26 22:47:34 [org.apache.catalina.connector.warp.WarpConfigurationHandler] Cannot find /usr/local/www/jakarta-tomcat/webapps/site for appl. site host site.blah.net 2001-09-26 22:47:34 [org.apache.catalina.connector.warp.WarpConfigurationHandler] Error deploying web application site under http://site.blah.net:80/ == Note, tomcat is looking for my app in /usr/local/www/jakarta-tomcat/webapps/site. She seems to be ignoring my appBase specified in the engine. Is this a bug, or am I confused on tomcat/webapp configuration? -Chad Johnson