Re: Tomcat installation problem
From: Julian [EMAIL PROTECTED] I installed Tomcat and everything went without a problem. The service starts ok too. The problem is that when I load a jsp file into the browser, I don't get the results, I get the contents of the jsp file itself. When I installed apache, it took me a while to discover that I had to tell it where my web root folder is. I can't find anywhere I can tell Tomcat where my apache localhost web root folder is. Is that what I have to do? If you're new to Tomcat, you'll probably want to leave the Apache/Tomcat interaction for another day. What instructions are you working from? They should have you visit http://localhost:8080 (or is it 8081?) to make sure Tomcat is alive. (Tomcat listens on one of those ports by default. When you use Apache in front of it, the connector listens on yet another port.) You should see the welcome page, click on the links to the examples and check them out. Let us know if that part works... -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat installation problem
Hi Wendy. That part works great. I get the welcome page and the samples are good too. Wendy Smoak wrote: From: Julian [EMAIL PROTECTED] I installed Tomcat and everything went without a problem. The service starts ok too. The problem is that when I load a jsp file into the browser, I don't get the results, I get the contents of the jsp file itself. When I installed apache, it took me a while to discover that I had to tell it where my web root folder is. I can't find anywhere I can tell Tomcat where my apache localhost web root folder is. Is that what I have to do? If you're new to Tomcat, you'll probably want to leave the Apache/Tomcat interaction for another day. What instructions are you working from? They should have you visit http://localhost:8080 (or is it 8081?) to make sure Tomcat is alive. (Tomcat listens on one of those ports by default. When you use Apache in front of it, the connector listens on yet another port.) You should see the welcome page, click on the links to the examples and check them out. Let us know if that part works... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat installation problem
From: Julian [EMAIL PROTECTED] Hi Wendy. That part works great. I get the welcome page and the samples are good too. Okay... then where do you want to go from here? It sounds like you're wanting to put your JSP files over in your Apache document root. While you probably *could* get it to work that way, that's not typically how this works. JSP's belong to a webapp and those are Tomcat entities, generally living under /path/to/tomcat/webapps. Look there and you'll see a couple that come with Tomcat-- 'examples' and 'ROOT' for example. The easiest thing to do while playing around and learning is to just add things to the existing 'examples' webapp. Most of the tutorials you find on the web will work if you put them there. Then you'll learn to create your own webapp, which will be placed right beside 'examples', then to create a .war file and deploy it, etc... Is Apache important to you? Tomcat works just fine standalone... you can even change server.xml so that Tomcat listens on port 80. This is what I do on my development box, although we do use Apache+Tomcat in production. -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat installation problem
Hi Wendy, Thanks so much for your help by the way. I didn't actually realize that I don't need apache. It that's the case then I'll go without it for the moment. Thanks for the advice and your long reply which has made everything much clearer now. I looked up some stuff about something called jk and started working my way through it, but it seems to leave bits out. If I don't need it, I won't bother. Well at least I'm up and running thanks to you. Take care and thanks again. Julian Wendy Smoak wrote: From: Julian [EMAIL PROTECTED] Hi Wendy. That part works great. I get the welcome page and the samples are good too. Okay... then where do you want to go from here? It sounds like you're wanting to put your JSP files over in your Apache document root. While you probably *could* get it to work that way, that's not typically how this works. JSP's belong to a webapp and those are Tomcat entities, generally living under /path/to/tomcat/webapps. Look there and you'll see a couple that come with Tomcat-- 'examples' and 'ROOT' for example. The easiest thing to do while playing around and learning is to just add things to the existing 'examples' webapp. Most of the tutorials you find on the web will work if you put them there. Then you'll learn to create your own webapp, which will be placed right beside 'examples', then to create a .war file and deploy it, etc... Is Apache important to you? Tomcat works just fine standalone... you can even change server.xml so that Tomcat listens on port 80. This is what I do on my development box, although we do use Apache+Tomcat in production. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Installation Problem
hii.. Dear friends Please u can check web.xml file or server.xml file may be some errors in that XML file. Deepak On Fri, 18 Jun 2004 deepak Malhotra wrote : Hi , Recently I have installed Jakarta-tomcat-5.0..25 on fedora linux 2.4.22-1.2115.nptl also I have java j2sdk1.4.1_02 . The problem is that tomcat starts successfully using service tomcat start but when i point my browser to http://localhost:8080 browser just waits infinitely without showing the default page. when i checked out catalina.out it shows org.xml.sax.SAXParseException: The processing instruction target matching [xX][mM][lL] is not allowed. Exception processing Global JNDI Resources javax.naming.NamingException: The processing instruction target matching [xX][mM][lL] is not allowed. etc. So kindly guide me. bye __ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat installation problem in win98
Hi, Would you mind being a little bit more specific? Perhaps you could post the exact startup command being used and the exact error output...;-) Cheers, John Clark karthik rajan wrote: hello i have installed tomcat3.2.1 in win 98 i have set the path tomcat and java still i'm facing the problem i'm facing problem in startup saying bad command or filename my project has held up please reply in detail.i'm waiting karthik [EMAIL PROTECTED] -- /) John Clark Naldoza y Lopez (\ / )Software Design Engineer II ( \ _( (__ Web-Application Development_) )_ (((\ \ /_Cable Modem Network Management System _\ / /))) ( \_/ / NEC Telecom Software Phils., Inc. \ \_/ ) \ / \ / \_/ phone: (+63 32) 233-9142 loc. 3112\_/ / / cellphone: (+63 919) 399-4742 \ \ / / email: [EMAIL PROTECTED]\ \
RE: tomcat installation problem in win98
Title: RE: tomcat installation problem in win98 Try modifying startup.bat to call tomcat.bat directly rather than just tomcat. -Original Message- From: karthik rajan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 11, 2001 3:38 AM To: [EMAIL PROTECTED] Subject: tomcat installation problem in win98 hello i have installed tomcat3.2.1 in win 98 i have set the path tomcat and java still i'm facing the problem i'm facing problem in startup saying bad command or filename my project has held up please reply in detail.i'm waiting karthik [EMAIL PROTECTED]
Re: tomcat installation problem in win98
Hai see the attachment. If it still doesn't work do mail to me ramesh [EMAIL PROTECTED] _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Apache , Tomcat , mySQL - Installation Instruction for Windows O/S Step 1 1) Download the apache_1.3.19.zip file (currently available final version) of Apache Binaries from http://www.apache.org/dist 2) Download the jakarta-tomcat-3.2.1.zip file (currently available final version) of Tomcat Binaries from http://jakarta.apache.org/builds/tomcat/release/v3.2.1/bin/ 3) Download the ApacheModuleJServ.zip file from http://jakarta.apache.org/builds/tomcat/release/v3.2.1/bin/win32/i386/ 4) Download the suitable version of mySQL binaries from http://www.mysql.com/downloads/mysql-3.23.html 5) Download the poolman-1.4.1.zip file from http://poolman.sourceforge.net/PoolMan/download.shtml (if you wish to go in for connection pooling) Step 2 I) Apache Installation 1) Uncompress the apache_1.3.19.zip file in a directory like c:\ (windows by default will install apache in c:\Program Files\Apache Group\Apache 2) Accept the defaults and follow the installation instructions 3) You got to edit the c:\Program Files\Apache Group\Apache\conf\httpd.conf 4) Open the httpd.conf file in your favorite editor say, notepad 5) Look for "ServerType StandAlone" under the Section 1: Global Environment. 6) Insert the line: "ServerName localhost" below it and save the file. 7) Try the configuration out by starting Apache (from the start menu) and navigating to http://localhost/ in your browser. If you see the Apache web server page, then your installation is successful. 8) Stop Apache (again using Stop menu) II) Tomcat Installation 1) Uncompress the download into some sensible place , like c:\Program Files\Apache Group\jakarta-tomcat-3.2.1 2) Go to Start Settings Control Panel System System Properties and select the "Environment" tab. 3) Under "User Variables for Administrator", type the following: Variable: JAVA_HOME Value : c:\jdk1.3(give your correct JDK path) 4) Similarly enter the following: Variable: ANT_HOME Value : c:\program files\apache group\jakarta-tomcat3.2.1 Variable: TOMCAT_HOME Value : c:\program files\apache group\jakarta-tomcat3.2.1 (give your correct path, if your installation directory / path is different) 5) Run the "startup.bat" batch file found in the jakarta-tomcat-3.2.1\bin directory. If the DOS window starts and then closes immediately, try " tomcat run" from the same command window. 6) Tomcat should normally start. 7) If still your tomcat doesn't start, try adding c:\jdk1.3 in the classpath for "system variables" under the environment tab ofSystem Properties. (Refer step 2). 8) If still the problem persists, try shutting down the system for changes to be registered. Restart the computer and repeat step 5. Now Tomcat should normally start. (This has worked for me) 9) Test the result by going to http://localhost:8080/ in your browser and run some examples. 10) Run the "shutdown.bat" from the same directory (refer step 5). III) Installing mod_jserv 1) Uncompress the download in some sensible place. 2) Copy the "ApacheModuleJServ.dll" file into the Apache modules directory ( in our case c:\program files\apache group\apache\modules directory) 3) Start tomcat and keep it running 4) Edit the "httpd.conf" file ( in our case available in c:\progam files\apache group\apache\conf directory) 5) Add the following line to the end, Include "c:\Program Files\Apache Group\jakarta-tomcat-3.2.1\conf\tomcat-apache.conf" (use the correct path in your installation) 6) Save the file and stop Tomcat IV) Testing out final configuration 1) Start Tomcat (from c:\program files\apache group\jakarta-tomcat-3.2.1\bin directory) 2) Start Apache (from start menu) 3) Check if Apache is working (by going to http://localhost/) 4) Go to http://localhost/examples/jsp and try out the examples. V) Setting up your web application 1) We should add a web application declaration in the "server.xml" configuration file, available under c:\program files\apache group\jakarta-tomcat-3.2.1\conf directory. 2) Open this file in text editor and add the following lines Context path="/examples" docBase="webapps/miami" crossContext="false" debug="0" reloadable="true" /Context (in the above example, "miami" is my webapplication folder name, substitute your folder name here). -- Share your experiences with : [EMAIL PROTECTED]
Re: Tomcat: Installation problem
You must set the initial environment memory alotment to 2816 MB, When you Open a DOS window, click on properties, click on memory, set initial environment memory to 2816 - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 03, 2001 9:58 PM Subject: Tomcat: Installation problem I'm trying to install Tomcat on my PC with Windows 98 (second edition). == My autoexex.bat: @C:\PROGRA~1\NORTON~1\NAVDX.EXE /Startup @ECHO OFF PATH=c:\windows;c:\windows\command;c:\ibmtools;c:\;C:\MSSQL7\BINN LH DOSKEY SET PATH=c:\jdk1.3\bin;c:\jdk1.3\lib;%PATH% SET CLASSPATH=.;c:\jdk1.3\bin;c:\jdk1.3\lib;c:\tomcat\bin;c:\tomcat\lib;c:\CoreJavaBook rem SET CLASSPATH=c:\CoreJavaBook;c:\jdk1.3\bin;c:\jdk1.3\lib;c:\tomcat\bin;c:\tomcat\lib SET TOMCAT_HOME=c:\tomcat SET JAVA_HOME=c:\jdk1.3 C:\essolo.com ** There is the outcome of my efforts: C:\tomcat\binstartup ENTER "Out of environment space Out of environment space Unable to set CLASSPATH dynamically. Note: To set the CLASSPATH dynamically on Win9x systems only DOS 8.3 names may be used in TOMCAT_HOME! Setting your CLASSPATH statically. Out of environment space Out of environment space Using CLASSPATH: ..\classes Out of environment space Starting Tomcat in new window Bad command or file name C:\tomcat\bin " ** C:\tomcat\doc\uguide\tomcat_ug.html - some basic information about Tomcat (an excerpt): "As you can see, the Win32 version of tomcat.bat is not as robust as the Unix one. Especially, it does not guess the values of JAVA_HOME and only tries "." as a guess for TOMCAT_HOME. It can build CLASSPATH dynamically, but not in all cases. It can not build CLASSPATH dynamically if TOMCAT_HOME contains spaces, or on Win9x, if TOMCAT_HOME contains non-8.3 directory names." = My friend has installed Tomcat on his PC with Windows'98 successfully using the same instructions as myself. However, I'm put in a spot by the above mentioned Note about TOMCAT_HOME and DOS 8.3 names... What's wrong with my autoexec.bat? There was a suggestion to set environmental space variable (ENVIRONMENTAL_SPACE ?) in the Windows'98 2nd edition. However, I do not know what is the correct syntax of that setting. Please advise me. Thanks, Vlad