Re: NoClassDefFoundError
I am includeing the tools.jar. My classpath is /usr/tomcat/lib/ant.jar:/usr/tomcat/lib/jasper.jar: /usr/tomcat/lib/jaxp.jar:/usr/tomcat/lib/parser.jar: /usr/tomcat/lib/servlet.jar:/usr/tomcat/lib/webserver.jar: /usr/jdk1.3/lib/tools.jar:/usr/jdk1.3/lib/classes102.jar I added a -verbose to the JAVACMD in the tomcat.sh. It shows it loads all the above jar files and all of the runtime classes from /usr/jdk1.3/jre/lib/rt.jar Why is not loading the tools.jar? How can I force it to include it? Apparently it doesn't like to do it!!??? Has anyone had a similar problem? I even changed the CLASSPATH to CPATH in tomcat.sh and used the command java -cp $CPATH (rest of tomcat). Somehow java doesn't want to load the tools.jar and classes102.jar classes. Here is what I think: When we start java (options) org.apache.tomcat.startup.Tomcat tools.jar (even ant.jar) is not needed and is not loaded in the JVM. When we access a .jsp file, we need tools.jar, but JVM doesn't load try to load it. Does this make sense. Sorry for all the troubles. But, I have to get this working and I appreciate your patience and time. I am really interested to know if this works for anyone. I feel this is a bug in tomcat. I love to come to your web site and run a .jsp file :-) Thanks, Hossein Gustavo Munoz wrote: Just be sure about includying tools.jar in the classpath of tomcat. my two cents, gus. # -Original Message- # From: Hossein Tahani [mailto:[EMAIL PROTECTED]] # Sent: Martes, 03 de Abril de 2001 09:57 p.m. # To: [EMAIL PROTECTED] # Subject: Re: NoClassDefFoundError # # # # I get # JAVACMD is /usr/jdk1.3/bin/java # # Apparently, it doesn't find the # /usr/jdk1.3/lib/tools.jar that has the # sun.tools.javac.Main. But, tools.jar is in its # classpath. # # Thanks! # # Warren Crossing wrote: # # hey it sounds like your tomcat is using the jre not the jdk! check the # JAVA_HOME value tomcat startup up script is using by putting # an echo command # in the script.. # # -Original Message- # From: Hossein Tahani [mailto:[EMAIL PROTECTED]] # Sent: Wednesday, 4 April 2001 12:08 PM # To: tomcat users # Subject: NoClassDefFoundError # # Hi all, # I just joined this list. If my question has been # answered before I would appreciate a link to the # answer. # # I have installed jakarta-tomcat3.2.1 on red hat 7.0. I # have integrated with apache1.3.19 with mod_jserv. # # I have no problem with servlets, but when I access some # of the .jsp files I get the following error message: # Root cause: # # java.lang.NoClassDefFoundError: sun/tools/javac/Main # at # # org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompile # r.java:128) # at # org.apache.jasper.compiler.Compiler.compile(Compiler.java:285) # at # org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:478) # at # # org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) # at # org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:449) # ... # ... # ... # # Any idea is greatly appreciated. # # Hossein # # -- # Hossein Tahani, Ph.D.505-454-3301 # Highlands University # # -- # Hossein Tahani, Ph.D.505-454-3301 # Highlands University -- Hossein Tahani, Ph.D.505-454-3301 Highlands University
How to set extension mapping
Hi All, Here is my question. I want to map files with ".xyz" extension to be treated as a ".jsp" file. i.e. if any request comes with .xyz extension ( e.g. http://myserver/mydomain/mydirectory/myfile.xyz ) and if myfile.xyz contains jsp code. So, for the above request the myfile.xyz shud be compiled into servlet and then itshud send response as per the code written.. To achieve this type of extension mappping what steps i have to take in configuration of tomcat server. Hoping for quick reply Lomesh.
RE: How to set extension mapping
ok.. quickly.. add a servlet myRedirectServlet servlet servlet-namemyRedirectServlet/servlet-name servlet-classcom.nowhere.myRedirectServlet/servlet-class /servlet servlet-mapping url-pattern*.xyz/url-pattern servlet-namemyRedirectServlet/servlet-name /servlet-mapping the in the servlet ( pseudo code ) void service(ServletRequest req, ServletResponse res) { String jsp = this.turnXyzPath2JspPath ( req.getContextPath(), req.getServletPath() ) ; getServletContext().getRequestDispatcher( jsp ).forward( req,res ) ; } turnXyzPath2JspPath ( //remember to prepend the / unless you want to write a request interceptor -Original Message- From: Lomesh Contractor [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 4 April 2001 4:23 PM To: [EMAIL PROTECTED] Subject: How to set extension mapping Hi All, Here is my question. I want to map files with ".xyz" extension to be treated as a ".jsp" file. i.e. if any request comes with .xyz extension ( e.g. http://myserver/mydomain/mydirectory/myfile.xyz ) and if myfile.xyz contains jsp code. So, for the above request the myfile.xyz shud be compiled into servlet and then itshud send response as per the code written.. To achieve this type of extension mappping what steps i have to take in configuration of tomcat server. Hoping for quick reply Lomesh.
RE: NoClassDefFoundError
so java -classpath /usr/local/jdk1.3/lib/tools.jar sun/tools/javac/Main should return the usage options - Usage: javac options source files ... try add java -bootclasspath usr/jdk1.3/lib/tools.jar:/usr/jdk1.3/jre/lib/rt.jar classpaths rfukt@best. -Original Message- From: Hossein Tahani [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 4 April 2001 4:20 PM To: [EMAIL PROTECTED] Subject: Re: NoClassDefFoundError I am includeing the tools.jar. My classpath is /usr/tomcat/lib/ant.jar:/usr/tomcat/lib/jasper.jar: /usr/tomcat/lib/jaxp.jar:/usr/tomcat/lib/parser.jar: /usr/tomcat/lib/servlet.jar:/usr/tomcat/lib/webserver.jar: /usr/jdk1.3/lib/tools.jar:/usr/jdk1.3/lib/classes102.jar I added a -verbose to the JAVACMD in the tomcat.sh. It shows it loads all the above jar files and all of the runtime classes from /usr/jdk1.3/jre/lib/rt.jar Why is not loading the tools.jar? How can I force it to include it? Apparently it doesn't like to do it!!??? Has anyone had a similar problem? I even changed the CLASSPATH to CPATH in tomcat.sh and used the command java -cp $CPATH (rest of tomcat). Somehow java doesn't want to load the tools.jar and classes102.jar classes. Here is what I think: When we start java (options) org.apache.tomcat.startup.Tomcat tools.jar (even ant.jar) is not needed and is not loaded in the JVM. When we access a .jsp file, we need tools.jar, but JVM doesn't load try to load it. Does this make sense. Sorry for all the troubles. But, I have to get this working and I appreciate your patience and time. I am really interested to know if this works for anyone. I feel this is a bug in tomcat. I love to come to your web site and run a .jsp file :-) Thanks, Hossein Gustavo Munoz wrote: Just be sure about includying tools.jar in the classpath of tomcat. my two cents, gus. # -Original Message- # From: Hossein Tahani [mailto:[EMAIL PROTECTED]] # Sent: Martes, 03 de Abril de 2001 09:57 p.m. # To: [EMAIL PROTECTED] # Subject: Re: NoClassDefFoundError # # # # I get # JAVACMD is /usr/jdk1.3/bin/java # # Apparently, it doesn't find the # /usr/jdk1.3/lib/tools.jar that has the # sun.tools.javac.Main. But, tools.jar is in its # classpath. # # Thanks! # # Warren Crossing wrote: # # hey it sounds like your tomcat is using the jre not the jdk! check the # JAVA_HOME value tomcat startup up script is using by putting # an echo command # in the script.. # # -Original Message- # From: Hossein Tahani [mailto:[EMAIL PROTECTED]] # Sent: Wednesday, 4 April 2001 12:08 PM # To: tomcat users # Subject: NoClassDefFoundError # # Hi all, # I just joined this list. If my question has been # answered before I would appreciate a link to the # answer. # # I have installed jakarta-tomcat3.2.1 on red hat 7.0. I # have integrated with apache1.3.19 with mod_jserv. # # I have no problem with servlets, but when I access some # of the .jsp files I get the following error message: # Root cause: # # java.lang.NoClassDefFoundError: sun/tools/javac/Main # at # # org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompile # r.java:128) # at # org.apache.jasper.compiler.Compiler.compile(Compiler.java:285) # at # org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:478) # at # # org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) # at # org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:449) # ... # ... # ... # # Any idea is greatly appreciated. # # Hossein # # -- # Hossein Tahani, Ph.D.505-454-3301 # Highlands University # # -- # Hossein Tahani, Ph.D.505-454-3301 # Highlands University -- Hossein Tahani, Ph.D.505-454-3301 Highlands University
Don't finish loading
Sri, I am using IIS- 3.0 with tomcat 3.0 as out-of-process sevlet containers. When I am loading Jsp/Servlet it don't finishing loading pages. Kindly give me some suggestions. With regards, Sunny Joseph
RE: 2nd Post: Servlets and mod_jk problem -- thanks!
At 09:53 PM 4/3/2001, you wrote: One thing to note, Tomcat for NT is not picky about this, because on my NT deployment of Tomcat, I have the WEB-INF directory named "web-inf" and everything works fine. [ ... ] You must come from a Windows background :-) -- under UNIX, everything has always been case-sensitive. And on Windows, it generally isn't. Although I thought I saw some Tomcat-related documentation that indicated that Tomcat is, or is going to be, case-sensitive on all platforms. Maybe that's for 4.0. Didn't it change between 3.1 and 3.2? I seem to recall having fun with that one, especially on the URLs. Jim -- * Jim Cheesman * Trabajo: [EMAIL PROTECTED] - (34)(91) 724 9200 x 2360 Personal: [EMAIL PROTECTED] (34) 606 770 244 Practice safe eating -- always use condiments.
Question regarding autoFlush
Hi all, If the page-directive autoflush is set to "true" %@ page autoFlash="true" % and when the JSP uses a body-aware Tag class MyTag extends BodyTagSupport {...} the JSP-environment will generate a BodyContent ( which extends JspWriter) out = pageContext.pushBody(); This object does not inheritate the page-directive autoFlush. Is this conform to the JSP-specification or is this a bug ? Is there any way to programmatically set this attribute for all the sub-writers (for a specific writer ) ? Thanks in advance, fm
mod_webapp compilation
Anyone out there had any luck compiling the mod_webapp? Even after removing double new lines from the Makefiles, there is a whole heap of compilation error messages (mostly undeclared stuff)... And if mod_webapp is not ready, can mod_jk be used with Tomcat 4.0? Configuration: RedHat Linux 7.0 Tomcat 4.0 b2 (b3 source not published) Bojan
Re: How to get the parsed JSP string
if i understand correctly then one way you could accomplish that is simply by reading the output of the JSP (which you serve in the usual way) into a string using the java.net.URL class, something similar to the code below - this way any includes, interpolations, calculations that occur in the JSP will already have happened by the time it becomes an ordinary string... rhett public String url2String(String url_of_a_jsp) { String text = ""; String line; try { URL u = new URL(url_of_a_jsp); InputStream in = u.openStream(); in = new BufferedInputStream(in); BufferedReader br = new BufferedReader( new InputStreamReader(in) ); while ((line = br.readLine()) != null) { text += line + "\n"; } } catch (Exception e) { System.out.println(e); } return text; } --- On Tue, 3 Apr 2001, Eduard Witteveen wrote: Hello, I want to do some operations, after that the JSP page has been parsed. For this i need the get the output of the jsp page, which has been parsed, i want to use this output as input for something else. How can i archief this? * Is there a way to put more then one servlet after eachother? or * How can i get the output of the jsp parser, before it is send to the browser, and change this. greetings, -- Eduard Witteveen Systeemontwikkelaar NOS Internet Mediacentrum Kamer 203, tel. +31(0)35 6773059 Sed quis custodiet ipsos custodes? : The sixth Satire from Juvenal
Re: How to get around a tricky situation.
Hello You could also create a new "empty" context called /images with docbase properly set to the location of your images. This context will serve your images. Jacob Kjome a crit : the loading of images is a function of your browser after the page has been sent by the server to it. The only way I can think of doing this (barring some funky Java class like ReturnImagesFromContextInterceptor.class, which I'm not sure how you'd do?) is to prefix all your /images/ references with the name of the current context, so instead of /images/myimage.gif, you would do /myWebApp/images/myimage.gif If you didn't want to hardcode these to your context, you could put the context in dynamically based on a variable in your servlet or, before sending the stream back, look for any /images/ references and to a replace with the correct path. Not sure how to do that, offhand, but I'm quite sure it can be done. Jake Hi, I need some advice on how I might fix a problem with one of our web apps. We farmed out an app that works ok except that the web pages which are created by servlets are looking for images in the tomcat root images directory. This presents a problem in that if I create a war of our app I also have to distribute and copy the images over to the root images directory. Can I set up my web.xml file so that when a web page looks for an image in the /images directory it actually pulls them out of my myWebApp/images directory. What I am trying to achieve is one war file that I can use to distribute our app without having the customer copy images over to the root/images directory. Thanks for any help. Regards Alex Colic-0132 -- Cordialement, Stphane BAUDET _ GL Trade 48, rue Notre Dame des Victoires - 75002 Paris Tel : 01 53 40 43 12 (interne 1312) Fax : 01 53 40 01 40 Email : [EMAIL PROTECTED] _
how to install tomcat on freebsd
hi, I am newer of tomcat, who can tell me how to install tomcat on freebsd, so I can develop sevlet and jsp program, include all software need. thanks wanglijun
RE: Tomcat 4.0-beta-3 Released (SECURITY VULNERABILITY)
The source are still missing in : http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0-b3/src/ Regards. Tomcat 4.0-beta-3 is an update to the Tomcat 4.0-beta-2 distribution that was released on 30 March 2001. It fixes a further security vulnerability related to potentially exposing JSP source that was only partially corrected in beta 2. Anyone using versions of Tomcat 4.0 earlier than the beta 3 release (or the nightly build dated 20010403 or later) is strongly encouraged to immediately update to the beta 3 release. Craig McClanahan
how to install tomcat on freebsd
hi, I am newer of tomcat, who can tell me how to install tomcat on freebsd, so I can develop sevlet and jsp program, include all software need. thanks wanglijun
Re: Still Can't set-up Tomcat for ssl. Please help.
Hi, Thanks for the reply. I changed the port to 443 but there was no change. Am I correct in assuming that once I have https working I should be able to access the same page via: http:\\localhost\index.html and https:\\localhost\index.html or https:\\localhost:443\index.html Because I can see the first page but the second page gives me a 404 error this page can not be found. As for the firewall, I am testing this implementation on an intranet. At this point I should not have to worry about firewalls etc., right? Thanks for any help Date: Tue, 3 Apr 2001 16:18:52 +0100 (BST) To: Tomcat-User [EMAIL PROTECTED] From: Kevin Sangeelee [EMAIL PROTECTED] Subject: Re: Can't set-up Tomcat for ssl. Please help. Message-ID: [EMAIL PROTECTED] If you're running Tomcat standalone, try changing the port value to 443 rather than 8443 (and make sure any firewalls are configured to allow this protocol) (or of course append :8443 to your https request). Kevin
Support WML in Tomcat
Hi there, Is there anyone can help me this puzzle? I am trying to make tomcat to provide WML output. I add following into web.xml. " mime-mapping extension wml /extension mime-type text/vnd.wap.wml /mime-type /mime-mapping " But, my nokia toolkit still can not read it. It returns the error message "plain/text is not supported!". Thanks, Kai == ·s®öºô¡D§K¶O 50MB ¹q¤l«H½c http://www.sinamail.com ÅK¹D¤Ö¤k¦Ê¤À¦Ê¡A°e§A¨ì·ç¤h http://www.sina.com.tw/redirect/travel_welcome.html
AW: question about uploading files and multipart/form-data FORMS
Hi Betty, I am using the perfect class from O'Reilly (MultiPartReuqest) for uploading files. This classes works fine for me. I never had any problems with Tomcat and uploading any kind of file. OK, I haven't tested all types of files to be honest but so far everything is fine. Try this classes. WBR Andreas -Ursprüngliche Nachricht-Von: Betty Chang [mailto:[EMAIL PROTECTED]]Gesendet: Mittwoch, 4. April 2001 02:56An: [EMAIL PROTECTED]Betreff: question about uploading files and multipart/form-data FORMS Hi All -- With Tomcat, I have no problems submitting forms with ENCTYPE="multipart/form-data" and uploading files into my server. However, when I was using Apache/JServ, certain files will not upload because the code that reads the uploaded data dies on a read()call somewhere with an application null error. I cannot determine what causes the problem -- it's not the type of file, or anything, such certain files, and .doc files seem to be the most troublesome. Has anyone else seen this problem with apache/Jserv, but not with Tomcat? Thanks Betty Portal Wave, Inc.Catalyst for Collaborative Commercewww.portalwave.com
RE: Support WML in Tomcat
Put that in your card ?xml version="1.0"? !DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml" wml You will find a good document on : http://developer.java.sun.com/developer/technicalArticles/wireless/wap/index .html Francois -Original Message- From: kaiye [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 04, 2001 10:51 AM To: [EMAIL PROTECTED] Subject: Support WML in Tomcat Hi there, Is there anyone can help me this puzzle? I am trying to make tomcat to provide WML output. I add following into web.xml. " mime-mapping extension wml /extension mime-type text/vnd.wap.wml /mime-type /mime-mapping " But, my nokia toolkit still can not read it. It returns the error message "plain/text is not supported!". Thanks, Kai == ·s®öºô¡D§K¶O 50MB ¹q¤l«H½c http://www.sinamail.com ÅK¹D¤Ö¤k¦Ê¤À¦Ê¡A°e§A¨ì·ç¤h http://www.sina.com.tw/redirect/travel_welcome.html
Re: java.lang.UnsatisifedLinkError
thanks for the link, but i'd already seen that post and the problem is that i'm also working on the class which calls the JNI so moving it out of WEB-INF isn't really an option. If i figure something out i'll make speak up. -- -Marco Ring the bells that still can ring. Forget the perfect offering. There's a crack in everything. It's how the light gets in. -Isonard Cohen PGP signature
Tomcat3.2 on Win2000
Hello to all, I have a rather strange problem with Tomcatv3.2 on Windows2K. I have developed a JSP package that conducts tests on the company's intranet. I had initially developed it on Tomcat v3.0 and Win98. After completing it, I deployed it on the company server, the Windows 2000 machine and also upgraded the version of Tomcat to 3.2 Needless to say, there was the usual trouble with deprecated functions :) Anyway, the program works as follows - A person logs into the system after getting authenticated. He (or she, for that matter) chooses a subject and takes a test in it. After the test is over and the answers are evaluated, the person logs out of the system. The program works perfectly when I run it from the server itself. But if I were to run it from a client (a Win98 PC), the server freezes which results in restarting the server. I want to know why this problem happens. Has anybody faced this problem? Does anybody have the solution? Thanks and bye, Arun Jayaprakash. __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
Re: tomcat without apache logging security
On Tuesday 03 April 2001 10:47, [EMAIL PROTECTED] wrote: I would like to log all the queries to the database in logs/servlet.log. I put the verbosityLevel to DEBUG which didn't seem to have an effect on the logfile (it only logs the init calls). In server.xml, there are all these ContextInterceptors that I suspect to be helpful (?), but I have no idea how to use or modify them. If you have some explanation or suggestions or know some documentation "for dummies" I would be very grateful :-) What you need to do is use log statements in your Java code In your Java code, obtain the servlet context, and then write a log statement along the lines of: servletContext.log("Querying the database"); Any logging you do using the servlet API's logging facility will end up in Tomcat's servlet log. Check the Javadoc for the servlet API for more info. -- Ed Gomolka ([EMAIL PROTECTED])
JDBCReamls Still freeze after 24 hours wokrs
Hello, I upgrade my tomcat to 3.2.2 beta 6 (BTW how to check version when you did not downloaded it yourself ?) and the JDBCReamls still freeze after 24 hours. on redhat 6.2 jdk sun 1.3.0 256 mo Ram the package I download was at this url : http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.2-beta-2/bin/jakarta-tomcat-3.2.2b2.zip
RE: JDBCReamls Still freeze after 24 hours wokrs
Please some logs, config files..every bit of info you can send will be useful trying to find that.. attached files better.. Versions of JDBC drivers db too TIA Saludos , Ignacio J. Ortega -Mensaje original- De: Kaneda K [mailto:[EMAIL PROTECTED]] Enviado el: mircoles 4 de abril de 2001 13:02 Para: [EMAIL PROTECTED] Asunto: JDBCReamls Still freeze after 24 hours wokrs Hello, I upgrade my tomcat to 3.2.2 beta 6 (BTW how to check version when you did not downloaded it yourself ?) and the JDBCReamls still freeze after 24 hours. on redhat 6.2 jdk sun 1.3.0 256 mo Ram the package I download was at this url : http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.2 -beta-2/bin/jakarta-tomcat-3.2.2b2.zip
Re: How to get around a tricky situation.
On Tuesday 03 April 2001 09:23, Alex Colic wrote: Hi, I need some advice on how I might fix a problem with one of our web apps. We farmed out an app that works ok except that the web pages which are created by servlets are looking for images in the tomcat root images directory. This presents a problem in that if I create a war of our app I also have to distribute and copy the images over to the root images directory. Can I set up my web.xml file so that when a web page looks for an image in the /images directory it actually pulls them out of my myWebApp/images directory. You best bet is to change your source code to pick up the path dynamically. You can use something like the following to determine the image path relative to the base of your context: public void init(ServletConfig config) throws ServletException { super.init(config); servletContext = config.getServletContext(); String contextPath = servletContext.getRealPath("/"); String imagesDirectory = contextPath + "images"; } -- Ed Gomolka ([EMAIL PROTECTED])
Commercial support for Tomcat?
We're interested in getting a commercial support contract for Tomcat on Solaris. We want 24x7 technical support for a mission-critical system. Europe / UK presence preferred (but not necessarily required). If you know or have experience of any company offering this kind of support, please let me know. Response by direct email to [EMAIL PROTECTED] preferred. Thanks, Gavin. *** Important. This E-mail is intended for the above named person and may be confidential and/or legally privileged. If this has come to you in error you must take no action based on it, nor must you copy or show it to anyone; please inform the sender immediately. ***
RE: question about uploading files and multipart/form-data FORMS
Actually, this is a know problem with mod_jk using ajp13 - if it sees a particular byte string the process stops reading prematurely. I believe that this has been fixed for the upcoming 3.2.2 and 3.3 releases and you might want to try one of their betas to pickup this fix. Randy -Original Message- From: Andreas Mecky [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 04, 2001 5:18 AM To: [EMAIL PROTECTED] Subject: AW: question about uploading files and multipart/form-data FORMS Hi Betty, I am using the perfect class from O'Reilly (MultiPartReuqest) for uploading files. This classes works fine for me. I never had any problems with Tomcat and uploading any kind of file. OK, I haven't tested all types of files to be honest but so far everything is fine. Try this classes. WBR Andreas -Ursprngliche Nachricht- Von: Betty Chang [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 4. April 2001 02:56 An: [EMAIL PROTECTED] Betreff: question about uploading files and multipart/form-data FORMS Hi All -- With Tomcat, I have no problems submitting forms with ENCTYPE="multipart/form-data" and uploading files into my server. However, when I was using Apache/JServ, certain files will not upload because the code that reads the uploaded data dies on a read() call somewhere with an application null error. I cannot determine what causes the problem -- it's not the type of file, or anything, such certain files, and .doc files seem to be the most troublesome. Has anyone else seen this problem with apache/Jserv, but not with Tomcat? Thanks Betty Portal Wave, Inc. Catalyst for Collaborative Commerce www.portalwave.com
RE: JDBCReamls Still freeze after 24 hours wokrs
At 13:13 04/04/2001 +0200, you wrote: Please some logs, config files..every bit of info you can send will be useful trying to find that.. attached files better.. Versions of JDBC drivers db too TIA Saludos , Ignacio J. Ortega server.xml : RequestInterceptor className="org.apache.tomcat.request.JDBCRealm" debug="99" driverName="org.gjt.mm.mysql.Driver" connectionURL="jdbc:mysql://192.168.111.20/capimmo" connectionName="javaCheck" connectionPassword="" userTable="utilisateur" userNameCol="IdUtilisateur" userCredCol="Password" userRoleTable="userRole" roleNameCol="NomRoleFK" / web.xml : security-constraint web-resource-collection web-resource-nameProtected Area/web-resource-name !-- Define the context-relative URL(s) to be protected -- url-pattern/admin/*/url-pattern url-pattern/my/*/url-pattern !-- If you list http methods, only those methods are protected -- http-methodDELETE/http-method http-methodGET/http-method http-methodPOST/http-method http-methodPUT/http-method /web-resource-collection auth-constraint !-- Anyone with one of the listed roles may access this area -- role-namecap_acheteur/role-name role-namecap_vendeur/role-name role-namecap_agence/role-name role-namecap_admin/role-name /auth-constraint /security-constraint login-config auth-methodFORM/auth-method realm-namePlease identify yourself/realm-name form-login-config form-login-page/security/login/Login.jsp/form-login-page form-error-page/security/login/Error.jsp/form-error-page /form-login-config /login-config the database is Mysql Ver 11.12 Distrib 3.23.32, JDBC Driver is mm.mysql-2.0.2-bin.jar (I recently upgrade to mm.mysql-2.0.4-bin.jar) but it did not change anything. I don't have logs because I un comment the logger action. but I set it back and send you the Logs has soon has I got them (next 24 hours). Thanks. -Mensaje original- De: Kaneda K [mailto:[EMAIL PROTECTED]] Enviado el: mircoles 4 de abril de 2001 13:02 Para: [EMAIL PROTECTED] Asunto: JDBCReamls Still freeze after 24 hours wokrs Hello, I upgrade my tomcat to 3.2.2 beta 6 (BTW how to check version when you did not downloaded it yourself ?) and the JDBCReamls still freeze after 24 hours. on redhat 6.2 jdk sun 1.3.0 256 mo Ram the package I download was at this url : http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.2 -beta-2/bin/jakarta-tomcat-3.2.2b2.zip
[T4b3] An Exception at the SHUTDOWN stage
It seems running fine on NT as a standalone so far, and it shows all 4 ports, i.e, 8005, 8008, 8080, and 8443 -- just by using the 'netstat' utility. When I, however, am shutting down the T4b3 it shows an exception as: Stopping service Tomcat-Standalone java.lang.NullPointerException at org.apche.catalina.connector.http.HttpConnector.run(HttpConnector.java: 775) at org.lang.Thread.run(Thread.java:484) Catalina.stop: LifecycleException: Container has not been started LifecycleException: Container has not been started at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1083) ... Any ideas? Pae
Re: How to get around a tricky situation.
Just so I understand, to do the below I would have to modify my server.xml file...correct? This cannot be done in my web.xml file? Thanks Alex Date: Wed, 04 Apr 2001 09:47:56 +0200 To: [EMAIL PROTECTED] From: =?iso-8859-1?Q?St=E9phane?= BAUDET [EMAIL PROTECTED] Subject: Re: How to get around a tricky situation. Message-ID: [EMAIL PROTECTED] Hello You could also create a new "empty" context called /images with docbase properly set to the location of your images. This context will serve your images.
Can a servlet call another servlet to receive it's XML data inorder to sent it to XSLT processor?
Hello I have a XMLservlet() that is called from the browser with certain parameters. It returns a set of XML data that is transformed to HTML using an XSLT style sheet on the client side browser(ie5). Because not all users browsers have this capability yet, I want to try using XALAN parsers to transform this xml data on the server side (Tomcat 3.2) to return html code to the browser. As my knowldege on servlets are limited I would like some guidlines or preferably some sample code on how to do this: ie I would like the browser to call a JSP or another Servlet program to receive the paramters from the browser, call the XMLservlet with these parameters, receive the xmldata from the XMLServlet and parse it to the Xalan parsers for processing with the appropriate style sheet and then return the HTML result to the client browser. Your help is appreciated. Regards Gan Gounden City of Cape Town Ph (021) 400-2174 Fax (021) 425-1096 Cell 083-63-59-268 e-mail: [EMAIL PROTECTED] ** Any unauthorized use and interception of this e-mail is illegal. If this e-mail is not intended for you, you may not copy, distribute or disclose the contents to anyone. This e-mail does not give rise to any binding legal obligations upon the City of Cape Town unless the City of Cape Town subsequently confirms the content in writing non-electronically. This e-mail may be confidential, legally privileged or otherwise protected by law. Unauthorised disclosure or copying of any or all of it may be unlawful. If you receive this e-mail in error please notify the sender and delete the message **
Workaround for ISAPI Index Loading Problem
Dear All, About a couple of days ago I posted a query regarding Gal Shachor's ISAPI filter for Tomcat. After fruitless searching I discovered a solution (read hack) to the problem quite by accident. The problem is thus: configuring IIS server to forward any requests from its root for servlets or JSP files to Tomcat is simple. Just add a context in server.xml whose docBase points to the web root of IIS and add the following line to uriworker.properties: /*.jsp=ajp12 IIS will continue to serve other pages (.html or .asp for example) itself but will use Tomcat to handle JSP (and servlets if you wish). The problems begins when you want IIS to use JSP "default documents" (index pages to you and I) such as index.jsp. The ISAPI filter doesn't know to check IIS for an index page when it encounters a directory URI unless it is explicitly instructed to. If you specify an index.jsp page in the 'Default Document' dialog in the IIS set-up utility you just get the raw, un-compiled JSP page passed to the client. It is simpler to remove any reference to index.jsp from IIS and try one of two solutions to the problem: a) Add an index.html of Default.htm document in same directory as your index.jsp page that contains a redirection command. This is ugly because the client will see a flicker as the pages switch. b) My solution is, for each directory that has an index.jsp page add a reference to in the uriworker.properties file. For example, if you have an index.jsp page in the /intranet/ directory of your site you need to add: /intranet/=ajp12 to uriworker.properties. This is better than a) because the client doesn't ever see the misdirection, although every time you add an index.jsp to your site you have to alter the uriworker.properties file and restart IIS! Let me know if this was of use to anyone or if anyone has a better workaround. Yours... -- Ricardo Gladwell UBQT Media PLC Mobile: (07779) 841 444
RE: 2nd Post: Servlets and mod_jk problem -- thanks!
On Wed, 4 Apr 2001, Jim Cheesman wrote: At 09:53 PM 4/3/2001, you wrote: One thing to note, Tomcat for NT is not picky about this, because on my NT deployment of Tomcat, I have the WEB-INF directory named "web-inf" and everything works fine. [ ... ] You must come from a Windows background :-) -- under UNIX, everything has always been case-sensitive. And on Windows, it generally isn't. Although I thought I saw some Tomcat-related documentation that indicated that Tomcat is, or is going to be, case-sensitive on all platforms. Maybe that's for 4.0. Didn't it change between 3.1 and 3.2? I seem to recall having fun with that one, especially on the URLs. Maybe so, I don't remember exactly, I just remember seeing it somewhere. Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED]
Re: How to get the parsed JSP string
Rhett Savage [EMAIL PROTECTED] wrote: if i understand correctly then one way you could accomplish that is simply by reading the output of the JSP (which you serve in the usual way) into a string using the java.net.URL class, something similar to the code below - this way any includes, interpolations, calculations that occur in the JSP will already have happened by the time it becomes an ordinary string... No, i dont want to ask the webserver my parsed jsp, but in the webserver itselve retrieve it. An example of what i try to accomplish is attached below... rhett sourcecode --- On Tue, 3 Apr 2001, Eduard Witteveen wrote: Hello, I want to do some operations, after that the JSP page has been parsed. For this i need the get the output of the jsp page, which has been parsed, i want to use this output as input for something else. How can i archief this? * Is there a way to put more then one servlet after eachother? or * How can i get the output of the jsp parser, before it is send to the browser, and change this. public synchronized void service(HttpServletRequest req, HttpServletResponse res) throws ServletException,IOException { JspFactory factory = JspFactory.getDefaultFactory(); if(factory==null) { log.error("im getting this error all the time."); } StringResponse tempResponse = new StringResponse(); PageContext pageContext = factory.getPageContext( this, //the requesting servlet req,//the current request pending on the servlet tempResponse,//the current response pending on the servlet null, //the URL of the error page for the requesting JSP, or null false, //true if the JSP participates in a session 1024, //size of buffer in bytes, PageContext.NO_BUFFER if no buffer, PageContext.DEFAULT_BUFFER if implementation default. true//should the buffer autoflush to the output stream on buffer overflow, or throw an IOException? ); pageContext.include(req.getRequestURI()); String parsedJsp = tempResponse.getString(); // now i can use the parsedJsp for generation of // somekinda file... let's say a pdf from a tex doc in which i // i used jsp } -- Eduard WitteveenSysteemontwikkelaar NOS Internet Mediacentrum Kamer 203, tel. +31(0)35 6773059 Sed quis custodiet ipsos custodes? : The sixth Satire from Juvenal
RE: file reading and writing
A call to getServletContext().getAttribute("javax.servlet.context.tempdir") returns: jakarta-tomcat-3.2.1/work/localhost_8080 Did you intend to put output.txt in the temp directory? AFAIK, it won't go there by default: you'll need to specify that directory, like, String tmpdir = getServletContext().getAttribute("javax.servlet.context.tempdir"); File f = new File(tempdir, "output.txt"); DataOutputStream fileOut = new DataOutputStream( new FileOutputStream(f)); -- Bill K. -Original Message- From: Brian Teutsch [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 03, 2001 8:45 PM To: [EMAIL PROTECTED] Subject: file reading and writing I am trying to control some file reading and writing. I'm trying to transition some servlets from QuidProQuo, and the primary difficult I am having is figuring out how to read and write a file. I've tried to debug everything I can think of, mostly the permissions on all the work directories (localhost_8080* all set to rwx). Getting accustomed to OS X, I know that permissions can be a big sticking point. Although it could be something else completely, despite the error. Here's the code I am trying in a simple servlet. -- DataOutputStream fileOut; fileOut = new DataOutputStream( new FileOutputStream("output.txt")); fileOut.writeBytes("test"); fileOut.close(); -- A call to getServletContext().getAttribute("javax.servlet.context.tempdir") returns: jakarta-tomcat-3.2.1/work/localhost_8080 And the servlet catches the exception: java.io.FileNotFoundException: output.txt (Permission denied) So, where does the servlet store things it wants to access? I'm just looking for something simple here, until I have the time to learn jar file access in general. Hopefully I'm just missing something in the development or config docs. Brian Teutsch
Repaint( )
Hello All !! Do anybody of you know how to repaint particular area of Applet rather than repainting an entire applet. First tell me is it possible to repaint particular area. Sorry I am asking this question in Tomcat user list but i found this is the only way to ask this question where lots of world class personality shares their views. Thanks in Advance Regards Sunil _ Get LifeTime Free email Visit --- http://www.nagpurcity.net
Re: How to get around a tricky situation.
Yes, you have to modify the server.xml. I'm using this and it works fine. If somebody know how to do this within the web.xml, please let us know ! Stph Alex Colic a crit : Just so I understand, to do the below I would have to modify my server.xml file...correct? This cannot be done in my web.xml file? Thanks Alex Date: Wed, 04 Apr 2001 09:47:56 +0200 To: [EMAIL PROTECTED] From: =?iso-8859-1?Q?St=E9phane?= BAUDET [EMAIL PROTECTED] Subject: Re: How to get around a tricky situation. Message-ID: [EMAIL PROTECTED] Hello You could also create a new "empty" context called /images with docbase properly set to the location of your images. This context will serve your images. -- Cordialement, Stphane BAUDET _ GL Trade 48, rue Notre Dame des Victoires - 75002 Paris Tel : 01 53 40 43 12 (interne 1312) Fax : 01 53 40 01 40 Email : [EMAIL PROTECTED] _
tomcat security
Hi, Is there any information available about tomcat security options? I want to know if you can limit the ip addresses ajp will listen to and if it's possible to encrypt ajp communication. Thanks, Andrej
How to use SVG-Files?
Hello, I want to display SVG-Files but I only get the CDATA from the SVG-File. I think I have to set up the web.xml but I don't know if I only have to change this file or if I need another change? Thank you Matthias Zumstein -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net
How do I know if I'm actually using ajp13 workers?
I can see the ajp12 and 13 worker threads being instantiated (via log messages in the console) when I crank up Tomcat, but how do I know if the 13's are being used at all? All my auto-generated files continue to point to 'ajp12' workers, even after I've changed almost every reference I can find in any properties file I can find. Does it even matter what's in these 'auto' files? I've pointed Apache/Tomcat to look at a customized version of the 'mod_jk-auto' file with most/all 'ajp12' references changed to 'ajp13'. Is this even necessary? What else might I need to do? Is this in the FAQ? Thank you! --Peter-- __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
Directory changes
Hi All I have tested a simple application called greeting by putting it into tomcat_home\web-apps directory. Now when I am putting the same application into a different directory outside the Tomcat_home and adding the Context in the context manager, I am not able to access the application. Can some one please help?? Thanks in advance Regards Sonia
A message to tomcat-user@jakarta.apache.org
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Are you bored and want some excitement? Las Vegas Has Just Showed Up In Your Neigbourhood! In fact, you wont even have to leave your computer! -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Queensclub Online Casino Advantages: -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- * Play in your pyjamas * Play for fun option (without gambling money) * Free money to play with! * Confidential and safe * No travel headaches * No hotel bill suprises * Take your time playing! * Play with your creditcard * Get advice as you play! * Almost 98% payout! ++ | This could be your lucky day! Give us a try! | ++ http://www.sonixxx.com/casino/ -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- What do our satisfied visitors think about us? -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- PAULM, A ,460 Jackpot winner from Georgia: "That's when I decided to throw caution to the wind. I just put the whole wad into the machine and on my tenth try -- BINGO! almost 150,000 dollars!" BOSSMAN48, A Jackpot winner from Michigan: "After throwing out bets for 20 minutes or so at the JacksOrBetter game, my one big bet made me a richer man. I pulled down a royal flush!!!" 5666777, A Jackpot winner from New Jersey: "After four or five unsuccessful bets I gave it a rest and went to pick up a sandwich from the fridge. Then, after couple of bites and couple of pulls on the slot machine, it happened!!! I HIT THE JACKPOT!" RIVER, ,878 jackpot winner from Canada: "I couldn't believe it as the money suddenly showed in my account! We both jumped so quickly, we almost knocked the PC off the table." -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ++ | This could be your lucky day! Give us a try! | +---+ http://www.sonixxx.com/casino/ This message was sent to [EMAIL PROTECTED] If you do not wish to receive more emails from me, just click on the link below. http://206.48.130.19/cgi-bin/remove.cgi
Re: Can a servlet call another servlet to receive it's XML data inorder to sent it to XSLT processor?
Ganasen Gounden wrote: Hello I have a XMLservlet() that is called from the browser with certain parameters. It returns a set of XML data that is transformed to HTML using an XSLT style sheet on the client side browser(ie5). Because not all users browsers have this capability yet, I want to try using XALAN parsers to transform this xml data on the server side (Tomcat 3.2) to return html code to the browser. As my knowldege on servlets are limited I would like some guidlines or preferably some sample code on how to do this: ie I would like the browser to call a JSP or another Servlet program to receive the paramters from the browser, call the XMLservlet with these parameters, receive the xmldata from the XMLServlet and parse it to the Xalan parsers for processing with the appropriate style sheet and then return the HTML result to the client browser. Your help is appreciated. Regards Have you looked at Cocoon (XSP) at http://xml.apache.org/cocoon Bap
Can a servlet call another servlet to receive it's XML data inorder to sent it to XSLT processor?
Hello I have a XMLservlet() that is called from the browser with certain parameters. It returns a set of XML data that is transformed to HTML using an XSLT style sheet on the client side browser(ie5). Because not all users browsers have this capability yet, I want to try using XALAN parsers to transform this xml data on the server side (Tomcat 3.2) to return html code to the browser. As my knowldege on servlets are limited I would like some guidlines or preferably some sample code on how to do this: ie I would like the browser to call a JSP or another Servlet program to receive the paramters from the browser, call the XMLservlet with these parameters, receive the xmldata from the XMLServlet and parse it to the Xalan parsers for processing with the appropriate style sheet and then return the HTML result to the client browser. Your help is appreciated. Regards Gan Gounden City of Cape Town Ph (021) 400-2174 Fax (021) 425-1096 Cell 083-63-59-268 e-mail: [EMAIL PROTECTED] Gan Gounden City of Cape Town Ph (021) 400-2174 Fax (021) 425-1096 Cell 083-63-59-268 e-mail: [EMAIL PROTECTED] ** Any unauthorized use and interception of this e-mail is illegal. If this e-mail is not intended for you, you may not copy, distribute or disclose the contents to anyone. This e-mail does not give rise to any binding legal obligations upon the City of Cape Town unless the City of Cape Town subsequently confirms the content in writing non-electronically. This e-mail may be confidential, legally privileged or otherwise protected by law. Unauthorised disclosure or copying of any or all of it may be unlawful. If you receive this e-mail in error please notify the sender and delete the message **
ClassNotFound from lib in a webapp
Hi, I'm running Tomcat 3.2.1 (as NT service), Apache 1.3.17 (mod_jk), JDK1.3, (and JBoss but thats not related) I'm coming across this problem time and time again and am wondering if all will be solved if I move to Tomcat 4.x. If there is a solution/explanation please let me know. I am deploying my webapps with all the libraries required in the lib directory (as per the spec). When running servlets (generally when I am making EJB references) I get ClassNotFound exceptions. However there are some classes being found that only reside in one of these jars. When I add the offending jars from the lib directory into the tomcat classpath (via wrapper.properties) then all is well. Thanks (hopefully), Richard. -Original Message- From: Sonia Sh [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 04, 2001 3:04 PM To: Tomcat-User@Jakarta. Ap Subject: Directory changes Hi All I have tested a simple application called greeting by putting it into tomcat_home\web-apps directory. Now when I am putting the same application into a different directory outside the Tomcat_home and adding the Context in the context manager, I am not able to access the application. Can some one please help?? Thanks in advance Regards Sonia ** Information in this email is confidential and may be privileged. It is intended for the addressee only. If you have received it in error, please notify the sender immediately and delete it from your system. You should not otherwise copy it, retransmit it or use or disclose its contents to anyone. Thank you for your co-operation. **
Re: Repaint( )
Have you tried the paint method? Each class derived from the java.awt.Component has a paint method to do what you want. This forum is likely not the best place to ask your question. You may want to try Sun's forum. See www.java.sun.com. [EMAIL PROTECTED] 4/4/2001 8:44:25 AM Hello All !! Do anybody of you know how to repaint particular area of Applet rather than repainting an entire applet. First tell me is it possible to repaint particular area. Sorry I am asking this question in Tomcat user list but i found this is the only way to ask this question where lots of world class personality shares their views. Thanks in Advance Regards Sunil _ Get LifeTime Free email Visit --- http://www.nagpurcity.net
Re: mod_webapp compilation
I have exactly the same problem with TC 4.0-b3 while compiling the connector to use Apache 1.3 with tomcat 4.0! Can anyone tell us how to work around this problem(s)?? Thanks in advance. Marcel Landman DIC Information Consultants Bojan Smojver wrote: Anyone out there had any luck compiling the mod_webapp? Even after removing double new lines from the Makefiles, there is a whole heap of compilation error messages (mostly undeclared stuff)... And if mod_webapp is not ready, can mod_jk be used with Tomcat 4.0? Configuration: RedHat Linux 7.0 Tomcat 4.0 b2 (b3 source not published) Bojan
web.xml problem?
I'm using tomcat321 on NT4.0. I have a simple login page that I'm trying to call my servlet to do some processing on the request parameters. But, Tomcat cannot find my servlet. See the details below. Any suggestions? Here are my paths: c:\opensource\tomcat321\webapps\TrainingPlansRepository\jsp\Login.html c:\opensource\tomcat321\webapps\TrainingPlansRepository\web-inf\classes\born\servlets\LoginController.class Here is a part of my web.xml: web-app servlet servlet-name LoginController /servlet-name servlet-class born.servlets.LoginController /servlet-class servlet-mapping servlet-name LoginController /servlet-name url-pattern /TrainingPlansRepository/born/servlets/LoginController /url-pattern /servlet-mapping Here is the line that matters in my Login.html: FORM METHOD=POST ACTION="born/servlets/LoginController" Here is the resulting error msg in Netscape: Not Found (404) Original request: /TrainingPlansRepository/jsp/born/servlets/LoginController Not found request: /TrainingPlansRepository/jsp/born/servlets/LoginController __ FREE Personalized Email at Mail.com Sign up at http://www.mail.com/?sr=signup
Tomcat 3.2.1 returns a Java.exe error. when I use JSP
Hello, I get a message saying "Program Error java.exe" when I execute JSP pages on Tomcat 3.2.1. I don't get this error until I try to connect to the db. (SQL setver 2000). This is happening at random and we cannot find a pattern to it. The OS is Win2K Pro. We also have Apache 1.3 running on the same system with JDK 1.2.2. Need help ASAP. Thanks in advance. Regards Shivraj Singh
RE: web.xml problem?
I'm using tomcat321 on NT4.0. I have a simple login page that I'm trying to call my servlet to do some processing on the request parameters. But, Tomcat cannot find my servlet. See the details below. Any suggestions? Here are my paths: c:\opensource\tomcat321\webapps\TrainingPlansRepository\jsp\Login.html c:\opensource\tomcat321\webapps\TrainingPlansRepository\web-in f\classes\born\servlets\LoginController.class Here is a part of my web.xml: web-app servlet servlet-name LoginController /servlet-name servlet-class born.servlets.LoginController /servlet-class servlet-mapping servlet-name LoginController /servlet-name url-pattern /TrainingPlansRepository/born/servlets/LoginController /url-pattern /servlet-mapping Here is the line that matters in my Login.html: FORM METHOD=POST ACTION="born/servlets/LoginController" Here is the resulting error msg in Netscape: Not Found (404) Original request: /TrainingPlansRepository/jsp/born/servlets/LoginController Not found request: /TrainingPlansRepository/jsp/born/servlets/LoginController change your url pattern to url-pattern LoginController /url-pattern or url-pattern /servlet/LoginController /url-pattern if you really want the servlet path in there. and then change your ACTION to ../LoginController or ../servlet/LoginController appropriately. --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com mailto:[EMAIL PROTECTED] - Punisher of those who cannot spell dumb!
RE: web.xml problem?
IANAE but... this url-pattern /TrainingPlansRepository/born/servlets/LoginController /url-pattern doesn't seem to match this FORM METHOD=POST ACTION="born/servlets/LoginController" try changing one or the other. regards lyndon -Original Message- From: tomcat user [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 04, 2001 3:31 PM To: '[EMAIL PROTECTED]' Subject: web.xml problem? I'm using tomcat321 on NT4.0. I have a simple login page that I'm trying to call my servlet to do some processing on the request parameters. But, Tomcat cannot find my servlet. See the details below. Any suggestions? Here are my paths: c:\opensource\tomcat321\webapps\TrainingPlansRepository\jsp\Login.html c:\opensource\tomcat321\webapps\TrainingPlansRepository\web-inf\classes\born \servlets\LoginController.class Here is a part of my web.xml: web-app servlet servlet-name LoginController /servlet-name servlet-class born.servlets.LoginController /servlet-class servlet-mapping servlet-name LoginController /servlet-name url-pattern /TrainingPlansRepository/born/servlets/LoginController /url-pattern /servlet-mapping Here is the line that matters in my Login.html: FORM METHOD=POST ACTION="born/servlets/LoginController" Here is the resulting error msg in Netscape: Not Found (404) Original request: /TrainingPlansRepository/jsp/born/servlets/LoginController Not found request: /TrainingPlansRepository/jsp/born/servlets/LoginController __ FREE Personalized Email at Mail.com Sign up at http://www.mail.com/?sr=signup
RE: Tomcat 3.2.1 returns a Java.exe error. when I use JSP
I had the same problem using JDK1.2.2 and Sun jdbc-odbc bridge. Use JDK1.3 :-) -Original Message- From: Shivraj Singh [SMTP:[EMAIL PROTECTED]] Sent: quarta-feira, 4 de Abril de 2001 14:36 To: [EMAIL PROTECTED] Subject: Tomcat 3.2.1 returns a Java.exe error. when I use JSP Hello, I get a message saying "Program Error java.exe" when I execute JSP pages on Tomcat 3.2.1. I don't get this error until I try to connect to the db. (SQL setver 2000). This is happening at random and we cannot find a pattern to it. The OS is Win2K Pro. We also have Apache 1.3 running on the same system with JDK 1.2.2. Need help ASAP. Thanks in advance. Regards Shivraj Singh
RE: mod_webapp compilation
Many solutions : 1) You can patch the mod_webapp (I started to do that) but all your changes will be lost when cvs will be updated 2) Wait Pier to update the CVS. The lack of visibility on mod_webapp is a real problem on Tomcat 4.0. I'm sorry to say if the code is in OpenSource the developpment is not. I'll start to look how to port ajp13 to Tomcat 4.0 to help it works with mod_jk (which works well) Regards
Re: Can a servlet call another servlet to receive it's XML data in order to sent it to XSLT processor?
At 04:13 PM 4/4/2001, you wrote: (Not really a Tomcat question, but...) ie I would like the browser to call a JSP or another Servlet program to receive the paramters from the browser, call the XMLservlet with these parameters, receive the xmldata from the XMLServlet and parse it to the Xalan parsers for processing with the appropriate style sheet and then return the HTML result to the client browser. In the servlet doPost/Get/service method: getServletContext().getRequestDispatcher(my_jsp_URL_as_String).forward(request, response); In the JSP, you have various options, but to start with I'd suggest checking out the xml tags at jakarta.apache.org, although I must confess I didn't manage to get them to work the last time I downloaded them. (That could be because of a classpath problem - I'm not entirely sure which version of xalan and xerces I have and where...) A quick search at java.sun.com for xml/jsp will also throw up some stuff. HTH, Jim -- * Jim Cheesman * Trabajo: [EMAIL PROTECTED] - (34)(91) 724 9200 x 2360 Personal: [EMAIL PROTECTED] (34) 606 770 244 Practice safe eating -- always use condiments.
RE: web.xml problem?
Thanks! That did the trick. Now, I'm getting NULL's in getting the request parameters in my serlvet. I'll have to look at that a little more. --Original Message-- From: Michael Wentzel [EMAIL PROTECTED] To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] Sent: April 4, 2001 2:08:46 PM GMT Subject: RE: web.xml problem? I'm using tomcat321 on NT4.0. I have a simple login page that I'm trying to call my servlet to do some processing on the request parameters. But, Tomcat cannot find my servlet. See the details below. Any suggestions? Here are my paths: c:\opensource\tomcat321\webapps\TrainingPlansRepository\jsp\Login.html c:\opensource\tomcat321\webapps\TrainingPlansRepository\web-in f\classes\born\servlets\LoginController.class Here is a part of my web.xml: web-app servlet servlet-name LoginController /servlet-name servlet-class born.servlets.LoginController /servlet-class servlet-mapping servlet-name LoginController /servlet-name url-pattern /TrainingPlansRepository/born/servlets/LoginController /url-pattern /servlet-mapping Here is the line that matters in my Login.html: FORM METHOD=POST ACTION="born/servlets/LoginController" Here is the resulting error msg in Netscape: Not Found (404) Original request: /TrainingPlansRepository/jsp/born/servlets/LoginController Not found request: /TrainingPlansRepository/jsp/born/servlets/LoginController change your url pattern to url-pattern LoginController /url-pattern or url-pattern /servlet/LoginController /url-pattern if you really want the servlet path in there. and then change your ACTION to ../LoginController or .../servlet/LoginController appropriately. --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com mailto:[EMAIL PROTECTED] - Punisher of those who cannot spell dumb! __ FREE Personalized Email at Mail.com Sign up at http://www.mail.com/?sr=signup
using Tomcat Test Environnement in Visual Age
Hello, I'm tryinng to use Apache Tomcat Test Environnement for VA. The Test Environnement run well. I've deployed a index.html file in Apache_Tomcat_Test_Environnement/webaaps/myWebFolder and I access it well whith my browser http://localhost:8080/myWebFolder/. This index.html file have a form tag : form name="log" method="post" action="coreservlets.Login" to contact a servlet : Login. I've wrote this servlet in VA. My question is : Is it possible to run this servlet in VA when index.html try to find Login. In other hand I've tried to deploy the Login.class servlet directly in a folder : myWebFolder/coreservlets/ but I received a 404 error message file not found How have I to do to run a servlet on Tomcat? Patrick PIERRA
tomcat mail cleanup...
Hi, each time I post a message I receive : The original message was received at Wed, 4 Apr 2001 12:02:46 -0400 from mercury.drfirst.com [172.1.1.36] - The following addresses had permanent fatal errors - [EMAIL PROTECTED] - Transcript of session follows - ... while talking to mc2.law5.hotmail.com.: RCPT To:[EMAIL PROTECTED] 550 Requested action not taken:user account inactive 550 [EMAIL PROTECTED] User unknown == Your message To: [EMAIL PROTECTED] Subject: RE: mod_webapp compilation Sent:Wed, 4 Apr 2001 09:54:31 -0500 did not reach the following recipient(s): [EMAIL PROTECTED] on Wed, 4 Apr 2001 09:55:59 -0500 The recipient name is not recognized The MTS-ID of the original message is: c=us;a=mark400;p=ge;l=KANS015CERCGE01040414552G7RQWM7 MSEXCH:IMS:GE:CAPITALCERCNA:KANS015CERCGE 0 (000C05A6) Unknown Recipient = Could we have this two accounts removed from list ?
RE: .java being taken for a .jsp ??? - Thanks!
Matt, It doesn't sound like Tomcat is mistaking your Java file for a jsp. It actually looks like it's trying to recompile a file inside of your one of your jars, which is pretty weird. Thanks. Your comment put me on (what appears to be ) the right track. There are some .java files in the WEB-INF/classes/com/snv/jpub/* These are (oops :-) copied over from the place they are generated as part of the rather baroque jpub/sqlj build process. I'm really not sure WHY Tomcat tries to compile the .java when there is a perfectly good .class file sitting in the same directory, but it could be that the timestamp sequence is altered when the files are copied. Usually, the .java would be older than the .class, but it might be that the .class file got copied first and the .java later (by a millisecond or two). That still doesn't explain why the problem only shows up on one machine. The only cases where I have seen this being a problem is where one of these classes is referred to by a .jsp - many other classes use them without problems, but then, they aren't trying to compile stuff on the fly. I've just made sure that the .java files don't end up in WEB-INF/classes, and the problem hasn't shown up. Thanks again, George McKinney, Developer Tantalus Communications Inc. 500-1122 Mainland Street Vancouver, BC, Canada V6B 5L1 [EMAIL PROTECTED] Direct 604.726.6753 Main604.609.0700 Fax 604.609.0705 "The Oracle Experts" www.tantalus.com
RE: using Tomcat Test Environnement in Visual Age
May be you can explain how to use the Tomcat with VA. Thank you in advance. -Original Message- From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] Sent: 04 2001 17:02 To: [EMAIL PROTECTED] Subject: using Tomcat Test Environnement in Visual Age Hello, I'm tryinng to use Apache Tomcat Test Environnement for VA. The Test Environnement run well. I've deployed a index.html file in Apache_Tomcat_Test_Environnement/webaaps/myWebFolder and I access it well whith my browser http://localhost:8080/myWebFolder/. This index.html file have a form tag : form name="log" method="post" action="coreservlets.Login" to contact a servlet : Login. I've wrote this servlet in VA. My question is : Is it possible to run this servlet in VA when index.html try to find Login. In other hand I've tried to deploy the Login.class servlet directly in a folder : myWebFolder/coreservlets/ but I received a 404 error message file not found How have I to do to run a servlet on Tomcat? Patrick PIERRA
session + cookie
Hi, My application handles session via cookies. I notice that Tomcat, by default, sets the cookie name to JSESSIONID. Is there any ways I can rename the cookie name? Thanks, Connie
RE: using Tomcat Test Environnement in Visual Age
I've just downloaded the zip file Apache Tomcat Test Environnement on www.ibm.com. When you run the .exe file, it create a project and a set of package in VA. Then run TomcatRunner. Patrick PIERRA
Re: Directory changes
Provide us how you delcared the *new context* in your server.xml and description of how you access your application including the info of directory hierarchy where your application is deployed. Some of us will may help you. Pae -Original Message-From: Sonia Sh [EMAIL PROTECTED]To: Tomcat-User@Jakarta. Ap [EMAIL PROTECTED]Date: Wednesday, April 04, 2001 7:03 AMSubject: Directory changes Hi All I have tested a simple application called greeting by putting it into tomcat_home\web-apps directory. Now when I am putting the same application into a different directory outside the Tomcat_home and adding the Context in the context manager, I am not able to access the application. Can some one please help?? Thanks in advance Regards Sonia
servlets, sessions, and memory ..
I see from the archive that the memory "leak" effect is caused by session handlers creating a session for each.. well.. session. My question is how can I take charge of this, i cant seem to turn off session tracking for servlets. Simply removing the interceptors from server.xml doesn't help. I find that after about 820,000 hits in six hours, :-), I get an out of memeory exception, I could avoind this if I knew how to destroy sessions, or not create them at all, or even just fine tune their time-to-live. I haven't found my way round this bit of the source yet, so *any* tips will be greatfully recieved, however obvious they may be to others... danny
RE: using Tomcat Test Environnement in Visual Age
Sorry, find here reply with history I've just downloaded the zip file Apache Tomcat Test Environnement on www.ibm.com. When you run the .exe file, it create a project and a set of package in VA. Then run TomcatRunner. Patrick PIERRA Patrick PIERRA "Trakhtenberg, Victor"To: "'[EMAIL PROTECTED]'" Victor_Trakhtenber[EMAIL PROTECTED] [EMAIL PROTECTED] cc: Subject: RE: using Tomcat Test Environnement in Visual Age 04/04/01 05:09 PM Please respond to tomcat-user May be you can explain how to use the Tomcat with VA. Thank you in advance. -Original Message- From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] Sent: 04 2001 17:02 To: [EMAIL PROTECTED] Subject: using Tomcat Test Environnement in Visual Age Hello, I'm tryinng to use Apache Tomcat Test Environnement for VA. The Test Environnement run well. I've deployed a index.html file in Apache_Tomcat_Test_Environnement/webaaps/myWebFolder and I access it well whith my browser http://localhost:8080/myWebFolder/. This index.html file have a form tag : form name="log" method="post" action="coreservlets.Login" to contact a servlet : Login. I've wrote this servlet in VA. My question is : Is it possible to run this servlet in VA when index.html try to find Login. In other hand I've tried to deploy the Login.class servlet directly in a folder : myWebFolder/coreservlets/ but I received a 404 error message file not found How have I to do to run a servlet on Tomcat? Patrick PIERRA
Inputstream blocking during read, when there is nothing to read
If I send an empty get request to my servlet, get the inputstream, and do a read it will block forever. (eg: just call the servlet from IE or Netscape it just hangs). InputStream in = servletRequest.getInputStream(); byte[] buffer = new byte[bufferSize]; ByteArrayOutputStream byteStream = new ByteArrayOutputStream(); int read = 0; do { System.out.println("getBody1"); read = in.read(buffer); System.out.println("getBody2"); if(read=0) { byteStream.write(buffer, 0, read); } } while (read = 0); "getBody2" is never printed. In Tomcat 3.2 I had the same problem In Tomcat 3.3 the read would return, but -1 would never be returned, so it would loop forever. This servlet works fine on iplanet, and vqserver. Also the size returned is -1, so I can't just slurp it into an array. Thank you, Adam Ratica Software Architect CardinalCommerce, Inc. 6119 Heisley RoadMentor, OH 44060 440-352-8444 x138440-352-1646 Fax [EMAIL PROTECTED]
debugging servlets
What was again the magic modification one has to make to allow a more descriptive line in backtrace rather than '(compiled code)' when one gets for example: java.lang.NullPointerException at java.util.Arrays.sort(Compiled Code) at Some.doGet(Compiled Code) at Some.doPost(Compiled Code) at javax.servlet.http.HttpServlet.service(Compiled Code) at javax.servlet.http.HttpServlet.service(Compiled Code) at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code) at org.apac -- Chris Christoph P. U. Kukulies [EMAIL PROTECTED]
Tomcat (+Cocoon) with SSL
Sorry for the re-post, but I urgently need this problem remedied! I have installed Apache+mod_ssl on a Win32 system. I then installed Tomcat with mod_jk (recompiled for EAPI), and set it up to start a secure handler on 8443, using JSSE. Finally I installed Cocoon (from xml.apache.org), and set up my page, which involves a simple user logon. All was well, and I get a secure connection with HTTPS, but I cannot seem to prevent access to the page under HTTP. I have tried using SSLRequireSSL in the Directory field for Cocoon, along with SSLOptions +StrictRequire. This works fine with normal (non-tomcat) pages, but has no effect here. Cocoon is set up to send all .xml files to my ajp13 worker. Any help would be greatly appreciated. Bob.
directory changes
The new location of my application is C:\Java\4656\Chapter07\greeting (This is actually a dnloaded source code from some book). And the context I added just before /ContextManager is Context path="/greeting" docBase="C:\Java\4656\Chapter07\greeting" /Context /ContextManager Now I restarted Tomcat and called this app as http://localhost:8080/greeting This application (greeting) works fine when it is kept inside Webapps directory. I hope this info should be sufficient. Regards Sonia
RE: debugging servlets
You have to use the -Djava.compiler=NONE command line option in your java command line in the tomcat.bat/tomcat.sh Benot -Message d'origine- De : Christoph Kukulies [mailto:[EMAIL PROTECTED]] Envoy : mercredi 4 avril 2001 17:38 : [EMAIL PROTECTED] Objet : debugging servlets What was again the magic modification one has to make to allow a more descriptive line in backtrace rather than '(compiled code)' when one gets for example: java.lang.NullPointerException at java.util.Arrays.sort(Compiled Code) at Some.doGet(Compiled Code) at Some.doPost(Compiled Code) at javax.servlet.http.HttpServlet.service(Compiled Code) at javax.servlet.http.HttpServlet.service(Compiled Code) at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code) at org.apac -- Chris Christoph P. U. Kukulies [EMAIL PROTECTED]
Re: directory changes
Try with '/', not '\'. For example, c:/java/4656/Chapter07/greeting. Let us know if it does not help you. We will delve into your directory hierarchy. :-) Pae -Original Message-From: Sonia Sh [EMAIL PROTECTED]To: Tomcat-User@Jakarta. Ap [EMAIL PROTECTED]Date: Wednesday, April 04, 2001 8:42 AMSubject: directory changes The new location of my application is C:\Java\4656\Chapter07\greeting (This is actually a dnloaded source code from some book). And the context I added just before /ContextManager is Context path=/greeting docBase=C:\Java\4656\Chapter07\greeting /Context /ContextManager Now I restarted Tomcat and called this app as http://localhost:8080/greeting This application (greeting) works fine when it is kept inside Webapps directory. I hope this info should be sufficient. Regards Sonia
RE: debugging servlets
There's no magic: you need to re-compile your classes with the "-debug" flag on. -- Bill K. -Original Message- From: Christoph Kukulies [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 04, 2001 8:38 AM To: [EMAIL PROTECTED] Subject: debugging servlets What was again the magic modification one has to make to allow a more descriptive line in backtrace rather than '(compiled code)' when one gets for example: java.lang.NullPointerException at java.util.Arrays.sort(Compiled Code) at Some.doGet(Compiled Code) at Some.doPost(Compiled Code) at javax.servlet.http.HttpServlet.service(Compiled Code) at javax.servlet.http.HttpServlet.service(Compiled Code) at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code) at org.apac -- Chris Christoph P. U. Kukulies [EMAIL PROTECTED]
thanks
Thanks Pae It did help(changing '\' to '/') Benoit suggested me this solution sometime back. Thanks a lot to all of you. Regards Sonia
Turn off auto-gen
How do you turn off the configuration file auto-generation? (Like mod_jk.conf-auto, obj.conf-auto, etc)? Chad La Joie "Only a man who can not conquer IT Specialist his deficiencies feels the need to ISC - WARD convince the world he has none"
First ExceptionInInitializerError Then NoClassDefFoundError
Everytime I start tomcat 3.2.1 (win2k) and run a servlet I get java.lang.ExceptionInInitializerError. Subsequent requests to the same servlet throw java.lang.NoClassDefFoundError. The servlet class file is located in the webapps/myapp/web-inf/classes/. This dir is in the classpath before starting tomcat. I found similar problem reported in the archives but no solutions. I might have missed something very silly. Please help. Rajesh _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Re: session + cookie
On Wed, 4 Apr 2001, Connie Chan wrote: Hi, My application handles session via cookies. I notice that Tomcat, by default, sets the cookie name to JSESSIONID. Is there any ways I can rename the cookie name? I don't believe so -- the session id cookie name is mandated by the spec. Why do you want to, i.e. what are you trying to do? Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED]
RE: First ExceptionInInitializerError Then NoClassDefFoundError
Are you running the supplied examples or your own servlet? Try compiling a helloworld servlet, then modifying it incrementally. regards lyndon -Original Message- From: Rajesh A [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 04, 2001 5:12 PM To: [EMAIL PROTECTED] Subject: First ExceptionInInitializerError Then NoClassDefFoundError Everytime I start tomcat 3.2.1 (win2k) and run a servlet I get java.lang.ExceptionInInitializerError. Subsequent requests to the same servlet throw java.lang.NoClassDefFoundError. The servlet class file is located in the webapps/myapp/web-inf/classes/. This dir is in the classpath before starting tomcat. I found similar problem reported in the archives but no solutions. I might have missed something very silly. Please help. Rajesh _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
RE: debugging servlets
I also find that defining an evironment var works too. For windows try: set JAVA_COMPILER=NONE -Original Message- From: Benot Jacquemont [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 04, 2001 11:42 AM To: [EMAIL PROTECTED] Subject: RE: debugging servlets You have to use the -Djava.compiler=NONE command line option in your java command line in the tomcat.bat/tomcat.sh Benot -Message d'origine- De : Christoph Kukulies [mailto:[EMAIL PROTECTED]] Envoy : mercredi 4 avril 2001 17:38 : [EMAIL PROTECTED] Objet : debugging servlets What was again the magic modification one has to make to allow a more descriptive line in backtrace rather than '(compiled code)' when one gets for example: java.lang.NullPointerException at java.util.Arrays.sort(Compiled Code) at Some.doGet(Compiled Code) at Some.doPost(Compiled Code) at javax.servlet.http.HttpServlet.service(Compiled Code) at javax.servlet.http.HttpServlet.service(Compiled Code) at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code) at org.apac -- Chris Christoph P. U. Kukulies [EMAIL PROTECTED]
Servlet Chaining...
Hello I try to use Servlet Chaining with Tomcat. Can I do that with a tag in the web.xml file (with servlet-mapping for example), or must I modify my Request parameters?? does anyone know how to do that??? I have a Servlet that generates an complete and valid XML file from a database, and this file must be processed by the Cocoon servlet and then be returned to the client. That's it. Can anyone help me please??? Thanks. *** Gal Oberson Computer scientist Student in Computer Science Engineering (HES) Switzerland [EMAIL PROTECTED] [EMAIL PROTECTED] ***
Tomcat serving up unprocessed JSP?
Hi, While debugging a JSP application on Tomcat 3.2.1 on Linux (the recently released binary distribution of Tomcat from the Jakarta website, more or less default configuration), I found something interesting... I did a netcat (direct TCP/IP communication) and sent Tomcat the following: GET /my/path/myjsp.jsp blank line ...and found that my JSP was served up to me raw (full jsp source). Is this a configuration thing? If so, it might be a very good idea to tune the shipping binary so that this does not happen. How do I disable this? (For the record, I'm fully open to the fact that I may be doing something incredibly stupid. If so, please tell me.) Thanks, Alec Smecher [EMAIL PROTECTED]
loadbalancing - java.io.IOException: Stream closed prematurely
Hi, When I start tomcat with loadbalancing I see the following error even though everything seems to work fine HANDLER THREAD PROBLEM: java.io.IOException: Stream closed prematurely java.io.IOException: Stream closed prematurely at org.apache.tomcat.service.connector.AJP12RequestAdapter.readNextRequest(Ajp12ConnectionHandler.java:423) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:147) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) Any suggestions/ideas? Thanks..Shanti
RE: First ExceptionInInitializerError Then NoClassDefFoundError
Is your servlet part of a package? if yes then you need to specify in web.xml file like the fuly classified path of the servlet and in your WEB_INF/classes folder you need to reflect the whole pacakage hierarchy. Animesh -Original Message- From: Samson, Lyndon [IT] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 04, 2001 9:17 AM To: '[EMAIL PROTECTED]' Subject: RE: First ExceptionInInitializerError Then NoClassDefFoundError Are you running the supplied examples or your own servlet? Try compiling a helloworld servlet, then modifying it incrementally. regards lyndon -Original Message- From: Rajesh A [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 04, 2001 5:12 PM To: [EMAIL PROTECTED] Subject: First ExceptionInInitializerError Then NoClassDefFoundError Everytime I start tomcat 3.2.1 (win2k) and run a servlet I get java.lang.ExceptionInInitializerError. Subsequent requests to the same servlet throw java.lang.NoClassDefFoundError. The servlet class file is located in the webapps/myapp/web-inf/classes/. This dir is in the classpath before starting tomcat. I found similar problem reported in the archives but no solutions. I might have missed something very silly. Please help. Rajesh _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
tomcat with ssl difficulty
environment: tomcat 3.2.1, window 2000 setup: installed jsse 1.02 (tested, ok), uncomment ssl connector in server.xml (keystore and password ok), generate key pairs and self-signed certificate problem: try to do https put upload through cURL v7.7. tomcat start ok with port 8443 ready for direct ssl. however, security shakehand always failed with self-signed certicate generated either by java keytool or openssl. I tested with openssl s_client and it failed too. Question: 1. does tomcat support self-signed certificate? if yes, how can i set it up correctly? 2. i have a valid verisign certificate with iis 4.0, and i try to use it with tomcat. problem is: i don't know the format of iis key manager export (.key), and can not import it into keystore with java keytool. i also tried to convert it with openssl with pkcs7, pkcs12, etc. but fail once again. does anybody have some good suggestion? thanks. -Wei Luo _ Get your FREE download of MSN Explorer at http://explorer.msn.com
Re: Servlet Chaining...
Could you use a request dispatcher to forward the request to the second servlet? From the first servlet's request object you could code this: RequestDispatcher rd = req.getRequestDispatcher("path to second servlet"); rd.forward(); --- Gaël_Oberson [EMAIL PROTECTED] wrote: Hello I try to use Servlet Chaining with Tomcat. Can I do that with a tag in the web.xml file (with servlet-mapping for example), or must I modify my Request parameters?? does anyone know how to do that??? I have a Servlet that generates an complete and valid XML file from a database, and this file must be processed by the Cocoon servlet and then be returned to the client. That's it. Can anyone help me please??? Thanks. *** Gaël Oberson Computer scientist Student in Computer Science Engineering (HES) Switzerland [EMAIL PROTECTED] [EMAIL PROTECTED] *** = ~~~ Scott __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
RE: Servlet Chaining...
No, it doesn't work, because the HttpServletRequest class used in HttpServlet doesn't implement the getRequestDispatcher method... But it we can make your idea work, I don't understand how my XML file is sent to the cocoon servlet... My XML file is printed do the response (out.print(String);), and with the forward() method, the XML data is not sent.. How does it work?? -Message d'origine- De : Scott Walter [mailto:[EMAIL PROTECTED]] Envoye : mercredi, 4. avril 2001 19:33 A : [EMAIL PROTECTED] Objet : Re: Servlet Chaining... Could you use a request dispatcher to forward the request to the second servlet? From the first servlet's request object you could code this: RequestDispatcher rd = req.getRequestDispatcher("path to second servlet"); rd.forward(); --- Gakl_Oberson [EMAIL PROTECTED] wrote: Hello I try to use Servlet Chaining with Tomcat. Can I do that with a tag in the web.xml file (with servlet-mapping for example), or must I modify my Request parameters?? does anyone know how to do that??? I have a Servlet that generates an complete and valid XML file from a database, and this file must be processed by the Cocoon servlet and then be returned to the client. That's it. Can anyone help me please??? Thanks. *** Gakl Oberson Computer scientist Student in Computer Science Engineering (HES) Switzerland [EMAIL PROTECTED] [EMAIL PROTECTED] *** = ~~~ Scott __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
run tomcat under apache.
Hi All, I tried to configuring Apache 1.3.17 to use mod_jk compiled from tomcat 3.2.1, my platform is SunOS 5.6. Under TOMCAT_HOME/src/native/apache1.3, I run the following command to compile the code: apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/java/include -I/usr/java/include/solaris -c *.c ../jk/*.c Then I copied mod_jk.so to APACHE_HOME/libexec . Modified httpd.conf to include mod_jk.conf-auto from TOMCAT_HOME. At runtime, I got symbol "fdatasync" not found error. Then I added -lposix4, recompiled tomcat source code with following command : apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/java/include -I/usr/java/include/solaris -lposix4 -c *.c ../jk/*.c At the run time, I got another error as following Cannot load /rims-app/apache/libexec/mod_jk.so into server: ld.so.1: /rims-app/apache/bin/httpd: fatal: relocation error: file /rims-app/apache/libexec/mod_jk.so: symbol ap_psprintf: referenced symbol not found ./apachectl start: httpd could not be started Any suggestion or hint will be appreciated. Thanks. Xiaoyu
RE: session + cookie
Please bear with me if I am not familiar with Tomcat. What will happen when a user go to two different sites that both run tomcat? A user goes to site 1 and has a session in the site 1. And then the user logins to the site 2 and has the session in site 2. At this point, will the cookie get overwritten since both cookie names for both sites are the same? If so, the user would lose the session when the user goes back to site 1. How to handle this situation? BTW, where can I get the spec.? Thanks, Connie -Original Message- From: Milt Epstein [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 04, 2001 12:18 PM To: [EMAIL PROTECTED] Subject:Re: session + cookie On Wed, 4 Apr 2001, Connie Chan wrote: Hi, My application handles session via cookies. I notice that Tomcat, by default, sets the cookie name to JSESSIONID. Is there any ways I can rename the cookie name? I don't believe so -- the session id cookie name is mandated by the spec. Why do you want to, i.e. what are you trying to do? Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED]
Loading .properties file
Hello, I am loading a .properties file from a jsp. Where should the properties file reside so that I dont need to use application.getRealPath("/")? The file is found when I put it in tomcat/bin, but shouldn't it be found by putting it in the /web-inf folder specific to my application somewhere? Thanks in advance! Leon
getting unll object
i am using auto-methodForm/auto-method I get back null, when sending home.jsp that include login. for example http://localhost:8080/ems/home.jsp I get back http://localhsot:8080/ems/null I checked tomcat-usr. my xml.page ?xml version="1.0" encoding="ISO-8859-1"? !DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd" web-app welcome-file-list welcome-file/home.jsp/welcome-file /welcome-file-list security-constraint web-resource-collection web-resource-nameEMS Protected Area/web-resource-name !-- Define the context-relative URL(s) to be protected -- url-patternsecurity\protected\*/url-pattern !-- If you list http methods, only those methods are protected -- !-- http-methodDELETE/http-method http-methodGET/http-method http-methodPOST/http-method http-methodPUT/http-method -- /web-resource-collection auth-constraint !-- Anyone with one of the listed roles may access this area -- role-nametomcat/role-name role-nameems/role-name /auth-constraint /security-constraint login-config auth-methodFORM/auth-method realm-nameEMS Protected Area/realm-name form-login-config form-login-page/home.jsp/form-login-page form-error-page/security/notprotected/error.jsp/form-error-page /form-login-config /login-config /web-app Please help. What have I missed? Batsheva
tomcat in comb. with apache randomly rejecting requests
Hi, I have already posted this quesion, but maybe I have not given enough detail. Please help as this is getting very frustrating. Ok, this is the problem briefly: Very randomly when we try to submit the request to tomcat (that is working with apache) we get the error message from the browser: "This page cannot be accesses... etc..." If we try to re-submit the request just few seconds after, clicking the same submit button ... it will work. Sometimes it will work first time too. Actually it will reject request maybe one out of three times, the slower the connection (I think) the more likely rejection is. Ok, these are the details. The application is a shopping cart and when user is submitting items to the cart, there is no problems. In this case we submit to regular http (not secure), and in the request there is only couple of values. After that, there is a page with the credit card and order information with about 20 or so fields, now this is https protocol we submit to. This is when the problem occurs, this page with 20 or so values, and using https will reject randomly. If you try to submit again once you were rejected, it will go through... This does not happen with netscape at ALL, but with Internet Explorer only. The .jsp that request is submitted to reads those 20 properties into the bean, using property * Also, if we run tomcat only, locally (without apache), so if we submit to localhost:8080, this will not happen. This happens only when we submit over the net using apache, but then again we do not use https when using localhost. Please help, any info is EXTREMELY appreciate as we've been poking around for weeks now. If you need more information or the url to the actual application please let us know. Thank you.
RE: Tomcat (+Cocoon) with SSL
Maybe something to do with file permissions on an NTFS or FAT partition? -Original Message- From: Robert Arthur [mailto:[EMAIL PROTECTED]] Sent: 04 April 2001 16:40 To: tomcat-user Subject: Tomcat (+Cocoon) with SSL Sorry for the re-post, but I urgently need this problem remedied! I have installed Apache+mod_ssl on a Win32 system. I then installed Tomcat with mod_jk (recompiled for EAPI), and set it up to start a secure handler on 8443, using JSSE. Finally I installed Cocoon (from xml.apache.org), and set up my page, which involves a simple user logon. All was well, and I get a secure connection with HTTPS, but I cannot seem to prevent access to the page under HTTP. I have tried using SSLRequireSSL in the Directory field for Cocoon, along with SSLOptions +StrictRequire. This works fine with normal (non-tomcat) pages, but has no effect here. Cocoon is set up to send all .xml files to my ajp13 worker. Any help would be greatly appreciated. Bob. ** This email and any files and/or attachments transmitted with it are confidential and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please notify the Systems Manager at Thomson Holidays Ltd., by telephoning +44 (0)20 7387 9321, by reverse charge or collect call if you wish. You are not permitted to disclose the contents of this e-mail and of its attachments to any other person, nor make copies or transmit it to any other person without our written consent. This email has been swept for computer viruses. **
EA: Tomcat not shutting down properly
I have RH 7.0, java 1.3_02, Tomcat latest ( I think 3.21 ) Running it in VMWare installed on directory /usr/local/share/tomcat I start it as follows bin/startup.sh Everything works great, it starts fine and I can hit it without a problem but when i try to stop it bin/shutdown.sh I get the following error: java.net.NoRouteToHostException: No route to host at java.net.PlainSocketImpl.socketConnect( Native Method ) at java.net.PlainSocketImpl.doConnect( PlainSocketImpl.java:323 ) at java.net.PlainSocketImpl.connectToAddress(PlainImpl.java:123 ) ... ... When I'm at home on my 3 computers this doesnt happen it shuts down properly. But at work it always does this which means its still running. _ Get your FREE download of MSN Explorer at http://explorer.msn.com
Re: file reading and writing
On Wednesday, April 4, 2001, at 08:38 AM, William Kaufman wrote: A call to getServletContext().getAttribute("javax.servlet.context.tempdir") returns: jakarta-tomcat-3.2.1/work/localhost_8080 Did you intend to put output.txt in the temp directory? AFAIK, it won't go there by default: you'll need to specify that directory, like, String tmpdir = getServletContext().getAttribute("javax.servlet.context.tempdir"); File f = new File(tempdir, "output.txt"); DataOutputStream fileOut = new DataOutputStream( new FileOutputStream(f)); Thanks for the pointer to use File and a directory. It seems like it's starting with / as the directory, which is different from QuidProQuo, which launches with the server application's directory as the current directory. Is there any way to search for a file in a relative path, without putting it into a jar file? Brian Teutsch -Original Message- From: Brian Teutsch [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 03, 2001 8:45 PM To: [EMAIL PROTECTED] Subject: file reading and writing I am trying to control some file reading and writing. I'm trying to transition some servlets from QuidProQuo, and the primary difficult I am having is figuring out how to read and write a file. I've tried to debug everything I can think of, mostly the permissions on all the work directories (localhost_8080* all set to rwx). Getting accustomed to OS X, I know that permissions can be a big sticking point. Although it could be something else completely, despite the error. Here's the code I am trying in a simple servlet. -- DataOutputStream fileOut; fileOut = new DataOutputStream( new FileOutputStream("output.txt")); fileOut.writeBytes("test"); fileOut.close(); -- A call to getServletContext().getAttribute("javax.servlet.context.tempdir") returns: jakarta-tomcat-3.2.1/work/localhost_8080 And the servlet catches the exception: java.io.FileNotFoundException: output.txt (Permission denied) So, where does the servlet store things it wants to access? I'm just looking for something simple here, until I have the time to learn jar file access in general. Hopefully I'm just missing something in the development or config docs. Brian Teutsch
JSP errors
Hi, I installed Tomcat on Apache 1.3.9/Linux. The sample servlets are working fine. But the problem is with the JSPs. Some of them (snoop, plugin) are working great - but when I try to load the other JSPs I get the following errors: - Internal Servlet Error: org.apache.jasper.JasperException: Unable to compile class for JSP/usr/local/tomcat/work/localhost_8080%2Fexamples/_0002fjsp_0002fsessions_0002fcarts_0002ejspcarts_jsp_0.java:63: Class sessions.DummyCart not found. sessions.DummyCart cart = null; ^/usr/local/tomcat/work/localhost_8080%2Fexamples/_0002fjsp_0002fsessions_0002fcarts_0002ejspcarts_jsp_0.java:66: Class sessions.DummyCart not found. cart= (sessions.DummyCart) ^/usr/local/tomcat/work/localhost_8080%2Fexamples/_0002fjsp_0002fsessions_0002fcarts_0002ejspcarts_jsp_0.java:71: Class sessions.DummyCart not found. cart = (sessions.DummyCart) Beans.instantiate(this.getClass().getClassLoader(), "sessions.DummyCart"); ^3 errors-- Does anyone have an idea what I am doing wrong? Thanks, Nick
RE: Session problem -- sessions being recreated, browser related?
On Wed, 4 Apr 2001, Warren Crossing wrote: check ie.. it stores all cookies in a folder called cookies somewhere each cookie in a seperate file.. however theres an index.dat .. no idea what this does but you could delete it ( backup!! ) and all the cookies.. ( ??sorry?? but i've had this "general cookie issue" with netscrap and ie. ) Thanks for the response. I already tried this. But note that the session id cookie is not persistent, so it won't be stored there (or anywhere on the hard disk), it only exists in the browser's memory while it's running. Anyway, I do know that the cookie is getting there, because I set the browser to ask me if I want to accept cookies, and I see the cookie appearing each time. So the cookie is apparently being set fine by tomcat and being accepted fine by the browser, it looks like the problem is on the next request, tomcat isn't finding the cookie (and since this worked fine using a different web server/servlet container, the probably apparently has to do with apache/tomcat). (I haven't yet, but I plan to try to put something in place so I can get a better idea of exactly what's being passed back and forth on the request/response.) -Original Message- From: Milt Epstein [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 4 April 2001 6:07 AM To: [EMAIL PROTECTED] Subject: Session problem -- sessions being recreated, browser related? On a servlet-based application I have, I'm getting sporadic reports of problems from users. The symptoms are similar to what happens when cookies are disabled (but they aren't, because I had the users check). Basically, they can't get past the front page of the application, because it won't let them without a valid session (recall that session access is handled via cookies -- I'm not using URL Rewriting). And each time they try, Tomcat is creating a new session for them (and giving them a new cookie). Apparently, it's not recognizing the existing session. Now, this is only happening to a small subset of the users. I haven't isolated a pattern yet, but it may only be happening from certain machines. And the couple of machines I have found the problem on so far are both using Internet Explorer version 4.0. So that might be a factor. (I don't have 4.0 myself, but I did find an old copy of 3.02, and it works OK with that.) Oh, a bit of background -- we switched over from using Netscape Enterprise Server and ServletExec to Apache/Tomcat a couple of weeks ago, and the problem seems to have only started occurring since then. So it does appear to be something Apache/Tomcat-specific. Thanks. Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED]
RE: Session problem -- sessions being recreated, browser related?
We had a similar problem with cookies, but not the session cookie. Maybe this info will help nevertheless. We noticed the server wasn't seeing the cookie whenever we clicked on a form's submit button. What happened was, all our forms were JSP's and our form handlers were servlets. Even though the JSP's and servlets were in the same context, by default the cookies were set for the exact path that the JSP or servlet was in. E.g: our cookie was set for: domain/test/test.jsp and when we submitted the form, it was at: domain/servlet/test.handler the client wasn't sending the cookie because of the minor path difference, forcing the server to try to set a new one. We solved it by using the setPath("/") method when we created the cookie. This made the cookie "valid" for the whole server (root path and all subdirectories) - see Hunter, first ed. p204. Good Luck, -Steven On Wed, 4 Apr 2001, Milt Epstein wrote: Date: Wed, 4 Apr 2001 14:34:27 -0500 (CDT) From: Milt Epstein [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] Subject: RE: Session problem -- sessions being recreated, browser related? On Wed, 4 Apr 2001, Warren Crossing wrote: check ie.. it stores all cookies in a folder called cookies somewhere each cookie in a seperate file.. however theres an index.dat .. no idea what this does but you could delete it ( backup!! ) and all the cookies.. ( ??sorry?? but i've had this "general cookie issue" with netscrap and ie. ) Thanks for the response. I already tried this. But note that the session id cookie is not persistent, so it won't be stored there (or anywhere on the hard disk), it only exists in the browser's memory while it's running. Anyway, I do know that the cookie is getting there, because I set the browser to ask me if I want to accept cookies, and I see the cookie appearing each time. So the cookie is apparently being set fine by tomcat and being accepted fine by the browser, it looks like the problem is on the next request, tomcat isn't finding the cookie (and since this worked fine using a different web server/servlet container, the probably apparently has to do with apache/tomcat). (I haven't yet, but I plan to try to put something in place so I can get a better idea of exactly what's being passed back and forth on the request/response.) -Original Message- From: Milt Epstein [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 4 April 2001 6:07 AM To: [EMAIL PROTECTED] Subject: Session problem -- sessions being recreated, browser related? On a servlet-based application I have, I'm getting sporadic reports of problems from users. The symptoms are similar to what happens when cookies are disabled (but they aren't, because I had the users check). Basically, they can't get past the front page of the application, because it won't let them without a valid session (recall that session access is handled via cookies -- I'm not using URL Rewriting). And each time they try, Tomcat is creating a new session for them (and giving them a new cookie). Apparently, it's not recognizing the existing session. Now, this is only happening to a small subset of the users. I haven't isolated a pattern yet, but it may only be happening from certain machines. And the couple of machines I have found the problem on so far are both using Internet Explorer version 4.0. So that might be a factor. (I don't have 4.0 myself, but I did find an old copy of 3.02, and it works OK with that.) Oh, a bit of background -- we switched over from using Netscape Enterprise Server and ServletExec to Apache/Tomcat a couple of weeks ago, and the problem seems to have only started occurring since then. So it does appear to be something Apache/Tomcat-specific. Thanks. Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED]
Tomcat Configuration
Hi , I am running my servlet:" MarsDm" on the following set up: Apache 1.3.12 Tomcat 3.2.1 WinNt 4.0 When i started Apache Tomcat i do see the following error message on Tomcat 3.2 server console : " Ctx( /webSnm ): Mapping with unregistered servlet MarsDm" where webSnm is a dir under webApps and MarsDm is the servlet name... Could you please let me what could be reason for this error message??? Thanks in advance, Anil
Re: Tomcat 4.0 b2 and classloader
I've resolved my problem putting all common classes archives in directory common/lib Thanks, the product is amazing, but not so well documented. Dmitry R., [EMAIL PROTECTED] Chief Architect, MetricStream.COM Santa Clara, CA -Original Message- From:Dmitry Rogatkin [EMAIL PROTECTED] Sent:Tue, 03 Apr 2001 18:48:38 -0700 To: [EMAIL PROTECTED] Subject: Re: Tomcat 4.0 b2 and classloader The goal of JAXP is making a developer free from thinking what kind/vendor of XML parser he/she uses (in my understanding). Of course, I have copied these stuff to lib directory as got class not found messages. So, if I have 10 different applications running on Tomcat, then I have to have 10 copies of XML libraries. It isn't problem regarding disk space, but could be a problem regarding RAM. I like Sun's solution when you can copy some classes in trusted location and then use them without duplication for each application. Dmitry R., [EMAIL PROTECTED] Chief Architect, MetricStream.COM Santa Clara, CA -Original Message- From:Craig R. McClanahan [EMAIL PROTECTED] Sent:Tue, 3 Apr 2001 18:33:41 -0700 (PDT) To: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: Tomcat 4.0 b2 and classloader On Tue, 3 Apr 2001, Dmitry Rogatkin wrote: Great job Tomcat team! Now Tomcat starts much faster and private class loader provides excellent protection, but there is some bad thing. I didn't specify explicitly for my servlet/JSP XML parser classes, because they were already in class path. Now, I have to. I think, XML parser classes can be considered as system level classes without necessity specifying them for each servlet. Is there a possibility to provide some classes shared by all servlet/JSP including Tomcat itself? Or probably there is another solution? It turns out that which XML parser should be used is very much an emotional issue for many people :-). As shipped, Tomcat 4.0 does not expose an XML parser to all webapps, but this is easy to change: * If you want to use the JAXP RI parser, move jaxp.jar and crimson.jar from the jasper directory to the lib directory. * If you want to use Xerces (only version 1.3.1 has all the required support), put xerces.jar in the "lib" directory, and remove jaxp.jar and crimson.jar from "jasper". See the release notes for more info. Thanks. Dmitry R., [EMAIL PROTECTED] Chief Architect, MetricStream.COM Santa Clara, CA Craig McClanahan (who happens to be in Santa Clara this week for ApacheCon) IMPORTANT NOTE: You should also upgrade to Tomcat 4.0-beta-3 instead, to fix a security vulnerability that was reported in beta 2. ___ Visit http://www.visto.com/info, your free web-based communications center. Visto.com. Life on the Dot. ___ Visit http://www.visto.com/info, your free web-based communications center. Visto.com. Life on the Dot.
Caching
I am using Tomcat 3.3 running Apache 1.3.14 on an NT plaform. I am running my applications using Netscape 4.7 and IE 5.0. I have a lot of problems with caching. How other people handled the caching of the browsers. I set the properties to no-cache on botn NN and IE and set the HTTP header to no cache but I still have problems. It seems that I have to shutdown tomcat inorder to break the code. Any suggestions? Thanks Chris
Re: Security Problem with Tomcat
The best description I have seen is at http://www.securityfocus.com/bid/2518. That's Bugtraq ID 2518. I was using Tomcat 3.2.1 on UNIX systems, and it had the bug. I have updated to Tomcat 3.2.2b2, and the bug is gone there. I am using Tomcat directly, not through Apache. I do not know whether those using Tomcat through Apache have a vulnerability. Mike
Fuzzy Math
Hi all, George Bush just might call it just another example of "Al Gore's Fuzzy Math." We are experiencing bizarre bad math in a JSP (included below and enclosed). Our environment is as follows: Solaris 7 Tomcat 3.2.1 Apache 1.3.19 JDK1.2.2_006 or _007 (native_threads) The bad math is occuring in a variable called 'temp'. In the enclosed JSP (aptly named, "fuzzy_math.jsp"), we simply echo the variable 'temp' three times in the JSP. It correctly echos the calculated values of the variable for 10 reloads. But if you reload the JSP 1 more time (for a total of 11 reloads), the third echo of the 'temp' variable (labeled 'temp3') _will change_ from the correct mathmatical value (of 102) to an incorrect value (5)! (The mathematical value of the first two instances ('temp1' and 'temp2') are always correct.) Again, this bizarre behavior only occurs on the 11th reload (and remains at the incorrect number indefinitely). ---This 'fuzzy math' does *not* occur with JDK1.2.2_006 (green_threads) (in the same above environment).--- Here is the code (also enclosed). "temp3: %= temp + 2 %; Should be 102; br" is the problematic line.) -- %@ page language="java" % %! final int firstTimeOffset = 5; double minuteWidth; // Adjust value via hourWidth. % % // Instance variables (will be created for each servlet call) long temp = 10; long start = 20; // minutes after midnight long duration = 50; minuteWidth = 2; % html head meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /head body bgcolor="#FF" link="00" vlink="#00" alink="fcc470" % temp = (long) (firstTimeOffset + (start * minuteWidth)); % temp1: %= temp %; Should be 45. br % temp = (long) (duration * minuteWidth); % temp2: %= temp %; Should be 100. br temp3: %= temp + 2 %; Should be 102; br /body /html -- Details Summary: Fuzzy math occurs when: a. using JDK1.2.2_006 (native_threads) or JDK 1.2.2_007 (native_threads); b. standalone Tomcat 3.2.1 (in the above environment) unaltered downloaded binary 'Fuzzy math' does *not* occur when: a. running Tomcat 3.2.1 with JDK1.2.2_006 (green_threads); b. on JavaWebServer2.0 running JDK 1.2.2_006 (green *or* native threads) in the *same* OS environment as Tomcat, or in its own slightly different Solaris 7 patch level environment. I would greatly appreciate if someone could test this JSP on their system. Thanks! Jeff Crawford Boulder, CO fuzzy_math.jsp Peer Digital, Inc. Jeff Crawford Configuration Manager Senior Software Engineer 4001 Discovery Drive Suite 270 Boulder, CO 80303 Direct: 303 544-7547 Main: 303 415 3550 Fax: 303 415 3540 www.peerdigital.com fuzzy_math.jsp
context problem?
Hi, 1. I created a context in server.xml as follows Context path="/gamezone" docBase="/home/sdfong/public_html/rubyfong/gamezone" crossContext="false" debug="0" reloadable="true" /Context 2. I also added the following in mod_jk.conf that is included in httpd.conf Alias /gamezone "/home/sdfong/public_html/rubyfong/gamezone" Directory "/home/sdfong/public_html/rubyfong/gamezone" Options Indexes FollowSymLinks /Directory JkMount /gamezone/servlet/* ajp12 JkMount /gamezone/*.jsp ajp12 JkMount /gamezone/servlet/* ajp13 JkMount /gamezone/*.jsp ajp13 Location "/gamezone/WEB-INF/" AllowOverride None deny from all /Location Location "/gamezone/META-INF/" AllowOverride None deny from all /Location 3. But when I try access a page at http://agent.eng.uiowa.edu/~sdfong/rubyfong/gamezone/testex.jsp I got a 404 jsp not found error in the browser and I got the following message in jasper.log 2001-04-04 03:49:40 - Scratch dir for the JSP engine is: /usr/java/jakarta-tomcat-3.2.1/work/localhost_8080%2Fexamples 2001-04-04 03:49:40 - IMPORTANT: Do not modify the generated servlets 2001-04-04 03:50:26 - JspEngine -- /~sdfong/rubyfong/gamezone/testex.jsp 2001-04-04 03:50:26 -ServletPath: /~sdfong/rubyfong/gamezone/testex.jsp 2001-04-04 03:50:26 - PathInfo: null 2001-04-04 03:50:26 - RealPath: /usr/java/jakarta-tomcat-3.2.1/webapps/ROOT/~sdfong/rubyfong/gamezone/testex.jsp 2001-04-04 03:50:26 - RequestURI: /~sdfong/rubyfong/gamezone/testex.jsp 2001-04-04 03:50:26 -QueryString: null 2001-04-04 03:50:26 - Request Params: 2001-04-04 03:50:26 - Classpath according to the Servlet Engine is: /usr/java/jakarta-tomcat-3.2.1/webapps/ROOT/WEB-INF/classes The RealPath says it is looking in /usr/java/jakarta-tomcat-3.2.1/webapps for my directories and file. Could someone explain why it is doing this and how I could fix it. I've been struggling with this problem for almost a month now and am at my wits end. Thanks, Luoi -- D. Shun-Luoi Fong 821 Melrose Avenue Iowa City, IA 52246 email: [EMAIL PROTECTED] --- Colossions 2:8 See to it that no one takes you captive through philosophy or empty deception, according to the traditions of men, according to the elementary principles of the world, rather than according to Christ. ---
tomcat internal server error
Hi, maybe somebody can help me, my tomcat works fine at port 8080 but when I use it with apache (mod_jk) I get an internal server Error. The CLASS_PATH and PATH Variable is properly set. Here is the Error message from the mod_jk.log: [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker[jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker, Found a match ajp12[jk_worker.c (123)]: Into wc_get_worker_for_name ajp12[jk_worker.c (127)]: wc_get_worker_for_name, done found a worker[jk_ajp12_worker.c (223)]: Into jk_worker_t::get_endpoint[jk_ajp12_worker.c (121)]: Into jk_endpoint_t::service[jk_connect.c (108)]: Into jk_open_socket[jk_connect.c (115)]: jk_open_socket, try to connect socket = 6[jk_connect.c (124)]: jk_open_socket, after connect ret = -1[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 101[jk_ajp12_worker.c (134)]: In jk_endpoint_t::service, sd = -1[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1[jk_ajp12_worker.c (163)]: Into jk_endpoint_t::done thanks, Florian