Re: The right path; in more way than one.
I know that Tomcat's docs *say* this and that the JSP servlet specs call for this but it has not been my experience! As I have *twice* pointed out here (to no ones acknowledgement), I have an application that runs fine under Tomcat 4.0.? but not under 4.1.12. It fails on objects in xerces.jar. xerces.jar implements SAX1 and I have always included it in my WEB-INF/lib directory thouggh it was in common/lib of Tomcat 4.0. I use Xerces/SAX1 (Xerces 1.4.2) with xalan.jar (Xalan 1.2.2). Tomcat 4.1.12 used SAX2 from xmlParserAPIs.jar in common/endorsed. I am getting failures from Xalan 1 because (evidently) Tomcat is sending objects from here vs. the older Xerces in my WEB-INF/lib directory. Yes, yes, I know that this needs to be updated. However, the Xalan API is radically different. For now, conversion is impossible due to short resources and no few customer complexities. On Tue, 2002-10-01 at 02:20, Andreas Probst wrote: Hi Ed, I'm not sure, what your question is. Let me try to answer like this: Tomcat will look for class files and jars in the various classes and libs directories. Read pathto/tomcat-doc/class- loader-howto.html to know exactly. You can have your application's directory anywhere, if you configure a context in server.xml. If you put it under webapps you don't have to configure a context. For deploying your app it's probably the best to use Ant. Read the app developer's guide (pathto/tomcat-doc/appdev/index.html) to get to know best practices of the development process. In case Tomcat complains about JAVA_HOME: In autoexec.bat it might be better to set the DOS 8.3 pathname. Go to e: and type dir to get to know the 8.3 name of jsdk1.4.0. (Something with ~) Hope this helps. Andreas Hello and Help I need to have Tomcat working on my machine but I can't getting get the right path in my browser. So here Goes My System is Windows 98 Tomcat version is 4.0.4 My Java editor is JCreator 2.5 jdk is 1.4 The install directory is D:\ApacheTomcat4\ My system directory is D:\windows autoexec.bat settings set JAVA_HOME=E:\j2sdk1.4.0 set $CATALINA_HOME=D:\ApacheTomcat4 set CATALINA_HOME=D:\ApacheTomcat4 I set the port to 8088 so; http:// localhost:8088/index.html pulls up the splash screen, and in fact is where I got the addresses. Questions: Is there a command or port that will get Tomcat to tell me where it thinks the class files will be? What setting can I change to get Tomcat to look in a specific directory so I can tell the compiler to put the output the class file? Are there any advanced tip sheets for install and configuration? Please respond with all revenant information. The need is urgent. You have my personal Regards, Ed They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. ...Benjamin Franklin, Historical Review of Pennsylvania, 1759 -- 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] -- Thad Humphries ...no religious test shall ever be required Web Development Manager as a qualification to any office or public Phone: 540/675-3015, x225trust under the United States. -Article VI -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
The right path; in more way than one.
Hello and Help I need to have Tomcat working on my machine but I can't getting get the right path in my browser. So here Goes My System is Windows 98 Tomcat version is 4.0.4 My Java editor is JCreator 2.5 jdk is 1.4 The install directory is D:\ApacheTomcat4\ My system directory is D:\windows autoexec.bat settings set JAVA_HOME=E:\j2sdk1.4.0 set $CATALINA_HOME=D:\ApacheTomcat4 set CATALINA_HOME=D:\ApacheTomcat4 I set the port to 8088 so; http:// localhost:8088/index.html pulls up the splash screen, and in fact is where I got the addresses. Questions: Is there a command or port that will get Tomcat to tell me where it thinks the class files will be? What setting can I change to get Tomcat to look in a specific directory so I can tell the compiler to put the output the class file? Are there any advanced tip sheets for install and configuration? Please respond with all revenant information. The need is urgent. You have my personal Regards, Ed They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. ...Benjamin Franklin, Historical Review of Pennsylvania, 1759 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: The right path; in more way than one.
I wrote this as a personal response to someone who had problems with the class path as well on the mailing list. I hope it helps you as it helped him. Make sure to read all of it. Begin email. Thank you for your help. In my haste trying to install Tomcat on our server while my boss breathes down my neck, I never fully understood the purpose of WEB-INF (until now). Thank you again! SETH At 08:12 AM 9/19/2002 +0800, you wrote: Ok. I went through the examples. First, make sure that you have asked it to use the correct java bean. You can do this by including this statement : jsp:useBean id='clock' scope='page' class='dates.JspCalendar' type=dates.JspCalendar / You don't need to do a page import if you use the above. And that's how a java bean should be used. Ok, the structure of the examples webapp is like this right? /examples |--/WEB-INF | |-/classes | | |-/dates | | |/JspCalendar.* (This is the important one). | | /jsp | | /web.xml |-/servlets |-/jsp |-/images So if you wish to bring this to the another webapp, you need to make sure that the dates directory and the contents of it are under /[WhatEver]/WEB-INF/classes/. The reason why JspCalendar.* is under the directory dates, is because it is part of the package dates. You can see this in the source of the java class.The reason why this whole dates package has to go into classes is because they are not jar'ed up. If they were jar'ed up it would go into /[WhatEver]/WEB-INF/lib/*.jar, You don't have to do this, the seperate classes work just fine. If you are still running into trouble, let me know, I'll repack a webapp for you to use. Shouldn't be too hard to do. ok? Seth Brahler wrote: Hi, Thank you for answering my question, but I'm still a bit confused. I copied the class file from webapps\examples\WEB-INF and placed it in the folder I want to use it. The simple page looks like this: %@page import=JspCalendar% Day of month: is jsp:getProperty name=clock property=dayOfMonth/ and it breaks. Thank you. Sincerely, SETH At 07:55 AM 9/18/2002 +0800, Kwok Peng Tuck wrote: [EMAIL PROTECTED] You need to copy the class files to be able to use it. If it's a servlet then you should copy the definition in web.xml . Since it isn't just copy the class file from WEB-INF. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: The right path; in more way than one.
Hi Ed, I'm not sure, what your question is. Let me try to answer like this: Tomcat will look for class files and jars in the various classes and libs directories. Read pathto/tomcat-doc/class- loader-howto.html to know exactly. You can have your application's directory anywhere, if you configure a context in server.xml. If you put it under webapps you don't have to configure a context. For deploying your app it's probably the best to use Ant. Read the app developer's guide (pathto/tomcat-doc/appdev/index.html) to get to know best practices of the development process. In case Tomcat complains about JAVA_HOME: In autoexec.bat it might be better to set the DOS 8.3 pathname. Go to e: and type dir to get to know the 8.3 name of jsdk1.4.0. (Something with ~) Hope this helps. Andreas Hello and Help I need to have Tomcat working on my machine but I can't getting get the right path in my browser. So here Goes My System is Windows 98 Tomcat version is 4.0.4 My Java editor is JCreator 2.5 jdk is 1.4 The install directory is D:\ApacheTomcat4\ My system directory is D:\windows autoexec.bat settings set JAVA_HOME=E:\j2sdk1.4.0 set $CATALINA_HOME=D:\ApacheTomcat4 set CATALINA_HOME=D:\ApacheTomcat4 I set the port to 8088 so; http:// localhost:8088/index.html pulls up the splash screen, and in fact is where I got the addresses. Questions: Is there a command or port that will get Tomcat to tell me where it thinks the class files will be? What setting can I change to get Tomcat to look in a specific directory so I can tell the compiler to put the output the class file? Are there any advanced tip sheets for install and configuration? Please respond with all revenant information. The need is urgent. You have my personal Regards, Ed They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. ...Benjamin Franklin, Historical Review of Pennsylvania, 1759 -- 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]