Re: Mac os x and class files
Are you using JDK1.3.1 or 1.4.1 on your OS X box? You know the default configuration for OS X is to use 1.3.1, and you should be doing so for production anyway. In any case, I use Tomcat 4.1.12 (not the LE version) on OS X 10.2.4 all the time. (And have on 10.2.3, 10.2.2, 10.2.1, 10.1.x...) and it worked consistently very well. Classloading always worked fine under all the conditions you specified. I haven't upgraded o 4.1.18 but I don't expect there are any new issues there. (Did you mean 8 or 18?) In any case, Tomcat runs great on OS X! -Ian On Friday, February 21, 2003, at 05:35 PM, Warrren Burholt wrote: Hello Tomcat Users, On os x 10.2.3 I installed jakarta-tomcat-4.1.8-LE-jdk14 in usr/local I cannot get Tomcat to load my classes. Besides putting them in webapps/ROOT/WEB-INF/classes, I have tried common/classes and shared/classes. I have reverted back to using jakarta-tomcat-4.0.3 And there I have only been able to access class files from jakarta-tomcat-4.0.3/classes and not from WEB-INF/classes I have searched on this problem and have followed the solutions, but nothing has worked. I suspect I am overlooking something basic. And I wonder if my problem is specific to Tomcat on a Mac? I have no problems with classes on my NT environment at work. Thanks for your help, Warren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mac os x and class files
The 1.4.x JDK isn't production-ready for OS X yet. There are developer preview versions, but they're far from reliable or complete at this time. -Jake Ian McFarland wrote: > Are you using JDK1.3.1 or 1.4.1 on your OS X box? You know the default > configuration for OS X is to use 1.3.1, and you should be doing so for > production anyway. > > In any case, I use Tomcat 4.1.12 (not the LE version) on OS X 10.2.4 > all the time. (And have on 10.2.3, 10.2.2, 10.2.1, 10.1.x...) and it > worked consistently very well. Classloading always worked fine under > all the conditions you specified. I haven't upgraded o 4.1.18 but I > don't expect there are any new issues there. (Did you mean 8 or 18?) > > In any case, Tomcat runs great on OS X! > -Ian > > On Friday, February 21, 2003, at 05:35 PM, Warrren Burholt wrote: > >> Hello Tomcat Users, >> >> On os x 10.2.3 I installed jakarta-tomcat-4.1.8-LE-jdk14 in usr/local >> I cannot get Tomcat to load my classes. Besides putting them in >> webapps/ROOT/WEB-INF/classes, I have tried common/classes and >> shared/classes. >> >> I have reverted back to using jakarta-tomcat-4.0.3 And there I have >> only been able to access class files from jakarta-tomcat-4.0.3/classes >> and not from WEB-INF/classes >> >> I have searched on this problem and have followed the solutions, but >> nothing has worked. I suspect I am overlooking something basic. And I >> wonder if my problem is specific to Tomcat on a Mac? I have no >> problems with classes on my NT environment at work. >> >> Thanks for your help, Warren >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mac os x and class files
I'm using JDK 1.4. I'll go back to 1.3 although my 4.0.3 has the exact same problem with finding classes whether I'm using 1.3 or 1.4After I have 1.3 running, if the problem persists in 4.1.18 (and not the 1.4 version!), at least I will know that the preview version is not the cause. And I did mean 4.1.18, although I see I have it named in usr/local as jakarta-tomcat-4.1.8-LE-jdk14 I'm really glad to hear that Tomcat works great on os x -- actually that has been my experience with jakarta-tomcat-4.0.3 except for the class mystery. Thank you for your help, Jake and Ian. From: Jake Robb <[EMAIL PROTECTED]> Date: Fri Feb 21, 2003 9:17:35 PM America/Montreal To: Tomcat Users List <[EMAIL PROTECTED]> Subject: Re: Mac os x and class files Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> The 1.4.x JDK isn't production-ready for OS X yet. There are developer preview versions, but they're far from reliable or complete at this time. -Jake Ian McFarland wrote: Are you using JDK1.3.1 or 1.4.1 on your OS X box? You know the default configuration for OS X is to use 1.3.1, and you should be doing so for production anyway. In any case, I use Tomcat 4.1.12 (not the LE version) on OS X 10.2.4 all the time. (And have on 10.2.3, 10.2.2, 10.2.1, 10.1.x...) and it worked consistently very well. Classloading always worked fine under all the conditions you specified. I haven't upgraded o 4.1.18 but I don't expect there are any new issues there. (Did you mean 8 or 18?) In any case, Tomcat runs great on OS X! -Ian On Friday, February 21, 2003, at 05:35 PM, Warrren Burholt wrote: Hello Tomcat Users, On os x 10.2.3 I installed jakarta-tomcat-4.1.8-LE-jdk14 in usr/local I cannot get Tomcat to load my classes. Besides putting them in webapps/ROOT/WEB-INF/classes, I have tried common/classes and shared/classes. I have reverted back to using jakarta-tomcat-4.0.3 And there I have only been able to access class files from jakarta-tomcat-4.0.3/classes and not from WEB-INF/classes I have searched on this problem and have followed the solutions, but nothing has worked. I suspect I am overlooking something basic. And I wonder if my problem is specific to Tomcat on a Mac? I have no problems with classes on my NT environment at work. Thanks for your help, Warren - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mac os x and class files
Hi, I would like to know your Mac OS X configuration. I have Tomcat 4.1.18 running standalone and in conjunction with JBoss 3.0.6 with Apples 1.4.n DP10 and OS X 10.2.4. With no problem what so ever. This all works with 1.3.1 also with no problem. In addition I have mod_jk2 installed and running Apache 2.0.44 with no problem. By the way I do not use the light version, I have also replace the LE version in JBoss to the full version. For your infor JBoss with Jetty works correctly. Regards, Tony On Saturday, Feb 22, 2003, at 04:44 Europe/Berlin, Warrren Burholt wrote: I'm using JDK 1.4. I'll go back to 1.3 although my 4.0.3 has the exact same problem with finding classes whether I'm using 1.3 or 1.4 After I have 1.3 running, if the problem persists in 4.1.18 (and not the 1.4 version!), at least I will know that the preview version is not the cause. And I did mean 4.1.18, although I see I have it named in usr/local as jakarta-tomcat-4.1.8-LE-jdk14 I'm really glad to hear that Tomcat works great on os x -- actually that has been my experience with jakarta-tomcat-4.0.3 except for the class mystery. Thank you for your help, Jake and Ian. From: Jake Robb <[EMAIL PROTECTED]> Date: Fri Feb 21, 2003 9:17:35 PM America/Montreal To: Tomcat Users List <[EMAIL PROTECTED]> Subject: Re: Mac os x and class files Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> The 1.4.x JDK isn't production-ready for OS X yet. There are developer preview versions, but they're far from reliable or complete at this time. -Jake Ian McFarland wrote: Are you using JDK1.3.1 or 1.4.1 on your OS X box? You know the default configuration for OS X is to use 1.3.1, and you should be doing so for production anyway. In any case, I use Tomcat 4.1.12 (not the LE version) on OS X 10.2.4 all the time. (And have on 10.2.3, 10.2.2, 10.2.1, 10.1.x...) and it worked consistently very well. Classloading always worked fine under all the conditions you specified. I haven't upgraded o 4.1.18 but I don't expect there are any new issues there. (Did you mean 8 or 18?) In any case, Tomcat runs great on OS X! -Ian On Friday, February 21, 2003, at 05:35 PM, Warrren Burholt wrote: Hello Tomcat Users, On os x 10.2.3 I installed jakarta-tomcat-4.1.8-LE-jdk14 in usr/local I cannot get Tomcat to load my classes. Besides putting them in webapps/ROOT/WEB-INF/classes, I have tried common/classes and shared/classes. I have reverted back to using jakarta-tomcat-4.0.3 And there I have only been able to access class files from jakarta-tomcat-4.0.3/classes and not from WEB-INF/classes I have searched on this problem and have followed the solutions, but nothing has worked. I suspect I am overlooking something basic. And I wonder if my problem is specific to Tomcat on a Mac? I have no problems with classes on my NT environment at work. Thanks for your help, Warren - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mac os x and class files
Here is the version of my java 1.4.1 DP10. java -version java version "1.4.1" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-24) Java HotSpot(TM) Client VM (build 1.4.1_01-12, mixed mode) Since Tony states that he is using 1.4.1 and 4.1.18, I installed 4.1.18. Running Tomcat standalone on 10.2.3 I have the same situation as before. My class files are not being found. I've put them everywhere I could think to test. /usr/local/jakarta-tomcat-4.1.18/webapps/ROOT/529_jsp_021103/WEB-INF/ classes /usr/local/jakarta-tomcat-4.1.18/webapps/ROOT/WEB-INF/classes /usr/local/jakarta-tomcat-4.1.18/common/classes /usr/local/jakarta-tomcat-4.1.18/shared/classes /usr/local/jakarta-tomcat-4.1.18/classes Any additional suggestions for testing would be greatly appreciated. Warren From: Anthony Marlowe <[EMAIL PROTECTED]> Date: Sat Feb 22, 2003 6:39:20 AM America/Montreal To: "Tomcat Users List" <[EMAIL PROTECTED]> Subject: Re: Mac os x and class files Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> Hi, I would like to know your Mac OS X configuration. I have Tomcat 4.1.18 running standalone and in conjunction with JBoss 3.0.6 with Apples 1.4.n DP10 and OS X 10.2.4. With no problem what so ever. This all works with 1.3.1 also with no problem. In addition I have mod_jk2 installed and running Apache 2.0.44 with no problem. By the way I do not use the light version, I have also replace the LE version in JBoss to the full version. For your infor JBoss with Jetty works correctly. Regards, Tony On Saturday, Feb 22, 2003, at 04:44 Europe/Berlin, Warrren Burholt wrote: I'm using JDK 1.4. I'll go back to 1.3 although my 4.0.3 has the exact same problem with finding classes whether I'm using 1.3 or 1.4 After I have 1.3 running, if the problem persists in 4.1.18 (and not the 1.4 version!), at least I will know that the preview version is not the cause. And I did mean 4.1.18, although I see I have it named in usr/local as jakarta-tomcat-4.1.8-LE-jdk14 I'm really glad to hear that Tomcat works great on os x -- actually that has been my experience with jakarta-tomcat-4.0.3 except for the class mystery. Thank you for your help, Jake and Ian. From: Jake Robb <[EMAIL PROTECTED]> Date: Fri Feb 21, 2003 9:17:35 PM America/Montreal To: Tomcat Users List <[EMAIL PROTECTED]> Subject: Re: Mac os x and class files Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> The 1.4.x JDK isn't production-ready for OS X yet. There are developer preview versions, but they're far from reliable or complete at this time. -Jake Ian McFarland wrote: Are you using JDK1.3.1 or 1.4.1 on your OS X box? You know the default configuration for OS X is to use 1.3.1, and you should be doing so for production anyway. In any case, I use Tomcat 4.1.12 (not the LE version) on OS X 10.2.4 all the time. (And have on 10.2.3, 10.2.2, 10.2.1, 10.1.x...) and it worked consistently very well. Classloading always worked fine under all the conditions you specified. I haven't upgraded o 4.1.18 but I don't expect there are any new issues there. (Did you mean 8 or 18?) In any case, Tomcat runs great on OS X! -Ian On Friday, February 21, 2003, at 05:35 PM, Warrren Burholt wrote: Hello Tomcat Users, On os x 10.2.3 I installed jakarta-tomcat-4.1.8-LE-jdk14 in usr/local I cannot get Tomcat to load my classes. Besides putting them in webapps/ROOT/WEB-INF/classes, I have tried common/classes and shared/classes. I have reverted back to using jakarta-tomcat-4.0.3 And there I have only been able to access class files from jakarta-tomcat-4.0.3/classes and not from WEB-INF/classes I have searched on this problem and have followed the solutions, but nothing has worked. I suspect I am overlooking something basic. And I wonder if my problem is specific to Tomcat on a Mac? I have no problems with classes on my NT environment at work. Thanks for your help, Warren --- -- 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mac os x and class files
Hi Warren, What are values for JAVA_HOME, CATALINA_HOME, CATALINA_BASE, and your CLASSPATH? Regards, Tony On Saturday, Feb 22, 2003, at 17:40 Europe/Berlin, Warrren Burholt wrote: Here is the version of my java 1.4.1 DP10. java -version java version "1.4.1" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-24) Java HotSpot(TM) Client VM (build 1.4.1_01-12, mixed mode) Since Tony states that he is using 1.4.1 and 4.1.18, I installed 4.1.18. Running Tomcat standalone on 10.2.3 I have the same situation as before. My class files are not being found. I've put them everywhere I could think to test. /usr/local/jakarta-tomcat-4.1.18/webapps/ROOT/529_jsp_021103/WEB-INF/ classes /usr/local/jakarta-tomcat-4.1.18/webapps/ROOT/WEB-INF/classes /usr/local/jakarta-tomcat-4.1.18/common/classes /usr/local/jakarta-tomcat-4.1.18/shared/classes /usr/local/jakarta-tomcat-4.1.18/classes Any additional suggestions for testing would be greatly appreciated. Warren From: Anthony Marlowe <[EMAIL PROTECTED]> Date: Sat Feb 22, 2003 6:39:20 AM America/Montreal To: "Tomcat Users List" <[EMAIL PROTECTED]> Subject: Re: Mac os x and class files Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> Hi, I would like to know your Mac OS X configuration. I have Tomcat 4.1.18 running standalone and in conjunction with JBoss 3.0.6 with Apples 1.4.n DP10 and OS X 10.2.4. With no problem what so ever. This all works with 1.3.1 also with no problem. In addition I have mod_jk2 installed and running Apache 2.0.44 with no problem. By the way I do not use the light version, I have also replace the LE version in JBoss to the full version. For your infor JBoss with Jetty works correctly. Regards, Tony On Saturday, Feb 22, 2003, at 04:44 Europe/Berlin, Warrren Burholt wrote: I'm using JDK 1.4. I'll go back to 1.3 although my 4.0.3 has the exact same problem with finding classes whether I'm using 1.3 or 1.4 After I have 1.3 running, if the problem persists in 4.1.18 (and not the 1.4 version!), at least I will know that the preview version is not the cause. And I did mean 4.1.18, although I see I have it named in usr/local as jakarta-tomcat-4.1.8-LE-jdk14 I'm really glad to hear that Tomcat works great on os x -- actually that has been my experience with jakarta-tomcat-4.0.3 except for the class mystery. Thank you for your help, Jake and Ian. From: Jake Robb <[EMAIL PROTECTED]> Date: Fri Feb 21, 2003 9:17:35 PM America/Montreal To: Tomcat Users List <[EMAIL PROTECTED]> Subject: Re: Mac os x and class files Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> The 1.4.x JDK isn't production-ready for OS X yet. There are developer preview versions, but they're far from reliable or complete at this time. -Jake Ian McFarland wrote: Are you using JDK1.3.1 or 1.4.1 on your OS X box? You know the default configuration for OS X is to use 1.3.1, and you should be doing so for production anyway. In any case, I use Tomcat 4.1.12 (not the LE version) on OS X 10.2.4 all the time. (And have on 10.2.3, 10.2.2, 10.2.1, 10.1.x...) and it worked consistently very well. Classloading always worked fine under all the conditions you specified. I haven't upgraded o 4.1.18 but I don't expect there are any new issues there. (Did you mean 8 or 18?) In any case, Tomcat runs great on OS X! -Ian On Friday, February 21, 2003, at 05:35 PM, Warrren Burholt wrote: Hello Tomcat Users, On os x 10.2.3 I installed jakarta-tomcat-4.1.8-LE-jdk14 in usr/local I cannot get Tomcat to load my classes. Besides putting them in webapps/ROOT/WEB-INF/classes, I have tried common/classes and shared/classes. I have reverted back to using jakarta-tomcat-4.0.3 And there I have only been able to access class files from jakarta-tomcat-4.0.3/classes and not from WEB-INF/classes I have searched on this problem and have followed the solutions, but nothing has worked. I suspect I am overlooking something basic. And I wonder if my problem is specific to Tomcat on a Mac? I have no problems with classes on my NT environment at work. Thanks for your help, Warren -- --- 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mac os x and class files
Hello Tony, Thank you for your interest in my problem. Here is what I see when I start Tomcat. Using CATALINA_BASE: /usr/local/jakarta-tomcat-4.1.18 Using CATALINA_HOME: /usr/local/jakarta-tomcat-4.1.18 Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-4.1.18/temp Using JAVA_HOME: /usr I am under the impression that Tomcat follows a specific hierarchy when searching for class files and consequently it is not necessary to set the CLASSPATH. However I set it as follows to see if it would help Tomcat find my classes. No. CLASSPATH=/usr/local/jakarta-tomcat-4.1.18/webapps/ROOT/529_jsp_021103/ WEB-INF/classes:/usr/local/jakarta-tomcat-4.1.18/webapps/ROOT/WEB-INF/ classes:. Tomcat does find the java. classes. The following is in my jsp file: <%@ page import="Plans021103"%> <%@ page import="SidebarTr"%> <%@ page import="java.util.HashMap" %> <%@ page import="java.io.*" %> <%@ page import="java.util.regex.*" %> Only Plans021103 and SidebarTr are not found. Here is the beginning of the specific errors I see. org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 12 in the jsp file: /529_jsp_021103/529Wrapper.jsp Generated servlet error: [javac] Compiling 1 source file /usr/local/jakarta-tomcat-4.1.18/work/Standalone/localhost/_/ 529_jsp_021103/_529Wrapper_jsp.java:7: '.' expected import Plans021103; (the caret is under the semi-colon) ^ /usr/local/jakarta-tomcat-4.1.18/work/Standalone/localhost/_/ 529_jsp_021103/_529Wrapper_jsp.java:8: '.' expected import SidebarTr; (the caret is under the semi-colon) ^ /usr/local/jakarta-tomcat-4.1.18/work/Standalone/localhost/_/ 529_jsp_021103/_529Wrapper_jsp.java:60: cannot resolve symbol symbol : class Plans021103 location: class org.apache.jsp._529Wrapper_jsp Plans021103 plans = new Plans021103(); (the caret is under the first uppercase P) I trust that there will be something in the above that jumps out at you. Warren Hi Warren, What are values for JAVA_HOME, CATALINA_HOME, CATALINA_BASE, and your CLASSPATH? Regards, Tony On Saturday, Feb 22, 2003, at 17:40 Europe/Berlin, Warrren Burholt wrote: Here is the version of my java 1.4.1 DP10. java -version java version "1.4.1" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-24) Java HotSpot(TM) Client VM (build 1.4.1_01-12, mixed mode) Since Tony states that he is using 1.4.1 and 4.1.18, I installed 4.1.18. Running Tomcat standalone on 10.2.3 I have the same situation as before. My class files are not being found. I've put them everywhere I could think to test. /usr/local/jakarta-tomcat-4.1.18/webapps/ROOT/529_jsp_021103/WEB-INF/ classes /usr/local/jakarta-tomcat-4.1.18/webapps/ROOT/WEB-INF/classes /usr/local/jakarta-tomcat-4.1.18/common/classes /usr/local/jakarta-tomcat-4.1.18/shared/classes /usr/local/jakarta-tomcat-4.1.18/classes Any additional suggestions for testing would be greatly appreciated. Warren From: Anthony Marlowe <[EMAIL PROTECTED]> Date: Sat Feb 22, 2003 6:39:20 AM America/Montreal To: "Tomcat Users List" <[EMAIL PROTECTED]> Subject: Re: Mac os x and class files Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> Hi, I would like to know your Mac OS X configuration. I have Tomcat 4.1.18 running standalone and in conjunction with JBoss 3.0.6 with Apples 1.4.n DP10 and OS X 10.2.4. With no problem what so ever. This all works with 1.3.1 also with no problem. In addition I have mod_jk2 installed and running Apache 2.0.44 with no problem. By the way I do not use the light version, I have also replace the LE version in JBoss to the full version. For your infor JBoss with Jetty works correctly. Regards, Tony On Saturday, Feb 22, 2003, at 04:44 Europe/Berlin, Warrren Burholt wrote: I'm using JDK 1.4. I'll go back to 1.3 although my 4.0.3 has the exact same problem with finding classes whether I'm using 1.3 or 1.4After I have 1.3 running, if the problem persists in 4.1.18 (and not the 1.4 version!), at least I will know that the preview version is not the cause. And I did mean 4.1.18, although I see I have it named in usr/local as jakarta-tomcat-4.1.8-LE-jdk14 I'm really glad to hear that Tomcat works great on os x -- actually that has been my experience with jakarta-tomcat-4.0.3 except for the class mystery. Thank you for your help, Jake and Ian. From: Jake Robb <[EMAIL PROTECTED]> Date: Fri Feb 21, 2003 9:17:35 PM America/Montreal To: Tomcat Users List <[EMAIL PROTECTED]> Subject: Re: Mac os x and class files Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> The 1.4.x JDK isn't production-ready for OS X yet. There are developer preview versions, but they're far from reliable or complete at this time.
Re: Mac os x and class files
Hi Warren, classes can go into two places in a webapp, let's say I have a myapp as an example myapp |WEB-INF |-classes |-lib You can put all your classes (if they are not in jar in classes, follow whatever package structure you need) in the classes directory. also : you can put all your classes in the lib directory if they are in a jar file. Tomcat should be able to find your classes now. Warrren Burholt wrote: Hello Tony, Thank you for your interest in my problem. Here is what I see when I start Tomcat. Using CATALINA_BASE: /usr/local/jakarta-tomcat-4.1.18 Using CATALINA_HOME: /usr/local/jakarta-tomcat-4.1.18 Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-4.1.18/temp Using JAVA_HOME: /usr I am under the impression that Tomcat follows a specific hierarchy when searching for class files and consequently it is not necessary to set the CLASSPATH. However I set it as follows to see if it would help Tomcat find my classes. No. CLASSPATH=/usr/local/jakarta-tomcat-4.1.18/webapps/ROOT/529_jsp_021103/ WEB-INF/classes:/usr/local/jakarta-tomcat-4.1.18/webapps/ROOT/WEB-INF/ classes:. Tomcat does find the java. classes. The following is in my jsp file: <%@ page import="Plans021103"%> <%@ page import="SidebarTr"%> <%@ page import="java.util.HashMap" %> <%@ page import="java.io.*" %> <%@ page import="java.util.regex.*" %> Only Plans021103 and SidebarTr are not found. Here is the beginning of the specific errors I see. org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 12 in the jsp file: /529_jsp_021103/529Wrapper.jsp Generated servlet error: [javac] Compiling 1 source file /usr/local/jakarta-tomcat-4.1.18/work/Standalone/localhost/_/ 529_jsp_021103/_529Wrapper_jsp.java:7: '.' expected import Plans021103; (the caret is under the semi-colon) ^ /usr/local/jakarta-tomcat-4.1.18/work/Standalone/localhost/_/ 529_jsp_021103/_529Wrapper_jsp.java:8: '.' expected import SidebarTr; (the caret is under the semi-colon) ^ /usr/local/jakarta-tomcat-4.1.18/work/Standalone/localhost/_/ 529_jsp_021103/_529Wrapper_jsp.java:60: cannot resolve symbol symbol : class Plans021103 location: class org.apache.jsp._529Wrapper_jsp Plans021103 plans = new Plans021103(); (the caret is under the first uppercase P) I trust that there will be something in the above that jumps out at you. Warren Hi Warren, What are values for JAVA_HOME, CATALINA_HOME, CATALINA_BASE, and your CLASSPATH? Regards, Tony On Saturday, Feb 22, 2003, at 17:40 Europe/Berlin, Warrren Burholt wrote: Here is the version of my java 1.4.1 DP10. java -version java version "1.4.1" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-24) Java HotSpot(TM) Client VM (build 1.4.1_01-12, mixed mode) Since Tony states that he is using 1.4.1 and 4.1.18, I installed 4.1.18. Running Tomcat standalone on 10.2.3 I have the same situation as before. My class files are not being found. I've put them everywhere I could think to test. /usr/local/jakarta-tomcat-4.1.18/webapps/ROOT/529_jsp_021103/WEB-INF/ classes /usr/local/jakarta-tomcat-4.1.18/webapps/ROOT/WEB-INF/classes /usr/local/jakarta-tomcat-4.1.18/common/classes /usr/local/jakarta-tomcat-4.1.18/shared/classes /usr/local/jakarta-tomcat-4.1.18/classes Any additional suggestions for testing would be greatly appreciated. Warren From: Anthony Marlowe <[EMAIL PROTECTED]> Date: Sat Feb 22, 2003 6:39:20 AM America/Montreal To: "Tomcat Users List" <[EMAIL PROTECTED]> Subject: Re: Mac os x and class files Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> Hi, I would like to know your Mac OS X configuration. I have Tomcat 4.1.18 running standalone and in conjunction with JBoss 3.0.6 with Apples 1.4.n DP10 and OS X 10.2.4. With no problem what so ever. This all works with 1.3.1 also with no problem. In addition I have mod_jk2 installed and running Apache 2.0.44 with no problem. By the way I do not use the light version, I have also replace the LE version in JBoss to the full version. For your infor JBoss with Jetty works correctly. Regards, Tony On Saturday, Feb 22, 2003, at 04:44 Europe/Berlin, Warrren Burholt wrote: I'm using JDK 1.4. I'll go back to 1.3 although my 4.0.3 has the exact same problem with finding classes whether I'm using 1.3 or 1.4After I have 1.3 running, if the problem persists in 4.1.18 (and not the 1.4 version!), at least I will know that the preview version is not the cause. And I did mean 4.1.18, although I see I have it named in usr/local as jakarta-tomcat-4.1.8-LE-jdk14 I'm really glad to hear that Tomcat works great on os x -- actually that has been my experience w
Re: Mac os x and class files
Thanks Peng, I have been doing exactly that and more, and that is the problem, it should work, but doesn't. If you get a chance, please read through the entire thread to see if you can find anything that I might be doing wrong. Warren On Monday, February 24, 2003, at 03:07 AM, Peng Tuck Kwok wrote: Hi Warren, classes can go into two places in a webapp, let's say I have a myapp as an example myapp |WEB-INF |-classes |-lib You can put all your classes (if they are not in jar in classes, follow whatever package structure you need) in the classes directory. also : you can put all your classes in the lib directory if they are in a jar file. Tomcat should be able to find your classes now. Warrren Burholt wrote: Hello Tony, Thank you for your interest in my problem. Here is what I see when I start Tomcat. Using CATALINA_BASE: /usr/local/jakarta-tomcat-4.1.18 Using CATALINA_HOME: /usr/local/jakarta-tomcat-4.1.18 Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-4.1.18/temp Using JAVA_HOME: /usr I am under the impression that Tomcat follows a specific hierarchy when searching for class files and consequently it is not necessary to set the CLASSPATH. However I set it as follows to see if it would help Tomcat find my classes. No. CLASSPATH=/usr/local/jakarta-tomcat-4.1.18/webapps/ROOT/ 529_jsp_021103/ WEB-INF/classes:/usr/local/jakarta-tomcat-4.1.18/webapps/ROOT/WEB- INF/ classes:. Tomcat does find the java. classes. The following is in my jsp file: <%@ page import="Plans021103"%> <%@ page import="SidebarTr"%> <%@ page import="java.util.HashMap" %> <%@ page import="java.io.*" %> <%@ page import="java.util.regex.*" %> Only Plans021103 and SidebarTr are not found. Here is the beginning of the specific errors I see. org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 12 in the jsp file: /529_jsp_021103/529Wrapper.jsp Generated servlet error: [javac] Compiling 1 source file /usr/local/jakarta-tomcat-4.1.18/work/Standalone/localhost/_/ 529_jsp_021103/_529Wrapper_jsp.java:7: '.' expected import Plans021103; (the caret is under the semi-colon) ^ /usr/local/jakarta-tomcat-4.1.18/work/Standalone/localhost/_/ 529_jsp_021103/_529Wrapper_jsp.java:8: '.' expected import SidebarTr; (the caret is under the semi-colon) ^ /usr/local/jakarta-tomcat-4.1.18/work/Standalone/localhost/_/ 529_jsp_021103/_529Wrapper_jsp.java:60: cannot resolve symbol symbol : class Plans021103 location: class org.apache.jsp._529Wrapper_jsp Plans021103 plans = new Plans021103(); (the caret is under the first uppercase P) I trust that there will be something in the above that jumps out at you. Warren Hi Warren, What are values for JAVA_HOME, CATALINA_HOME, CATALINA_BASE, and your CLASSPATH? Regards, Tony On Saturday, Feb 22, 2003, at 17:40 Europe/Berlin, Warrren Burholt wrote: Here is the version of my java 1.4.1 DP10. java -version java version "1.4.1" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-24) Java HotSpot(TM) Client VM (build 1.4.1_01-12, mixed mode) Since Tony states that he is using 1.4.1 and 4.1.18, I installed 4.1.18. Running Tomcat standalone on 10.2.3 I have the same situation as before. My class files are not being found. I've put them everywhere I could think to test. /usr/local/jakarta-tomcat-4.1.18/webapps/ROOT/529_jsp_021103/WEB- INF/ classes /usr/local/jakarta-tomcat-4.1.18/webapps/ROOT/WEB-INF/classes /usr/local/jakarta-tomcat-4.1.18/common/classes /usr/local/jakarta-tomcat-4.1.18/shared/classes /usr/local/jakarta-tomcat-4.1.18/classes Any additional suggestions for testing would be greatly appreciated. Warren From: Anthony Marlowe <[EMAIL PROTECTED]> Date: Sat Feb 22, 2003 6:39:20 AM America/Montreal To: "Tomcat Users List" <[EMAIL PROTECTED]> Subject: Re: Mac os x and class files Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> Hi, I would like to know your Mac OS X configuration. I have Tomcat 4.1.18 running standalone and in conjunction with JBoss 3.0.6 with Apples 1.4.n DP10 and OS X 10.2.4. With no problem what so ever. This all works with 1.3.1 also with no problem. In addition I have mod_jk2 installed and running Apache 2.0.44 with no problem. By the way I do not use the light version, I have also replace the LE version in JBoss to the full version. For your infor JBoss with Jetty works correctly. Regards, Tony On Saturday, Feb 22, 2003, at 04:44 Europe/Berlin, Warrren Burholt wrote: I'm using JDK 1.4. I'll go back to 1.3 although my 4.0.3 has the exact same problem with finding classes whether I'm using 1.3 or 1.4After I have 1.3 running, if t
Re: Mac os x and class files
This is a long shot; shouldn't your classes be in a package ? for examples your import statement : <%@ page import="Plans021103"%> try putting it into package like org.mypackage . Putting your jars or classes under /{webapp name}/WEB-INF/lib or /{webapp name}/WEB-INF/classes should work . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]