Re: INDIANNIC : CONFIGURING TOMCAT WITHOUT PORT 8080
hi jacob thank you for replying to us. we would like to bother you a little more in getting this perfectly right. There are two items listed below. We are using Tomcat 3.3a we have the following files in the directory called jk mod_jk.conf obj.conf workers.properties mod_jk.conf-jni uriworkermap.properties wrapper.properties ITEM 1) An extract from server.xml located in : /usr/local/jakarta-tomcat3.3a please find below an extract of our server.xml enclosed between ** ** Ajp12Connector port=8007 / !-- Apache AJP13 support (mod_jk) Parameter address defines network interface this Interceptor binds to. Add it if you want to bind to just 127.0.0.1. address=127.0.0.1 Parameter tomcatAuthentication, controls if Tomcat honors ( and uses ) auth done in HTTP Server or not, when true Tomcat does not use in any way auth information provided by the HTTP Server. true is the default. tomcatAuthentication=false -- Ajp13Connector port=8009 / !-- Context definitions can be placed here ( not recommended ) or in separate files. The ContextXmlReader will read all context definitions ( you can customize the base filename ). The default is conf/apps-[name].xml. See conf/apps-examples.xml and conf/apps-admin.xml -- Host name=migraworld.com Context path= reloadable=true trusted=false crossContext=true docBase=/var/www/users/resadmin/aaaonlinux/www.aaaonlinux.com/htdocs / /Host Host name=www.migraworld.com Context path= reloadable=true trusted=false crossContext=true docBase=/var/www/users/resadmin/aaaonlinux/www.aaaonlinux.com/htdocs / /Host ** ITEM 2) Extract from our apache conf file. ** VirtualHost 64.239.13.68 DocumentRoot /var/www/users/resadmin/aaaonlinux/www.aaaonlinux.com/htdocs ServerName www.aaaonlinux.com ServerAlias migraworld.com ScriptAlias /cgi-bin/ /var/www/users/resadmin/aaaonlinux/www.aaaonlinux.com/cgi-bin/ TransferLog /var/www/users/resadmin/aaaonlinux/logs/access_log ErrorLog //var/www/users/resadmin/aaaonlinux/logs/error_log Directory /var/www/users/resadmin/aaaonlinux/www.aaaonlinux.com/htdocs Options +Includes +ExecCGI /Directory /VirtualHost ** Currently we have to use a port based access only. ie http://aaaonlinux.com:8080/abc.jsp Please let us know how we can proceed in setting up the above up so that we can directly access it as http://aaaonlinux.com/abc.jsp regds rajesh - Original Message - From: Jacob Kjome [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, March 02, 2003 11:44 AM Subject: Re: INDIANNIC : CONFIGURING TOMCAT WITHOUT PORT 8080 You can do one of two things... 1. Change the http1.1 connector in the server.xml to listen to port 80 rather than 8080 2. If you also use Apache to front Tomcat, then comment out the http1.1 connector and just use the jk connector listening to port 8009 (by default). Requests are routed through Apache to Tomcat as needed based on the configuration you set up for the jk connector. Jake At 10:31 AM 3/2/2003 +0530, you wrote: Dear friends i need to configure tomcat so that i can access it without using the port 8080 i am running tomcat (on port 8080) along with apache (on port 80) on redhat linux Ii am running tomcat on windows with IIS and I was successful in using the iis redirector dll which redirects all jsp and servlet queries directly to tomcat. basically what we wish to do is access jsp / servlets in the following manner http://mydomain.com/hello.jsp instead of http://mydomain.com:8080/hello.jsp if possible kindly help us. Please assume that we only basice knowledge about apache and tomcat and send us as much details as possible regds rajesh - 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]
JspC
Hi, I have managed to run the jsp compiler jspc.bat against a bunch of jsp files. This produced a load of java servlet code that I now need to compile with javac - correct? However when I compile these source files generated from jspc I get the following error: handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext cannot be applied to (java.lang.Throwable) if (pageContext != null) pageContext.handlePageException(t); ^ Has anyone come across this before? Is there anything I can do to solve the problem? Whilst on the same note: These jsps where stored in two directories i.e. / /secure but when I run jspc the out put is in one directory i.e. / - is this correct? What do I need to do to the web.xml file to deploy these compiled jsp' ? What happens when a jsp has the following or similar ... jsp:include page=/secure/commonDisplay.jsp/ the file /secure/commonDisplay.jsp doesn't really exist in that form, now it is a class file, and as I said above resides in / do I need to change the jsp:include / tag on every jsp page or can I add some kind of alias in web.xml to map /secure/commonDisplay.jsp to the class file produced in / Hope this makes sense. Your help is most appreciated. Regards. Matt
forward request to static html page loses path for included images?
hi, i am forwarding a request to a static html page that has some pictures included using IMG SRC=images/help1.jpeg ... and using request.getRequestDispatcher(/help.html).forward(request,response);. the static html file file comes back sans images. but pointing a browser to http://tayek.com:8080/feb/help.html works fine. seems like the path that the static page inherits is hosed somehow. is there some way to set that path? thanks --- ray tayek http://tayek.com/ actively seeking mentoring or telecommuting work vice chair orange county java users group http://www.ocjug.org/ hate spam? http://samspade.org/ssw/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: INDIANNIC : CONFIGURING TOMCAT WITHOUT PORT 8080
Hmm You know, I haven't used Tomcat-3.3 in so long, I'm not sure I'd be of any help. There are lots of HowTo's for Tomcat-4.x.x out there for using mod_jk and such. The main things you need are: 1. Apache with mod_jk.so 2. mod_jk.conf and workers.properties 3. An include line in Apache's httpd.conf for the mod_jk.conf file 4. JkMount statements in mod_jk.conf here is my workers.properties (keep in mind I am using Windows, so modify as needed)... workers.tomcat_home=$(CATALINA_HOME) workers.java_home=$(JAVA_HOME) ps=\ worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 worker.ajp13.cachesize=8 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp13 worker.inprocess.type=jni worker.inprocess.class_path=$(workers.tomcat_home)$(ps)server${ps}lib$(ps)catalina.jar worker.inprocess.cmd_line=start worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)server$(ps)jvm.dll worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr Here are the relevant sections of my mod_jk.conf... IfModule !mod_jk.c LoadModule jk_module modules/mod_jk.dll /IfModule JkWorkersFile C:/Java/Apache/Jakarta/Tomcat-4.1.18/conf/jk/workers.properties JkLogFile C:/Java/Apache/Jakarta/Tomcat-4.1.18/logs/mod_jk.log JkLogLevel info JkLogStampFormat [%a %b %d %H:%M:%S %Y] VirtualHost localhost ServerName localhost JkMount /mycontext ajp13 JkMount /mycontext/* ajp13 /VirtualHost here is the relevant part of my httpd.conf Include C:/java/apache/jakarta/tomcat-4.1.8/conf/jk/mod_jk.conf If you need more info than this, then look to the Tomcat-3.3 docs or look at the many sites offering advice on mod_jk and jk2 setup... http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.2/doc/ http://atlassw1.phy.bnl.gov/jakarta-tomcat/ http://www.galatea.com/flashguides/ http://www.johnturner.com/howto http://www.cnr.berkeley.edu/~salazar/apache_tomcat.html http://bruno.vernay.free.fr/HowTo/Apache-tomcat/bWebServer/references.html Jake At 05:19 PM 3/2/2003 +0530, you wrote: hi jacob thank you for replying to us. we would like to bother you a little more in getting this perfectly right. There are two items listed below. We are using Tomcat 3.3a we have the following files in the directory called jk mod_jk.conf obj.conf workers.properties mod_jk.conf-jni uriworkermap.properties wrapper.properties ITEM 1) An extract from server.xml located in : /usr/local/jakarta-tomcat3.3a please find below an extract of our server.xml enclosed between ** ** Ajp12Connector port=8007 / !-- Apache AJP13 support (mod_jk) Parameter address defines network interface this Interceptor binds to. Add it if you want to bind to just 127.0.0.1. address=127.0.0.1 Parameter tomcatAuthentication, controls if Tomcat honors ( and uses ) auth done in HTTP Server or not, when true Tomcat does not use in any way auth information provided by the HTTP Server. true is the default. tomcatAuthentication=false -- Ajp13Connector port=8009 / !-- Context definitions can be placed here ( not recommended ) or in separate files. The ContextXmlReader will read all context definitions ( you can customize the base filename ). The default is conf/apps-[name].xml. See conf/apps-examples.xml and conf/apps-admin.xml -- Host name=migraworld.com Context path= reloadable=true trusted=false crossContext=true docBase=/var/www/users/resadmin/aaaonlinux/www.aaaonlinux.com/htdocs / /Host Host name=www.migraworld.com Context path= reloadable=true trusted=false crossContext=true docBase=/var/www/users/resadmin/aaaonlinux/www.aaaonlinux.com/htdocs / /Host ** ITEM 2) Extract from our apache conf file. ** VirtualHost 64.239.13.68 DocumentRoot /var/www/users/resadmin/aaaonlinux/www.aaaonlinux.com/htdocs ServerName www.aaaonlinux.com ServerAlias migraworld.com ScriptAlias /cgi-bin/ /var/www/users/resadmin/aaaonlinux/www.aaaonlinux.com/cgi-bin/ TransferLog /var/www/users/resadmin/aaaonlinux/logs/access_log ErrorLog //var/www/users/resadmin/aaaonlinux/logs/error_log Directory /var/www/users/resadmin/aaaonlinux/www.aaaonlinux.com/htdocs Options +Includes +ExecCGI /Directory /VirtualHost ** Currently we have to use a port based access only. ie http://aaaonlinux.com:8080/abc.jsp Please let us know how we can proceed in setting up the above up so that we can directly access it as http://aaaonlinux.com/abc.jsp regds rajesh - Original Message - From: Jacob Kjome [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, March 02, 2003 11:44 AM Subject: Re: INDIANNIC : CONFIGURING TOMCAT WITHOUT PORT 8080 You can do one of two things... 1. Change the http1.1 connector in the server.xml to listen to port 80 rather than 8080 2. If you also use Apache to front Tomcat, then comment out the http1.1
startup errors
Hi, there, I am using Tomcat 4.1.18, Java 1.4.1_01, and Apache 1.5.I ( OS windows 2000), while running \tomcat\bin\startup.bat, there is the following errors, I cannot understand it. Thanks in any helps. Yan 2003-3-2 10:43:23 org.apache.commons.modeler.Registry loadRegistry Info: Loading registry information 2003-3-2 10:43:23 org.apache.commons.modeler.Registry getRegistry Info: Creating new Registry instance 2003-3-2 10:43:24 org.apache.commons.modeler.Registry getServer Info: Creating MBeanServer 2003-3-2 10:43:25 org.apache.coyote.http11.Http11Protocol init Info: Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1.18 2003-3-2 10:43:28 org.apache.commons.digester.Digester fatalError SEVERE: Parse Fatal Error at line 1 column 8: The processing instruction target ma tching [xX][mM][lL] is not allowed. org.xml.sax.SAXParseException: The processing instruction target matching [xX][ mM][lL] is not allowed. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Er rorHandlerWrapper.java:232) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWra pper.java:213) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter. java:375) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter. java:305) at org.apache.xerces.impl.XMLScanner.reportFatalError(XMLScanner.java:12 69) at org.apache.xerces.impl.XMLScanner.scanPIData(XMLScanner.java:623) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanPIData(XMLD ocumentFragmentScannerImpl.java:644) at org.apache.xerces.impl.XMLScanner.scanPI(XMLScanner.java:598) at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispat ch(XMLDocumentScannerImpl.java:702) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XM LDocumentFragmentScannerImpl.java:329) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav a:525) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav a:581) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.j ava:1175) at org.apache.commons.digester.Digester.parse(Digester.java:1495) at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextCo nfig.java:282) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:63 9) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi g.java:243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl eSupport.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3 567) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase .java:821) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80 7) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep loyer.java:257) at org.apache.catalina.core.StandardHost.install(StandardHost.java:772) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:502 ) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:410 ) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java :368) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl eSupport.java:166) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347 ) at org.apache.catalina.core.StandardService.start(StandardService.java:4 97) at org.apache.catalina.core.StandardServer.start(StandardServer.java:218 9) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) 2003-3-2 10:43:29 org.apache.coyote.http11.Http11Protocol start Info: Starting Coyote HTTP/1.1 on port 8080 2003-3-2 10:43:29 org.apache.jk.common.ChannelSocket init Info: JK2:
Tomcat Manager Stopped Working
Hello, I have been using Tomcat 4.1.12 on Windows XP pro as my development machine for months now. I have an Ant project that rebuilds my source code and uses the org.apache.catalina.ant.ReloadTask to reload my web app. Like I said, I've been using this for months with no trouble, now this morning it stopped working. I can't for the life of me figure out what could have changed. The ant project fails with the error: java.io.FileNotFoundException: http://localhost/manager/reload?path=%2F If I just try to go to http://localhost/manager with my browser I get a 404 error. (I have Tomcat configured to use port 80 rather than 8080) http://localhost/admin/index.jsp gets me a 404 error too. I haven't tried the admin page in months though, so I don't know for sure when that broke. My webapp still works though! http://localhost takes me to the webapp in my ${TOMCAT_HOME}/webapps/ROOT directory, and it works fine. Does anybody have any ideas of what I could have done to break the manager? Or any ideas what I could check to get it working? Thanks for any help, Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JDBC connectivityfor ORACLE !!!
If you're installing oracle on windows, the easiest thing is to just do the default install. Once you get familiar, you can then create a new database with optimized settings for tablespaces and so on. peter Swapneel Dange [EMAIL PROTECTED] wrote:hey MIKE ! may be this is a DUMB QUESTION but all this procedure for installation remains tha same irrespective of the fact that i am trying to implement ORACLE under XP. right ? Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Mike Jackson Reply-To: Tomcat Users List To: Tomcat Users List Subject: RE: JDBC connectivityfor ORACLE !!! Date: Thu, 27 Feb 2003 08:56:19 -0800 Also, http://www.orafaq.com is extremely helpful for answering questions. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Thursday, February 27, 2003 8:53 AM To: Tomcat Users List Subject: RE: JDBC connectivityfor ORACLE !!! To Install Oracle: Create three groups, sysdba, sysoper, oinstall Create an oracle user, default group oinstall, member of sysdba and sysoper Setup environment variables for ORACLE_HOME, and ORACLE_SID Change the PATH to include $ORACLE_HOME/bin Get the CDROMS Mount the CDROMS cd / As the oracle user ./runInstaller.sh For the most part follow the instructions, but do not, and I repeat do not let it to the copy the inital database, in fact when you get the option have it install the software only. After oracle is installed run dbca Create the initial database, take the option that creates a database without using a template As for JDBC drivers, I've never had a problem with the oracle drivers, except in their JDBC2.0 connection pooling, so as long as you use another connection pool I'd use the standard ones. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Swapneel Dange [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 9:50 PM To: [EMAIL PROTECTED] Subject: JDBC connectivityfor ORACLE !!! hi MIKE, PENG , CHONG !! guys, there seems to be a problem here for me with the database implementation. After all the discussion i was all set to implemenent the database as a FILESYSTEM only but my BOSS insists that ORACLE shoudl be implemented. Can somebody of u enlighten me with the SITES and README files about impplementing ORACLE under TOMCAT umbrella and what could be the DRIVERS i need to know before i plunge into the deep sea of ORACLE implementation. some of the drivers suggested are the ones made by DATATAKE, JBOSS (i guess, i may be wrong)or the default drivers which come up with the ORACLE. Comments are really awaited ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Mike Jackson Reply-To: Tomcat Users List To: Tomcat Users List Subject: RE: JDBC ORACLE implementation ! Date: Tue, 25 Feb 2003 09:20:31 -0800 SQLPlus is part of oracle. You can't do sqlplus without oracle. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Swapneel Dange [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 11:20 PM To: [EMAIL PROTECTED] Subject: Re: JDBC ORACLE implementation ! hey CHONG , PENG ! i think i have really given up the idea of putting up ORACKLE for my support. after all this discussion, i just think that there i sno urgent need for me to take up a HUMONGOUS taks of using ORACLE and i guess i will IMPLEMENT the SQLPLUS or the FILESYSTEM as my alternatives to the DATABASE application. but in the end i would really like to know as to between SQLPLUS or FILESYSTEM, which will be convinient for me to HANDLE string stripping , string comparison and all that stuff ! ( BTW, i have really started implementing the FILESYSTEM to a good level ) do commment about this ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Chong Yu Meng Reply-To: Tomcat Users List To: Tomcat Users List Subject: Re: JDBC ORACLE implementation ! Date: Tue, 25 Feb 2003 07:06:31 +0800 I think if you take Oracle installation, configuration and maintenance out of the picture, you definitely have a much more workable plan. I agree with Peter, in that designing the tables and application logic are going to be tough. I once wrote a servlet that processed CDR data from a Cisco switch, and I spent a lot of time getting the logic just right. If I understand you correctly, Swapneel, you need the database for storage only, correct ? Are you planning to use the Oracle text
RE: Tomcat Manager Stopped Working
Note to self. Don't delete admin.xml and manager.xml. :) I downloaded a new version of Tomcat and compared the directories. Its a long story as to how those got deleted, but it probably happened a couple days ago and the problem didn't show up till I restarted Tomcat today. Thanks anyway, Dave -Original Message- From: Dave Dutcher [mailto:[EMAIL PROTECTED] Sent: Sunday, March 02, 2003 3:06 PM To: [EMAIL PROTECTED] Subject: Tomcat Manager Stopped Working Hello, I have been using Tomcat 4.1.12 on Windows XP pro as my development machine for months now. I have an Ant project that rebuilds my source code and uses the org.apache.catalina.ant.ReloadTask to reload my web app. Like I said, I've been using this for months with no trouble, now this morning it stopped working. I can't for the life of me figure out what could have changed. The ant project fails with the error: java.io.FileNotFoundException: http://localhost/manager/reload?path=%2F If I just try to go to http://localhost/manager with my browser I get a 404 error. (I have Tomcat configured to use port 80 rather than 8080) http://localhost/admin/index.jsp gets me a 404 error too. I haven't tried the admin page in months though, so I don't know for sure when that broke. My webapp still works though! http://localhost takes me to the webapp in my ${TOMCAT_HOME}/webapps/ROOT directory, and it works fine. Does anybody have any ideas of what I could have done to break the manager? Or any ideas what I could check to get it working? Thanks for any help, Dave - 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]
Xvfb and Tomcat 4.1.18 tripping over each other
Hi all, I've got a headless Solaris 8 workstation (Ultra 5) running Tomcat 4.1.18- my web application does some image manipulation via AWT and renders a GIF to the client. To do the rendering I had to install the virtual framebuffer Xvfb. What I've found is that immediately after I've accessed the web application, I can no longer telnet into the machine. All other services are running fine- ftp, http (apache), tomcat, etc. Telnet answers, but no prompt comes up, and then a few seconds later it closes the connection. If I log on via the console over a serial port, and issue a 'kill -1' to the Xvfb process, then everything works again, except that tomcat has then crashed! Nothing at all appears in the catalina logs. Has anyone seen this sort of behavior? I'm rather confused as to what is going on. Thanks for any help! Best regards, Richard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
MD5 password in JNDI Resource
How to use MD5 encrypted password in the server.xml for DBCP Datasources? I use tomcat 4.1.18 Standalone on linux. Thanks for any help, Georges +==+ | | | Georges Roux| | URL : georgesroux.pacageek.org | | email : [EMAIL PROTECTED] | +==+ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Xvfb and Tomcat 4.1.18 tripping over each other
Just to clarify- it makes no difference if I actually access the portion of the web application using AWT- in fact, all I have to do is START tomcat and I can no longer telnet in to the box. In my tomcat setenv.sh file I have set the display variable to talk to Xvfb, i.e. DISPLAY=:1.0 export DISPLAY This is really got me stumped! -Richard - Original Message - From: Richard Sand [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, March 03, 2003 1:19 AM Subject: Xvfb and Tomcat 4.1.18 tripping over each other Hi all, I've got a headless Solaris 8 workstation (Ultra 5) running Tomcat 4.1.18- my web application does some image manipulation via AWT and renders a GIF to the client. To do the rendering I had to install the virtual framebuffer Xvfb. What I've found is that immediately after I've accessed the web application, I can no longer telnet into the machine. All other services are running fine- ftp, http (apache), tomcat, etc. Telnet answers, but no prompt comes up, and then a few seconds later it closes the connection. If I log on via the console over a serial port, and issue a 'kill -1' to the Xvfb process, then everything works again, except that tomcat has then crashed! Nothing at all appears in the catalina logs. Has anyone seen this sort of behavior? I'm rather confused as to what is going on. Thanks for any help! Best regards, Richard - 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: forward request to static html page loses path for included images?
At 05:02 AM 3/2/03 -0800, you wrote: hi, i am forwarding a request to a static html page that has some pictures included using IMG SRC=images/help1.jpeg ... and using request.getRequestDispatcher(/help.html).forward(request,response);. the static html file file comes back sans images. but pointing a browser to http://tayek.com:8080/feb/help.html works fine. seems like the path that the static page inherits is hosed somehow. is there some way to set that path? ,,, this how is works apparently from looking at java servlet programming 2nd edition by jason hunter and william crawford pp 371-375. he suggests using sendRedirect() instead. thanks --- ray tayek http://tayek.com/ actively seeking mentoring or telecommuting work vice chair orange county java users group http://www.ocjug.org/ hate spam? http://samspade.org/ssw/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: INDIANNIC : CONFIGURING TOMCAT WITHOUT PORT 8080
hi thanks a lot regds rajesh - Original Message - From: Jacob Kjome [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, March 02, 2003 10:14 PM Subject: Re: INDIANNIC : CONFIGURING TOMCAT WITHOUT PORT 8080 Hmm You know, I haven't used Tomcat-3.3 in so long, I'm not sure I'd be of any help. There are lots of HowTo's for Tomcat-4.x.x out there for using mod_jk and such. The main things you need are: 1. Apache with mod_jk.so 2. mod_jk.conf and workers.properties 3. An include line in Apache's httpd.conf for the mod_jk.conf file 4. JkMount statements in mod_jk.conf here is my workers.properties (keep in mind I am using Windows, so modify as needed)... workers.tomcat_home=$(CATALINA_HOME) workers.java_home=$(JAVA_HOME) ps=\ worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 worker.ajp13.cachesize=8 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp13 worker.inprocess.type=jni worker.inprocess.class_path=$(workers.tomcat_home)$(ps)server${ps}lib$(ps)ca talina.jar worker.inprocess.cmd_line=start worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)server$(ps )jvm.dll worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr Here are the relevant sections of my mod_jk.conf... IfModule !mod_jk.c LoadModule jk_module modules/mod_jk.dll /IfModule JkWorkersFile C:/Java/Apache/Jakarta/Tomcat-4.1.18/conf/jk/workers.properties JkLogFile C:/Java/Apache/Jakarta/Tomcat-4.1.18/logs/mod_jk.log JkLogLevel info JkLogStampFormat [%a %b %d %H:%M:%S %Y] VirtualHost localhost ServerName localhost JkMount /mycontext ajp13 JkMount /mycontext/* ajp13 /VirtualHost here is the relevant part of my httpd.conf Include C:/java/apache/jakarta/tomcat-4.1.8/conf/jk/mod_jk.conf If you need more info than this, then look to the Tomcat-3.3 docs or look at the many sites offering advice on mod_jk and jk2 setup... http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.2 /doc/ http://atlassw1.phy.bnl.gov/jakarta-tomcat/ http://www.galatea.com/flashguides/ http://www.johnturner.com/howto http://www.cnr.berkeley.edu/~salazar/apache_tomcat.html http://bruno.vernay.free.fr/HowTo/Apache-tomcat/bWebServer/references.html Jake At 05:19 PM 3/2/2003 +0530, you wrote: hi jacob thank you for replying to us. we would like to bother you a little more in getting this perfectly right. There are two items listed below. We are using Tomcat 3.3a we have the following files in the directory called jk mod_jk.conf obj.conf workers.properties mod_jk.conf-jni uriworkermap.properties wrapper.properties ITEM 1) An extract from server.xml located in : /usr/local/jakarta-tomcat3.3a please find below an extract of our server.xml enclosed between ** ** Ajp12Connector port=8007 / !-- Apache AJP13 support (mod_jk) Parameter address defines network interface this Interceptor binds to. Add it if you want to bind to just 127.0.0.1. address=127.0.0.1 Parameter tomcatAuthentication, controls if Tomcat honors ( and uses ) auth done in HTTP Server or not, when true Tomcat does not use in any way auth information provided by the HTTP Server. true is the default. tomcatAuthentication=false -- Ajp13Connector port=8009 / !-- Context definitions can be placed here ( not recommended ) or in separate files. The ContextXmlReader will read all context definitions ( you can customize the base filename ). The default is conf/apps-[name].xml. See conf/apps-examples.xml and conf/apps-admin.xml -- Host name=migraworld.com Context path= reloadable=true trusted=false crossContext=true docBase=/var/www/users/resadmin/aaaonlinux/www.aaaonlinux.com/htdocs / /Host Host name=www.migraworld.com Context path= reloadable=true trusted=false crossContext=true docBase=/var/www/users/resadmin/aaaonlinux/www.aaaonlinux.com/htdocs / /Host ** ITEM 2) Extract from our apache conf file. ** VirtualHost 64.239.13.68 DocumentRoot /var/www/users/resadmin/aaaonlinux/www.aaaonlinux.com/htdocs ServerName www.aaaonlinux.com ServerAlias migraworld.com ScriptAlias /cgi-bin/ /var/www/users/resadmin/aaaonlinux/www.aaaonlinux.com/cgi-bin/ TransferLog /var/www/users/resadmin/aaaonlinux/logs/access_log ErrorLog //var/www/users/resadmin/aaaonlinux/logs/error_log Directory /var/www/users/resadmin/aaaonlinux/www.aaaonlinux.com/htdocs Options +Includes +ExecCGI /Directory /VirtualHost ** Currently we have to use a port based access only. ie http://aaaonlinux.com:8080/abc.jsp Please let us know how we can proceed in setting up the above up so that we can directly access it as http://aaaonlinux.com/abc.jsp regds rajesh -
Re: Taglib: Unable to find setter method for attribute: required
Thorsten == Thorsten Giesecke [EMAIL PROTECTED] writes: Thorsten After changing from Tomcat 3.2.3 to Tomcat 4.1.18 the following Thorsten exception occurs: Thorsten Unable to find setter method for attribute: required Thorsten The TLD defines the required attribute as optional, Thorsten the setter method (setRequired(String ...)) is available Thorsten and with Tomcat 3.2.3 there are no problems. Thorsten Are there any changes in the JSP/Taglib definition, which Thorsten permits the use of required as an attribute name? Thorsten Is it required, that every taglib class has it's own setter Thorsten method or can i use an abstract parent class which implements Thorsten this setter method once? can this result in problems with Thorsten introspection? If you haven't solved this yet, it could be useful to see your actual tag class and the TLD. There should be no problem with implementing a setter method in the base class, as opposed to the derived class. -- === David M. Karr ; Java/J2EE/XML/Unix/C++ [EMAIL PROTECTED] ; SCJP; SCWCD - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
IIS, JK2, Tomcat = Nada
Thanks in advance for any wisdom. Not having a great experience thus far with Tomcat IIS together...(JK2 doesn't work, and POST's don't work with JK!). Configured per spec, and the following message is always shown in the Windows Event Log: Error: [jk_shm.c (333)]: shm.init(): No file Below are the config files. And yes, the virtual directory and ISAPI filters are set up properly... === jk2.properties === # Override the default port for the socketChannel channelSocket.port=8009 == === workers2.properties === # Example socket channel, override port and host. [channel.socket:localhost:8009] port=8009 host=127.0.0.1 # define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 [uri:/servlet/*] worker=ajp13:localhost:8009 # The same, but for /demo [uri:/*.irpt] worker=ajp13:localhost:8009 [uri:/examples/*] worker=ajp13:localhost:8009 == === registry entries === Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\2.0] serverRoot=C:\\Program Files\\Apache Group\\Tomcat 4.1 extensionUri=/jakarta/isapi_redirector2.dll workersFile=C:\\Program Files\\Apache Group\\Tomcat 4.1\\conf\\workers2.properties logLevel=DEBUG - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AJP Connector - Broken Pipe Error
Hi, I am using Tomcat 4.0.6. You said AJP Connector has been re-written in Tomcat 4.1.18. So if I upgrade the version, would my problem get resolved?? Regards, ..Raj -- On Sat, 01 Mar 2003 16:05:06 Sven Köhler wrote: 2003-02-28 13:24:35 Ajp13Processor[8009][42] process: invoke java.io.IOException: Broken pipe at java.net.SocketOutputStream.socketWrite(Native Method) at java.net.SocketOutputStream.write(SocketOutputStream.java:96) at org.apache.ajp.Ajp13.send(Ajp13.java:525) at org.apache.ajp.RequestHandler.finish(RequestHandler.java:501) at org.apache.ajp.Ajp13.finish(Ajp13.java:395) at org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:196) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551) at java.lang.Thread.run(Thread.java:484) i have those errors too, although they don't occur that often. btw: which tomcat version do you use? it must be 4.0 or something, because the AJP13 connector has been rewritten in Tomcat 4.1.x. i'm using tomcat 4.1.18. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Need a new email address that people can remember Check out the new EudoraMail at http://www.eudoramail.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
IIS, JK, Tomcat POST always fails
Attached is the trace from iis_redirector.log indicating where it hangs...100% repeatable, on every single system I've tried. Windows XP, IIS 5.1, Tomcat 4.1, latest IIS redirector for JK. === [Sun Mar 02 22:29:10 2003] [jk_isapi_plugin.c (696)]: HttpFilterProc started [Sun Mar 02 22:29:10 2003] [jk_isapi_plugin.c (759)]: In HttpFilterProc Virtual Host redirection of /localhost/servlet/Illuminator [Sun Mar 02 22:29:10 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Sun Mar 02 22:29:10 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/localhost/servlet/Illuminator' [Sun Mar 02 22:29:10 2003] [jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Sun Mar 02 22:29:10 2003] [jk_isapi_plugin.c (765)]: In HttpFilterProc test Default redirection of /servlet/Illuminator [Sun Mar 02 22:29:10 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Sun Mar 02 22:29:10 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/servlet/Illuminator' [Sun Mar 02 22:29:10 2003] [jk_uri_worker_map.c (502)]: jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 - /servlet/ [Sun Mar 02 22:29:10 2003] [jk_isapi_plugin.c (775)]: HttpFilterProc [/servlet/Illuminator] is a servlet url - should redirect to ajp13 [Sun Mar 02 22:29:10 2003] [jk_isapi_plugin.c (838)]: HttpFilterProc check if [/servlet/Illuminator] is points to the web-inf directory [Sun Mar 02 22:29:10 2003] [jk_isapi_plugin.c (878)]: HttpExtensionProc started [Sun Mar 02 22:29:10 2003] [jk_worker.c (132)]: Into wc_get_worker_for_name ajp13 [Sun Mar 02 22:29:10 2003] [jk_worker.c (136)]: wc_get_worker_for_name, done found a worker [Sun Mar 02 22:29:10 2003] [jk_isapi_plugin.c (913)]: HttpExtensionProc got a worker for name ajp13 [Sun Mar 02 22:29:10 2003] [jk_ajp_common.c (1391)]: Into jk_worker_t::get_endpoint [Sun Mar 02 22:29:10 2003] [jk_ajp_common.c (1435)]: In jk_endpoint_t::ajp_get_endpoint, time elapsed since last request = 27 seconds [Sun Mar 02 22:29:10 2003] [jk_ajp_common.c (1107)]: Into jk_endpoint_t::service [Sun Mar 02 22:29:10 2003] [jk_ajp_common.c (295)]: Into ajp_marshal_into_msgb [Sun Mar 02 22:29:10 2003] [jk_ajp_common.c (432)]: ajp_marshal_into_msgb - Done [Sun Mar 02 22:29:10 2003] [jk_ajp_common.c (640)]: sending to ajp13 #530 [Sun Mar 02 22:29:10 2003] [jk_ajp_common.c (882)]: ajp_send_request 2: request body to send 59 - request body to resend 0 [Sun Mar 02 22:29:10 2003] [jk_isapi_plugin.c (514)]: Into jk_ws_service_t::read - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 4.1.18 crashes on Win2K
Hi, We recently deployed our organisations new web site on Covalent Apache Faststart 2.3 (Apache 2.0.44) and Tomcat 4.1.18 on two Windows 2000 boxes connected using mod_jk 1.2.2-beta-1 on the Covalent box and CoyoteConnector with the JkCoyoteHandler protocol handler on the Tomcat box. We are using Sun's J2SDK 1.4.1_01 for our JVM. Ever since we launched the site we have been having serious stability problems with Tomcat and occasional Covalent problems. When a crash occurs the Tomcat process disappears completely without a trace. We cannot find anything in the logs that suggests what caused the crash. The crashes occur with more regularity the traffic the server gets. At it's worst Tomcat has fallen over every 30 minutes, at it's best it has stayed up overnight. We have spent over a week trying to solve this problem with no success. We have noticed some patterns. Over time, Tomcat's connections increase, at some point in time Tomcat appears to stop releasing its connections (we can see them building up using netstat which shows the socket connection as established). Eventually Tomcat runs out of connections and eventually crashes. Our CoyoteConnector is set to have 600 maxConnections. I've seen similar problems posted to this list but nothing quite the same as our setup. We are pretty stumped by this, any help solving it would be greatly appreciated. Thanks, Cam. P.S. Sorry about the enormous sig that gets attached to my email! This email may contain legally privileged information and is intended only for the addressee. It is not necessarily the official view or communication of the New Zealand Qualifications Authority. If you are not the intended recipient you must not use, disclose, copy or distribute this email or information in it. If you have received this email in error, please contact the sender immediately. NZQA does not accept any liability for changes made to this email or attachments after sending by NZQA. All emails have been scanned for viruses and content by MailMarshal. NZQA reserves the right to monitor all email communications through its network. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
CLIENT CERT AUTHENTICATION with JDNI- or JDBCReal
Hello, im using tomcat 4.1.18 on WinXP with MemoryRealm based CLIENT CERT AUTHENTICATION and want to use LDAP- or JDBCRealm for client authentication. Password authentication works on both, LDAP(openLDAP) and DB(MS SQL7). Did someone managed to setup this authentication method with mentioned realms, or knows where to find additional information. Thanks in advandce Patrick Flohr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
sendRedirect problem
Hi All I have to keep a project alive, while my colleague is away... So I don't know much about tomcat and now there comes a problem where I can't find a solution. Maybe one of you can help me out here (I hope it is not dumb, at least I was not able to find any helpful information on the web): The project is realized with jsp and we are getting a strange JasperException while executing response.sendRedirect(...) Here is the code snippet where the exception gets thrown: if ((request_return.length() 0)) { System.out.println(sessionAddress_ProductTree + # + request_return); String temp = response.encodeUrl(sessionAddress_ProductTree + # + request_return); System.out.println(temp); response.sendRedirect(temp);// - Here the exception happens Remarkable is, the html file which the server sends to clients, when this exception happens is always 16kBytes long (16384 Bytes) and then it stops abruptly. I'm running tomcat (stand-alone) version 4.1.18-LE-jdk14 with JDK 1.4 on Windows 2000 Here is the Output on the server console including the exception: AcquireDocuments.jsp#305 AcquireDocuments.jsp#305 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException org.apache.jasper.JasperException at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530) at java.lang.Thread.run(Thread.java:536) Any help? Regards, Herbert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]