welcome-file
How do I make Home.jsp my welcome-file instead of index.html I am using tomcat 3.2.1 only. Thanks, Jayesh _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: welcome-file
Add the name in a welcome-file tag in TOMCAT_HOME/conf/web.xml (At the end of web.xml) -Message d'origine- De : Jayesh [mailto:[EMAIL PROTECTED]] Envoy : vendredi 19 janvier 2001 09:34 : [EMAIL PROTECTED] Objet : welcome-file How do I make Home.jsp my welcome-file instead of index.html I am using tomcat 3.2.1 only. Thanks, Jayesh _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
How to use Taglibs in Jsps
Hi all, i am workin in linux. I have created directory in the /tomcat/webapps -- Myjsp --Jsp --classes --WEB-INF In the jsp direcotry i have all my jsps, and in the classses directory i have my classes(Tag Handler classes) in the WEB-INF directory i put *.tld files and web.xml (nothing in this). I changed the server.xml file to include Context path. when i run the jsp i am getting the following excepion please tell me the solution to get rid from this exception nternal Servlet Error: javax.servlet.ServletException: javax.servlet.jsp.tagext.TagAttributeInfo: method (Ljava/lang/String;ZLjava/lang/String;Z)V not found at java.lang.Throwable.(Throwable.java:96) at java.lang.Exception.(Exception.java:44) at javax.servlet.ServletException.(ServletException.java:161) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399) at javax.servlet.http.HttpServlet.service(HttpServlet.java:865) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210) 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:498) Root cause: java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo: method (Ljava/lang/String;ZLjava/lang/String;Z)V not found at org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute(TagLibraryInfoImpl.java:524) at org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:432) at org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:385) at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:233) at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:706) at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:116) at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215) at org.apache.jasper.compiler.Parser.parse(Parser.java:1077) at org.apache.jasper.compiler.Parser.parse(Parser.java:1042) at org.apache.jasper.compiler.Parser.parse(Parser.java:1038) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:182) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:152) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:164) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:865) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210) 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:498) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Any clue?
Error: 500 Location: /vittorio/loc_report.jsp Internal Servlet Error: java.lang.IllegalStateException: Response has already been committed at org.apache.tomcat.core.HttpServletResponseFacade.sendError(HttpServletRespon seFacade.java, Compiled Code) at org.apache.jasper.runtime.JspServlet.unknownException(JspServlet.java, Compiled Code) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled Code) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java, Compiled Code) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java, Compiled Code) at java.lang.Thread.run(Thread.java, Compiled Code) Thanks. Vittorio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
prblem of jrun
Hi All, i have a problem concern to NT anf JRUN i install the Jrun of NT base and did all setting the IIS. when i run the file by the address http://localhost:8000/ then jrun default page run and all demo program run by the localhot of jrun i want to run it on the IIS platfrom. my problem is when i give the IIS web sharing of a folder and put all .jsp files there when i run the file by the address of htp://localhost/foldername/filename.jsp then program runing fine if any jsp file has the jsp:bean or any beans code then it not run i submit some code here which i write. --- %@ page import = "num.NumberGuessBean" % jsp:useBean id="numguess" class="num.NumberGuessBean" scope="session"/jsp:setProperty name="numguess" property="*"/ htmlheadtitleNumber Guess/title/headbody bgcolor="white"font size=4 % if (numguess.getSuccess()) { % Congratulations! You got it. And after just %= numguess.getNumGuesses() % tries.p % numguess.reset(); % Care to a href="numguess.jsp"try again/a? % } else if (numguess.getNumGuesses() == 0) { % Welcome to the Number Guess game.p I'm thinking of a number between 1 and 100.p form method=get What's your guess? input type=text name=guess input type=submit value="Submit" /form % } else { % Good guess, but nope. Try b%= numguess.getHint() %/b. You have made %= numguess.getNumGuesses() % guesses.p I'm thinking of a number between 1 and 100.p form method=get What's your guess? input type=text name=guess input type=submit value="Submit" /form % } % /font/body/html -- i got the error message javax.servlet.ServletException: Found 4 semantic errors compiling "C:/JRun/jsm-default/services/jse/servlets/jsp/jsp/num/numguess.java": 17. import num.NumberGuessBean; - and the numguess.java file puted the location which the mention the path in error. pleasedohelp me. Thanks and Regards "affan"
Re: Any clue?
One clue if u are trying to access an element in the Enemeration object which is itself is null Marino Vittorio wrote: Error: 500 Location: /vittorio/loc_report.jsp Internal Servlet Error: java.lang.IllegalStateException: Response has already been committed at org.apache.tomcat.core.HttpServletResponseFacade.sendError(HttpServletRespon seFacade.java, Compiled Code) at org.apache.jasper.runtime.JspServlet.unknownException(JspServlet.java, Compiled Code) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled Code) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java, Compiled Code) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java, Compiled Code) at java.lang.Thread.run(Thread.java, Compiled Code) Thanks. Vittorio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Tomcat Not Shutting down properly
Hi, AfterI shutdown Tomcat once using it's shutdown script i am unable to run the server again till i restart my Linux Server. It gives a error message saying something like "Address already in use". I think it is not shutting down properly. How can I solve this problem? Or some work around? - Allan
RE: prblem of jrun
Not to be rude, but why are you posting a Jrun question to the Tomcat user list? Just curious, doesnt Allaire provide a list of their own? /Christopher -Original Message- From: Affan Alim [mailto:[EMAIL PROTECTED]] Sent: den 19 januari 2001 10:49 To: [EMAIL PROTECTED] Subject: prblem of jrun Hi All, i have a problem concern to NT anf JRUN i install the Jrun of NT base and did all setting the IIS. when i run the file by the address http://localhost:8000/ then jrun default page run and all demo program run by the localhot of jrun i want to run it on the IIS platfrom. my problem is when i give the IIS web sharing of a folder and put all .jsp files there when i run the file by the address of htp://localhost/foldername/filename.jsp then program runing fine if any jsp file has the jsp:bean or any beans code then it not run i submit some code here which i write. --- %@ page import = "num.NumberGuessBean" % jsp:useBean id="numguess" class="num.NumberGuessBean" scope="session"/ jsp:setProperty name="numguess" property="*"/ html headtitleNumber Guess/title/head body bgcolor="white" font size=4 % if (numguess.getSuccess()) { % Congratulations! You got it. And after just %= numguess.getNumGuesses() % tries.p % numguess.reset(); % Care to a href="numguess.jsp"try again/a? % } else if (numguess.getNumGuesses() == 0) { % Welcome to the Number Guess game.p I'm thinking of a number between 1 and 100.p form method=get What's your guess? input type=text name=guess input type=submit value="Submit" /form % } else { % Good guess, but nope. Try b%= numguess.getHint() %/b. You have made %= numguess.getNumGuesses() % guesses.p I'm thinking of a number between 1 and 100.p form method=get What's your guess? input type=text name=guess input type=submit value="Submit" /form % } % /font /body /html -- i got the error message javax.servlet.ServletException: Found 4 semantic errors compiling "C:/JRun/jsm-default/services/jse/servlets/jsp/jsp/num/numguess.java": 17. import num.NumberGuessBean; - and the numguess.java file puted the location which the mention the path in error. please do help me. Thanks and Regards "affan" - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Pointers on JDBCRealms
JDBCRealm.howto is in the documentation in tomcat but I perssonnaly never manage to make it works until the tomcat 3.2.1 secondly, you un comment the !-- UnComment the following and comment out the above to get a JDBC realm. Other options for driverName: driverName="oracle.jdbc.driver.OracleDriver" connectionURL="jdbc:oracle:thin:@ntserver:1521:ORCL" connectionName="scott" connectionPassword="tiger" driverName="org.gjt.mm.mysql.Driver" connectionURL="jdbc:mysql://localhost/authority" connectionName="test" connectionPassword="test" !--"connectionName" and "connectionPassword" are optional. -- and comment the !-- Check permissions using the simple xml file. You can plug more advanced authentication modules. RequestInterceptor className="org.apache.tomcat.request.SimpleRealm" debug="0" / -- othwise the simpleRealm overload teh JDBC And don't forget the driver into \lib @++ --- Vijay Prabhakar [EMAIL PROTECTED] wrote: My apologies...I didn't do that cut and paste quite the way I meant to :) -Original Message- From: Vijay Prabhakar Sent: Thursday, January 18, 2001 5:39 PM To: [EMAIL PROTECTED] Subject: RE: Pointers on JDBCRealms If you get such a document, could you pass it my way? I'm interested in that as well. Thanks! -Vijay -Original Message- From: Peter Giannopoulos [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 5:31 PM To: [EMAIL PROTECTED] Subject: Pointers on JDBCRealms Hello all, can anyone give me some pointers on documentation or even examples that make use of JDBCRealms in a clear and concise manner? Thanks in advance. -- Peter Giannopoulos,Software Developer Gemplus Software, Advanced Projects Group Phone: +15147322434 Fax: +15147322401 Gemplus Card International, Http://www.gemplus.fr --- __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Security and access on tomcat 3.2.1 standalone
I think no one answer me that question. --- Charles Sabourdin [EMAIL PROTECTED] wrote: Hi, I wonder if it was possible to limite access to a part of my web site to a spécifique DNs, IP adresse or ans IP branche? thanks :) __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Security and access on tomcat 3.2.1 standalone
You can create your own SocketFactory that extends the Generic Tomcat socket factory (org.apache.tomcat.net.ServerSocketFactory). You could create that socket factory in a way that it restricts to certain IPs. How you would manage the socket factory is up to you again (a property file would probably be the way to go... and even a GUI application to manage it if you want to get fancy ;o) Regards, Stefan -Original Message- From: Charles Sabourdin [mailto:[EMAIL PROTECTED]] Sent: 19. janar 2001 10:34 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Security and access on tomcat 3.2.1 standalone I think no one answer me that question. --- Charles Sabourdin [EMAIL PROTECTED] wrote: Hi, I wonder if it was possible to limite access to a part of my web site to a spcifique DNs, IP adresse or ans IP branche? thanks :) __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Ironical Sun's Servlet API - (multipartrequest)
Try http://freshmeat.net/projects/multipartrequest It can be used for multipart-form requests for both files and normal form elements. Examples are included. By the way, this class is GPL open source, so no great restrictions on commercial use. Cheers Jason Deepak C S wrote: hi JSP/Java gurus, It seems ironical that sun's api doesn't have a method to retrieve Multipart-form data or am I wrong??? I want to retrieve from a HTML-form..multipart data...that is name,age,particulars etc..along with a Photo(thru file upload). For Photo,I need to retrieve file contents and store in a file. Earlier,I had developed a similar soln in Perl...in which retrieving the FileType(using $f=$query-filname;) directly gives a file pointer(to Remote File) which can be used for reading File Content(just like a local file) and write to another file. Does servlet API have any such methods?? Or atleast IS THERE ANYWAY OF DOING THIS--retrieving both File and Form data from Single HTML form?? Can anybody pls throw light on this, Regards Deeps - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] -- Jason Pell Senior Analyst/Programmer - Web Developer Callista Software Services Pty Ltd 12 Gheringhap St, Geelong Victoria 3220 Australia Phone: 03 5227 8858 International: +61 3 5227 8858 Fax: 03 5227 8907 International: +61 3 5227 8907 E-mail [EMAIL PROTECTED] http://www.dssonline.com.au Customer Support Hotline: 1800 620 497 "Callista - the brightest solution in university management" --- Important Notice: The contents of this email transmission, including attachments, may be privileged and confidential. Any unauthorised use of the contents is expressly prohibited. If you have received this transmission in error, please advise the sender by return email or telephone immediately and destroy all versions. --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
AW: Ironical Sun's Servlet API
Jason Hunter did a good job at this. Available at: http://www.servlets.com/resources/com.oreilly.servlet/ -Ursprngliche Nachricht- Von: Deepak C S [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 19. Januar 2001 12:32 An: '[EMAIL PROTECTED]' Cc: '[EMAIL PROTECTED]' Betreff: Ironical Sun's Servlet API snip/ I want to retrieve from a HTML-form..multipart data...that is Does servlet API have any such methods?? Or atleast IS THERE ANYWAY OF DOING THIS--retrieving both File and Form data from Single HTML form?? snip/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Corrupted files on jakarta server ?
Hello, if have problems to retrieve tomcat 3.2.1 on the Jakarta website (http://jakarta.apache.org/builds/tomcat/release/v3.2.1/src/). I have downloaded it by three time and (.Z, .2 times .gz and one time .zip) and with the tar extraced form .Z and .gz i have always the same message during the extraction : x jakarta-tomcat-3.2.1-src/src/webpages/docs/api/javax/servlet/http/class-use/HttpServletRequest.html, 13710 bytes, 27 tape blocks tar: directory checksum error I have downloaded Tomcat with wget and Netscape and nothing seems wrong (no apparent problem during transfert, good size for the recepted files). Could somebody explain me what is wrong ? By the way is it possible to place signatures files with the distibutions ? With it it will be possible to test the integrity of the recepted files. thanks per advance, -- [EMAIL PROTECTED] INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41 06902 SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Dedicated JDBCRealm per web application?
Hi, Maybe this is a stupid question, but would it be possible to have a separate JDBCRealm (=set of users) per web application? According to the documentation a JDBC realm has to be configured in the server.xml i.e. server wide. The only way I see now is to set up a virtual host for each application and I guess I have to set up an additional web server like Apache to accomplish this. Seeing a question about mod_jk.so pop up about every hour on this mailing lists I hesitate to do so (given I do not have any experience with Apache). Can I solve this using Tomcat alone? And if so, would the use of SSL make any difference? I really appreciate any suggestions/comments. Wilko Hische - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Ironical Sun's Servlet API
Did you check http://www.servlets.com/resources/com.oreilly.servlet/index.html ? Regards, Wilko Deepak C S [EMAIL PROTECTED] on 19-01-2001 12:31:39 Please respond to [EMAIL PROTECTED] To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] cc: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] (bcc: Wilko Hische/HADV/NL) Subject: Ironical Sun's Servlet API hi JSP/Java gurus, It seems ironical that sun's api doesn't have a method to retrieve Multipart-form data or am I wrong??? I want to retrieve from a HTML-form..multipart data...that is name,age,particulars etc..along with a Photo(thru file upload). For Photo,I need to retrieve file contents and store in a file. Earlier,I had developed a similar soln in Perl...in which retrieving the FileType(using $f=$query-filname;) directly gives a file pointer(to Remote File) which can be used for reading File Content(just like a local file) and write to another file. Does servlet API have any such methods?? Or atleast IS THERE ANYWAY OF DOING THIS--retrieving both File and Form data from Single HTML form?? Can anybody pls throw light on this, Regards Deeps - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Pointers on JDBCRealms
Title: RE: Pointers on JDBCRealms Related Question I already have my own authentication/authorization scheme. I would like to be able to fetch my user-object which holds the authorization info by using: User user = (User)request.getUserPrincipal(); What interface or which class should be overriden to let my authentication class be used by tomcat directly. ie How do I make a acceptable RequestInterceptor. (On JRun this can be done overriding allaire.jrun.security.AuthenticationPrincipal, for full explanation see the article JRun Authentication by Karl Moss, www.allaire.com) /David Svensson JDBCRealm.howto is in the documentation in tomcat but I perssonnaly never manage to make it works until the tomcat 3.2.1 secondly, you un comment the !-- UnComment the following and comment out the above to get a JDBC realm. Other options for driverName: driverName=oracle.jdbc.driver.OracleDriver connectionURL=jdbc:oracle:thin:@ntserver:1521:ORCL connectionName=scott connectionPassword=tiger driverName=org.gjt.mm.mysql.Driver connectionURL=jdbc:mysql://localhost/authority connectionName=test connectionPassword=test !-- connectionName and connectionPassword are optional. -- and comment the !-- Check permissions using the simple xml file. You can plug more advanced authentication modules. RequestInterceptor className=org.apache.tomcat.request.SimpleRealm debug=0 / -- othwise the simpleRealm overload teh JDBC And don't forget the driver into \lib @++ --- Vijay Prabhakar [EMAIL PROTECTED] wrote: My apologies...I didn't do that cut and paste quite the way I meant to :) -Original Message- From: Vijay Prabhakar Sent: Thursday, January 18, 2001 5:39 PM To: [EMAIL PROTECTED] Subject: RE: Pointers on JDBCRealms If you get such a document, could you pass it my way? I'm interested in that as well. Thanks! -Vijay -Original Message- From: Peter Giannopoulos [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 5:31 PM To: [EMAIL PROTECTED] Subject: Pointers on JDBCRealms Hello all, can anyone give me some pointers on documentation or even examples that make use of JDBCRealms in a clear and concise manner? Thanks in advance. -- Peter Giannopoulos, Software Developer Gemplus Software, Advanced Projects Group Phone: +15147322434 Fax: +15147322401 Gemplus Card International, Http://www.gemplus.fr --- __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Any clue?
Not knowing what you are doing, I can only guess... I have gotten this type of exception when using a RequestDispatcher. If you are forwarding or maybe including a servlet or JSP, look at the servlet spec. for what you can and can not do with the output stream. --- Marino Vittorio [EMAIL PROTECTED] wrote: Error: 500 Location: /vittorio/loc_report.jsp Internal Servlet Error: java.lang.IllegalStateException: Response has already been committed at org.apache.tomcat.core.HttpServletResponseFacade.sendError(HttpServletRespon seFacade.java, Compiled Code) at org.apache.jasper.runtime.JspServlet.unknownException(JspServlet.java, Compiled Code) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled Code) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java, Compiled Code) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java, Compiled Code) at java.lang.Thread.run(Thread.java, Compiled Code) Thanks. Vittorio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] = Wyn Easton [EMAIL PROTECTED] __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: xml.jar
Title: RE: xml.jar You can modify your classpath in the tomcat.bat(or tomcat.sh?) file to move xml.jar to the end. java uses the first implementation of a class that it finds in the path. I moved the following line: set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\xml.jar below this one: set CLASSPATH=%CLASSPATH%;%cp% and I haven't had any problems. I had to do this since document.importNode is not implemented in xml.jar. I had to leave xml.jar in the classpath - since tomcat wouldn't run without it - apparently it implements something that xerces doesn't. Charlie -Original Message- From: Samson, Lyndon [IT] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 11:04 AM To: '[EMAIL PROTECTED]' Subject: xml.jar Tomcat use this ( its in the system Classpath created by tomcat.bat ) I need to install another XML parser for my servlet ( WEB-INF/libs ) however the classes in the system classpath seem to be loaded first, screwing up my installed parser. Is there anything I can do about this, ideally I'd like the xml.jar removed from the Class Loader searches for my servlet. thx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Pointers on JDBCRealms
Thanks. I have tried this, but unfortunately I can't help but feel that I REALLY have a week grasp on the concept of JDBCRealms and how I can get the MOST use out of them. -- Peter Giannopoulos,Software Developer Gemplus Software, Advanced Projects Group Phone: +15147322434 Fax: +15147322401 Gemplus Card International, Http://www.gemplus.fr --- -Original Message- From: Charles Sabourdin [mailto:[EMAIL PROTECTED]] Sent: January 19, 2001 5:33 AM To: [EMAIL PROTECTED] Subject: RE: Pointers on JDBCRealms JDBCRealm.howto is in the documentation in tomcat but I perssonnaly never manage to make it works until the tomcat 3.2.1 secondly, you un comment the !-- UnComment the following and comment out the above to get a JDBC realm. Other options for driverName: driverName="oracle.jdbc.driver.OracleDriver" connectionURL="jdbc:oracle:thin:@ntserver:1521:ORCL" connectionName="scott" connectionPassword="tiger" driverName="org.gjt.mm.mysql.Driver" connectionURL="jdbc:mysql://localhost/authority" connectionName="test" connectionPassword="test" !--"connectionName" and "connectionPassword" are optional. -- and comment the !-- Check permissions using the simple xml file. You can plug more advanced authentication modules. RequestInterceptor className="org.apache.tomcat.request.SimpleRealm" debug="0" / -- othwise the simpleRealm overload teh JDBC And don't forget the driver into \lib @++ --- Vijay Prabhakar [EMAIL PROTECTED] wrote: My apologies...I didn't do that cut and paste quite the way I meant to :) -Original Message- From: Vijay Prabhakar Sent: Thursday, January 18, 2001 5:39 PM To: [EMAIL PROTECTED] Subject: RE: Pointers on JDBCRealms If you get such a document, could you pass it my way? I'm interested in that as well. Thanks! -Vijay -Original Message- From: Peter Giannopoulos [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 5:31 PM To: [EMAIL PROTECTED] Subject: Pointers on JDBCRealms Hello all, can anyone give me some pointers on documentation or even examples that make use of JDBCRealms in a clear and concise manner? Thanks in advance. -- Peter Giannopoulos,Software Developer Gemplus Software, Advanced Projects Group Phone: +15147322434 Fax: +15147322401 Gemplus Card International, Http://www.gemplus.fr --- __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] BEGIN:VCARD VERSION:2.1 N:Giannopoulos;Peter FN:Peter Giannopoulos ORG:Gemplus Canada inc.;CTO Group TITLE:Software Developer NOTE;ENCODING=QUOTED-PRINTABLE:=0D=0A--- Codito, ergo sum - "I code, therefore I am" --- TEL;WORK;VOICE:514-732-2434 TEL;HOME;VOICE:N/A TEL;CELL;VOICE:N/A TEL;PAGER;VOICE:N/A TEL;WORK;FAX:514-732-2301 ADR;POSTAL:;;3 Place du Commerce;Ile des soeurs;Quebec;H3E 1H7;Canada LABEL;POSTAL;ENCODING=QUOTED-PRINTABLE:3 Place du Commerce=0D=0AIle des soeurs, Quebec H3E 1H7=0D=0ACanada URL:http://www.gemplus.com EMAIL;PREF;INTERNET:[EMAIL PROTECTED] REV:2926T190330Z END:VCARD - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Pointers on JDBCRealms
Which is your problem with JDBCRealm? Post an excertp of your server.xml file to help you isolate problems... Saludos , Ignacio J. Ortega -Mensaje original- De: Peter Giannopoulos [mailto:[EMAIL PROTECTED]] Enviado el: viernes 19 de enero de 2001 15:36 Para: [EMAIL PROTECTED]; [EMAIL PROTECTED] Asunto: RE: Pointers on JDBCRealms Thanks. I have tried this, but unfortunately I can't help but feel that I REALLY have a week grasp on the concept of JDBCRealms and how I can get the MOST use out of them. -- Peter Giannopoulos,Software Developer Gemplus Software, Advanced Projects Group Phone: +15147322434 Fax: +15147322401 Gemplus Card International, Http://www.gemplus.fr --- -Original Message- From: Charles Sabourdin [mailto:[EMAIL PROTECTED]] Sent: January 19, 2001 5:33 AM To: [EMAIL PROTECTED] Subject: RE: Pointers on JDBCRealms JDBCRealm.howto is in the documentation in tomcat but I perssonnaly never manage to make it works until the tomcat 3.2.1 secondly, you un comment the !-- UnComment the following and comment out the above to get a JDBC realm. Other options for driverName: driverName="oracle.jdbc.driver.OracleDriver" connectionURL="jdbc:oracle:thin:@ntserver:1521:ORCL" connectionName="scott" connectionPassword="tiger" driverName="org.gjt.mm.mysql.Driver" connectionURL="jdbc:mysql://localhost/authority" connectionName="test" connectionPassword="test" !--"connectionName" and "connectionPassword" are optional. -- and comment the !-- Check permissions using the simple xml file. You can plug more advanced authentication modules. RequestInterceptor className="org.apache.tomcat.request.SimpleRealm" debug="0" / -- othwise the simpleRealm overload teh JDBC And don't forget the driver into \lib @++ --- Vijay Prabhakar [EMAIL PROTECTED] wrote: My apologies...I didn't do that cut and paste quite the way I meant to :) -Original Message- From: Vijay Prabhakar Sent: Thursday, January 18, 2001 5:39 PM To: [EMAIL PROTECTED] Subject: RE: Pointers on JDBCRealms If you get such a document, could you pass it my way? I'm interested in that as well. Thanks! -Vijay -Original Message- From: Peter Giannopoulos [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 5:31 PM To: [EMAIL PROTECTED] Subject: Pointers on JDBCRealms Hello all, can anyone give me some pointers on documentation or even examples that make use of JDBCRealms in a clear and concise manner? Thanks in advance. -- Peter Giannopoulos,Software Developer Gemplus Software, Advanced Projects Group Phone: +15147322434 Fax: +15147322401 Gemplus Card International, Http://www.gemplus.fr --- __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Pointers on JDBCRealms
I forget to add that you should add into your web.xml (in the webapps) the security set to avoid anonymous login. security-constraint web-resource-collection web-resource-nameProtected Area/web-resource-name !-- Define the context-relative URL(s) to be protected -- url-pattern/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 -- !-- ce rappeller qu'il faut editer le fichier tomcat-users.xml dans le repertoire conf de tomcat/conf/tomcat-users.xml -- role-nametheRoleAccepted1/role-name role-nametheRoleAccepted2/role-name /auth-constraint /security-constraint !-- Default login configuration uses BASIC authentication -- !-- login-config auth-methodBASIC/auth-method realm-nameExample Basic Authentication Area/realm-name /login-config -- !-- Form-based login is enabled by default. If you wish to try Basic authentication, comment out the login-config section below and uncomment the one above. -- 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 --- Peter Giannopoulos [EMAIL PROTECTED] wrote: Thanks. I have tried this, but unfortunately I can't help but feel that I REALLY have a week grasp on the concept of JDBCRealms and how I can get the MOST use out of them. -- Peter Giannopoulos,Software Developer Gemplus Software, Advanced Projects Group Phone: +15147322434 Fax: +15147322401 Gemplus Card International, Http://www.gemplus.fr --- -Original Message- From: Charles Sabourdin [mailto:[EMAIL PROTECTED]] Sent: January 19, 2001 5:33 AM To: [EMAIL PROTECTED] Subject: RE: Pointers on JDBCRealms JDBCRealm.howto is in the documentation in tomcat but I perssonnaly never manage to make it works until the tomcat 3.2.1 secondly, you un comment the !-- UnComment the following and comment out the above to get a JDBC realm. Other options for driverName: driverName="oracle.jdbc.driver.OracleDriver" connectionURL="jdbc:oracle:thin:@ntserver:1521:ORCL" connectionName="scott" connectionPassword="tiger" driverName="org.gjt.mm.mysql.Driver" connectionURL="jdbc:mysql://localhost/authority" connectionName="test" connectionPassword="test" !--"connectionName" and "connectionPassword" are optional. -- and comment the !-- Check permissions using the simple xml file. You can plug more advanced authentication modules. RequestInterceptor className="org.apache.tomcat.request.SimpleRealm" debug="0" / -- othwise the simpleRealm overload teh JDBC And don't forget the driver into \lib @++ --- Vijay Prabhakar [EMAIL PROTECTED] wrote: My apologies...I didn't do that cut and paste quite the way I meant to :) -Original Message- From: Vijay Prabhakar Sent: Thursday, January 18, 2001 5:39 PM To: [EMAIL PROTECTED] Subject: RE: Pointers on JDBCRealms If you get such a document, could you pass it my way? I'm interested in that as well. Thanks! -Vijay -Original Message- From: Peter Giannopoulos [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 5:31 PM To: [EMAIL PROTECTED] Subject: Pointers on JDBCRealms Hello all, can anyone give me some pointers on documentation or even examples that make use of JDBCRealms in a clear and concise manner? Thanks in advance. -- Peter Giannopoulos,Software Developer Gemplus Software, Advanced Projects Group Phone: +15147322434 Fax: +15147322401 Gemplus Card International, Http://www.gemplus.fr --- __ Do You Yahoo!?
Directory Browsing in tomcat
Hi there Is there any way to deny acces to any directory in my webapp so that the user can't browse truw it. I have already done this in apache but if I type my url whith :8080 it shows me the directory listing thanks
Re: File Deletion----not working
Gee... where do I start? Does the username this is running under have the proper access to the file and to the direcory it's in? What OS is this? What's the result of f.canRead() or f.canWrite()? What about results of those calls for the parent directory? What does f.delete() return (does it return true, meaning it thinks the file was deleted)? dwh Deepak C S wrote: hi, I am trying to delete a file under filesystem in a bean using: File f=new File(path-to-file); f.delete(); But the File isnt getting deleted...Can anybody help?? thanx Deeps - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
mod_jk - undefined symbol
Hi there. I'm trying to get Tomcat 3.2.1 working with Apache 1.3.14 on a Red Hat 6.2 Linux Box running 2.2.18 Kernel. Both Apache and Tomcat were working on this box before I started messing with mod_jk. I downloaded the latest stable source (jakarta-tomcat-3.2.1-src) and compiled mod_jk as per the FAQ. I had the error message talked about in the FAQ, but the gcc line generated the mod_jk.so with no problems. I copied this file into my libexec dir, and included the mod_jk.conf-auto in my httpd.conf file. I stopped apache and tomcat, restarted tomcat, and then tried to start apache and got this error message: Starting httpd: Syntax error on line 8 of /usr/local/jakarta-tomcat-3.2.1/conf/mod_jk.conf-auto: Cannot load /usr/libexec/mod_jk.so into server: /usr/libexec/mod_jk.so: undefined symbol: jk_b_set_buffer_size Line 8 of the config file is: LoadModule jk_module libexec/mod_jk.so I'm guessing that there must have been a problem with the compile of mod_jk, but not knowing enough about the source I'm not in a good position to go poking around and trying to fix it. I did a search on the archive for jk_b_set_buffer_size but that turned up nothing. Any ideas? Eric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
How to find classes in an other directory than WEB-INF/classes ?
Bonjour, When many webapps use the same pakages, like utility classes, it would be interressant to share them to have only one copy of the class files. With Tomcat 3.1, if you add a list of paths in the shell variable "appClassPath", tomcat can find classes outside the directory WEB-INF/classes . eg. set appClassPath=%myPaths%;%appJars%;%sysJars% With tomcat 4.0, I try to give itomcat my list of paths which are already in the the shell variable "CLASSPATH" , but it does'nt work. My "little" modify in catalina.bat : set CP=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar set CLASSPATH=%CP%;%CLASSPATH% echo --Using CLASSPATH: %CLASSPATH% I read standardClassLoader.java and I understand (?) that the class loader try to find the classes in a list of "repositories". How to add "repository" in the standardClassLoader to allow it to find classes in an other directory than WEB-INF/classes ? Is it possible to specify paths in the node "loader" ? I have not found the documentation of the node "loader" of the configuration file "server.xml". Someone try to write it ? Thanks. Olivier Gattaz. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Pointers on JDBCRealms
Thanks. I appreciate all the help. -- Peter Giannopoulos,Software Developer Gemplus Software, Advanced Projects Group Phone: +15147322434 Fax: +15147322401 Gemplus Card International, Http://www.gemplus.fr --- -Original Message- From: Charles Sabourdin [mailto:[EMAIL PROTECTED]] Sent: January 19, 2001 10:18 AM To: [EMAIL PROTECTED] Subject: RE: Pointers on JDBCRealms I forget to add that you should add into your web.xml (in the webapps) the security set to avoid anonymous login. security-constraint web-resource-collection web-resource-nameProtected Area/web-resource-name !-- Define the context-relative URL(s) to be protected -- url-pattern/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 -- !-- ce rappeller qu'il faut editer le fichier tomcat-users.xml dans le repertoire conf de tomcat/conf/tomcat-users.xml -- role-nametheRoleAccepted1/role-name role-nametheRoleAccepted2/role-name /auth-constraint /security-constraint !-- Default login configuration uses BASIC authentication -- !-- login-config auth-methodBASIC/auth-method realm-nameExample Basic Authentication Area/realm-name /login-config -- !-- Form-based login is enabled by default. If you wish to try Basic authentication, comment out the login-config section below and uncomment the one above. -- 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 --- Peter Giannopoulos [EMAIL PROTECTED] wrote: Thanks. I have tried this, but unfortunately I can't help but feel that I REALLY have a week grasp on the concept of JDBCRealms and how I can get the MOST use out of them. -- Peter Giannopoulos,Software Developer Gemplus Software, Advanced Projects Group Phone: +15147322434 Fax: +15147322401 Gemplus Card International, Http://www.gemplus.fr --- -Original Message- From: Charles Sabourdin [mailto:[EMAIL PROTECTED]] Sent: January 19, 2001 5:33 AM To: [EMAIL PROTECTED] Subject: RE: Pointers on JDBCRealms JDBCRealm.howto is in the documentation in tomcat but I perssonnaly never manage to make it works until the tomcat 3.2.1 secondly, you un comment the !-- UnComment the following and comment out the above to get a JDBC realm. Other options for driverName: driverName="oracle.jdbc.driver.OracleDriver" connectionURL="jdbc:oracle:thin:@ntserver:1521:ORCL" connectionName="scott" connectionPassword="tiger" driverName="org.gjt.mm.mysql.Driver" connectionURL="jdbc:mysql://localhost/authority" connectionName="test" connectionPassword="test" !--"connectionName" and "connectionPassword" are optional. -- and comment the !-- Check permissions using the simple xml file. You can plug more advanced authentication modules. RequestInterceptor className="org.apache.tomcat.request.SimpleRealm" debug="0" / -- othwise the simpleRealm overload teh JDBC And don't forget the driver into \lib @++ --- Vijay Prabhakar [EMAIL PROTECTED] wrote: My apologies...I didn't do that cut and paste quite the way I meant to :) -Original Message- From: Vijay Prabhakar Sent: Thursday, January 18, 2001 5:39 PM To: [EMAIL PROTECTED] Subject: RE: Pointers on JDBCRealms If you get such a document, could you pass it my way? I'm interested in that as well. Thanks! -Vijay -Original Message- From: Peter Giannopoulos [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 5:31 PM To: [EMAIL PROTECTED] Subject: Pointers on JDBCRealms Hello all, can anyone give me some pointers on
Maximun Session allow
Hola Is there any way to change the maximun sessions that are allow in Tomcat?
How do I assing more memory to Tomcat
Hola I nedd to assing more memory to Tomcat how do -I do this. Where can I find more information about TOMCAT_OPS Thanks
RE: Corrupted files on jakarta server ?
I had the same problem with Tomcat 4. It looks like there are problems with files in the docs/user configuration area. I just forced tar to extract the files (-i) and checked to see where the errors were. It seems to function OK, but it would be nice to get it fixed. Thanks, Mike. -- Mike Braden CNE, MCP+I, MCSE, CCNA, Sun Comp 2k Enterprise E10k Utenzi 808 Aviation Parkway Suite 1100 PO Box 13479 Research Triangle Park, NC 27709 [EMAIL PROTECTED] -Original Message- From: Ludovic Maitre [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 6:43 AM To: [EMAIL PROTECTED] Subject: Corrupted files on jakarta server ? Hello, if have problems to retrieve tomcat 3.2.1 on the Jakarta website (http://jakarta.apache.org/builds/tomcat/release/v3.2.1/src/). I have downloaded it by three time and (.Z, .2 times .gz and one time .zip) and with the tar extraced form .Z and .gz i have always the same message during the extraction : x jakarta-tomcat-3.2.1-src/src/webpages/docs/api/javax/servlet/http/class-use/ HttpServletRequest.html, 13710 bytes, 27 tape blocks tar: directory checksum error I have downloaded Tomcat with wget and Netscape and nothing seems wrong (no apparent problem during transfert, good size for the recepted files). Could somebody explain me what is wrong ? By the way is it possible to place signatures files with the distibutions ? With it it will be possible to test the integrity of the recepted files. thanks per advance, -- [EMAIL PROTECTED] INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41 06902 SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Are there any Tomcat mirror sites?
I'm getting horrendously bad response time from tomcat.apache.org today and am trying to download some packages--the downloads keep failing. None of the tomcat files appear to be part of the regular Apache mirrors. Are there any mirrors out there that have the (current) Tomcat files, particularly the binaries? Particularly, say, builds/jakarta-tomcat/release/v3.2.1/bin/jakarta-tomcat-3.2.1.tar.gz? Much thanks, dwh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Are there any Tomcat mirror sites?
Denis Haskin wrote: I'm getting horrendously bad response time from tomcat.apache.org today and am trying to download some packages--the downloads keep failing. Whoops... that should have been "jakarta.apache.org"... FWIW... dwh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: mod_jk - undefined symbol
In compiling mod_jk you need to have all the *.c files accessible. Were you in the source/native/jk directory when you compiled and also referred to all the *.c it needs. When all are not included you will get the symbol errors. Mohamed -Original Message- From: Eric Paul [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 10:44 AM To: [EMAIL PROTECTED] Subject: mod_jk - undefined symbol Hi there. I'm trying to get Tomcat 3.2.1 working with Apache 1.3.14 on a Red Hat 6.2 Linux Box running 2.2.18 Kernel. Both Apache and Tomcat were working on this box before I started messing with mod_jk. I downloaded the latest stable source (jakarta-tomcat-3.2.1-src) and compiled mod_jk as per the FAQ. I had the error message talked about in the FAQ, but the gcc line generated the mod_jk.so with no problems. I copied this file into my libexec dir, and included the mod_jk.conf-auto in my httpd.conf file. I stopped apache and tomcat, restarted tomcat, and then tried to start apache and got this error message: Starting httpd: Syntax error on line 8 of /usr/local/jakarta-tomcat-3.2.1/conf/mod_jk.conf-auto: Cannot load /usr/libexec/mod_jk.so into server: /usr/libexec/mod_jk.so: undefined symbol: jk_b_set_buffer_size Line 8 of the config file is: LoadModule jk_module libexec/mod_jk.so I'm guessing that there must have been a problem with the compile of mod_jk, but not knowing enough about the source I'm not in a good position to go poking around and trying to fix it. I did a search on the archive for jk_b_set_buffer_size but that turned up nothing. Any ideas? Eric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: mod_jk - undefined symbol
I finally got it working on a sparc which did not have gcc on it, using the ucb c compiler/libs/includes instead of the other one they have on there. It was still painful, but it worked. -Original Message- From: Mike Braden [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 11:00 AM To: '[EMAIL PROTECTED]' Subject: RE: mod_jk - undefined symbol I gave up on getting mod_jk working on Solaris. I've had a similar problem with different builds. I'd make sure that before you build it that all of the object files are removed. My problem was that there was an object file in a different directory that wasn't removed. After checking all of the Makefiles and removing it and building again everything worked. I ran /usr/bin/file on the object file and it reported that it was an i386 object file - obviously not useful on a sparc. Thanks, Mike. -- Mike Braden CNE, MCP+I, MCSE, CCNA, Sun Comp 2k Enterprise E10k Utenzi 808 Aviation Parkway Suite 1100 PO Box 13479 Research Triangle Park, NC 27709 [EMAIL PROTECTED] -Original Message- From: Eric Paul [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 10:44 AM To: [EMAIL PROTECTED] Subject: mod_jk - undefined symbol Hi there. I'm trying to get Tomcat 3.2.1 working with Apache 1.3.14 on a Red Hat 6.2 Linux Box running 2.2.18 Kernel. Both Apache and Tomcat were working on this box before I started messing with mod_jk. I downloaded the latest stable source (jakarta-tomcat-3.2.1-src) and compiled mod_jk as per the FAQ. I had the error message talked about in the FAQ, but the gcc line generated the mod_jk.so with no problems. I copied this file into my libexec dir, and included the mod_jk.conf-auto in my httpd.conf file. I stopped apache and tomcat, restarted tomcat, and then tried to start apache and got this error message: Starting httpd: Syntax error on line 8 of /usr/local/jakarta-tomcat-3.2.1/conf/mod_jk.conf-auto: Cannot load /usr/libexec/mod_jk.so into server: /usr/libexec/mod_jk.so: undefined symbol: jk_b_set_buffer_size Line 8 of the config file is: LoadModule jk_module libexec/mod_jk.so I'm guessing that there must have been a problem with the compile of mod_jk, but not knowing enough about the source I'm not in a good position to go poking around and trying to fix it. I did a search on the archive for jk_b_set_buffer_size but that turned up nothing. Any ideas? Eric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: mod_jk - undefined symbol
Nope, I was in /native/apache1.3 when I did the compile as per the faq. However the command like I typed referred to the jk directory apxs -o mod_jk.so -I../jk -I/usr/local/jdk/include -I/usr/local/jdk/include/linux -c *.c ../jk/*.c The error that came back was: gcc -O2 -DLINUX=2 -DMOD_SSL=207101 -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite -fpic -DSHARED_MODULE -I/usr/include/apache -I../jk -I/usr/local/jdk/include -I/usr/local/jdk/include/linux -c ../jk/jk_jni_worker.c ../jk/jk_jni_worker.c:67: jni.h: No such file or directory ../jk/jk_jni_worker.c:764: warning: #warning --- ../jk/jk_jni_worker.c:765: warning: #warning NO JAVA 2 HEADERS! SUPPORT FOR JAVA 2 FEATURES DISABLED ../jk/jk_jni_worker.c:766: warning: #warning --- apxs:Break: Command failed with rc=1 Any other ideas? At 10:57 AM 1/19/2001, you wrote: In compiling mod_jk you need to have all the *.c files accessible. Were you in the source/native/jk directory when you compiled and also referred to all the *.c it needs. When all are not included you will get the symbol errors. Mohamed -Original Message- From: Eric Paul [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 10:44 AM To: [EMAIL PROTECTED] Subject: mod_jk - undefined symbol Hi there. I'm trying to get Tomcat 3.2.1 working with Apache 1.3.14 on a Red Hat 6.2 Linux Box running 2.2.18 Kernel. Both Apache and Tomcat were working on this box before I started messing with mod_jk. I downloaded the latest stable source (jakarta-tomcat-3.2.1-src) and compiled mod_jk as per the FAQ. I had the error message talked about in the FAQ, but the gcc line generated the mod_jk.so with no problems. I copied this file into my libexec dir, and included the mod_jk.conf-auto in my httpd.conf file. I stopped apache and tomcat, restarted tomcat, and then tried to start apache and got this error message: Starting httpd: Syntax error on line 8 of /usr/local/jakarta-tomcat-3.2.1/conf/mod_jk.conf-auto: Cannot load /usr/libexec/mod_jk.so into server: /usr/libexec/mod_jk.so: undefined symbol: jk_b_set_buffer_size Line 8 of the config file is: LoadModule jk_module libexec/mod_jk.so I'm guessing that there must have been a problem with the compile of mod_jk, but not knowing enough about the source I'm not in a good position to go poking around and trying to fix it. I did a search on the archive for jk_b_set_buffer_size but that turned up nothing. Any ideas? Eric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: FIXED: mod_jk - undefined symbol
I went back in to the source, renamed Makefile.linux to Makefile and did a make in the native/apache1.3 directory. This created a mod_jk.so first pass, no error messages. Problem with the command line in the FAQ was that it wasn't referencing my JDK for some reason. Thanks to everyone for the help in fixing this! Eric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Corrupted files on jakarta server ?
I noticed the other day that .tar.gz files I picked up were really just .tar .. confused the gunzip I was using.. [EMAIL PROTECTED] on 19/01/2001 10:52:33 Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: Ken X Horn) Subject: RE: Corrupted files on jakarta server ? I had the same problem with Tomcat 4. It looks like there are problems with files in the docs/user configuration area. I just forced tar to extract the files (-i) and checked to see where the errors were. It seems to function OK, but it would be nice to get it fixed. Thanks, Mike. -- Mike Braden CNE, MCP+I, MCSE, CCNA, Sun Comp 2k Enterprise E10k Utenzi 808 Aviation Parkway Suite 1100 PO Box 13479 Research Triangle Park, NC 27709 [EMAIL PROTECTED] -Original Message- From: Ludovic Maitre [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 6:43 AM To: [EMAIL PROTECTED] Subject: Corrupted files on jakarta server ? Hello, if have problems to retrieve tomcat 3.2.1 on the Jakarta website (http://jakarta.apache.org/builds/tomcat/release/v3.2.1/src/). I have downloaded it by three time and (.Z, .2 times .gz and one time .zip) and with the tar extraced form .Z and .gz i have always the same message during the extraction : x jakarta-tomcat-3.2.1-src/src/webpages/docs/api/javax/servlet/http/class-use/ HttpServletRequest.html, 13710 bytes, 27 tape blocks tar: directory checksum error I have downloaded Tomcat with wget and Netscape and nothing seems wrong (no apparent problem during transfert, good size for the recepted files). Could somebody explain me what is wrong ? By the way is it possible to place signatures files with the distibutions ? With it it will be possible to test the integrity of the recepted files. thanks per advance, -- [EMAIL PROTECTED] INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41 06902 SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: File Deletion----not working
Hello, Contact Narayanan [EMAIL PROTECTED]. He will give U solution. - Original Message - From: Deepak C S [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, January 19, 2001 8:31 PM Subject: File Deletionnot working hi, I am trying to delete a file under filesystem in a bean using: File f=new File(path-to-file); f.delete(); But the File isnt getting deleted...Can anybody help?? Regards Nagappan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Tomcat Not Shutting down properly
Kill all the threads, for some reason, the shutdown script doesn't seem to kill them all. (IBM 1.3 JDK) Allan M wrote: Hi, After I shutdown Tomcat once using it's shutdown script i am unable to run the server again till i restart my Linux Server. It gives a error message saying something like "Address already in use". I think it is not shutting down properly. How can I solve this problem? Or some work around? - Allan -- --- Geoff Lane [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: How do I assing more memory to Tomcat
The TOMCAT_OPTS are really just JVM parameters. e.g.: TOMCAT_OPTS="-Xms16m -Xmx128m -native" or TOMCAT_OPTS="-Xms16m -Xmx128m" Run 'java -X' to get the options that your JVM supports. Carlos Lpez wrote: Hola I nedd to assing more memory to Tomcat how do -I do this. Where can I find more information about TOMCAT_OPS Thanks -- --- Geoff Lane [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Tomcat 4.0 and mod_webapp eating part of my URL.
When I request the following URL: http://myhost/ires/en-US/html/HomePage The "en" part of my URL is getting lost somewhere. I get the following in my apache_log.txt: 2001-01-19 09:42:39 WarpContext[/website]: Mapping contextPath='/website' with requestURI='/ires/en-US/html/HomePage' and relativeURI='-US/html/HomePage' Why isn't the "en" part of the relativeURI? Here is the appropriate entry in httpd.conf that does the ires mapping: WebAppMount website warpConnection /ires/ Is this a bug? or am I configuring something wrong? Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Performance Benchmarks
I am looking at moving from our current application servers to a new servlet/jsp container and would like to know if anybody out there has done any testing in this area or if you know a site this has published benchmarks (current). Thnaks in advance John Cooke Qtopics, Inc. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Performance Benchmarks
Gordon Cooke wrote: I am looking at moving from our current application servers to a new servlet/jsp container and would like to know if anybody out there has done any testing in this area or if you know a site this has published benchmarks (current). Thnaks in advance John Cooke Qtopics, Inc. [EMAIL PROTECTED] Benchmarks at www.orionserver.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: welcome-file
I tried that before. It does not work. -Original Message- From: Khaled Ben Mohamed [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 12:45 AM To: '[EMAIL PROTECTED]' Subject: RE: welcome-file Add the name in a welcome-file tag in TOMCAT_HOME/conf/web.xml (At the end of web.xml) -Message d'origine- De : Jayesh [mailto:[EMAIL PROTECTED]] Envoy : vendredi 19 janvier 2001 09:34 : [EMAIL PROTECTED] Objet : welcome-file How do I make Home.jsp my welcome-file instead of index.html I am using tomcat 3.2.1 only. Thanks, Jayesh _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Pointers on JDBCRealms
--- Peter Giannopoulos [EMAIL PROTECTED] wrote: Thanks. I appreciate all the help. De nada, I only want to insiste on the fact that it work only since the 3.2.1 __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Error: 500 -- Please Help ..............
Hi all. Help needed here for an amatuer, should be easy enough to fix. Im working on an online car park booking system for a project for uni. Here is my problem. I have a frames page, index.html, for the booking system in webapps\Admin. One of the pages within the frames page is called view_parking_cost.jsp. Within view_parking_cost.jsp, I have the following JSP code declared at the top. %@ page import="parkingPrice.ParkingPriceHandler" % jsp:useBean id="parkingpricebean" scope="page" class="parkingPrice.ParkingPriceHandler" / jsp:setProperty name="parkingpricebean" property="*" / In the webapps\Admin\Web-inf\Classes\parkingPrice folder I have written the following .java file and compiled it to .class using JDK. Name of file = "ParkingPriceHandler.java" package parkingPrice; public class ParkingPriceHandler{ private String thePrice; public ParkingPriceHandler() { thePrice = null; } public void setPrice( String Price ) { thePrice = Price; } public String getPrice() { return thePrice; } } When I start the server and point my webbrowser to http://localhost:8080/Admin/index.html and then go to the set_parking_price.jsp page I get the following error: Error: 500 Location: /Admin/set_parking_cost.jsp Internal Servlet Error: org.apache.jasper.JasperException: Cannot find any information on property 'Price' in a bean of type 'parkingPrice.ParkingPriceHandler' at org.apache.jasper.runtime.JspRuntimeLibrary.getReadMethod(JspRuntimeLibrary.java, Compiled Code) at org.apache.jasper.compiler.GetPropertyGenerator.generate(GetPropertyGenerator.java:101) at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.generate(JspParseEventListener.java, Compiled Code) at org.apache.jasper.compiler.JspParseEventListener.generateAll(JspParseEventListener.java, Compiled Code) at org.apache.jasper.compiler.JspParseEventListener.endPageProcessing(JspParseEventListener.java:175) at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled Code) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:152) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:164) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code) at java.lang.Thread.run(Thread.java, Compiled Code) It says it cannot find any info on variable Price, though I have declared it. Thanks in advance, Mary. _ Get your FREE download of MSN Explorer at http://explorer.msn.com Hi all. Help needed here for an amatuer, should be easy enough to fix. Im working on an online car park booking system for a project for uni. Here is my problem. I have a frames page, index.html, for the booking system in webapps\Admin. One of the pages within the frames page is called view_parking_cost.jsp. Within view_parking_cost.jsp, I have the following JSP code declared at the top. %@ page import="parkingPrice.ParkingPriceHandler" % jsp:useBean id="parkingpricebean" scope="page" class="parkingPrice.ParkingPriceHandler" /jsp:setProperty name="parkingpricebean" property="*" / <%@ page import="parkingPrice.ParkingPriceHandler" %> In the webapps\Admin\Web-inf\Classes\parkingPrice folder I have written the following .java file and compiled it to .class using JDK. Name of file = "ParkingPriceHandler.java" package parkingPrice; public class ParkingPriceHandler{ private String thePrice; public ParkingPriceHandler() { thePrice = null; } public void setPrice( String Price ) { thePrice = Price; } public String getPrice() { return thePrice; } } In the Server.xml file I have added this code for the context. docBase="webapps/Admin" debug="0" reloadable="true" trusted="false"
Re: How do I assing more memory to Tomcat
Carlos Lpez wrote: I nedd to assing more memory to Tomcat how do -I do this. Where can I find more information about TOMCAT_OPS Easy - run "java" without any parameters; I guess what you want is "java -X"... then set TOMCAT_OPTS to "-XmxsomethingMB". (if you check tomcat.bat or tomcat.sh, TOMCAT_OPTS specifies the commandline options that are used for the JVM used to start Tomcat...) -- Kurt Bernhard Pruenner --- Haendelstrasse 17 --- 4020 Linz --- Austria Music: http://www.mp3.com/Leak --- Work: http://www.ssw.uni-linz.ac.at ...It might be written "Mindfuck", but it's spelt "L-A-I-N"... np: Leak - Haze - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: How do I assing more memory to Tomcat
Thank a lot. Where is the best place to put TOMCAT_OPS? then 16m and 128 are Megabytes.?? The machine I install tomcat to has 2Gigabytes off memory, 500 Mg are asiggn to Sybase, the server will work as dns and mail server, what would by a optimun number off bytes to assign to tomcat, we tink our site will have like 4000 user? - Original Message - From: Geoff Lane [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 19, 2001 10:29 AM Subject: Re: How do I assing more memory to Tomcat The TOMCAT_OPTS are really just JVM parameters. e.g.: TOMCAT_OPTS="-Xms16m -Xmx128m -native" or TOMCAT_OPTS="-Xms16m -Xmx128m" Run 'java -X' to get the options that your JVM supports. Carlos Lpez wrote: Hola I nedd to assing more memory to Tomcat how do -I do this. Where can I find more information about TOMCAT_OPS Thanks -- --- Geoff Lane [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Corrupted files on jakarta server ?
Title: RE: Corrupted files on jakarta server ? You need to use GNU tar. j\s -Original Message- From: Ludovic Maitre [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 6:43 AM To: [EMAIL PROTECTED] Subject: Corrupted files on jakarta server ? Hello, if have problems to retrieve tomcat 3.2.1 on the Jakarta website (http://jakarta.apache.org/builds/tomcat/release/v3.2.1/src/). I have downloaded it by three time and (.Z, .2 times .gz and one time .zip) and with the tar extraced form .Z and .gz i have always the same message during the extraction : x jakarta-tomcat-3.2.1-src/src/webpages/docs/api/javax/servlet/http/class-use/HttpServletRequest.html, 13710 bytes, 27 tape blocks tar: directory checksum error I have downloaded Tomcat with wget and Netscape and nothing seems wrong (no apparent problem during transfert, good size for the recepted files). Could somebody explain me what is wrong ? By the way is it possible to place signatures files with the distibutions ? With it it will be possible to test the integrity of the recepted files. thanks per advance, -- [EMAIL PROTECTED] INRIA - 2004 route des lucioles - BP 93 Tel: (33/0) 4 92 38 50 41 06902 SOPHIA-ANTIPOLIS cedex (France) Fax: (33/0) 4 92 38 76 02 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Error: 500 -- Please Help ..............
Hi It looks to me as if you haven't actually stuck to the bean designpattern. Your variable is called thePrice so your getter and setter Methods should actually be called getThePrice() and setThePrice() I'm assuming the introstpector can't find them and therefor cannot use em. STefan
mod_jk.so
Where I get mod_jk.so for linux?? Thanks __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: How do I assing more memory to Tomcat
I put that in a wrapper script that I use to start and stop tomcat using the script that is shipped with the tomcat stuff. I also set the CLASSPATH, JAVA_HOME, TOMCAT_HOME, etc in that script so that it is really easy to just run the script and not have to worry about setting environment variables. Carlos Lpez wrote: Thank a lot. Where is the best place to put TOMCAT_OPS? then 16m and 128 are Megabytes.?? The machine I install tomcat to has 2Gigabytes off memory, 500 Mg are asiggn to Sybase, the server will work as dns and mail server, what would by a optimun number off bytes to assign to tomcat, we tink our site will have like 4000 user? - Original Message - From: Geoff Lane [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 19, 2001 10:29 AM Subject: Re: How do I assing more memory to Tomcat The TOMCAT_OPTS are really just JVM parameters. e.g.: TOMCAT_OPTS="-Xms16m -Xmx128m -native" or TOMCAT_OPTS="-Xms16m -Xmx128m" Run 'java -X' to get the options that your JVM supports. Carlos Lpez wrote: Hola I nedd to assing more memory to Tomcat how do -I do this. Where can I find more information about TOMCAT_OPS Thanks -- --- Geoff Lane [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] -- Geoff Lane [EMAIL PROTECTED] (650) 969-5000 x104 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
I don't want cached pages
I'm developing a website using Tomcat but I have a little problem. I use a page that calls itself passing some parameters and based on the parameters passed shows certain result. The first time I call the page the URL looks like this: http://myHost:21968/Demos/Formating.jsp and I get the "original page" After calling itself with a parameter, the URL look like this: http://myHost:21968/Demos/Formating.jsp?parameter=123 and I get the "result page" If I try to get the original page typing http://myHost:21968/Demos/Formating.jsp in the browser, what I get is the last page showing a result. It happens even if I call the page from a different computer. This is a serious problem because it means that someone accessing the site for the first time, would see the result page generated by the parameters passed by the last visitor instead of the original page. The only way I've found to solve this is restarting Tomcat's service. Doing so I won't get the result page but the original page. But of course, I don't want to be restarting Tomcat's service everytime a visitor wants to access the site. Does anyone have a solution to this problem?
Re: mod_jk.so
You need to download the source and compile it yourself. The mod_jk faq has info on how to do this, but some of it doesn't exactly work (as I found out today). Perhaps the best solution is untar the source, change to the native/apache1.3 directory, rename Makefile.linux to Makefile, set/export your JAVA_HOME variable to point to your JDK installation (usually something like /usr/java/jdk1.3) and type make. Hope this helps! Eric At 12:49 PM 1/19/2001, you wrote: Where I get mod_jk.so for linux?? Thanks __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
unable to access servlets through apache
Hello All, I'm trying to sort out a configuration issue with tomcat and apache. Running tomcat3.2.1 and apache1.3.14 on RH linux. Using the examples context: I can reach the SnoopServlet at http://localhost/examples/servlet/snoop and http://localhost:8080/examples/snoop but not http://localhost/examples/snoop This is despite having the section in examples/WEB-INF/web.xml: servlet servlet-name snoop /servlet-name servlet-class SnoopServlet /servlet-class /servlet servlet-mapping servlet-name snoop /servlet-name url-pattern /snoop /url-pattern /servlet-mapping I don't understand why when apache sees /examples/snoop it doesn't map to the servlet. Can someone explain this to me an suggest a solution? Thanks! -- john === John Cartwright Professional Research Assistant / Associate Scientist CIRES, SEG/NGDC/NOAA (303) 497-6284 [EMAIL PROTECTED] === - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: I don't want cached pages
I'd do something insane like.. meta http-equiv="PRAGMA" content="NO-CACHE" Not guaranteed to work for every browser and I can't remember what the other thing you can set is, but if you did a search for the above tag in the search engine of your choice I'm sure you'll be able to find more info. /bill Please respond to [EMAIL PROTECTED]; Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: Bill Fellows/MO/americancentury) Subject: I don't want cached pages I'm developing a website using Tomcat but I have a little problem. I use a page that calls itself passing some parameters and based on the parameters passed shows certain result. The first time I call the page the URL looks like this: http://myHost:21968/Demos/Formating.jsp and I get the "original page" After calling itself with a parameter, the URL look like this: http://myHost:21968/Demos/Formating.jsp?parameter=123 and I get the "result page" If I try to get the original page typing http://myHost:21968/Demos/Formating.jsp in the browser, what I get is the last page showing a result. It happens even if I call the page from a different computer. This is a serious problem because it means that someone accessing the site for the first time, would see the result page generated by the parameters passed by the last visitor instead of the original page. The only way I've found to solve this is restarting Tomcat's service. Doing so I won't get the result page but the original page. But of course, I don't want to be restarting Tomcat's service everytime a visitor wants to access the site. Does anyone have a solution to this problem? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
AW: Re: A little off topic but Q: Control Chars in XML
Try \u where is the unicode character code. Just guessing, so you can email the list if it works. Actually what I ended up doing was after a little searching and tinkering between myself and Randy Layman we found that #nn; specifies an ascii char code in XML(Randy found this on w3c.org if anyone is interested). The nn digit value is actually in decimal. So for a \n(line feed) I used #10; to insert a newline in our xml definition and the StringTokenizer the parsed value(I'm outputting PDF not HTML so \n is meaningless). --- Michael Wentzel Software Developer A HREF="http://www.aswethink.com"Software As We Think/A A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Can't get My JSP to load
I finnally got apache and tomcat to work together. I can get tomcat jsp examples to work but I can't get my examples to work. If anybody has any Ideas why I would appreciate any input . Thanks Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: I don't want cached pages
Add these two lines to your Servlet or JSP: response.setHeader("Cache-Control", "no-cache"); response.setHeader("Pragma", "no-cache"); Not guaranteed to work in every browser. Regards, Craig -Original Message- From: Hugo Lara [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 11:12 AM To: [EMAIL PROTECTED] Subject: I don't want cached pages I'm developing a website using Tomcat but I have a little problem. I use a page that calls itself passing some parameters and based on the parameters passed shows certain result. The first time I call the page the URL looks like this: http://myHost:21968/Demos/Formating.jsp and I get the "original page" After calling itself with a parameter, the URL look like this: http://myHost:21968/Demos/Formating.jsp?parameter=123 and I get the "result page" If I try to get the original page typing http://myHost:21968/Demos/Formating.jsp in the browser, what I get is the last page showing a result. It happens even if I call the page from a different computer. This is a serious problem because it means that someone accessing the site for the first time, would see the result page generated by the parameters passed by the last visitor instead of the original page. The only way I've found to solve this is restarting Tomcat's service. Doing so I won't get the result page but the original page. But of course, I don't want to be restarting Tomcat's service everytime a visitor wants to access the site. Does anyone have a solution to this problem? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Using service package of tomcat
I'd like to use the service package part of tomcat for my own ends of wrapping a java daemon. However, from what I can tell, it isn't properly detaching or handling signals. Is it even used for launching tomcat in the current builds? I have not yet contacted the author. Is this the best list for a source code question? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Tomcat Not Shutting down properly
There was some earlier traffic about what causes this. I think it said you may succeed in shutting down Tomcat after trying the shutdown script a few times. You shouldn't have to do something as drastic as rebooting. At worst you'll have to find the offending processes yourself and `kill` them (I'd start with the leader). You can tell whether you've successfully stopped Tomcat in several ways. One is to get a fairly complete `ps` listing and grep through it for indicative things. Another is `netstat -a` and look for the LISTENer. Another revealing command is `lsof`. Good luck, Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: I don't want cached pages
I found this somewhere (don't recall where) to prevent caching in the browser. %response.setDateHeader("Expires", 0);response.setHeader("Pragma", "no-cache");if ( request.getProtocol().equals("HTTP/1.1") ) response.setHeader("Cache-Control", "no-cache");% If you tried accessing the page from a browser on 2 different machines and you are getting what you describe then it is not a browser caching problem but rather a pb on the server. Thierry -Original Message-From: Hugo Lara [mailto:[EMAIL PROTECTED]]Sent: Friday, January 19, 2001 2:12 PMTo: [EMAIL PROTECTED]Subject: I don't want cached pages I'm developing a website using Tomcat but I have a little problem. I use a page that calls itself passing some parameters and based on the parameters passed shows certain result. The first time I call the page the URL looks like this: http://myHost:21968/Demos/Formating.jsp and I get the "original page" After calling itself with a parameter, the URL look like this: http://myHost:21968/Demos/Formating.jsp?parameter=123 and I get the "result page" If I try to get the original page typing http://myHost:21968/Demos/Formating.jsp in the browser, what I get is the last page showing a result. It happens even if I call the page from a different computer. This is a serious problem because it means that someone accessing the site for the first time, would see the result page generated by the parameters passed by the last visitor instead of the original page. The only way I've found to solve this is restarting Tomcat's service. Doing so I won't get the result page but the original page. But of course, I don't want to be restarting Tomcat's service everytime a visitor wants to access the site. Does anyone have a solution to this problem?
Re: mod_jk.so
Do a locate/find to figure out where your copy of apxs really lives and edit the Makefile to call it from the right location. Eric At 02:41 PM 1/19/2001, you wrote: Hi Eric, I make this, but the following error occurred: make: /usr/sbin/apxs: command not found What it can be this? --- Eric Paul [EMAIL PROTECTED] escreveu: You need to download the source and compile it yourself. The mod_jk faq has info on how to do this, but some of it doesn't exactly work (as I found out today). Perhaps the best solution is untar the source, change to the native/apache1.3 directory, rename Makefile.linux to Makefile, set/export your JAVA_HOME variable to point to your JDK installation (usually something like /usr/java/jdk1.3) and type make. Hope this helps! Eric At 12:49 PM 1/19/2001, you wrote: Where I get mod_jk.so for linux?? Thanks __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Installing tomcat on Windows 2000
Just on the side. I totally agree with Erik. Classpath should never be set globally since it just tends to screw up deployment later on. (Especially in distributed enviroments being developed on one machine only.) And it is not true that the classpath has to be set globally. Just look in the tomcat.bat or startup.bat and add the classpath there. If I recall correctly this should be done with the variables JAVA_HOME and TOMCAT_HOME. (Please correct me if I'm wrong) Stefan
Re: mod_jk.so
Hi against Eric, I located mine apxs and now the following error occurred: sorry, no DSO support for Apache avaliable under your plataform. Where I configures the DSO support for the apache? --- Eric Paul [EMAIL PROTECTED] escreveu: Do a locate/find to figure out where your copy of apxs really lives and edit the Makefile to call it from the right location. Eric At 02:41 PM 1/19/2001, you wrote: Hi Eric, I make this, but the following error occurred: make: /usr/sbin/apxs: command not found What it can be this? --- Eric Paul [EMAIL PROTECTED] escreveu: You need to download the source and compile it yourself. The mod_jk faq has info on how to do this, but some of it doesn't exactly work (as I found out today). Perhaps the best solution is untar the source, change to the native/apache1.3 directory, rename Makefile.linux to Makefile, set/export your JAVA_HOME variable to point to your JDK installation (usually something like /usr/java/jdk1.3) and type make. Hope this helps! Eric At 12:49 PM 1/19/2001, you wrote: Where I get mod_jk.so for linux?? Thanks __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: web.xml config for taglib
It looks like you need to tell tomcat where to find the tld. This should be done in your C:\utils\Apache\htdocs\jsp\WEB-INF\web.xml file. Here's an example from my web.xml: taglib taglib-uri/impact.tld/taglib-uri taglib-location/WEB-INF/impact.tld/taglib-location /taglib Troy -Original Message- From: Regis Muller [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 8:45 AM To: [EMAIL PROTECTED] Subject: web.xml config for taglib When I try to put my tag files outside of tomcat/webapps/ROOT directory (like in apache/htdocs/jsp) I got this error : org.apache.jasper.compiler.CompileException: C:\utils\Apache\htdocs\jsp\SimpleExample.jsp(12,0) Unable to open taglibrary csajsp-taglib.tld : C:\utils\Apache\htdocs\jsp\WEB-INF\web.xml (The system cannot find the path specified) is there something to be put in this yet inexistant web.xml file ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
rmi amd tomcat
Hi there, Does anyone know how to set up tomcat3.2.1 to run servlet which look up remote object using rmi? Wendy _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: mod_jk.so
sounds like you should download the Apache sources and compile it with DSO support this is the configuration string that I use when I compile apache ./configure \ --enable-module=ssl \ --enable-module=proxy \ --enable-shared=proxy \ --enable-module=rewrite \ --enable-shared=rewrite \ --prefix=/home/pakana/apache \ --enable-shared=ssl \ --enable-rule=SHARED_CORE \ --enable-rule=SHARED_CHAIN \ --enable-module=so \ --enable-module=most Filip ~ Namaste - I bow to the divine in you. ~ Filip Hanik Technical Architect [EMAIL PROTECTED] - Original Message - From: "Andr Alves" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 19, 2001 11:58 AM Subject: Re: mod_jk.so Hi against Eric, I located mine apxs and now the following error occurred: sorry, no DSO support for Apache avaliable under your plataform. Where I configures the DSO support for the apache? --- Eric Paul [EMAIL PROTECTED] escreveu: Do a locate/find to figure out where your copy of apxs really lives and edit the Makefile to call it from the right location. Eric At 02:41 PM 1/19/2001, you wrote: Hi Eric, I make this, but the following error occurred: make: /usr/sbin/apxs: command not found What it can be this? --- Eric Paul [EMAIL PROTECTED] escreveu: You need to download the source and compile it yourself. The mod_jk faq has info on how to do this, but some of it doesn't exactly work (as I found out today). Perhaps the best solution is untar the source, change to the native/apache1.3 directory, rename Makefile.linux to Makefile, set/export your JAVA_HOME variable to point to your JDK installation (usually something like /usr/java/jdk1.3) and type make. Hope this helps! Eric At 12:49 PM 1/19/2001, you wrote: Where I get mod_jk.so for linux?? Thanks __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: I don't want cached pages
Mr. Coit is correct. Is a proxy server involved? Chances are your pages are being cached there. Good luck, Craig -Original Message- From: Ciot, Thierry [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 11:41 AM To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]' Subject: RE: I don't want cached pages I found this somewhere (don't recall where) to prevent caching in the browser. % response.setDateHeader("Expires", 0); response.setHeader("Pragma", "no-cache"); if ( request.getProtocol().equals("HTTP/1.1") ) response.setHeader("Cache-Control", "no-cache"); % If you tried accessing the page from a browser on 2 different machines and you are getting what you describe then it is not a browser caching problem but rather a pb on the server. Thierry -Original Message- From: Hugo Lara [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 2:12 PM To: [EMAIL PROTECTED] Subject: I don't want cached pages I'm developing a website using Tomcat but I have a little problem. I use a page that calls itself passing some parameters and based on the parameters passed shows certain result. The first time I call the page the URL looks like this: http://myHost:21968/Demos/Formating.jsp and I get the "original page" After calling itself with a parameter, the URL look like this: http://myHost:21968/Demos/Formating.jsp?parameter=123 and I get the "result page" If I try to get the original page typing http://myHost:21968/Demos/Formating.jsp in the browser, what I get is the last page showing a result. It happens even if I call the page from a different computer. This is a serious problem because it means that someone accessing the site for the first time, would see the result page generated by the parameters passed by the last visitor instead of the original page. The only way I've found to solve this is restarting Tomcat's service. Doing so I won't get the result page but the original page. But of course, I don't want to be restarting Tomcat's service everytime a visitor wants to access the site. Does anyone have a solution to this problem? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
nt service
I am using w2k, jdk1.3 from sun and tomcat 3.2.1 whenever i try to start the service i am getting this error. Asked (and given) winsock 1.1Error: StartServiceCtrlDispatcher failed. So the service won't start i can start tomcat form the command line and it works but not the service...any suggestions or hints? can someone please respond personally as I am not on the list. thanks, brian
URL rewriting.
I was wondering how Tomcat supports URL rewriting for sessions in case a user has cookies disabled. Could someone give me some pointers, and direct me to where the settings would be for that (if any exist)? I have tried disabling cookies on my browser to see if Tomcat will do that, but I cannot see any of the session data that I try to set. = Bradley M. Handy | 106 E. Main St. Programmer Analyst II | Station 22 Spring Arbor College | Spring Arbor, MI 49283 - Phone: (517) 750-6675 (off-campus number) 1675 (on-campus number) Email: [EMAIL PROTECTED] [EMAIL PROTECTED]
Re: rmi amd tomcat
wendy wang wrote: Hi there, Does anyone know how to set up tomcat3.2.1 to run servlet which look up remote object using rmi? Wendy There is nothing special required in the Tomcat setup. A servlet talking to a RMI object is just like an application doing the same. I would suggest that you write a "Bean" type component to do the actual RMI so you can test it without a servlet interface first. -- WBB - [EMAIL PROTECTED] Java Cert mock exams http://www.lanw.com/java/javacert/ Author of Java Developer's Guide to Servlets and JSP ISBN 0-7821-2809-2 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Cannot find any information on property X in bean of type Y
I recently was getting a JasperException on page execution saying "Cannot find a method to read property 'X' in a bean of type 'Y'." I checked the tomcat-users archives and found mention of a message "Cannot find any information on property X in bean of type Y". Replies to that question were mostly reminding the developer to make sure the names matched properly in a case-sensitive manner. I doubled-checked that and found everything matched up correctly. However, after staring at the code for the bean for some time and not seeing the problem I decided to fire up my IDE's JavaBean support tool (I use JBuilder 4) and sure enough it indicated there were not "getter" methods, even though I had been looking at them all morning. What was wrong was that they were not public -- there was no visibility modifier at all, making them default ("package"), and preventing the JSP from accessing the properties. Once I added the "public" keyword and recompiled, everything was perfect. Short summary: make sure your getters and setters are public. Sometimes an automated tool can point out things in your blindspot. s Omnis festinatio parte diaboli est N 45 25.306' W 122 44.276' - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Is My Tomcat on Linux starting up properly?
Hi everyone, I'm new to tomcat and have downloaded / installed / started tomcat 3.2.1 on RH linux as per apache.org's instructions. after using the startup.sh script, i get hundreds of FileNotFoundExceptions in doc/api/javax/servlet/jsp/ and /javadoc and WEB-INF directories. i also get FileNotFoundExceptions for /usr/local/jakarta/jakarta-tomcat-3.2.1/conf/tomcat-apache.conf (Permission denied) and others. According to apache.org, When Tomcat starts up it will automatically generate a configuration file for Apache in TOMCAT_HOME/conf/tomcat-apache.conf. This file is not there even after i do startup.sh. The last two lines of startup.sh say: PoolTcpConnector: Starting HttpConnectionHandler on 8080 PoolTcpConnector: Starting Ajpl2ConnectionHandler on 8007 There is no logs/tomcat.log file indicating startup errors. Is my server actually running? Thank you. David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: I don't want cached pages
Why don't you unroll the loop ? I assume that you want recursive calling to go only one level deep, so copy the firstPahe.jsp to secondPage.jsp They contain the same code . firstPage calls secondPage. It's probably safer also- no possibility of infinite loop if there a bug. If there's a lot of code - offload it into a servlet and call the servlet from the jsp's. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Is My Tomcat on Linux starting up properly?
You started the server as a user that doesn't have rights to the tomcat_home directory. The server is listening to the socket, but it probably can't reply with any reasonable output since it can't read or write to any of the files it needs. At 03:50 PM 1/19/2001, you wrote: Hi everyone, I'm new to tomcat and have downloaded / installed / started tomcat 3.2.1 on RH linux as per apache.org's instructions. after using the startup.sh script, i get hundreds of FileNotFoundExceptions in doc/api/javax/servlet/jsp/ and /javadoc and WEB-INF directories. i also get FileNotFoundExceptions for /usr/local/jakarta/jakarta-tomcat-3.2.1/conf/tomcat-apache.conf (Permission denied) and others. According to apache.org, When Tomcat starts up it will automatically generate a configuration file for Apache in TOMCAT_HOME/conf/tomcat-apache.conf. This file is not there even after i do startup.sh. The last two lines of startup.sh say: PoolTcpConnector: Starting HttpConnectionHandler on 8080 PoolTcpConnector: Starting Ajpl2ConnectionHandler on 8007 There is no logs/tomcat.log file indicating startup errors. Is my server actually running? Thank you. David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: WebLogic 5.1 vs. Tomcat 3.2.1 ... who is correct?
Chris Cuilla wrote: OK. Calming down from my frustration... This line of questions is more appropriate on the TOMCAT-USER mailing list, since they are Tomcat-specific. However, I will comment on them here (cc'd to TOMCAT-USER) to avoid needless duplication. I have a web application that I have successfully deployed on Tomcat (up to 3.2.1) for several weeks now. I began to move this over WebLogic 5.1 only to discover that I had to (significantly) alter the web.xml deployment descriptor. First, The DTD...under Tomcat, the examples (and all of my descriptors) refer to the following DTD: !DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd" However, WebLogic 5.1 usings the following: !DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 1.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd" the "1.2" part of this public identifier is incorrect -- see the Servlet Specification, version 2.2, page 63. NOTE: Struts users http://jakarta.apache.org/struts have encountered other anomalies in WebLogic 5.1 as well, including not respecting the load-on-startup element, and various problems with the web app class loader. Secondly, WebLogic did not seem to like the fact that I had certain elements in certain places, where Tomcat does not appear to have any problem with them. The DTD for a web application deployment descriptor does require that the elements inside web-app be in a particular order. Tomcat 3.1 and 3.2 do *not* enforce this order (unless you use tag libraries in a JSP page -- it's a long story :-). Tomcat 4.0 *does* enforce this, and it sounds like WebLogic does as well. If your web.xml file has elements out of the required order, then your deployment descriptor is invalid. Strangely enough, when I change the web app deploying to Tomcat to the 1.2 version shown above, it complains it cannot find it (and vice versa with WebLogic). Tomcat registers an internal copy of the DTD, under the public identifier described in the spec. This means that Tomcat doesn't need to go out on the Internet to grab a copy when processing a web.xml file. Changing the public identifier means that the internal registration no longer matches. So what gives? Chris Cuilla President Cuilla Enterprises, Inc. Craig McClanahan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Trouble configuring Tomcat/Apache for SSL
I'm using the OpenSA Apache on Windows NT (because I can't get the version of Apache+mod_ssl that I built to work.) I have the following entries in httpd.conf: DocumentRoot "C:/Apache/htdocs/pub" VirtualHost _default_:443 # General setup for the virtual hostDocumentRoot "C:/Apache/htdocs/secure"ServerName eurovanServerAdmin [EMAIL PROTECTED]ErrorLog logs/ssl/error.logTransferLog logs/ssl/access.log I put a dummy index.html into both of the above directories, and I can see the right ones on the corresponding port, so it looks like Apache is working properly. How, I also put a dummy jsp in both of the above directories, and the one in the pub directory shows up for http. However, for https, I'm not getting the one in secure, but instead I'm seeing the one in pub again. Here is my entry in server.xml: Context path="" docBase="c:/Apache/htdocs/pub" crossContext="false" debug="0" reloadable="true" /Context Host name="_default_:443" Context path="" docBase="c:/apache/htdocs/secure" / What am I doing wrong? Guy Rouillier 571-226-1229 [EMAIL PROTECTED] Domino Networks 2950 Gallows Road Falls Church, VA 22042
NNTP?
does Jakarta have an officialNNTP site and if not, why not? Matt B.
isapi_redirect log message
Hi all, We're using Tomcat on IIS 4.0, WinNT 4.0 SP 6a with isapi_redirect.dll. I see multiple instances of The HTTP server encountered an unhandled exception while processing the ISAPI Application ' isapi_redirect + 0x45B5 '. in the application event log. We've been experiencing some web server hangs and I'm wondering if this could be causing/aggravating the problem. We're using tomcat 3.1 with an older version of the redirector; is the newer version of the redirector more robust, can it be used with version 3.1 and should we look into upgrading to 3.2 (i.e. is it tested and performing well in a production environment)? Thanks in advance, Eric Reeves - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Why the servlet still alive?
I removed the servlet from the directory and removed the servlet mapping from web.xml file, however the servlet was still alive. What is the problem? _ Get your FREE download of MSN Explorer at http://explorer.msn.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
need another way with 2.2 servlets
I'm looking for a solution where I can insert code into pages (like applet tags into html, etc...) already served up by the server (and not know anything about the pages themselves). This seems to be do-able in 2.3 servlet specs w/ filters, but as I'm running into several undocumented issues with Catalina (and I really don't know if it's even ready for this), I'd like to know if there's another way to do this with the 2.2 servlets specs. I'm running apache 1.3.14 tomcat 3.2.1 (I havn't been able to get tomcat 4.0 built because of undoc'd env vars and where they point ... so far) Adv(Thnxs)ance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Why the servlet still alive?
Henry DU wrote: I removed the servlet from the directory and removed the servlet mapping from web.xml file, however the servlet was still alive. What is the problem? Restart tomcat. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re[2]: Dedicated JDBCRealm per web application?
Thanks Ignacio, I'll be looking forward to that. Any change Tomcat 4.0 will become a release build in the near future? Wilko "Ignacio J. Ortega" [EMAIL PROTECTED] on 19-01-2001 13:27:22 Please respond to [EMAIL PROTECTED] To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] cc:(bcc: Wilko Hische/HADV/NL) Subject: RE: Dedicated JDBCRealm per web application? Tomcat 3.x (in CVS now it wil be 3.3 soon a Milestone will be dropped in a few weeks ) and Tomcat 4.0 have this posibility you can add requestInterceptors ( Realms in Tomcat 4.0 ) in a perContext basis. Saludos , Ignacio J. Ortega - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Re[2]: Dedicated JDBCRealm per web application?
4.0 is into beta in a few weeks , for next last release of 3.x Milestone 1 a couple of weeks, you can get a nightly-build and test by yourself , both are truly solid right now.. Saludos , Ignacio J. Ortega -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Enviado el: viernes 19 de enero de 2001 23:32 Para: [EMAIL PROTECTED] Asunto: Re[2]: Dedicated JDBCRealm per web application? Thanks Ignacio, I'll be looking forward to that. Any change Tomcat 4.0 will become a release build in the near future? Wilko "Ignacio J. Ortega" [EMAIL PROTECTED] on 19-01-2001 13:27:22 Please respond to [EMAIL PROTECTED] To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] cc:(bcc: Wilko Hische/HADV/NL) Subject: RE: Dedicated JDBCRealm per web application? Tomcat 3.x (in CVS now it wil be 3.3 soon a Milestone will be dropped in a few weeks ) and Tomcat 4.0 have this posibility you can add requestInterceptors ( Realms in Tomcat 4.0 ) in a perContext basis. Saludos , Ignacio J. Ortega - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Why the servlet still alive?
Henry DU wrote: I removed the servlet from the directory and removed the servlet mapping from web.xml file, however the servlet was still alive. What is the problem? Restart tomcat. Denis is right. Removing files while the server is still running does not affect classes. At startup the class definition was loaded into the jvm's memory block and was instantiated and init() 'ialized and then waits for requests. Since the instance already exists and the class def has been loaded the class file itself is really no longer in use. --- Michael Wentzel Software Developer A HREF="http://www.aswethink.com"Software As We Think/A A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
More than *.jsp going to tomcat?
We have found that when our images directory, to be served by Apache, are located in the directory where the tomcat application is loaded, a missing image appears to hang the page rather than showing up as a broken image in the browser. The browser shows it's waiting to download the missing image file, but it doesn't stop. We have two applications with mount points of /pub and /ssd. They are both fed through Apache 1.3.14 on RH Linux 6.2. We are using Tomcat 3.2.1. The mount points are also located in the DocumentRoot for Apache. The mounts are defined like this: JkMount /pub/*.jsp ajp13 JkMount /pub/servlet/* ajp13 and JkMount /ssd/*.jsp ajp13 JkMount /ssd/servlet/* ajp13 The missing image might something like /ssd/images/abc.gif. Apparently, when the image is not found by Apache, it is still sending it through the ajp13 connector -- even though the mounts should only send *.jsp or servlets through. Has anybody seen this before? Any solutions? We tried moving the images out of the /ssd prefix (from /ssd/images to /imagesssd), and it still has this problem. David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
I don't want cached pages
I'm just one more guy with the same trouble: Tomcat is caching my pages. I use a page that receives certain parameters and gives a result. And everytime I made a request in the browser for that particular .jsp page, I get the last version of that page served. It means that anyone entering my site would see the last served paged with the results from the last visitor, which is something terrible. I've received some kindemails from the community suggesting me to include the "Expires", "Pragma" and "Cache-control" (with the appropiate values) in the header to avoid caching. This is not working, and that's because (and I'm convinced of this) it's not a browser/proxy problem. It is Tomcat that keeps the last version cached, and I'm sure of it because it's enough to restart Tomcat to solve the problem. Anyway, it will be crazy to restart Tomcat every time a visitor wants to enter my site. I've been reading the mailing and I've noticed there's a lot of people with the same problem and no real solution. I know that Amos Shapira and David S. Adress have been through the same. If anyone has the solution to this problem please tell me, I need it very badly.
RE: I don't want cached pages
I cannot duplicate your problem. Are you having the same problem with the JSP example carts http://localhost:8080/jsp/sessions/carts.html ? Are you using Apache? I am using IIS5 but am having no problems. I have several applications like you mention and I can open up multiple instances of the same browser on the same machine and no information is passed between them. You may try printing the session id to the screen to see if you are having a problem there. You could try specifying a non-persistent connection in the JSP page, and next a non-persistent connection in the server. Good luck, Craig -Original Message- From: Hugo Lara [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 3:10 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: I don't want cached pages I'm just one more guy with the same trouble: Tomcat is caching my pages. I use a page that receives certain parameters and gives a result. And everytime I made a request in the browser for that particular .jsp page, I get the last version of that page served. It means that anyone entering my site would see the last served paged with the results from the last visitor, which is something terrible. I've received some kind emails from the community suggesting me to include the "Expires", "Pragma" and "Cache-control" (with the appropiate values) in the header to avoid caching. This is not working, and that's because (and I'm convinced of this) it's not a browser/proxy problem. It is Tomcat that keeps the last version cached, and I'm sure of it because it's enough to restart Tomcat to solve the problem. Anyway, it will be crazy to restart Tomcat every time a visitor wants to enter my site. I've been reading the mailing and I've noticed there's a lot of people with the same problem and no real solution. I know that Amos Shapira and David S. Adress have been through the same. If anyone has the solution to this problem please tell me, I need it very badly. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: I don't want cached pages
This seems silly but, you wouldn't by chance be accessing static variables in your JSP by chance would you? Craig Just throwing stuff out -Original Message- From: Craig O'Brien [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 3:39 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: I don't want cached pages I cannot duplicate your problem. Are you having the same problem with the JSP example carts http://localhost:8080/jsp/sessions/carts.html ? Are you using Apache? I am using IIS5 but am having no problems. I have several applications like you mention and I can open up multiple instances of the same browser on the same machine and no information is passed between them. You may try printing the session id to the screen to see if you are having a problem there. You could try specifying a non-persistent connection in the JSP page, and next a non-persistent connection in the server. Good luck, Craig -Original Message- From: Hugo Lara [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 3:10 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: I don't want cached pages I'm just one more guy with the same trouble: Tomcat is caching my pages. I use a page that receives certain parameters and gives a result. And everytime I made a request in the browser for that particular .jsp page, I get the last version of that page served. It means that anyone entering my site would see the last served paged with the results from the last visitor, which is something terrible. I've received some kind emails from the community suggesting me to include the "Expires", "Pragma" and "Cache-control" (with the appropiate values) in the header to avoid caching. This is not working, and that's because (and I'm convinced of this) it's not a browser/proxy problem. It is Tomcat that keeps the last version cached, and I'm sure of it because it's enough to restart Tomcat to solve the problem. Anyway, it will be crazy to restart Tomcat every time a visitor wants to enter my site. I've been reading the mailing and I've noticed there's a lot of people with the same problem and no real solution. I know that Amos Shapira and David S. Adress have been through the same. If anyone has the solution to this problem please tell me, I need it very badly. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Time out / Idle
Hi there folks, anybody would know why tomcat dies after a while of no use? i don't see a property specifying idle time, nor errors in the logs. Is this a bug? Many thanks, Gaston. Gaston R. Cangiano Kite Design Studio Tel: 510-486-8271 Fax: 425-930-1047 [EMAIL PROTECTED] http://www.kitedesign.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: I don't want cached pages
This is what I use: response.setHeader("Cache-Control", "no-cache"); response.setHeader("Pragma", "no-cache"); response.setDateHeader("Expires", System.currentTimeMillis()); response.setDateHeader("Last-Modified", System.currentTimeMillis()); The last line might be of help with browsers and proxies. (Then again, it may not) Hope it helps! Frederic -Original Message- From: Hugo Lara [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 6:10 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: I don't want cached pages I'm just one more guy with the same trouble: Tomcat is caching my pages. I use a page that receives certain parameters and gives a result. And everytime I made a request in the browser for that particular .jsp page, I get the last version of that page served. It means that anyone entering my site would see the last served paged with the results from the last visitor, which is something terrible. I've received some kind emails from the community suggesting me to include the "Expires", "Pragma" and "Cache-control" (with the appropiate values) in the header to avoid caching. This is not working, and that's because (and I'm convinced of this) it's not a browser/proxy problem. It is Tomcat that keeps the last version cached, and I'm sure of it because it's enough to restart Tomcat to solve the problem. Anyway, it will be crazy to restart Tomcat every time a visitor wants to enter my site. I've been reading the mailing and I've noticed there's a lot of people with the same problem and no real solution. I know that Amos Shapira and David S. Adress have been through the same. If anyone has the solution to this problem please tell me, I need it very badly. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Time out / Idle
Gaston, Tomcat will not time out and shut down as far as I am aware. It never has on me and it runs for days and weeks between reboots. Soon to be months hopefully. Perhaps it is being started by someone with less then root privileges and when they log out the process goes with them. ?.. What version are you using. I use 3.2 and JDK 1.3 and have very stable performance. Do your system resources ever become critical? Power shortages, rolling blackouts... What OS are you using? good luck, Craig -Original Message- From: Gaston R. Cangiano [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 4:17 PM To: [EMAIL PROTECTED] Subject: Time out / Idle Hi there folks, anybody would know why tomcat dies after a while of no use? i don't see a property specifying idle time, nor errors in the logs. Is this a bug? Many thanks, Gaston. Gaston R. Cangiano Kite Design Studio Tel: 510-486-8271 Fax: 425-930-1047 [EMAIL PROTECTED] http://www.kitedesign.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Time out / Idle
thanks for responding so fast Craig! that's good to hear. When you say "days and hopefully months", do you mean "without usage", that is, does it shutdown when IDLE for a long time? the owner of the process is root and it's fine that way; version of tomcat is the latest stable release and jdk is 1.2, no resource or power shortages (for now, util the turn the swith off on us :-) It's running on Linux 2.2.5-15. Thanks, Gaston. -Original Message- From: Craig O'Brien [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 4:36 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Time out / Idle Gaston, Tomcat will not time out and shut down as far as I am aware. It never has on me and it runs for days and weeks between reboots. Soon to be months hopefully. Perhaps it is being started by someone with less then root privileges and when they log out the process goes with them. ?.. What version are you using. I use 3.2 and JDK 1.3 and have very stable performance. Do your system resources ever become critical? Power shortages, rolling blackouts... What OS are you using? good luck, Craig -Original Message- From: Gaston R. Cangiano [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 4:17 PM To: [EMAIL PROTECTED] Subject: Time out / Idle Hi there folks, anybody would know why tomcat dies after a while of no use? i don't see a property specifying idle time, nor errors in the logs. Is this a bug? Many thanks, Gaston. Gaston R. Cangiano Kite Design Studio Tel: 510-486-8271 Fax: 425-930-1047 [EMAIL PROTECTED] http://www.kitedesign.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: I don't want cached pages
Craig, I want to thank you for your help. I tried the carts.html example with the following results: - In my machine I added some articles to the cart. Then I closed my browser and opened it again. When I ran the example and added 1 more item, I noticed that all of the items I've added before where still in the cart, which didn't look nice to me. - Then I went to another computer and tried the same example. I added 1 item to the cart and I was expecting to a list with the items I've added in my computer, but I saw just 1 item. Which was perfectly fine. I opened the carts.jsp file and noticed that the bean they where using had "session" as the parameter in "scope". Anyway, I didn't used beans in my .jsp file (the one I had troubles with), but it made think it wasn't the page that remained cached but the variables I was using, so I reviewed my .jsp file and I found the problem: I was initializing my variables with something like this, %! String strOne = "", strTwo = "", strThree = ""; Double dblNumber = 0.0; Locale currentLocale; % Then I used some java code to assign these variables some values and I expected that the variables where initialized each time I called the .jsp file but it wasn't like that. Removing the "!" solved the problem. My variables are now initialized like this, % String strOne = "", strTwo = "", strThree = ""; Double dblNumber = 0.0; Locale currentLocale; % It's like if I use "%!" to initialize the variables, they are initialized just the first time the page is called, and the subsequent values assigned to them remain on the next requests to the page. Using only "%" seems to initialize the variables on each request. Do these ideas make any sense or I'm just to tired? I'm not really sure why this is working like this, but it's working! -Original Message- From: Craig O'Brien [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 5:39 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: I don't want cached pages I cannot duplicate your problem. Are you having the same problem with the JSP example carts http://localhost:8080/jsp/sessions/carts.html ? Are you using Apache? I am using IIS5 but am having no problems. I have several applications like you mention and I can open up multiple instances of the same browser on the same machine and no information is passed between them. You may try printing the session id to the screen to see if you are having a problem there. You could try specifying a non-persistent connection in the JSP page, and next a non-persistent connection in the server. Good luck, Craig -Original Message- From: Hugo Lara [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 3:10 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: I don't want cached pages I'm just one more guy with the same trouble: Tomcat is caching my pages. I use a page that receives certain parameters and gives a result. And everytime I made a request in the browser for that particular .jsp page, I get the last version of that page served. It means that anyone entering my site would see the last served paged with the results from the last visitor, which is something terrible. I've received some kind emails from the community suggesting me to include the "Expires", "Pragma" and "Cache-control" (with the appropiate values) in the header to avoid caching. This is not working, and that's because (and I'm convinced of this) it's not a browser/proxy problem. It is Tomcat that keeps the last version cached, and I'm sure of it because it's enough to restart Tomcat to solve the problem. Anyway, it will be crazy to restart Tomcat every time a visitor wants to enter my site. I've been reading the mailing and I've noticed there's a lot of people with the same problem and no real solution. I know that Amos Shapira and David S. Adress have been through the same. If anyone has the solution to this problem please tell me, I need it very badly. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: I don't want cached pages
To understand why it is working that way the best thing is to look at the generated java file (in the work directory). Youy will see that when you use %! the variables are defined at the java class level When you use % the variables are defined within the jspservice method (that is they are local variables). Thierry. -Original Message- From: Hugo Lara [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 7:53 PM To: 'Craig O'Brien' Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: I don't want cached pages Craig, I want to thank you for your help. I tried the carts.html example with the following results: - In my machine I added some articles to the cart. Then I closed my browser and opened it again. When I ran the example and added 1 more item, I noticed that all of the items I've added before where still in the cart, which didn't look nice to me. - Then I went to another computer and tried the same example. I added 1 item to the cart and I was expecting to a list with the items I've added in my computer, but I saw just 1 item. Which was perfectly fine. I opened the carts.jsp file and noticed that the bean they where using had "session" as the parameter in "scope". Anyway, I didn't used beans in my .jsp file (the one I had troubles with), but it made think it wasn't the page that remained cached but the variables I was using, so I reviewed my .jsp file and I found the problem: I was initializing my variables with something like this, %! String strOne = "", strTwo = "", strThree = ""; Double dblNumber = 0.0; Locale currentLocale; % Then I used some java code to assign these variables some values and I expected that the variables where initialized each time I called the .jsp file but it wasn't like that. Removing the "!" solved the problem. My variables are now initialized like this, % String strOne = "", strTwo = "", strThree = ""; Double dblNumber = 0.0; Locale currentLocale; % It's like if I use "%!" to initialize the variables, they are initialized just the first time the page is called, and the subsequent values assigned to them remain on the next requests to the page. Using only "%" seems to initialize the variables on each request. Do these ideas make any sense or I'm just to tired? I'm not really sure why this is working like this, but it's working! -Original Message- From: Craig O'Brien [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 5:39 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: I don't want cached pages I cannot duplicate your problem. Are you having the same problem with the JSP example carts http://localhost:8080/jsp/sessions/carts.html ? Are you using Apache? I am using IIS5 but am having no problems. I have several applications like you mention and I can open up multiple instances of the same browser on the same machine and no information is passed between them. You may try printing the session id to the screen to see if you are having a problem there. You could try specifying a non-persistent connection in the JSP page, and next a non-persistent connection in the server. Good luck, Craig -Original Message- From: Hugo Lara [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 3:10 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: I don't want cached pages I'm just one more guy with the same trouble: Tomcat is caching my pages. I use a page that receives certain parameters and gives a result. And everytime I made a request in the browser for that particular .jsp page, I get the last version of that page served. It means that anyone entering my site would see the last served paged with the results from the last visitor, which is something terrible. I've received some kind emails from the community suggesting me to include the "Expires", "Pragma" and "Cache-control" (with the appropiate values) in the header to avoid caching. This is not working, and that's because (and I'm convinced of this) it's not a browser/proxy problem. It is Tomcat that keeps the last version cached, and I'm sure of it because it's enough to restart Tomcat to solve the problem. Anyway, it will be crazy to restart Tomcat every time a visitor wants to enter my site. I've been reading the mailing and I've noticed there's a lot of people with the same problem and no real solution. I know that Amos Shapira and David S. Adress have been through the same. If anyone has the solution to this problem please tell me, I need it very badly. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: I don't want cached pages
Thierry is correct!! When you use %! you are inserting variables into the main body of the servlet class, outside of the JSPService. This is useful for "global" counters and such but not for your use. Take a look at your preferences in your browser. I set my browsers to the minimum cache and reload on every request. That is more useful for testing. Regards, Craig -Original Message- From: Ciot, Thierry [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 5:03 PM To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]' Subject: RE: I don't want cached pages To understand why it is working that way the best thing is to look at the generated java file (in the work directory). Youy will see that when you use %! the variables are defined at the java class level When you use % the variables are defined within the jspservice method (that is they are local variables). Thierry. -Original Message- From: Hugo Lara [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 7:53 PM To: 'Craig O'Brien' Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: I don't want cached pages Craig, I want to thank you for your help. I tried the carts.html example with the following results: - In my machine I added some articles to the cart. Then I closed my browser and opened it again. When I ran the example and added 1 more item, I noticed that all of the items I've added before where still in the cart, which didn't look nice to me. - Then I went to another computer and tried the same example. I added 1 item to the cart and I was expecting to a list with the items I've added in my computer, but I saw just 1 item. Which was perfectly fine. I opened the carts.jsp file and noticed that the bean they where using had "session" as the parameter in "scope". Anyway, I didn't used beans in my .jsp file (the one I had troubles with), but it made think it wasn't the page that remained cached but the variables I was using, so I reviewed my .jsp file and I found the problem: I was initializing my variables with something like this, %! String strOne = "", strTwo = "", strThree = ""; Double dblNumber = 0.0; Locale currentLocale; % Then I used some java code to assign these variables some values and I expected that the variables where initialized each time I called the .jsp file but it wasn't like that. Removing the "!" solved the problem. My variables are now initialized like this, % String strOne = "", strTwo = "", strThree = ""; Double dblNumber = 0.0; Locale currentLocale; % It's like if I use "%!" to initialize the variables, they are initialized just the first time the page is called, and the subsequent values assigned to them remain on the next requests to the page. Using only "%" seems to initialize the variables on each request. Do these ideas make any sense or I'm just to tired? I'm not really sure why this is working like this, but it's working! -Original Message- From: Craig O'Brien [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 5:39 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: I don't want cached pages I cannot duplicate your problem. Are you having the same problem with the JSP example carts http://localhost:8080/jsp/sessions/carts.html ? Are you using Apache? I am using IIS5 but am having no problems. I have several applications like you mention and I can open up multiple instances of the same browser on the same machine and no information is passed between them. You may try printing the session id to the screen to see if you are having a problem there. You could try specifying a non-persistent connection in the JSP page, and next a non-persistent connection in the server. Good luck, Craig -Original Message- From: Hugo Lara [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 3:10 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: I don't want cached pages I'm just one more guy with the same trouble: Tomcat is caching my pages. I use a page that receives certain parameters and gives a result. And everytime I made a request in the browser for that particular .jsp page, I get the last version of that page served. It means that anyone entering my site would see the last served paged with the results from the last visitor, which is something terrible. I've received some kind emails from the community suggesting me to include the "Expires", "Pragma" and "Cache-control" (with the appropiate values) in the header to avoid caching. This is not working, and that's because (and I'm convinced of this) it's not a browser/proxy problem. It is Tomcat that keeps the last version cached, and I'm sure of it because it's enough to restart Tomcat to solve the problem. Anyway, it will be crazy to restart Tomcat every time a visitor wants to enter my site. I've been reading the mailing and I've noticed there's a lot of people with the same problem and no real solution. I know that Amos Shapira
Recovering from oversize upload exception ?
Title: RE: Session Problem Hello, We are trying to use the Oreilly servlet package to service requests from a form that is used to upload files.The form contains buttons, checkboxes, radio buttons, and several 'file' fields. When request sizeis largerthan the max size we allow, the constructor new MultipartParser(req, 10, true, true) throws an exception, reporting about the size violation. This is fine but when this happens, wecannot access the values of fields and buttons that were submitted. This significantly reduce our ability to to provide the user with a graceful error handling and all we can indicate in the error message that the total request size was above the limit and any setting of checkboxes and radio buttons is lost. Are we missing something ? Any idea how to improve the error handling and to recover field values ? Thanks, Tal -Original Message-From: Mike Campbell [mailto:[EMAIL PROTECTED]]Sent: Thursday, January 04, 2001 11:37 AMTo: '[EMAIL PROTECTED]'Subject: RE: Session Problem Craig (or anyone), You might want to turn your thinking inside out on how to handle this problem :-). I came in on this discussion thread mid-strand, and have a question. Your code snipped on session handling made perfect sense, and really made the session-handling issue finally "click" for me. My question is about timeouts; where is the timeout value set? Thanks
weblogic anyone?
Does anyone here use weblogic? Is there any reason to use tomcat along-side weblogic app server? Also, does anyone have any idea how much weblogic app server runs? I don't want to be on the phone long distance to get a price quote and thier web site doesnt say. Luis
Re: weblogic anyone?
Is there any reason to use tomcat along-side weblogic app server? the only reason would be if you want to have multiple servlet engines connect back into one EJB server. then Tomcat is definitely cheaper than Weblogic :) otherwise, they provide the same functionality Filip ~Namaste - I bow to the divine in you.~Filip HanikTechnical Architect[EMAIL PROTECTED] - Original Message - From: Luis Andrei Cobo To: [EMAIL PROTECTED] Sent: Friday, January 19, 2001 6:33 PM Subject: weblogic anyone? Does anyone here use weblogic? Is there any reason to use tomcat along-side weblogic app server? Also, does anyone have any idea how much weblogic app server runs? I don't want to be on the phone long distance to get a price quote and thier web site doesnt say. Luis