Re: Newb question - How to install TomCat on MacOS Tiger 10.4
Thomas K. Cheriyan Jr. wrote: Hey guys, Im trying to get the latest version of TomCat on my laptop which has has MacOS Tiger 10.4. I have also installed the latest version of Java. I read the installation guide on the Jakarta site as well as many others online and they haven't worked at all. If somebody is an expert at this and has some time to help me out, I would really appreciate it. -- Thomas K. Cheriyan Jr. Email: [EMAIL PROTECTED] Cell: 516-526-1443 http://wiki.apache.org/myfaces/Tomcat_5%2e5%2e9_configuration?highlight=%28tomcat%29 last section, that is what I found out on how to get it up and running (hence I wrote this), the latest upgrade hosed it again, I have not had time to look into the issue yet, I assume something dumped another binary into jaspers path of nor return ;-), but Tomcat itself works, it is just problematic that jasper has this weird behavior I do not know if the newer jikes jasper has the same problems since I usually switch to the javac jasper due to 5.5.9s problems with JDK5.0 constructs. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat 5.5.9 jdk 1.5 howto
The howto on the website is slightly wrong here is the exact howto first of all remove all jikes related jars from the tomcat lib dir, second add tools.jar from the jdk to the tomcat classpath third add ant.jar from an ant installation to the classpath fourth replace the servlet entry from the conf/web.xml with following: servlet servlet-namejsp/servlet-name servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class init-param param-namefork/param-name param-valuefalse/param-value /init-param init-param param-namexpoweredBy/param-name param-valuefalse/param-value /init-param init-param param-namecompiler/param-name param-valuejavac1.5/param-value /init-param init-param param-namecompilerSourceVM/param-name param-value1.5/param-value /init-param init-param param-namecompilerTargetVM/param-name param-value1.5/param-value /init-param load-on-startup3/load-on-startup /servlet and now startup tomcat with a working jdk 1.5 and pages should compile also see http://marc.theaimsgroup.com/?l=tomcat-userm=111660999324714w=2 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Vedr.: Pls give suggestions in tomcat tunning in production environment
I agree, I have an inhouse portal which is accessed by a few hundred people constantly because it is their main entry desktop, to the whole intranet. It is fast, with the occasional GC hickkups. The most likely thing is a performance issue either in the app or db layer. The most likely possibility to resolve that issue is to increase ram, check the access algorithms which go down into the db layer, check the db layer for performance problems and add caching if needed (good db layers should handle that themselves) The thing is, if you have 500 people accessing a site, you do not get too many hits at the same time, it serving the data should be a no issue for tomcat, it can handle bigger loads, and most likely the main problem is application specific and even more likely database specific. I do not thin that extensive clustering would help in this case. Werner Thomas Nybro Bolding wrote: IMHO most tuning potential is in the code of the developer rather than in the servlet container. Use DBCP and avoid looking up contexts and datasources all the time but simply return these from a utility database class. If possible cache data rather than update this upon each request (for instance user settings and authorization, dates and other distinct common values to be shown in combo boxes, ...) That being said Tomcat of course may take a performance hit when GC kicks in so to finetune the Tomcat settings use a profiler to investigate it while running and change thread no., size etc. as well as JVM parameters accordingly. Further you may want to disable automatic recompilation when JSP changes as well as precompile your JSP. /Thomas Ayyanar Inbamohan [EMAIL PROTECTED] 13-07-2005 13:46 Besvar venligst til Tomcat Users List Til:tomcat-user@jakarta.apache.org, tomcat-dev@jakarta.apache.org, [EMAIL PROTECTED] cc: Vedr.: Pls give suggestions in tomcat tunning in production environment Hi all, Now our webapp is running in production environment, nearly 500 people can ask it simultaneously, so the server performance is very low in all aspects. so, anyone help me, how to tune the tomcat for the production environment. increasing memory and ... I am using apache at the front to serve the pages. thanks, inr. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=Arial___ Vi goer opmaerksom paa, at denne e-mail kan indeholde fortrolig information. Hvis du ved en fejltagelse modtager e-mailen, beder vi dig venligst informere afsender om fejlen ved at bruge svar-funktionen. Samtidig beder vi dig slette e-mailen i dit system uden at videresende eller kopiere den. Selv om e-mailen og ethvert vedhaeftet bilag efter vores overbevisning er fri for virus og andre fejl, som kan paavirke computeren eller it-systemet, hvori den modtages og laeses, aabnes den paa modtagerens eget ansvar. Vi paatager os ikke noget ansvar for tab og skade, som er opstaaet i forbindelse med at modtage og bruge e-mailen. ___ Please note that this message may contain confidential information. If you have received this message by mistake, please inform the sender of the mistake by sending a reply, then delete the message from your system without making, distributing or retaining any copies of it. Although we believe that the message and any attachments are free from viruses and other errors that might affect the computer or IT system where it is received and read, the recipient opens the message at his or her own risk. We assume no responsibility for any loss or damage arising from the receipt or use of this message. /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat 5.5 and jdk 5.0 jsp compiler question
Hi I am moving a project developed for tomcat 5.0 to 5.5, I run into a small JDK 5.0 related problem, for some strange kind of reason the internal tomcat compiler does not accept autoboxing: example error occurred at line: 95 in the jsp file: /inc/page_header.jsp Generated servlet error: Type mismatch: cannot convert from Boolean to boolean An error occurred at line: 108 in the jsp file: /inc/page_header.jsp Generated servlet error: Type mismatch: cannot convert from Boolean to boolean Which is a clear indication for this behavior, since it works in JDK 5.0 and Tomcat 5.0 without problems. The reason for this must be the newly integrated IBM compiler, which I probably have to force to JDK 5.0 sourcelevel. Does anybody know how to either have jasper using the normal javac or forcing the internal compiler to go for 5.0 sources? Thanks for your help Werner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 5.5 and jdk 5.0 jsp compiler question
Never mind I found the answer on the archive... http://marc.theaimsgroup.com/?l=tomcat-userm=111660999324714w=2 additionally to that, you have to add the tools.jar to your classpath otherwise the javac compiler cannot be triggered. That is it basically. Werner Werner Punz wrote: Hi I am moving a project developed for tomcat 5.0 to 5.5, I run into a small JDK 5.0 related problem, for some strange kind of reason the internal tomcat compiler does not accept autoboxing: example error occurred at line: 95 in the jsp file: /inc/page_header.jsp Generated servlet error: Type mismatch: cannot convert from Boolean to boolean An error occurred at line: 108 in the jsp file: /inc/page_header.jsp Generated servlet error: Type mismatch: cannot convert from Boolean to boolean Which is a clear indication for this behavior, since it works in JDK 5.0 and Tomcat 5.0 without problems. The reason for this must be the newly integrated IBM compiler, which I probably have to force to JDK 5.0 sourcelevel. Does anybody know how to either have jasper using the normal javac or forcing the internal compiler to go for 5.0 sources? Thanks for your help Werner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat JDK 1.5 and osx bug
Does anyone know how to get around this bug, I have the same problem, but I do not really want to remove the files in the extensions dir, too many files I use are affected from that one: http://lists.apple.com/archives/Java-dev/2005/May/msg00760.html Basically the bug is, that jasper assumes everything in the OSX jdk extensions dir is a zip and thus starts to choke on binaries. Does anyone know the fix for this one. I basically have the problem with the latest Tomcat as well. Werner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat JDK 1.5 and osx bug
not possible, since those are binaries and prebuilt by osx... Werner Mark Winslow wrote: Rebuild the files as zip? --- Werner Punz [EMAIL PROTECTED] wrote: Does anyone know how to get around this bug, I have the same problem, but I do not really want to remove the files in the extensions dir, too many files I use are affected from that one: http://lists.apple.com/archives/Java-dev/2005/May/msg00760.html Basically the bug is, that jasper assumes everything in the OSX jdk extensions dir is a zip and thus starts to choke on binaries. Does anyone know the fix for this one. I basically have the problem with the latest Tomcat as well. Werner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Who can translate english into chinese
Sorry for misusing this list. I'm looking for someone who can and will translate two english sentences into chinese. If you are willing to do so please mail me off list. [EMAIL PROTECTED] Sorry again for misusing this list. Kind regards, Werner van Mook - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Is Tomcat is an application server ?
IMHO : Tomcat is a web application server, not an application server. It is true you can extend tomcat and make it work like an application server. Tomcat and just Tomcat is no application server. It's like saying that an engine is a car. Which is not true! You can extend this engine and build things around it that will make the complete thing you have build a car. But the engine still is an engine and not a car. You could also have build a motorbike which uses an engine. An application server can use a web front end hosted by tomcat but it is not a requirement. An application server can also have native clients (written in any programming language). An application server has standard ejb support. If you have build a web application with tomcat than you have build yourself a j2ee application without using an application server, which is perfectly legal. Regards Werner van Mook - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Datasource/jstl problem
Hi, I followed the example on : http://jakarta.apache.org/tomcat/ tomcat-5.0-doc/jndi-datasource-examples-howto.html The only thing I changed was jdbc/TestDB into jdbc/weblog. on al locations I could find. If I look at my page (http://www.karnhuis.nl/gastenboek.jsp) The ${row.name} and other such thingies do not seem to be 'rendered'. I use tomcat 5.0.19 and java version 1.4.2_04 I can't find anything that I did wrong so maybe one of you will have any idea of what went wrong. I get an exception saying that jdbc is not bound to this context. snippets : gastenboek.jsp %@ taglib uri=http://java.sun.com/jsp/jstl/sql; prefix=sql % %@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c % sql:query var=rs dataSource=jdbc/weblog select name, datum, tekst, id from gb order by id desc limit 10 /sql:query c:forEach var=row items=${rs.rows} div id='entry' h4 class='title' ${row.name} wrote on /h4 h5 class='date' ${row.datum} /h5 ${row.tekst} /div /c:forEach web.xml resource-ref descriptionDB Connection/description res-ref-namejdbc/weblog/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref server.xml Host name=www.karnhuis.nl appBase=xxx unpackWARs=true autoDeploy=true Context path= docBase=. Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=karnhuis_log. suffix=.txt timestamp=true/ Resource name=jdbc/weblog auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/weblog parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value10/value /parameter parameter nameremoveAbandoned/name valuetrue/value /parameter parameter nameremoveAbandonedTimeout/name value60/value /parameter parameter namemaxWait/name value1/value /parameter parameter nameusername/name valueThis is a secret/value /parameter parameter namepassword/name valueyou don't wanna know/value /parameter parameter namedriverClassName/name valueorg.gjt.mm.mysql.Driver/value /parameter parameter parameter nameurl/name valuejdbc:mysql://www.karnhuis.nl:3306/weblog/ value /parameter /ResourceParams /Context /Host Kind regards Werner van Mook - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat and Eclipse IDE
I'm using the Eclipse IDE with the Web Tools Platform. It is running my version of Tomcat 5, but I can't find any documentation on how it is running? I want to use Tomcat for authentication, and certain things need to be set in the right context in server.xml, but I can't figure out how the WPT uses Tomcat. It looks like it isn't copying files over to the webapps/ dir, but it doesn't like it has modified docBase either I know this is not purely a Tomcat question, but due to lack of documentation I'm hoping someone is on the same path I am... - Nic. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and Eclipse IDE solved
Windows XP, Eclipse 3.1, Web Platform Tools 1.0M2, Tomcat v5.5. Web Platform Tools is just that - it allows you you Eclipse for java web development. Inside it, I select a server, and show it the location. All my console output, browser is inside Eclipse. Actually, I did find the solution, buried a few folders deep inside Eclipse is its own copy of 'server.xml', and I can see it pointing to my Workspace docbase. Didn't poke around enough. Thanks, - Nic. Benoit - Althosting.fr wrote: What is your system and configuration ? Ben - Original Message - From: Nic Werner [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Sunday, January 09, 2005 10:23 PM Subject: Tomcat and Eclipse IDE I'm using the Eclipse IDE with the Web Tools Platform. It is running my version of Tomcat 5, but I can't find any documentation on how it is running? I want to use Tomcat for authentication, and certain things need to be set in the right context in server.xml, but I can't figure out how the WPT uses Tomcat. It looks like it isn't copying files over to the webapps/ dir, but it doesn't like it has modified docBase either I know this is not purely a Tomcat question, but due to lack of documentation I'm hoping someone is on the same path I am... - Nic. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Does Windows needs special settings?
Hi, I'm using CVS to bring in my whole project which includes Tomcat. I can grab this just fine on any linux implementation and Tomcat will start, but on Windows I get this message: E:\-\bincatalina run (Using to get error output) Using CATALINA_BASE: e:\\ Using CATALINA_HOME: e:\---\ Using CATALINA_TMPDIR: e:\\temp Using JAVA_HOME: c:\progra~1\java\jdk1.5.0 Exception in thread main java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap -- But if I run the Tomcat installer, and actually install Tomcat using the 'Start Tomcat' icon, it starts with no problem. Does the installer do something different with Windows that I can't just copy the files and run them? I'd like to keep Tomcat bundled with the rest of the code and not have to do a special install for Windows. - Nic. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Session based object, accessible to all classes.
Hi, Eh, store the object in the session with session.setAttribute(name, object) retrieve it with (cast-to your object)session.getAttribute(name). Or is this a too simple answer for your problem ? Regards Werner On Sep 28, 2004, at 10:23 AM, Pawson, David wrote: My tomcat 5.0.27 app currently generates session based data in a number of classes. Is there a common way of sharing a data structure across these classes? I want to instantiate it when a user logs in, add to it from one class, then retrieve data from another class. This data will vary across users, hence is not common to all sessions. TIA, Regards DaveP. snip here * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
virtual hosting - no apache
Hi All, I want tomcat to serve multiple domains. Say I have two domains www.karnhuis.nl and www.connecties.com They both have a different web site. (no alias). I would like tomcat to serve both sites. How can I accomplish this? I tried this in my server.xml : Server . Service name=Catalina Connector port 80 . / Engine name=Catalina defaultHost=localhost debug=0 Host name=localhost debug=0 appBase=webapps /Host Host name=www.karnhuis.nl debug=0 appBase=/some/dir/not/in/webApps /Host /Engine /Service /Server If I have a look at the manager application I can't see www.karnhuis.nl. I can't find any reference to www.karnhuis.nl in any of the tomcat logfiles. So what am I doing wrong? I don't want to use apache in front of tomcat. Kind Regards Werner van Mook Java Lead Developer / Trainer Connecties Voor Internet BV i.o. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
error starting tomcat
Hi, I have the following error starting tomcat and don't know how to solve it. Jun 9, 2004 2:09:24 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 80 Jun 9, 2004 2:09:25 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 3461 ms Jun 9, 2004 2:09:25 PM org.apache.naming.NamingContext lookup WARNING: Unexpected exception resolving reference java.io.FileNotFoundException: /usr/local/tomcat/conf/tomcat-users.xml.new (Permission denied) I have the standard server.xml file. But then removed lots of the comments. User authentication is defined as : Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved /Resource ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams Realm className=org.apache.catalina.realm.UserDatabaseRealm debug=0 resourceName=UserDatabase/ I don't know where : /usr/local/tomcat/conf/tomcat-users.xml.new is defined. I'm using redhat fedore core 1, java 1.4.2_04 the tomcat-users.xml file is owned by root : root Tomcat is started at boot time by using jsvc where the tomcat user is tomcat5. Can one of you tell me what's wrong? Kind regards, Werner van Mook Java Lead Developer / Trainer Connecties Voor Internet BV i.o. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error starting tomcat
It is not complaining about the port number. I've seen the error if your not root. It's not the same. Starting tomcat manual as root gives me the same error. Sorry wrong answer ;-) On Jun 9, 2004, at 2:08 PM, Ben Souther wrote: You need to be root when you start tomcat in order to bind to port 80 (or any port 1024). The jsvc will then lower it's user status to tomcat_user ( or whatever user you have configured). On Wednesday 09 June 2004 08:10 am, Werner van Mook wrote: Hi, I have the following error starting tomcat and don't know how to solve it. Jun 9, 2004 2:09:24 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 80 Jun 9, 2004 2:09:25 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 3461 ms Jun 9, 2004 2:09:25 PM org.apache.naming.NamingContext lookup WARNING: Unexpected exception resolving reference java.io.FileNotFoundException: /usr/local/tomcat/conf/tomcat-users.xml.new (Permission denied) I have the standard server.xml file. But then removed lots of the comments. User authentication is defined as : Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved /Resource ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams Realm className=org.apache.catalina.realm.UserDatabaseRealm debug=0 resourceName=UserDatabase/ I don't know where : /usr/local/tomcat/conf/tomcat-users.xml.new is defined. I'm using redhat fedore core 1, java 1.4.2_04 the tomcat-users.xml file is owned by root : root Tomcat is started at boot time by using jsvc where the tomcat user is tomcat5. Can one of you tell me what's wrong? Kind regards, Werner van Mook Java Lead Developer / Trainer Connecties Voor Internet BV i.o. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Souther F.W. Davison Company, Inc. This e-mail message, and any accompanying documents, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure, distribution or copying is prohibited. If you are not the intended recipient, please contact our office by email or by telephone at (508) 747-7261 and immediately destroy all copies of the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Werner van Mook Java Lead Developer / Trainer Connecties Voor Internet BV i.o. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error starting tomcat
Nope does not work. Somehow it seems to delete the newly created file. I've also tried to make the normal tomcat-user.xml file tomcat5 accessable. It changes it back to root : root Don't when, dont' know why On Jun 9, 2004, at 3:41 PM, Benjamin Armintor wrote: Have you tried copying conf/tomcat-users.xml to conf/tomcat-users.xml.new to see if that fixes the problem? The log seems pretty straightforward. If creating the desired file fixes things, then you can just grep for conf/tomcat-users.xml.new to find the configuration issue. Benjamin J. Armintor Systems Analyst ITS-Systems: Mainframe Group University of Texas - Austin tele: (512) 232-6562 email: [EMAIL PROTECTED] -Original Message- From: Werner van Mook [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 09, 2004 8:36 AM To: Tomcat Users List Subject: Re: error starting tomcat It is not complaining about the port number. I've seen the error if your not root. It's not the same. Starting tomcat manual as root gives me the same error. Sorry wrong answer ;-) On Jun 9, 2004, at 2:08 PM, Ben Souther wrote: You need to be root when you start tomcat in order to bind to port 80 (or any port 1024). The jsvc will then lower it's user status to tomcat_user ( or whatever user you have configured). On Wednesday 09 June 2004 08:10 am, Werner van Mook wrote: Hi, I have the following error starting tomcat and don't know how to solve it. Jun 9, 2004 2:09:24 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 80 Jun 9, 2004 2:09:25 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 3461 ms Jun 9, 2004 2:09:25 PM org.apache.naming.NamingContext lookup WARNING: Unexpected exception resolving reference java.io.FileNotFoundException: /usr/local/tomcat/conf/tomcat-users.xml.new (Permission denied) I have the standard server.xml file. But then removed lots of the comments. User authentication is defined as : Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved /Resource ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams Realm className=org.apache.catalina.realm.UserDatabaseRealm debug=0 resourceName=UserDatabase/ I don't know where : /usr/local/tomcat/conf/tomcat-users.xml.new is defined. I'm using redhat fedore core 1, java 1.4.2_04 the tomcat-users.xml file is owned by root : root Tomcat is started at boot time by using jsvc where the tomcat user is tomcat5. Can one of you tell me what's wrong? Kind regards, Werner van Mook Java Lead Developer / Trainer Connecties Voor Internet BV i.o. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Souther F.W. Davison Company, Inc. This e-mail message, and any accompanying documents, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure, distribution or copying is prohibited. If you are not the intended recipient, please contact our office by email or by telephone at (508) 747-7261 and immediately destroy all copies of the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Werner van Mook Java Lead Developer / Trainer Connecties Voor Internet BV i.o. - 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] Werner van Mook Java Lead Developer / Trainer Connecties Voor Internet BV i.o. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ¿how to use tomcat.sh for starting Tomcat automatically at boot time?
Hi, I have this script : #!/bin/bash start() { /usr/local/tomcat/bin/startup.sh } stop() { /usr/local/tomcat/bin/shutdown.sh } It is called tomcat. It is placed in /etc/rc.d/init.d It is chmod 755 it is chown root:root In /etc/rc.d/rc3.d I did : ln -s ../init.d/tomcat S50tomcat ln -s ../init.d/tomcat K50tomcat At my machine tomcat is installed at : /usr/local/tomcat It works for me. I have Redhat Fedora. Kind Regards Werner On May 4, 2004, at 8:32 PM, Matt Raible wrote: Maybe this will help: http://www.raibledesigns.com/tomcat/boot-howto.html Matt -Original Message- From: Joao Medeiros [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 12:15 PM To: Tomcat Users List Subject: Re: ¿how to use tomcat.sh for starting Tomcat automatically at boot time? Ing. Enrique de la Barrera Perez wrote: Hello Tomcat users. I have tried different ways to configure my linux to startup tomcat at boot time automatically without results. In the Tomcat setup documentation thats ships with the installation i can see this: (The file $CATALINA_HOME/bin/jsvc/native/tomcat.sh can be used as a template for starting Tomcat automatically at boot time from /etc/init.d) I am using redhat 9, tomcat 5, jdk 1.4.2. and my tomcat runns very well, just that i need to start/stop mannually ¿anybody there have been in a similar situation than mine? ¿could somebody help me on what should a do to achieve this? Regards ebarrera I'm not using RH Linux now but off the top of my head I seem to remember there is a tool that allows you to register services and control startup/shutdown options. If you're familiar with Windows OS it looks pretty much like the Services manager. Sorry if it's not much of a help but at least gives you a hint. --JM - 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] Werner van Mook Java Lead Developer / Trainer Connecties Voor Internet BV i.o. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Hi
Hi, I need to setup a tomcat environmet manually, I run Redhat 7.3 and I want toinstall from scratch not using the rpm's but use the src's build them and install. How do I do that? Any suggestions will be very welcome :-) Thanks in advance Wernert http://www.de-rommelmarkt.nl http://www.de-rommelmarkt.nl/
What's wrong with this picture.
Hi all, I created a jsp with this tag : ina:displayResponse / I included a taglib directive and did all things I should do to get it working. The class for this tag is : import java.io.IOException; import java.util.Enumeration; import javax.servlet.http.HttpServletRequest; import javax.servlet.jsp.JspException; import javax.servlet.jsp.JspWriter; import javax.servlet.jsp.PageContext; import javax.servlet.jsp.tagext.TagSupport; import util.Message; public class DisplayResponse extends TagSupport { // The next line is line 54 Enumeration e = pageContext.getAttributeNamesInScope(PageContext.REQUEST_SCOPE); public int doStartTag() throws JspException { JspWriter out = pageContext.getOut(); try { if(e.hasMoreElements()) { out.println((String)e.nextElement()); } else { out.println(It has no more elements.); } out.println(Just transformed o into message.); } catch (IOException ioe) { ioe.printStackTrace(); } return SKIP_BODY; } } If I run this I get a nullPointerException on the line defining the enumeration. see : javax.servlet.ServletException org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageCont extImpl.java:864) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex tImpl.java:800) org.apache.jsp.view_jsp._jspService(view_jsp.java:67) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:311) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java: 301) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) root cause java.lang.NullPointerException tags.DisplayResponse.(DisplayResponse.java:54) sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorA ccessorImpl.java:39) sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons tructorAccessorImpl.java:27) java.lang.reflect.Constructor.newInstance(Constructor.java:274) java.lang.Class.newInstance0(Class.java:308) java.lang.Class.newInstance(Class.java:261) org.apache.jasper.runtime.TagHandlerPool.get(TagHandlerPool.java:161) org.apache.jsp.view_jsp._jspx_meth_ina_displayResponse_0(view_jsp.java: 78) org.apache.jsp.view_jsp._jspService(view_jsp.java:59) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:311) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java: 301) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) If I would change it to someting like : Enumeration e = ((HttpServletRequest)pageContext.getRequest()).getAttributeNames(); I get the expected result. see : message Just transformed o into message. According to the docs getAttributeNamesInScope can only throw : java.lang.IllegalArgumentException or java.lang.IllegalStateException So is this a bug? Or did I miss something? Werner van Mook Java Lead Developer / Trainer Connecties Voor Internet
Tomcat 4 or 5?
Through projects and self-interest I've been using Tomcat 4 a lot more. While I've looked at the differences, can someone explain to me what the big differences are in english? I'm under the impression that 4 and 5 are different paths, not just an upgrade of a previous version, is this true? Thanks, - Nic - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
formbased login question
Before starting on a quest for more knowledge I thought I ask you all, I'm building a web app. A user should be able to login on every page available. So every page has a form with a loginname and password field. The form is formatted correctly for form based login. I'm not using frames! My web.xml contains : login-config auth-methodFORM/auth-method form-login-config form-login-page/*/form-login-page form-error-page/error.html/form-error-page /form-login-config /login-config I'm wondering about the form-login-page tag. How to make it clear to tomcat that every page can be a login page. I haven't tried it yet but I think my solution (/*) will not work. The testingserver DB is broken and we are using JDBCRealm. Who has experience with this and is willing to help me? I would like to know what to fill in in the form-login-page tag or any other way to solve this. Kind regards, Werner van Mook - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jsp deployment
I had a similar problem with my jsp files. I included as the toplines in my jsp files : %@ page contentType=text/html; charset=iso-8859-1 language=java import=java.sql.* errorPage= % !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; These lines are created by dreamweaver I just copied them from a working jsp file to the not working jsp file. This seemed to solve my problems. I don't know why it solved it. To my knowledge every html file becomes a jsp file when you change the extension. Werner On Feb 13, 2004, at 5:13 PM, BAO RuiXian wrote: Jerry Ford wrote: Good suggestions, but, no, didn't work. There are no config issues preventing Tomcat from serving files from my webapp---html and servlets all work. And I know Tomcat is serving jsp files correctly; Tomcat's default examples work. Have you tried run your jsp file directly from Tomcat instead of via Apache? How about you copy one of the jsp files from the example jsp files to this directory to see it still works? I think your problem is just very trivial, somewhere wrong. Best Bao Tomcat simply will not serve my .jsp file regardless of filetype (tried it as .txt). Permissions and file ownership are identical to the permissions of the Tomcat example .jsp files, which do work. I restart Tomcat everytime I make a change. Still get the 404 when I call the jsp, even though the html files in the same directory work fine, as do the servlets in the same webapp space. Jerry Parsons Technical Services wrote: Jerry, Just for a test, change the file name to end with .txt and see if the page is displayed. If it still fails. I would double check the permissions/ownership on that file. If it works, then try a restart. After a restart if it still fails, check your configs for an entry that might be blocking or redirecting the request. Just a novice throwing out ideas. Doug Parsons www.parsonstechnical.com - Original Message - From: Jerry Ford [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, February 12, 2004 2:33 PM Subject: Re: jsp deployment Permissions on the .jsp file are identical to permissions on all of the html, javascript, and servlet class files in the webapp, all of which work: -rw--r--r-- owner/group is jford:user (which is the uid under which tomcat was started). And I know it will serve .jsp's, the Tomcat example .jsp's all work. Jerry QM wrote: : Tomcat chokes when the jsp is requested. I get a 404 : error, the requested resoruce is not available. : : What do I need to configure to get Tomcat to serve the jsp? Chances are it's a permissions issue on the file. (Unless you've tweaked Tomcat's config, it should already be able to serve JSPs.) -QM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Werner van Mook Java Lead Developer / Trainer Connecties Voor Internet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
slowly I'm losing it. JSP not working
Hi all, My configuration is : httpd + mod_jk + tomcat 4.1.24 in httpd.conf I have : IfModule mod_jk.c AddModule mod_jk.c JkWorkersFile /home/tomcat/conf/workers.properties JkLogFile /etc/httpd/logs/mod_jk.log JkLogLevelinfo JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat %w %V %T /IfModule Location ~ .*/WEB-INF/ AllowOverride None deny from all /Location Location ~ .*/META-INF/ AllowOverride None deny from all /Location and : NameVirtualHost 193.195.96.175 VirtualHost 193.195.96.175 ServerName www.connecties.com ServerAdmin admin DocumentRoot /home/sites/home/web RewriteEngine on RewriteCond %{HTTP_HOST}!^193.195.96.175(:80)?$ RewriteCond %{HTTP_HOST}!^www.connecties.com(:80)?$ RewriteRule ^/(.*) http://www.connecties.com/$1 [L,R] RewriteOptions inherit # # The next line is there for mod_jk # JkMount /* ajp13 # # # AliasMatch ^/~([^/]+)(/(.*))? /home/sites/home/users/$1/web/$3 AddHandler cgi-wrapper .cgi AddHandler cgi-wrapper .pl /VirtualHost VirtualHost 193.195.96.175 ServerName www.klepreclame.nl ServerAdmin admin DocumentRoot /home/sites/site2/web RewriteEngine on RewriteCond %{HTTP_HOST}!^193.195.96.175(:80)?$ RewriteCond %{HTTP_HOST}!^www.klepreclame.nl(:80)?$ RewriteRule ^/(.*) http://www.klepreclame.nl/$1 [L,R] RewriteOptions inherit # # The ext line is there for mod_jk # JkMount /* ajp13 # # # AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site2/users/$1/web/$3 AddHandler cgi-wrapper .cgi AddHandler cgi-wrapper .pl /VirtualHost VirtualHost 193.195.96.175 ServerName www.karnhuis.nl ServerAdmin admin DocumentRoot /home/sites/site1/web RewriteEngine on RewriteCond %{HTTP_HOST}!^193.195.96.175(:80)?$ RewriteCond %{HTTP_HOST}!^www.karnhuis.nl(:80)?$ RewriteRule ^/(.*) http://www.karnhuis.nl/$1 [L,R] RewriteOptions inherit # # The next line is there for mod_jk # JkMount /* ajp13 # # # AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site1/users/$1/web/$3 AddHandler cgi-wrapper .cgi AddHandler cgi-wrapper .pl /VirtualHost #Include /usr/jakarta-tomcat-4.1.24/conf/auto/mod_jk.conf There is more in there but I did not copy it in. I also have my server.xml file In there I have 3 Host/Host parts. One for every virtual host. And now the problem. www.klepreclame.nl has been a complete html site. No jsp/servlets in there. There was no JkMount /* ajp13 for this site in my httpd.conf file. I did not have a Host/Host part in my server.xml. The other two sites and this html site were working perfectly. Now I changed the index.html page for www.klepreclame.nl into index.jsp. I added a taglib declaration to the page like : %@ taglib prefix=count uri=http://www.klepreclame.nl/taglib; % as the first line for the index.jsp. I included JkMount /* ajp13 in httpd.conf (as above) and copied one of the Host/Host parts in server.xml and changed it to www.klepreclame.nl wherever necessary Also changed the doc_rot to point to the correct location. If I now start my browser and point it to www.klepreclame.nl/index.jsp It will not be transformed into a servlet. How do I know? Take a look at the source from the page (in the browser) and I can see the taglib declaration. This should not be possible if tomcat would pick it up. I do not get any error messages there is nothing in any log file. Is there someone who can guess (or even better, know) what is going wrong? I think I'm going slightly mad. Please help. Kind regards Werner van Mook - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
OT [was: Re: Starting a different process for each java operation]
Hi, Another question - Can tomcat be run as another user other then root like httpd is? Yes, tomcat can be run as any user you want. Can I continue on this which is OT? Which standard users can start tomcat on port 80? except for root? Regards Werner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat on OS X
Hi all, I know this has to be asked before. I can't browse the mail history. I want to automatically let tomcat start when starting my mac. I created a Tomcat directory in StartupItems in /Library. In this dir I created 2 files : StartupParameters.plist { Description = Tomcat web server; Provides= (Web Container); Requires= (DirectoryServices); Uses= (Disks, NFS); OrderPreference = None; } and a Tomcat file #!/bin/sh ## # Tomcat Web Server ## . /etc/rc.common StartService () { if [ ${TOMCAT:=-NO-} = -YES- ]; then ConsoleMessage Starting Jakarta Tomcat sh /usr/local/tomcat/bin/startup.sh fi } StopService () { ConsoleMessage Stopping Jakarta Tomcat sh /usr/local/tomcat/bin/shutdown.sh } RestartService () { if [ ${TOMCAT:=-NO-} = -YES- ];then ConsoleMessage Restarting Jakarta Tomcat StopService StartService else StopService fi } RunService $1 in /etc/hostconfig I added at the bottom of the file : Tomcat=-YES- All files are owned by root. When I restart my computer I get a message that tomcat is starting. When my computer is completely booted I start Safari (or any other browser) and surf to http://localhost. I get the message that the server is not available.. When doing startup.sh in a terminal window (I included the bin dir in my path) and opening the catalina.out file I see a error message saying that I do not have the permission to open port 80. When I do startup.sh as root there is no problem. I think that it will not start automatically because there is a permission problem. But I can't find any log message that says so. So who can shine his clever light on this? Werner van Mook - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat on OS X
On Jan 30, 2004, at 2:55 PM, Mikaël VAILLANT wrote: It's not a problem with Tomcat but with Mac OS X security. Only webusers can use port 80. Root have all privilege so you don't have problem with it. Hmmm, I seem to remember something like that. So maybe I need to add a user to the www group. This user should be the user that starts all applications in the StartupItems folder. Am I correct? If so then what is the user to add to this group? Kind regards Werner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache Tomcat jk2... is it possible?
Hello! Please take a look at this thread http://www.mail-archive.com/[EMAIL PROTECTED]/msg110822.html In short, the solution is to build mod_jk2 from jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz and not from the sources bundled with tomcat. I had the same problem and it now works. Jörg -- Dipl-Phys. Jörg Werner [EMAIL PROTECTED] Universität Stuttgart 5. physikalisches Institut Telefon: 0711/685-4951 Pfaffenwaldring 57 Telefax: 0711/685-3810 D-70550 Stuttgart Visit our Homepage: http://www.physik.uni-stuttgart.de/institute/pi/5/ index.html My private Homepage: http://schreibubi.pi5.physik.uni-stuttgart.de/ GPG-Key fingerprint: 6630 6A73 7725 483C 1594 1D64 3F92 5251 8710 EDF6 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat cannot fine java classes
Hi, I have the following problem with tomcat 4.1.27: my java classes cannot be found. When I request a JSP which uses a java class, I get messages like this: File not found: 'http://134.xxx.yyy.zzz:8080/learnweb/servlet/learnweb.module.admin.userinterface.web.AdminGroupServlet' In this case the class name is AdminGroupServlet and the corresponding class file it is located in the directory /data/htdocs/learnweb/jakarta-tomcat-4.1.27/webapps/learnweb/WEB-INF/classes/learnweb/module/admin/userinterface/web, however tomcat doesn't seem to resolve the above URL correcotly. I tried to request example JSPs which came with tomcat (in webapps/examples), and they worked, howewer I had no success with my own classes. When I call startup.sh, I get the following messages: Using CATALINA_BASE: /data/htdocs/learnweb/jakarta-tomcat-4.1.27 Using CATALINA_HOME: /data/htdocs/learnweb/jakarta-tomcat-4.1.27 Using CATALINA_TMPDIR: /data/htdocs/learnweb/jakarta-tomcat-4.1.27/temp Using JAVA_HOME: /usr/local/j2sdk1.4.2_02 Using CLASSPATH: /usr/local/j2sdk1.4.2_02/lib/tools.jar:/data/htdocs/learnweb/jakarta-tomcat-4.1.27/bin/bootstrap.jar I tried to add the path to my classes to CLASSPATH in catalina.sh, but after that I could not use tomcat at all. Any ideas, what I am doing wrong? Thanks in advance, Werner Daum - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache 1.3+mod_jk2 and Tomcat 4.1.24 problem
Hi! I'm trying to access a webapp (cocoon) through apache 1.3 and mod_jk. This is not working properly. What I can do is access http://localhost/cocoon/ but not any paths below the cocoon directory (e.g. http://localhost/cocoon/ docs/), for those I get an Error 404. What is going wrong? My workers2.properties looks like this: [logger] level=DEBUG [config:] file=${serverRoot}/conf/workers2.properties debug=1 debugEnv=0 [uriMap:] info=Maps the requests. Options: debug debug=0 # Alternate file logger #[logger.file:0] #level=DEBUG #file=${serverRoot}/logs/jk2.log #[shm:] #info=Scoreboard. Required for reconfiguration and status with multiprocess servers #file=${serverRoot}/logs/jk2.shm #size=100 #debug=0 #disabled=0 [workerEnv:] info=Global server options timing=1 debug=0 # Default Native Logger (apache2 or win32 ) # can be overriden to a file logger, useful # when tracing win32 related issues #logger=logger.file:0 [channel.socket:localhost:8009] info=Ajp13 forwarding over socket debug=0 tomcatId=localhost:8009 [uri:/cocoon/*] info=Example webapp in the default context. [status:] [uri:/jkstatus/*] info=Display status information and checks the config file for changes. group=status: Cheers, Jrg -- Dipl-Phys. Jrg Werner [EMAIL PROTECTED] Universitt Stuttgart 5. physikalisches Institut Telefon: 0711/685-4951 Pfaffenwaldring 57 Telefax: 0711/685-3810 D-70550 Stuttgart Visit our Homepage: http://www.physik.uni-stuttgart.de/institute/pi/5/ index.html My private Homepage: http://schreibubi.pi5.physik.uni-stuttgart.de/ GPG-Key fingerprint: 6630 6A73 7725 483C 1594 1D64 3F92 5251 8710 EDF6 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Why should i use Tomcat vs .NET?
This one is not pro Tomcat. What about vendor locking? If you choose .Net you are bound to Mickeysoft. Can never change or have to do all the work again. You will tie your customers into .Net too. Will it be what they want? If you choose Java/Tomcat you can still run it on Mickeysoft. But then I think you already know this. W. Werner van Mook Java Lead Developer / Trainer Connecties Voor Internet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jsp:include and case problem
On Wednesday, Oct 1, 2003, at 18:54 Europe/Amsterdam, Hua Hou wrote: 2 jsp: A.jsp, b.jsp Inside b.jsp, I have jsp:include page=a.jsp/ In the browser, when I invoke b.jsp, A.jsp is compiled into a_jsp.java and a_jsp.class. My understanding is that jsp is case sensitive, which means A.jsp should never be compiled into a_jsp.java and a_jsp.class, instead, Tomcat should give 404 error. Is there way to prevent Tomcat from compiling A.jsp into a_jsp.java when A.jsp is included using jsp:include? JSP's are case sensitive for it's variables. But what you have is a StringValue. For this to work correctly I think you have to know if your operating system is case sensitive. I think it isn't. That's why you get this behavior. Werner van Mook - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
admin app problems
Hi, I have a server with tomcat 4.1.27 installed. The server is located somewhere else and I can not change any non tomcat software or settings. The server has a admin application to administer the server over the internet. i don't know how this is done. Now tomcat has an admin app itself. It can be reached by something like : http://mydomain.com/admin At least that would be the case if all was normal. Now the admin app of the server itself will be started. I renamed the tomcat admin app to admin2. I renamed the admin.xml file in webapps to admin2.xml and changed the context path to /admin2. When I now use http://mydomain.com/admin2 I start the tomcat admin app and I have to login. All is normal so far. I get the normal page and can choose several items under Resources and User Definitions. When I select one of these items I get an error message 503. In the tomcat log it says : javax.servlet.UnavailableException: MBeanServer is not available Can someone explain to me what this means and how I can solve it ? Sorry for all the noise in the message but I'm not sure what is necessary for an answer. Kind regards Werner van Mook - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Docs
Good day, We are moving over from IIS to Jakarta, but my knowledge of the product is null. I googled around for help, but can not seem to find anything starting from scratch. Does anybody know of a good place to start teaching yourself the product? Need to define three separate sites from the main site. E.g. www.ourdomain.com/site1-site3 Many thanks Regards Werner vd Merwe SAICOM Cpt Linux user #322423 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.0. LE
Zillie, What I have done, is extract the file in the /var directory to /var/Jakarta-tomcat4.0, then just edit the Catalina.sh file to fit your environment. You can extract it by right clicking on the file in X and say extract. Regards Werner vd Merwe SAICOM Cpt Linux user #322423 -Original Message- From: Zille Hassan [mailto:[EMAIL PROTECTED] Sent: 04 August 2003 02:23 PM To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: Tomcat 4.0. LE Dear Philipp Thanks for the help regarding the installation of JDK. Now one more thing, I am sure you would be able to help me out there as well I have got this installer for Tomcat 4.0. How do I install it, the file is called __tar.gz, I can view whats inside the compressed folder but don't know how to install it. Don't see any instal file. So any help would be appreciated. Regards Zille Hassan [EMAIL PROTECTED] United Matbouli Group 1st Floor, Matbouli Plaza PO Box556 Jeddah 21421 Kingdom of Saudi Arabia tel: +966 2 6512111 Ext:1901 fax: +966 2 6571171 -Original Message- From: Philipp Leusmann [mailto:[EMAIL PROTECTED] Sent: Monday, August 04, 2003 2:37 PM To: Tomcat Users List Subject: AW: Many java-processes left after shutdown.sh I?d try sh ./__.rpm.bin -Ursprungliche Nachricht- Von: Zille Hassan [mailto:[EMAIL PROTECTED] Gesendet: Montag, 4. August 2003 13:33 An: Tomcat Users List Betreff: RE: Many java-processes left after shutdown.sh Dear Philipp Since your question is regarding tomcat on linux, so I thought it best to put my question to you as well. I have downloaded the rpm file for the SDK or jdk 1.4. When I see the file on linux machine, I see ___.rpm.bin How do I install it ? Any suggestions ? Zille Hassan [EMAIL PROTECTED] United Matbouli Group 1st Floor, Matbouli Plaza PO Box556 Jeddah 21421 Kingdom of Saudi Arabia tel: +966 2 6512111 Ext:1901 fax: +966 2 6571171 -Original Message- From: Philipp Leusmann [mailto:[EMAIL PROTECTED] Sent: Monday, August 04, 2003 2:23 PM To: [EMAIL PROTECTED] Subject: Many java-processes left after shutdown.sh Hello, when I stop tomcat using shutdown.sh there are still many tomcat-processes running in linux. Is this normal or do I have a configuration problem (contexts are not closed properly)? I use a connection pool to a Mysql-database in my application (BasicDatasourceFactory). Do I have to close these connections somehow manually? Thanks, Philipp - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
setting JkMount
I have apache connected to tomcat through mod_jk. httpd.conf : In my VirtualHost tag I put a : JkMount xxx ajp13 server.xml : Connector debug=0 acceptCount=10 minProcessors=5 maxProcessors=75 port=8009 className=org.apache.ajp.tomcat4.Ajp13Connector/ !-- I think this is not necessary because I use mod_jk and not mod_webapps: -- Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache defaultHost=www.connecties.com debug=0 appBase=webapps ... Host name=www.connecties.com debug=0 unpackWARs=true autoDeploy=true Context path= docBase=/home/sites/home/web/Friss crossContext=true debug=0 reloadable=false trusted=false ... What's the problem : I have a site called www.connecties.com. This contains (until now) only static pages. I'm creating a testsite called Friss. this site contains jsp/servlet end static pages. For testing purposes I want to connect to this site through my www.connecties.com web site. I created a directory, called Friss, in the www.connecties.com directory. In the Friss dir I copied all files belonging to the Friss site inclusive all subdirs. If I point my browser to www.connecties.com I want my original site to show up. If I point my browser to www.connecties.com/Friss I want the Friss site to show up. With the settings as shown above I will get the Friss site when connecting to www.connecties.com. If I change the docBase, in the Context tag, to /home/sites/home/web I get my own site : www.connecties.com. If I would do www.connecties.com/Friss I will get the index.html page from the Friss site but as soon as I get to a jsp/servlet I get compile errors because supporting classes can't be found. (In the previous example I didn't get the errors) Can somebody tell me how to set this up so it will work as I hope it will? Kind regards, Werner van Mook Java Lead Developer / Trainer Connecties Voor Internet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: I'm officially lost with mod_jk
Hi Astrid, I got the source code for mod_jk and build it myself. I did build it myself because I was having problems that could be related to the native parts inside mod_jk. (At leas that's what I came to think). I got the source code from the apache site. http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/ v1.2.4/src/ I got my hints and tips from : http://list.cobalt.com/pipermail/cobalt-developers/2003-March/ 038938.html http://www.zeffie.com/cobalt/developers/0208/162839.html http://www.mail-archive.com/[EMAIL PROTECTED]/msg97705.html http://www.spaceprogram.com/knowledge/tomcat4_on_cobalt_setup.html I know this is all for my own platform but maybe you can do something with it. Kind regards werner van mook On Thursday, July 17, 2003, at 03:08 PM, Astrid Wagner wrote: Hi Werner, Sorry to link into your conversation: It seems that you went through the problems I am about to have (connecting tomcat 4 to Apache 1.3: Solaris 8). Since I haven't gotten a response to a previous email: Where did you get mod_jk ? Why did you have to compile it and can you give more info on what steps you took to do so. Thanks. Astrid Werner van Mook wrote: Gute Morgen Simon, I've compiled the mod_jk myself. it was easy. But I still have problems. I will so you what I have. In httpd.conf : LoadModule jk_module modules/mod_jk.so # MY OWN STUFF HERE IfModule mod_jk.so AddModule mod_jk.c JkWorkersFile /etc/httpd/conf/workers.properties JkLogFile /etc/httpd/logs/mod_jk.log JkLogLevelinfo JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat %w %V %T /IfModule In workers.properties : #Define 1 real worker using ajp13 worker.list=ajp13 #Set properties for worker1(ajp13) worker.ajp13.type=ajp13 worker.ajp13.host=www.connecties.com worker.ajp13.port=8009 In server.xml : on a line after Server portt=8005 .. Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/etc/httpd/modules/mod_jk.so / on a line just after Host name=www.connecties.com . Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false modJk=/etc/httpd/modules/mod_jk.so / And the last part of my server.xml is : !-- Define an Apache-Connector Service -- !-- Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true appBase=webapps acceptCount=10 debug=0/ Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.MemoryRealm / Host name=www.connecties.com Context path= docBase=/home/sites/home/web crossContext=true debug=0 reloadable=false trusted=false /Context /Host /Engine /Service The output of the apache error log is : [Wed Jul 16 09:16:27 2003] [error] (25)Inappropriate ioctl for device: Error while opening the workers, jk will not work [Wed Jul 16 09:16:28 2003] [error] (25)Inappropriate ioctl for device: Error while opening the workers, jk will not work [Wed Jul 16 09:16:29 2003] [notice] Apache/1.3.20 Sun Cobalt (Unix) mod_ssl/2.8.4 OpenSSL/0.9.6b PHP/4.0.3pl1 mod_auth_pam_external/0.1 FrontPage/4.0.4.3 mod_perl/1.25 configured -- resuming no rmal operations [Wed Jul 16 09:16:29 2003] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) This will probably say enough (for some). It tells me that jk will not work. But I don't understand why. Anybody ? On Tuesday, July 15, 2003, at 11:29 PM, Simon Pabst wrote: Seems you're not the only one with that problem on Apache/mod_jk/Tomcat on a cobalt machine: http://www.zeffie.com/cobalt/developers/0208/162839.html Best is propably if you (or they if you don't have permissions to do that) compile mod_jk on that machine and don't use a downloaded binary. How to do that: http://list.cobalt.com/pipermail/cobalt-developers/2003-March/ 038938.html Good luck :-) At 21:03 15.07.2003 +0200, you wrote: HI, I have hired a sun microsystems cobalt machine. It comes pre configured with all kinds of internet software and a special edition of redhat. It is stripped on all sides to give maximum speed and maximum disk space. One of the settings is that you can't do anything with apache apart from restarting it with the httpd command. Or restarting the complete box.. By now I'm trying to figure out if it is possible to have Apache2 on it. But I am depending on the goodwill of my provider for it. Some how I think that having Apache 2 solves some of my problems. We'll see. Kind regards Werner van
Re: I'm officially lost with mod_jk
Gute Morgen Simon, I've compiled the mod_jk myself. it was easy. But I still have problems. I will so you what I have. In httpd.conf : LoadModule jk_module modules/mod_jk.so # MY OWN STUFF HERE IfModule mod_jk.so AddModule mod_jk.c JkWorkersFile /etc/httpd/conf/workers.properties JkLogFile /etc/httpd/logs/mod_jk.log JkLogLevelinfo JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat %w %V %T /IfModule In workers.properties : #Define 1 real worker using ajp13 worker.list=ajp13 #Set properties for worker1(ajp13) worker.ajp13.type=ajp13 worker.ajp13.host=www.connecties.com worker.ajp13.port=8009 In server.xml : on a line after Server portt=8005 .. Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/etc/httpd/modules/mod_jk.so / on a line just after Host name=www.connecties.com . Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false modJk=/etc/httpd/modules/mod_jk.so / And the last part of my server.xml is : !-- Define an Apache-Connector Service -- !-- Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true appBase=webapps acceptCount=10 debug=0/ Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.MemoryRealm / Host name=www.connecties.com Context path= docBase=/home/sites/home/web crossContext=true debug=0 reloadable=false trusted=false /Context /Host /Engine /Service The output of the apache error log is : [Wed Jul 16 09:16:27 2003] [error] (25)Inappropriate ioctl for device: Error while opening the workers, jk will not work [Wed Jul 16 09:16:28 2003] [error] (25)Inappropriate ioctl for device: Error while opening the workers, jk will not work [Wed Jul 16 09:16:29 2003] [notice] Apache/1.3.20 Sun Cobalt (Unix) mod_ssl/2.8.4 OpenSSL/0.9.6b PHP/4.0.3pl1 mod_auth_pam_external/0.1 FrontPage/4.0.4.3 mod_perl/1.25 configured -- resuming no rmal operations [Wed Jul 16 09:16:29 2003] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) This will probably say enough (for some). It tells me that jk will not work. But I don't understand why. Anybody ? On Tuesday, July 15, 2003, at 11:29 PM, Simon Pabst wrote: Seems you're not the only one with that problem on Apache/mod_jk/Tomcat on a cobalt machine: http://www.zeffie.com/cobalt/developers/0208/162839.html Best is propably if you (or they if you don't have permissions to do that) compile mod_jk on that machine and don't use a downloaded binary. How to do that: http://list.cobalt.com/pipermail/cobalt-developers/2003-March/ 038938.html Good luck :-) At 21:03 15.07.2003 +0200, you wrote: HI, I have hired a sun microsystems cobalt machine. It comes pre configured with all kinds of internet software and a special edition of redhat. It is stripped on all sides to give maximum speed and maximum disk space. One of the settings is that you can't do anything with apache apart from restarting it with the httpd command. Or restarting the complete box.. By now I'm trying to figure out if it is possible to have Apache2 on it. But I am depending on the goodwill of my provider for it. Some how I think that having Apache 2 solves some of my problems. We'll see. Kind regards Werner van Mook On Tuesday, July 15, 2003, at 06:58 PM, Simon Pabst wrote: hmm ok, the Apache you are using, did it come in a package or did you built from source? Apache 1.3.20 should have apachectl in the same directory as httpd (i.e. /path/to/apache_1.3.20/bin/apachectl) At 18:47 15.07.2003 +0200, you wrote: Yes I tried to use it but to no avail. unfortunately. Regards Werner van Mook On Tuesday, July 15, 2003, at 06:38 PM, Simon Pabst wrote: did you even try my suggestion? http://www.mail-archive.com/[EMAIL PROTECTED]/ msg97619.html Werner van Mook Java Lead Developer / Trainer Connecties Voor Internet Werner van Mook Java Lead Developer / Trainer Connecties Voor Internet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
compiling connectors on Mac osX
Has any body tried to compile the jakarta-tomcat-connectors-jk-1.2.2 on Mac OSX? I get an error running 'ant native' from the jk directory. apache20: [echo] going into so [so] Compiling 19 out of 19 Compiling /Users/werner/Desktop/jakarta-tomcat-connectors-4.1.24-src/jk/native/ apache-2.0/mod_jk.c [so] Compile failed 1 /Users/werner/Desktop/jakarta-tomcat-connectors-4.1.24-src/jk/native/ apache-2.0/mod_jk.c [so] Command:libtool --mode=compile cc -c -o /Users/werner/Desktop/jakarta-tomcat-connectors-4.1.24-src/jk/build/jk/ apache2/apache-2.0/mod_jk.o -I/Users/werner/Desktop/jakarta-tomcat-connectors-4.1.24-src/jk/native/ common -I/usr/local/apache2/include -I/System/Library/Frameworks/JavaVM.framework/Versions/1.4.1/Home/../ include -g -W -D_REENTRANT -DCHUNK_SIZE=4096 -DREUSE_WORKER -DUSE_APACHE_MD5 /Users/werner/Desktop/jakarta-tomcat-connectors-4.1.24-src/jk/native/ apache-2.0/mod_jk.c [so] Output: [so] StdErr: [so] /usr/bin/libtool: unknown option character `-' in: --mode=compile [so] Usage: /usr/bin/libtool -static [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-sacLT] [so] Usage: /usr/bin/libtool -dynamic [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-o output] [-install_name name] [-compatibility_version #] [-current_version #] [-seg1addr 0x#] [-segs_read_only_addr 0x#] [-segs_read_write_addr 0x#] [-seg_addr_table filename] [-seg_addr_table_filename file_system_path] [-all_load] [-noall_load] BUILD FAILED Any help would be appreciated. kind regards, Werner van Mook Java Lead Developer / Trainer Connecties Voor Internet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: I'm officially lost with mod_jk
Aha, A typo on my side. changed IfModule mod_jk.so into IfModule mod_jk.c Now my error log file displays : [Wed Jul 16 14:43:40 2003] [notice] Apache/1.3.20 Sun Cobalt (Unix) mod_ssl/2.8.4 OpenSSL/0.9.6b PHP/4.0.3pl1 mod_jk/1.2.2 mod_auth_pam_external/0.1 FrontPage/4.0.4.3 mod_perl/1.25 configured -- resuming normal operations This looks good. At least to me. Now I only can't access the requested pages. If I do www.connecties.com:8080/Friss/ I get the correct index.html page. If I do www.connecties.com/Friss/ I get a 404 doc. not found. this is what it says in the error logfile: [Wed Jul 16 14:44:02 2003] [error] [client 213.17.78.218] File does not exist: /home/sites/home/web/Friss/index.html that's right because it's not there. It is located in my webapps dir inside tomcat. Any idea's ? Kind regards Werner On Wednesday, July 16, 2003, at 02:26 PM, Simon Pabst wrote: Your JK Stuff in httpd.conf looks a bit wrong to me, and the error means that workers.properties is either not found or not loaded, try this: httpd.conf: #For Apache 1.x additional modules should be normally in apache/libexec dir, not in modules as in your config (unless you got Apache 2 now?) IfModule !mod_jk.c LoadModule jk_module /etc/httpd/modules/mod_jk.so #On recent Apache you don't need the following line, but on yours you do propably AddModule mod_jk.c /IfModule # Dont' think IfModule works with mod_jk.so like in your config, you need mod_jk.c there IfModule mod_jk.c JkWorkersFile /etc/httpd/conf/workers.properties JkLogFile /etc/httpd/logs/mod_jk.log JkLogLevel info ... /IfModule workers.properties: workers.java_home=/path/to/java ps=/ worker.list=ajp13 # Use localhost or IP-Address (if Tomcat is on remote machine) for the ajp13 connection host worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 Also check your httpd.conf with /path/to/httpd -t /path/to/httpd.conf (you need the binary httpd for this, not the directory) (does same as apachectl configtest) That ioctl error looks bad, if it still persists then, i would try to build Apache from source too, then mod_jk again Tomcat Users List [EMAIL PROTECTED] schrieb am 16.07.03 09:30:29: Gute Morgen Simon, I've compiled the mod_jk myself. it was easy. But I still have problems. I will so you what I have. In httpd.conf : LoadModule jk_module modules/mod_jk.so # MY OWN STUFF HERE IfModule mod_jk.so AddModule mod_jk.c JkWorkersFile /etc/httpd/conf/workers.properties JkLogFile /etc/httpd/logs/mod_jk.log JkLogLevelinfo JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat %w %V %T /IfModule In workers.properties : #Define 1 real worker using ajp13 worker.list=ajp13 #Set properties for worker1(ajp13) worker.ajp13.type=ajp13 worker.ajp13.host=www.connecties.com worker.ajp13.port=8009 In server.xml : on a line after Server portt=8005 .. Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/etc/httpd/modules/mod_jk.so / on a line just after Host name=www.connecties.com . Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false modJk=/etc/httpd/modules/mod_jk.so / And the last part of my server.xml is : !-- Define an Apache-Connector Service -- !-- Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true appBase=webapps acceptCount=10 debug=0/ Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.MemoryRealm / Host name=www.connecties.com Context path= docBase=/home/sites/home/web crossContext=true debug=0 reloadable=false trusted=false /Context /Host /Engine /Service The output of the apache error log is : [Wed Jul 16 09:16:27 2003] [error] (25)Inappropriate ioctl for device: Error while opening the workers, jk will not work [Wed Jul 16 09:16:28 2003] [error] (25)Inappropriate ioctl for device: Error while opening the workers, jk will not work [Wed Jul 16 09:16:29 2003] [notice] Apache/1.3.20 Sun Cobalt (Unix) mod_ssl/2.8.4 OpenSSL/0.9.6b PHP/4.0.3pl1 mod_auth_pam_external/0.1 FrontPage/4.0.4.3 mod_perl/1.25 configured -- resuming no rmal operations [Wed Jul 16 09:16:29 2003] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) This will probably say enough (for some). It tells me that jk will not work. But I don't understand why. Anybody ? On Tuesday, July 15, 2003, at 11:29 PM, Simon Pabst wrote: Seems you're not the only one with that problem on Apache
Re: I'm officially lost with mod_jk
I realized after sending my previous mail that I didn't have any JkMount directives. I'm currently in the process of creating them. when I have any problems again I will let you know. Regards werner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[SOLVED] I'm officially lost with mod_jk
I would like to thank all who helped me with solving my problems. it finally works. I think that the biggest problem was me making a STUPID typo in the IfModule... tag. Kind Regards Werner van Mook Java Lead Developer / Trainer Connecties Voor Internet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
I'm still officially lost with mod_jk
Hi, I changed some settings as some of you suggested. Still no luck. - remove JkMount from global configuration. JkMount directives are VirtualHost-specific. It's removed. - verify the ServerName in httpd.conf matches the name in your Host container in server.xml Done. - change your worker name to ajp13 (worker1 is probably OK but since it doesn't matter, there's no reason not to use ajp13 and in some cases the name ajp13 makes a difference) Done. - remove the extra stuff from workers.properties...you only need .list, .host, .type, and .port. Done. - check contents of your JK log file...it is typically pretty specific, telling you exactly what is wrong. Can't find it ! At least not in the location I thought it would be. I did set it in httpd.conf didn't I? What I did do is look at catalina.out I found these lines : INFO: JK2: ajp13 listening on /0.0.0.0:8009 Jul 15, 2003 8:42:53 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=4/771 config=/usr/jakarta-tomcat-4.1.24/conf/jk2.properties In my humble opinion it says that JK is running and using jk2.properties. I never put anything in this file. Should I haven done that? Kind regards Werner Here are my files : I have apache 1.3.x with tomcat 4.1.24 I installed mod_jk in httpd.conf I put : LoadModule jk_module modules/mod_jk.so . . . # MY OWN STUFF HERE IfModule mod_jk.so AddModule mod_jk.c JkWorkersFile /etc/httpd/conf/workers.properties JkLogFile /var/log/httpd/mod_jk.log This is the location of the logfile. Right? JkLogLevelinfo JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat %w %V %T # JkMount /Friss/* worker1 /IfModule In workers.properties I have : #Define 1 real worker using ajp13 worker.list=ajp13 #Set properties for worker1(ajp13) worker.ajp13.type=ajp13 worker.ajp13.host=localhost worker.ajp13.port=8009 # worker.ajp13.lbfactor=50 # worker.ajp13.cahcesize=10 # worker.ajp13.cache_timeout=600 # worker.ajp13.socket_keepalive=1 # worker.ajp13.socket_timeout=300 In the webapps dir I created a dir called Friss wich contains a WEB_INF dir and a index.html file. When I restart tomcat and apache I want to request : www.connecties.com/Friss. I suspected to get the index.html file from the Friss webapp. Instead I got a 404 document not found. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JK2 problems
Hi Again, after a not succesfull attempt to get mod_jk working I'm now trying to get mod_jk2 to work. Apache 1.3.20 tomcat 4.1.24 linux customized version of RedHat 2.2.16C35_III It's a sun cobalt box somewhere in europe. This means it's not in my room so I can't touch the box or do anything with it. Only remote access is possible. httpd.conf additions : LoadModule jk2_module modules/mod_jk2.so IfModule mod_jk2.so AddModule mod_jk2.c JKWorkersFile /etc/httpd/conf/workers.properties /IfModule worker2.properties : [shm] info=Scoreboard. Required see tomcat book pg 116 file=/etc/httpd/logs/shm.file size=100 debug=0 disabled=0 #my server is not a localhost # or is it localhost because apache and tomcat run on the same server? [channel.socket:localhost:8009] info=Ajp13 forwarding over socket debug=0 port=8009 host=127.0.0.1 # define the worker [status:status] [uri:/jkstatus/*] info=Display status information and check the config file for changes worker=status:status # define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 #The webapp I want to connect to is running on www.connecties.com:8080/Friss #Is this mapping correct? # Uri mapping [uri:/Friss/*] worker=ajp13:localhost:8009 debug=1 the generated jk2_log logfile contains : ( info) [jk_logger_file.c (217)]: Level DEBUG 0 ( info) [jk_uriEnv.c (211)]: uriEnv.setAttribute() the worker directive is depriciated ( info) [jk_uriEnv.c (211)]: uriEnv.setAttribute() the worker directive is depriciated ( info) [jk_logger_file.c (177)]: Initializing log file /etc/httpd/logs/jk2.log (debug) [jk_uriMap.c (337)]: uriMap.init() Fixing Host * (debug) [jk_uriMap.c (423)]: uriMap: fix uri (null) context (null) (debug) [jk_uriMap.c (423)]: uriMap: fix uri /jkstatus/* context (null) (debug) [jk_uriMap.c (423)]: uriMap: fix uri /Friss/* context (null) (debug) [jk_uriMap.c (423)]: uriMap: fix uri (null) context (null) (debug) [jk_uriMap.c (423)]: uriMap: fix uri / context / (debug) [jk_uriEnv.c (367)]: uriEnv.init() prefix mapping /Friss/=ajp13:localhost:8009 (debug) [jk_uriEnv.c (386)]: uriEnv.init() uri:/Friss/* host=* uri=/Friss/* type=1 ctx=(null) prefix=/Friss/ suffix=(null) ( info) [jk_workerEnv.c (403)]: workerEnv.init() ok /etc/httpd/conf/workers2.properties Here is catalina.out : Jul 15, 2003 1:14:57 PM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Jul 15, 2003 1:14:57 PM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Jul 15, 2003 1:15:00 PM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Jul 15, 2003 1:15:04 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1.24 Jul 15, 2003 1:15:22 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 Jul 15, 2003 1:15:22 PM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /0.0.0.0:8009 Jul 15, 2003 1:15:23 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=4/869 config=/usr/jakarta-tomcat-4.1.24/conf/jk2.properties I have changed nothing in server.xml, jk2.properties or any other file that I can think of. Is there somewhere somebody who can hold my hand and fix it with/for me? I need it up and running somewhere next week. Kind regards Werner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JK2 problems
Hi John, Thanx for your response. I did all that is in your HOWTO. I still have no luck with it. I downloaded : mod_jk-1.3-eapi.so from jakarta.apacheetc and renamed it to mod_jk.so. Could you please have look ? Or some else of course. This is a piece of my localhost_log file : 2003-07-15 15:17:02 StandardHost[www.connecties.com]: Installing web application at context path /Friss from URL file:/usr/jakarta-tomcat-4.1.24/webapps/Friss 2003-07-15 15:17:02 WebappLoader[/Friss]: Deploying class repositories to work directory /usr/jakarta-tomcat-4.1.24/work/Standalone/www.connecties.com/Friss 2003-07-15 15:17:02 WebappLoader[/Friss]: Deploy class files /WEB-INF/classes to /usr/jakarta-tomcat-4.1.24/webapps/Friss/WEB-INF/classes 2003-07-15 15:17:03 ContextConfig[/Friss]: Configured an authenticator for method FORM 2003-07-15 15:17:03 StandardManager[/Friss]: Seeding random number generator class java.security.SecureRandom 2003-07-15 15:17:03 StandardManager[/Friss]: Seeding of random number generator has been completed 2003-07-15 15:17:03 StandardWrapper[/Friss:default]: Loading container servlet default 2003-07-15 15:17:03 StandardWrapper[/Friss:invoker]: Loading container servlet invoker Here are some parts of the auto generated mod_jk conf file : # Auto generated on Tue Jul 15 15:16:47 CEST 2003## IfModule !mod_jk.c LoadModule jk_module /etc/httpd/modules/mod_jk.so /IfModule JkWorkersFile /usr/jakarta-tomcat-4.1.24/conf/jk/workers.properties JkLogFile /usr/jakarta-tomcat-4.1.24/logs/mod_jk.log JkLogLevel emerg VirtualHost www.connecties.com ServerName www.connecties.com . . . www.connecties.com:/Friss # Static files Alias /Friss /usr/jakarta-tomcat-4.1.24/webapps/Friss Directory /usr/jakarta-tomcat-4.1.24/webapps/Friss Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp /Directory # Deny direct access to WEB-INF and META-INF # Location /Friss/WEB-INF/* AllowOverride None deny from all /Location Location /Friss/META-INF/* AllowOverride None deny from all /Location JkMount /Friss/login/j_security_check ajp13 JkMount /Friss/klanten/Login ajp13 JkMount /Friss/admin/Werktijden ajp13 JkMount /Friss/admin/UpdateExpertise ajp13 JkMount /Friss/admin/Logout ajp13 JkMount /Friss/kapper/Confirm ajp13 JkMount /Friss/klanten/Datum ajp13 JkMount /Friss/Store ajp13 JkMount /Friss/klanten/Kapper ajp13 JkMount /Friss/Tijd ajp13 JkMount /Friss/klanten/StoreNaw ajp13 JkMount /Friss/*.jsp ajp13 JkMount /Friss/klanten/Behandeling ajp13 JkMount /Friss/admin/Personeel ajp13 JkMount /Friss/klanten/Naw ajp13 JkMount /Friss/admin/OpeningsTijden ajp13 JkMount /Friss/admin/Behandel ajp13 . . . /VirtualHost substitute the 3 dots with the 'standard' tomcat webapps. I added this to my httpd.conf : LoadModule jk_module modules/mod_jk.so and at the end : Include /usr/jakarta-tomcat-4.1.24/conf/auto/mod_jk.conf Starting tomcat.wait 10 or more seconds start apache If I try to get to www.connecties.com/Friss I still get a 404 file not found. In the error log file for apache it says : [Tue Jul 15 15:36:22 2003] [crit] (98)Address already in use: make_sock: could not bind to port 80 I can still go to www.connecties.com (which is a normal website with some static pages). Kind regards, Werner van Mook Java Lead Developer / Trainer Connecties Voor Internet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JK2 problems
Call me stupid if you wish, Where do I have to change the JkLogLevel ? I did it in the auto generated file without restarting tomcat ( then it will be overwritten. I know) I do not have apachectl on my machine. so I can't do a config test. Sorry. If I want this I have to reinstall Apache. I don't know how that is going to affect my Cobalt machine? Do you know sun cobalt? It's a completely pre-configured web server. It can be very usefull if you have only static webpages or if you want to use asp/perl. For java well I don't know jet. Werner On Tuesday, July 15, 2003, at 03:47 PM, John Turner wrote: Sounds like you have more than one copy of Apache running, and the copy of Apache you are modifying isn't the running copy. Also, change your JkLogLevel to info. Also, please post the output of apachectl configtest. John On Tue, 15 Jul 2003 15:44:24 +0200, Werner van Mook [EMAIL PROTECTED] wrote: Hi John, Thanx for your response. I did all that is in your HOWTO. I still have no luck with it. I downloaded : mod_jk-1.3-eapi.so from jakarta.apacheetc and renamed it to mod_jk.so. Could you please have look ? Or some else of course. This is a piece of my localhost_log file : 2003-07-15 15:17:02 StandardHost[www.connecties.com]: Installing web application at context path /Friss from URL file:/usr/jakarta-tomcat- 4.1.24/webapps/Friss 2003-07-15 15:17:02 WebappLoader[/Friss]: Deploying class repositories to work directory /usr/jakarta-tomcat- 4.1.24/work/Standalone/www.connecties.com/Friss 2003-07-15 15:17:02 WebappLoader[/Friss]: Deploy class files /WEB- INF/classes to /usr/jakarta-tomcat-4.1.24/webapps/Friss/WEB-INF/classes 2003-07-15 15:17:03 ContextConfig[/Friss]: Configured an authenticator for method FORM 2003-07-15 15:17:03 StandardManager[/Friss]: Seeding random number generator class java.security.SecureRandom 2003-07-15 15:17:03 StandardManager[/Friss]: Seeding of random number generator has been completed 2003-07-15 15:17:03 StandardWrapper[/Friss:default]: Loading container servlet default 2003-07-15 15:17:03 StandardWrapper[/Friss:invoker]: Loading container servlet invoker Here are some parts of the auto generated mod_jk conf file : # Auto generated on Tue Jul 15 15:16:47 CEST 2003## IfModule !mod_jk.c LoadModule jk_module /etc/httpd/modules/mod_jk.so /IfModule JkWorkersFile /usr/jakarta-tomcat-4.1.24/conf/jk/workers.properties JkLogFile /usr/jakarta-tomcat-4.1.24/logs/mod_jk.log JkLogLevel emerg VirtualHost www.connecties.com ServerName www.connecties.com . . . www.connecties.com:/Friss # Static files Alias /Friss /usr/jakarta-tomcat-4.1.24/webapps/Friss Directory /usr/jakarta-tomcat-4.1.24/webapps/Friss Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp /Directory # Deny direct access to WEB-INF and META-INF # Location /Friss/WEB-INF/* AllowOverride None deny from all /Location Location /Friss/META-INF/* AllowOverride None deny from all /Location JkMount /Friss/login/j_security_check ajp13 JkMount /Friss/klanten/Login ajp13 JkMount /Friss/admin/Werktijden ajp13 JkMount /Friss/admin/UpdateExpertise ajp13 JkMount /Friss/admin/Logout ajp13 JkMount /Friss/kapper/Confirm ajp13 JkMount /Friss/klanten/Datum ajp13 JkMount /Friss/Store ajp13 JkMount /Friss/klanten/Kapper ajp13 JkMount /Friss/Tijd ajp13 JkMount /Friss/klanten/StoreNaw ajp13 JkMount /Friss/*.jsp ajp13 JkMount /Friss/klanten/Behandeling ajp13 JkMount /Friss/admin/Personeel ajp13 JkMount /Friss/klanten/Naw ajp13 JkMount /Friss/admin/OpeningsTijden ajp13 JkMount /Friss/admin/Behandel ajp13 . . . /VirtualHost substitute the 3 dots with the 'standard' tomcat webapps. I added this to my httpd.conf : LoadModule jk_module modules/mod_jk.so and at the end : Include /usr/jakarta-tomcat-4.1.24/conf/auto/mod_jk.conf Starting tomcat.wait 10 or more seconds start apache If I try to get to www.connecties.com/Friss I still get a 404 file not found. In the error log file for apache it says : [Tue Jul 15 15:36:22 2003] [crit] (98)Address already in use: make_sock: could not bind to port 80 I can still go to www.connecties.com (which is a normal website with some static pages). Kind regards, Werner van Mook Java Lead Developer / Trainer Connecties Voor Internet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JK2 problems
I have a bad feeling about this. After going to the advised webpage I restarted apache and got : Cannot load /etc/httpd/modules/mod_webapp.so into server: /lib/libc.so.6: version `GLIBC_2.2' not found (required by /etc/httpd/modules/mod_webapp.so) When trying to install glibc 2.2 I got all kinds of dependence problems. I will contact the support team of my provider. Kind regards to all who tried to help me. Werner On Tuesday, July 15, 2003, at 04:15 PM, John Turner wrote: If you changed it in your auto generated file, did you restart Apache? This link might be of some help: http://www.spaceprogram.com/knowledge/tomcat4_on_cobalt_setup.html John On Tue, 15 Jul 2003 16:09:23 +0200, Werner van Mook [EMAIL PROTECTED] wrote: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
I'm officially lost with mod_jk
Hi all, Here is another user of mod_jk who's now officially lost. I have apache 1.3.x with tomcat 4.1.24 I installed mod_jk in httpd.conf I put : LoadModule jk_module modules/mod_jk.so . . . # MY OWN STUFF HERE IfModule mod_jk.so AddModule mod_jk.c JkWorkersFile /etc/httpd/conf/workers.properties JkLogFile /var/log/httpd/mod_jk.log JkLogLevelinfo JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat %w %V %T JkMount /Friss/* worker1 /IfModule In workers.properties I have : #Define 1 real worker using ajp13 worker.list=worker1 #Set properties for worker1(ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009 worker.worker1.lbfactor=50 worker.worker1.cahcesize=10 worker.worker1.cache_timeout=600 worker.worker1.socket_keepalive=1 worker.worker1.socket_timeout=300 In the webapps dir I created a dir called Friss wich contains a WEB_INF dir and a index.html file. When I restart tomcat and apache I want to request : www.connecties.com/Friss. I suspected to get the index.html file from the Friss webapp. Instead I got a 404 document not found. I think I'm missing something but I don't know what. Anybody out there had the same experience and want to share it with me? Kind regards Werner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
connecting Tomcat to apache
Hi All, Consider me stupid. I have a Powerbook with Mac OSX 10.2.6 It runs apache out of the box. Now I want to connect tomcat with it. Could somebody point out to me the right way of doing this? Regards Werner van Mook - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
What am I missing
Hi All, I have the following : one jsp file in a directory called 'klanten' containing the next line : form action=http://localhost:8080/Friss/klanten/Login; method=post name=login I have the following servlet containing : package klanten; ... (several imports) public class Login extends HttpServlet { ... I have a web.xml containing : servlet servlet-nameLogin/servlet-name description Deze servlet checked het opgegeven naam en password. Indien correct dan wordt het NawBean in de sessie geplaatst. /description servlet-classklanten.Login/servlet-class /servlet servlet-mapping servlet-nameLogin/servlet-name url-pattern/klanten/Login/url-pattern /servlet-mapping The servlet class file is stored in webapps/appname/WEB-INF/classes/klanten/ If I press the ok button in the form of the afore mentioned form I get the following error message : The requested resource (/Friss/Klanten/Login) is not available. I did stop tomcat, build the whole thing with an ant script, checked to see if the Login class file was in the klanten directory and then restarted tomcat. I use Tomcat 4.1.24. Can somebody explain to me what stupid thing I'm forgetting? Kind regards Werner van Mook
[SOLVED] What am I missing
It seemed that my html editor screwed up. In GUI mode it told me all links to 'kapper' were with a small k. In source code mode it showed me a clear CAPITAL K. I knew I had to stick to vi. ;-) Thanks all - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: is tomcat..... ?
On Wednesday, May 28, 2003, at 10:56 PM, Syed Nayyer Kamran wrote: Hi there, I want to confirm that can we say that tomcat is an application server if not then what is the basic requirement being an application server. what should a server provide tobe an application server. To be an application server one should have at least support for running ejb's. And with that, a lot of other things ( see ejb specs). Tomcat supports only Servlets/jsp's and is a so called servlet container. If you use a name like web application server you could raise the expectation to high and people might think it is a application server which it is not. That's my 2ct anyway. Werner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Sending custom Date header from servlet?
I'm trying to write a servlet that sends Date and Expires headers that are a few days in the past. (It's the server side of a caching test case.) Adding the old Expires header is trivial: response.setDateHeader(Expires, System.currentTimeMillis() - 3 * ONE_DAY); but if I put in the identical code with Date instead of Expires, nothing seems to happen. I still get a Date header that's set to the actual request time. I've poked around a little bit in the Catalina code, and I can't figure out why this would be happening. There's code in HttpProcessor that adds a Date header right before calling connector.getContainer().invoke(), but since my servlet code runs after that, I think it should override this default value. Does anyone have advice on this, or see anything I'm missing? Thanks! Laura Werner BeVocal, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jasper2
Hello, I'm trying to build tomcat 4.1.10 from the source and when I do an ant dist I get the following error message: file:/usr/local/tomcat-src/build.xml:67: Basedir /usr/local/jakarta-tomcat-jasper/jasper2 does not exist Where exactly can I download jasper? I have found nothing on jakarta.apache.org :-( Bye, Werner. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: ant dist fails - more to come
Hi, I still get the same error, although I tried build.sysclasspath=ignore, build.sysclasspath=first and build.sysclasspath=last. What do I have to set classpath like? I installed everything as described in BUILDING.TXT, but when I do an ant dist I get the error message: build-main: [style] DEPRECATED - xslp processor is deprecated. Use trax or xalan instead. [style] java.lang.NoClassDefFoundError: org/apache/xalan/xslt/XSLTProcessorFactory [style] at org.apache.tools.ant.taskdefs.optional.XalanLiaison.init(XalanLiaison. java:82) [style] at java.lang.Class.newInstance0(Native Method) [style] at java.lang.Class.newInstance(Class.java:237) [style] at org.apache.tools.ant.taskdefs.XSLTProcess.resolveProcessor(XSLTProcess.j ava:278) [style] at org.apache.tools.ant.taskdefs.XSLTProcess.getLiaison(XSLTProcess.java:40 6) [style] at org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java:141) [style] at org.apache.tools.ant.Task.perform(Task.java:217) [style] at org.apache.tools.ant.Target.execute(Target.java:184) [style] at org.apache.tools.ant.Target.performTasks(Target.java:202) [style] at org.apache.tools.ant.Project.executeTarget(Project.java:601) [style] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:266) [style] at org.apache.tools.ant.Task.perform(Task.java:217) [style] at org.apache.tools.ant.Target.execute(Target.java:184) [style] at org.apache.tools.ant.Target.performTasks(Target.java:202) [style] at org.apache.tools.ant.Project.executeTarget(Project.java:601) [style] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:266) [style] at org.apache.tools.ant.Task.perform(Task.java:217) [style] at org.apache.tools.ant.Target.execute(Target.java:184) [style] at org.apache.tools.ant.Target.performTasks(Target.java:202) [style] at org.apache.tools.ant.Project.executeTarget(Project.java:601) [style] at org.apache.tools.ant.Project.executeTargets(Project.java:560) [style] at org.apache.tools.ant.Main.runBuild(Main.java:454) [style] at org.apache.tools.ant.Main.start(Main.java:153) [style] at org.apache.tools.ant.Main.main(Main.java:176) [style] java.lang.NoClassDefFoundError: com/kvisco/xsl/XSLProcessor [style] at org.apache.tools.ant.taskdefs.optional.XslpLiaison.init(XslpLiaison.ja va:77) [style] at java.lang.Class.newInstance0(Native Method) [style] at java.lang.Class.newInstance(Class.java:237) [style] at org.apache.tools.ant.taskdefs.XSLTProcess.resolveProcessor(XSLTProcess.j ava:274) [style] at org.apache.tools.ant.taskdefs.XSLTProcess.getLiaison(XSLTProcess.java:40 3) [style] at org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java:141) [style] at org.apache.tools.ant.Task.perform(Task.java:217) [style] at org.apache.tools.ant.Target.execute(Target.java:184) [style] at org.apache.tools.ant.Target.performTasks(Target.java:202) [style] at org.apache.tools.ant.Project.executeTarget(Project.java:601) [style] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:266) [style] at org.apache.tools.ant.Task.perform(Task.java:217) [style] at org.apache.tools.ant.Target.execute(Target.java:184) [style] at org.apache.tools.ant.Target.performTasks(Target.java:202) [style] at org.apache.tools.ant.Project.executeTarget(Project.java:601) [style] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:266) [style] at org.apache.tools.ant.Task.perform(Task.java:217) [style] at org.apache.tools.ant.Target.execute(Target.java:184) [style] at org.apache.tools.ant.Target.performTasks(Target.java:202) [style] at org.apache.tools.ant.Project.executeTarget(Project.java:601) [style] at org.apache.tools.ant.Project.executeTargets(Project.java:560) [style] at org.apache.tools.ant.Main.runBuild(Main.java:454) [style] at org.apache.tools.ant.Main.start(Main.java:153) [style] at org.apache.tools.ant.Main.main(Main.java:176) BUILD FAILED /usr/local/tomcat-src/webapps/tomcat-docs/build.xml:80: java.lang.NoClassDefFoundError: javax/xml/transform/Source Any ideas? Thanks and bye, Werner. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat Connector for 4.0.4
Hi, I'm trying to compile Tomcat 4.0.4 from the source but I can't find the tomcat connector which contains tomcat-utils.jar for this version. Could somebody provide me a link where I can download it? Thanks a lot. Bye, Werner -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
jasper
Hi, I'm trying to compile tomcat 4.0.4 from the source and when I do a ant dist it fails with the following question: BUILD FAILED /usr/local/tomcat-src/build.xml:67: Basedir /usr/local/jakarta-tomcat-jasper/jasper2 does not exist I don't have jasper, where can I get it? Thanks and bye, Werner. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat 3.3-3 on Suse
Hi group, Unix greenhorn is fiddeling around with tomcat 3.3-3 (rpm installation) on Suse 7.1. Tomcat start seem to fail because /etc/rc.d/init.d/functions is missing. Not sure if this is the only problem or if there are more configuration issues with Suse. Suggestions? Does anybody have a (pointer to a) cook book how to install tomcat on Suse? Thanks rgds Dietmar
tomcat nt service wont work under SP2 win2k???
Hi I have just installed SP2 on my Win2k Server. Now the Tomcatservice (3.2.2) is still running but it does not work properly. If I start Tomcat by hand (tomcat startup in the binaries dir) all works fine. Whats wrong?? Werner
Re: chart in jsp
hi jeff ,hi all, the servlet you use is a servlet 2.3 stuff, i think. is there any url to take a look at this code? i am involved in creating svg's and not very familar with writing servlets. but i'd like to show my interactive work. i tried this ( i found in german java-magazin 04/2001): import javax.servlet.*; import javax.servlet.http.*; import java.util.*; import org.apache.batik.transcoder.*; import org.xml.sax.*; import java.io.*; public class BatikFilter implements Filter{ private FilterConfig config = null; private String format = "jpeg"; public BatikFilter() { } public void doFilter(ServletRequest parm1, ServletResponse parm2, FilterChain parm3) throws java.io.IOException, javax.servlet.ServletException { SpoofResponse spoof = new SpoofResponse(); parm3.doFilter(parm1, spoof); String uri = ""; if (parm1 instanceof HttpServletRequest) { HttpServletRequest httpReq = (HttpServletRequest) parm1; uri = httpReq.getRequestURI().toString(); } String localFormat = (String) parm1.getParameter("format"); if (localFormat != null) format = localFormat; try { String ctype = parm1.getContentType(); if ((ctype == null) | ((ctype != null) (ctype.indexOf("svg") != -1))) { Class transcoderClass = (Class) handlers.get(format); if (transcoderClass == null) return; Transcoder trans = (Transcoder) transcoderClass.newInstance(); trans.addTranscodingHint(org.apache.batik.transcoder.XMLAbstractTranscoder.K EY_XML_PARSER_CLASSNAME, "org.xml.sax.XMLReader"); ByteArrayOutputStream os = new ByteArrayOutputStream(); TranscoderInput tip = new TranscoderInput (new InputStreamReader (new ByteArrayInputStream (spoof.getBuffer(; tip.setURI(uri); TranscoderOutput top; if (format.equals ("svg")) { top = new TranscoderOutput (new OutputStreamWriter (os)); } else { top = new TranscoderOutput (os); } trans.transcode(tip, top); byte[] buffer = os.toByteArray(); parm2.setContentType((String) mimetypes.get(format)); parm2.getOutputStream().write(buffer); } else { String result = "htmlbodyContent filtered!/body/html"; parm2.setContentType("text/html"); parm2.reset(); parm2.getWriter().print(result); } } catch (Exception ex) { ex.printStackTrace(); } } public FilterConfig getFilterConfig() { return config; } public void setFilterConfig(FilterConfig parm1) { config = parm1; } private static Map handlers = new HashMap(); private static Map mimetypes = new HashMap(); { handlers.put ("jpeg", org.apache.batik.transcoder.image.JPEGTranscoder.class); handlers.put ("png", org.apache.batik.transcoder.image.PNGTranscoder.class); handlers.put ("svg", org.apache.batik.transcoder.svg2svg.SVGTranscoder.class); mimetypes.put ("jpeg", "image/jpeg"); mimetypes.put ("png", "image/png"); mimetypes.put ("svg", "image/svg+xml"); } } class SpoofResponse extends ResponseBase { } but sax isn't instanciated correctly( no empty public constructor) any idea that makes me happy? thanks stefan - Original Message - From: "Noll, Jeff HS" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 27, 2001 5:15 PM Subject: RE: chart in jsp With a little bit of effort, you can make some pretty impressive completely dynamic graphs using SVG. I actually use a servlet for this that transforms XML data from oracle into SVG. Then I use a jsp:include to get the graph into the jsp page. Of course, the one caveat is that it requires an SVG plugin to view the graph, but once you have it its a great tool. I've got it set up so that once the query to get the XML out of Oracle is written, I can do bar, pie, and line graphs complete with drill down views of just about any data. The real work is in the XSL stylesheet you create, which definately isn't a trivial task. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 27, 2001 12:21 AM To: [EMAIL PROTECTED] Subject: Re: chart in jsp The only dynamic charts I've seen have used fixed size images combined dynamically to form a graph, chart, tree, etc. sorry, no code. Neill Laney http://home.nc.rr.com/nlaney -- Web Developer/Technical Support Specialist. Altuð Altýntaþ To: "'[EMAIL PROTECTED]'" (Koç.Net)[EMAIL PROTECTED] [EMAIL PROTECTED]cc: et Subject: chart in jsp 03/26/2001 05:24 AM Please respond to tomcat-user are there any way to draw a dynamic chart in jsp ? any source or
RE: Apache and tomcat
Title: RE: Apache and tomcat maybe you have to check permissions on that file ??? -Original Message- From: tomcat users [mailto:[EMAIL PROTECTED]] Sent: Friday, March 09, 2001 9:48 AM To: [EMAIL PROTECTED] Subject: Apache and tomcat Hello I have installed apache and tomcat. I want to configure tomcat for apache. I have included tomcat_apache.conf file in the httpd.conf as include d:\foo\tomcat\conf\my_tomcat-apache.conf at the end of file but when i restart the apache server it gives error unable to open file , althouh the file exist at the specified path. plz help what to do and where i m wrong Thanks in advance _ 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: Apache and tomcat
Title: RE: Apache and tomcat Ook hi if its not on a live server then try to give everyone full access ? otherwise.. euh try to give everyone read / execute groenten -Original Message- From: tomcat users [mailto:[EMAIL PROTECTED]] Sent: Friday, March 09, 2001 10:54 AM To: [EMAIL PROTECTED] Subject: RE: Apache and tomcat Hi ya i m getting Permission denied error on that file everyone has access, do i hav to add the admin acount for that tomcat-apache.conf file or what From: Werner Teunissen [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: RE: Apache and tomcat Date: Fri, 9 Mar 2001 09:48:59 +0100 maybe you have to check permissions on that file ??? -Original Message- From: tomcat users [mailto:[EMAIL PROTECTED]] Sent: Friday, March 09, 2001 9:48 AM To: [EMAIL PROTECTED] Subject: Apache and tomcat Hello I have installed apache and tomcat. I want to configure tomcat for apache. I have included tomcat_apache.conf file in the httpd.conf as include d:\foo\tomcat\conf\my_tomcat-apache.conf at the end of file but when i restart the apache server it gives error unable to open file , althouh the file exist at the specified path. plz help what to do and where i m wrong Thanks in advance _ 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] _ 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: Apache and tomcat
Title: RE: Apache and tomcat does everybody has acces to the directory as well ? -Original Message- From: tomcat users [mailto:[EMAIL PROTECTED]] Sent: Friday, March 09, 2001 11:17 AM To: [EMAIL PROTECTED] Subject: RE: Apache and tomcat its not on live server and everyone has full access on that file but still same error so what u suggest From: Werner Teunissen [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: RE: Apache and tomcat Date: Fri, 9 Mar 2001 10:56:12 +0100 Ook hi if its not on a live server then try to give everyone full access ? otherwise.. euh try to give everyone read / execute groenten -Original Message- From: tomcat users [mailto:[EMAIL PROTECTED]] Sent: Friday, March 09, 2001 10:54 AM To: [EMAIL PROTECTED] Subject: RE: Apache and tomcat Hi ya i m getting Permission denied error on that file everyone has access, do i hav to add the admin acount for that tomcat-apache.conf file or what From: Werner Teunissen [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: RE: Apache and tomcat Date: Fri, 9 Mar 2001 09:48:59 +0100 maybe you have to check permissions on that file ??? -Original Message- From: tomcat users [mailto:[EMAIL PROTECTED]] Sent: Friday, March 09, 2001 9:48 AM To: [EMAIL PROTECTED] Subject: Apache and tomcat Hello I have installed apache and tomcat. I want to configure tomcat for apache. I have included tomcat_apache.conf file in the httpd.conf as include d:\foo\tomcat\conf\my_tomcat-apache.conf at the end of file but when i restart the apache server it gives error unable to open file , althouh the file exist at the specified path. plz help what to do and where i m wrong Thanks in advance _ 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] _ 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] _ 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]