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
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
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
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
RE: class path (UNCLASSIFIED)
I tried that too.. same problem... anyways.. apart from that going as the suggestion of without spaces directory path... here is the modified thgs CLASSPATH=.;c:\java;c:\tomcat\common\lib\servlet.jar CATALINAHOME=c:\tomcat JAVA_HOME and path remaing the same. Now compiling c:/javacodejavac -classpathc:\tomcat\common\lib\servlet.jar HelloWorld.java it said - Access Denied then compiling like c:/javacodejavac HelloWorld.java it gives same set of errors and then again compiling like c:/javacodejavac -classpathc:\tomcat\common\lib\servlet.jar HelloWorld.java Windows gave a error saying 'javac' encountered an error.. please close. and then closing and oping cmd again and then compiling like c:/javacodejavac HelloWorld.java I got no errors... but also.. no class file created. :( What do you have to say now? - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now
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
RE: class path (UNCLASSIFIED)
yes, i corrected that too... not I am not getting any errors... but still the class file is not created... what do i do??? Samara, Fadi N Mr ACSIM/ASPEX [EMAIL PROTECTED] wrote: 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 . But the angle brackets from 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 -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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Classification: UNCLASSIFIED Caveats: NONE - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now
RE: class path (UNCLASSIFIED)
see this... no errors... but no class file for the same C:\javacodejavac -classpath c:\tomcat\common\lib\servlet.jar HelloWorld.java C:\javacodejavac -classpath c:\tomcat\common\lib\servlet.jar HelloWorld.java C:\javacodejavac HelloWorld.java David B. Saul [EMAIL PROTECTED] wrote: Try typing/copying the following at the prompt in the directory where the source code is for HelloWorld.java: javac -classpath C:\Program Files\Apache Group\Tomcat 4.1\common\lib\servlet.jar HelloWorld.java if in fact this is where the servlet.jar file exists. -Original Message- From: BAO RuiXian [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 8:15 AM To: Tomcat Users List Subject: Re: class path (UNCLASSIFIED) Hello, S M wrote: tried that too... but it can't identify the path. C:\javacodejavac -classpath 4.1\common\lib HellWorld.java Try use quotes instead of '' and '' to quote the class path. Good luck. Bao 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 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e
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
RE: class path (UNCLASSIFIED)
Hi AllLet me make things clearer now, forget all the prior mails and listen I have two java files 'HelloWorld.java' and "Hello.java'I am attaching the code for the same. Now on compiling HelloWorld.java, I still getting errors no matter what way I compile, the log is attached also.On compiling Hello.java with the classpath, it compiles properly. However gives error when copiled without the classpath mentioned explicitly. I brought in confusion earlier saying that HelloWorld compiled and there was no class file, however when I had received the Windows error.. sayong 'javac.exe encountered error', what actually had happeded.. it deleted the contents of HelloWorld.java, keeping the file name intact. That is why when I compiled a blank file it compiled without errors and it illusioned as if the code was compiled and no class file was generated. To answer what c:/javacode is then that is the place where the source code as .java files reside. "Samara, Fadi N Mr ACSIM/ASPEX" [EMAIL PROTECTED] wrote: Classification: UNCLASSIFIED Caveats: NONETry 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 AMTo: Tomcat Users ListSubject: 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: UNCLASSIFIEDCaveats: NONEIt 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 AMTo: Tomcat Users ListSubject: 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 DeniedWhere are these angle brackets coming from? They should not be present.- ChuckTHIS 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 NowClassification: UNCLASSIFIEDCaveats: NONE-Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger NowClassification: UNCLASSIFIED Caveats: NONE Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: class path (UNCLASSIFIED)
thank you all ... i got it compiled. David B. Saul [EMAIL PROTECTED] wrote: BTW - adding the PWD to the classpath should have no effect on your issue! -Original Message- From: David B. Saul [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 2:31 PM To: 'Tomcat Users List' Subject: RE: class path (UNCLASSIFIED) Quite frankly - this has nothing to do with Tomcat. However, try this one more time - with or without the quotes as your path does not require quotes, only if the folder/directory names have spaces, and then search your system for HelloWorld.class if you do not see it in this directory. You also mentioned you were using a batch file, or script file, to compile. Do this from a command line from the directory you where the source code is. Start from here and the rest of this is basic java compilation - not Tomcat :) Additionally make a slight change to the command and specify the current directory as part of the classpath. I am guessing this is the HellowWorld.java servlet example included with Tomcat. javac -classpath .;c:\tomcat\common\lib\servlet.jar HelloWorld.java -Original Message- From: S M [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 8:52 AM To: Tomcat Users List Subject: RE: class path (UNCLASSIFIED) see this... no errors... but no class file for the same C:\javacodejavac -classpath c:\tomcat\common\lib\servlet.jar HelloWorld.java C:\javacodejavac -classpath c:\tomcat\common\lib\servlet.jar HelloWorld.java C:\javacodejavac HelloWorld.java David B. Saul wrote: Try typing/copying the following at the prompt in the directory where the source code is for HelloWorld.java: javac -classpath C:\Program Files\Apache Group\Tomcat 4.1\common\lib\servlet.jar HelloWorld.java if in fact this is where the servlet.jar file exists. -Original Message- From: BAO RuiXian [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 8:15 AM To: Tomcat Users List Subject: Re: class path (UNCLASSIFIED) Hello, S M wrote: tried that too... but it can't identify the path. C:\javacodejavac -classpath 4.1\common\lib HellWorld.java Try use quotes instead of '' and '' to quote the class path. Good luck. Bao 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 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
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
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
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
RE: class path (UNCLASSIFIED)
I on WINXP and i have the below pointing to CLASSPATH and not CLASS_PATH ?? Samara, Fadi N Mr ACSIM/ASPEX [EMAIL PROTECTED] wrote: 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 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 - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now
Re: class path
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 Steve Ochani [EMAIL PROTECTED] wrote:Hi, Did you set class_path or CLASSPATH ? try running a prompt and typing echo %CLASSPATH% and see if you get actual directory listings of everything you mentioned inlcuding the servlet.jar -Steve O. On 12 Apr 2005 at 21:03, S M wrote: 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. «¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤» Education is what remains after one has forgotten everything he learned in school. -Albert Einstein Steve O. http://www.steveo.us New pics: B17G and B24 http://www.steveo.us/B17-B24/ B17G WWII Bomber Yankee Lady Flight I took http://www.steveo.us/b17ride SUNY NCC MATH/COMPUTER http://www.matcmp.ncc.edu SUNY NCC Physical Sciences Dept. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now
Tomcat config
Hi all, Can some one please tell me how to make my JSP's use JavaMail to send emails from my domain, say www.abc.com ? please mention step by step process which files to edit and where to edit ? I have a private JVM account therefore I am viewing complete Tomcat directory. Thanks in advance, Humayun. Syed Muhammad Humayun Web Developer Al Ghanem Net LLC - Do you Yahoo!? Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
Re: SV: Tomcat config
Thanks Soren, The example is very helpful, but what if my smtp server asks me to pass my username and password also ? thanks again, Humayun. Søren_Blidorf [EMAIL PROTECTED] wrote: I don't know if this is what you mean, but this jsp page sends mails with javaMail. BR Soren javax.mail.internet.*, java.util.*, java.lang.String % Properties props = new Properties(); props.put(mail.smtp.host, YOUR SMTP); Session s = Session.getInstance(props); MimeMessage message = new MimeMessage(s); String mail; mail = request.getParameter(mail); InternetAddress from = new InternetAddress(mail); message.setFrom(from); InternetAddress to = new InternetAddress([EMAIL PROTECTED] ); message.addRecipient(Message.RecipientType.TO, to); message.setSubject(request.getParameter(subject)); message.setText(Mail from +request.getParameter(name)+ +request.getParameter(text)); Transport transport = s.getTransport(smtp); transport.connect(); transport.send(message); transport.close(); % -Oprindelig meddelelse- Fra: S M Humayun [mailto:[EMAIL PROTECTED] Sendt: 17. januar 2004 13:34 Til: [EMAIL PROTECTED] Emne: Tomcat config Hi all, Can some one please tell me how to make my JSP's use JavaMail to send emails from my domain, say www.abc.com ? please mention step by step process which files to edit and where to edit ? I have a private JVM account therefore I am viewing complete Tomcat directory. Thanks in advance, Humayun. Syed Muhammad Humayun Web Developer Al Ghanem Net LLC - Do you Yahoo!? Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Syed Muhammad Humayun Web Developer Al Ghanem Net LLC - Do you Yahoo!? Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
JAAS and Catalina
Hi, Does anyone remember How the JAASRealm is configured? I did a search on the list archive and I gather its been some time since there has been talk of JAAS. I have modified server.xml to Realm className=org.apache.catalina.realm.JAASRealm debug=99 loginContext=MasterJMSLogin/ . I have also modified the catalina.sh (under start and -security) to use the following VM parameters; -Djava.security.auth.policy=$CATALINA_BASE/conf/jaas.policy -Djava.security.auth.login.config=$CATALINA_BASE/conf/jaas.conf. When i run the http://localhost:8080/examples/jsp/security/protected/login.jsp , the page works as expected in that authentication fails but with the following error in the log file : javax.security.auth.login.LoginException: No LoginModule configured for Tomcat The config I pass into the VM contains the following MasterJMSLogin{ nl.dnd.security.auth.MasterLoginModule required; }; I tried to change the loginContext to Tomcat (both in server.xml and in the jaas.conf but the problem persists. Any help would be deeply appreciated in elucidating the problem. regards Suhail -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
mod_webapp +ssl +apache 1.3.22
OS: RedHat 7.1 Apache: 1.3.22 Tomcat: 4.01 Have configured Apache to use mod_ssl and started with SSL with no problem... The problem is whenever I go to a jsp page from https I get source code. If I go to http the request is passed to tomcat. If I add a connecter to server.xml for ssl, I can go to https and get normal parsed output but only if I specify the port (i.e. 8443), and I cannot get anything on the non_secure protocol. Any assistance you can provide is appreciated. Jennifer C. Sears504.905.7410 [EMAIL PROTECTED] ICQ: 68015059 --- Intercosmos Media Group, Inc. --- www.intercosmos.comwww.directnic.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]