Re: Tomcat won't auto-start on RedHat 7.3
You may need to set this variables in either /etc/profile or /etc/rc.local I prefer using the /etc/profile file you may set the $CATALINA_HOME like so code set $CATALINA_HOME=/usr/local/jakarta-tomcat-4.0.4 export $CATALINA_HOME /code --- Kenny G. Dubuisson, Jr. [EMAIL PROTECTED] wrote: Very good question...I bet they aren't. Do you know where I would set those for boot (or should I just put them in the script I wrote)? Thanks, Kenny - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Tuesday, September 17, 2002 2:04 PM Subject: RE: Tomcat won't auto-start on RedHat 7.3 When run during boot, are JAVA_HOME and CATALINA_HOME set? John -Original Message- From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 17, 2002 3:01 PM To: Tomcat Users List Subject: Tomcat won't auto-start on RedHat 7.3 I have successfully installed Apache 2.0.40, Tomcat 4.0.4, and mod_jk and all works fine. The problem I have is that I wrote a simple startup script for Tomcat to be executed upon init level 5 entrance. If I run the script from a shell prompt, it works fine. If it runs when Linux is booting, though it says OK when starting, Tomcat doesn't actually get started. The script is: #!/bin/sh case $1 in start) echo -n Starting Tomcat: /usr/local/jakarta-tomcat-4.0.4/bin/startup.sh echo ;; stop) echo -n Stopping Tomcat: /usr/local/jakarta-tomcat-4.0.4/bin/shutdown.sh echo ;; restart) $0 stop $0 start ;; *) echo Usage: $0 {start|stop|restart} exit 1 esac exit 0 Any Ideas? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do you Yahoo!? New DSL Internet Access from SBC Yahoo! http://sbc.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Anybody know of JSP training classes where they use Tomcat?
You may only need plain .jsp and Servlet training. Configuring the .jsp and Servlets to run inside the Tomcat container, requires you to patiently read the docs that come with TC and of course observe the file layout of the sample web applications that come preconfigured with TC. Allan Kamau. --- Micael Padraig Og mac Grene [EMAIL PROTECTED] wrote: I think that if you need jsp pages training, you would not want to do it with Tomcat, as that would probably be too advanced for a beginner??? At 11:49 AM 4/19/02 -0600, you wrote: I know Batky-Howell does great classes, and they use almost exclusively Apache products. (Including Tomcat) www.batky-howell.com Todd Wright www.jtconsult.com At 01:06 AM 4/19/2002 -0700, you wrote: DevelopMentor is offering a three-day course on just JSP (Essential JSP), written by Kevin Jones, a participant on the JSR. It should be available RSN. They also have a Essential J2EE class, also originally written by Kev, that covers Servlets, a little JSP, a little XML, JMS, JDBC, and EJB--it's a 5-day class. We use Tomcat exclusively in the class. See www.develop.com for details and schedule. Ted Neward {.NET || Java} Course Author Instructor, DevelopMentor (http://www.develop.com) http://www.javageeks.com/tneward http://www.clrgeeks.com/tneward - Original Message - From: Ian Darwin [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, April 18, 2002 2:37 PM Subject: Re: Anybody know of JSP training classes where they use Tomcat? On April 18, 2002 04:52 pm, Darren Meyer wrote: Anybody know of JSP training classes where they use Tomcat? Learning Tree Course 570,. Java for Web Development, uses both Tomcat and Jrun (students can use either or both). Course covers servlets and JSP. -- 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] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Games - play chess, backgammon, pool and more http://games.yahoo.com/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat won't find my web.xml files.
Jason, I may not fully find a solution to your problem as everything seems right. I suspect your application may not have be fully deployed. To deploy an application you need to add a context in your server.xml. Or you can use Catalina's manager application to deploy/undeploy a context without Catalina's shutdown. You could however narrow down the to the source of your problem by 1Shut down Catalina, move you application folder from the webapps directory. Delete the contents of Catalina's work directory. Create a new user with role manager in your tomcat-users.xml file in your catalina conf/ directory. Start Catalina and deploy your application using the manager application by logging using the new user created above (You may learn about the manager application from your catalina installation) 2 Is your .tld file actually located in the specified /WEB-INF/lib/taglib.tld location in your application. Well I hope this works. Allan Kamau. --- Jason Johnston [EMAIL PROTECTED] wrote: I've been working with Tomcat 4.0.1 and I'm running into a major stumbling block. I can run servlets and jsp's letting tomcat default to the default web.xml but I can't make my own. I have the following web.xml: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc. //DTD Web Application 2.3//EN' 'http://java.sun.com/j2ee/dtds/web-app_2_3.dtd' web-app servlet servlet-namelogin/servlet-name servlet-classcom.onjava.login/servlet-class /servlet taglib taglib-uri/onjava/taglib-uri taglib-location/WEB-INF/lib/taglib.tld/taglib-location /taglib /web-app Located at TOMCAT_HOME/webapps/onjava/WEB-INF/web.xml The custom tags fail and I see this in the logs: 2002-04-03 13:10:37 ContextConfig[/onjava]: Missing application web.xml, using defaults only Am I missing something? I'm running on NT4.0 Server Sp6a. I've seen other people mention this problem but I haven't found any solutions. PLEASE. IF ANYONE KNOWS ANYTHING THAT COULD HELP, LET ME KNOW This is a major stumbling block. I basically can't build webapps if I can't get it to recognize me web.xml files. __ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Configuring Tomcat+apache
Perhaps this question has already been answered, but I couldn't find it. Can anyone tell me how to configure apache+TC4. Send me a url to the HOWTO I will be more than glad. Allan Kamau. __ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
error-page element in the web.xml HOWTO
I'd like to configure an error page for my entire context. I've gone through the web-app_2_2.dtd and came up with the following solution which I added to my contexts web.xml file error-page error-code404/error-code locationhttp://localhost:8080//location /error-page Now he context is been deployed but cannot be run indicating some problem. How can I solve this error or where am I going wrong? Thank you. Allan Kamau. __ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: J2EE and Tomcat
About JavaMail and support for the same in Catalina, JavaMail is supported look at mail.jar contained in your $CATALINA_HOME/common/lib directory. Allan. --- [EMAIL PROTECTED] wrote: As for the .war file, it should under the Document Root. RS Keith Ng [EMAIL PROTECTED] on 02/17/2002 02:18:29 PM Please respond to Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] cc: Subject: RE: J2EE and Tomcat Nice to see u reply again... I have made a WAR file and tried to create a new Web Componet by adding a new WAR file, unfortunately tat doesnt work very well... well anwyay i have given up all hope of using the J2EE RI. I will just stick to TOMCAT and just wondering, is JavaMail separately available from sun..? Its a very important feature in J2EE i need to use and now i have given up usage of J2EE RI, i guess i will have to download it separately.. -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 17, 2002 12:55 AM To: Keith Ng Cc: Tomcat Users List Subject: RE: J2EE and Tomcat On Sat, 16 Feb 2002, Keith Ng wrote: Date: Sat, 16 Feb 2002 14:08:50 +0800 From: Keith Ng [EMAIL PROTECTED] To: Craig R. McClanahan [EMAIL PROTECTED], Tomcat Users List [EMAIL PROTECTED] Subject: RE: J2EE and Tomcat Hi Craig I saw yr very reasonable explaination and have understood a lot more den i used to. Thanks... =) However, I have tried to deploy my Tomcat application using J2EE server like the one provided by SUN. I tried two methods. One by moving the entire folder to public_html and also by trying to deploy. Both methods doesnt works when it comes to locating certain javabean classes i placed under web-inf--classes--FOLDER.(not EJB) ... wat seems to work just fine doesnt seem to work at all in J2EE. I do not think therefore I can develop using tomcat and deploy using a J2EE server. When you use Tomcat, you have to deploy applications the way that Tomcat tells you to. When you use any other server, you have to deploy applications the way that *that* documentation tells you to. You cannot make any assumptions about just because Tomcat does it that way on these kinds of mechanics. The only thing that is guaranteed to be portable is a WAR file (not a directory), in the correct internal format, that contains *all* of the classes you need in WEB-INF/classes or WEB-INF/lib. What you are describing for directory structure isn't valid Java, so it's not going to work on any container. Craig -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 1:03 AM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: J2EE and Tomcat On Thu, 14 Feb 2002, Keith Ng wrote: Date: Thu, 14 Feb 2002 20:38:18 +0800 From: Keith Ng [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED], [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: J2EE and Tomcat Hi Guys I just joined in, Happy Chinese New Year, esp to the all the Chinese here. I have the following query, its not exactly a TOMCAT question but I figured people here can help. I have installed J2EE and have previously used TOMCAT. Therefore I have the following queries 1)There are many versions of TOMCAT, but Im only using a pretty old version, like 3.2.2. I want to try run my web application on a J2EE server. Are both J2EE and TOMCAT using the same specifications for JSP and SERVLETS? Currently using J2EE 1.3 ... Tomcat 3.2 (and 3.3) are based on the Sevlet 2.2 and JSP 1.1 specifications (these match up with J2EE 1.2). Tomcat 4.0 is based on the Servlet 2.3 and JSP 1.2 specifications, which are the versions included in J2EE 1.3. In general these specs are backwards compatible so that your older webapps will still run. 2)Am I supposed to continue using TOMCAT to develop web applications for deployment in J2EE? I certainly do not know how to do the same with J2EE what I have learnt with TOMCAT If your applications don't require EJBs, it is very reasonable to do your development under Tomcat and then deploy on a J2EE server. Just be sure you don't rely on Tomcat-specific features in your applications. Hope someone can enlighten me. Thanks ;) Craig _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] === message truncated === __ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com -- To
Custom error page in Tomcat.
How do I configure an error page in Tomcat (TC4x) across all contexts and within each context. What changes are expected in the web.xml. Allan. __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: hi (beans)
The beens should be placed in your context's WEB-INF/classes folder or if in the WEB-INF/lib if they are in jar format. You may even put the beans in jar format in your $CATALINA_HOME/common/lib or $CATALINA_HOME/lib folders depending on wheather you'd like the beans accessible from other contexts Allan. --- Richard [EMAIL PROTECTED] wrote: Believe it or not I am not even a JAVA programmer (yet..). I am not sure about the Beans, but to run jsps through tomcat you will need to place them in the tomcat webapps directory, perhaps under another directory such as tomcat/webapps/myprogram. then change your uriworkermap properties to point to map a worker to that directory... I have know idea where the beans are supposed to go.. Sorry.. Richard Haag - Original Message - From: Robert Keddie To: [EMAIL PROTECTED] Cc: Sent: Tuesday, February 12, 2002 1:56 PM Subject: hi Caught your name in an article...if you have time... i was wondering if you know of any complications of using javabeans with a Tomcat 3.3/II 5 w/ isapi_redirect filter? I mean , is there any specific setting i have to implement in the server xml or other files? The jsps/beans are outside of tomcat directory in the Inetpub directory. I get the 405--Resource Not Allowed with the reason at top saying i have incorrect url. I know Tomcat is case sensitive and I made sure all links correspond...even the envirment variable references. I have one jsp posting to another with a bean between them. Please help. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: JSP/Servlet Hosting
You have have a look at www.aoindustries.com They everything you've asked for including 1GB of disk space at only $30. And the best part is that they offer Servlet 2.3 hosting on TC 4.0.1 I think they are the first ISP to do this. You can even get J2EE hosting for just $50 per month on JBoss. I hope this helps. Allan Kamau. Nairobi. --- Michel [EMAIL PROTECTED] wrote: Hello All, I am looking for a JSP/Servlet provider that offers: 350 MB web space 25 GB bandwidth per month mySQL included for around $25 US per month. Ideally something like http://www.communitech.net/products/virtual/unix/comparisons/ but with JSP/Servlet hosting? Am I asking for too much? Could be. Servlets.net offers 100MB / 3GB / mySql for $100 gr. Michel -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: starting Jakarta-Tomcat 4.0 on Red Hat 7.2
Well, have you tried installing TC4 or in other words Catalina from a .gz or .zip package. It is simple you only have to extract the zip file in to a folder of your choice . Then set the environmental variables, CATALINA_HOME and JAVA_HOME, this can be done in either your /etc/profile or in /etc/rc.local file you may use the other evironmental variables set in this files as your guide. By setting these variable in any of this files makes them global to all users loggin. Remmber to export the variable. Allan. Nairobi. --- Chris Knowles [EMAIL PROTECTED] wrote: I did the following to get it working. 1. Went to /etc/tomcat4/tomcat.conf and made sure the JDK_HOME variable pointed correctly to my Java install directory. 2. Started the tomcat service using the 'services' gui and ticking the box. 3. Navigated to 127.0.0.1:8180 (Oh you have to install the Tomcat examples rpm as well) Chris -Original Message- From: Ferencz Adva-BAF016 [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 10, 2002 1:05 PM To: 'Tomcat Users List' Subject: RE: starting Jakarta-Tomcat 4.0 on Red Hat 7.2 well , this is lexible. i just don`t know what else to do to start it. -Original Message- From: Chris Knowles [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 10, 2002 2:58 PM To: 'Tomcat Users List' Subject: RE: starting Jakarta-Tomcat 4.0 on Red Hat 7.2 Interesting. When I install Tomcat using the rpm I don't get a startup.sh script If you read the readme.txt Tomcat4 doesn't listen on port 8080 by default. Its 8180 I think. Chris -Original Message- From: Ferencz Adva-BAF016 [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 10, 2002 12:59 PM To: '[EMAIL PROTECTED]' Subject: starting Jakarta-Tomcat 4.0 on Red Hat 7.2 after I'm running the ./startup.sh command from the Jakarta-Tomact home directory I get the following output: [root@engdb3 bin]# ./startup.sh Using CLASSPATH: /usr/local/jakarta-tomcat-4.0//bin/bootstrap.jar:/usr/java/jdk1.3.0_02/lib/t ools.jar Using CATALINA_BASE: /usr/local/jakarta-tomcat-4.0/ Using CATALINA_HOME: /usr/local/jakarta-tomcat-4.0/ Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-4.0//temp Using JAVA_HOME: /usr/java/jdk1.3.0_02 and the Jakarta-Tomcat 4.0 is not invoked , neither responds to port 8080. please advice. thank you in advance. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This foot-note also confirms that this email message has been swept for the presence of computer viruses. ** -- 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] ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This foot-note also confirms that this email message has been swept for the presence of computer viruses. ** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Can I redirect all the requests caming to Tomcat to a servlet or a jsp page?
Hi Cianluca, Servlet 2.3 specification and Tomcat 4.x does have Filters support an implementation. A filter is a special class that provides the ability to be able to capture a request from a client to a specific servlet (or any other resource) on your context or a request to any resource in an entire directory. It requires no reconfiguration of your existing application, but you may only have to edit your web.xml of your context and ofcourse you will have to create the filters classes. You can read more on Filters from a white paper on Filters from http://java.sun.com/ web site. This documents contains samples and almost all information you need to write and deploy your own filters. Allan. --- Gianluca D'Introno [EMAIL PROTECTED] wrote: Is there a manner to redirect every request to a specific servlet or jsp page? Thanks Gianluca D'Introno P.S. Excuse me for my English -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] __ 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: Starting Tomcat 4.0.1 on Linux (RH 7.2)
Hi John and Valerie, Tomcat4.0.1 like the Tomcat distributions before it comes with startup.sh and other executable script files as standard. This files are stored under the $CATALINA_HOME/bin directory. Incase you get problems running startup.sh, you should first set the $CATALINA_HOME varible in you linux startup scripts (I use the '/etc/profile' file) also you will need to set the $JAVA_HOME environmental variable which you can do in the same file. If you are unsure how to do this open the '/etc/profile' file and see how the other environmental variables are been declared and assigned values. You may then need to logoff and logon just to have the '/etc/profile' file executed.Then at the command prompt just type #$CATALINA_HOME/bin/startup.sh to stop #$CATALINA_HOME/bin/shutdown.sh Incase of difficulties refer to the documents included in the distribution. Allan Kamau. 1712hrs November 21, 2001 Nairobi Kenya. --- John Valerie Dobbs [EMAIL PROTECTED] wrote: I've just installed Tomcat on my Linux box. Couldn't find a startup.sh or catalina.sh to start it with. Tried starting it with the tomcat4 script but got an error when trying to create /var/tomcat4/logs/catalina.out. Not sure if I'm using the right script or the script needs to corrected. I found it strange that I didn't find a startup.sh or something similar in the distribution. Any hints would be greatly appreciated. John __ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: JSP/Servlet Web Hosting?
www.aoindusties.com web hosting with TC,Cocoon,JBoss,PostgreSQL/Interbase/mySQL might be a good try. --- C Cayetano [EMAIL PROTECTED] wrote: Anyone know or can recommend a reasonable priced web hosting company that supports JSP/servlets? Thanks in advance Chris -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Find the one for you at Yahoo! Personals http://personals.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Error running ./configure of webapp-module-1.0-tc40
I forgot to say that the APRVARS file does exist in the /apr directory in the directory where I am running ./configure --- Allan Kamau [EMAIL PROTECTED] wrote: Hi all, I am getting an error during the ./configure of webapp-module-1.0-tc40 in my RH 7.1 box running Apache 2.0.16 this is what I get. #./configure --prefix=/software/apache/jakarta/tomcat/web-app-module-1.0.tc.4.0 --with-apxs=/software/apache/httpd/apache-2_0_16/bin/apxs --enable-java=$JAVA_HOME --with-tomat=$CATALINA_HOME --with-apr ... ... lots of error free output ... Finishing up checking for APR compilation flags... error configure: error: Cannot find required APRVARS file # How can I solve this. Thanks. Allan Kamau. __ Do You Yahoo!? Get email alerts NEW webcam video instant messaging with Yahoo! Messenger. http://im.yahoo.com __ Do You Yahoo!? Get email alerts NEW webcam video instant messaging with Yahoo! Messenger. http://im.yahoo.com
Error running ./configure of webapp-module-1.0-tc40
Hi all, I am getting an error during the ./configure of webapp-module-1.0-tc40 in my RH 7.1 box running Apache 2.0.16 this is what I get. #./configure --prefix=/software/apache/jakarta/tomcat/web-app-module-1.0.tc.4.0 --with-apxs=/software/apache/httpd/apache-2_0_16/bin/apxs --enable-java=$JAVA_HOME --with-tomat=$CATALINA_HOME --with-apr ... ... lots of error free output ... Finishing up checking for APR compilation flags... error configure: error: Cannot find required APRVARS file # How can I solve this. Thanks. Allan Kamau. __ Do You Yahoo!? Get email alerts NEW webcam video instant messaging with Yahoo! Messenger. http://im.yahoo.com
RE: JSP vs. ASP
The main difference is that JSPs and Servlets make use of the rich API offered by Java, while asp uses scripting languages VBscript/JScript but could be made more powerful with the use of COM and DCOM objects to encapsulate business logic and gain speed and other benefits of using objects. Through JSP and Servlets one could access JavaBeans and better still EJBs. Once you look deeper into the underlying differences in technologies and viability using many factors of Java:JavaBeans/EJB and Microsoft's VB/VC++/C# and VB.NET then you will come to a conclusion on the better option. I my case Java and the open source wins over Microsoft and it's technologies because of various factors; I like developing in a strict OO environ, I live in Kenya and I can't afford develop and deploy on expensive Microsoft software, the richness of the Java API and the availability of open source software which is normally easily intergrated into Java projects, and finally opensource software in most cases seems to outperform Microsoft software in terms of Power though you in most cases Microsoft tools are easier to learn and work with: that is in the short term not to mention vendor lockup . Hope this will help you make your own choice. Allan. --- Järkeborn_Joacim [EMAIL PROTECTED] wrote: Some differences: A ASP page is compiled into memory (every time it's accessed I think) A JSP page is pre-processed into a Java class (*.java, Servlet) and then compiled (*.class). This happens ONE time only. If the JSP-page has changed it's being processed again. Everything is on disk. Then it's executed as Servlet. It takes a little more time at first but then are faster than ASP. Best regards Joacim Järkeborn -Original Message- From: Andrej Rosenheinrich [mailto:[EMAIL PROTECTED]] Sent: den 21 september 2001 13:44 To: [EMAIL PROTECTED] Subject: JSP vs. ASP Hello, writing servlets now for a while i am wondering, whats the big difference in comparison to asp. Not knowing a lot about asp, what are the differences, how to argument in favour or against servlets, and where can i find more informations? thanks, and have a nice weekend! Andrej __ Terrorist Attacks on U.S. - How can you help? Donate cash, emergency relief information http://dailynews.yahoo.com/fc/US/Emergency_Information/
Re: Linux
you may download the *.gz version of tomcat then run linuxcounsol $tar xvfz tomcatfile.tar.gz /linuxcounsol to extract the tomcat files together with where directory organisation. Once you've done this edit your startup script file, I use the '/etc/profile'. Modify this file and add the TOMCAT_HOME (or CATALINA_HOME if using TC4) with values corresponding to the directory location within which you've installed/extracted tomat. once you've done this, logout then login again (so that the contents of /etc/profile are ran). now execute linuxcounsol $ sh $TOMCAT_HOME\startup.sh /linuxcounsol you may now access tomcat at http://localhost:8080/ Allan. --- [EMAIL PROTECTED] wrote: 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 __ Do You Yahoo!? Get email alerts NEW webcam video instant messaging with Yahoo! Messenger http://im.yahoo.com
Re: Error when processing octal integer values passed as parameters.
--- Allan Kamau [EMAIL PROTECTED] wrote: Hi all, I am trying to pass Color values like 0xee or 0xEE as values to parameters from a get post (in the header). However I am unable to process the value into an integer value which is a requirement for the Color(int) constructor I will use to create the new color based on this passed value, I have tried code int colorvalue=Integer.parseInt(req.getParameterValue(ColorParameter)); /code It is throwing an NumberFormatException which I am printing displaying the actual value of the parameter e.g output NumberFormatException : 0xEE /output Could anyone kindly tell me how to process this value of the parameter into an integer value so I may pass it to the Color(int) constructor. Thanks. Allan. __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
Error when processing octal integer Color codes passed as parameters.
Hi all, I am trying to pass Color values like 0xee or 0xEE as values to parameters from a get post (in the header). However I am unable to process the value into an integer value which is a requirement for the Color(int) constructor I will use to create the new color based on this passed value, I have tried code int colorvalue=Integer.parseInt(req.getParameterValue(ColorParameter)); /code It is throwing an NumberFormatException which I am printing displaying the actual value of the parameter e.g output NumberFormatException : 0xEE /output Could anyone kindly tell me how to process this value of the parameter into an integer value so I may pass it to the Color(int) constructor. Thanks. Allan. __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
Re: Hosting services that offer Tomcat 4?
aoindustries.com provide hosting service consisting of virtually the entire apache projects including JBoss an opensource J2EE application server. At the moment they are offering TC 3.2.3 hosting service. It appears as they've done before,they are waiting for TC4 to be released as production ready (final version) so they may start providing TC4 hosting services. Allan. --- Lloyd Llewellyn [EMAIL PROTECTED] wrote: Does anyone know of servlet web hosting services that offer Tomcat 4? __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
Re: can't start tomcat 4
Had the same problem. Set CATALINA_HOME variable in your startup scripts eg in the '/etc/profile' for the Linux or in the Environment variables in Windows NT/2000. Then logoff and login then try starting TC4. Allan Kamau. --- Renato Testa [EMAIL PROTECTED] wrote: On Mon, Aug 20, 2001 at 07:13:46AM -0400, Rob S. toeggelte: I've then trying to start tomcat as described, but it fails. I have the message Exception in thread main java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap in the catalina.out file. not very close to java, what's not found? Since it's Java, you don't *have* to build it, would have saved yourself a lot of time and trouble if you just want to run it, just download the binary distro ;) bootstrap.jar should be in the $CATALINA_HOME/bin directory. I'm not familiar enough with the TC4 build process to try and troubleshoot it =/ - r i just downloaded the binary distro. Works. Thanx Renato -- [EMAIL PROTECTED] ITGarage GmbH Freilagerstrasse 19 CH-8047 Zuerich www.itgarage.net- __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
Pure Linux Problem: problems with Java 1.3.0_02 on Linux.
Hi, This is not a tomcat question sorry of the inconvinence. I wonder if there is anyone here successfully running Java 1.3.x on Red Hat 7.1. output #java somejavaprogram /usr/java/jdk1.3.0_02/bin/java: /usr/bin/cut: No such file or directory /usr/java/jdk1.3.0_02/bin/i386/native_threads/java: error while loading shared libraries: libjvm.so: cannot load shared object file: No such file or directory /output I have followed the instructions from sun's site which read that one should install compat-libstdc++-6.21-2.9.0.0.i386.rpm to eliminate this problem. However this particular rpm file is nowhere in the internet. I have installed compat-libstdc++-6.2-2.9.0.14.i386.rpm but I still get the same error. I have ever copied /bin/cut to /usr/bin/ without success. The Installation instructions from the sun's site Thank you in advance. Allan Kamau. __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
RH Linux 7.1 Java Error
Hi all, I know this is perhaps not the most appropriate place to present this question as it is a purely java installation problem. But I hope you'll bare with me.Am getting an 'libjvm.so' error. I am trying to install jdk1.3.0_02 on RH linux 7.1 from the .rpm installation. I've used the rpm -ivh filename and even the GnomeRPM after login as root. The installation completes successfully, and I even query for errors using the GnomeRPM but shows me nothing. However when I run the java or the javac programs I get the following error. --start #java somefile /usr/java/jdk1.3.0_02/bin/java: /usr/bin/cut: No such file or directory /usr/java/jdk1.3.0_02/bin/i386/native_threads/java: error while loading shared libraries: libjvm.so: cannot load shared object file: No such file or directory --end Indeed the /usr/bin/cut file doesn't exist. I can't try download the jdk1.3.1 (now downloadable as one single file) as I am on slow and unrealiable dial-up link. Finally, I have the same jdk (jdk1.3.02) installed from the same .rpm file running flawlessly on a RedHat 6.2 system. Thank you. Allan __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
Auto reload in Tomcat4x
Hi all, How does auto reload work in Tomcat4.0? My question is: how do I update servlets that I have deployed in webapps folder as part of .war file during runtime in Tomcat4x. Without having to recreate and deploy the .war file and restart tomcat? In Tomcat3.x I configured all the servlets in the context's web.xml after restarting tomcat, I would modify an already existing servlet and I would see the updated version. Allan. __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
Re: Multiple Hosting on IIS
One thing I have noticed is that you may not be able to isolate contexts to individual web sites on IIS when running multiple web sites on one IIS server with the web sites all configured to use tomcat. ie. www.myhypotheticaldomain.com/contextname/servletname and www.myotherhypotheticaldomain.com/contextname/servletname : will both execute, but this may not be what I want. Now how can I isolate context 'contextname' so it may only be accessible from www.myhypotheticaldomain.com and not other sites running on the same IIS server with tomcats configured. Allan. --- Minglong Wu [EMAIL PROTECTED] wrote: Hi, Randy, That did the trick. Thanks. -m - Original Message - From: Randy Layman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 02, 2001 10:10 AM Subject: RE: Multiple Hosting on IIS You must restart IIS the process, which means either a machine reboot, or stopping all of IIS's processes in the Control Panel (FTP, World Wide Web Publishing, IIS Admin, etc) and verifying that the inetinfo.exe process stops. If that's not it, look in your isapi and tomcat log files, they should be able to shed some light on where the disconnect is happening. Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, July 02, 2001 1:22 PM To: [EMAIL PROTECTED] Subject: Re: Multiple Hosting on IIS Hi, Randy, I add the following line into uriworkermap.properties: # Mount the admin context to the ajp12 worker /admin/*=ajp12 But I still have to specify http://localhost:8080/admin/index.html to make it work? any idea about other file I need to change? Thanks. Minglong - Original Message - From: Randy Layman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 02, 2001 9:19 AM Subject: RE: Multiple Hosting on IIS Because the default uriworkermap.properties file doesn't include mappings for the other URLs. Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, July 02, 2001 12:42 PM To: [EMAIL PROTECTED] Subject: Re: Multiple Hosting on IIS Have you noticed that after plug in tomcat server into IIS http://localhost/examples/jsp/index.html work but http://localhost/admin/index.html and http://localhost/test/index.html not work? Why is that? Thanks. - Original Message - From: nilesh To: [EMAIL PROTECTED] Sent: Sunday, July 01, 2001 3:04 AM Subject: Multiple Hosting on IIS Dear Sir, We are one of leading ISP companies, I am trying to install Jakarta-Tomcat 3.2.1 on of our Windows 2000 Advance Server with IIS. I followed jakarta-tomcat3.2.1\doc\tomcat-iis-howto.html , everything is working perfectly except for multiple hosting. It works only with default web but not with other web sites that I have created using IIS Manager that I have been registered with NIC. Please help, How can I configure Tomcat to work with multiple hosting ? With Regards, Nilesh Shrestha Manager, WorldLink Technologies Internet Building Dharmapath P.0. Box: 8207 Kathmandu, Nepal. Tel: +977 1 231 129 Fax: +977 1 526 318 Email: [EMAIL PROTECTED] [EMAIL PROTECTED] __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: Does Tomcat needs jdk 1.2.2
Yes you do. Or better get(download) the jdk1.3.1 Allan. --- Eitan Ben Noach [EMAIL PROTECTED] wrote: Hello, Does Tomcat needs the installation of JDK 1.2.2? If yes, what specific jars ( or any other resources ) are needed? Thanks, Eitan __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Providing access to X11 server Using AWT in Linux.
Hi folks, I need to use features of the AWT implementation for creating off-screen images from a servlet. Using AWT requires the use of the host machine's graphic system which in my case is X11 as I am running RH Linux 6.2. I would like to know how to grant the servlet container access to the X11 server. Allan Kamau. __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: Providing access to X11 server Using AWT in Linux.
Where do I set DISPLAY, is it in the /etc/profile file where I have to set 'DISPLAY=0.0' ? And how about setting the xhost access? --- Geir Magnusson Jr. [EMAIL PROTECTED] wrote: Allan Kamau wrote: Hi folks, I need to use features of the AWT implementation for creating off-screen images from a servlet. Using AWT requires the use of the host machine's graphic system which in my case is X11 as I am running RH Linux 6.2. I would like to know how to grant the servlet container access to the X11 server. I have a related problem. All I do is ensure X11 is running on the server, set DISPLAY to the right thing, and xhost access for it. geir -- Geir Magnusson Jr. [EMAIL PROTECTED] System and Software Consulting Developing for the web? See http://jakarta.apache.org/velocity/ You have a genius for suggesting things I've come a cropper with! __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: Error when Including resources in JSP
Well I still haven't got any responses to my problem below. --- Allan Kamau [EMAIL PROTECTED] wrote: Hi all,I get errors when I include a cocoon processed .xml file in .jsp file in Tomcat-3.2.1The resource.xml calls an xml generating servlet that I have written. If I call the resource.xml?month=5year=2001 on my browser it works just fine.However when I use I get java.lang.IllegalStateException writer is already being used for this requestif I use On requesting the .jsp I get an java.lang.NullPointerException Now I think the problem is that the .xml being generated by cocoon is tring to obtain a new PrintWriter object. If this is the case how can I solve it. I have tried passing the out object from jsp to the servlet including in the resource.xml by using 'request.setAttribute(out,out)' but I am unable to obtain it in the servlet using '... out=request.getAttribute(out)' Below is the code for the resource.xml?month=5year=2001 http://localhost:8080/projsp/XML/jsp/monthDays.jsp?month=+request.getParameter(month)++request.getParameter(year) Below it the direct error output I get if I use the from the .jspCocoon 1.8.2 Error found handling the request. java.lang.IllegalStateException: Writer is already being used for this requestat org.apache.tomcat.facade.HttpServletResponseFacade.getOutputStream(HttpServletResponseFacade.java:158) at org.apache.cocoon.response.HttpServletResponseFacade.getOutputStream(HttpServletResponseFacade.java:85) at org.apache.cocoon.Engine.handle(Engine.java:483) at org.apache.cocoon.Cocoon.service(Cocoon.java:183) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.facade.RequestDispatcherImpl.include(RequestDispatcherImpl.java:345) at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:414) at diary.jsp._0002fdiary_0002fjsp_0002fdefault_00038_0002ejspdefault8_jsp_13._jspService(_0002fdiary_0002fjsp_0002fdefault_00038_0002ejspdefault8_jsp_13.java:65) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) Finally Thanks in advance.Allan Kamau. - Do You Yahoo!? Yahoo! Auctions $2 Million Sweepstakes - Got something to sell? __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Error in Including resources in JSP
Hi all, I get errors when I include a cocoon processed .xml file in .jsp file in Tomcat-3.2.1 The "resource.xml" calls an xml generating servlet that I have written. If I call the "resource.xml?month=5=2001" on my browser it works just fine. However when I use I get "java.lang.IllegalStateException writer is already being used for this request" if I use <% RequestDispatcher rd=applicaltion.getRequestDispatch("absolutePathTo.xml?month=5"); rd.include(request.response); %> On requesting the .jsp I get an "java.lang.NullPointerException" Now I think the problem is that the .xml being generated by cocoon is tring to obtain a new PrintWriter object. If this is the case how can I solve it. I have tried passing the "out" object from jsp to the servlet including in the "resource.xml" by using 'request.setAttribute("out",out)' but I am unable to obtain it in the servlet using '... out=request.getAttribute("out")' Below is the code for the "resource.xml?month=5=2001" "http://localhost:8080/projsp/XML/jsp/monthDays.jsp?month="+request.getParameter("month")+""+request.getParameter("year") Below it the direct error output I get if I use the "" from the .jsp Cocoon 1.8.2 Error found handling the request. java.lang.IllegalStateException: Writer is already being used for this request at org.apache.tomcat.facade.HttpServletResponseFacade.getOutputStream(HttpServletResponseFacade.java:158) at org.apache.cocoon.response.HttpServletResponseFacade.getOutputStream(HttpServletResponseFacade.java:85) at org.apache.cocoon.Engine.handle(Engine.java:483) at org.apache.cocoon.Cocoon.service(Cocoon.java:183) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.facade.RequestDispatcherImpl.include(RequestDispatcherImpl.java:345) at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:414) at diary.jsp._0002fdiary_0002fjsp_0002fdefault_00038_0002ejspdefault8_jsp_13._jspService(_0002fdiary_0002fjsp_0002fdefault_00038_0002ejspdefault8_jsp_13.java:65) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) Finally Thanks in advance. Allan Kamau.Do You Yahoo!? Yahoo! Auctions $2 Million Sweepstakes - Got something to sell?
RE: Determining NT login name
Indeed I do think Randy's answer is most probably the best solution to the problem stated below. --- Randy Layman [EMAIL PROTECTED] wrote: I believe what you need to do is to run Tomcat behind IIS. Then, in IIS set the password to challenge/response and set the default domain to that of your users. Now, when users come to your web site using IE (not Netscape), IE will perform the login for the user without their intervention. From Tomcat you should now be able to grab their account with getRemoteUser. The real key to this is getting IIS set up so that IE can/will automatically login the users in. Randy -Original Message- From: Daniel A. Theobald [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 1:01 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Determining NT login name We are developing an intranet application to be deployed on a windows network. One of the requirements is that the user should not be required to login to the website, that their windows login should be sufficient. Does anyone know how to determine the windows username of the remote user in a servlet? I know there is some way to do it using ASP, but I would rather do this all in java if possible. javax.servlet.http.HttpServletRequest.getRemoteUser always seems to return null. I guess we will need to make some auto authentication or something. Ideas? thanks in advance, theo __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Hot Deploy.
is there such a thing like Hot deployment of new servlets and/or servlets. this requires the editing of the context's web.xml, can this be done without TC restart?. Allan. __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Hot Servlet Deployment in Tomcat 3.2.1
I am running Tomcat 3.2.1. The Server hosting the tomcat will soon go into production. I wanted to know if and how it is possible to deploy servlets without having to restart Tomcat 3.2.1 so it may read the modified web.xml in my context. Thanks in advance. Allan Kamau. __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
RE: Virtual Hosts on IIS5 TOMCAT3.2
I have run Tomcat 3.2.1 with IIS5. This means isapi_redirect.dll works just fine. You may need to go through the steps outlined in the tomcat-IIS again just to be sure. Sachin, you first create your domain name entry in your DNS server in your network then you create a web site (not a virtual directory) on your IIS server. It is in this web site that you will be expected to the create a virtual directory called tomcat(I hope I remembered correctly) and perform the steps outlined in the tomcat-IIS manual. Allan Kamau. Nairobi --- Antoan Christov [EMAIL PROTECTED] wrote: Hi, Ive tried to run Tomcat 3.2 integrated in IIS, but the isapi_redirect.dll fails to load under my Win2K Pro and IIS5. Can you tell me please is this library works on your IIS5? Thanks, Antoan -Original Message- From: Sachin Phatak [mailto:[EMAIL PROTECTED]] Sent: 08 May 2001 15:49 To: [EMAIL PROTECTED] Subject: Virtual Hosts on IIS5 TOMCAT3.2 Can someone please direct me to some documentation on this issue? or better explain it to me. After I create Virtual Hosts on IIS, do i just add he same filter Virtual directory as I did for the default website? thanks sachin __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Re: Problem in refresh the new jsp file
To be extremely sure you are looking at your most recent .jsp, simply introduce an error in your jsp example forget a semicolon and save the page to the server. Request for the page, obviously you will see the error page if you have one or tomcats error page. Now return to your jsp page and remove the intentional error then request for the page again, this time you are sure you will see the latest copy of your .jsp. I've used this not so clever technique on .asp on IIS. And works just fine. Allan Kamau. Nairobi. --- Franky Tong [EMAIL PROTECTED] wrote: It is not a browser-cache problem because I have run the jsp file in several machines. What is tomcat-not-recompiling-source problem? Samson, Lyndon [IT] wrote: You need to find out if its a browser-cache problem, or a tomcat-not-recompiling-source problem. -Original Message- From: Franky Tong [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 09, 2001 9:42 AM To: [EMAIL PROTECTED] Subject: Problem in refresh the new jsp file Hi all, I have a problem that I get an outdated JSP page even if I have updated the JSP file in the server. It shows me the old content in the browser even I have refreshed the page. Is there something that I need to set about the caching? Thanks! -- Data Center, Global Infrastructure Solution Team (GIS) Direct Phone : 2666 8364 Pager : 7203 2006 Mobile : 9373 0760 __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Re: Find JSP hosting
Try http://www.aoindustries.com/ My analysis concludes that aoindustries.com offer the best in JSP hosting. From the entry level account, you are provided the entire apache.org software and a choice of PostgreSQL 7.0.2, InterBase 6.1 or mySQL for the database and much more they may not be offering JBoss at moment though. Allan Kamau. --- Jack Li [EMAIL PROTECTED] wrote: Hello, How to find good ISPs with jsp web hosting? Thanks, Jack __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Re: Tomcat IIS
Hi Willis and others installing tomcat and IIS You will need to configure IIS and install a filter that will forward requests to Tomcat. I don't remember the exact steps.The how to docs in Tomcat/docs directory provide detailed explanations on the same. Basically you will need to visit the tomcat download page, move into the win32/ directory and download files from there, you will end up using only one of the dlls included here. Extract the dll (from it's zip format) and copy it to a directory .. you will get more information from the docs. You will need to create a vitual directory in the site(s) you have created in your IIS. At the end. You should be able to run your .asp and .htm[l] files with IIS handling those and your servlets and .jsp files being handled by Tomcat. You can even access servlets in the contexts you've defined. Allan Kamau. --- Keith Willis [EMAIL PROTECTED] wrote: I am trying to run Tomcat and IIS together. I would like to put ASP and JSP files in the same directory. I tried changing the directory in IIS to point to the Root directory of Tomcat, but it would not run the JSP in that folder then. Is there a way to do this? (Basically I want all my files in the same set of directories rather than ASP in one set and JSP in another) Thanks, Keith _ Get your FREE download of MSN Explorer at http://explorer.msn.com __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
RE: Tomcat/Xalan
Xerces is a parser and Xalan is for XML transformations that's the difference. The easier way to process XML content is to use an XML publishing framework. Cocoon is probably the best publishing framework around, you can get it from http://xml.apache.org/ needless to say it can be easily configured to work with your tomcat installation having tomcat serve the .jsp and servlets (and .html files if tomcat acting a standalone web server) and the cocoon handling the .xml files. You will have to configure your contexts in Tomcat to have this-it takes two steps copying a worker file from cocoon into your context's /WEB-INF directory then modifying your web.xml file of your context to forward .xml files to cocoon. As expected the cocoon-1.8.2 docs files provide excellent coverage on the same - refer to them first. Allan Kamau. --- Robert Petersen [EMAIL PROTECTED] wrote: Just FYI - Xerxes is a parser and Xalan is for XML Transformations (XSLT), they do two different things and both are from Apache. - Robert Petersen http://www.orangefood.com -Original Message- From: Noel E. Lecaros [mailto:[EMAIL PROTECTED]] Sent: Friday, May 04, 2001 12:39 PM To: [EMAIL PROTECTED] Subject: Re: Tomcat/Xalan Hi, Dante Just a thought but have you tried using the Apache Xerces parser? Hopefully this parser provides better integration with Xalan. Hope this helps. Regards, Noel Lecaros Dante le Poole wrote: Hi, has anyone used the xalan-package in their webapps? I am and it's going troublesome. With tomcat 3.2.1 it originally kept giving a NoSuchMethodError for the method getNamespaceOfNode (in one of apache's xpath-classes). I solved that one by replacing the jaxp.jar in tomcat's lib-dir with the latest version and adding crimson.jar. Now tomcat has started hanging on me, refusing any http-requests and requiring several resets a day (see my post from yesterday). I'm looking into upgrading to 3.2.2b4, but I'm running into the exact same problem with the NoSuchMethodError again, only this time adding jaxp.jar and crimson.jar doesn't work! Now I'm stuck with two problems that have got me baffled, and my boss isn't amused about our site not functioning correctly! Does anyone please have any ideas? Thanx, Dante le Poole __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Re: org.gjt.mm.mysql.driver
You could try copying the mySQL driver jar file to your $TOMCAT_HOME/lib/ directory. You will then not need to configure the server.xml or any other files. You may then directly load your driver directly from your JSPs and servlets using standard JDBC methods. Allan Kamau __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Re: Still trying to configure mod_jk
Indeed configuring mod_jk is highly procedural. You may have to follow the 'mod_jk how to' in your $TOMCAT_HOME/docs/ directory. The html document covers how to build the mod_jk form the tomcat source (which you may have to download). Remember to copy the 'mod_jk.so' generated by your apache to the directory your apache installation finds its loadable modules like the '/user/libexec/apache/'. And add the lines in your httpd.conf file to load the same. Finally check out how to have apache redirect .jsp and '/yourContextName/*' to tomcat, documentation can be found at $TOMCAT_HOME/docs/ 'apache and Tomcat. Allan Kamau. --- Noel E. Lecaros [EMAIL PROTECTED] wrote: Hi, Patrick Line 127 of Makefile. Problem #1 - There's something wrong with your mod_jk build. Can you outline the exact steps you took? This problem comes up pretty often in this list, but I don't recall encountering it myself. But then again, I usually build apache from source... Problem #2 - This means that you still have a running instance of Tomcat. How many times did you start up Tomcat? Check if any are running with ps ax. Regards, Noel Lecaros J. Patrick Lanigan wrote: Line 127 of what file? I am running RH7/Apache1.3.17. The build goes fine for me(of mod_jk), but I am having a couple problems. Problem #1 I also get the following error when trying to start apache: [root@domain]# /usr/local/apache/bin/apachectl start Syntax error on line 8 of /usr/local/tomcat/conf/mod_jk.conf-auto: API module structure `jk_module' in file /usr/local/apache/libexec/mod_jk.so is garbled - perhaps this is not an Apache module DSO? /usr/local/apache/bin/apachectl start: httpd could not be started Problem #2 I don't have a test directory, but I am also getting the following error when trying to start Tomcat: 2001-05-03 09:24:04 - ContextManager: Adding context Ctx( /examples ) 2001-05-03 09:24:04 - ContextManager: Adding context Ctx( /admin ) Starting tomcat. Check logs/tomcat.log for error messages 2001-05-03 09:24:04 - ContextManager: Adding context Ctx( ) 2001-05-03 09:24:04 - ContextManager: Adding context Ctx( /test ) FATAL:java.io.IOException: Address already in use java.io.IOException: Address already in use at java.net.PlainSocketImpl.socketBind(PlainSocketImpl.java:native) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:43) at java.net.ServerSocket.init(ServerSocket.java:53) at java.net.ServerSocket.init(ServerSocket.java:30) at org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServerS ocketFactory.java:97) at org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java :239) at org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:188) at org.apache.tomcat.core.ContextManager.start(ContextManager.java:527) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) -- Any ideas? Thanks, Patrick Noel E. Lecaros wrote: Hi, Laurence If you're using GNU make, try putting a tab at the start of line 127. Hope this helps. Regards, Noel Lecaros Laurence Mayer wrote: How do I compile mod_webapp? I get errors : Makefile:127:*** missing separator. Stop. Thanks Laurence Sam Newman wrote: Lots of people have this problem. The downloadable mod_jk seems to work for some people, but not all. I'd suggest downloading the mod_jk source and build it yourself. Give your system, this shouldn't be too hard. sam Laurence Mayer wrot: Redhat 6.2 Apache -1.3.6-1 httpd start gives the following error Syntax error on line 214 of /etc/httpd/conf/httpd.conf: API module structure 'jk_module' in file /user/libexec/apache/mod_jk.so is garbled - perhaps this is not an apache module DSO? How do I fix? Can anyone shed some light, pleeeaaassse? Desperate Laurence __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Servlet Deploy without Tomcat Restart.
On Tomcat 3.2.1 how can I deploy servlets to already configured contexts without a Tomcat Restart. Also how to deploy new contexts without a Tomcat Restart. The server is been used in production. Allan Kamau. __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/