RE: Sending mail with JavaMail (UNCLASSIFIED)
Classification: UNCLASSIFIED Caveats: NONE Are you including your JAR files your BUILD.XML classpath ? -Original Message- From: David Tonhofer, m-plify S.A. [mailto:[EMAIL PROTECTED] Sent: Friday, October 07, 2005 6:25 AM To: Tomcat Users List Subject: Re: Sending mail with JavaMail Looks like the usual Tomcat classloader hierarchy SNAFU. Try with ONLY in tomcat/common/lib. --On Friday, October 07, 2005 12:04 PM +0200 Andrés Reyes [EMAIL PROTECTED] wrote: activation.jar and mail.jar are placed both in /common/lib, and in /WEB-INF/lib (and also in JAVA_HOME/lib) ¿Any other place? ;) ¿Maybe the error be in activation.jar itself? ( I want to believe that it isn't :( ). No. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Classification: UNCLASSIFIED Caveats: NONE - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts Validation
Dear list, I have a very simple form that I am validating. I enables the plugin and the validation works fine, but when I submit an empty form, it shows NULL instead of picking the correct msg for the particular field from the properties files. Any idea why this is happening ? I tried all versions of the DTDs and still doesn't work. Thanks Fadi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Java Server Faces (UNCLASSIFIED)
Classification: UNCLASSIFIED Caveats: NONE Sue, You might want to try this users group[EMAIL PROTECTED] Personally, I haven't done much with JSFs but certainly it is worth looking into. Fadi -Original Message- From: Sue Roe [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 30, 2005 9:06 AM To: 'Tomcat Users List' Subject: Java Server Faces I don't know if this is the correct User Group. Has anyone done any development with Java Server Faces to create richer UI experiences? Is it any good? TIA Sue ***Disclaimer*** The contents of this Email may be privileged and are confidential. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Should you wish to use Email as a mode of communication, CMi plc and its subsidiaries are unable to guarantee the security of Email content outside of our own computer systems. This footnote also confirms that this Email message has been checked by MIMESweeper for the presence of computer viruses. Whilst we run anti-virus software, you are solely responsible for ensuring that any Email or attachment you receive is virus free. We disclaim any liability for any damage you suffer as a consequence of receiving any virus. Checkmate International plc (CMi) Registered in England No: 1899857 Registered Office 4th Floor, 35 New Bridge Street, London, EC4V 6BW - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Classification: UNCLASSIFIED Caveats: NONE - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multiple virtual hosts NEWBIE (UNCLASSIFIED)
Classification: UNCLASSIFIED Caveats: NONE Hey everyone, I am new to this whole thing. I just bought a domain HYPERLINK www.xxx.com www.xxx.com and will start developing my own app/website and will deploy it under Tomcat (The hosting company supports it). Now my friend has a domain HYPERLINK www.yyy.com www.yyy.com registered with yahoo which will be moved to the new company's DNS servers since yahoo doesn't have any support for tomcat. The question is how am I gonna host these two sites on the same tomcat instance ? Is this done through tomcat ? Is it even possible ? The hosting company supports having multiple domains under one main domain. Any suggestions ? Or maybe if you know of a good hosting company that supports tomcat, JSP/Servlets. I appreciate your input -Fadi Classification: UNCLASSIFIED Caveats: NONE
RE: Multiple virtual hosts NEWBIE (UNCLASSIFIED)
Classification: UNCLASSIFIED Caveats: NONE Hassan, I appreciate your input. I went onto the site and I can't seem to find what I need. Could anyone please supply me with the URL of a reference manual ? I am using version 5.5.8 Thanks in advance. -Original Message- From: Hassan Schroeder [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 17, 2005 9:23 AM To: Tomcat Users List Subject: Re: Multiple virtual hosts NEWBIE (UNCLASSIFIED) The question is how am I gonna host these two sites on the same tomcat instance ? Is this done through tomcat ? Is it even possible ? The hosting company supports having multiple domains under one main domain. Any suggestions ? Yes -- read the excellent Tomcat Configuration reference for the version of Tomcat you're running. Also, you may find the learning curve shorter if you install that version on your desktop system to experiment with... FWIW! -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Classification: UNCLASSIFIED Caveats: NONE - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Multiple virtual hosts NEWBIE (UNCLASSIFIED)
Classification: UNCLASSIFIED Caveats: NONE Thanks for all your help. -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 17, 2005 10:21 AM To: Tomcat Users List Subject: Re: Multiple virtual hosts NEWBIE (UNCLASSIFIED) Start here: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/engine.html Then read the link for host. Simply put, for each website put a host element in for that site. But make sure you understand the default host. Doug - Original Message - From: Hassan Schroeder [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, August 17, 2005 10:01 AM Subject: Re: Multiple virtual hosts NEWBIE (UNCLASSIFIED) I appreciate your input. I went onto the site and I can't seem to find what I need. Could anyone please supply me with the URL of a reference manual ? I am using version 5.5.8 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/ Good luck, -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - 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] Classification: UNCLASSIFIED Caveats: NONE - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Session lifecycle (UNCLASSIFIED)
Classification: UNCLASSIFIED Caveats: NONE Hey List, I have an application that has login/logout functionality. If a user logs out and then presses the back button, they could go back in the application. Anyone has an idea of what should be done ? Thanks Fadi Classification: UNCLASSIFIED Caveats: NONE
RE: Session lifecycle (UNCLASSIFIED)
Classification: UNCLASSIFIED Caveats: NONE My fault, I forgot to mention that I am using struts. The code is below public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { HttpSession session = request.getSession(); session.setAttribute(pageTitle, Logout Action); session.removeAttribute(userId); session.removeAttribute(access); session.removeAttribute(tempId); session.removeAttribute(oldpassword); UserList.getInstance().removeUser(session.getId()); session.invalidate(); // Forward control to this Action's forward page. return mapping.findForward(login); } Let's say that I ran a report, I logged out, if I hit the back button, it takes right into the report I ran before logging out. For security issues, the session to be destroyed and if the user tries to go back, I want to display session has expired. Thanks for your input. -Original Message- From: Arup Vidyerthy [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 10:26 AM To: 'Tomcat Users List' Subject: RE: Session lifecycle (UNCLASSIFIED) Samara, If your logout is a 'post' then when the user hits the back button he/she should see a session expired message. Arup -Original Message- From: Samara, Fadi N Mr ACSIM/ASPEX [mailto:[EMAIL PROTECTED] Sent: 09 August 2005 15:03 To: 'Tomcat Users List' Subject: Session lifecycle (UNCLASSIFIED) Classification: UNCLASSIFIED Caveats: NONE Hey List, I have an application that has login/logout functionality. If a user logs out and then presses the back button, they could go back in the application. Anyone has an idea of what should be done ? Thanks Fadi Classification: UNCLASSIFIED Caveats: NONE ___ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Classification: UNCLASSIFIED Caveats: NONE - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Session lifecycle (UNCLASSIFIED)
Classification: UNCLASSIFIED Caveats: NONE My fault, I forgot to mention that I am using struts. The code is below public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { HttpSession session = request.getSession(); session.setAttribute(pageTitle, Logout Action); session.removeAttribute(userId); session.removeAttribute(access); session.removeAttribute(tempId); session.removeAttribute(oldpassword); UserList.getInstance().removeUser(session.getId()); session.invalidate(); // Forward control to this Action's forward page. return mapping.findForward(login); } Let's say that I ran a report, I logged out, if I hit the back button, it takes right into the report I ran before logging out. For security issues, the session to be destroyed and if the user tries to go back, I want to display session has expired. Thanks for your input. Fadi Samara Classification: UNCLASSIFIED Caveats: NONE
Redirection/Multiple URLs (UNCLASSIFIED)
Classification: UNCLASSIFIED Caveats: NONE Hey everyone, I am trying to let 2 URLs to resolve to the same IP address. I am using apache as a web server that talks to the application server where the app is deployed. What is the best way to approach this ? Would a redirect tag do it ? Where (in which file) does the change have to be made ? Thanks a lot for your support. Fadi Classification: UNCLASSIFIED Caveats: NONE - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: New user, help! (UNCLASSIFIED)
Classification: UNCLASSIFIED Caveats: NONE There are more tutorials on the web you just have to spend some time googling. Some that really help understand putting all the bits and pieces together is http://www.coreservlets.com You'll find tutorials on the different technologies and tools Fadi -Original Message- From: Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 22, 2005 11:52 AM To: 'Tomcat Users List' Subject: RE: New user, help! Firtst read java / j2ee / jsp and some tutorials ... http://www.tusc.com.au/tutorial/html is a good place to start Guru -Original Message- From: Steve [mailto:[EMAIL PROTECTED] Sent: 22 June 2005 16:49 To: Tomcat Users List Subject: Re: New user, help! I am a newbie at this stuff also, and as I understand, for development I do not need to install Apache at all. Tomcat will act as a static web page server. I am using eclipse so I dont even want Apache installed. Just redirect everything to localhost:8080 Steve Jon Wingfield wrote: You need some JkMount directives to tell Apache which requests to forward to Tomcat. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/config/apache.html Jon Katherine Faella wrote: I am a new user of Apache and of Tomcat. I am using a Redhat AS 4.0 system. I am running Apache V2.0.54 and my version of Tomcat is 5.5.9. I believe my apache installation is okay because when I go to localhost I see the apache welcome screen. When I go to localhost:8080 I see the Tomcat welcome screen. For a short while, when I went to localhost I actually saw the Tomcat welcome screen and could run the samples there. The only thing missing were the Tomcat icons etc. However, I have improved my installation to the point where tomcat is no longer serving for apache, ie. at localhost I see the apache welcome screen. When I peer around at various log files I do not see any obvious errors. Needless to say - I am going nowhere! Can anyone help me? Point me in the right direction at least?! Thanks in advance, Kathy Faella University of Rhode Island a netstat -ln returns: Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp0 0 0.0.0.0:111 0.0.0.0:* LISTEN tcp0 0 127.0.0.1:631 0.0.0.0:* LISTEN tcp0 0 127.0.0.1:250.0.0.0:* LISTEN tcp0 0 :::127.0.0.1:8005 :::* LISTEN tcp0 0 :::8009 :::* LISTEN tcp0 0 :::80 :::* LISTEN tcp0 0 :::8080 :::* LISTEN tcp0 0 :::22 :::* LISTEN udp0 0 0.0.0.0:111 0.0.0.0:* udp0 0 0.0.0.0:631 0.0.0.0:* udp0 0 198.168.1.76:1230.0.0.0:* udp0 0 131.128.1.76:1230.0.0.0:* udp0 0 127.0.0.1:123 0.0.0.0:* udp0 0 0.0.0.0:123 0.0.0.0:* udp0 0 :::123 :::* Active UNIX domain sockets (only servers) Proto RefCnt Flags Type State I-Node Path unix 2 [ ACC ] STREAM LISTENING 5899 /dev/gpmctl unix 2 [ ACC ] STREAM LISTENING 5986 /tmp/.font-unix/fs7100 unix 2 [ ACC ] STREAM LISTENING 5515 /var/run/acpid.socket unix 2 [ ACC ] STREAM LISTENING 6062 /var/run/dbus/system_bus_socket *** To the default httpd.conf I added: LoadModule jk_module modules/mod_jk.so # # Configure mod_jk*** kmf *** # JkWorkersFile /usr/local/apache2/conf/workers.properties JkLogFile /usr/local/apache2/logs/mod_jk.log JkLogLevel info JkShmFile /var/log/httpd/jkshmfile JkShmSize 20M *** my workers.properties *** # workers.properties.minimal - # # This file provides minimal jk configuration properties needed to # connect to Tomcat. # # The workers that jk should create and work with # worker.list=loadbalancer # # Defining a worker named ajp13w and of type ajp13 # Note that the name and the type do not have to match. # worker.ajp13w.type=ajp13 worker.ajp13w.host=localhost worker.ajp13w.port=8009 # add any new workers to the list here to have them balanced worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp13w workers.tomcat_home=/usr/local/src/jakarta-tomcat-5.5.9 workers.java_home=/usr/java/jdk1.5.0_03 - 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] -- Rowan Cottage, Main Road, Littleton, Winchester, SO22 6QS cellular 07791766560, landline: 01962
RE: Tomcat 5.5.7 will not autodeploy war files (UNCLASSIFIED)
Classification: UNCLASSIFIED Caveats: NONE Looking at your server.xml file, it should actually autodeploy it. How are you updating the war file ? Copy/paste ? Or you're actually Letting your IDE auto deploy to the webapps directory ? -Original Message- From: BATCHELOR, SCOTT (CONTRACTOR) [mailto:[EMAIL PROTECTED] Sent: Thursday, May 12, 2005 1:19 PM To: tomcat-user@jakarta.apache.org Subject: Tomcat 5.5.7 will not autodeploy war files I apologize up front if this has been answered at some other time. This is my first day on the list and I could not locate a search function for the archives. I am running Tomcat 5.5.7 with Apache 2.0.52 and ModJk 1.2.6 For some reason when I drop a war file in the webapps directory it will not auto deploy if there is already a version of the application in the webapps directory. In fact I have to delete the application directory and then restart Tomcat for it to deploy the changes. Has anyone ran into this before? Here is part of my server.xml file Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false And here is part of the context Context path=/some_app docpath=some_app crosscontext=false debug=0 reloadable=true Is there another config file that might be causing this problem? Thanks in Advance. -SB - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Classification: UNCLASSIFIED Caveats: NONE - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: class path (UNCLASSIFIED)
Classification: UNCLASSIFIED Caveats: NONE What errors are you getting again ? -Original Message- From: S M [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 9:47 AM To: Tomcat Users List; Jason Bainbridge Subject: Re: class path Hi These are the env. variables that I have set explicitly for tomcat 4.1 installation lJAVA_HOME = C:\java\bin lCATALINA_HOME = C:\Program Files\Apache Group\Tomcat 4.1 CLASSPATH= .;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_HOME%\lib\j2ee.jar; I have the path =C:\java\bin; when i installed J2sdk1.4.2_06 These being the variables I am still getting that error log where the compiler cannot locate the servlet pakages. Hope you can assit further. Thanks. Jason Bainbridge [EMAIL PROTECTED] wrote: On Apr 12, 2005 3:39 PM, S M wrote: sorry for the confusion, but i have set CLASSPATH, i echoed on cmd as mentioned and yes it shows me the CLASSPATH as listed below .;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_HOME%\lib\j2ee.jar; where ;C:\javacode had the source code. Have you explicityly set CATALINA_HOME as well? Does it have spaces in it? If so surround it with double quotes or move it to a path with no spaces. I don't think having servlet.jar and j2ee.jar in the same classpath is a good idea either. Regards, -- Jason Bainbridge http://kde.org - [EMAIL PROTECTED] Personal Site - http://jasonbainbridge.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now Classification: UNCLASSIFIED Caveats: NONE
RE: class path (UNCLASSIFIED)
Classification: UNCLASSIFIED Caveats: NONE I am sorry, but how are you compiling your class ? Are you using any IDE (i.e Eclipse, Jdeveloper) ? -Original Message- From: S M [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 10:07 AM To: Tomcat Users List Subject: RE: class path (UNCLASSIFIED) The same as before. C:\javacodejavac HelloWorld.java HelloWorld.java:2: package javax.servlet does not exist import javax.servlet.*; ^ HelloWorld.java:3: package javax.servlet.http does not exist import javax.servlet.http.*; ^ HelloWorld.java:5: cannot resolve symbol symbol : class HttpServlet location: class HelloWorld public class HelloWorld extends HttpServlet { ^ HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletRequest location: class HelloWorld public void service(HttpServletRequest request, HttpServletResponse response) th rows ServletException, IOException { ^ HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletResponse location: class HelloWorld public void service(HttpServletRequest request, HttpServletResponse response) th rows ServletException, IOException { ^ HelloWorld.java:7: cannot resolve symbol symbol : class ServletException location: class HelloWorld public void service(HttpServletRequest request, HttpServletResponse response) th rows ServletException, IOException { ^ 6 errors - Samara, Fadi N Mr ACSIM/ASPEX [EMAIL PROTECTED] wrote: Classification: UNCLASSIFIED Caveats: NONE What errors are you getting again ? -Original Message- From: S M [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 9:47 AM To: Tomcat Users List; Jason Bainbridge Subject: Re: class path Hi These are the env. variables that I have set explicitly for tomcat 4.1 installation lJAVA_HOME = C:\java\bin lCATALINA_HOME = C:\Program Files\Apache Group\Tomcat 4.1 CLASSPATH= .;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_ HOME%\lib\j2ee.jar; I have the path =C:\java\bin; when i installed J2sdk1.4.2_06 These being the variables I am still getting that error log where the compiler cannot locate the servlet pakages. Hope you can assit further. Thanks. Jason Bainbridge wrote: On Apr 12, 2005 3:39 PM, S M wrote: sorry for the confusion, but i have set CLASSPATH, i echoed on cmd as mentioned and yes it shows me the CLASSPATH as listed below .;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_ HOME%\lib\j2ee.jar; where ;C:\javacode had the source code. Have you explicityly set CATALINA_HOME as well? Does it have spaces in it? If so surround it with double quotes or move it to a path with no spaces. I don't think having servlet.jar and j2ee.jar in the same classpath is a good idea either. Regards, -- Jason Bainbridge http://kde.org - [EMAIL PROTECTED] Personal Site - http://jasonbainbridge.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now Classification: UNCLASSIFIED Caveats: NONE - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now Classification: UNCLASSIFIED Caveats: NONE
RE: Tomcat memory alert (UNCLASSIFIED)
Classification: UNCLASSIFIED Caveats: NONE I suspect this might be an OS level issue. If you are behind Active directory, I for sure know you can do it. What OS are you running ? I am not sure if you can specify such parameter in tomcat Fadi -Original Message- From: Carlos Rule [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 10:10 AM To: 'Tomcat Users List' Subject: Tomcat memory alert Hello all, newbie here. Does anyone know if there is a reliable way of setting up an alert to tell me whenever the Tomcat (5.0.25) process reaches a certain level of memory usage? Many thanks! Carlos Classification: UNCLASSIFIED Caveats: NONE
RE: Tomcat memory alert (UNCLASSIFIED)
Classification: UNCLASSIFIED Caveats: NONE I am sure there is something out there, I am just not aware of any specific ones cuz I never used them. If you are under 2000 server, I am pretty sure you can implement such a job. I will try to get you more info. Fadi -Original Message- From: Carlos Rule [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 10:29 AM To: 'Tomcat Users List' Subject: RE: Tomcat memory alert (UNCLASSIFIED) Thanks for your response. I think you are probably right about it being an OS level issue. Is there any third party software which monitors processes in this way? I'm running Windows 2000 server, but not with Active Directory, unfortunately. Thanks! Carlos -Original Message- From: Samara, Fadi N Mr ACSIM/ASPEX [mailto:[EMAIL PROTECTED] Sent: 13 April 2005 15:15 To: 'Tomcat Users List' Subject: RE: Tomcat memory alert (UNCLASSIFIED) Classification: UNCLASSIFIED Caveats: NONE I suspect this might be an OS level issue. If you are behind Active directory, I for sure know you can do it. What OS are you running ? I am not sure if you can specify such parameter in tomcat Fadi -Original Message- From: Carlos Rule [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 10:10 AM To: 'Tomcat Users List' Subject: Tomcat memory alert Hello all, newbie here. Does anyone know if there is a reliable way of setting up an alert to tell me whenever the Tomcat (5.0.25) process reaches a certain level of memory usage? Many thanks! Carlos Classification: UNCLASSIFIED Caveats: NONE - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Classification: UNCLASSIFIED Caveats: NONE
RE: class path (UNCLASSIFIED)
Classification: UNCLASSIFIED Caveats: NONE Try compiling the class by including the path for servlet.jar in your javac command, if you haven't done that yet. -Original Message- From: S M [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 10:33 AM To: Tomcat Users List Subject: RE: class path (UNCLASSIFIED) I compiling it from the command prompt. The sourse code is in c:\javacode so i on cmd... i change directory to c:\javacodejavac HelloWorld.java Samara, Fadi N Mr ACSIM/ASPEX [EMAIL PROTECTED] wrote: Classification: UNCLASSIFIED Caveats: NONE I am sorry, but how are you compiling your class ? Are you using any IDE (i.e Eclipse, Jdeveloper) ? -Original Message- From: S M [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 10:07 AM To: Tomcat Users List Subject: RE: class path (UNCLASSIFIED) The same as before. C:\javacodejavac HelloWorld.java HelloWorld.java:2: package javax.servlet does not exist import javax.servlet.*; ^ HelloWorld.java:3: package javax.servlet.http does not exist import javax.servlet.http.*; ^ HelloWorld.java:5: cannot resolve symbol symbol : class HttpServlet location: class HelloWorld public class HelloWorld extends HttpServlet { ^ HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletRequest location: class HelloWorld public void service(HttpServletRequest request, HttpServletResponse response) th rows ServletException, IOException { ^ HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletResponse location: class HelloWorld public void service(HttpServletRequest request, HttpServletResponse response) th rows ServletException, IOException { ^ HelloWorld.java:7: cannot resolve symbol symbol : class ServletException location: class HelloWorld public void service(HttpServletRequest request, HttpServletResponse response) th rows ServletException, IOException { ^ 6 errors - Samara, Fadi N Mr ACSIM/ASPEX wrote: Classification: UNCLASSIFIED Caveats: NONE What errors are you getting again ? -Original Message- From: S M [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 9:47 AM To: Tomcat Users List; Jason Bainbridge Subject: Re: class path Hi These are the env. variables that I have set explicitly for tomcat 4.1 installation lJAVA_HOME = C:\java\bin lCATALINA_HOME = C:\Program Files\Apache Group\Tomcat 4.1 CLASSPATH= .;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_ HOME%\lib\j2ee.jar; I have the path =C:\java\bin; when i installed J2sdk1.4.2_06 These being the variables I am still getting that error log where the compiler cannot locate the servlet pakages. Hope you can assit further. Thanks. Jason Bainbridge wrote: On Apr 12, 2005 3:39 PM, S M wrote: sorry for the confusion, but i have set CLASSPATH, i echoed on cmd as mentioned and yes it shows me the CLASSPATH as listed below .;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_ HOME%\lib\j2ee.jar; where ;C:\javacode had the source code. Have you explicityly set CATALINA_HOME as well? Does it have spaces in it? If so surround it with double quotes or move it to a path with no spaces. I don't think having servlet.jar and j2ee.jar in the same classpath is a good idea either. Regards, -- Jason Bainbridge http://kde.org - [EMAIL PROTECTED] Personal Site - http://jasonbainbridge.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now Classification: UNCLASSIFIED Caveats: NONE - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now Classification: UNCLASSIFIED Caveats: NONE - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now Classification: UNCLASSIFIED Caveats: NONE
RE: port number (UNCLASSIFIED)
Classification: UNCLASSIFIED Caveats: NONE I personally don't think it is a good idea, even if it could be done. Try changing the port for tomcat and do some testing on your side, to check if they seem to be operating correctly. Fadi -Original Message- From: t.n.a. [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 10:55 AM To: Tomcat Users List Subject: port number Hi everyone, I host applications on a machine where both apache and tomcat are running. I access apache at port 80 and tomcat at 8080. Is it possible (using the tomcat apache connection, or some other way) to access both at port 80? I ask because of firewall issues: port 80 seems to be the Holy Grail of accessibility: everything else depends on the local firewall configuration. Tomislav - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Classification: UNCLASSIFIED Caveats: NONE - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: class path (UNCLASSIFIED)
Classification: UNCLASSIFIED Caveats: NONE I am pretty sure you need to SPECIFY servlet.jar, not just the directory where it resides Fadi -Original Message- From: S M [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 11:01 AM To: Tomcat Users List Subject: RE: class path (UNCLASSIFIED) tried that too... but it can't identify the path. C:\javacodejavac -classpath C:\Program Files\Apache Group\Tomcat 4.1\common\lib HellWorld.java The system cannot find the file specified. anyways.. now will reinstall as suggested 'without' spaces and will let you know.. thanks so far Samara, Fadi N Mr ACSIM/ASPEX [EMAIL PROTECTED] wrote: Classification: UNCLASSIFIED Caveats: NONE Try compiling the class by including the path for servlet.jar in your javac command, if you haven't done that yet. -Original Message- From: S M [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 10:33 AM To: Tomcat Users List Subject: RE: class path (UNCLASSIFIED) I compiling it from the command prompt. The sourse code is in c:\javacode so i on cmd... i change directory to c:\javacodejavac HelloWorld.java Samara, Fadi N Mr ACSIM/ASPEX wrote: Classification: UNCLASSIFIED Caveats: NONE I am sorry, but how are you compiling your class ? Are you using any IDE (i.e Eclipse, Jdeveloper) ? -Original Message- From: S M [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 10:07 AM To: Tomcat Users List Subject: RE: class path (UNCLASSIFIED) The same as before. C:\javacodejavac HelloWorld.java HelloWorld.java:2: package javax.servlet does not exist import javax.servlet.*; ^ HelloWorld.java:3: package javax.servlet.http does not exist import javax.servlet.http.*; ^ HelloWorld.java:5: cannot resolve symbol symbol : class HttpServlet location: class HelloWorld public class HelloWorld extends HttpServlet { ^ HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletRequest location: class HelloWorld public void service(HttpServletRequest request, HttpServletResponse response) th rows ServletException, IOException { ^ HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletResponse location: class HelloWorld public void service(HttpServletRequest request, HttpServletResponse response) th rows ServletException, IOException { ^ HelloWorld.java:7: cannot resolve symbol symbol : class ServletException location: class HelloWorld public void service(HttpServletRequest request, HttpServletResponse response) th rows ServletException, IOException { ^ 6 errors - Samara, Fadi N Mr ACSIM/ASPEX wrote: Classification: UNCLASSIFIED Caveats: NONE What errors are you getting again ? -Original Message- From: S M [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 9:47 AM To: Tomcat Users List; Jason Bainbridge Subject: Re: class path Hi These are the env. variables that I have set explicitly for tomcat 4.1 installation lJAVA_HOME = C:\java\bin lCATALINA_HOME = C:\Program Files\Apache Group\Tomcat 4.1 CLASSPATH= .;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_ HOME%\lib\j2ee.jar; I have the path =C:\java\bin; when i installed J2sdk1.4.2_06 These being the variables I am still getting that error log where the compiler cannot locate the servlet pakages. Hope you can assit further. Thanks. Jason Bainbridge wrote: On Apr 12, 2005 3:39 PM, S M wrote: sorry for the confusion, but i have set CLASSPATH, i echoed on cmd as mentioned and yes it shows me the CLASSPATH as listed below .;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_ HOME%\lib\j2ee.jar; where ;C:\javacode had the source code. Have you explicityly set CATALINA_HOME as well? Does it have spaces in it? If so surround it with double quotes or move it to a path with no spaces. I don't think having servlet.jar and j2ee.jar in the same classpath is a good idea either. Regards, -- Jason Bainbridge http://kde.org - [EMAIL PROTECTED] Personal Site - http://jasonbainbridge.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now Classification: UNCLASSIFIED Caveats: NONE - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now Classification: UNCLASSIFIED Caveats: NONE - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now Classification: UNCLASSIFIED Caveats: NONE - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now Classification: UNCLASSIFIED Caveats: NONE
RE: class path (UNCLASSIFIED)
Classification: UNCLASSIFIED Caveats: NONE Jay is correct, they should never be included as part of the specified path Fadi -Original Message- From: Jay Burgess [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 11:40 AM To: tomcat-user@jakarta.apache.org Subject: RE: class path (UNCLASSIFIED) Yes, doing a javac -h to receive help says -classpath path. But the angle brackets from path are not meant to be included. Jay Vertical Technology Group http://www.vtgroup.com/ -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 10:32 AM To: Tomcat Users List Subject: RE: class path (UNCLASSIFIED) From: S M [mailto:[EMAIL PROTECTED] Subject: RE: class path (UNCLASSIFIED) Now compiling c:/javacodejavac -classpathc:\tomcat\common\lib\servlet.jar HelloWorld.java it said - Access Denied Where are these angle brackets coming from? They should not be present. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - 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] Classification: UNCLASSIFIED Caveats: NONE
RE: class path (UNCLASSIFIED)
Classification: UNCLASSIFIED Caveats: NONE It compiled successfully and no .class was generated ? This is weird. Maybe it is something with where you're writing to. If it compiled then javac's job is done. Is it a standalone server/PC or networked ? Do you have limited permissions ? Fadi -Original Message- From: S M [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 11:44 AM To: Tomcat Users List Subject: RE: class path (UNCLASSIFIED) tried that... now no errors anyway but there is no class file too??? Caldarale, Charles R [EMAIL PROTECTED] wrote: From: S M [mailto:[EMAIL PROTECTED] Subject: RE: class path (UNCLASSIFIED) Now compiling c:/javacodejavac -classpath HelloWorld.java it said - Access Denied Where are these angle brackets coming from? They should not be present. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now Classification: UNCLASSIFIED Caveats: NONE
RE: How to Deploy Replacement War (UNCLASSIFIED)
Classification: UNCLASSIFIED Caveats: NONE I am having a similar problem. When I first started looking into tomcat, I got the sample.war from their website, put it In the webapps folder, started tomcat, it unpacked it, deployed, all was fine. I deleted the sample folder that was created and I also deleted the sample.war file. Now I am getting involved with JDO, and I just wanted to look at some files in the sample directory, so I placed the sample.war in the webapps directory, started tomcat, it never unpacked it. Any input ? Fadi -Original Message- From: Scott Purcell [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 11:46 AM To: tomcat-user@jakarta.apache.org Subject: How to Deploy Replacement War Hello, I deployed a war file for a new project a couple of weeks back. The war extracted, and the manager saw it, and all is good. But now I need to replace that webapp, with a new war file. Now the other day, I went to the manager, undeployed the webapp, turned off Tomcat and deleted the webapp folder. Then I put the war file under webapps and restarted the server. But things got screwey and I had to repeat this a couple of times, and also turn Tomcat off in order to remove the libs. Anyway, what is the proper protocol on how to properly replace a webapp with a new war. Thanks, Scott K Purcell - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Classification: UNCLASSIFIED Caveats: NONE
RE: class path (UNCLASSIFIED)
Classification: UNCLASSIFIED Caveats: NONE Try to reboot your machine, then compile again and see what happens. Fadi -Original Message- From: S M [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 11:57 AM To: Tomcat Users List Subject: RE: class path (UNCLASSIFIED) it is netwroked... thgs are behaving perfectly ok if i compile an ordinary class i.e without a servlet then why should it matter otherwise... if i compiled it successfully there should be a class file. Now I am doubting the message: Windows gave a error msg saying that 'javac.exe' faced an error, close. and since then, I am getting no errors when compling the servlet, also no class file? Samara, Fadi N Mr ACSIM/ASPEX [EMAIL PROTECTED] wrote: Classification: UNCLASSIFIED Caveats: NONE It compiled successfully and no .class was generated ? This is weird. Maybe it is something with where you're writing to. If it compiled then javac's job is done. Is it a standalone server/PC or networked ? Do you have limited permissions ? Fadi -Original Message- From: S M [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 11:44 AM To: Tomcat Users List Subject: RE: class path (UNCLASSIFIED) tried that... now no errors anyway but there is no class file too??? Caldarale, Charles R wrote: From: S M [mailto:[EMAIL PROTECTED] Subject: RE: class path (UNCLASSIFIED) Now compiling c:/javacodejavac -classpath HelloWorld.java it said - Access Denied Where are these angle brackets coming from? They should not be present. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now Classification: UNCLASSIFIED Caveats: NONE - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now Classification: UNCLASSIFIED Caveats: NONE
RE: class path (UNCLASSIFIED)
Classification: UNCLASSIFIED Caveats: NONE You will need to have servlet-api.jar in your class path. -Original Message- From: S M [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 12, 2005 4:03 PM To: tomcat-user@jakarta.apache.org Subject: class path Hi all, I am a first time user of Tomcat. I am able to see the Tomcat default page on http://localhost:8080/index.jsp Now, I want to compile HelloWorld.java using JDK 1.4, the program does not compile and fails with the following log --- C:\javacodejavac HelloWorld.java HelloWorld.java:2: package javax.servlet does not exist import javax.servlet.*; ^ HelloWorld.java:3: package javax.servlet.http does not exist import javax.servlet.http.*; ^ HelloWorld.java:5: cannot resolve symbol symbol : class HttpServlet location: class HelloWorld public class HelloWorld extends HttpServlet { ^ HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletRequest location: class HelloWorld public void service(HttpServletRequest request, HttpServletResponse response) th rows ServletException, IOException { ^ HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletResponse location: class HelloWorld public void service(HttpServletRequest request, HttpServletResponse response) th rows ServletException, IOException { ^ HelloWorld.java:7: cannot resolve symbol symbol : class ServletException location: class HelloWorld public void service(HttpServletRequest request, HttpServletResponse response) th rows ServletException, IOException { ^ 6 errors --- as it is not able to locate the servlet pakages. I have set the class_path as .;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_HOME%\lib\j2ee.jar; where ;C:\javacode had the source code. Please help to get this compiled. Thanks in advance S. - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now Classification: UNCLASSIFIED Caveats: NONE - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Garbage Collection (UNCLASSIFIED)
Classification: UNCLASSIFIED Caveats: NONE Pete is right. You can always REQUEST that the GC runs, but it is never guaranteed to run. Fadi -Original Message- From: Durfee, Bernard [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 12, 2005 4:06 PM To: Tomcat Users List Subject: RE: Garbage Collection Right, my question was whether or not Tomcat would call System.gc() to 'suggest' to the JVM that garbage collection take place. Tomcat itself is the best authority as to how busy it is. Since Tomcat has been around for a long time I figured that this might have been implemented at some point. Bernard Durfee -Original Message- From: Pete Guyatt [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 12, 2005 3:33 PM To: Tomcat Users List Subject: RE: Garbage Collection Hi There, Tomcat does not control the garbage collection, it is up to the JVM to decide if and when a garbage collection is performed. The only way you can request a garbage collection is by using the System.gc() method, which the JVM can ignore. For more information on this Topic read the documentation for the JVM that you are using. Pete -Original Message- From: Durfee, Bernard [mailto:[EMAIL PROTECTED] Sent: 12 April 2005 20:12 To: Tomcat Users List Subject: Garbage Collection How is garbage collection controlled in Tomcat 5.5? I ran a bit of an experiment by profiling Tomcat 5.5.7 while running a web application. I ran a load test against the application that finished with the allocated object size just below the heap size. If it grew any more, garbage collection would run. So the load test was done and with Tomcat idle, the garbage collector never ran. It would seem like a good time to run the garbage collector. As is stands now the next person to hit the application will push the heap size over the limit and they will have to wait for garbage collection. Seems like Tomcat should either attempt to trigger the garbage collector when idle. Bernard Durfee - 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] Classification: UNCLASSIFIED Caveats: NONE - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: class path (UNCLASSIFIED)
Classification: UNCLASSIFIED Caveats: NONE That's fine. Make sure it is in your classpath. -Original Message- From: S M [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 12, 2005 4:08 PM To: Tomcat Users List Subject: RE: class path (UNCLASSIFIED) I am using Tomcat 4.1 and that only has servlet.jar Samara, Fadi N Mr ACSIM/ASPEX [EMAIL PROTECTED] wrote:Classification: UNCLASSIFIED Caveats: NONE You will need to have servlet-api.jar in your class path. -Original Message- From: S M [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 12, 2005 4:03 PM To: tomcat-user@jakarta.apache.org Subject: class path Hi all, I am a first time user of Tomcat. I am able to see the Tomcat default page on http://localhost:8080/index.jsp Now, I want to compile HelloWorld.java using JDK 1.4, the program does not compile and fails with the following log --- C:\javacodejavac HelloWorld.java HelloWorld.java:2: package javax.servlet does not exist import javax.servlet.*; ^ HelloWorld.java:3: package javax.servlet.http does not exist import javax.servlet.http.*; ^ HelloWorld.java:5: cannot resolve symbol symbol : class HttpServlet location: class HelloWorld public class HelloWorld extends HttpServlet { ^ HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletRequest location: class HelloWorld public void service(HttpServletRequest request, HttpServletResponse response) th rows ServletException, IOException { ^ HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletResponse location: class HelloWorld public void service(HttpServletRequest request, HttpServletResponse response) th rows ServletException, IOException { ^ HelloWorld.java:7: cannot resolve symbol symbol : class ServletException location: class HelloWorld public void service(HttpServletRequest request, HttpServletResponse response) th rows ServletException, IOException { ^ 6 errors --- as it is not able to locate the servlet pakages. I have set the class_path as .;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_HOME%\lib\j2ee.jar; where ;C:\javacode had the source code. Please help to get this compiled. Thanks in advance S. - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now Classification: UNCLASSIFIED Caveats: NONE - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now Classification: UNCLASSIFIED Caveats: NONE - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: class path (UNCLASSIFIED)
Classification: UNCLASSIFIED Caveats: NONE What platform are you running under ? Make sure your environment variable CLASSPATH points to whatever you supplied below. Not class_path if you are under WINXP or WIN2K . -Original Message- From: S M [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 12, 2005 4:12 PM To: Tomcat Users List Subject: RE: class path (UNCLASSIFIED) yes it is .;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_ HOME%\lib\j2ee.jar; where ;C:\javacode had the source code. Samara, Fadi N Mr ACSIM/ASPEX [EMAIL PROTECTED] wrote: Classification: UNCLASSIFIED Caveats: NONE You will need to have servlet-api.jar in your class path. -Original Message- From: S M [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 12, 2005 4:03 PM To: tomcat-user@jakarta.apache.org Subject: class path Hi all, I am a first time user of Tomcat. I am able to see the Tomcat default page on http://localhost:8080/index.jsp Now, I want to compile HelloWorld.java using JDK 1.4, the program does not compile and fails with the following log --- C:\javacodejavac HelloWorld.java HelloWorld.java:2: package javax.servlet does not exist import javax.servlet.*; ^ HelloWorld.java:3: package javax.servlet.http does not exist import javax.servlet.http.*; ^ HelloWorld.java:5: cannot resolve symbol symbol : class HttpServlet location: class HelloWorld public class HelloWorld extends HttpServlet { ^ HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletRequest location: class HelloWorld public void service(HttpServletRequest request, HttpServletResponse response) th rows ServletException, IOException { ^ HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletResponse location: class HelloWorld public void service(HttpServletRequest request, HttpServletResponse response) th rows ServletException, IOException { ^ HelloWorld.java:7: cannot resolve symbol symbol : class ServletException location: class HelloWorld public void service(HttpServletRequest request, HttpServletResponse response) th rows ServletException, IOException { ^ 6 errors --- as it is not able to locate the servlet pakages. I have set the class_path as .;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_ HOME%\lib\j2ee.jar; where ;C:\javacode had the source code. Please help to get this compiled. Thanks in advance S. - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now Classification: UNCLASSIFIED Caveats: NONE - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now Classification: UNCLASSIFIED Caveats: NONE