Class location?
I think I've seen this question on the list several times, with answers, but the answers aren't working for me. What am I doing wrong? I have a large set of Java classes. I jarred them up and put them in $CATALINA_HOME/shared/lib/myjar.jar, but Tomcat can't find them. Then I unjarred and put them in $CATALINA_HOME/shared/classes/. My classes are in multiple packages, and I have the directory structure such that the com directory is inside classes. Tomcat still can't find them. Specifically, all of my JSP pages are failing to compile on my import com.whatever.* lines with the message package does not exist. I have set full permissions (Unix 777) on all class files and directories. I'm using Tomcat 4.1.18. On a different server, I am using a Tomcat 4.0.3, and I keep my classes in /WEB-INF/classes/com/ That server works perfectly. I tried that too, and it still didn't work. Is there a line that needs to go in server.xml or somewhere else to set this up? Am I missing something? Thanks, Jake - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Class location?
Have you tried putting them under common/lib? --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Jake Robb [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 10:41 AM To: Tomcat Users List Subject: Class location? I think I've seen this question on the list several times, with answers, but the answers aren't working for me. What am I doing wrong? I have a large set of Java classes. I jarred them up and put them in $CATALINA_HOME/shared/lib/myjar.jar, but Tomcat can't find them. Then I unjarred and put them in $CATALINA_HOME/shared/classes/. My classes are in multiple packages, and I have the directory structure such that the com directory is inside classes. Tomcat still can't find them. Specifically, all of my JSP pages are failing to compile on my import com.whatever.* lines with the message package does not exist. I have set full permissions (Unix 777) on all class files and directories. I'm using Tomcat 4.1.18. On a different server, I am using a Tomcat 4.0.3, and I keep my classes in /WEB-INF/classes/com/ That server works perfectly. I tried that too, and it still didn't work. Is there a line that needs to go in server.xml or somewhere else to set this up? Am I missing something? Thanks, Jake - 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: Class location? - Solved
I have now. Thanks! -Jake - Original Message - From: Mike Jackson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, February 13, 2003 1:45 PM Subject: RE: Class location? Have you tried putting them under common/lib? --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Jake Robb [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 10:41 AM To: Tomcat Users List Subject: Class location? I think I've seen this question on the list several times, with answers, but the answers aren't working for me. What am I doing wrong? I have a large set of Java classes. I jarred them up and put them in $CATALINA_HOME/shared/lib/myjar.jar, but Tomcat can't find them. Then I unjarred and put them in $CATALINA_HOME/shared/classes/. My classes are in multiple packages, and I have the directory structure such that the com directory is inside classes. Tomcat still can't find them. Specifically, all of my JSP pages are failing to compile on my import com.whatever.* lines with the message package does not exist. I have set full permissions (Unix 777) on all class files and directories. I'm using Tomcat 4.1.18. On a different server, I am using a Tomcat 4.0.3, and I keep my classes in /WEB-INF/classes/com/ That server works perfectly. I tried that too, and it still didn't work. Is there a line that needs to go in server.xml or somewhere else to set this up? Am I missing something? Thanks, Jake - 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: Class location? - Solved
Good, although you probably still have a problem. Putting them under WEB-INF/lib or WEB-INF/classes should have worked. Those directories are for classes specific to the web application, and/or classes that you don't want to be common to the runtime environment for all webapps. However, I've seen this type of behavior on Unixware with version 3.3.x of tomcat. The oracle xdk xsql servlet classes just will not play nicely unless they are installed in the common library directory. Anywhere else and you get nothing but problems. This isn't the case on linux however, it works properly. Probably something to do with the implementation of the JVM or the OS, don't know, don't really care as I have a workaround. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Jake Robb [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 10:48 AM To: Tomcat Users List Subject: Re: Class location? - Solved I have now. Thanks! -Jake - Original Message - From: Mike Jackson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, February 13, 2003 1:45 PM Subject: RE: Class location? Have you tried putting them under common/lib? --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Jake Robb [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 10:41 AM To: Tomcat Users List Subject: Class location? I think I've seen this question on the list several times, with answers, but the answers aren't working for me. What am I doing wrong? I have a large set of Java classes. I jarred them up and put them in $CATALINA_HOME/shared/lib/myjar.jar, but Tomcat can't find them. Then I unjarred and put them in $CATALINA_HOME/shared/classes/. My classes are in multiple packages, and I have the directory structure such that the com directory is inside classes. Tomcat still can't find them. Specifically, all of my JSP pages are failing to compile on my import com.whatever.* lines with the message package does not exist. I have set full permissions (Unix 777) on all class files and directories. I'm using Tomcat 4.1.18. On a different server, I am using a Tomcat 4.0.3, and I keep my classes in /WEB-INF/classes/com/ That server works perfectly. I tried that too, and it still didn't work. Is there a line that needs to go in server.xml or somewhere else to set this up? Am I missing something? Thanks, Jake - 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: Class location? - Solved
Likely, but I need all of my classes to be globally accessible anyway. I'm using RedHat 8, Sun's 1.4.1_01 JDK, and Tomcat 4.1.18. I have a similar question now -- where do I put tag libraries? -Jake - Original Message - From: Mike Jackson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; Jake Robb [EMAIL PROTECTED] Sent: Thursday, February 13, 2003 1:52 PM Subject: RE: Class location? - Solved Good, although you probably still have a problem. Putting them under WEB-INF/lib or WEB-INF/classes should have worked. Those directories are for classes specific to the web application, and/or classes that you don't want to be common to the runtime environment for all webapps. However, I've seen this type of behavior on Unixware with version 3.3.x of tomcat. The oracle xdk xsql servlet classes just will not play nicely unless they are installed in the common library directory. Anywhere else and you get nothing but problems. This isn't the case on linux however, it works properly. Probably something to do with the implementation of the JVM or the OS, don't know, don't really care as I have a workaround. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Jake Robb [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 10:48 AM To: Tomcat Users List Subject: Re: Class location? - Solved I have now. Thanks! -Jake - Original Message - From: Mike Jackson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, February 13, 2003 1:45 PM Subject: RE: Class location? Have you tried putting them under common/lib? --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Jake Robb [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 10:41 AM To: Tomcat Users List Subject: Class location? I think I've seen this question on the list several times, with answers, but the answers aren't working for me. What am I doing wrong? I have a large set of Java classes. I jarred them up and put them in $CATALINA_HOME/shared/lib/myjar.jar, but Tomcat can't find them. Then I unjarred and put them in $CATALINA_HOME/shared/classes/. My classes are in multiple packages, and I have the directory structure such that the com directory is inside classes. Tomcat still can't find them. Specifically, all of my JSP pages are failing to compile on my import com.whatever.* lines with the message package does not exist. I have set full permissions (Unix 777) on all class files and directories. I'm using Tomcat 4.1.18. On a different server, I am using a Tomcat 4.0.3, and I keep my classes in /WEB-INF/classes/com/ That server works perfectly. I tried that too, and it still didn't work. Is there a line that needs to go in server.xml or somewhere else to set this up? Am I missing something? Thanks, Jake - 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: Class location? - Solved
Potentially the same place, but put the tld for the tags in the WEB-INF directory. Or you can put them in the WEB-INF/lib directory. Either way the tld should be in the WEB-INF. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Jake Robb [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 10:57 AM To: Tomcat Users List Subject: Re: Class location? - Solved Likely, but I need all of my classes to be globally accessible anyway. I'm using RedHat 8, Sun's 1.4.1_01 JDK, and Tomcat 4.1.18. I have a similar question now -- where do I put tag libraries? -Jake - Original Message - From: Mike Jackson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; Jake Robb [EMAIL PROTECTED] Sent: Thursday, February 13, 2003 1:52 PM Subject: RE: Class location? - Solved Good, although you probably still have a problem. Putting them under WEB-INF/lib or WEB-INF/classes should have worked. Those directories are for classes specific to the web application, and/or classes that you don't want to be common to the runtime environment for all webapps. However, I've seen this type of behavior on Unixware with version 3.3.x of tomcat. The oracle xdk xsql servlet classes just will not play nicely unless they are installed in the common library directory. Anywhere else and you get nothing but problems. This isn't the case on linux however, it works properly. Probably something to do with the implementation of the JVM or the OS, don't know, don't really care as I have a workaround. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Jake Robb [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 10:48 AM To: Tomcat Users List Subject: Re: Class location? - Solved I have now. Thanks! -Jake - Original Message - From: Mike Jackson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, February 13, 2003 1:45 PM Subject: RE: Class location? Have you tried putting them under common/lib? --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Jake Robb [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 10:41 AM To: Tomcat Users List Subject: Class location? I think I've seen this question on the list several times, with answers, but the answers aren't working for me. What am I doing wrong? I have a large set of Java classes. I jarred them up and put them in $CATALINA_HOME/shared/lib/myjar.jar, but Tomcat can't find them. Then I unjarred and put them in $CATALINA_HOME/shared/classes/. My classes are in multiple packages, and I have the directory structure such that the com directory is inside classes. Tomcat still can't find them. Specifically, all of my JSP pages are failing to compile on my import com.whatever.* lines with the message package does not exist. I have set full permissions (Unix 777) on all class files and directories. I'm using Tomcat 4.1.18. On a different server, I am using a Tomcat 4.0.3, and I keep my classes in /WEB-INF/classes/com/ That server works perfectly. I tried that too, and it still didn't work. Is there a line that needs to go in server.xml or somewhere else to set this up? Am I missing something? Thanks, Jake - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: override the class location of WEB-INF?
I belive soft links are disabled(soon to be optional) in 4.1.x. I fyou want class files in your own directory, you will need your own classloader. What's wrong with the WEB-INF/classes? -Original Message- From: Anand Sharma [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 2002 7:27 PM To: 'Tomcat Users List' Subject: RE: override the class location of WEB-INF? I am not sure if I understand the comment made below. Anyway, from what I understand, you cannot do this as you would be violating the J2EE spec which says that classes should be in WEBAPPS_ROOT/your-app-name/WEB-INF/classes or WEBAPPS_ROOT/your-app-name/WEB-INF/lib. If you want it under /usr/local/tomcat/webapps/myapp/MYCLASSES/, you can always play with soft links in Unix and shortcuts in Windows. Hope this helps. Anand --- Anand Sharma Global AS-IT Support team Cisco Systems 408.525.7080 http://asitzone.cisco.com When in doubt, follow your heart -Original Message- From: Dan Payne [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 2002 3:36 PM To: Tomcat Users List Subject: RE: override the class location of WEB-INF? I believe as long as your class begins with package com.companyname.util.Helper it does not matter where the file physically resides. -Dan -Original Message- From: Paul Tomsic [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 2002 5:20 PM To: [EMAIL PROTECTED] Subject: override the class location of WEB-INF? Is it possible to override the location of where the class files reside for Tomcat4.1.10 ? for instance, I'd like to (from a JSP page) call a useBean on com.companyname.util.Helper but I'd like Helper.class to reside in /usr/local/tomcat/webapps/myapp/MYCLASSES/com/companyname/util /Helper.cl ass is this possible? thanks, Paul __ Do you Yahoo!? New DSL Internet Access from SBC Yahoo! http://sbc.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
override the class location of WEB-INF?
Is it possible to override the location of where the class files reside for Tomcat4.1.10 ? for instance, I'd like to (from a JSP page) call a useBean on com.companyname.util.Helper but I'd like Helper.class to reside in /usr/local/tomcat/webapps/myapp/MYCLASSES/com/companyname/util/Helper.class is this possible? thanks, Paul __ Do you Yahoo!? New DSL Internet Access from SBC Yahoo! http://sbc.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: override the class location of WEB-INF?
I believe as long as your class begins with package com.companyname.util.Helper it does not matter where the file physically resides. -Dan -Original Message- From: Paul Tomsic [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 2002 5:20 PM To: [EMAIL PROTECTED] Subject: override the class location of WEB-INF? Is it possible to override the location of where the class files reside for Tomcat4.1.10 ? for instance, I'd like to (from a JSP page) call a useBean on com.companyname.util.Helper but I'd like Helper.class to reside in /usr/local/tomcat/webapps/myapp/MYCLASSES/com/companyname/util/Helper.class is this possible? thanks, Paul __ Do you Yahoo!? New DSL Internet Access from SBC Yahoo! http://sbc.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: override the class location of WEB-INF?
I am not sure if I understand the comment made below. Anyway, from what I understand, you cannot do this as you would be violating the J2EE spec which says that classes should be in WEBAPPS_ROOT/your-app-name/WEB-INF/classes or WEBAPPS_ROOT/your-app-name/WEB-INF/lib. If you want it under /usr/local/tomcat/webapps/myapp/MYCLASSES/, you can always play with soft links in Unix and shortcuts in Windows. Hope this helps. Anand --- Anand Sharma Global AS-IT Support team Cisco Systems 408.525.7080 http://asitzone.cisco.com When in doubt, follow your heart -Original Message- From: Dan Payne [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 2002 3:36 PM To: Tomcat Users List Subject: RE: override the class location of WEB-INF? I believe as long as your class begins with package com.companyname.util.Helper it does not matter where the file physically resides. -Dan -Original Message- From: Paul Tomsic [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 2002 5:20 PM To: [EMAIL PROTECTED] Subject: override the class location of WEB-INF? Is it possible to override the location of where the class files reside for Tomcat4.1.10 ? for instance, I'd like to (from a JSP page) call a useBean on com.companyname.util.Helper but I'd like Helper.class to reside in /usr/local/tomcat/webapps/myapp/MYCLASSES/com/companyname/util/Helper.cl ass is this possible? thanks, Paul __ Do you Yahoo!? New DSL Internet Access from SBC Yahoo! http://sbc.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
JDBC Class Location on Linux
Can anyone tell which directory I should place JDBC class files in on Linux. Specifically I am running SuSE Linux 7.2 and Oracle9i. Thanks
RE: JDBC Class Location on Linux
Rename classes12.zip to classes12.jar and place it in CATALINA_HOME/common/lib. -Original Message- From: Timlin, Bob [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 29, 2002 12:33 PM To: [EMAIL PROTECTED] Subject: JDBC Class Location on Linux Can anyone tell which directory I should place JDBC class files in on Linux. Specifically I am running SuSE Linux 7.2 and Oracle9i. Thanks -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: JDBC Class Location on Linux
Thanks for the info. Do I have to create the common/lib directory under CATALINA. My Tomcat doesn't have that directory. Thanks, Bob. -Original Message- From: Gapinski, Gary (GEL, MSX) [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 29, 2002 9:34 AM To: 'Tomcat Users List' Subject: RE: JDBC Class Location on Linux Rename classes12.zip to classes12.jar and place it in CATALINA_HOME/common/lib. -Original Message- From: Timlin, Bob [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 29, 2002 12:33 PM To: [EMAIL PROTECTED] Subject: JDBC Class Location on Linux Can anyone tell which directory I should place JDBC class files in on Linux. Specifically I am running SuSE Linux 7.2 and Oracle9i. Thanks -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: JDBC Class Location on Linux
Is this how I update my ODBC to 3.0 or is that in the JDK? - J a m e s B. S w a r t Agere Systems - Colorado Design Centers Everything IT Related. Period. VOICE: 720-494-2330 ¿ FAX: 720-494-2331 -Original Message- From: Gapinski, Gary (GEL, MSX) [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 29, 2002 10:34 AM To: 'Tomcat Users List' Subject: RE: JDBC Class Location on Linux Rename classes12.zip to classes12.jar and place it in CATALINA_HOME/common/lib. -Original Message- From: Timlin, Bob [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 29, 2002 12:33 PM To: [EMAIL PROTECTED] Subject: JDBC Class Location on Linux Can anyone tell which directory I should place JDBC class files in on Linux. Specifically I am running SuSE Linux 7.2 and Oracle9i. Thanks -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Class location
I have the following structure: /webapps/development/WEB-INF/classes I put together a web page that includes an applet, Search.class. Search.class makes use of Swing and some other graphics classes included in Fields.jar So I created the web page Search.html with HTMLConverter and placed it in development folder. Search.class is part of package Test. If in Search.html I declare: CODE=Test/Search CODEBASE=. ARCHIVE=Test/Fields.jar and I place Search.class and Fields.jar in /development/Test, everything is OK. It is my understanding from reading Tomcat docs that classes can be placed in /WEB-INF/classes/my/package/etc What do I declare as CODE, CODEBASE and ARCHIVE if I am to use this arrangement? Thank you all. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]