starting tomcat from cd-rom
Hi folks, i was wondering if it is possible to start tomcat from a cd-rom, without installing anything. Problem could be that the user inserting the cd doesn`t have to have Java installed, so the jre has to be on the cd. Could that be a licence problem ? An answer would be nice, thanks Thomas -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Copying HttpServletRequest
windows?im ignorant
Re: tomcat as a service
Hello Chris, See http://www.mattkelli.com/tech/tomcat/ntservice.htm Also, you really should search the list. I have posted messages like this in response to NT Service questions like this at least 15 times. The answers are there in the archives. Look there before you post. http://marc.theaimsgroup.com/?l=tomcat-userr=1w=2 Jake Wednesday, November 13, 2002, 9:44:00 AM, you wrote: CD hi CD i wish to run tomact as a service though am currently running it as a stand CD alone. has anyone got the details handy or can point me i the direction of CD good tutorials / shortcuts CD cheers CD chris CD -- CD To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org CD For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- Best regards, Jacobmailto:hoju;visi.com -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: CD based tomcat (hopefully)
Tam, Michael wrote: Your CATALINA_HOME is path to your tomcat in the cd then if and only if yours CD is a CDR and CD-rom is a cd-writer, otherwise how could tomcat be able to write the logs file?? My bad... I haven't put it on the CD yet, it's living in a directory defined as %cd_tomcat_base% I'd appreciate the help to set the logs dir to a temporary directory though as well. once I've got it configured correctly, I can just write the directory straight to the CD. I currently have a directory structure like this: %cd_tomcat_base%\startup.bat %cd_tomcat_base%\jdk1.4.1-- %java_home% %cd_tomcat_base%\tomcat4.1.12 -- %catalina_home%, %catalina_base% It would go on a closed session CD-R when it's done though, because the university have gone on an archiving binge recently. This way, it'd be a complete running app I can take to any machine and not have to d/l and configure tomcat before a demo. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
running tomcat from CD
Is there a way to run Tomcat completely off of a CD-ROM? Thanks Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem in tomcat-5.0-doc/setup.html
Hi, I've downloaded tomcat (jakarta-tomcat-5.0.9.tar.gz) and I'm following the instructions found in this page : http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html There is a little error that might confuse beginners : cd $CATALINA_HOME/bin tar xvfz jsvc.tar.gz cd jsvc autoconf ./configure make cp jsvc .. cd .. [EMAIL PROTECTED] jsvc]# make [...] make[1]: Leaving directory `/usr/local/tomcat/bin/jsvc/native' [EMAIL PROTECTED] jsvc]# cp jsvc .. cp: ne peut écraser le répertoire `../jsvc' par un non-répertoire I think you should rename the folder after untar it : cd $CATALINA_HOME/bin tar xvfz jsvc.tar.gz mv jsvc jsvc-source cd jsvc-source autoconf ./configure make cp jsvc .. cd .. Bye - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem in tomcat-5.0-doc/setup.html
Damien wrote: Hi, I've downloaded tomcat (jakarta-tomcat-5.0.9.tar.gz) and I'm following the instructions found in this page : http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html There is a little error that might confuse beginners : cd $CATALINA_HOME/bin tar xvfz jsvc.tar.gz cd jsvc autoconf ./configure make cp jsvc .. cd .. [EMAIL PROTECTED] jsvc]# make [...] make[1]: Leaving directory `/usr/local/tomcat/bin/jsvc/native' [EMAIL PROTECTED] jsvc]# cp jsvc .. cp: ne peut écraser le répertoire `../jsvc' par un non-répertoire I think you should rename the folder after untar it : cd $CATALINA_HOME/bin tar xvfz jsvc.tar.gz mv jsvc jsvc-source cd jsvc-source autoconf ./configure make cp jsvc .. cd .. I'll fix that. I was using Cygwin when I tested this, and on that platform, the executable name is jsvc.exe, so there's no conflict. Dumb mistake ;-) -- x Rémy Maucherat Senior Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Running Tomcat off a CD
Title: Message Tomcat 4.1.24 / WINXP SP1 Has anyone successfully run Tomcat off a CD? I know this is a little out of the ordinary. We have a J2EE app which I would like to teach to students. The problem is having a quick setup environment for the students with having to install minimal software. I have adjusted the variables in the startup.bat, setclasspath.bat, and catalina.bat files to point to a CD, but am still not having any luck. Any thoughts or suggestions? Thanks in advance, Rob DeVenuto - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
executing Tomcat from cd
I am deploying a simple web application using Tomcat 3.2.3 in stand-alone mode. At the moment I'm distributing it in a cd containing all Tomcat and application files, which need to be copied on the machine where the application runs. I was asked to check if it is possible to run everything directly from the cd. This means to avoid any write access to the file system, so: * stop Tomcat re-compiling my jsp, which are already compiled and inluded in the cd * stop Tomcat generating files such as iis_redirect.reg-auto, which are not needed Does anybody know whether these things are possible or not and how to it? Thanks, Enrico
Re: Download IIS
It is on the CD you have to speifically install it. It is some sub-folder like utilities or something. S
Re: running tomcat from CD
And this was discussed a few times in the archives! -Tim Shapira, Yoav wrote: Howdy, You would have to at least modify tomcat's work and temp directories. The servlet container is required to provide a writeable temporary directory for each context, so unless the CD is writeable all the time via regular Java IO APIs, you have to do the above. Yoav Shapira Millennium ChemInformatics -Original Message- From: samckins [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 9:30 AM To: [EMAIL PROTECTED] Subject: running tomcat from CD Is there a way to run Tomcat completely off of a CD-ROM? Thanks Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Running Tomcat from a CD-Rom
Hi, I want to run Tomcat from a CD-Rom complete with a web application. My application needs to be able to run on any PC without networkor an install program so everything would have to be installed on the CD-Rom. To get Tomcat to run directly from CD-Rom I am thinking I will have to change all configuration files that point to the Tomcat home directory and point them instead to a temporary folder under windows. Can anyone think of any other issues I am going to run into or if there is something I have overlooked. Env. is Tomcat 5.0, Windows Thanks in advance, Regards, Julian http://www.seregon.com/
Re: Tomcat, the JRE, and a CD-ROM
Paul: Tomcat only needs tools.jar (from jdk) for compiling JSP's. If you pre-compile your JSP's (using JSPC), you can deploy them as servlets (with servlet mappings in web.xml). Your run-time will then be able to run everything with only the JRE. Tom Drake - Original Message - From: Paul Gross [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 03, 2002 4:28 PM Subject: Tomcat, the JRE, and a CD-ROM | Here is a strange question for anyone who thinks that they can help | me... | | I am trying to send a runnable version of my web application on a CD, | so that it can run entirely from the CD, without installing anything on | the user's machine. | | I plan to do this by having a copy of the JRE plus my web app (JSP | files, Servlet claass files etc) on the CD, and pointing both JAVA_HOME | and TOMCAT_HOME to the appropriate direcories on the CD. | | I have tried an experiment on my hard disk by setting JAVA_HOME to my | JRE version 1.3.1, and my Tomcat 3.2.1 seems OK with this. | | When Tomcat starts, my pages still work - it does not seem to need the | Java compiler, and so it seems reasonable that a CD would work as well. | | What I don't want top do is to burn a set of CDs, mail them out, and | then find that there is some other limitation built-in to Tomcat that | requires the use of the JDK instead of the JRE. | | Has anybody had any experience with this, or can anybody think of any | likely pitfalls? | | Also, would it be possible to leave out the JSP files from the CD, and | just use the compiled servlet code? | | Thanks in anticipation, | | Paul | | | | Powered by telstra.com | | | | | -- | To unsubscribe: mailto:[EMAIL PROTECTED] | For additional commands: mailto:[EMAIL PROTECTED] | Troubles with the list: mailto:[EMAIL PROTECTED] | | | -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: CD based tomcat (hopefully)
Your CATALINA_HOME is path to your tomcat in the cd then if and only if yours CD is a CDR and CD-rom is a cd-writer, otherwise how could tomcat be able to write the logs file?? -Original Message- From: Oliver Rose [mailto:[EMAIL PROTECTED] Sent: Monday, March 17, 2003 2:08 PM To: [EMAIL PROTECTED] Subject: CD based tomcat (hopefully) This is probably a daft question to all you experienced tomcat guys, but it's baffled me for a couple of weeks now. I've got Tomcat 4.1.12 installed (on Windows XP Pro) in c:\tomcat, and CATALINA_HOME is set to that in the system environment variables. What I want to do is to make a copy of it on a CD as a known stable environment to demonstrate a university project, and have it so I can just stick the CD in and it starts tomcat and fires up a web browser to my project root (for example, http://localhost:8080/WebApp) The web browser bit isn't much of a problem, but if I make a copy of c:\tomcat in another folder with a startup script that fills in all the details for catalina_home, java_home (also in a subdir) and so on, the tomcat server starts up and then dies without creating a log (or at least, not in the new %catalina_home%\logs folder) Oliver - 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]
Out of topic: smake n cdrecord for linux
Hi, apologies for being out of topic. I've installed a new scsi cd-rw, a cursory cdrecord -scanbus shows that it is recognised as a scsi device (which is fine) but displayed as CD-ROM. Does anyone have a more concise and readable howto for Joerg Schilling's smake and cdrecord tools? Apologies again for being out of topic... TIA :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: running tomcat from CD
How do I access the archives? -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 10:32 AM To: Tomcat Users List Subject: Re: running tomcat from CD And this was discussed a few times in the archives! -Tim Shapira, Yoav wrote: Howdy, You would have to at least modify tomcat's work and temp directories. The servlet container is required to provide a writeable temporary directory for each context, so unless the CD is writeable all the time via regular Java IO APIs, you have to do the above. Yoav Shapira Millennium ChemInformatics -Original Message- From: samckins [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 9:30 AM To: [EMAIL PROTECTED] Subject: running tomcat from CD Is there a way to run Tomcat completely off of a CD-ROM? Thanks Scott - 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]
cannot find custom libraries
Hello, I'm new to JSP, so this is confusing me. I am trying to use the com.oreilly.servlet.multipart package to try and upload files for a test page. However, I'm facing the following error: /tmp/foo/jakarta-tomcat-4.1.27/temp/cd/SMC/insertProduct_jsp.java:8: package com.oreilly.servlet does not exist import com.oreilly.servlet.*; ^ /tmp/foo/jakarta-tomcat-4.1.27/temp/cd/SMC/insertProduct_jsp.java:9: package com.oreilly.servlet.multipart does not exist import com.oreilly.servlet.multipart.*; ^ 2 errors The packages are contained in a jar file called cos.jar , which I've put in .../cd/SMC/WEB-INF (and /cd/SMC/WEB-INF/lib ) (the file that uses this - insertProduct.jsp - is located in /cd/SMC ) Can anyone throw any pointers as to why this is happeneing? I set my classpath to point to the jar file, but it doesnt help (frankly, I don't see why it would, since the webserver is running of a totally different daemon, and I'm not even the owner of that :( -- but I'm just trying to get this to compile!) Thanks, Kaushal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cannot find custom libraries
Hello, I'm new to JSP, so this is confusing me. I am trying to use the com.oreilly.servlet.multipart package to try and upload files for a test page. However, I'm facing the following error: /tmp/foo/jakarta-tomcat-4.1.27/temp/cd/SMC/insertProduct_jsp.java:8: package com.oreilly.servlet does not exist import com.oreilly.servlet.*; ^ /tmp/foo/jakarta-tomcat-4.1.27/temp/cd/SMC/insertProduct_jsp.java:9: package com.oreilly.servlet.multipart does not exist import com.oreilly.servlet.multipart.*; ^ 2 errors The packages are contained in a jar file called cos.jar , which I've put in ../cd/SMC/WEB-INF (and /cd/SMC/WEB-INF/lib ) (the file that uses this - insertProduct.jsp - is located in /cd/SMC ) Can anyone throw any pointers as to why this is happeneing? I set my classpath to point to the jar file, but it doesnt help (frankly, I don't see why it would, since the webserver is running of a totally different daemon, and I'm not even the owner of that :( -- but I'm just trying to get this to compile!) Thanks, Kaushal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cannot find custom libraries
Hello Is 'cd' located in the TOMCAT_HOME/webapps directory? I think it must be. Assuming it is, then this is your context (web application folder) and this is where the WEB-INF sub-directory should be located. The cos.jar should then reside in cd/WEB-INF/lib. You can 'bury' JSPs in sub-directories (eg cd/SMC) and still invoke them by specifying the full path details, as you are doing at present. BUT... the WEB-INF sub-directory *must* be located at the top level of the context (web app) folder - and in this case 'cd' is your context (web app) folder. Locating the WEB-INF folder correctly means the 'lib' folder within it will be in 'right' place for Tomcat's classloaders to find it. BTW the same is true for Servlets, which reside in WEB-INF/classes. Regards Harry Mantheakis London, UK Hey, 'cd'is the name of a directory (yes, not the best name for a directory, but its got another meaning from 'change directory :-s) and SMC is a directory under that. (hence .../cd/SMC) I can access another page in .../cd/SMC/foo.jsp that specifies the form and the target ('ACTION'). This action=insertProduct.jsp , which is the code that tries to handle the uploading of files specified in the form on the previous page. I do have a WEB-INF sub-directory in .../cd/SMC , and the lib directory in there does have the jar file that I need.. I still get this error... any clues? Thanks, Kaushal p.s. 'the ...' notation I've used above it to signify a directory structure previous to the one described above. = Original Message From Harry Mantheakis [EMAIL PROTECTED] = Hello What is 'cd'? SMC *should* be your context, because the WEB-INF sub-directory is located there - unless you've got things mixed up? Harry Mantheakis London Hello, I'm new to JSP, so this is confusing me. I am trying to use the com.oreilly.servlet.multipart package to try and upload files for a test page. However, I'm facing the following error: /tmp/foo/jakarta-tomcat-4.1.27/temp/cd/SMC/insertProduct_jsp.java:8: package com.oreilly.servlet does not exist import com.oreilly.servlet.*; ^ /tmp/foo/jakarta-tomcat-4.1.27/temp/cd/SMC/insertProduct_jsp.java:9: package com.oreilly.servlet.multipart does not exist import com.oreilly.servlet.multipart.*; ^ 2 errors The packages are contained in a jar file called cos.jar , which I've put in ../cd/SMC/WEB-INF (and /cd/SMC/WEB-INF/lib ) (the file that uses this - insertProduct.jsp - is located in /cd/SMC ) Can anyone throw any pointers as to why this is happeneing? I set my classpath to point to the jar file, but it doesnt help (frankly, I don't see why it would, since the webserver is running of a totally different daemon, and I'm not even the owner of that :( -- but I'm just trying to get this to compile!) Thanks, Kaushal - 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]
Tomcat, the JRE, and a CD-ROM
Here is a strange question for anyone who thinks that they can help me... I am trying to send a runnable version of my web application on a CD, so that it can run entirely from the CD, without installing anything on the user's machine. I plan to do this by having a copy of the JRE plus my web app (JSP files, Servlet claass files etc) on the CD, and pointing both JAVA_HOME and TOMCAT_HOME to the appropriate direcories on the CD. I have tried an experiment on my hard disk by setting JAVA_HOME to my JRE version 1.3.1, and my Tomcat 3.2.1 seems OK with this. When Tomcat starts, my pages still work - it does not seem to need the Java compiler, and so it seems reasonable that a CD would work as well. What I don't want top do is to burn a set of CDs, mail them out, and then find that there is some other limitation built-in to Tomcat that requires the use of the JDK instead of the JRE. Has anybody had any experience with this, or can anybody think of any likely pitfalls? Also, would it be possible to leave out the JSP files from the CD, and just use the compiled servlet code? Thanks in anticipation, Paul Powered by telstra.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Running Tomcat from a CD-Rom
First thing that comes to mind are the startup scripts .. you'll need to comment out the parts that search for CATALINA_HOME in the system environment, so that it defaults to the current directory on the CD. Next thing I can think of is the fact that Tomcat creates files in the work directory (compiled JSPs). You could perhaps pre-compile your web application sources, but I still think it may end up trying to write to the CD. I personally don't know how, but that's for me the biggest issue I can see - writes to the file system .. other than that, the system will need Java (I think a JDK too unless 5.5 which may be able to run with a JRE) and the JAVA_HOME env. setting too, so how you do that is another question for you to answer ;) A. -Original Message- From: Julian White [mailto:[EMAIL PROTECTED] Sent: 01 March 2005 14:32 To: tomcat-user@jakarta.apache.org Subject: Running Tomcat from a CD-Rom Hi, I want to run Tomcat from a CD-Rom complete with a web application. My application needs to be able to run on any PC without networkor an install program so everything would have to be installed on the CD-Rom. To get Tomcat to run directly from CD-Rom I am thinking I will have to change all configuration files that point to the Tomcat home directory and point them instead to a temporary folder under windows. Can anyone think of any other issues I am going to run into or if there is something I have overlooked. Env. is Tomcat 5.0, Windows Thanks in advance, Regards, Julian http://www.seregon.com/ FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: cannot find custom libraries
Hey, 'cd'is the name of a directory (yes, not the best name for a directory, but its got another meaning from 'change directory :-s) and SMC is a directory under that. (hence .../cd/SMC) I can access another page in .../cd/SMC/foo.jsp that specifies the form and the target ('ACTION'). This action=insertProduct.jsp , which is the code that tries to handle the uploading of files specified in the form on the previous page. I do have a WEB-INF sub-directory in .../cd/SMC , and the lib directory in there does have the jar file that I need.. I still get this error... any clues? Thanks, Kaushal p.s. 'the ...' notation I've used above it to signify a directory structure previous to the one described above. = Original Message From Harry Mantheakis [EMAIL PROTECTED] = Hello What is 'cd'? SMC *should* be your context, because the WEB-INF sub-directory is located there - unless you've got things mixed up? Harry Mantheakis London Hello, I'm new to JSP, so this is confusing me. I am trying to use the com.oreilly.servlet.multipart package to try and upload files for a test page. However, I'm facing the following error: /tmp/foo/jakarta-tomcat-4.1.27/temp/cd/SMC/insertProduct_jsp.java:8: package com.oreilly.servlet does not exist import com.oreilly.servlet.*; ^ /tmp/foo/jakarta-tomcat-4.1.27/temp/cd/SMC/insertProduct_jsp.java:9: package com.oreilly.servlet.multipart does not exist import com.oreilly.servlet.multipart.*; ^ 2 errors The packages are contained in a jar file called cos.jar , which I've put in ../cd/SMC/WEB-INF (and /cd/SMC/WEB-INF/lib ) (the file that uses this - insertProduct.jsp - is located in /cd/SMC ) Can anyone throw any pointers as to why this is happeneing? I set my classpath to point to the jar file, but it doesnt help (frankly, I don't see why it would, since the webserver is running of a totally different daemon, and I'm not even the owner of that :( -- but I'm just trying to get this to compile!) Thanks, Kaushal - 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]
Fw: CD ROM Project, Read-only Tomcat ??
- Original Message - From: "Thomas Viohl" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 02, 2001 1:44 PM Subject: CD ROM Project, Read-only Tomcat ?? Has somebody build a CDROM Project with Tomcat? We try to use it as a web- and servlet server on a CDROM. Now there is the problem with the write access by tomcat (auto.conf files, log-files a.s.o.) My questions: 1. How to stop tomcat from generating the auto-conf files in bin-directory? 2. Can I point to conf files (server.xml, web.xml) on a temp dir on harddisk with write access? 3. Can I configure a webapp context to use files (html, gifs, xml) not under the webapps dir (e.g. webapp on harddisk, html and gifs on CD ROM) ? thank you for an answer -- Thomas
RE: running tomcat from CD
Clarify 'completely'. If you have no access to writable disk you'll be unable to produce logs or persist context data under ./work. I suppose that you could do some fancy stuff with a RAMdisk, assuming that you are running on an OS that supports this. With an out of the box binary set you wouldn't be successful...catalina.sh will fail when it can't create ./logs/catalina.out. -chris -Original Message- From: samckins [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 9:30 AM To: [EMAIL PROTECTED] Subject: running tomcat from CD Is there a way to run Tomcat completely off of a CD-ROM? Thanks Scott - 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]
XILIADES PROGRAMMATA - PC GAMES - PLAYSTATION APO 2000/CD
DEAR tomcat-user XILIADES PROGRAMMATA - PC GAMES - PLAYSTATION APO 2000 DRS/CD PROGRAMMATA - PC GAMES - PLAYSTATION - VIDEO CD - DREAMCAST - MP3 - ARXITECTONIKA - IATRIKA - WEEKS - PAKETA (1000 NEOI TITLOI KATHE EVDOMADA) KARTES N*VA FOR FREE TV IF WE DON'T HAVE IT ...YOU PROBABLY DON'T NEED IT... THLEFONO 093091 (13:00 - 20:00) KATHE HMERA EKTOS SABBATOY KYRIAKHS WE SEND CD'S TO THESE COUNTRIES: AUSTRIA,BELGIUM,FRANCE,GERMANY,SWITZERLAND,ITALY,LUXMBOURG,NORWAY,HOLLAND,SWEDEN,CYPRUS...(COST 10 EURO/CD + POST EXPENCES) www.geocities.com/katalogos2002 AN TO SITE DEN LEITOYRGEI KALESTE MAS STO 093091 NA SAS STEILOYME KATALOGO ME E-MAIL... _\|/_ (o o) ---oOO-{_}-OOo--- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: sdk 1.3.0 fcs and netscape plugin problem
Try to put the plugin in ~/.netscape/plugins instead. Bojan "Robert B. Easter" wrote: cd /usr/local/netscape/plugins ln -s /usr/local/j2sdk1.3.0/jre/plugin/i386/javaplugin.so javaplugin.so
how to change to Tomcat work directory
Hello I would like to use Tomcat from a CD on Windows. I have changed the logs directory, but Tomcat doesn't start because the working directory is not writable. Is it possible to change it? Thanks
CD Drive as webapps (EmbeddedTomcat)
Hi, I would like to set my CD Rom drive as one of my webapps. When I run tomcat with normal installation with below setting in server.xml (my CD Rom drive is F:\ and the content of the CD is MP3 files) Context path=/music docBase=F:/ debug=0/ I could create the webapps and get my mp3 songs link correctly. However, when I use EmbeddedTomcat with reference to O'Reily website, I couldn't create the webapps. The error occur in org.apache.catalina.core.StandardHostDeployer.install (at line 260 from tomcat 4.1.24 source) if (appBase.getCanonicalPath().equals(baseDir.getCanonicalPath())) { isAppBase = true; } baseDir.getCanonicalPath() will give a null pointer exception if baseDir is a drive name, eg: C:/ How could I solve this problem? Any clue for me? Regards, Peik Feng - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: running tomcat from CD
Howdy, You would have to at least modify tomcat's work and temp directories. The servlet container is required to provide a writeable temporary directory for each context, so unless the CD is writeable all the time via regular Java IO APIs, you have to do the above. Yoav Shapira Millennium ChemInformatics -Original Message- From: samckins [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 9:30 AM To: [EMAIL PROTECTED] Subject: running tomcat from CD Is there a way to run Tomcat completely off of a CD-ROM? Thanks Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running Tomcat off a CD
MessageIf you can get access to a laptop (I thought most schools have that or am I wrong?), you can install everything on it and then do your demo thru a Proxima projector. If you cannot get a laptop, you can use a portable USB2 hard-drive. That should work. Hope this helps. - Original Message - From: DeVenuto, Rob To: [EMAIL PROTECTED] Sent: Friday, August 29, 2003 02:45 PM Subject: Running Tomcat off a CD Tomcat 4.1.24 / WINXP SP1 Has anyone successfully run Tomcat off a CD? I know this is a little out of the ordinary. We have a J2EE app which I would like to teach to students. The problem is having a quick setup environment for the students with having to install minimal software. I have adjusted the variables in the startup.bat, setclasspath.bat, and catalina.bat files to point to a CD, but am still not having any luck. Any thoughts or suggestions? Thanks in advance, Rob DeVenuto -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [inbox] Newbie - Tomcat on read only folder
Hello, Ricardo! You wrote to [EMAIL PROTECTED] on Tue, 4 Nov 2003 13:38:20 -: RFd I recently started to use Tomcat and I wanted to know if it's RFd possible to run Tomcat from within a read only folder. My intention RFd is to install Tomcat into a hard drive, deploy the Gridsphere web RFd portal into it and then burn them onto a CD in order to have an RFd instant web portal. Is this possible? RFd What should I do? Why not, it is a good idea to do so, but running from CD going to be slow. What you have to do: 1) configure tomcat to use a different drive for logs and for temporary files. For example on Win env. your logs should be saved to c:\ It make shure that tomcat will have access to your drive regardless of CD ROM letter. 2) burn CD (or create a folder with read only permissions on the hard drive) and test it. It is not a problem, usually on production servers (unix env) /bin mounted as read only, to minimaze risk of hacking. --- Regards Ivan[a]yourmail.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AGAIN jk2 2.0.4 compile
You shouldn't need to have APR, since it is included in apache 2.0.49. Here, I will try to duplicate your issue. I have a system running Redhat 9. cd /home/wtruitt/src gzip -cd ../downloads/httpd-2.0.49.tar.gz | tar xf - cd httpd-2.0.49 sh configure --prefix=/usr/local/apache2049 --enable-so make su -c 'make install' su - cd /usr/local gzip -cd /home/wtruitt/downloads/jakarta-tomcat-5.0.19.tar.gz | tar xf - chown -R wtruitt:wtruitt jakarta-tomcat-5.0.19 exit cd /home/wtruitt/src gzip -cd ../downloads/jakarta-tomcat-connectors-jk2-src-2.0.4.tar.gz | tar xf - cd jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2 sh configure --with-apxs2=/usr/local/apach2049/bin/apxs make cd .. su -c 'cp -p build/jk2/apache2/mod_jk2.so /usr/local/apache2049/modules' cd /usr/local/jakarta-tomcat-5.0.19 bin/startup.sh su - cd /usr/local/apache2049/conf # create workers2.properties cat EOF workers2.properties [channel.socket:localhost:8009] port=8009 host=127.0.0.1 [ajp13:localhost:8009] channel=channel.socket:localhost:8009 [uri:/servlets-examples/*] worker=ajp13:localhost:8009 EOF # edit httpd.conf to add the following line LoadModule jk2_module modules/mod_jk2.so This worked for me. I will have to look into the jni stuff that someone else mentioned. -walter From: Giorgio Ponza [EMAIL PROTECTED] Subject: AGAIN jk2 2.0.4 compile Date: Thu, 01 Apr 2004 16:53:05 +0200 hi all again :D I am trying to build tomcat connector 2.0.4 from source. I've read maby howto etc, but i didn't succeed. I installed apache 2.0.49 with --enable-so option Also tomcat 5.0.19. I am working on RH 9. I installed apr 0.9.4 in /usr/local/apr-0.9.4 and apr-util in /usr/local/apr-util-0.9.4 If i use the line ./configure --with-apx2=/usr/local/apache2049 it says: configure: error: Apache 1.3 requires apr to built from source, use --with-apr and --with-apr-util OK, so i set also that 2 options and i obtain configure: error: Use apr that comes with Apache 2, remove --with-apr OK again i tried to follow some FAQ suggestions like ./configure --with-apxs2=/usr/local/apache/bin/apxs --with-apr=/usr/local/src/apr-0.9.4 --with-apr-util=/usr/local/src/apr-util-0.9.4 with an error configure: error: Use apr that comes with Apache 2, remove --with-apr and many others, mixed and remixed do you have some advices? i'm not really good with linux, have i to installa apxs from a source different than apache2049? TX a lot Giorgio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jsvc searches jvm.cfg for java 1.4.2 in wrong directory
I'm not sure if this is a bug of jsvc or newest jdk lack of backward compatibility. you running into problems if you try to use: jsvc -jvm server because jsvc doesn't find the server jvm without jvm.cfg. This fix works for me: cd /usr/java/j2re1.4.2_04/lib ln -s i386/jvm.cfg or cd /usr/java/j2sdk1.4.2_04/jre/lib ln -s i386/jvm.cfg Greetz, )ngo signature.asc Description: OpenPGP digital signature
Re: running tomcat from CD
samckins wrote: Thanks for all the help. I will have access to a writ able drive and will direct outputs accordingly. Well, maybe not Have a look at the Knoppix Linux project. This is a Linux distro that runs from CD, and sets up RAM disk for write operations. I've always wanted to set up Tomcat on Knoppix. All you need to do is get Tomcat to use the file path that maps to the RAM disk for logs etc. Regards, Jon. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Windows service and multiple instances
Wouter De Vaal wrote: Hi, I've read enough about having multiple tomcat instances. However when using windows, the installer won't create a second windows service for starting and stopping the second tomcat installation. Has anyone have a solution/suggestion for this? cd %TOMCAT1_HOME%\bin service install Instance1 cd %TOMCAT2_HOME%\bin service install Instance2 MT. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: running tomcat from CD
Thanks for all the help. I will have access to a writ able drive and will direct outputs accordingly. -Original Message- From: Halstead, Chris [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 1:55 PM To: Tomcat Users List Subject: RE: running tomcat from CD Thus the request for clarification on what our good friend Scott means by 'completely'. If access to writable disk is not available, the whole shootin' match is off... I think we agree, we just said it in different ways ;-) -chris Howdy, Note, however, that all FileLoggers have a configurable directory. The workDir for host and context is configurable as well. The system.out/system.err destination is set to $CATALINA_HOME/logs/catalina.out in $CATALINA_HOME/bin/catalina.sh and can be changed at will. So a more accurate answer might be: - You need to modify the above in your server.xml and catalina.sh before burning your copy of tomcat to CD - Whatever directory you use for your logs and workDir (which is required by the servlet spec, as I said earlier) needs to be off the CD-ROM, but accessible and writeable. Yoav Shapira \On Thu, 21 Aug 2003, Halstead, Chris wrote: Clarify 'completely'. If you have no access to writable disk you'll be unable to produce logs or persist context data under ./work. I suppose that you could do some fancy stuff with a RAMdisk, assuming that you are running on an OS that supports this. With an out of the box binary set you wouldn't be successful...catalina.sh will fail when it can't create ./logs/catalina.out. -chris -Original Message- From: samckins [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 9:30 AM To: [EMAIL PROTECTED] Subject: running tomcat from CD Is there a way to run Tomcat completely off of a CD-ROM? Thanks Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cannot find custom libraries
Hello What is 'cd'? SMC *should* be your context, because the WEB-INF sub-directory is located there - unless you've got things mixed up? Harry Mantheakis London Hello, I'm new to JSP, so this is confusing me. I am trying to use the com.oreilly.servlet.multipart package to try and upload files for a test page. However, I'm facing the following error: /tmp/foo/jakarta-tomcat-4.1.27/temp/cd/SMC/insertProduct_jsp.java:8: package com.oreilly.servlet does not exist import com.oreilly.servlet.*; ^ /tmp/foo/jakarta-tomcat-4.1.27/temp/cd/SMC/insertProduct_jsp.java:9: package com.oreilly.servlet.multipart does not exist import com.oreilly.servlet.multipart.*; ^ 2 errors The packages are contained in a jar file called cos.jar , which I've put in ../cd/SMC/WEB-INF (and /cd/SMC/WEB-INF/lib ) (the file that uses this - insertProduct.jsp - is located in /cd/SMC ) Can anyone throw any pointers as to why this is happeneing? I set my classpath to point to the jar file, but it doesnt help (frankly, I don't see why it would, since the webserver is running of a totally different daemon, and I'm not even the owner of that :( -- but I'm just trying to get this to compile!) Thanks, Kaushal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and HTTPD on the same box: What's the best mod_jk2 protocol?
I have RHEL3... these are my steps: tar -zxvf jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz cd jakarta-tomcat-connectors-jk2-2.0.2-src cd jk/ cd native2/ ./configure --with-java-home=/home/tomcat/j2sdk1.4.2_04 --with-jni --with-to mcat41=/home/tomcat/jakarta-tomcat-5.0.24 --with-apache2-lib=/usr/lib --with-apxs2=/usr/sbin/apxs cd server/apache2/ vi Makefile LIBTOOL=/usr/lib/libtool make libtool --finish /usr/lib/httpd/modules cd ../../build cd jk2/ cd apache2/ cp *.so /etc/httpd/modules/ On Friday 14 May 2004 16:43, Chong Yu Meng wrote: Hi Andrew ! Clute, Andrew wrote: If it is channelUnix, I just now need to figure out this crazy 'undefined symbols: apr_md5_final' error. I wrote a document for compiling mod_jk2 on Fedora Core 1, in which I specified the necessary packages, one of which is the APR libraries. You can find the document here : http://www.connecties.com/cymulacrum/tomcat5/book1.html The thing is, I have several friends who have tried to follow it but have all failed to get mod_jk2 going. The common thing in all these deployments is that they were ALL using RHEL 3, and the error was all the same. I don't have RHEL running on my system, so I cannot tell where the problem may be. Previously I was able to troubleshoot an unrelated problem on Mandrake because I was given SSH access to the box, but I have no such access to the RHEL boxes because of corporate and governmental confidentiality issues (which I understand perfectly). Perhaps you could try my instructions on the website mentioned above, paying special attention to the system requirements and tell me if it works or not. If not, where and how did it fail. I'm preparing for a major revision of my documents because many generous individuals far more intelligent than me, have contributed ideas, corrections and feedback on my scribblings, and I'd like to include this as an appendix (I shall be crediting them all in my revised document ). Regards, pascal chong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Gabriele Paciucci mailto:[EMAIL PROTECTED] BMIND Spa Via Pomponazzi, 25 20141 Milano (Italy) NUOVO SITO INTERNET: WWW.BMIND.IT Assistant: Emanuela Rugginenti mailto:[EMAIL PROTECTED] Tel: +39-02-84800-628 Fax: +39-02-84800-627 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4 integration with apache
Could you please tell me the steps? Env Red Hat 7.1 JDK 1.3.1.02 Tomcat 4.01 I have tried to use mod_webapp.so and seem to have no luck! Thanks in advance! I wrote a script that builds the following: Apache 1.3.22 including: mod_ssl Tomcat 4.0.1 IBM JDK 1.3.1 I apologize in advance for the length of this posting (I wasn't sure what to delete without causing an error in the dependencies). I don't know how well this will apply to your configuration. I would definitely NOT run the script as-is on a system - it may blow up some things that would make you very unhappy. It basically has the steps to create from a fresh Redhat 7.1 install a working system with Apache (including SSL), Tomcat, and a few other things you probably don't want or need. This is definitely a work in progress, so there may be some MAJOR screwups in there for most (maybe all) installations. You will have to inspect the configuration flags and packages and change to suit your needs. The packages are mostly the source packages, which I compile and install. build_all.sh: #!/bin/sh ## # setup the environment BLD_ROOT=/usr/local DL_HOME=/root/apache_build ## # make sure we want to do this first echo echo *!!!WARNING!!! * echo echo This is a destructive procedure - only run this if echo you know what you are doing and everything is properly echo backed up! echo -n Do you wish to proceed? (y/n): read REPLY if [ \( $REPLY = 'y' \) -o \( $REPLY = 'Y' \) ] [ ! -z $REPLY ]; then echo -n Are you sure? Spell it out \yes\ (case sensitive): read REPLY2 if [ ! $REPLY2 = 'yes' ] || [ -z $REPLY2 ]; then exit fi else exit fi ## # create directory for a local copy of the files echo -n 'Do you wish to reload from CD? ' 2 read REPLY if [ $REPLY = 'y' ] || [ $REPLY = 'Y' ]; then if [ -d ${DL_HOME} ]; then rm -rf ${DL_HOME} fi echo Mounting/unmounting CD, this may take a while... mkdir ${DL_HOME} umount /mnt/cdrom mount /mnt/cdrom cp -v -R /mnt/cdrom/* ${DL_HOME} umount /mnt/cdrom fi ## # start the real install ## rpm -Uhv ${DL_HOME}/IBMJava2-SDK-1.3-10.0.i386.rpm ## # ant echo Setting up ant cd ${BLD_ROOT} if [ -d jakarta-ant-1.4 ]; then rm -rf jakarta-ant-1.4 fi if [ -f jakarta-ant-1.4-src.tar.gz ]; then rm -f jakarta-ant-1.4-src.tar.gz fi cp -v ${DL_HOME}/jakarta-ant-1.4-src.tar.gz ${BLD_ROOT} tar xvfz jakarta-ant-1.4-src.tar.gz cd jakarta-ant-1.4 ./build.sh cp -R dist ${BLD_ROOT}/ant ## # jaxp echo Setting up jaxp cd ${BLD_ROOT} if [ -d jaxp-1.1 ]; then rm -rf jaxp-1.1 fi if [ -f jaxp-1_1.zip ]; then rm -f jaxp-1_1.zip fi cp -v ${DL_HOME}/jaxp-1_1.zip ${BLD_ROOT} unzip jaxp-1_1.zip cp -v jaxp-1.1/*.jar ant/lib ## # servlet.jar echo Setting up servlet.jar cd ${BLD_ROOT} if [ -d jakarta-servletapi-4 ]; then rm -rf jakarta-servletapi-4 fi if [ -f jakarta-servletapi-4-src-20011227.tar.gz ]; then rm -f jakarta-servletapi-4-src-20011227.tar.gz fi cp -v ${DL_HOME}/jakarta-servletapi-4-src-20011227.tar.gz ${BLD_ROOT} tar xvfz jakarta-servletapi-4-src-20011227.tar.gz cd jakarta-servletapi-4 ant clean ant dist ## # jaf echo Setting up jaf cd ${BLD_ROOT} if [ -d jaf-1.0.1 ]; then rm -rf jaf-1.0.1 fi if [ -f jaf1_0_1.zip ]; then rm -f jaf1_0_1.zip fi cp -v ${DL_HOME}/jaf1_0_1.zip ${BLD_ROOT} unzip jaf1_0_1.zip ## # javamail echo Setting up javamail cd ${BLD_ROOT} if [ -d javamail-1.2 ]; then rm -rf javamail-1.2 fi if [ -f javamail-1_2.zip ]; then rm -f javamail-1_2.zip fi cp -v ${DL_HOME}/javamail-1_2.zip ${BLD_ROOT} unzip javamail-1_2.zip ## # jdbc echo Setting up jdbc cd ${BLD_ROOT} if [ -d jdbc2_0-stdext ]; then rm -rf jdbc2_0-stdext fi mkdir ${BLD_ROOT}/jdbc2_0-stdext cp -v ${DL_HOME}/jdbc2_0-stdext.jar ${BLD_ROOT}/jdbc2_0-stdext ## # jmx echo Setting up jmx if [ -d jmx-1_0_1-ri_bin ]; then rm -rf jmx-1_0_1-ri_bin fi cp -v ${DL_HOME}/jmx-1_0-ri_bin.zip ${BLD_ROOT} unzip jmx-1_0-ri_bin.zip ## # jndi echo Setting up jndi if [ -d jndi1_2_1 ]; then rm -rf jndi1_2_1 fi mkdir ${BLD_ROOT}/jndi1_2_1 cp -v ${DL_HOME}/jndi1_2_1.zip ${BLD_ROOT}/jndi1_2_1 cd ${BLD_ROOT}/jndi1_2_1 unzip jndi1_2_1.zip ## # jsse echo Setting up jsse cd ${BLD_ROOT} if [ -d jsse1.0.2 ]; then rm -rf jsse1.0.2 fi if [ -f jsse-1_0_2-do.zip ]; then rm -rf jsse-1_0_2-do.zip fi cp -v ${DL_HOME}/jsse-1_0_2-do.zip ${BLD_ROOT} unzip jsse-1_0_2-do.zip ## # regexp echo Setting up regexp cd ${BLD_ROOT} if [ -d jakarta-regexp-1.2 ]; then rm -rf jakarta-regexp-1.2 fi if [ -f jakarta
Cant compile tomcat 4.0.3 as a module to apache 2.0
I am also getting the following when trying to install tomcat as a module to apache 2.36 Apache compile: EAPI_MM=SYSTEM OPTIM=-O3 -mcpu=i686 -funroll-loops -fomit-frame-pointer CFLAGS=-DDYNAMIC_MODULE_LIMIT=0 ./configure --prefix=/home/httpd --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib/apache --includedir=/usr/include/apache --sysconfdir=/etc/httpd/conf --localstatedir=/var --datadir=/home/httpd --mandir=/usr/share/man --enable-so --with-apxs cd /tmp/{tomcat_connector}/webapp support/buildconf.sh I get the following error: --- Cannot run APR buildconf script Don't a forget to download a copy of the APR sources, and to run the buildconf script for it: # cd [path to APR sources] # ./buildconf # cd [path to WebApp sources] Then remember to run ./configure script including the command line option --with-apr=[path to APR sources] --- Creating WebApp configure script Creating configure ... --- All done I downloaded apr_20020612223008.tar.gz untar cd apr ./configure make cd /tmp/{tomcat_connector}/webapp ./configure --with-apxs=/usr/sbin/apxs --with-tomcat=/usr/jakarta-tomcat-4.0/ --with-apr=/tmp/apr but still getting error: checking for Apache apxs... yes sh: /usr/bin/envvars: No such file or directory apxs:Error: Sorry, no shared object support for Apache. apxs:Error: available under your platform. Make sure. apxs:Error: the Apache module mod_so is compiled into. apxs:Error: your server binary `/usr/sbin/httpd'.. configure: error: /include not found. Use --with-apr-include=DIR. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
beginner needs help(Compile error)
Dear Helper, I am running the application fine with the following commands... set TOMCAT_HOME=e:\foo\jakarta-tomcat-3.2.1 set JAVA_HOME=e:\jdk1.3 cd jakarta-tomcat-3.2.1\bin startup cd .. cd doc cd appdev cd sample The above outputs the following path info also... Using CLASSPATH: e:\foo\jakarta-tomcat-3.2.1\classes;e:\foo\jakarta-tomcat-3.2.1 \lib\ant.jar;e:\foo\jakarta-tomcat-3.2.1\lib\jasper.jar;e:\foo\jakarta-tomcat-3. 2.1\lib\jaxp.jar;e:\foo\jakarta-tomcat-3.2.1\lib\parser.jar;e:\foo\jakarta-tomca t-3.2.1\lib\servlet.jar;e:\foo\jakarta-tomcat-3.2.1\lib\webserver.jar;C:\SilverS tream30\COMPILECACHE\LOCALHOST\DEVELOP_BEANS\CLASSES;C:\SilverStream30\LIB\Silve rServerAll.zip;c:\SilverStream30\lib\servlet.jar;c:\SilverStream30\jre\lib\rt.ja r;c:\SilverStream30\lib\silverdesignerall.zip;c:\SilverStream30\Docs\help\books\ TechCode\jsptech6;c:\SilverStream30\jre\lib\ext\jndi.jar;c:\SilverStream30\lib\j avax_sql.zip;e:\jdk1.3\lib\tools.jar I am then typing build in the sample directory but here I come unstuck... E:\foo\jakarta-tomcat-3.2.1\doc\appdev\samplebuild Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/ Main Can you throw any light on this? Regards Charles Your email address says a lot about you. Express yourself @ another.com http://another.com/jump.jsp?destDesc=another.com/login.jsp?sig=393 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Running tomcat from CD-ROM
Servus Sriram, Am Dienstag, 27. Mai 2003 12:00 schrieb Sriram N: Some questions: 1. If your project is browser based, how automatic do you plan to make the solution ? Will the user have to type in the URL ? (I don't know if Un*x has anything like Windows' Internet Shortcuts). As automatic as possible;-) If you could depend on your user to run some file, you might have to just alter startup.bat, I think. You could then bundle JRE+tools.jar on the CD itself Yes, I hope I can talk with the customers that this should be the way we go. The concept says, that there should be some autostart-action when putting the CD into the CD-player, but I don't think, that I will find a solution doing that for all platforms with the same procedure, so I hope I could let the user make the choice. In real life 98% of the possible users have MS Windows running, so may be we only promote the windows-cd-autostart and let the other users starting the system manually. (I'm busy with industrial automation at factories now-a-days, and have no access to a real Tomcat system or code, sorry...) No problem! I'm happy to have some days to think about all of that, without time-pressure. Thanx for your constructive answer! Wolfgang - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: CD Drive as webapps (EmbeddedTomcat)
Howdy, What error do you get? Yoav Shapira Millennium ChemInformatics -Original Message- From: Lee Peik Feng [mailto:[EMAIL PROTECTED] Sent: Monday, June 16, 2003 12:38 PM To: Tomcat Users List Subject: CD Drive as webapps (EmbeddedTomcat) Hi, I would like to set my CD Rom drive as one of my webapps. When I run tomcat with normal installation with below setting in server.xml (my CD Rom drive is F:\ and the content of the CD is MP3 files) Context path=/music docBase=F:/ debug=0/ I could create the webapps and get my mp3 songs link correctly. However, when I use EmbeddedTomcat with reference to O'Reily website, I couldn't create the webapps. The error occur in org.apache.catalina.core.StandardHostDeployer.install (at line 260 from tomcat 4.1.24 source) if (appBase.getCanonicalPath().equals(baseDir.getCanonicalPath())) { isAppBase = true; } baseDir.getCanonicalPath() will give a null pointer exception if baseDir is a drive name, eg: C:/ How could I solve this problem? Any clue for me? Regards, Peik Feng - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: running tomcat from CD
Howdy, Note, however, that all FileLoggers have a configurable directory. The workDir for host and context is configurable as well. The system.out/system.err destination is set to $CATALINA_HOME/logs/catalina.out in $CATALINA_HOME/bin/catalina.sh and can be changed at will. So a more accurate answer might be: - You need to modify the above in your server.xml and catalina.sh before burning your copy of tomcat to CD - Whatever directory you use for your logs and workDir (which is required by the servlet spec, as I said earlier) needs to be off the CD-ROM, but accessible and writeable. Yoav Shapira \On Thu, 21 Aug 2003, Halstead, Chris wrote: Clarify 'completely'. If you have no access to writable disk you'll be unable to produce logs or persist context data under ./work. I suppose that you could do some fancy stuff with a RAMdisk, assuming that you are running on an OS that supports this. With an out of the box binary set you wouldn't be successful...catalina.sh will fail when it can't create ./logs/catalina.out. -chris -Original Message- From: samckins [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 9:30 AM To: [EMAIL PROTECTED] Subject: running tomcat from CD Is there a way to run Tomcat completely off of a CD-ROM? Thanks Scott - 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]
RE: running tomcat from CD
http://marc.theaimsgroup.com is a good one. Choose Tomcat-user (under Java), then do a search. http://jakarta.apache.org/site/mail.html also lists other archives at the bottom of the page, in case marc.theaimsgroup doesn't suit you. Jeff Tulley ([EMAIL PROTECTED]) (801)861-5322 Novell, Inc., The Leading Provider of Net Business Solutions http://www.novell.com [EMAIL PROTECTED] 8/21/03 10:34:51 AM How do I access the archives? -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 10:32 AM To: Tomcat Users List Subject: Re: running tomcat from CD And this was discussed a few times in the archives! -Tim Shapira, Yoav wrote: Howdy, You would have to at least modify tomcat's work and temp directories. The servlet container is required to provide a writeable temporary directory for each context, so unless the CD is writeable all the time via regular Java IO APIs, you have to do the above. Yoav Shapira Millennium ChemInformatics -Original Message- From: samckins [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 9:30 AM To: [EMAIL PROTECTED] Subject: running tomcat from CD Is there a way to run Tomcat completely off of a CD-ROM? Thanks Scott - 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]
RE: running tomcat from CD
Thus the request for clarification on what our good friend Scott means by 'completely'. If access to writable disk is not available, the whole shootin' match is off... I think we agree, we just said it in different ways ;-) -chris Howdy, Note, however, that all FileLoggers have a configurable directory. The workDir for host and context is configurable as well. The system.out/system.err destination is set to $CATALINA_HOME/logs/catalina.out in $CATALINA_HOME/bin/catalina.sh and can be changed at will. So a more accurate answer might be: - You need to modify the above in your server.xml and catalina.sh before burning your copy of tomcat to CD - Whatever directory you use for your logs and workDir (which is required by the servlet spec, as I said earlier) needs to be off the CD-ROM, but accessible and writeable. Yoav Shapira \On Thu, 21 Aug 2003, Halstead, Chris wrote: Clarify 'completely'. If you have no access to writable disk you'll be unable to produce logs or persist context data under ./work. I suppose that you could do some fancy stuff with a RAMdisk, assuming that you are running on an OS that supports this. With an out of the box binary set you wouldn't be successful...catalina.sh will fail when it can't create ./logs/catalina.out. -chris -Original Message- From: samckins [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 9:30 AM To: [EMAIL PROTECTED] Subject: running tomcat from CD Is there a way to run Tomcat completely off of a CD-ROM? Thanks Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Running Tomcat off a CD
You can also try Microsoft Netmeeting if you're using Windows 2000 or Windows XP. It allows you to connect 2 or more computers charing the same desktop (yours). Students will be able to see what you're doing and I'm not sure because I've never tried it but I think it also allows for others to interact with your desktop as well. Anyways, just another option for you to think about :-) /JM -Original Message- From: epyonne [mailto:[EMAIL PROTECTED] Sent: 29 August 2003 21:49 To: Tomcat Users List Subject: Re: Running Tomcat off a CD MessageIf you can get access to a laptop (I thought most schools have that or am I wrong?), you can install everything on it and then do your demo thru a Proxima projector. If you cannot get a laptop, you can use a portable USB2 hard-drive. That should work. Hope this helps. - Original Message - From: DeVenuto, Rob To: [EMAIL PROTECTED] Sent: Friday, August 29, 2003 02:45 PM Subject: Running Tomcat off a CD Tomcat 4.1.24 / WINXP SP1 Has anyone successfully run Tomcat off a CD? I know this is a little out of the ordinary. We have a J2EE app which I would like to teach to students. The problem is having a quick setup environment for the students with having to install minimal software. I have adjusted the variables in the startup.bat, setclasspath.bat, and catalina.bat files to point to a CD, but am still not having any luck. Any thoughts or suggestions? Thanks in advance, Rob DeVenuto -- - 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]
Servlet, Bean Standalone
Hi guys, I need your help. I try to use bean to connect EJB managed by JBOSS. If I use standalone java program to access the data in JBOSS, everything is perfect. But if I use the a jsp page which in turn uses a Bean to access Jboss, then I got the following msg: javax.naming.NameNotFoundException: Name cd is not bound in this Context where cd is part of my jndi directory: cd/CDColection. could anyone tell me what the difference between the two approach mentioned above? I means I should be able to access data in jboss right? I believe I have set resouce description in web.xml correctly, but I am not sure whether I need it or not. I am lost. thank you. teng __ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at http://auctions.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Instantiating Beans on Tomcat
Have you tried to use the build script, and build.xml? This will prepare your webapps directory properly, put the class files in the correct (expected) place, and you don't need to screw around with the CLASSPATH. Makes life simpler: after the preparation outlined below, you just execute "# ./build" from your app development directory after making any changes. Craig McC., bless his heart, described this in some doc that comes with Tomcat (I seem to recall). Eg, 0. # export TOMCAT_HOME=/path_to_tomcat 1. # cd /home/brandon 2. # mkdir test 3. # cd test 4. # mkdir src lib etc web 5. # mkdir src/mypackage 6. # cp InfoBean.java src/mypackage/. 7. # cp build . 8. # cp build.xml . 9. now edit the appropriate lines in build.xml to read: project name="test" default="compile" basedir="." property name="app.name" value="test" / property name="deploy.home" value="${tomcat.home}/webapps/${app.name}" / 10. now edit your jsp file: jsp:useBean id="sessionBean" scope="session" class="mypackage.InfoBean" / 11. # ./build 12. # cd $TOMCAT_HOME/bin 13. # ./startup.sh
PROBLEM TOMCAT(stdalone)STARTUP\WIN 98
SUB:PROBLEM TOMCAT-STANDALONE MODE STARTUP (WIN 98) (How to setup the environment variable) 1. TOMCAT(STDALONE\WIN98) NOT STARTING after setting the env variable. A. BEFORE SETTING the environment variable,when I run run bin.stratup.bat, it says point JAVA_HOME to your Java Development Kit. B. AFTER setting env variables, the commands bin/startup and bin/shutdown not functioning("says file not found). C. How to know TOMCAT is RUNNING or NOT.? I have setup the environment variables as follows I have created a separate batch file(tomenv.bat) that contains the following: F:\ cd\temp\jakarta-tomcat-3.2.1 SET TOMCAT_HOME= f:\cd\temp\jakarta-tomcat-3.2.1 SET JAVA_HOME=C:\jdk1.2.1 SET CLASSPATH:=f:\cd\temp\jakarta-tomcat-3.2.1\bin\startup.bat; PLEASE HELP(Three days have passed with this problem) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
ENVIRONMENT SETTING TOMCAT(stdalone)\WIN 98
SUB:ENVIRONMENT SETTING TOMCAT(stdalone)\WIN 98(How to setup the environment variable) Dear aLL, I am having problem in setting the ENVIRONMENT variable(win 98) . 1. TOMCAT(STDALONE\WIN98) NOT STARTING . AFTER setting env variables, Ms-dos says "OUT OF ENVIRONMENT SPACE". 2. How to know TOMCAT is RUNNING or NOT.? I have setup the environment variables as follows I have created a separate batch file(tomenv.bat) that contains the following: F:\ cd\temp\jakarta-tomcat-3.2.1 SET TOMCAT_HOME= f:\cd\temp\jakarta-tomcat-3.2.1 SET JAVA_HOME=C:\jdk1.2.1 SET CLASSPATH:=f:\cd\temp\jakarta-tomcat-3.2.1\bin\startup.bat; PLEASE HELP(Three days have passed with this problem) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
PROBLEM TOMCAT(stdalone)STARTUP\WIN 98
SUB:PROBLEM TOMCAT-STANDALONE MODE STARTUP (WIN 98) (How to setup the environment variable) 1. TOMCAT(STDALONE\WIN98) NOT STARTING after setting the env variable. A. BEFORE SETTING the environment variable,when I run run bin.stratup.bat, it says point JAVA_HOME to your Java Development Kit. B. AFTER setting env variables, the commands bin/startup and bin/shutdown not functioning("says file not found). C. How to know TOMCAT is RUNNING or NOT.? I have setup the environment variables as follows I have created a separate batch file(tomenv.bat) that contains the following: F:\ cd\temp\jakarta-tomcat-3.2.1 SET TOMCAT_HOME= f:\cd\temp\jakarta-tomcat-3.2.1 SET JAVA_HOME=C:\jdk1.2.1 SET CLASSPATH:=f:\cd\temp\jakarta-tomcat-3.2.1\bin\startup.bat; PLEASE HELP(Three days have passed with this problem) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
problems compiling and using mod_jk
Ok, here's what I've done: 1) grab latest connector sources 2) cd $SRC/jk/native 3) ./buildconf.sh 4) ./configure --with-apxs=/usr/local/apache2/bin/apxs 5) make 6) cd apache-2.0 7) cp libmod_jk.so.0.0.0 /usr/local/apache2/modules 8) cd /usr/local/apache2/modules 9) ln -s libmod_jk.so.0.0.0. mod_jk.so 10) /usr/local/apache2/bin/apachectl start And what I got was: 1) bunch of libtoolizer errors, but according to http://www.johnturner.com/howto I don't have to worry about that. 2) # bin/apachectl start Syntax error on line 232 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/mod_jk.so into server: dynamic linker: /usr/local/apache2/bin/httpd: relocation error: symbol not found: ap_content_type_tolower; referenced from: /usr/local/apache2/modules/mod_jk.so --mikej -=- mike jackson [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47
I did exactly that, and there's still no .so -Original Message- From: Richard Park [mailto:[EMAIL PROTECTED] Sent: 14 August 2003 13:29 To: Tomcat Users List Subject: Re: Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47 Stuart, just to be sure I downloaded the version of jk2 that you have and tried building it myself, and everything went smoothly. If your willing, here's exactly what I did: # cd /usr/local/src # wget http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0. 2/src/jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz # gunzip -dc jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz | tar xf - # cd jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2 # ./configure --with-apxs2=/usr/local/apache2/bin/apxs # make # cd ../build/jk2/apache2 # ls -la and the mod_jk2.so file was there ... if it continues to fail for you I email you my mod_jk2.so - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47
Stuart, just to be sure I downloaded the version of jk2 that you have and tried building it myself, and everything went smoothly. If your willing, here's exactly what I did: # cd /usr/local/src # wget http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0.2/src/jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz # gunzip -dc jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz | tar xf - # cd jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2 # ./configure --with-apxs2=/usr/local/apache2/bin/apxs # make # cd ../build/jk2/apache2 # ls -la and the mod_jk2.so file was there ... if it continues to fail for you I email you my mod_jk2.so - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
CD based tomcat (hopefully)
This is probably a daft question to all you experienced tomcat guys, but it's baffled me for a couple of weeks now. I've got Tomcat 4.1.12 installed (on Windows XP Pro) in c:\tomcat, and CATALINA_HOME is set to that in the system environment variables. What I want to do is to make a copy of it on a CD as a known stable environment to demonstrate a university project, and have it so I can just stick the CD in and it starts tomcat and fires up a web browser to my project root (for example, http://localhost:8080/WebApp) The web browser bit isn't much of a problem, but if I make a copy of c:\tomcat in another folder with a startup script that fills in all the details for catalina_home, java_home (also in a subdir) and so on, the tomcat server starts up and then dies without creating a log (or at least, not in the new %catalina_home%\logs folder) Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: build mod_jk2 ?
# cd /usr/local/src # wget http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0. 2/src/jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz # gunzip -dc jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz | tar xf - # cd jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2 # ./configure --with-apxs2=/usr/local/apache2/bin/apxs # make # cd ../build/jk2/apache2 # ls -la -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 20 August 2003 11:59 To: [EMAIL PROTECTED] Subject: build mod_jk2 ? Hi, I have Tomacat 4.1.27 , and apache 2.0.35 on HP-UX 11.0 Where can I found the procedure and the source to build mod_jk2 ? Thanks in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running Tomcat off a CD
Rob, This came up fairly recently (last week?) and there was substantial discussion about the gotchas involved in doing this. Check the archives for more info. Amongst others, http://www.mail-archive.com/[EMAIL PROTECTED]/ justin At 12:45 PM 8/29/2003, you wrote: Tomcat 4.1.24 / WINXP SP1 Has anyone successfully run Tomcat off a CD? I know this is a little out of the ordinary. We have a J2EE app which I would like to teach to students. The problem is having a quick setup environment for the students with having to install minimal software. I have adjusted the variables in the startup.bat, setclasspath.bat, and catalina.bat files to point to a CD, but am still not having any luck. Any thoughts or suggestions? Thanks in advance, Rob DeVenuto - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Justin Ruthenbeck Software Engineer, NextEngine Inc. justinr - AT - nextengine DOT com Confidential See http://www.nextengine.com/confidentiality.php - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 4.1.27 not reloading classes even after applying hotfix
Hello: I have a server running tomcat 4.1.27 and it is not reloading classes for my webapp even after applying the hotfix. I installed tomcat 4.1.27 by doing these commands: cd /usr/local lynx http://apache.oregonstate.edu/jakarta/tomcat-4/binaries/jakarta-tomcat-4 .1.27.tar.gz tar zxf jakarta-tomcat-4.1.27.tar.gz Here is what I did to install the hotfix: cd /usr/local/jakarta-tomcat-4.1.27/server/classes jar xvf ../lib/catalina.jar rm -f ../lib/catalina.jar cd /usr/local/jakarta-tomcat-4.1.27 lynx http://www.wmwweb.com/apache/jakarta/tomcat-4/binaries/4.1.27-hotfix-220 96.tar.gz tar zxf 4.1.27-hotfix-22096.tar.gz I have my server.xml to reloadable=true for the app's context. Any ideas? Thanks, Neil -- Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com FREE! Valuable info on how your business can reduce operating costs by 17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: New to user-mailing-list (mod_jk)
Ik didnt work !!! I have been working for 1 hour to reinstall everything this is what I did (after a clean red hat 7.0 install) 01: cd /tmp/apache1.3.19 02: ./configure --prefix=/usr/local/apache --enable-module=so 03: cd /tmp/php4.0.4 04: ./configure --with-mysql --with-apache=../apache1.3.19 --enable-track-vars 05: make 06:.make install 07: cd /tmp/apache1.3.19 08: ./configure --activate-module=src/modules/php4/libphp4.a 09: make 10: make install 11: cd /tmp/php4.0.4 12: cp php.ini-dist /usr/local/lib/php.ini *** edit httpd.conf *** 13: AddType application/x-httpd-php .php unzip/tar Tomcat to /usr/local/jakarta-tomcat *** 14: cd /usr/local/jakarta-tomcat/bin edit tomcat to let tomcat know where the JDK is *** 15: ./startup.sh copy mod_jk.so to /apache/libexec *** *** edit httpd.conf *** Include "/usr/local/jakarta-tomcat/conf/mod_jk.conf-auto" 16: cd /usr/local/apache/bin 17: ./apachectl start the SAME error again - Sytax error on line 8 of /usr/local/jakarta-tomcat/conf/mod_jk.conf-auto: Invalid command 'LoadModule', perhaps mis-spelled or defined by a module not included in the server configuration ./apachectl start: httpd could not be started - now I can completey start all over again... does anybody know the configuration that does enable the use of LoadModule ? rick - Original Message - From: "Wesselmann, Marcus" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 20, 2001 2:54 PM Subject: AW: New to user-mailing-list Hi, At compile-time you only have to use --enable-module=so When Apache is compiled and installed you enable mod_jk with an appropiate LoadModule entry in httpd.conf. At least that worked fine for me :) Regards, Marcus -Ursprngliche Nachricht- Von: Rick [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 20. April 2001 14:16 An: [EMAIL PROTECTED] Betreff: Re: New to user-mailing-list sorry to bother you once more with the same question but before I really configure apache (I might do something wrong, and let me start all over again) should I use: --enable-shared or --enable-module=so in the configuration to enable me to use mod_jk.so I read the documentation, but this talked about stuff Im not familiar with... regards rick
Re: CD Drive as webapps (EmbeddedTomcat)
java.lang.NullPointerException at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j ava:260) at org.apache.catalina.core.StandardHost.install(StandardHost.java:772) at Tomcat.registerWAR(Tomcat.java:200) at EmbeddedTomcat.startTomcat(EmbeddedTomcat.java:1098) at EmbeddedTomcat.main(EmbeddedTomcat.java:1292) - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, June 17, 2003 12:41 AM Subject: RE: CD Drive as webapps (EmbeddedTomcat) Howdy, What error do you get? Yoav Shapira Millennium ChemInformatics -Original Message- From: Lee Peik Feng [mailto:[EMAIL PROTECTED] Sent: Monday, June 16, 2003 12:38 PM To: Tomcat Users List Subject: CD Drive as webapps (EmbeddedTomcat) Hi, I would like to set my CD Rom drive as one of my webapps. When I run tomcat with normal installation with below setting in server.xml (my CD Rom drive is F:\ and the content of the CD is MP3 files) Context path=/music docBase=F:/ debug=0/ I could create the webapps and get my mp3 songs link correctly. However, when I use EmbeddedTomcat with reference to O'Reily website, I couldn't create the webapps. The error occur in org.apache.catalina.core.StandardHostDeployer.install (at line 260 from tomcat 4.1.24 source) if (appBase.getCanonicalPath().equals(baseDir.getCanonicalPath())) { isAppBase = true; } baseDir.getCanonicalPath() will give a null pointer exception if baseDir is a drive name, eg: C:/ How could I solve this problem? Any clue for me? Regards, Peik Feng - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_JK2 static installation problem
I've been trying to install the mod_jk 2 module statically into Apache version 2.0.49 using the directions on the Jakarta site but continue to have a failed install requesting that I configure Apache before installing mod_jk. However if I install apache first it doesn't install mod_jk statically. Below is the directions from the site followed by the pertinent parts of my make file. Any help on the subject would be appreciated. I've looked around and mostly find that people use the so module way of installing. Thanks, Ryan Peterson --- /home/apache20/httpd-2.0.43 is the directory where the httpd-2.0 sources are located. [EMAIL PROTECTED] ~ $ ./configure --with-apache=/home/apache20/httpd-2.0.43 [EMAIL PROTECTED] ~ $ make Install the mod_jk library and other files in /home/apache20/httpd-2.0.43/modules: [EMAIL PROTECTED] ~ $ make install It is not possible to configure Apache directly because the config.m4 of mod_jk must be added to the configure of httpd-2.0. [EMAIL PROTECTED] ~ $ cd /home/apache20/httpd-2.0.43 [EMAIL PROTECTED] ~ $ sh buildconf [EMAIL PROTECTED] ~ $ configure ... --with-mod_jk [EMAIL PROTECTED] ~ $ make [EMAIL PROTECTED] ~ $ make install --- APACHEV=2.0.49 JKV=2.0.4 OBJ=/usr/local/ SRC=/home/jgordon/toinstall/ STAGE=$(SRC)stage/ APACHE=httpd-$(APACHEV) APACHEO=$(OBJ)$(APACHE) apache: $(APACHEO)/bin/httpd apache $(APACHEO)/bin/httpd: httpd-$(APACHEV).tar.gz openssl jakarta-tomcat-connectors-jk2-src-current.tar.gz cd $(STAGE); tar xzf $(SRC)httpd-$(APACHEV).tar.gz; \ cd $(STAGE); tar xzf $(SRC)jakarta-tomcat-connectors-jk2-src-current.tar.gz; \ cd jakarta-tomcat-connectors-jk2-$(JKV)-src/jk/native2; pwd; echo cd done; \ ./buildconf.sh; pwd; echo buildconf done; \ ./configure --with-apache2=${STAGE}${APACHE}; pwd; echo configure done; \ make; pwd; echo make1 done; \ make install; pwd; echo make2 done; \ cd $(STAGE)httpd-$(APACHEV); \ sh buildconf; \ ./configure --prefix=$(APACHEO) --enable-ssl --with-mod_jk --enable-rewrite; \ make; \ make install - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: NIGHTMARE
-Original Message- From: Timlin, Bob [mailto:[EMAIL PROTECTED]] Sent: Monday, April 08, 2002 11:39 AM Let's see. The following is a nightmare 1. unzip tomcat 2. cd $TOMCAT_HOME/bin (unix/linux) or cd %TOMCAT_HOME%\bin (windows) 3. startup.sh (unix/linux) or startup (windows) This snide kind of remark is hardly worth its typing time. It implies that people having problems installing and configuring TomCat, are morons. This is not only insulting to list members, it's far from the truth. Clearly, there is more to installing and configuring TomCat than the three lines above. If you are truly interested in helping, then help by providing useful, constructive comments/suggestions, or provide time to improve well needed documentation. - tex -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
webapp/buildconf.sh
I'm trying to follow Simon's page about integrating Apache 2.0 and Tomcat. After downloading the source for mod_webapp and unpacking it, I get the following message when trying to run the buildconf shell script: --- Cannot run APR buildconf script Don't a forget to download a copy of the APR sources, and to run the buildconf script for it: # cd [path to APR sources] # ./buildconf # cd [path to WebApp sources] Then remember to run ./configure script including the command line option --with-apr=[path to APR sources] --- Creating WebApp configure script Creating configure ... ./support/buildconf.sh: autoconf: command not found --- All done can anyone help ? Kaveh -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Linux
What distro of Linux do you have? If you have RedHat, you can install a Tomcat RPM and that's it, it does all the work for you. Do a google search for Tomcat RPM or whatever. If you have RedHat and a powertools CD, the Tomcat RPM should be on your powertools CD. James - Original Message - From: "Hakan " [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, September 10, 2001 10:37 PM Subject: Linux Hi Guys, I want to install tomcat to my Linux machine. Where can I find any document for this and What shall I do? Thanks... Hakan
Re: Linux
[EMAIL PROTECTED] writes: What distro of Linux do you have? If you have RedHat, you can install a Tomcat RPM and that's it, it does all the work for you. Do a google search for Tomcat RPM or whatever. If you have RedHat and a powertools CD, the Tomcat RPM should be on your powertools CD. - Original Message - From: Hakan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, September 10, 2001 10:37 PM Subject: Linux Hi Guys, I want to install tomcat to my Linux machine. Where can I find any document for this and What shall I do? Thanks... Hakan If you want to compile from source: http://jakarta.apache.org/site/sourceindex.html Docs are in the source tarballs. Chris
CD ROM Project, Read-only Tomcat ??
Has somebody build a CDROM Project with Tomcat? We try to use it as a web- and servlet server on a CDROM. Now there is the problem with the write access by tomcat (auto.conf files, log-files a.s.o.) My questions: 1. How to stop tomcat from generating the auto-conf files in bin-directory? 2. Can I point to conf files (server.xml, web.xml) on a temp dir on harddisk with write access? 3. Can I configure a webapp context to use files (html, gifs, xml) not under the webapps dir (e.g. webapp on harddisk, html and gifs on CD ROM) ? thank you for an answer -- Thomas
SOLVED: apache 1.3.14, tomcat 3.2.1, Linux
Hello: With a LOT of help from people on this list, I finally got apache 1.3.14 and Tomcat 3.2.1 configured and working on my system. Here is the exact procedure that I used to get apache 1.3.14 and tomcat 3.2.1 to work on my Linux system. I hope this helps some of the dazed and confused out there! Thanks, Neil. -- Neil Aggarwal JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com Custom Internet Development -- Java, JSP, servlets, databases Installing apache 1.3.14 and tomcat 3.2 on a Linux system This assumes that you already have the Blackdown java 1.3 VM installed in /usr/local/java and that you are using bash Login as root cd ~ vi .bashrc and add these lines: export TOMCAT_HOME=/usr/local/jakarta-tomcat-3.2.1 export JAVA_HOME=/usr/local/java export PATH=$JAVA_HOME/bin:$PATH Logout and log back in to make these changes effective. cd /usr/local Download the file http://httpd.apache.org/dist/apache_1.3.14.tar.gz De-archive it. cd apache_1.3.14 ./configure --prefix /usr/local/apache_1.3.14_bin --enable-module=rewrite --enable-shared=rewrite make make install cd /usr/local Download the file http://jakarta.apache.org/builds/tomcat/release/v3.2.1/src/jakarta-tomcat-3.2.1-src.tar.gz Dearchive it. cd jakarta-tomcat-3.2.1-src/src/native/apache1.3 cp Makefile.linux Makefile Edit the Makefile to change the APXS= line to: APXS=/usr/local/apache_1.3.14_bin/bin/apxs make This will build all of the *.o files, but will fail on the build of mod_jk.so, so then enter this command: gcc -shared -o mod_jk.so *.o cp mod_jk.so /usr/local/apache_1.3.14_bin/libexec cd /usr/local Download the file http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/bin/jakarta-tomcat-3.2.1.tar.gz Dearchive it cd jakarta-tomcat-3.2.1/conf vi server.xml and add the following lines in the Connectors section !-- Apache AJP13 support -- Connector className="org.apache.tomcat.service.PoolTcpConnector" Parameter name="handler" value="org.apache.tomcat.service.connector.A jp13ConnectionHandler"/ Parameter name="port" value="8009"/ /Connector Start and stop tomcat to create the auto configuration files: cd ../bin ./startup.sh ./shutdown.sh vi /usr/local/apache_1.3.14_bin/conf/httpd.conf Add the following lines to the end of that file: # Load the tomcat configuration file include /usr/local/jakarta-tomcat-3.2.1/conf/mod_jk.conf-auto Add the following lines to /etc/rc.d/rc.local: export APACHE_HOME=/usr/local/apache_1.3.14_bin export TOMCAT_HOME=/usr/local/jakarta-tomcat-3.2.1 export JAVA_HOME=/usr/local/java export PATH=$JAVA_HOME/bin:$PATH $TOMCAT_HOME/bin/startup.sh $APACHE_HOME/bin/apachectl start Reboot the server: /sbin/reboot Test the configuration by visiting: http://[server name] You should get the apache congratulations page. Vist this URL http://[server name]/examples You should get a page with directories for servlet and jsp examples. Try a few of them.
Tomcat LE 4.1.10 launch time from a CD
Hi here, I have developped a CDROM application that contains the Tomcat 4.1.10 LE distribution. The Tomcat server is started from the CD by double clicking on a start.bat file. On my Windows 2000 which runs on a Pentium 4, 1.6 Ghz with 520 Mb RAM, the Tomcat Launch time is some 5 seconds. On a Windows 95 box running on a Pentium 400 Mhz with 128 Mb RAM, the Tomcat Launch time is some 50 seconds. Are there any solution to decrease such a launch time ? My application just use the default Coyote HTTP connector, and no other. There is just one user session, as it is a CDROM application. Thanks for any help, Franck -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: System cannot find the path specified !
Better yet: - CD to C:\ - type DIR /S STARTUP.BAT - tell us what the results are (the location of startup.bat) John I did cd C:\ then I said C:\dir /s startup.bat response was Volume in drive C has no label volune serial number is 3E28-A856 Directory of C:\Jakarta-tomcat-5-bin-20030526\jakarta-tomcat-5\dist\bin 12:52 AM 1,216 startup.bat What to do now ? ? PS I have 2 copies of Tomcat...one with 9 meg and one with 61 meg. should I delete one ? Thank you for your advice ! Stan
Re: Not even close to on topic: smake n cdrecord for linux
You are waay off topic here. A google search is the way to go here. Regards, Oscar On Mon, 8 Dec 2003 [EMAIL PROTECTED] wrote: Hi, apologies for being out of topic. I've installed a new scsi cd-rw, a cursory cdrecord -scanbus shows that it is recognised as a scsi device (which is fine) but displayed as CD-ROM. Does anyone have a more concise and readable howto for Joerg Schilling's smake and cdrecord tools? Apologies again for being out of topic... TIA :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Not even close to on topic: smake n cdrecord for linux
Thank-you for your suggestion. ** Oscar Carrillo wrote: You are waay off topic here. A google search is the way to go here. Regards, Oscar On Mon, 8 Dec 2003 [EMAIL PROTECTED] wrote: Hi, apologies for being out of topic. I've installed a new scsi cd-rw, a cursory cdrecord -scanbus shows that it is recognised as a scsi device (which is fine) but displayed as CD-ROM. Does anyone have a more concise and readable howto for Joerg Schilling's smake and cdrecord tools? Apologies again for being out of topic... TIA :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat MySQL Run On Read-Only Media ..
On Monday 15 July 2002 13:22, you wrote: On Mon, 2002-07-15 at 13:59, [EMAIL PROTECTED] wrote: I am afraid it is not as as much easy as you think... 1) Will your customer agree to run these applications on their computer? 2) What if they are not using a PC (Mac?) or if they are not using Windows (Linux?)? There is a project (I forget its name) which is building a version of Linux designed to run on a CD. Thus you do not have to make any assumptions about what is on the PC. You can lock this version down so that it does not even look at their disk, and provided you use the VESA framebuffer you are more or less guaranteed to get it to run on the screen. I am sure that this would provide you a very good platform for such an application. Who cares.. If they order it, they have to.. 3) To run JSP you need a JDK, not a JRE. Wrong here.. Just if you want your jsp's to be dynamic.. Just precompile them.. 4) If you copy JDK, Tomcat MySQL files on the CD, will it work? In order to run they need : - DLLs in Windows system directories; - keys in Windows registry; - write access to some of their files... Use hsqldb instead which has a memory database.. 5) What about AUTOEXEC.BAT? It will do nothing if you put it on a CD : it needs to be in C:\, and there is already one there... ?? 6) What if your customers have problems running your CD? Will you create a hotline ;-) ? Not your problem I guess ;).. He was asking HOW not a project plan of things to resolve before hand.. TIP: Search the archives (maybe a year ago or something) there was a big thread about it, which actually worked towards a solution. Mvgr, Martin -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: Tomcat MySQL Run On Read-Only Media ..
Unless you know your customers very well that isn't a road I would follow. I can hardly imagine cutomers that are willing to loose there primary os just to view a product catalog. That happens at least for the time you run the cd. (No quick copy and paste to the mail reader, no quit look at the internet site to order online, ...) Or do you know a solution that just opens a linux window without reboot under any os that might be used to view the cd. (VM Ware would allow such thing but, that requires that the customer alrady has it) I would recommend to define the java runtime environment as minimal requirement for the customer. (This way you don't need dll's, registry changes etc). Than you can deliver tomcat standalone with a pure java in-memory database and precompiled jsp's on cd -Ursprüngliche Nachricht- Von: David Goodenough [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 15. Juli 2002 15:24 An: Tomcat Users List Betreff: Re: Tomcat MySQL Run On Read-Only Media .. There is a project (I forget its name) which is building a version of Linux designed to run on a CD. Thus you do not have to make any assumptions about what is on the PC. You can lock this version down so that it does not even look at their disk, and provided you use the VESA framebuffer you are more or less guaranteed to get it to run on the screen. I am sure that this would provide you a very good platform for such an application. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
HOW WILL YOU RUN TOMCAT not as root but as another user?
YES, how will you run tomcat as user let's say tomcat hmm, is it login: tomcat pass: *** cd /tomcat/ ./startup.sh ?? thanks! louie -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
SSL-How-2 for Tomcat 4
If you follow the steps... you CAN'T EVEN GET /examples in SSLThat sinches it... Abandom Hope All Ye Who Enter Here... I surmise that Tomcat4 b6 does NOT support SSL (any flavor / any way / never)... Looks like Bill will win again since the OSC is too busy writing viruses... cd
AW: File file = new File(path);
And all directories in the path have the proper permissions. Make a try like #login as the tomcat user cd /usr cd share cd ... cd classes ls -l properties.txt -Ursprüngliche Nachricht- Von: David Rault [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 21. November 2001 17:03 An: Tomcat Users List; [EMAIL PROTECTED] Betreff: Re: File file = new File(path); may be a stupid sugestion but... anyway have you checked the unix rights of the user you run tomcat as for the file /usr/share/tomcat/webapps/spankroot/WEB-INF/classes/properties.txt ?? David - Original Message - From: Todd Fulton [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 21, 2001 4:54 PM Subject: File file = new File(path); Anyone, I've been trying to create a File (and FileInputStream) from within Tomcat 3.3 now for hours now. I'm using the TOMCAT_HOME environment variable to get the path, but keep getting nothing but java.io.FileNotFoundException: /usr/share/tomcat/webapps/spankroot/WEB-INF/classes/properties .txt (No such file or directory) java.sql.SQLException: The url cannot be null with the code: String path = System.getProperty(tomcat.home) + /webapps/spankroot/WEB-INF/classes/properties.txt ; File file = new File(path); FileInputStream stream = new FileInputStream(file); But, the file is there!!! Can anyone help? Todd -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Fw: CD ROM Project, Read-only Tomcat ??
Thank you for your lovely but very informative Answer. But: My questions: 1. How to stop tomcat from generating the auto-conf files in bin-directory? errase (or comment ) ContextInterceptor className="org.apache.tomcat.context.AutoSetup" / I think the name is explicite enough. I had comment it out, but nothing changed. Tomcat still tries to generate the auto files. Thank you Thomas
RE: Download IIS
IIS 5 is part of windows 2000 pro. You can installit by inserting the windows 2000 cd and choosing install additional components - this is iis5 -Original Message- From: Jack Li [mailto:[EMAIL PROTECTED]] Sent: 10 April 2001 13:25 To: [EMAIL PROTECTED] Subject: Download IIS Hello, Does anyone know where to download IIS 5 for Windows 2000 Pro? Thanks, Jack Li
Re: Where are the topic archives (TOMCAT 4 b6)
See http://jakarta.apache.org/site/mail2.html for links to archives. Note that I find this one the easiest to use: http://marc.theaimsgroup.com/ , poor color choices notwithstanding. dwh Curtis Dougherty wrote: I'm looking for the discussion archives - particularly TOMCAT 4 b6 topics... Can someone send me the link... Thanks in advance.. cd
license question
Sorry if this may be a FAQ but I went to the jakarta.apache.org homepage and didn't find a word on this nor in the FAQ: I have written an intranet web application for a custom purpose and want to ship it to my customer. Can I include apache and tomcat on the CD? Or can I tell the customer: get apache and tomcat first, install it on your machine. When you have done this, install my application. -- Chris Christoph P. U. Kukulies [EMAIL PROTECTED]
Re: mod_jserv.so
Landaluze Produktions IS - Carlos wrote: anybody can send me the mod.jserv.so file for tomcat 3.2 final and linux? thanks Just download the tomcat and apache source and do the following, replace TOMCAT_HOME with your tomcat home directory and likewise with APACHE_HOME: cd TOMCAT_HOME/src/native/apache/jserv APACHE_HOME/bin/apxs -c mod_jserv.c jserv*.c cp mod_jserv.so APACHE_HOME/libexec Nirav
Tomcat+SDK = Licencing problem?
Hello, When I provide my JSP project on CD, I have to deliver Tomcat and the Java SDK. Do you know a bit about the licences in this case? Do I have to let the user accept both licences before he may use my application? Thanks in advance Thomas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47
Stuart, from what I can see in your make output, everything should be there. Here's a piece from your make output: --- /build/jk2/apache2/.libs/mod_jk2.* --- so from within your native2 directory you should: --- cd ../build/jk2/apache2/.libs --- and it should be there ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ?how configure tomcat to auto startup in linux?
Sorry, but i´m not a linux expert, so, this idea would be perfect but not for me. I have followed the instructions in http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html and everything seems to be ok, just that Tomcat dont start up: cd $CATALINA_HOME/bin tar xvfz jsvc.tar.gz cd jsvc-src autoconf ./configure make cp jsvc .. cd .. cd $CATALINA_HOME ./bin/jsvc -Djava.endorsed.dirs=./common/endorsed -cp ./bin/bootstrap.jar \ -outfile ./logs/catalina.out -errfile ./logs/catalina.err \ org.apache.catalina.startup.Bootstrap When i type this last command nothing happens, or at least, Tomcat dont start up ¿any guide about what i have to do? Regards ebarrera - Original Message - From: QM [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, May 03, 2004 3:36 PM Subject: Re: ?how configure tomcat to auto startup in linux? On Mon, May 03, 2004 at 06:20:04PM -0700, Ing. Enrique de la Barrera Perez wrote: : Hello Tomcat users ??? : ?could somebody tell when to find documentation to configure tomcat to auto : startup in linux? Check /etc/init.d for examples of start scripts. Clone one of those and you're in business. You can then use plain old su, jsvc (search apache.org), or erni (brandxdev.net) to start the process as the Tomcat user instead of root. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - 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]
Tomcat 5 is live, but won't display pages for me.
Hi, using RH Linux 9 (blag), I have jsdk, ANT, and Tomcat loaded. Jsdk let me run helloWorld.java from command line, and Tomcat allows me to view their welcome page at localhost:8080. I have seen in a tutorial: http://www.dougsparling.com/comp/howto/Ent...ux-HOWTO-4.html that i should be able to run java servlets by creating a CONTEXT PATH at $CATALINA_HOME/conf/server.xml , and I have created that path there: Context path=/sparling docBase=webapps/sparling crossContext=false reloadable=true /Context and then created the necessary directory path : # cd $CATALINA_HOME # cd webapps # mkdir sparling # cd sparling # mkdir WEB-INF # cd WEB-INF # mkdir classes I took the helloJava.class file, and put it in the classes ($CAT_HOME/webapps/sparling/WEB-INF/classes ) directory. The instructions said that now I can run this servlett by going to : http://localhost:8080/sparling/servlet/HelloWorld in my browser (mozilla). But when I do this, I get : The requested resource (/sparling/servlet/HelloWorld) is not available. Can anyone tell what might be wrong ? Additionally, I am not able to get a hello.html page to display using the method explained to me in another tutorial: The instructions said if I put an HTML file in directory: install_dir/webapps/ROOT or install_dir/webapps/ROOT/somePath that I could access them with http://localhost/filename or http://localhost/somePath/filename. I put the file in that director, and then used http://localhost:8080/test1.html in my browser, and was giiven: The requested resource (/test1.html) is not available. Any suggestions regarding what I should do, or where I can get the information I need to get Tomcat running pages and Java Servlets? thanks for listening, Mike P - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Newbie - Tomcat on read only folder
Hi all, I recently started to use Tomcat and I wanted to know if it's possible to run Tomcat from within a read only folder. My intention is to install Tomcat into a hard drive, deploy the Gridsphere web portal into it and then burn them onto a CD in order to have an instant web portal. Is this possible? What should I do? Thanks in advance Ricardo
RE: [inbox] Newbie - Tomcat on read only folder
Howdy, RFd I recently started to use Tomcat and I wanted to know if it's RFd possible to run Tomcat from within a read only folder. My intention RFd is to install Tomcat into a hard drive, deploy the Gridsphere web RFd portal into it and then burn them onto a CD in order to have an RFd instant web portal. Is this possible? RFd What should I do? Why not, it is a good idea to do so, but running from CD going to be slow. What you have to do: 1) configure tomcat to use a different drive for logs and for temporary files. For example on Win env. your logs should be saved to c:\ It make shure that tomcat will have access to your drive regardless of CD ROM letter. 2) burn CD (or create a folder with read only permissions on the hard drive) and test it. Don't forget the work and temp directories in addition to the logs. These are configurable in server.xml. In addition, it is your responsibility to ensure your app never writes to disk accept in a specification-compliant manner. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Looking for mod_jk2
Dave, The linker is looking for libapr-0.so. I don't know what you used in your ./configure run. On some installations the link between the current version of libapr and libapr-0.so (and libapr-0.so.0) does not get made when Apache is installed. This appears to be mostly a problem with the RedHat RPM distribution. You may find that to be true also with libaprutil. To solve those problems, do the following. 1. cd to the Apache lib directory 2. soft link the current libs to the base names 3. cd back to the source directory 4. rerun configure (to make sure) 5. run make For example: (1) cd /home/apache/lib (2) ln -s libapr-0.so.0.9.4 libapr-0.so ln -s libapr-0.so.0.9.4 libapr-0.so.0 ln -s libaprutil-so.0.9.4 libaprutil-so ln -s libaprutil-so.0.9.4 libaprutil-so.0 (3) cd /src/jakarta-tomcat-connectors/jk/native2 (4) ./configure (5) make Note that you will not need jkjni.so unless you attempt to run either UNIX sockets or in-process communication. IP sockets work fine without the library. The last time I tried UNIX sockets or in-process communication on RedHat Linux 9 I was unsuccessful. There are some linking problems that I think have more to do with the way Redhat lays out their system via RPMs than the code. I recently checked out the latest versions of the connectors, apr, and apr-util from cvs.apache.org. I may try UNIX sockets and in-process communication again. However, since this is a development machine, I am fine with the IP socket connection. HTH. /mde/ just my two cents . . . . __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TC5 won't start on Xeon
No change - window closes as soon as I hit enter... In Catalina.bat replace the below line with set _EXECJAVA=start Tomcat %_RUNJAVA% With set _EXECJAVA= %_RUNJAVA% Then cd to the bin directory and type Catalina start - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Net Integrator Virus Alert
WARNING: a virus (probably I-Worm.NetSky.c) or suspicious attachment was detected and removed from the following message from [EMAIL PROTECTED] to [EMAIL PROTECTED] Some of the content may still be readable. ---BeginMessage--- is that your cd? ---End Message--- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and HTTPD on the same box: What's the best mod_jk2 protocol?
And with this build, you were able to use Unix sockets, versus TCP sockets without getting the apr_md5_final problem? On May 16, 2004, at 7:00 AM, Gabriele Paciucci wrote: I have RHEL3... these are my steps: tar -zxvf jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz cd jakarta-tomcat-connectors-jk2-2.0.2-src cd jk/ cd native2/ ./configure --with-java-home=/home/tomcat/j2sdk1.4.2_04 --with-jni --with-to mcat41=/home/tomcat/jakarta-tomcat-5.0.24 --with-apache2-lib=/usr/lib --with-apxs2=/usr/sbin/apxs cd server/apache2/ vi Makefile LIBTOOL=/usr/lib/libtool make libtool --finish /usr/lib/httpd/modules cd ../../build cd jk2/ cd apache2/ cp *.so /etc/httpd/modules/ On Friday 14 May 2004 16:43, Chong Yu Meng wrote: Hi Andrew ! Clute, Andrew wrote: If it is channelUnix, I just now need to figure out this crazy 'undefined symbols: apr_md5_final' error. I wrote a document for compiling mod_jk2 on Fedora Core 1, in which I specified the necessary packages, one of which is the APR libraries. You can find the document here : http://www.connecties.com/cymulacrum/tomcat5/book1.html The thing is, I have several friends who have tried to follow it but have all failed to get mod_jk2 going. The common thing in all these deployments is that they were ALL using RHEL 3, and the error was all the same. I don't have RHEL running on my system, so I cannot tell where the problem may be. Previously I was able to troubleshoot an unrelated problem on Mandrake because I was given SSH access to the box, but I have no such access to the RHEL boxes because of corporate and governmental confidentiality issues (which I understand perfectly). Perhaps you could try my instructions on the website mentioned above, paying special attention to the system requirements and tell me if it works or not. If not, where and how did it fail. I'm preparing for a major revision of my documents because many generous individuals far more intelligent than me, have contributed ideas, corrections and feedback on my scribblings, and I'd like to include this as an appendix (I shall be crediting them all in my revised document ). Regards, pascal chong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Gabriele Paciucci mailto:[EMAIL PROTECTED] BMIND Spa Via Pomponazzi, 25 20141 Milano (Italy) NUOVO SITO INTERNET: WWW.BMIND.IT Assistant: Emanuela Rugginenti mailto:[EMAIL PROTECTED] Tel: +39-02-84800-628 Fax: +39-02-84800-627 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cant compile tomcat 4.0.3 as a module to apache 2.0
I think you might be dragging in the wrong apxs. As far as I know, /usr/sbin/apxs is the apxs for Apache 1.3. If you've installed Apache 2, the apxs you want should be somewhere like $APACHE_HOME/bin. I don't have access to my apache 2 box at the moment, but I got a similar error and solved it by not using /usr/sbin/apxs and instead explicitly declaring the one under the Apache 2 directory. HTH John Turner [EMAIL PROTECTED] http://www.aas.com -Original Message- From: Segree, Gareth [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 7:36 PM To: 'Tomcat Users List' Subject: Cant compile tomcat 4.0.3 as a module to apache 2.0 I am also getting the following when trying to install tomcat as a module to apache 2.36 Apache compile: EAPI_MM=SYSTEM OPTIM=-O3 -mcpu=i686 -funroll-loops -fomit-frame-pointer CFLAGS=-DDYNAMIC_MODULE_LIMIT=0 ./configure --prefix=/home/httpd --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib/apache --includedir=/usr/include/apache --sysconfdir=/etc/httpd/conf --localstatedir=/var --datadir=/home/httpd --mandir=/usr/share/man --enable-so --with-apxs cd /tmp/{tomcat_connector}/webapp support/buildconf.sh I get the following error: --- Cannot run APR buildconf script Don't a forget to download a copy of the APR sources, and to run the buildconf script for it: # cd [path to APR sources] # ./buildconf # cd [path to WebApp sources] Then remember to run ./configure script including the command line option --with-apr=[path to APR sources] --- Creating WebApp configure script Creating configure ... --- All done I downloaded apr_20020612223008.tar.gz untar cd apr ./configure make cd /tmp/{tomcat_connector}/webapp ./configure --with-apxs=/usr/sbin/apxs --with-tomcat=/usr/jakarta-tomcat-4.0/ --with-apr=/tmp/apr but still getting error: checking for Apache apxs... yes sh: /usr/bin/envvars: No such file or directory apxs:Error: Sorry, no shared object support for Apache. apxs:Error: available under your platform. Make sure. apxs:Error: the Apache module mod_so is compiled into. apxs:Error: your server binary `/usr/sbin/httpd'.. configure: error: /include not found. Use --with-apr-include=DIR. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: beginner needs help(Compile error)
I tried it and the same happened. The reason was that on my system (LINUX) the TOMCAT_HOME environment variable wasn't set and thus the classpath for the build script wasn't constructed properly and thus the jar file containing org.apache.tools.ant wasn't found. Look at the code of the build script ( build.bat or build.sh ) to see the details. There may be a better solution, but setting TOMCAT_HOME at the beginning of the build script will solve the problem. Ralph Jensen - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, December 31, 2000 12:00 AM Subject: beginner needs help(Compile error) Dear Helper, I am running the application fine with the following commands... set TOMCAT_HOME=e:\foo\jakarta-tomcat-3.2.1 set JAVA_HOME=e:\jdk1.3 cd jakarta-tomcat-3.2.1\bin startup cd .. cd doc cd appdev cd sample The above outputs the following path info also... Using CLASSPATH: e:\foo\jakarta-tomcat-3.2.1\classes;e:\foo\jakarta-tomcat-3.2.1 \lib\ant.jar;e:\foo\jakarta-tomcat-3.2.1\lib\jasper.jar;e:\foo\jakarta-tomc at-3. 2.1\lib\jaxp.jar;e:\foo\jakarta-tomcat-3.2.1\lib\parser.jar;e:\foo\jakarta- tomca t-3.2.1\lib\servlet.jar;e:\foo\jakarta-tomcat-3.2.1\lib\webserver.jar;C:\Si lverS tream30\COMPILECACHE\LOCALHOST\DEVELOP_BEANS\CLASSES;C:\SilverStream30\LIB\ Silve rServerAll.zip;c:\SilverStream30\lib\servlet.jar;c:\SilverStream30\jre\lib\ rt.ja r;c:\SilverStream30\lib\silverdesignerall.zip;c:\SilverStream30\Docs\help\b ooks\ TechCode\jsptech6;c:\SilverStream30\jre\lib\ext\jndi.jar;c:\SilverStream30\ lib\j avax_sql.zip;e:\jdk1.3\lib\tools.jar I am then typing build in the sample directory but here I come unstuck... E:\foo\jakarta-tomcat-3.2.1\doc\appdev\samplebuild Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/ Main Can you throw any light on this? Regards Charles Your email address says a lot about you. Express yourself @ another.com http://another.com/jump.jsp?destDesc=another.com/login.jsp?sig=393 --- - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
AW: New to user-mailing-list (mod_jk)
What is the output, if you type : httpd -l ? -Ursprngliche Nachricht- Von: Rick [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 20. April 2001 16:04 An: [EMAIL PROTECTED] Betreff: Re: New to user-mailing-list (mod_jk) Ik didnt work !!! I have been working for 1 hour to reinstall everything this is what I did (after a clean red hat 7.0 install) 01: cd /tmp/apache1.3.19 02: ./configure --prefix=/usr/local/apache --enable-module=so 03: cd /tmp/php4.0.4 04: ./configure --with-mysql --with-apache=../apache1.3.19 --enable-track-vars 05: make 06:.make install 07: cd /tmp/apache1.3.19 08: ./configure --activate-module=src/modules/php4/libphp4.a 09: make 10: make install 11: cd /tmp/php4.0.4 12: cp php.ini-dist /usr/local/lib/php.ini *** edit httpd.conf *** 13: AddType application/x-httpd-php .php unzip/tar Tomcat to /usr/local/jakarta-tomcat *** 14: cd /usr/local/jakarta-tomcat/bin edit tomcat to let tomcat know where the JDK is *** 15: ./startup.sh copy mod_jk.so to /apache/libexec *** *** edit httpd.conf *** Include "/usr/local/jakarta-tomcat/conf/mod_jk.conf-auto" 16: cd /usr/local/apache/bin 17: ./apachectl start the SAME error again - Sytax error on line 8 of /usr/local/jakarta-tomcat/conf/mod_jk.conf-auto: Invalid command 'LoadModule', perhaps mis-spelled or defined by a module not included in the server configuration ./apachectl start: httpd could not be started - now I can completey start all over again... does anybody know the configuration that does enable the use of LoadModule ? rick - Original Message - From: "Wesselmann, Marcus" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 20, 2001 2:54 PM Subject: AW: New to user-mailing-list Hi, At compile-time you only have to use --enable-module=so When Apache is compiled and installed you enable mod_jk with an appropiate LoadModule entry in httpd.conf. At least that worked fine for me :) Regards, Marcus -Ursprngliche Nachricht- Von: Rick [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 20. April 2001 14:16 An: [EMAIL PROTECTED] Betreff: Re: New to user-mailing-list sorry to bother you once more with the same question but before I really configure apache (I might do something wrong, and let me start all over again) should I use: --enable-shared or --enable-module=so in the configuration to enable me to use mod_jk.so I read the documentation, but this talked about stuff Im not familiar with... regards rick
Re: New to user-mailing-list (mod_jk)
If these are really all steps you performed after a new install: Where did you get the mod_jk.so from and if you compiled it yourself or downloaded it: into which directory did you copy it? It seems (error message) that apache cannot find the module. Execute "strace /usr/sbin/httpd -X" to see which file apache tries to open and/or follow the steps described in the mod_jk howto. It worked perfectly for me without any problems on RedHat 6.2 with apache 1.3.12 (php3 as shared lib) and a self-compiled mod_jk.so. Bye, Peter. -- Mag. Peter Hrastnik tele.ring Telekom Service GmbH A-1030 Wien, Hainburgerstr. 33 Tel.: +43/1/931012-3277 Rick wrote: Ik didnt work !!! I have been working for 1 hour to reinstall everything this is what I did (after a clean red hat 7.0 install) 01: cd /tmp/apache1.3.19 02: ./configure --prefix=/usr/local/apache --enable-module=so 03: cd /tmp/php4.0.4 04: ./configure --with-mysql --with-apache=../apache1.3.19 --enable-track-vars 05: make 06:.make install 07: cd /tmp/apache1.3.19 08: ./configure --activate-module=src/modules/php4/libphp4.a 09: make 10: make install 11: cd /tmp/php4.0.4 12: cp php.ini-dist /usr/local/lib/php.ini *** edit httpd.conf *** 13: AddType application/x-httpd-php .php unzip/tar Tomcat to /usr/local/jakarta-tomcat *** 14: cd /usr/local/jakarta-tomcat/bin edit tomcat to let tomcat know where the JDK is *** 15: ./startup.sh copy mod_jk.so to /apache/libexec *** *** edit httpd.conf *** Include "/usr/local/jakarta-tomcat/conf/mod_jk.conf-auto" 16: cd /usr/local/apache/bin 17: ./apachectl start the SAME error again - Sytax error on line 8 of /usr/local/jakarta-tomcat/conf/mod_jk.conf-auto: Invalid command 'LoadModule', perhaps mis-spelled or defined by a module not included in the server configuration ./apachectl start: httpd could not be started - now I can completey start all over again... does anybody know the configuration that does enable the use of LoadModule ? rick - Original Message - From: "Wesselmann, Marcus" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 20, 2001 2:54 PM Subject: AW: New to user-mailing-list Hi, At compile-time you only have to use --enable-module=so When Apache is compiled and installed you enable mod_jk with an appropiate LoadModule entry in httpd.conf. At least that worked fine for me :) Regards, Marcus -Ursprngliche Nachricht- Von: Rick [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 20. April 2001 14:16 An: [EMAIL PROTECTED] Betreff: Re: New to user-mailing-list sorry to bother you once more with the same question but before I really configure apache (I might do something wrong, and let me start all over again) should I use: --enable-shared or --enable-module=so in the configuration to enable me to use mod_jk.so I read the documentation, but this talked about stuff Im not familiar with... regards rick
Re: How to: Tomcat 5.0.16 as Windows Service
Thanks for the script, Bill. I've been looking for something that actually works and this finally doesalmost The script is missing one important thing. It doesn't include %JAVA_HOME%\lib\tools.jar in the --ImagePath which causes JSP compilation to fail. Attached is a modified script that fixes that and adds -Djava.io.tmpdir and adds some -Xms and -Xmx stuff. BTW, I tried adding -server, but the service wouldn't start when it was added. Any idea why? How else do I specify Tomcat to use the -server JVM rather than the default -client? Jake At 08:47 PM 12/22/2003 -0800, you wrote: One of the other developers added the attached .bat file to make it easier to install as a service (I renamed the attachment to '.txt', since a lot of mail servers strip '.bat' attachments :). rename it back to '.bat', and see if it help. Usage: service.bat install/remove [service_name] service_name defaults to Tomcat5 if not specified. Merrill Cornish [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Bill, Yes, I should have thought of the --StdOutFile and --StdErrorFile arguments. However, specifying them does no good. The files are created, but they are empty. Merrill - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] @echo off if %OS% == Windows_NT setlocal rem --- rem NT Service Install/Uninstall script rem rem Options rem installInstall the service using Tomcat5 as service name. remService is installed using default settings. rem remove Remove the service from the System. rem rem name(optional) If the second argument is present it is considered remto be new service name rem rem $Id: service.bat,v 1.1 2003/12/22 13:48:52 mturk Exp $ rem --- rem Guess CATALINA_HOME if not defined set CURRENT_DIR=%cd% if not %CATALINA_HOME% == goto gotHome set CATALINA_HOME=%cd% if exist %CATALINA_HOME%\bin\tomcat.exe goto okHome rem CD to the upper dir cd .. set CATALINA_HOME=%cd% :gotHome if exist %CATALINA_HOME%\bin\tomcat.exe goto okHome echo The tomcat.exe was not found... echo The CATALINA_HOME environment variable is not defined correctly. echo This environment variable is needed to run this program goto end :okHome set EXECUTABLE=%CATALINA_HOME%\bin\tomcat.exe rem Set default Service name set SERVICE_NAME=Tomcat5 if %1 == goto displayUsage if %2 == goto setServiceName set SERVICE_NAME=%2 :setServiceName if %1 == install goto doInstall if %1 == remove goto doRemove echo Unknown parameter %1 :displayUsage echo echo Usage: service.bat install/remove [service_name] goto end :doRemove rem Remove the service %EXECUTABLE% //DS//%SERVICE_NAME% echo The service '%SERVICE_NAME%' has been removed goto end :doInstall rem Install the service %EXECUTABLE% //IS//%SERVICE_NAME% --DisplayName Apache Tomcat --Description Apache Tomcat Server - http://jakarta.apache.org/tomcat/; --Install %EXECUTABLE% --ImagePath %JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\bin\bootstrap.jar --StartupClass org.apache.catalina.startup.Bootstrap;main;start --ShutdownClass org.apache.catalina.startup.Bootstrap;main;stop --Java java --Startup manual rem Set extra parameters %EXECUTABLE% //US//%SERVICE_NAME% --JavaOptions -Dcatalina.home=\%CATALINA_HOME%\#-Djava.endorsed.dirs=\%CATALINA_HOME%\common\endorsed\#-Djava.io.tmpdir=\%CATALINA_HOME%\temp\#-Xms32m#-Xmx256m#-Xrs --StdOutputFile %CATALINA_HOME%\logs\stdout.log --StdErrorFile %CATALINA_HOME%\logs\stderr.log --WorkingPath %CATALINA_HOME%\bin echo The service '%SERVICE_NAME%' has been installed :end cd %CURRENT_DIR% - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat5 Service
Hi, I am new to this and Tomcat and Java are not my specialties! What I need to accomplish is an install the Tomcat5 service with a log on account in a silent and unattended mode. The vendor that has supplied the Tomcat5 install has StartMode = jvm, so I am unable to use the -User command. The BAT file that they have setup is below and they have tried changing the StartMode to a mode that will except the -User command but they have stated it fails. Any ideas on how to get this to work? @echo off if %OS% == Windows_NT setlocal rem --- rem NT Service Install/Uninstall script rem rem Options rem installInstall the service using Tomcat5 as service name. remService is installed using default settings. rem remove Remove the service from the System. rem rem name(optional) If the second argument is present it is considered remto be new service name rem rem $Id: service.bat,v 1.5.2.1 2004/08/23 22:54:32 mturk Exp $ rem --- rem Guess CATALINA_HOME if not defined set CURRENT_DIR=%cd% if not %CATALINA_HOME% == goto gotHome set CATALINA_HOME=%cd% if exist %CATALINA_HOME%\bin\tomcat5.exe goto okHome rem CD to the upper dir cd .. set CATALINA_HOME=%cd% :gotHome if exist %CATALINA_HOME%\bin\tomcat5.exe goto okHome echo The tomcat.exe was not found... echo The CATALINA_HOME environment variable is not defined correctly. echo This environment variable is needed to run this program goto end rem Make sure prerequisite environment variables are set if not %JAVA_HOME% == goto okHome echo The JAVA_HOME environment variable is not defined echo This environment variable is needed to run this program goto end :okHome if not %CATALINA_BASE% == goto gotBase set CATALINA_BASE=%CATALINA_HOME% :gotBase set EXECUTABLE=%CATALINA_HOME%\bin\tomcat5.exe rem Set default Service name set SERVICE_NAME=Tomcat5 set PR_DISPLAYNAME=Apache Tomcat if %1 == goto displayUsage if %2 == goto setServiceName set SERVICE_NAME=%2 set PR_DISPLAYNAME=Apache Tomcat %2 :setServiceName if %1 == install goto doInstall if %1 == remove goto doRemove echo Unknown parameter %1 :displayUsage echo echo Usage: service.bat install/remove [service_name] goto end :doRemove rem Remove the service %EXECUTABLE% //DS//%SERVICE_NAME% echo The service '%SERVICE_NAME%' has been removed goto end :doInstall rem Install the service echo Installing the service '%SERVICE_NAME%' ... echo Using CATALINA_HOME:%CATALINA_HOME% echo Using JAVA_HOME:%JAVA_HOME% rem Use the environment variables as an exaple rem Each command line option is prefixed with PR_ set PR_DESCRIPTION=Apache Tomcat Server - http://jakarta.apache.org/tomcat set PR_INSTALL=%EXECUTABLE% set PR_LOGPATH=%CATALINA_HOME%\logs set PR_CLASSPATH=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\bin\bootstrap.jar rem Set the server jvm frrom JAVA_HOME set PR_JVM=%JAVA_HOME%\jre\bin\server\jvm.dll rem You can use the 'set PR_JVM=auto' for default JVM %EXECUTABLE% //IS//%SERVICE_NAME% --StartClass org.apache.catalina.startup.Bootstrap --StopClass org.apache.catalina.startup.Bootstrap --StartParams start --StopParams stop rem Clear the environment variables. They are not needed any more. set PR_DISPLAYNAME= set PR_DESCRIPTION= set PR_INSTALL= set PR_LOGPATH= set PR_CLASSPATH= set PR_JVM= rem Set extra parameters %EXECUTABLE% //US//%SERVICE_NAME% --JvmOptions -Dcatalina.base=%CATALINA_BASE%;-Dcatalina.home=%CATALINA_HOME%;-Djava. endorsed.dirs=%CATALINA_HOME%\common\endorsed --StartMode jvm --StopMode jvm rem More extra parameters set PR_STDOUTPUT=%CATALINA_HOME%\logs\stdout.log set PR_STDERROR=%CATALINA_HOME%\logs\stderr.log %EXECUTABLE% //US//%SERVICE_NAME% ++JvmOptions -Djava.io.tmpdir=%CATALINA_BASE%\temp --JvmMs 128 --JvmMx 256 echo The service '%SERVICE_NAME%' has been installed. :end cd %CURRENT_DIR% Thanks Rich
Tomcat and symbolic links
Hi all! I have a question about Tomcat and linux symbolic links. I'm working with cocoon jars and they are too big, so I put them on a directory and then in the WEB-INF/lib directory I made a set of links like this: e.g.: The .jar files are in /usr/java/morelibs/cocoon/. My application is in /home/mauro/workspace/MyApp/. So: cd /home/mauro/workspace/MyApp/WEB-INF/lib ln -s /usr/java/morelibs/cocoon/*.jar . When I start tomcat, this application does not run (I could see it in the debug mode of the eclipse ide). But IT WORKS FINE if I make hard links to the .jar files like this (without the -s option): cd /home/mauro/workspace/MyApp/WEB-INF/lib ln /usr/java/morelibs/cocoon/*.jar . Does someone know why is it happening? Doesn't tomcat support to read files across the symbolic links? Thanks a lot. Mauro -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Symlink access error
Dear sir, I am using Tomcat 4.1.3-LE-jdk1.4 with JSDK 1.4.0_01 on Linux(Mandrake 8.1). I want to add my data on CD-ROM into my homepage. So, I set my user homepage(~lsomchai) by using Listenner tag in server.xml file as follow. Listener className=org.apache.catalina.startup.UserConfig directoryName=public_html userClass=org.apache.catalina.startup.PasswdUserDatabase/ In my homepage directory, there is the Test subdirectory and the TestSymlink inside it. The TestSymlink is link to /mnt/cdrom directory. if I access to ~lsomchai/Test, the homepage will list TestSymlink with nothing at Size column and null at Last Modified column. then, I access into TestSymlink. It show this message. = HTTP Status 404 - /%7Elsomchai/Test/TestSymlink/ type Status report message /%7Elsomchai/Test/TestSymlink/ description The requested resource (/%7Elsomchai/Test/TestSymlink/) is not available. Apache Tomcat/4.1.3-LE-jdk14 == Please help me. How can I set my tomcat to access CD-ROM? Thanks, Somchai -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]