Re: Jasper 2 JSP Engine How To ant script - ServletException not found
Glen, thanks for responding. I placed both the property and path element references to servlet-api at the beginning of their respective sections, and defined jdk.javac.path. I still get the same error. Any ideas on why build.xml provided by the Tomcat website doesn't work? --- Glen Mazza [EMAIL PROTECTED] wrote: Olinga K. Abbott wrote: BUILD FAILED E:\workspace\progsoftware\trunk\source\jasper\build.xml:5: taskdef A class needed by class org.apache.jasper.JspC cannot be found: javax/servlet/ServletException Of course, it looks like it can't find javax.servlet.ServletException while building. This is kept in servlet-api.jar. ant -Dtomcat.home=C:\Program Files\Apache Software Foundation\Tomcat 5.5 -Dwebapp.path=E:\workspace\progsoftware\trunk\source\jasper webapp.path is the working directory, target directory, and source directory, since I want to keep things as simple as possible while getting everything working correctly. - BEGIN project name=Webapp Precompilation default=jspc basedir=. property name=ant.lib location=C:/apache-ant-1.6.5/lib/ property name=tomcat.home location=C:/Program Files/Apache Software Foundation/Tomcat 5.5/ property name=jdk.tools location=C:/Program Files/Java/jdk1.5.0_06/lib/tools.jar/ property name=jasper.compiler location=${ant.lib}/jasper-compiler.jar/ property name=jasper.runtime location=${ant.lib}/jasper-runtime.jar/ property name=servlet.api location=${tomcat.home}/common/lib/servlet-api.jar/ echo message=${jasper.compiler}/ echo message=${servlet.api}/ echo message=${jdk.tools}/ path id=classpath pathelement location=${jdk.javac.path}/ pathelement location=${jasper.compiler}/ pathelement location=${jasper.runtime}/ pathelement location=${servlet.api}/ /path jdk.javac.path doesn't seem to be defined anywhere--that may be a problem. Also, I'm unsure if it matters, but ${servlet.api} is listed last in this set, so the Jasper libraries listed earlier may not be able to find it, and hence may not be able to see the ServletException class. I would move servlet.api before the jasper references. taskdef classname=org.apache.jasper.JspC name=jasper2 classpath refid=classpath / /taskdef target name=jspc classpath refid=classpath / jasper2 validateXml=false uriroot=. webXmlFragment=./generated_web.xml outputDir=. / /target /project - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
percent sign in URI
I realized apache2 web server properyl handles % sign in URIs, i need = exact functionality on tomcat 5 too. When I try to pass a parameter containing % sign, the parameter value on = the server seems null. like http://localhost:8080/aSite/aPage?query=hi%everybody Tomcat 5 cannot handle that, Is there a way to do it with tomcat 5. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mapping of web-app roles to principals authenticated against JDBCRealm (compared to security-role-mapping in sun-web.xml)
Hi, I am trying to work out, how exactly I map Tomcat Users/Groups (defined in a JDBCRealm) to security roles, which are defined in my web application deployment descriptor. I am trying to understand the following in the context of formbased login: As the tomcat administrator, I have no knowledge of whatever web application might have to be deployed to my application server in future. In my JDBCRealm, I have users which are categorized in groups. On the other side, web application developers should not have to care about what user categories are configured on the server. They define roles for their web applications and restrict access to resources by security constraints à la principals which are assigned this role, are authorized to access this URL-pattern.. So, when a web application gets deployed to my Container, I want to map those application specific roles to the user groups or just to single users which I have in my JDBCRealm. For the SUN Application Server, there seems to be a sperate deployment descriptor (sun-web.xml) for this reason: sun-web-app context-root/theapp/context-root security-role-mapping role-nameADMIN/role-name principal-namerandy/principal-name principal-nameamanda/principal-name /security-role-mapping security-role-mapping role-nameUSER/role-name group-nametomcatusergroup/group-name /security-role-mapping sun-web-app The role names there, are those from the web.xml security constraints, like security-role role-nameADMIN/role-name /security-role The principal-name is a user which is stored in my JDBCRealm, and the group-name is a group of users there. How can I establish this link/mapping in Tomcat? Many Thanks, Tobi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jasper 2 JSP Engine How To ant script - ServletException not found
Olinga K. Abbott wrote: Glen, thanks for responding. I placed both the property and path element references to servlet-api at the beginning of their respective sections, and defined jdk.javac.path. I still get the same error. Any ideas on why build.xml provided by the Tomcat website doesn't work? BUILD FAILED E:\workspace\progsoftware\trunk\source\jasper\build.xml:5: taskdef A class needed by class org.apache.jasper.JspC cannot be found: javax/servlet/ServletException Well, I just did a Google search on taskdef A class needed by class (with the quotes, of course) and got 239 hits. You'll probably find your answer somewhere in there. Glen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Static content in Apache + tomcat + jk2
Hi, I'm a new user of this list. I have an Apache + tomcat + mod_jk2 running on my linux box. My Webapp control users log on and I have static content which could be accessed only by authorized user. I want to apache serve all static content. Is there a solution?? Thanks.
Re: percent sign in URI
Hello. abdurrahman sahin wrote: I realized apache2 web server properyl handles % sign in URIs, i need = exact functionality on tomcat 5 too. When I try to pass a parameter containing % sign, the parameter value on = the server seems null. like http://localhost:8080/aSite/aPage?query=hi%everybody Tomcat 5 cannot handle that, Is there a way to do it with tomcat 5. What happens if you set URIEncoding=UTF-8 to your connector in server.xml file? -- Aurélien - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cannot transform and load jsp file with Tomcat under Eclipse
Thank you for your responses Vinu and Chuck I got rid of the definition as Vinu suggested, and it seems that I do not have to have any context.xml in the META-INF for the app. The jsp file appears in my browser window, except it doesn't evaluate the jsp expression I include. Maybe you can tell me that I have a simple jsp error... As jsp works by creating an intermediate HttpServlet class, how can I view the source of this to work out what is going on? This problem was my original problem, which prompted me to try and add the servlet definitions. My simple jsp example is below. -- David Ziants [EMAIL PROTECTED] PS Please could responses also be CCed to my email address: [EMAIL PROTECTED] This is because I receive this discussion group in digest mode, and I don't know how frequently the archives are updated. == %@ page language=java contentType=text/html; charset=UTF-8 pageEncoding=UTF-8% !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN html head meta http-equiv=Content-Type content=text/html; charset=UTF-8 titleInsert title here/title /head body The date is: %=new java.util.Date().toString() % More text /body /html -- David Ziants [EMAIL PROTECTED] == Hi David, Just put your jsp files to 'D:\eclipse_ws_swing\MusarAvicha' directory and remove the servlet servlet-nameshowlogin_jsp/servlet-name servlet-classshowlogin_jsp/servlet-class load-on-startup6/load-on-startup /servlet from your web.xml. Then try to access the jsp files thru the browser. - Regards Vinu David Ziants wrote: This is the first time I have had to do my own configuration of tomcat (5.5) using eclipse (3.1) and Java 5, and I am having a few teething problems. Everything is installed under Windows XP. I just took the latest release of Tomcat as I see there ought to be proper support for Java 5 which I am using for my project. I wish to write a JSP and also a servlet, and I added markups to my WEB-INF/web.xml : == - Original Message - From Caldarale, Charles R [EMAIL PROTECTED] Date Tue, 31 Jan 2006 15:40:32 -0600 To Tomcat Users List users@tomcat.apache.org Subject RE: Cannot transform and load jsp file with Tomcat under Eclipse From: David Ziants [EMAIL PROTECTED] Subject: Cannot transform and load jsp file with Tomcat under Eclipse I also added META-INF\context.xml file: == ?xml version=1.0 encoding=UTF-8? Context path=D:\eclipse_ws_swing\MusarAvicha/ == The path attribute is not used when the Context tag is in META-INF/context.xml, nor when inside a conf/Catalina/[host_name]/[app_name].xml file. It may only be used when your Context is configured in server.xml, and then it gives the web-visible name of the app, not where the app is stored in your local file system. Perhaps you meant to use the docBase attribute. Suggest a close reading of the doc: http://tomcat.apache.org/tomcat-5.5-doc/config/context.html - Chuck - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: percent sign in URI
hi; my friend tried it, reported that it didn't work. abdurrahman -Original Message- From: Aurélien DEHAY [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 01, 2006 11:29 AM To: Tomcat Users List Subject: Re: percent sign in URI Hello. abdurrahman sahin wrote: I realized apache2 web server properyl handles % sign in URIs, i need = exact functionality on tomcat 5 too. When I try to pass a parameter containing % sign, the parameter value on = the server seems null. like http://localhost:8080/aSite/aPage?query=hi%everybody Tomcat 5 cannot handle that, Is there a way to do it with tomcat 5. What happens if you set URIEncoding=UTF-8 to your connector in server.xml file? -- Aurélien - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: percent sign in URI
Hello abdurrahman, Your url is incorrect, replace it with http://localhost:8080/aSite/aPage?query=hi%25everybody According to rfc 1738, 2.2. URL Character Encoding Issues Octets must be encoded ..., if the use of the corresponding character is unsafe, ... The character % is unsafe because it is used for encodings of other characters. Thus, only alphanumerics, the special characters $-_.+!*'(),, and reserved characters used for their reserved purposes may be used unencoded within a URL. There is no details in RFC on how to handle badly shaped urls (like % not followed by 2 hex digits) and thus your urls should not rely upon this. Regards. abdurrahman sahin a écrit : I realized apache2 web server properyl handles % sign in URIs, i need = exact functionality on tomcat 5 too. When I try to pass a parameter containing % sign, the parameter value on = the server seems null. like http://localhost:8080/aSite/aPage?query=hi%everybody Tomcat 5 cannot handle that, Is there a way to do it with tomcat 5. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to identify version of a running Tomcat and similar trivia
Hi Tomcatters, I beg your pardon for this affront to any self-respecting servlet coder's mind. I am but merely a Unix sysadmin plagued with a varying zoo of Tomcats on different Unices who is largely Java-ignorant and only has to maintain these cats (sorry, but Perl suits my mundane admin tasks much better). Nevertheless I hope you deign giving me an answer to my trivial questions. 1. How can I identify the version of a running Tomcat without reaping it or wreaking similar havoc? Back in ole Apache days things where easy. You only had to locate the residence of the httpd daemon's binary (which was just a glance at the proc table), and run a httpd -v on it. These times all I can see is a running Java master thread. All it discloses is the version of the Java interpreter from the respective JRE. 2. How to quickly introspect a Tomcat's child thread, resource usage? I cannot see from the OS's proc table how many child threads a master has spawned and keeps maintaining, nor which resources they share. If something gets cranked up, what seems to be quite often for some of our Tomcat implementations (almost never experienced a crashing Apache), all I can do is killing the master thread if it is still appearing in the proc table though. (I assume the rather instability is owe to too many average Java hackers deem themselves eligable to tinker with the Tomcat's memory management relying on automatic garbage collection, only comparing this with what I learned about mod_perl and proper initializations and freeing of resources) 3. How to identify a Tomcat's config? Well, I could run a find for server.xml, but this would most likely spit out a dozens of namesake files of various test instalations that aren't of relevance. I think, there ought to be an URI one could query. For instance when I lookup the proc table on a hpux box at best I can only see this mess $ UNIX95= ps -x -C java -o args= /opt/java1.5/bin/PA_RISC2.0/java -Xverbosegc:file=/tmp/gc.out -server -Xms256m -Xmx256m -Xmn128m -XX:+DisableExplicitGC -XdoCloseWithReadPending -Djava.security.policy==/opt/hpapache2/tomcat/bin/../conf/tomcat. policy -Dtomcat.home=/opt/hpapache2/tomcat/bin/.. org.apache.tomcat.startup.Main start Ok, from this I could at least guess that there might be a /opt/hpapache2/tomcat/conf/server.xml lingering. 4. Parsing the config Despite their ever increasing whitespread I think these XML style config files are a nuisance for a sysadmin who neither is able to nor willing to use an X application for config maintenance, querying (think of low bandwidth serial line connections and the impedence by ubiquitious firewalls) I wouldn't quite argue that a sendmail.cf file is anything more readable to the human, but I find it rather overkill to throw in an XML parser module (like CPAN's XML::Simple, XML::Parser or XML::SAX) merely to find out basic configuration settings (e.g. like listening ports). So is there a CLI tool or a special URI for quereing a Tomcat's config? 5. Tool for monitoring a Tomcat's state I know there's some Java Monitoring classes (was it JMX or so?). But as I told you I am not into Java, and most of all I lack the knowledge of the underlying class hirarchy. It would be nice if I could use or come up with an own Perl plug-in. Is it possible to enable legacy CGI support with Tomcat? Then I could at least provide my own monitoring scripts. Regards Ralph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: percent sign in URI
hi David; I am aware of the case. As I stated before Apache2 server properly handles that problem and I need that functionality because our customer's system built on it. -Original Message- From: David Delbecq [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 01, 2006 11:58 AM To: Tomcat Users List Subject: Re: percent sign in URI Hello abdurrahman, Your url is incorrect, replace it with http://localhost:8080/aSite/aPage?query=hi%25everybody According to rfc 1738, 2.2. URL Character Encoding Issues Octets must be encoded ..., if the use of the corresponding character is unsafe, ... The character % is unsafe because it is used for encodings of other characters. Thus, only alphanumerics, the special characters $-_.+!*'(),, and reserved characters used for their reserved purposes may be used unencoded within a URL. There is no details in RFC on how to handle badly shaped urls (like % not followed by 2 hex digits) and thus your urls should not rely upon this. Regards. abdurrahman sahin a écrit : I realized apache2 web server properyl handles % sign in URIs, i need = exact functionality on tomcat 5 too. When I try to pass a parameter containing % sign, the parameter value on = the server seems null. like http://localhost:8080/aSite/aPage?query=hi%everybody Tomcat 5 cannot handle that, Is there a way to do it with tomcat 5. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: percent sign in URI
How does your customer system handle this? http://localhost:8080/aSite/aPage?query=I%fear%dead%results badly, obviously :) Possible solutions: 1) You can still try in servlet 'aPage' to grab the request using request.getQueryString() which should returns you query=hi%everybody 2) You can write a servlet filter for /* which will create a new HttpServletRequest Object with parameters you parse in your way from the getQueryString() above 3) You can open tomcat source, patch the url decoder, and use it What ever solution is choosen, customer will be bound to a side effect of error handling in server. abdurrahman sahin a écrit : hi David; I am aware of the case. As I stated before Apache2 server properly handles that problem and I need that functionality because our customer's system built on it. -Original Message- From: David Delbecq [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 01, 2006 11:58 AM To: Tomcat Users List Subject: Re: percent sign in URI Hello abdurrahman, Your url is incorrect, replace it with http://localhost:8080/aSite/aPage?query=hi%25everybody According to rfc 1738, 2.2. URL Character Encoding Issues Octets must be encoded ..., if the use of the corresponding character is unsafe, ... The character % is unsafe because it is used for encodings of other characters. Thus, only alphanumerics, the special characters $-_.+!*'(),, and reserved characters used for their reserved purposes may be used unencoded within a URL. There is no details in RFC on how to handle badly shaped urls (like % not followed by 2 hex digits) and thus your urls should not rely upon this. Regards. abdurrahman sahin a écrit : I realized apache2 web server properyl handles % sign in URIs, i need = exact functionality on tomcat 5 too. When I try to pass a parameter containing % sign, the parameter value on = the server seems null. like http://localhost:8080/aSite/aPage?query=hi%everybody Tomcat 5 cannot handle that, Is there a way to do it with tomcat 5. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
kindly help : where Business Logic(BL) files are been put?
hello, kindly tell me where Business Logic(BL) files are been put?i'd put in TOMCAT_HOME\webapps\primeReports\WEB-INF\classes\Reports\ where, primeReports is the name of the folder which i'd created. the following error is coming:- org.apache.jasper.JasperException: Unable to compile class for JSP Generated servlet error: Only a type can be imported. Reports.MemGrossBl resolves to a package Here MemGrossBl id my (Business Logic)BL File. Kindly help me and tell me the solution. Thanks Regards, Vidhi - What are the most popular cars? Find out at Yahoo! Autos
RE: percent sign in URI
hi David; I think I'll try your 2nd solution offer. thank you for your help. -Original Message- From: David Delbecq [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 01, 2006 1:16 PM To: Tomcat Users List Subject: Re: percent sign in URI How does your customer system handle this? http://localhost:8080/aSite/aPage?query=I%fear%dead%results badly, obviously :) Possible solutions: 1) You can still try in servlet 'aPage' to grab the request using request.getQueryString() which should returns you query=hi%everybody 2) You can write a servlet filter for /* which will create a new HttpServletRequest Object with parameters you parse in your way from the getQueryString() above 3) You can open tomcat source, patch the url decoder, and use it What ever solution is choosen, customer will be bound to a side effect of error handling in server. abdurrahman sahin a écrit : hi David; I am aware of the case. As I stated before Apache2 server properly handles that problem and I need that functionality because our customer's system built on it. -Original Message- From: David Delbecq [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 01, 2006 11:58 AM To: Tomcat Users List Subject: Re: percent sign in URI Hello abdurrahman, Your url is incorrect, replace it with http://localhost:8080/aSite/aPage?query=hi%25everybody According to rfc 1738, 2.2. URL Character Encoding Issues Octets must be encoded ..., if the use of the corresponding character is unsafe, ... The character % is unsafe because it is used for encodings of other characters. Thus, only alphanumerics, the special characters $-_.+!*'(),, and reserved characters used for their reserved purposes may be used unencoded within a URL. There is no details in RFC on how to handle badly shaped urls (like % not followed by 2 hex digits) and thus your urls should not rely upon this. Regards. abdurrahman sahin a écrit : I realized apache2 web server properyl handles % sign in URIs, i need = exact functionality on tomcat 5 too. When I try to pass a parameter containing % sign, the parameter value on = the server seems null. like http://localhost:8080/aSite/aPage?query=hi%everybody Tomcat 5 cannot handle that, Is there a way to do it with tomcat 5. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: percent sign in URI
If this were fixed, there would be a host of people complaining about the opposite. The URL below is inavlid based ont the RFC. getParameter has some basic assumptions that the url is correctly encoded. If you wish to place bad data in the query string, I recommend using request.getQueryString() and parse it yourself. -Tim abdurrahman sahin wrote: I realized apache2 web server properyl handles % sign in URIs, i need = exact functionality on tomcat 5 too. When I try to pass a parameter containing % sign, the parameter value on = the server seems null. like http://localhost:8080/aSite/aPage?query=hi%everybody Tomcat 5 cannot handle that, Is there a way to do it with tomcat 5. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: File /jsp/struts-html not found
Hi Dronesh, after lots of testing I've got it working now. It's looks like that I just had a wrong struts.jar in my classpath. Thanks, Lothar Tomcat Users List users@tomcat.apache.org schrieb am 31.01.06 19:47:58: Hi Lothar, Seems there is some configration problem or tld file is not in place.Can you send your web.xml and struts-conf.xml. Thanks, Dronesh -Original Message- From: Lothar Krenzien [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 1:42 PM To: users@tomcat.apache.org Subject: File /jsp/struts-html not found Hi, I'm having a struts 1.1 application on tomcat 5.5.9. Because of some mysterious problems (see my previous post can't load any JSP anymore in this list) I switched to 5.5.15 but now have an another problem. In the browser I get the following error: org.apache.jasper.JasperException: File /jsp/struts-html not found at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHand ler.java:105) at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java :430) at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java :154) at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:1 80) at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:354) at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:381) at org.apache.jasper.compiler.Parser.parseElements(Parser.java:795) at org.apache.jasper.compiler.Parser.parse(Parser.java:122) at org.apache.jasper.compiler.ParserController.parse(ParserController.java: 199) at org.apache.jasper.compiler.ParserController.parse(ParserController.java: 153) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:227) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:369) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja va:473) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:190) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) In the log file I found the following line 2006-01-31 19:07:38,801 [INFO ]Exception initializing TldLocationsCache: XML parsing error on file /WEB-INF/web.xml: (line 3, col 9): Document is invalid: no grammar found. But the file is *absolutly* identically with the last working version. Here's the begin of the web.xml : ?xml version=1.0 encoding=ISO-8859-1? web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee web-app_2_4.xsd version=2.4 /web-app I can't see any error on it. Does anybody know what could be wrong ? A few days ago I upgraded to stuts 1.2 but now swichted back to 1.1. In earlier post I've read that there was a problem with Xerces: http://mail-archives.apache.org/mod_mbox/tomcat-users/200312.mbox/browse r But I use the same version that worked all the time. I can't figure out what could be wrong. Lothar __ Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ XXL-Speicher, PC-Virenschutz, Spartarife mehr: Nur im WEB.DE Club! Jetzt gratis testen! http://freemail.web.de/home/landingpad/?mc=021130 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to identify version of a running Tomcat and similar trivia
See the FAQ. http://tomcat.apache.org/faq/ There are a few ways to get the version 1) Use version.sh (or vertsion.bat) 2) Look at the manager webapp (in url /manager/html/) 3) More ways that I can't remember -Tim [EMAIL PROTECTED] wrote: Hi Tomcatters, I beg your pardon for this affront to any self-respecting servlet coder's mind. I am but merely a Unix sysadmin plagued with a varying zoo of Tomcats on different Unices who is largely Java-ignorant and only has to maintain these cats (sorry, but Perl suits my mundane admin tasks much better). Nevertheless I hope you deign giving me an answer to my trivial questions. 1. How can I identify the version of a running Tomcat without reaping it or wreaking similar havoc? Back in ole Apache days things where easy. You only had to locate the residence of the httpd daemon's binary (which was just a glance at the proc table), and run a httpd -v on it. These times all I can see is a running Java master thread. All it discloses is the version of the Java interpreter from the respective JRE. 2. How to quickly introspect a Tomcat's child thread, resource usage? I cannot see from the OS's proc table how many child threads a master has spawned and keeps maintaining, nor which resources they share. If something gets cranked up, what seems to be quite often for some of our Tomcat implementations (almost never experienced a crashing Apache), all I can do is killing the master thread if it is still appearing in the proc table though. (I assume the rather instability is owe to too many average Java hackers deem themselves eligable to tinker with the Tomcat's memory management relying on automatic garbage collection, only comparing this with what I learned about mod_perl and proper initializations and freeing of resources) 3. How to identify a Tomcat's config? Well, I could run a find for server.xml, but this would most likely spit out a dozens of namesake files of various test instalations that aren't of relevance. I think, there ought to be an URI one could query. For instance when I lookup the proc table on a hpux box at best I can only see this mess $ UNIX95= ps -x -C java -o args= /opt/java1.5/bin/PA_RISC2.0/java -Xverbosegc:file=/tmp/gc.out -server -Xms256m -Xmx256m -Xmn128m -XX:+DisableExplicitGC -XdoCloseWithReadPending -Djava.security.policy==/opt/hpapache2/tomcat/bin/../conf/tomcat. policy -Dtomcat.home=/opt/hpapache2/tomcat/bin/.. org.apache.tomcat.startup.Main start Ok, from this I could at least guess that there might be a /opt/hpapache2/tomcat/conf/server.xml lingering. 4. Parsing the config Despite their ever increasing whitespread I think these XML style config files are a nuisance for a sysadmin who neither is able to nor willing to use an X application for config maintenance, querying (think of low bandwidth serial line connections and the impedence by ubiquitious firewalls) I wouldn't quite argue that a sendmail.cf file is anything more readable to the human, but I find it rather overkill to throw in an XML parser module (like CPAN's XML::Simple, XML::Parser or XML::SAX) merely to find out basic configuration settings (e.g. like listening ports). So is there a CLI tool or a special URI for quereing a Tomcat's config? 5. Tool for monitoring a Tomcat's state I know there's some Java Monitoring classes (was it JMX or so?). But as I told you I am not into Java, and most of all I lack the knowledge of the underlying class hirarchy. It would be nice if I could use or come up with an own Perl plug-in. Is it possible to enable legacy CGI support with Tomcat? Then I could at least provide my own monitoring scripts. Regards Ralph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cannot transform and load jsp file with Tomcat under Eclipse
Hi All Can any one tell me exactly from wher can i download POI.jar and POI API documents . I tried http://www.reportmill.com/rm4/ http://apache.mirrors.tds.net/jakarta/poi/release/src/ when i clik on jar or tar the page keeps on waitign for download to happen. Thanks in Advance Birendar S Waldiya Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: percent sign in URI
I'm not sure properly is the correct word to use in your situation. Doing things based on bug is always a big risk. If one day Apache corrects this bug, your customer will have a great pain in the *ss! abdurrahman sahin wrote: hi David; I am aware of the case. As I stated before Apache2 server properly handles that problem and I need that functionality because our customer's system built on it. -Original Message- From: David Delbecq [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 01, 2006 11:58 AM To: Tomcat Users List Subject: Re: percent sign in URI Hello abdurrahman, Your url is incorrect, replace it with http://localhost:8080/aSite/aPage?query=hi%25everybody According to rfc 1738, 2.2. URL Character Encoding Issues Octets must be encoded ..., if the use of the corresponding character is unsafe, ... The character % is unsafe because it is used for encodings of other characters. Thus, only alphanumerics, the special characters $-_.+!*'(),, and reserved characters used for their reserved purposes may be used unencoded within a URL. There is no details in RFC on how to handle badly shaped urls (like % not followed by 2 hex digits) and thus your urls should not rely upon this. Regards. abdurrahman sahin a écrit : I realized apache2 web server properyl handles % sign in URIs, i need = exact functionality on tomcat 5 too. When I try to pass a parameter containing % sign, the parameter value on = the server seems null. like http://localhost:8080/aSite/aPage?query=hi%everybody Tomcat 5 cannot handle that, Is there a way to do it with tomcat 5. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
BUG in Tomcat 4.3.31 with Oracle 9?
Hi! I tried the following code from a jsp-page one time on a tomcat 4.1.30 and one time on a tomcat 4.1.31. String up = update test_double set test_value = '26.5' where oid = '1'; Statement st = dbConn.createStatement(); st.executeUpdate(up); Interestingly this code works with tomcat 4.1.30 but not with 4.1.31 I'm using an Oracle 9 DB and ODBC-Thin Driver. Any ideas what this problem could be? best regards, Markus -- 10 GB Mailbox, 100 FreeSMS/Monat http://www.gmx.net/de/go/topmail +++ GMX - die erste Adresse für Mail, Message, More +++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Download file Problem - 404 error
I've done code similar to this. Yore can go one of two ways: 1) Store your properties file in WEB- INF/classes and then call propFile.load(this.getClass().getClassLoader().getResourceAsStream(application.properties'')); 2) Store the properties file anywhere in the webapp and call propFile.load (request.getSession().getServletContext().getResourceAsStream( /[webapp rel path]/application.properties)); I think No. 1 would be preferable as it doesn't require a request object and can exist anywhere in code. -- David DEEPA M N wrote: Hi, wen i checked the log file, i think the error might be in the line of the code. root = propFile.getProperty(app.directory); This code should be able to download the files from the server. so i m using application.properties where app.directory=D:\\temp\\files\\ I doubt because of this line am i not able to run the appln. Pls let me know where should i place this application.properties file. Regards deepa Here is a code snnipet: String JAVA_HOME = application.properties; // Get a handle on the properties file try{ in = new FileInputStream(JAVA_HOME); propFile = new Properties(); propFile.load(in); } catch (IOException ignore){} separator = /; // Get the directory from the application.properties file // e.g. C:\\Temp\\Files\\ root = propFile.getProperty(app.directory); Deepa } - Jiyo cricket on Yahoo! India cricket - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
can't send email from tomcat using javamail api
Hi Guys I'm running a web application on Tomcat 5.5.12, and I cannot connect to my SMTP server using javamail from it for some reason. The error I am getting is the following:- javax.mail.MessagingException: Could not connect to SMTP host: smtpServer, port: 25; nested exception is: java.net.ConnectException: Connection refused: connect What has me totally confused though is that I can telnet to the SMTP server on port 25. I also made a little test java application to run outside of tomcat and it succesfully sent an email to the same server! Does anyone know what might be causing this. Why would it be failing only from the web application? I have tried just about everything i can think of. Thanks in advance for your replies. Matt
jk2 question
Hello, I have to connect an Apache location to a Tomcat webapp with a different name. How can I achieve this? e.g. http://localhost/edu/fedora should point to http://localhost:8080/fedora Any ideas? Many thanks in advance Dieter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to identify version of a running Tomcat and similar trivia
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: How to identify version of a running Tomcat and similar trivia 3. How to identify a Tomcat's config? 4. Parsing the config 5. Tool for monitoring a Tomcat's state For all of the above, try the manager and admin apps that are available with Tomcat. (For the 5.5.x levels, you have to download admin separately.) The admin app lets you scan and modify many of the Tomcat config settings. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and client certificates
Setting clientAuth to true / false in the Connector configuration works fine, but how do I configure client authenticaton on a per-directory or even per-servlet basis? This is my current configuration: In server.xml: Connector port=8443 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 debug=0 scheme=https secure=true clientAuth=false sslProtocol=TLS keystoreFile=\...\keystore.jks keystorePass=wonttell truststoreFile=\...\truststore.jks truststorePass=wonttell / In web.xml: security-constraint web-resource-collection url-pattern/html/*/url-pattern /web-resource-collection auth-constraint/ user-data-constraint/ /security-constraint login-config auth-methodCLIENT-CERT/auth-method /login-config And here are the results I get: https://domain/anypage : OK https://domain/html/anypage : HTTP Status 403 - Access to the requested resource has been denied The logfile says: 01.02.2006 15:19:57 org.apache.coyote.http11.Http11Processor action WARNING: Exception getting SSL Cert java.net.SocketException: Socket Closed What's wrong with my configuration? Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: RE: context.xml
Thanks Warren, Tim and Charles, Right now I'll leave it as $CATALINA_HOME/conf/context.xml since at this time I'm only deploying one webapp. I had hoped to make it webapp specific, but oh well... If I do end up having more webapps I'll create a shell script (linux OS here) that copies a webapp specifically named context.xml to the proper place(s) during upgrades/installation. Thanks for you help with this. Maybe one day, if it does not go totally against the designers' philosophy we can have a persistent webapp specific context.xml. (Hint Hint) :) -Dennis -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 8:55 PM To: Tomcat Users List Subject: RE: RE: context.xml From: Klotz Jr, Dennis [mailto:[EMAIL PROTECTED] Subject: RE: RE: context.xml I am hoping to find a place for a context.xml to live where it will never get deleted. That a customer can change and when we give them a new war file, the context.xml changes that they have made will stick around. Perhaps you could provide your customers with an installation package that provides the .war file and a master context copy for editing somewhere outside of Tomcat, along with a deployment script that copies both the .war and the edited context file into Tomcat. [Sorry, that sentence was way too long...] - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: BUG in Tomcat 4.3.31 with Oracle 9?
[EMAIL PROTECTED] wrote: Hi! I tried the following code from a jsp-page one time on a tomcat 4.1.30 and one time on a tomcat 4.1.31. String up = update test_double set test_value = '26.5' where oid = '1'; Statement st = dbConn.createStatement(); st.executeUpdate(up); Interestingly this code works with tomcat 4.1.30 but not with 4.1.31 I'm using an Oracle 9 DB and ODBC-Thin Driver. Any ideas what this problem could be? What does not work mean? What is the error you're getting? Could it be that one version is autocommitting while the other isn't? Glen best regards, Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: can't send email from tomcat using javamail api
On 2 Feb 2006 at 0:12, Matthew Evans wrote: Hi Guys I'm running a web application on Tomcat 5.5.12, and I cannot connect to my SMTP server using javamail from it for some reason. The error I am getting is the following:- javax.mail.MessagingException: Could not connect to SMTP host: smtpServer, port: 25; nested exception is: java.net.ConnectException: Connection refused: connect What has me totally confused though is that I can telnet to the SMTP server on port 25. I also made a little test java application to run outside of tomcat and it succesfully sent an email to the same server! Does anyone know what might be causing this. Why would it be failing only from the web application? I have tried just about everything i can think of. Is the webapp running on the same server as the SMTP server? If so then you have to run telnet on that server itselft and connect to localhost on port 25 to do a true test. The reason why I'm suggesting this is that the smtp server may not be configured to accept localhost connections. -Steve O. «¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤» There's no obfuscated Perl contest because it's pointless. - Jeff Polk Steve O. http://www.steveo.us New pics: B17G and B24 http://www.steveo.us/B17-B24 B17G WWII Bomber Yankee Lady Flight http://www.steveo.us/b17ride SUNY NCC MATH/COMPUTER Dept. http://www.matcmp.ncc.edu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HTTP Status 408
I am getting this error occasionally and am unable to figure out the problem. -- HTTP/1.1 408 The time allowed for the login process has been exceeded. If you wish to continue you must either click back twice and re-click the link you requested or close and re-open your browser -- I would really appreciate any suggestions about resolving this issue. It only happens when a valid user/password are used to login into a tomcat app. If an invalid user/password are used, I get correctly redirected to an error page. Thank you, Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat and client certificates
The clientAuth attribute of the connector has to be set to true. Then you will need a client cert to access resources under /html/*, but not other pages. See the Tomcat SSL guide on how to create the client cert. ND -Original Message- From: Markus [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 01, 2006 9:22 AM To: Tomcat Users List Subject: Re: Tomcat and client certificates Setting clientAuth to true / false in the Connector configuration works fine, but how do I configure client authenticaton on a per-directory or even per-servlet basis? This is my current configuration: In server.xml: Connector port=8443 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 debug=0 scheme=https secure=true clientAuth=false sslProtocol=TLS keystoreFile=\...\keystore.jks keystorePass=wonttell truststoreFile=\...\truststore.jks truststorePass=wonttell / In web.xml: security-constraint web-resource-collection url-pattern/html/*/url-pattern /web-resource-collection auth-constraint/ user-data-constraint/ /security-constraint login-config auth-methodCLIENT-CERT/auth-method /login-config And here are the results I get: https://domain/anypage : OK https://domain/html/anypage : HTTP Status 403 - Access to the requested resource has been denied The logfile says: 01.02.2006 15:19:57 org.apache.coyote.http11.Http11Processor action WARNING: Exception getting SSL Cert java.net.SocketException: Socket Closed What's wrong with my configuration? Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTTP Status 408
The code says (in FormAuthenticator) if (session == null) session = request.getSessionInternal(false); if (session == null) { if (containerLog.isDebugEnabled()) containerLog.debug (User took so long to log on the session expired); response.sendError(HttpServletResponse.SC_REQUEST_TIMEOUT, sm.getString(authenticator.sessionExpired)); return (false); } With the login form, a Session should be created. (Not quite an HttpSession, but pretty close to it) This Session also holds authentication information to send you back to the right location after login. For some reason a session can't be found. Why? I have no clue. It could be that the session expired, or it could be a session cookie is not being sent (for any number of reasons), or something else. To debug it, livehttpheaders and firefox might be helpful. -Tim scott soward wrote: I am getting this error occasionally and am unable to figure out the problem. -- HTTP/1.1 408 The time allowed for the login process has been exceeded. If you wish to continue you must either click back twice and re-click the link you requested or close and re-open your browser -- I would really appreciate any suggestions about resolving this issue. It only happens when a valid user/password are used to login into a tomcat app. If an invalid user/password are used, I get correctly redirected to an error page. Thank you, Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: can't send email from tomcat using javamail api
No, it's running on a different server. -Original Message- From: Steve Ochani [mailto:[EMAIL PROTECTED] Sent: Thursday, 2 February 2006 1:59 AM To: Tomcat Users List; Matthew Evans Subject: Re: can't send email from tomcat using javamail api On 2 Feb 2006 at 0:12, Matthew Evans wrote: Hi Guys I'm running a web application on Tomcat 5.5.12, and I cannot connect to my SMTP server using javamail from it for some reason. The error I am getting is the following:- javax.mail.MessagingException: Could not connect to SMTP host: smtpServer, port: 25; nested exception is: java.net.ConnectException: Connection refused: connect What has me totally confused though is that I can telnet to the SMTP server on port 25. I also made a little test java application to run outside of tomcat and it succesfully sent an email to the same server! Does anyone know what might be causing this. Why would it be failing only from the web application? I have tried just about everything i can think of. Is the webapp running on the same server as the SMTP server? If so then you have to run telnet on that server itselft and connect to localhost on port 25 to do a true test. The reason why I'm suggesting this is that the smtp server may not be configured to accept localhost connections. -Steve O. «¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤» There's no obfuscated Perl contest because it's pointless. - Jeff Polk Steve O. http://www.steveo.us New pics: B17G and B24 http://www.steveo.us/B17-B24 B17G WWII Bomber Yankee Lady Flight http://www.steveo.us/b17ride SUNY NCC MATH/COMPUTER Dept. http://www.matcmp.ncc.edu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: BUG in Tomcat 4.3.31 with Oracle 9?
Could you publish the stack trace for this? ND -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 01, 2006 8:06 AM To: users@tomcat.apache.org Subject: BUG in Tomcat 4.3.31 with Oracle 9? Hi! I tried the following code from a jsp-page one time on a tomcat 4.1.30 and one time on a tomcat 4.1.31. String up = update test_double set test_value = '26.5' where oid = '1'; Statement st = dbConn.createStatement(); st.executeUpdate(up); Interestingly this code works with tomcat 4.1.30 but not with 4.1.31 I'm using an Oracle 9 DB and ODBC-Thin Driver. Any ideas what this problem could be? best regards, Markus -- 10 GB Mailbox, 100 FreeSMS/Monat http://www.gmx.net/de/go/topmail +++ GMX - die erste Adresse für Mail, Message, More +++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTTP Status 408
Thank you Tim, I'll try your suggestions. Scott --- Tim Funk [EMAIL PROTECTED] wrote: The code says (in FormAuthenticator) if (session == null) session = request.getSessionInternal(false); if (session == null) { if (containerLog.isDebugEnabled()) containerLog.debug (User took so long to log on the session expired); response.sendError(HttpServletResponse.SC_REQUEST_TIMEOUT, sm.getString(authenticator.sessionExpired)); return (false); } With the login form, a Session should be created. (Not quite an HttpSession, but pretty close to it) This Session also holds authentication information to send you back to the right location after login. For some reason a session can't be found. Why? I have no clue. It could be that the session expired, or it could be a session cookie is not being sent (for any number of reasons), or something else. To debug it, livehttpheaders and firefox might be helpful. -Tim scott soward wrote: I am getting this error occasionally and am unable to figure out the problem. -- HTTP/1.1 408 The time allowed for the login process has been exceeded. If you wish to continue you must either click back twice and re-click the link you requested or close and re-open your browser -- I would really appreciate any suggestions about resolving this issue. It only happens when a valid user/password are used to login into a tomcat app. If an invalid user/password are used, I get correctly redirected to an error page. Thank you, Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk connection problem after couple of days or a week
Hi all, Don't know if anyone remembers my original mail about this from 20/1/06, but it's just happened again. I've pasted the section where the connector went nuts below (at end of mail). This is the first thing to appear in mod_jk's log. Then, about 30 seconds later, The JBoss server on the same machine suddenly starts throwing java.sql.SQLException: ORA-12571: TNS:packet writer failure, which happens when it can't connect to the database. It's like sockets on the machine have now stopped working properly. Our workers.properties used to have just this line for this worker (when we initially set up the machine and got these issues): worker.eOrig.port=8991 Now it has these: worker.eOrig.port=8991 worker.eOrig.cachesize=50 worker.eOrig.cache_timeout=600 worker.eOrig.socket_keepalive=1 worker.eOrig.recycle_timeout=300 We figured we'd try setting a few to see if it helped, but it makes no difference (not really suprised but it was worth a shot). Some of them are probably a bad idea but we had nothing to lose so we thought we'd try them. Last time I posted this one person had the same issue, but no-one had an answer as to why it does this. Any ideas people? At this rate we're gonna be back to the old connector very soon. If there are any particular files that would be of use let me know. Thanks Jon Reeve Systems Developer [Wed Feb 01 13:58:27 2006] [error] jk_ajp_common.c (1026): ERROR: can't receive the response message from tomcat, network problems or tomcat (127.0.0.1:8991) is down -53 [Wed Feb 01 13:58:27 2006] [error] jk_ajp_common.c (1503): Tomcat is down or refused connection. No response has been sent to the client (yet) [Wed Feb 01 13:58:27 2006] [info] jk_ajp_common.c (1721): Receiving from tomcat failed, recoverable operation attempt=0 [Wed Feb 01 13:58:27 2006] [info] jk_ajp_common.c (1749): Sending request to tomcat failed, recoverable operation attempt=1 [Wed Feb 01 13:58:44 2006] [error] jk_ajp_common.c (1026): ERROR: can't receive the response message from tomcat, network problems or tomcat (127.0.0.1:8991) is down -53 [Wed Feb 01 13:58:44 2006] [error] jk_ajp_common.c (1503): Tomcat is down or refused connection. No response has been sent to the client (yet) [Wed Feb 01 13:58:44 2006] [info] jk_ajp_common.c (1721): Receiving from tomcat failed, recoverable operation attempt=0 [Wed Feb 01 13:58:44 2006] [info] jk_ajp_common.c (1749): Sending request to tomcat failed, recoverable operation attempt=1 [Wed Feb 01 13:58:44 2006] [error] jk_ajp_common.c (961): Can't receive the response message from tomcat, network problems or tomcat is down (127.0.0.1:8991), err=-53 [Wed Feb 01 13:58:44 2006] [error] jk_ajp_common.c (1528): Tomcat is down or network problems. Part of the response has already been sent to the client [Wed Feb 01 13:58:44 2006] [info] jk_ajp_common.c (1721): Receiving from tomcat failed, recoverable operation attempt=1 [Wed Feb 01 13:58:44 2006] [info] jk_ajp_common.c (1749): Sending request to tomcat failed, recoverable operation attempt=2 [Wed Feb 01 13:58:45 2006] [error] jk_ajp_common.c (1026): ERROR: can't receive the response message from tomcat, network problems or tomcat (127.0.0.1:8991) is down -53 [Wed Feb 01 13:58:45 2006] [error] jk_ajp_common.c (1503): Tomcat is down or refused connection. No response has been sent to the client (yet) [Wed Feb 01 13:58:45 2006] [info] jk_ajp_common.c (1721): Receiving from tomcat failed, recoverable operation attempt=0 [Wed Feb 01 13:58:45 2006] [info] jk_ajp_common.c (1749): Sending request to tomcat failed, recoverable operation attempt=1 [Wed Feb 01 13:58:45 2006] [error] jk_ajp_common.c (1026): ERROR: can't receive the response message from tomcat, network problems or tomcat (127.0.0.1:8991) is down -53 [Wed Feb 01 13:58:45 2006] [error] jk_ajp_common.c (1503): Tomcat is down or refused connection. No response has been sent to the client (yet) [Wed Feb 01 13:58:45 2006] [info] jk_ajp_common.c (1721): Receiving from tomcat failed, recoverable operation attempt=1 [Wed Feb 01 13:58:45 2006] [info] jk_ajp_common.c (1749): Sending request to tomcat failed, recoverable operation attempt=2 [Wed Feb 01 13:58:45 2006] [error] jk_ajp_common.c (1026): ERROR: can't receive the response message from tomcat, network problems or tomcat (127.0.0.1:8991) is down -53 [Wed Feb 01 13:58:45 2006] [error] jk_ajp_common.c (1503): Tomcat is down or refused connection. No response has been sent to the client (yet) [Wed Feb 01 13:58:45 2006] [info] jk_ajp_common.c (1721): Receiving from tomcat failed, recoverable operation attempt=2 [Wed Feb 01 13:58:45 2006] [info] jk_ajp_common.c (1749): Sending request to tomcat failed, recoverable operation attempt=3 [Wed Feb 01 13:58:45 2006] [error] jk_ajp_common.c (1758): Error connecting to tomcat. Tomcat is probably not started or is listening on the wrong port. worker=eOrig failed [Wed Feb 01 13:58:45 2006] [info] mod_jk.c (1985): Service error=0 for worker=eOrig [Wed Feb 01 13:58:45
RE: How to identify version of a running Tomcat and similar trivia
Hi Tim, thanks for referring me to the Tomcat FAQs. That's for sure the first source of information one should read before nagging the list community with redundant questions. At least did I find therein a description how to enable CGI support. Yet, the trivial task of identifying a running Java thread's Tomcat version seems rediculously convoluted. I assume the mentioned version script isn't much more than a mere wrapper script that puts together the a hundred chars long java invocation of some class method call that most likely is called version() along with the loading of a dozen jar libs etc. (only joking ;-) Anyway, far more than anyone can remember and type without making typos. Only problem is, my Tomcat depot on this box (randomly picked one of our HP-UX boxes, but we also have Tomcats running on Linux, AIX, Solaris (and probably Win32) doesn't seem to have bundled such a wrapper script. # swlist |grep -i tomcat hpuxwsTomcat A.4.1.29.04HP-UX Tomcat-based Servlet Engine (ok, I concede with a properly bundled hpux depot I get a revision string that happens to be the same as the bundled Tomcat version, but that's not everywhere the case) # swlist -l file hpuxwsTomcat|grep -cF version 0 So where can I get such a version script? Hm, most likely in the official Apache Tomcat tarball distribution. Ok, I got that already for my Linux install problem (where I first thought to be required to compile from sources by Ant). Let's see if I find it there $ gzip -dc apache-tomcat-5.5.15.tar.gz |tar tf -|grep -F version apache-tomcat-5.5.15/bin/version.bat apache-tomcat-5.5.15/bin/version.sh Yup, let's see what its content is $ gzip -dc apache-tomcat-5.5.15.tar.gz |tar xf - apache-tomcat-5.5.15/bin/version.sh $ grep EXE apache-tomcat-5.5.15/bin/version.sh EXECUTABLE=catalina.sh if [ ! -x $PRGDIR/$EXECUTABLE ]; then echo Cannot find $PRGDIR/$EXECUTABLE exec $PRGDIR/$EXECUTABLE version $@ What the hack is catalina? Only know of an island off the coast of Los Angeles of that name, and a nice WWII water plane. But if I have the catalina.sh script anyway, and the only arg it is fed with happens to be version then I won't require the version script on my hpux boxes anyway. What a production... Then some of you mentioned a manager or admin webapp. Is this provided along with the basic Tomact installation, or an add-on. Well, when I run a GET on this URI on the Http10Connector according to this server's server.xml (btw, what is a Http10Connector? does it refer to the maximum bandwidth?) I only get a 404 server response. Seems there is further installation of a servlet required. # wget -O - http://localhost:8081/manager/html --16:52:07-- http://localhost:8081/manager/html = `-' Resolving localhost... done. Connecting to localhost[127.0.0.1]:8081... connected. HTTP request sent, awaiting response... 404 Not Found 16:52:07 ERROR 404: Not Found. Regards Ralph -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 01, 2006 12:47 PM To: Tomcat Users List Subject: Re: How to identify version of a running Tomcat and similar trivia See the FAQ. http://tomcat.apache.org/faq/ There are a few ways to get the version 1) Use version.sh (or vertsion.bat) 2) Look at the manager webapp (in url /manager/html/) 3) More ways that I can't remember -Tim [EMAIL PROTECTED] wrote: Hi Tomcatters, I beg your pardon for this affront to any self-respecting servlet coder's mind. I am but merely a Unix sysadmin plagued with a varying zoo of Tomcats on different Unices who is largely Java-ignorant and only has to maintain these cats (sorry, but Perl suits my mundane admin tasks much better). Nevertheless I hope you deign giving me an answer to my trivial questions. 1. How can I identify the version of a running Tomcat without reaping it or wreaking similar havoc? Back in ole Apache days things where easy. You only had to locate the residence of the httpd daemon's binary (which was just a glance at the proc table), and run a httpd -v on it. These times all I can see is a running Java master thread. All it discloses is the version of the Java interpreter from the respective JRE. 2. How to quickly introspect a Tomcat's child thread, resource usage? I cannot see from the OS's proc table how many child threads a master has spawned and keeps maintaining, nor which resources they share. If something gets cranked up, what seems to be quite often for some of our Tomcat implementations (almost never experienced a crashing Apache), all I can do is killing the master thread if it is still appearing in the proc table though. (I assume the rather instability is owe to too many average Java hackers deem themselves eligable to tinker with the Tomcat's memory management relying on automatic garbage collection, only comparing this with what I
Re: Identifying a page with no extension to be a JSP
if you just want to do it for this file, just add the filename instead of the *, for example servlet-mapping servlet-namejsp/servlet-name url-pattern/path/file/url-pattern /servlet-mapping in your web.xml this has worked for me, when I've done it for files in the main path anyway, but I suppose it will work for other parts also.. /Christian Andersson Martin Dubuc wrote: I have a page that has some JSP directives in it and I would like my Web server to process it as such, but the filename for this page is fixed and does not contain an extension. Is there a configuration item I can use in Tomcat to indicate that this file must be processed by the JSP engine? I have tried setting a URL pattern of form path/* but Tomcat seems to require a dot in the URL pattern. - Bring words and photos together (easily) with PhotoMail - it's free and works with Yahoo! Mail. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: can't send email from tomcat using javamail api
just shooting from the hip... do you have any java policies configured, which forbids connections to another server? Leon On 2/1/06, Matthew Evans [EMAIL PROTECTED] wrote: No, it's running on a different server. -Original Message- From: Steve Ochani [mailto:[EMAIL PROTECTED] Sent: Thursday, 2 February 2006 1:59 AM To: Tomcat Users List; Matthew Evans Subject: Re: can't send email from tomcat using javamail api On 2 Feb 2006 at 0:12, Matthew Evans wrote: Hi Guys I'm running a web application on Tomcat 5.5.12, and I cannot connect to my SMTP server using javamail from it for some reason. The error I am getting is the following:- javax.mail.MessagingException: Could not connect to SMTP host: smtpServer, port: 25; nested exception is: java.net.ConnectException: Connection refused: connect What has me totally confused though is that I can telnet to the SMTP server on port 25. I also made a little test java application to run outside of tomcat and it succesfully sent an email to the same server! Does anyone know what might be causing this. Why would it be failing only from the web application? I have tried just about everything i can think of. Is the webapp running on the same server as the SMTP server? If so then you have to run telnet on that server itselft and connect to localhost on port 25 to do a true test. The reason why I'm suggesting this is that the smtp server may not be configured to accept localhost connections. -Steve O. 咫誑咫誧咫誑咫誧咫誑咫誧咫誑咫誧咫誑咫誧咫誑咫誧咫誑咫�There's no obfuscated Perl contest because it's pointless. - Jeff Polk Steve O. http://www.steveo.us New pics: B17G and B24 http://www.steveo.us/B17-B24 B17G WWII Bomber Yankee Lady Flight http://www.steveo.us/b17ride SUNY NCC MATH/COMPUTER Dept. http://www.matcmp.ncc.edu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat log to syslog
Oh, as to your original question about log/syslog. I believe since the later versions of Tomcat 5.5.x all can use Log4J for all logging, you can do this. I believe reading that Log4J has a syslog appender that will re-direct output to syslog. You will need to go to the Log4J site (http://logging.apache.org/log4j/docs/) and the Tomcat 5.5.x doc on logging (http://tomcat.apache.org/tomcat-5.5-doc/logging.html) for configuration info. HTH - Richard -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Mark F Sent: Tuesday, January 31, 2006 6:57 AM To: users@tomcat.apache.org Subject: Tomcat log to syslog I have installed Tomcat 5.0.19 on Suse Linux Enterprise Server 9 SP3(SLES) If there is a newer version available for SLES could someone please let me know where to find it. As a relatively new user of SLES, poor package availability has been my only significant gripe. I would like to configure the logger to use syslog instead of the default logging mechanism for both application logs and system log (catalina.out) Your help would be greatly appreciated. Thanks, -Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Desperate for help with isapi_redirect.dll
Hi; Is there anyone on this list that know isapi_redirect? I have this bad feeling that there is only 1 person who knows this code (the one who wrote it) and that he/she is not on this list. If I have to pay for support that's fine but I really need to get this answered (or we'll be forced to switch to WebLogic and that's a giant PITA). 1. Where is the latest isapi_redirect.dll documentation? (There are several of both on the apache website and it's not clear which is the most recent. What I thought was the most recent documentation has dead links so I'm guessing that is not it.) 2. When demo.faces is requested from my website, it is displayed in the IIS logfile. On a submit of that form demo_license.faces is requested and watching the http requests, a request is sent to IIS for demo_license.faces. However, that request is never displayed in the IIS logfile. (demo_license.faces does have a link to windward.css and the IIS logfile does show that request and shows demo_license.faces as the page requesting it.) How do I get this request to display in the log file? We need it for our web tracking software. 3. I consistently get the following in the isapi_redirect.log file (removed duplicates): [Fri Jan 27 12:40:39 2006] [error] HttpExtensionProc::jk_isapi_plugin.c (1029): could not get a worker for name ajp13 [Fri Jan 27 13:53:06 2006] [info] ajp_send_request::jk_ajp_common.c (1178): Socket 616 is not connected any more (errno=-1) [Fri Jan 27 13:53:06 2006] [info] ajp_send_request::jk_ajp_common.c (1225): All endpoints are disconnected or dead [Fri Jan 27 13:53:06 2006] [info] ajp_service::jk_ajp_common.c (1749): Sending request to tomcat failed, recoverable operation attempt=1 [Fri Jan 27 13:53:07 2006] [info] jk_open_socket::jk_connect.c (444): connect to 127.0.0.1:8009 failed with errno=61 [Fri Jan 27 13:53:07 2006] [info] ajp_connect_to_endpoint::jk_ajp_common.c (889): Failed opening socket to (127.0.0.1:8009) with (errno=61) [Fri Jan 27 13:53:07 2006] [info] ajp_send_request::jk_ajp_common.c (1248): Error connecting to the Tomcat process. [Fri Jan 27 13:53:08 2006] [error] ajp_service::jk_ajp_common.c (1758): Error connecting to tomcat. Tomcat is probably not started or is listening on the wrong port. worker=ajp13w failed [Fri Jan 27 13:53:08 2006] [error] HttpExtensionProc::jk_isapi_plugin.c (1022): service() failed Help please - thanks - dave David Thielen http://www.windwardreports.com www.windwardreports.com 303-499-2544
Re: Jasper 2 JSP Engine How To ant script - ServletException not found
Glen, thanks for the suggestion on the search terms. After reading some search hits, I copied all the jars in TOMCAT_HOME\common\lib to ANT_HOME\lib and everything works now. --- Glen Mazza [EMAIL PROTECTED] wrote: Olinga K. Abbott wrote: Glen, thanks for responding. I placed both the property and path element references to servlet-api at the beginning of their respective sections, and defined jdk.javac.path. I still get the same error. Any ideas on why build.xml provided by the Tomcat website doesn't work? BUILD FAILED E:\workspace\progsoftware\trunk\source\jasper\build.xml:5: taskdef A class needed by class org.apache.jasper.JspC cannot be found: javax/servlet/ServletException Well, I just did a Google search on taskdef A class needed by class (with the quotes, of course) and got 239 hits. You'll probably find your answer somewhere in there. Glen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Desperate for help with isapi_redirect.dll
-Original Message- From: David Thielen [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 01, 2006 11:35 AM To: tomcat-user@jakarta.apache.org Subject: Desperate for help with isapi_redirect.dll Hi; David, As I understand it, you want the jk version 1.2.x NOT jk2. jk2 was a splitter effort that sputtered. As for your IIS log file problem, I have the same problem. We working with web trends to try to get the to be able to read the Apache log format from Tomcat. I am presuming you are running your app locally or at least on the same server as IIS. Correct? It does not appear your Tomcat is listening on port 8009. Are you sure it is started and stays up? Do you have a firewall on the machine that may be hosing the connections? Earnie! Is there anyone on this list that know isapi_redirect? I have this bad feeling that there is only 1 person who knows this code (the one who wrote it) and that he/she is not on this list. If I have to pay for support that's fine but I really need to get this answered (or we'll be forced to switch to WebLogic and that's a giant PITA). 1. Where is the latest isapi_redirect.dll documentation? (There are several of both on the apache website and it's not clear which is the most recent. What I thought was the most recent documentation has dead links so I'm guessing that is not it.) 2. When demo.faces is requested from my website, it is displayed in the IIS logfile. On a submit of that form demo_license.faces is requested and watching the http requests, a request is sent to IIS for demo_license.faces. However, that request is never displayed in the IIS logfile. (demo_license.faces does have a link to windward.css and the IIS logfile does show that request and shows demo_license.faces as the page requesting it.) How do I get this request to display in the log file? We need it for our web tracking software. 3. I consistently get the following in the isapi_redirect.log file (removed duplicates): [Fri Jan 27 12:40:39 2006] [error] HttpExtensionProc::jk_isapi_plugin.c (1029): could not get a worker for name ajp13 [Fri Jan 27 13:53:06 2006] [info] ajp_send_request::jk_ajp_common.c (1178): Socket 616 is not connected any more (errno=-1) [Fri Jan 27 13:53:06 2006] [info] ajp_send_request::jk_ajp_common.c (1225): All endpoints are disconnected or dead [Fri Jan 27 13:53:06 2006] [info] ajp_service::jk_ajp_common.c (1749): Sending request to tomcat failed, recoverable operation attempt=1 [Fri Jan 27 13:53:07 2006] [info] jk_open_socket::jk_connect.c (444): connect to 127.0.0.1:8009 failed with errno=61 [Fri Jan 27 13:53:07 2006] [info] ajp_connect_to_endpoint::jk_ajp_common.c (889): Failed opening socket to (127.0.0.1:8009) with (errno=61) [Fri Jan 27 13:53:07 2006] [info] ajp_send_request::jk_ajp_common.c (1248): Error connecting to the Tomcat process. [Fri Jan 27 13:53:08 2006] [error] ajp_service::jk_ajp_common.c (1758): Error connecting to tomcat. Tomcat is probably not started or is listening on the wrong port. worker=ajp13w failed [Fri Jan 27 13:53:08 2006] [error] HttpExtensionProc::jk_isapi_plugin.c (1022): service() failed Help please - thanks - dave David Thielen http://www.windwardreports.com www.windwardreports.com 303-499-2544 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: can't send email from tomcat using javamail api
Yes, and it worked fine. That's what made me even more confused. -Original Message- From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Sent: Thursday, 2 February 2006 3:02 AM To: Tomcat Users List Subject: Re: can't send email from tomcat using javamail api P.S. Have you tried to execute same code without tomcat? Sending a mail from a java executable program (One with main method). Leon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and client certificates
Creating client certs is no problem, I already had client authentication working on the Connector-Level. Nick: In other words: it is NOT possible in tomcat to have a webapp with BOTH, a private part with ssl AND client authentication and a public part with ssl but WITHOUT client authentication? That would be sad. Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: can't send email from tomcat using javamail api
$JAVA_HOME/jre/lib/security/java.policy tomcat permissions are configured in $TOMCAT_HOME/conf/catalina.policy regards Leon On 2/1/06, Matthew Evans [EMAIL PROTECTED] wrote: I don't think so. The webapp is currently able to make SOAP calls to another server on the network. And connect to a SQL Server database. Where would you suggest I check to be sure? Cheers Matt -Original Message- From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Sent: Thursday, 2 February 2006 3:01 AM To: Tomcat Users List Subject: Re: can't send email from tomcat using javamail api just shooting from the hip... do you have any java policies configured, which forbids connections to another server? Leon On 2/1/06, Matthew Evans [EMAIL PROTECTED] wrote: No, it's running on a different server. -Original Message- From: Steve Ochani [mailto:[EMAIL PROTECTED] Sent: Thursday, 2 February 2006 1:59 AM To: Tomcat Users List; Matthew Evans Subject: Re: can't send email from tomcat using javamail api On 2 Feb 2006 at 0:12, Matthew Evans wrote: Hi Guys I'm running a web application on Tomcat 5.5.12, and I cannot connect to my SMTP server using javamail from it for some reason. The error I am getting is the following:- javax.mail.MessagingException: Could not connect to SMTP host: smtpServer, port: 25; nested exception is: java.net.ConnectException: Connection refused: connect What has me totally confused though is that I can telnet to the SMTP server on port 25. I also made a little test java application to run outside of tomcat and it succesfully sent an email to the same server! Does anyone know what might be causing this. Why would it be failing only from the web application? I have tried just about everything i can think of. Is the webapp running on the same server as the SMTP server? If so then you have to run telnet on that server itselft and connect to localhost on port 25 to do a true test. The reason why I'm suggesting this is that the smtp server may not be configured to accept localhost connections. -Steve O. 咫�N咫?咫�N咫?咫�N咫?咫�N咫?咫�N咫?咫�N咫?咫�N咫 There's no obfuscated Perl contest because it's pointless. - Jeff Polk Steve O. http://www.steveo.us New pics: B17G and B24 http://www.steveo.us/B17-B24 B17G WWII Bomber Yankee Lady Flight http://www.steveo.us/b17ride SUNY NCC MATH/COMPUTER Dept. http://www.matcmp.ncc.edu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Identifying a page with no extension to be a JSP
Yees! I had tried to put the filename as a URL pattern, but without the path Tomcat didn't like it. Now, just adding a slash in front a the filename solves my problem! Thanks! Martin Christian Andersson [EMAIL PROTECTED] wrote: if you just want to do it for this file, just add the filename instead of the *, for example jsp /path/file in your web.xml this has worked for me, when I've done it for files in the main path anyway, but I suppose it will work for other parts also.. /Christian Andersson Martin Dubuc wrote: I have a page that has some JSP directives in it and I would like my Web server to process it as such, but the filename for this page is fixed and does not contain an extension. Is there a configuration item I can use in Tomcat to indicate that this file must be processed by the JSP engine? I have tried setting a URL pattern of form path/* but Tomcat seems to require a dot in the URL pattern. - Bring words and photos together (easily) with PhotoMail - it's free and works with Yahoo! Mail. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, more on new and used cars.
Re: can't send email from tomcat using javamail api
it is the smtp server that is rejecting the connection.do you need to authenticate to your smtp server? Matthew Evans wrote: I don't think so. The webapp is currently able to make SOAP calls to another server on the network. And connect to a SQL Server database. Where would you suggest I check to be sure? Cheers Matt -Original Message- From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Sent: Thursday, 2 February 2006 3:01 AM To: Tomcat Users List Subject: Re: can't send email from tomcat using javamail api just shooting from the hip... do you have any java policies configured, which forbids connections to another server? Leon On 2/1/06, Matthew Evans [EMAIL PROTECTED] wrote: No, it's running on a different server. -Original Message- From: Steve Ochani [mailto:[EMAIL PROTECTED] Sent: Thursday, 2 February 2006 1:59 AM To: Tomcat Users List; Matthew Evans Subject: Re: can't send email from tomcat using javamail api On 2 Feb 2006 at 0:12, Matthew Evans wrote: Hi Guys I'm running a web application on Tomcat 5.5.12, and I cannot connect to my SMTP server using javamail from it for some reason. The error I am getting is the following:- javax.mail.MessagingException: Could not connect to SMTP host: smtpServer, port: 25; nested exception is: java.net.ConnectException: Connection refused: connect What has me totally confused though is that I can telnet to the SMTP server on port 25. I also made a little test java application to run outside of tomcat and it succesfully sent an email to the same server! Does anyone know what might be causing this. Why would it be failing only from the web application? I have tried just about everything i can think of. Is the webapp running on the same server as the SMTP server? If so then you have to run telnet on that server itselft and connect to localhost on port 25 to do a true test. The reason why I'm suggesting this is that the smtp server may not be configured to accept localhost connections. -Steve O. $BS!kTS!!)S!kTS!!)S!kTS!!)S!kTS!!)S!kTS!!)S!kTS!!)S!kTS!(J There's no obfuscated Perl contest because it's pointless. - Jeff Polk Steve O. http://www.steveo.us New pics: B17G and B24 http://www.steveo.us/B17-B24 B17G WWII Bomber Yankee Lady Flight http://www.steveo.us/b17ride SUNY NCC MATH/COMPUTER Dept. http://www.matcmp.ncc.edu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Mike Sabroff Web Services Developer [EMAIL PROTECTED] 920-568-8379 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: can't send email from tomcat using javamail api
There are also a few other things. I had this happen one time, and it was a dns problemanother time it was another networking problem. Whatever it is, like I said beforeor should have restated as: it appears that java is attempting to make the connection, but is being refused for some reason or anotherpossibly authentication, or very possibly a network issue (this is very likely) Mike Sabroff wrote: it is the smtp server that is rejecting the connection.do you need to authenticate to your smtp server? Matthew Evans wrote: I don't think so. The webapp is currently able to make SOAP calls to another server on the network. And connect to a SQL Server database. Where would you suggest I check to be sure? Cheers Matt -Original Message- From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Sent: Thursday, 2 February 2006 3:01 AM To: Tomcat Users List Subject: Re: can't send email from tomcat using javamail api just shooting from the hip... do you have any java policies configured, which forbids connections to another server? Leon On 2/1/06, Matthew Evans [EMAIL PROTECTED] wrote: No, it's running on a different server. -Original Message- From: Steve Ochani [mailto:[EMAIL PROTECTED] Sent: Thursday, 2 February 2006 1:59 AM To: Tomcat Users List; Matthew Evans Subject: Re: can't send email from tomcat using javamail api On 2 Feb 2006 at 0:12, Matthew Evans wrote: Hi Guys I'm running a web application on Tomcat 5.5.12, and I cannot connect to my SMTP server using javamail from it for some reason. The error I am getting is the following:- javax.mail.MessagingException: Could not connect to SMTP host: smtpServer, port: 25; nested exception is: java.net.ConnectException: Connection refused: connect What has me totally confused though is that I can telnet to the SMTP server on port 25. I also made a little test java application to run outside of tomcat and it succesfully sent an email to the same server! Does anyone know what might be causing this. Why would it be failing only from the web application? I have tried just about everything i can think of. Is the webapp running on the same server as the SMTP server? If so then you have to run telnet on that server itselft and connect to localhost on port 25 to do a true test. The reason why I'm suggesting this is that the smtp server may not be configured to accept localhost connections. -Steve O. $BS!kTS!!)S!kTS!!)S!kTS!!)S!kTS!!)S!kTS!!)S!kTS!!)S!kTS!(J There's no obfuscated Perl contest because it's pointless. - Jeff Polk Steve O. http://www.steveo.us New pics: B17G and B24 http://www.steveo.us/B17-B24 B17G WWII Bomber Yankee Lady Flight http://www.steveo.us/b17ride SUNY NCC MATH/COMPUTER Dept. http://www.matcmp.ncc.edu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Mike Sabroff Web Services Developer [EMAIL PROTECTED] 920-568-8379 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to identify version of a running Tomcat and similar trivia
Tomcat is like any server based java app. It will always require a convulted classpath as well as multiple classloaders to do anything interesting. The most failsafe way to get the version regarless of the packaging is to do the following: (no, i'm not kidding) 1) find catalina.jar. It *should* be in server/lib/catalina.jar of your tomcat installation 2) Open it with winzip like program 3) Look for ServerInfo.properties (in org/apache/catalina/util/) 4) In that file is ther server version The version.sh script is just a wrapper the created the appropriate classpath so that the properties file can be loaded. -Tim [EMAIL PROTECTED] wrote: Hi Tim, SNIP Only problem is, my Tomcat depot on this box (randomly picked one of our HP-UX boxes, but we also have Tomcats running on Linux, AIX, Solaris (and probably Win32) doesn't seem to have bundled such a wrapper script. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
question regarding jdk log in Tomcat
Hi, I have a question about java logging within a context. I´d like to have a way to isolate the jdk1.4 log between Tomcat contexts. In my own lines of code, I create a JDK1.4 logger with an associated name, Handler and Formatter. This way, I have one log file per context. My problem is when I add Frameworks like Struts and Hibernate to my context. I would like them logging into my current context log file. Since they use commons logging, I´ve had to call LogManager.getLogManager().readConfiguration(InputStream is); in order to make the logging engine load my configurations and let me log where I wish. But that affects in a global way. If I have only one context running, everything is fine, but with many, the last context that called readConfiguration redefines all the precedents. I looked to the sources of the jdk and found it relies on the System Classloader... I am a little bit trapped here, as I do not know how to redirect the log of the instances of hibernate and struts to the log of my context of tomcat. I appreciate very much any suggestions. TIA, Alan Honczar AVISO LEGAL - Esta mensagem e seu conteúdo - inclusive anexos - são para uso exclusivo de seu(s) destinatário(s), podendo conter informações confidenciais e/ou legalmente privilegiadas sobre a APPI Tecnologia S/A. Qualquer modificação, retransmissão, disseminação, impressão ou utilização não autorizada fica estritamente proibida. Se você recebeu esta mensagem por engano, por favor informe ao remetente e apague o material e as cópias de sua máquina. LEGAL ADVICE - This message - including any attachments - contains confidential and privileged information from APPI Tecnologia S/A intended for the named recipient(s) only. Any modification, copying, printing or distribution of this message or the taking of any action based on it is strictly prohibited. If you have received it by mistake please notify the sender by return e-mail and delete this message from your system. - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and client certificates
Hi Yes, it is possible. From connector configuration doc: clientAuth: Set this value to true if you want Tomcat to require all SSL clients to present a client Certificate in order to use this socket. Set this value to want if you want Tomcat to request a client Certificate, but not fail if one isn't presented. So in your configuration, change clientAuth=false to clientAuth=want and connector will accept connection be there a certificate or not. But don't forget login-config auth-methodCLIENT-CERT/auth-method /login-config means access to /html/* will be refused to users not presenting a certificate. (They can still access other webapps in tomcat if those have a login-config not based on certificate and they can also browse in ssl the non restricted area of client-cert based webapp) for sensitive areas, you might also be interrested in adding, in particular for basic authentification based webapps ... user-data-constraint transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint /security-constraint Le Mercredi 01 Février 2006 17:55, Markus a écrit : Creating client certs is no problem, I already had client authentication working on the Connector-Level. Nick: In other words: it is NOT possible in tomcat to have a webapp with BOTH, a private part with ssl AND client authentication and a public part with ssl but WITHOUT client authentication? That would be sad. Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- David Delbecq Royal Meteorological Institute of Belgium - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: rotating tomcat logs
2006/2/1, Tim Lucia [EMAIL PROTECTED]: I use log4j as the logging implementation, and then chose the RollingFileAppender (Daily or Size--your choice) Or use logrotate (that is, if you use some Unix variant and the program exists). -- Francis Galiegue, [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] One2team - 12bis rue de la Pierre Levée, 75011 Paris - 0143381980 When it comes to performance, weight is everything - Tiff Needell - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to identify version of a running Tomcat and similar trivia
go to tomcat/bin type catalina.sh version output will look like: Using CATALINA_BASE: /usr/local/tomcat Using CATALINA_HOME: /usr/local/tomcat Using CATALINA_TMPDIR: /usr/local/tomcat/temp Using JRE_HOME: /usr/local/java Server version: Apache Tomcat/5.5.12 Server built: Sep 23 2005 09:40:42 Server number: 5.5.12.0 OS Name:Linux OS Version: 2.6.11-1.1369_FC4 Architecture: i386 JVM Version:1.5.0_06-b05 JVM Vendor: Sun Microsystems Inc. Tim Funk wrote: Tomcat is like any server based java app. It will always require a convulted classpath as well as multiple classloaders to do anything interesting. The most failsafe way to get the version regarless of the packaging is to do the following: (no, i'm not kidding) 1) find catalina.jar. It *should* be in server/lib/catalina.jar of your tomcat installation 2) Open it with winzip like program 3) Look for ServerInfo.properties (in org/apache/catalina/util/) 4) In that file is ther server version The version.sh script is just a wrapper the created the appropriate classpath so that the properties file can be loaded. -Tim [EMAIL PROTECTED] wrote: Hi Tim, SNIP Only problem is, my Tomcat depot on this box (randomly picked one of our HP-UX boxes, but we also have Tomcats running on Linux, AIX, Solaris (and probably Win32) doesn't seem to have bundled such a wrapper script. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Mike Sabroff Web Services Developer [EMAIL PROTECTED] 920-568-8379 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mapping of web-app roles to principals authenticated against JDBCRealm (compared to security-role-mapping in sun-web.xml)
Tobias Illik wrote: snip How can I establish this link/mapping in Tomcat? It has to be performed in web.xml Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and client certificates
Markus wrote: Setting clientAuth to true / false in the Connector configuration works fine, but how do I configure client authenticaton on a per-directory or even per-servlet basis? snip/ And here are the results I get: https://domain/anypage : OK https://domain/html/anypage : HTTP Status 403 - Access to the requested resource has been denied Have you added the user's certificate to your realm? Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Desperate for help with isapi_redirect.dll
Hello; I am using 1.2.14 so that's not the problem. And yes, Tomcat is on the same box as IIS and so they can talk. Port 8009 is blocked by our corporate firewall but is not blocked internally. And it works - you can go to http://www.windwardreports.com/store/pages/demo.faces and that is served up by Tomcat. Have you had any luck finding out how to get the requested urls listed in the IIS log? Or finding anyone who knows what is going on inside isapi_redirect? Thanks - dave David Thielen www.windwardreports.com 303-499-2544 -Original Message- From: Earnie Dyke [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 01, 2006 9:53 AM To: Tomcat Users List Subject: RE: Desperate for help with isapi_redirect.dll -Original Message- From: David Thielen [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 01, 2006 11:35 AM To: tomcat-user@jakarta.apache.org Subject: Desperate for help with isapi_redirect.dll Hi; David, As I understand it, you want the jk version 1.2.x NOT jk2. jk2 was a splitter effort that sputtered. As for your IIS log file problem, I have the same problem. We working with web trends to try to get the to be able to read the Apache log format from Tomcat. I am presuming you are running your app locally or at least on the same server as IIS. Correct? It does not appear your Tomcat is listening on port 8009. Are you sure it is started and stays up? Do you have a firewall on the machine that may be hosing the connections? Earnie! Is there anyone on this list that know isapi_redirect? I have this bad feeling that there is only 1 person who knows this code (the one who wrote it) and that he/she is not on this list. If I have to pay for support that's fine but I really need to get this answered (or we'll be forced to switch to WebLogic and that's a giant PITA). 1. Where is the latest isapi_redirect.dll documentation? (There are several of both on the apache website and it's not clear which is the most recent. What I thought was the most recent documentation has dead links so I'm guessing that is not it.) 2. When demo.faces is requested from my website, it is displayed in the IIS logfile. On a submit of that form demo_license.faces is requested and watching the http requests, a request is sent to IIS for demo_license.faces. However, that request is never displayed in the IIS logfile. (demo_license.faces does have a link to windward.css and the IIS logfile does show that request and shows demo_license.faces as the page requesting it.) How do I get this request to display in the log file? We need it for our web tracking software. 3. I consistently get the following in the isapi_redirect.log file (removed duplicates): [Fri Jan 27 12:40:39 2006] [error] HttpExtensionProc::jk_isapi_plugin.c (1029): could not get a worker for name ajp13 [Fri Jan 27 13:53:06 2006] [info] ajp_send_request::jk_ajp_common.c (1178): Socket 616 is not connected any more (errno=-1) [Fri Jan 27 13:53:06 2006] [info] ajp_send_request::jk_ajp_common.c (1225): All endpoints are disconnected or dead [Fri Jan 27 13:53:06 2006] [info] ajp_service::jk_ajp_common.c (1749): Sending request to tomcat failed, recoverable operation attempt=1 [Fri Jan 27 13:53:07 2006] [info] jk_open_socket::jk_connect.c (444): connect to 127.0.0.1:8009 failed with errno=61 [Fri Jan 27 13:53:07 2006] [info] ajp_connect_to_endpoint::jk_ajp_common.c (889): Failed opening socket to (127.0.0.1:8009) with (errno=61) [Fri Jan 27 13:53:07 2006] [info] ajp_send_request::jk_ajp_common.c (1248): Error connecting to the Tomcat process. [Fri Jan 27 13:53:08 2006] [error] ajp_service::jk_ajp_common.c (1758): Error connecting to tomcat. Tomcat is probably not started or is listening on the wrong port. worker=ajp13w failed [Fri Jan 27 13:53:08 2006] [error] HttpExtensionProc::jk_isapi_plugin.c (1022): service() failed Help please - thanks - dave David Thielen http://www.windwardreports.com www.windwardreports.com 303-499-2544 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Desperate for help with isapi_redirect.dll
David Thielen wrote: Hello; I am using 1.2.14 so that's not the problem. And yes, Tomcat is on the same box as IIS and so they can talk. Port 8009 is blocked by our corporate firewall but is not blocked internally. And it works - you can go to http://www.windwardreports.com/store/pages/demo.faces and that is served up by Tomcat. Have you had any luck finding out how to get the requested urls listed in the IIS log? Or finding anyone who knows what is going on inside isapi_redirect? Thanks - dave Can you create the simplest possible web-app that exhibits this problem? That way, at least, I will be able to confirm (or not) that I can reproduce the issue you are seeing. *If* I can reproduce it then I can *try* debugging may way through the code to try and work out what is going on. If I can't reproduce it, we can start to look at configuration options. You will need to send the war directly to me rather than to the list as it will get stripped out. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
why does not tomcat replace the missing files in the ROOT after a restart.
Hi All, I have a small question. Please excuse me if this is a trivial question. I have a case where in I have some files missing in the ROOT folder. I wanted to know why Tomcat does not replace the missing files in the ROOT folder after I place a new ROOT.war in the webapps and restart the Tomcat. Here I am not deleting the ROOT folder. Is there any way to configure the same..? Please let me know. Thanks in advance. Shashidhar V
Re: How to secure a folder?
François wrote: I've successfully implemented this type of authentication for jsp files (using url-pattern/path/to/my/folder/*/url-pattern), but any other type of ressources, and in particular .txt type of files, are not protected at all. security-constraint web-resource-collection web-resource-nameTest/web-resource-name url-pattern/test/*/url-pattern /web-resource-collection auth-constraint role-name*/role-name /auth-constraint /security-constraint login-config auth-methodBASIC/auth-method /login-config Works for me. I added /test/test.txt and was prompted for my credentials. Note you will only get promted for a password once. The browser then caches it and sends it with all subsequent requests to that host until upi close the browser. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: why does not tomcat replace the missing files in the ROOT after a restart.
[EMAIL PROTECTED] wrote: I have a case where in I have some files missing in the ROOT folder. I wanted to know why Tomcat does not replace the missing files in the ROOT folder after I place a new ROOT.war in the webapps and restart the Tomcat. Here I am not deleting the ROOT folder. As per the docs: http://tomcat.apache.org/tomcat-5.5-doc/config/host.html#Automatic%20Application%20Deployment quote Any web application archive file within the application base (appBase) directory that does not have a corresponding directory of the same name (without the .war extension) will be automatically expanded, unless the unpackWARs property is set to false. If you redeploy an updated WAR file, be sure to delete the expanded directory when restarting Tomcat, so that the updated WAR file will be re-expanded (note that the auto deployer will automatically take care of this if it is enabled). /quote Is there any way to configure the same..? Please let me know. Thanks in advance. Shashidhar V - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat + postgres
I followed the howto about connection pooling at http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html and I had following question: Do I use the DataSource class like in the example or the ConnectionPoolDataSource class (like it says to do in my book)? Any insights would be very appreciated. -Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cannot transform and load jsp file with Tomcat under Eclipse
I got the configuration working now and I thank the responders for their feedback and help. Although I created a completely new work set, I did copy my source files over to it. With this I also copied the web.xml file. What I forgot was that I had a servlet definition and mapping which didn't seem to be causing any loading problems. The servlet is not yet debugged, if I was correctly referencing it at all. In any case I commented out those definition lines and I get what I expect: === The date is: Wed Feb 01 23:24:04 IST 2006 ABCD More text === Now I have to put in and debug the servlet which includes My-SQL storage services for my project. David Ziants David Ziants wrote: This is the first time I have had to do my own configuration of tomcat (5.5) using eclipse (3.1) and Java 5, and I am having a few teething problems. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: why does not tomcat replace the missing files in the ROOT aft er a restart.
Thanks Mark for the reply... But do we have any way so that tomcat extracts the ROOT.war and replaces only the missing/changed files (can be based on the time stamp) in the ROOT folder even though the ROOT is not deleted..? Sorry if my question sounds dumb. Regards, Shashidhar V -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 01, 2006 3:57 PM To: Tomcat Users List Subject: Re: why does not tomcat replace the missing files in the ROOT after a restart. [EMAIL PROTECTED] wrote: I have a case where in I have some files missing in the ROOT folder. I wanted to know why Tomcat does not replace the missing files in the ROOT folder after I place a new ROOT.war in the webapps and restart the Tomcat. Here I am not deleting the ROOT folder. As per the docs: http://tomcat.apache.org/tomcat-5.5-doc/config/host.html#Automatic%20Applica tion%20Deployment quote Any web application archive file within the application base (appBase) directory that does not have a corresponding directory of the same name (without the .war extension) will be automatically expanded, unless the unpackWARs property is set to false. If you redeploy an updated WAR file, be sure to delete the expanded directory when restarting Tomcat, so that the updated WAR file will be re-expanded (note that the auto deployer will automatically take care of this if it is enabled). /quote Is there any way to configure the same..? Please let me know. Thanks in advance. Shashidhar V - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
automating use of webXmlFragment result - how to do?
Use of the webXmlFragment attribute with Jasper produces an xml fragment requiring inserting into web.xml. Although I could write some custom code to perform this task, probably using xslt, this seems like a common enough use case that a solution should already exist. Does anyone know of such a solution? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JAAS and Realms configuration
Is it possible to confiugrat a LoginModule (according to JAAS guidelines) which will apply different authorization strategies according to the application requesting the JAAS service. My initial thoughts were around configuring two separeta JAAS Realms in this way: conf/server.xml Realm appName=FooLoginModule className=org.apache.catalina.realm.JAASRealm roleClassNames=test.jaas.web.TrxRolePrincipal userClassNames=test.jaas.web.TrxUserPrincipal/ Realm appName=BarLoginModule className=org.apache.catalina.realm.JAASRealm roleClassNames=test.jaas.web.TrxRolePrincipal userClassNames=test.jaas.web.TrxUserPrincipal/ ... Then, the JAAS configuration file will look like this: conf/jaas.config FooLoginModule { test.jaas.web.TrxLoginModule required debug=true app=Foo; }; BarLoginModule { test.jaas.web.TrxLoginModule required debug=true app=Bar; }; The web.xml for both application should be able to specify which Realm should be used: webapps/Foo/WEB-INF/web.xml ... login-config auth-methodFORM/auth-method realm-nameFooLoginModule/realm-name form-login-config form-login-page/login.jsp/form-login-page form-error-page/error.jsp/form-error-page /form-login-config /login-config webapps/Bar/WEB-INF/web.xml login-config auth-methodFORM/auth-method realm-nameBarLoginModule/realm-name form-login-config form-login-page/login.jsp/form-login-page form-error-page/error.jsp/form-error-page /form-login-config /login-config Using the realm-name/ tag I was hoping to link the login configuration for each application to a particular JAAS Realm. However this is not happening. Both application will use the second JAAS Realm and it seems that realm-name tag is completely ignored. Finally, I have to say I tried this configuration on Tomcat 5.5.9 and 5.0.30 with no success. What am I missing? Is there another tag in the web.xml that will connect me to the right JAAS Realm ? Stefan Baramov Software Developer TRX - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JAAS and Realms configuration
Stefan Baramov wrote: Using the realm-name/ tag I was hoping to link the login configuration for each application to a particular JAAS Realm. However this is not happening. Both application will use the second JAAS Realm and it seems that realm-name tag is completely ignored. Finally, I have to say I tried this configuration on Tomcat 5.5.9 and 5.0.30 with no success. What am I missing? Is there another tag in the web.xml that will connect me to the right JAAS Realm ? The linkage is done within the context rather than web.xml. Nest your Realm inside your Context and you should be good to go. AFAIK the names in web.xml are only used to identify the realm to the user and in DIGEST auth. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat + postgres
Without knowing what book you refer to, and what class or interface ConnectionPoolDataSource represents, it is difficult to know for sure. DataSource (javax.sql.DataSource) is an Interface, not a class. Objects returned from tomcat are sure to implement this interface, and are pooled behind the scene, i.e., you do not care what the implementation class is. So, I would recommend going with javax.sql.DataSource. I.e., in context.xml, you say: Resource name=my/datasource/name type=javax.sql.DataSource ... /Resource And in your code, you expect the returned object to be a javax.sql.DataSource (from the initial context, lookup, etc.) Tim -Original Message- From: Matthew Whisenhunt [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 01, 2006 4:06 PM To: users@tomcat.apache.org Subject: tomcat + postgres I followed the howto about connection pooling at http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html and I had following question: Do I use the DataSource class like in the example or the ConnectionPoolDataSource class (like it says to do in my book)? Any insights would be very appreciated. -Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Desperate for help with isapi_redirect.dll
Mark Thomas wrote: You will need to send the war directly to me rather than to the list as it will get stripped out. OK. Test war received. IIS installed (I'd be lost without VMWare). ISAPI 1.2.15 installed. ISAPI configured to talk to Tomcat 5.5.x HEAD. I can reproduce the problem. (So far so good ;) Next steps are to see if I can build the .dll locally and then try the windows equivalent of remote debug. I warn you now the last time I did anything with C at all was at uni and that was a long time ago. It was much simpler than the ISAPI code. It might take me a little while to figure things out. I'll start looking at this with a fresh pair of eyes tomorrow. In the mean time, if anyone can point me at a copy of the ISAPI filter interface spec on the web I would be grateful. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to identify version of a running Tomcat and similar trivia
The Http10Connector refers to HTTP/1.0. It also means that you've got a TC 3.x server running there. If you've got a conf/modules.xml then it's probably TC 3.3.1a (since 3.3.2 uses the CoyoteConnector by default). Otherwise, it's probably TC 3.2.4. It also explains why there is no /manager webapp, since it's called /admin in TC 3 (and is much less full-featured than /manager in later TC versions :). [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Tim, thanks for referring me to the Tomcat FAQs. That's for sure the first source of information one should read before nagging the list community with redundant questions. At least did I find therein a description how to enable CGI support. Yet, the trivial task of identifying a running Java thread's Tomcat version seems rediculously convoluted. I assume the mentioned version script isn't much more than a mere wrapper script that puts together the a hundred chars long java invocation of some class method call that most likely is called version() along with the loading of a dozen jar libs etc. (only joking ;-) Anyway, far more than anyone can remember and type without making typos. Only problem is, my Tomcat depot on this box (randomly picked one of our HP-UX boxes, but we also have Tomcats running on Linux, AIX, Solaris (and probably Win32) doesn't seem to have bundled such a wrapper script. # swlist |grep -i tomcat hpuxwsTomcat A.4.1.29.04HP-UX Tomcat-based Servlet Engine (ok, I concede with a properly bundled hpux depot I get a revision string that happens to be the same as the bundled Tomcat version, but that's not everywhere the case) # swlist -l file hpuxwsTomcat|grep -cF version 0 So where can I get such a version script? Hm, most likely in the official Apache Tomcat tarball distribution. Ok, I got that already for my Linux install problem (where I first thought to be required to compile from sources by Ant). Let's see if I find it there $ gzip -dc apache-tomcat-5.5.15.tar.gz |tar tf -|grep -F version apache-tomcat-5.5.15/bin/version.bat apache-tomcat-5.5.15/bin/version.sh Yup, let's see what its content is $ gzip -dc apache-tomcat-5.5.15.tar.gz |tar xf - apache-tomcat-5.5.15/bin/version.sh $ grep EXE apache-tomcat-5.5.15/bin/version.sh EXECUTABLE=catalina.sh if [ ! -x $PRGDIR/$EXECUTABLE ]; then echo Cannot find $PRGDIR/$EXECUTABLE exec $PRGDIR/$EXECUTABLE version $@ What the hack is catalina? Only know of an island off the coast of Los Angeles of that name, and a nice WWII water plane. But if I have the catalina.sh script anyway, and the only arg it is fed with happens to be version then I won't require the version script on my hpux boxes anyway. What a production... Then some of you mentioned a manager or admin webapp. Is this provided along with the basic Tomact installation, or an add-on. Well, when I run a GET on this URI on the Http10Connector according to this server's server.xml (btw, what is a Http10Connector? does it refer to the maximum bandwidth?) I only get a 404 server response. Seems there is further installation of a servlet required. # wget -O - http://localhost:8081/manager/html --16:52:07-- http://localhost:8081/manager/html = `-' Resolving localhost... done. Connecting to localhost[127.0.0.1]:8081... connected. HTTP request sent, awaiting response... 404 Not Found 16:52:07 ERROR 404: Not Found. Regards Ralph -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 01, 2006 12:47 PM To: Tomcat Users List Subject: Re: How to identify version of a running Tomcat and similar trivia See the FAQ. http://tomcat.apache.org/faq/ There are a few ways to get the version 1) Use version.sh (or vertsion.bat) 2) Look at the manager webapp (in url /manager/html/) 3) More ways that I can't remember -Tim [EMAIL PROTECTED] wrote: Hi Tomcatters, I beg your pardon for this affront to any self-respecting servlet coder's mind. I am but merely a Unix sysadmin plagued with a varying zoo of Tomcats on different Unices who is largely Java-ignorant and only has to maintain these cats (sorry, but Perl suits my mundane admin tasks much better). Nevertheless I hope you deign giving me an answer to my trivial questions. 1. How can I identify the version of a running Tomcat without reaping it or wreaking similar havoc? Back in ole Apache days things where easy. You only had to locate the residence of the httpd daemon's binary (which was just a glance at the proc table), and run a httpd -v on it. These times all I can see is a running Java master thread. All it discloses is the version of the Java interpreter from the respective JRE. 2. How to quickly introspect a Tomcat's child thread, resource usage? I cannot see from the OS's proc table how many child threads a master has spawned and keeps maintaining, nor which resources they share. If something gets cranked up, what seems