Implications of setting createDirs attribute on host declarations to false in Tomcat
Hello, When running Tomcat in a Docker container as non-root, I'm getting an error entry in the logs: Unable to create directory for deployment: [/usr/local/tomcat/conf/Catalina/localhost] I traced this down to the aforementioned directory not being there when Tomcat gets launched and the user running Tomcat does not having the permissions to create the directory. I also traced where this error message is coming from and its due to the createDirs attribute on the host declaration in server.xml not being set to false. The docs for the createDirs property states that if its set to true (the default) it'll attempt to create some directories, log an error when it fails, but the failure wont stop the startup of Tomcat. But what I cannot find anywhere is why those directories are created in the first place and what the ramifications are of them not being created when createDirs is set to false. This question is for Tomcat docker images in general (in order to determine whether generic Tomcat Docker images should do something different to prevent these Errors in the logs), in my specific scenario however I'm running one webapp: an exploded WAR in the webapps/ROOT directory, which comes with its on context.xml in /webapps/ROOT/META-INF/context.xml TIA Paul -- This email has been checked for viruses by AVG. https://www.avg.com
Re: Implications of setting createDirs attribute on host declarations to false in Tomcat
Hi Chris, First of all tnx for your response. For my own purpose it was about the conf/[engine]/[host] folder and I'm now creating that in my dockerfile and thus I got rid of the error. However, this question is not so much to solve it for just myself, but more to be able to give proper directions to anyone dockerizing Tomcat or providing 'generic' Tomcat base images. I'm guessing whether or not to turn of createDirs really depends on how Tomcat is used to deploy webapps/war files and whether or not turning off createDirs will cause issues on startup/at runtime might depends on how hosts are defined (unpackWAR/autoDeploy/deployOnStartup settings), but the exact correlation is unclear to me and I cannot find any documentation on it. You are deploying a WAR file, right? yes, but I already unzip the WAR into the /webapps folder while dockerizing my entire application > If you don't set createDirs="true" then Tomcat will not be able to unpack WAR files for you. Which folders does Tomcat depend on for the deployment of WAR files then? The standard Tomcat download comes with the following: And already has the webapps folder in the distribution. Am I correct in saying that createDirs="true" would make sure the /webapps and /conf/Catalina/localhost directories exist on startup? Or any other directory of you'd configure other engines/hosts? And when does Tomcat utilize the conf/[engine]/[host] folder? As I mentioned before I resolved the error in the logs for my own purpose by just creating the missing directory while dockerizing my app, but afaics Tomcat never writes something to it, which makes me think that the folder is only used in certain circumstances. Again: my goal is to get clear what Tomcat needs in different scenarios, thus things can be done correctly in generic Tomcat docker base images and/or provide proper instructions with those base images as to how (re)configure/adjust the base images based on the different usages. Maybe it'd make sense to add such clarifications to the Tomcat docs as well (I'd be willing to create a PR) TIA, Paul On 8/31/2020 5:24 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Paul, On 8/31/20 05:36, Paul wrote: Hello, When running Tomcat in a Docker container as non-root, I'm getting an error entry in the logs: Unable to create directory for deployment: [/usr/local/tomcat/conf/Catalina/localhost] I traced this down to the aforementioned directory not being there when Tomcat gets launched and the user running Tomcat does not having the permissions to create the directory. I also traced where this error message is coming from and its due to the createDirs attribute on the host declaration in server.xml not being set to false. The docs for the createDirs property states that if its set to true (the default) it'll attempt to create some directories, log an error when it fails, but the failure wont stop the startup of Tomcat. But what I cannot find anywhere is why those directories are created in the first place and what the ramifications are of them not being created when createDirs is set to false. You are deploying a WAR file, right? If you don't set createDirs="true" then Tomcat will not be able to unpack WAR files for you. This question is for Tomcat docker images in general (in order to determine whether generic Tomcat Docker images should do something different to prevent these Errors in the logs), in my specific scenario however I'm running one webapp: an exploded WAR in the webapps/ROOT directory, which comes with its on context.xml in /webapps/ROOT/META-INF/context.xml If webapps/ already exists, what directory is Tomcat trying to create? conf/[engine]/[host]? Can you arrange for conf/[engine]/[host] (usually conf/Catalina/localhost) to exist so that the setting for createDirs doesn't matter? - -chris -BEGIN PGP SIGNATURE- Comment: Using GnuPG with Thunderbird -https://www.enigmail.net/ iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl9NFjoACgkQHPApP6U8 pFi/7xAAs6Rg39EWDFLkL2DutF4sGu6MeB9lwaRxq/OmsubS5X44+w+kFGha05fx wHYFe6vhl6WL+UEIo/bja+JRgQCTCDTYf6fMmPYvJ6am/b2Ew0GmtjQlU6eimH2y uGM/sfT0No+FYRpAxW9mbsh86H6rYMBNvj+dNWeusSkS/3uX2cELm/WwDKnOQb9I bX5ZxgsA2DlXP37Zn+Q3G1bjP71Wbx1C/pbiXCYL3tGq3RLalBY3Y++GoTjAtEkX 4/jBNqLGBwgmFKQY0pfEc9iNCgwbgMh85zAvvUkzIxt+oKxYQLWPDwjs5Krfu2ZK /pUIFey33rqAO9Vo2iuyX8W03kU0hhAK0PIXimPW8H3848o4Qe+5mJt46jrcpAb7 DFGZUiwS7plD9UrTZpY4UGfWtwAx1GwD9Db/l50Ru32mVtbYgvfzYKqKfZKe7hbI gOUjIu+5jk0cgUE8d+bK2kiTnX5CQJNHT2N44y1/HLRBtuS7RX5e7yLuQfLZ6yeI YpmQAr5oxccQ4XSbL9XQMtckG46JqSL1GwbejMT4n0pMzj7zI8J2Eeh3hCsov5bL trDml0upYcWFoLNUJhFn+Lo1a0ujqOlH2iKS0xg+RU37t0mH0U8/ys77ZS12cnk8 bbwztsxUVPHKc2VjKOMhn47v+cmeGhAP6zeB2ZZ7O9fv3Si9xOQ= =g5QV -END PGP SIGNATURE- -- This email has been checked for viruses by AVG. https://www.avg.com
Tomcat 6.0.18 on V6R1
Hello, Has anyone had any other issues with Tomcat 6.0.18 on V6R1 besides DST. We are currently running it on V5R4 but will be upgrading the OS soon. thanks, PF - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Deploying web apps from war file using different url path
I am trying to work out how I can build my war file and then deploy it using a different path. I have looked at the tomcat docs (specifically): The locations for Context Descriptors are: 1. $CATALINA_BASE/conf/[enginename]/[hostname]/[webappname].xml I want to be able to build a war file with a name like myapp-0.0.1-SNAPSHOT.war and deploy this without having to put myapp-0.0.1-SNAPSHOT into the URL but I also don’t really want to have to change the name of the context file every time I release a new version to tomcat. On a separate note deploying my warfile and adding a context to tomcat\conf\catalina\localhost\myapp-0.0.1-SNAPSHOT.xml the tomcat logs tell me the context is being used but it ignores my path setting and uses myapp-0.0.1-SNAPSHOT which gives me a 404 error for the url I really want: Any help is appreciated as I don’t want to have to set a final name of myapp for the generated war file. Is there a way to redefine the web app path from within the war file so it always deploys with the build and tomcat uses this instead of the name of the warfile\webapp and there is no changes to the tomcat configuration? Thanks - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Deploying web apps from war file using different url path
Thanks for that, I changed my pom file finalName to look like: myApp##${version} This is exactly what I wanted and now my web app in the url is just myApp. On Fri, February 28, 2014 2:56 am, Mark Thomas wrote: > On 28/02/2014 10:38, p...@kuruma.co.uk wrote: > >> Is there a way to redefine the web app path from within the war file so >> it always deploys with the build and tomcat uses this instead of the >> name of the warfile\webapp and there is no changes to the tomcat >> configuration? > > Use the version marker. i.e.: > myapp##0.0.1-SNAPSHOT.war > > Mark > > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Strange JSP compilation issues in tomcat 7 and 8
I am working on a spring\tiles application which I have been deploying to tomcat7 (7.0.32 and 7.0.53) and tomcat8 (8.2.0.23) and my war files are built with maven using jdk1.7.0_09. In my pom file I declare the final name using the ## syntax that I was told before on this mailing list would ensure that when deploying to tomcat that I would not get the version name as part of the context and so could just use the web app name in the url and in the past this has worked ok for me. ${finalName}##${project.version} So my war file build with a name like mywebapp##0.0.0.war, I deploy this with tomcat manager or manually and it deploys ok, no errors I can see on deployment. However when I try to access any pages I get jsp compilation issues, in both versions of tomcat 7 I get this error: org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.apache.tiles.request.render.CannotRenderException: ServletException including path '/WEB-INF/tiles/layout.jsp'. org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 1 in the generated java file The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files And when deploying to tomcat8 I get this error: javax.servlet.ServletException: Could not resolve view with name 'base/dashboard/view' in servlet with name 'appServlet' If I deploy the war files without the ## in the name so just like mywebapp.war then they deploy and run fine in both versions of tomcat7 and tomcat8. Does anybody have any idea what could be the problem? I have in the past deployed war files with the ## in the web app name without any issues and whilst they didnt use Spring and Apache Tiles they did use a lot of jsp's and this didnt cause any issues. I should also point out that the web app with the problems contains all the display\front end but the back end which has no jsps or tiles but is still a spring web app but only provides rest apis for the web front end to call does not have any issues with the ## in the war file name and I have not had to change this wars name at all whilst doing this testing. Its odd in that I can start tomcat with the ## and get an error, stop it, clean down the work directory and then remove rhe ## from the war name and restart tomcat and it works now. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Strange JSP compilation issues in tomcat 7 and 8
I was really hoping that there would be something tomcat related in the WEB-INF\lib folder but nothing, they are all marked as provided in the pom file. There was a mistake in my original post, in tomcat 8.0.23 my application does not work with jdk's 1.7.0_09 or 1.8.0_11 so basically it doesnt work at all in 8.023 with or without the ## in the war file name. It seems like tomcat is just unable to compile jsp files in this version. Is there anything else I can check or do? I have seen some people say they edited the conf/web.xml for the jsp servlet entry, I tried setting the params to 1.7 for compilerSourceVM and compilerTargetVM but this had no effect. I am pretty stuck as the tomcat page http://tomcat.apache.org/whichversion.html seems to imply everything is compatible?? On Mon, July 6, 2015 1:44 am, Felix Schumacher wrote: > Am 4. Juli 2015 11:04:13 MESZ, schrieb p...@kuruma.co.uk: > >> I am working on a spring\tiles application which I have been deploying >> to tomcat7 (7.0.32 and 7.0.53) and tomcat8 (8.2.0.23) and my war files >> are built with maven using jdk1.7.0_09. >> >> In my pom file I declare the final name using the ## syntax that I was >> told before on this mailing list would ensure that when deploying to >> tomcat that I would not get the version name as part of the context and >> so could just use the web app name in the url and in the past this has >> worked ok for me. >> >> ${finalName}##${project.version} >> >> >> So my war file build with a name like mywebapp##0.0.0.war, I deploy >> this with tomcat manager or manually and it deploys ok, no errors I can >> see on deployment. >> >> However when I try to access any pages I get jsp compilation issues, in >> both versions of tomcat 7 I get this error: >> >> org.springframework.web.util.NestedServletException: Request processing >> failed; nested exception is >> org.apache.tiles.request.render.CannotRenderException: ServletException >> including path '/WEB-INF/tiles/layout.jsp'. >> >> org.apache.jasper.JasperException: Unable to compile class for JSP: >> >> >> An error occurred at line: 1 in the generated java file >> The type java.util.Map$Entry cannot be resolved. It is indirectly >> referenced from required .class files > > I have seen similar errors on maven based projects, when the jsp api lib > was put into WEB-INF/lib/. Check your libs in that location. Remove any > servlet specific libs from there. > > Regards, > Felix > >> >> And when deploying to tomcat8 I get this error: >> >> >> javax.servlet.ServletException: Could not resolve view with name >> 'base/dashboard/view' in servlet with name 'appServlet' >> >> >> If I deploy the war files without the ## in the name so just like >> mywebapp.war then they deploy and run fine in both versions of tomcat7 >> and tomcat8. >> >> Does anybody have any idea what could be the problem? >> >> >> I have in the past deployed war files with the ## in the web app name >> without any issues and whilst they didnt use Spring and Apache Tiles they >> did use a lot of jsp's and this didnt cause any issues. >> >> I should also point out that the web app with the problems contains all >> the display\front end but the back end which has no jsps or tiles but >> is still a spring web app but only provides rest apis for the web front >> end to call does not have any issues with the ## in the war file name >> and I have not had to change this wars name at all whilst doing this >> testing. >> >> Its odd in that I can start tomcat with the ## and get an error, stop >> it, clean down the work directory and then remove rhe ## from the war >> name and restart tomcat and it works now. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Strange JSP compilation issues in tomcat 7 and 8
Hi Christopher, I can confirm that in tomcat 8.0.23 the application does not work with or without ##'s in the file name, however in tomcat 8.0.15 it works without the hashes. I compiled a list of my tests and the exceptions that occurred, they are different in tomcat 7 and tomcat 8: I have them in an excel spreadsheet if they are of any use to you but I dont know if attachments are allowed on these emails? I have managed to get this working now though thankfully and it was actually down to something quite simple... I deployed a standard JSP file and this compiled ok so I narrowed it down to just being a Tiles issue. My pom used to have version 3.0.3 defined and when I upgraded this to 3.0.5 the issues have gone away in both tomcat 7 and tomcat 8 using java 7 or java 8 and it also work without issue in tomcat 8.0.23. If only I had tried that first! Thanks to everyone who replied offering help. Paul On Mon, July 6, 2015 8:18 am, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > > Paul, > > > On 7/6/15 9:20 AM, p...@kuruma.co.uk wrote: > >> I was really hoping that there would be something tomcat related in >> the WEB-INF\lib folder but nothing, they are all marked as provided in >> the pom file. >> >> There was a mistake in my original post, in tomcat 8.0.23 my >> application does not work with jdk's 1.7.0_09 or 1.8.0_11 so basically it >> doesnt work at all in 8.023 with or without the ## in the war file name. >> >> >> It seems like tomcat is just unable to compile jsp files in this >> version. >> >> Is there anything else I can check or do? I have seen some people >> say they edited the conf/web.xml for the jsp servlet entry, I tried >> setting the params to 1.7 for compilerSourceVM and compilerTargetVM but >> this had no effect. >> >> I am pretty stuck as the tomcat page >> http://tomcat.apache.org/whichversion.html seems to imply >> everything is compatible?? > > I've seen problems with libraries that use URIs to load files instead > of using the ClassLoader. The problem is that the WAR filename contains "#" > which is an illegal character in a URL. Due to various escaping, > unescaping, re-escaping, etc. it's possible that a certain combination can > result in a file that can't be loaded due to the illegal character issue. > > Can you confirm that your web application otherwise works properly > without the "##" in the filename? > > - -chris > > >> On Mon, July 6, 2015 1:44 am, Felix Schumacher wrote: >> >> >>> Am 4. Juli 2015 11:04:13 MESZ, schrieb p...@kuruma.co.uk: >>> >>> >>>> I am working on a spring\tiles application which I have been >>>> deploying to tomcat7 (7.0.32 and 7.0.53) and tomcat8 (8.2.0.23) and >>>> my war files are built with maven using jdk1.7.0_09. >>>> >>>> In my pom file I declare the final name using the ## syntax >>>> that I was told before on this mailing list would ensure that when >>>> deploying to tomcat that I would not get the version name as part of >>>> the context and so could just use the web app name in the url and in >>>> the past this has worked ok for me. >>>> >>>> ${finalName}##${project.version} >>>> >>>> >>>> >>>> So my war file build with a name like mywebapp##0.0.0.war, I >>>> deploy this with tomcat manager or manually and it deploys ok, no >>>> errors I can see on deployment. >>>> >>>> However when I try to access any pages I get jsp compilation >>>> issues, in both versions of tomcat 7 I get this error: >>>> >>>> org.springframework.web.util.NestedServletException: Request >>>> processing failed; nested exception is >>>> org.apache.tiles.request.render.CannotRenderException: >>>> ServletException including path '/WEB-INF/tiles/layout.jsp'. >>>> >>>> >>>> org.apache.jasper.JasperException: Unable to compile class for >>>> JSP: >>>> >>>> >>>> >>>> An error occurred at line: 1 in the generated java file The >>>> type java.util.Map$Entry cannot be resolved. It is indirectly >>>> referenced from required .class files >>> >>> I have seen similar errors on maven based projects, when the jsp >>> api lib was put into WEB-INF/lib/. Check your libs in that location. >>> Remove any servlet specific libs from there. >>> >>> >>> Regards, Felix >>> >>> >
Tomcat 9.0.81 Degraded ssl performance
Tomcat Version: 9.0.81 OS: Windows Server 2016 We recently patched one of our QA servers to test 9.0.81 and ran into performance issues. Page loads that normally take 1-2 seconds are now taking 50-60 seconds. We were finally able to narrow the issue down to the SSL connector. Adding an HTTP connector and bypassing ssl resolves the performance issue. We have also tested rolling back to 9.0.80 with the same configuration and verified the issue does not exist. SSL Connector: Additionally, I tried installing the native library to attempt the OpenSSLImplementation. It exhibits the same behavior: I turned on error logging using: org.apache.coyote.http11.Http11NioProtocol.level = FINE I am sporadically seeing these errors: 11-Oct-2023 19:21:04.162 FINE [https-openssl-nio-443-exec-23] org.apache.coyote.AbstractProtocol$ConnectionHandler.process Processing socket [org.apache.tomcat.util.net.SecureNioChannel@25cfb477:java.nio.channels.SocketChannel[connected local=/10.32.68.11:443 remote=/10.32.73.114:52679]] with status [ERROR] Does anyone have any suggestions on the possible problem, additional logging, or configuration changes? Thanks Paul R Zepernick This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or intended recipient’s authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately.
Re: Tomcat 9.0.81 Degraded ssl performance
Thank you Chuck Paul From: Chuck Caldarale Sent: Wednesday, October 11, 2023 8:54:59 PM To: Tomcat Users List Subject: Re: Tomcat 9.0.81 Degraded ssl performance NOTICE: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe. > On Oct 11, 2023, at 19:44, Paul Zepernick > wrote: > > Tomcat Version: 9.0.81 > OS: Windows Server 2016 > > We recently patched one of our QA servers to test 9.0.81 and ran into > performance issues. Page loads that normally take 1-2 seconds are now taking > 50-60 seconds. We were finally able to narrow the issue down to the SSL > connector. Adding an HTTP connector and bypassing ssl resolves the > performance issue. We have also tested rolling back to 9.0.80 with the same > configuration and verified the issue does not exist. > This was due to a regression introduced in 9.0.81, as noted here: https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbz.apache.org%2Fbugzilla%2Fshow_bug.cgi%3Fid%3D67670&data=05%7C01%7CPaul.Zepernick%40healthsmart.com%7C6873588541c945dc808a08dbcabde7eb%7C2ce547c5e80a40628a56f25adceefb52%7C0%7C1%7C638326689235160357%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=cCe%2BgFFBcYzUvnnA%2BYqv9A8koG0QxL2Xq9Om5Edo9%2BQ%3D&reserved=0<https://bz.apache.org/bugzilla/show_bug.cgi?id=67670> The problem has been fixed in 9.0.82 which is currently being voted on; release will likely occur in another day or two. - Chuck This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or intended recipient’s authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately.
Re: Issue Migrating servlets to 10.1
I believe you can make use of a migration tool.Apache Tomcat® - Migration Guide - Tomcat 10.0.xtomcat.apache.orgfrom tomcat 9 to tomcat 10.0Specification APIsApache Tomcat 10 supports the Jakarta Servlet 5.0, Jakarta Server Pages 3.0, Jakarta _expression_ Language 4.0, JakartaWebSocket 2.0 and Jakarta Authentication 2.0 specifications.There is a significant breaking change between Tomcat 9.0.x and Tomcat 10.0.x. The Java package used by the specification APIs has changed fromjavax... to jakarta It will be necessary to recompile web applications against the new APIs.Tomcat can convert an existing web application from Java EE 8 to Jakarta EE 9 at deployment time using the Apache Tomcat migration tool for Jakarta EE. To make use of the feature, the web application should be placed in the Host legacyAppBase folder (by default named webapps-javaee) and they will be converted to an equivalent Jakarta EE web application in the Host appBase folder (by default named webapps).Alternately, the Apache Tomcat migration tool for Jakarta EE or any similar conversion tool can be used ahead of time to benefit from faster deployment time and more precise conversion configuration options.On Nov 21, 2023, at 1:36 PM, Robert Turner wrote:Tomcat 10.x and higher require Jakarta namespaces versions of the Servletspecifications.Tomcat 9.x is the last Tomcat support javax.servlet namespaces.Refer to the Which Version page for Tomcat for details:https://tomcat.apache.org/whichversion.htmlOn Tue, Nov 21, 2023 at 3:30 PM Campbell, Lance wrote:I am migrating from Java 8 tomcat 9 to Java 11 tomcat 10.1 .I am getting a cast class exception when trying to access my loginservlet. In my servlets I am using these packages:import javax.servlet.ServletException;import javax.servlet.http.HttpServlet;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse; 1. Does either Java 11 or Tomcat 10.1 require that I useJakarta.servlet.* packages instead of javax.servlet.*? 2. If that is the case, then what is specifically requiring this? Is itJava 11 or Tomcat 10.1 or both?My servlet is getting this error:21-Nov-2023 14:14:52.768 INFO [main]org.apache.catalina.core.ApplicationContext.log Marking servlet[LoginServlet] as unavailable21-Nov-2023 14:14:52.769 SEVERE [main]org.apache.catalina.core.StandardContext.loadOnStartup Servlet[LoginServlet] in web application [] threw load() exception java.lang.ClassCastException: class xyz.servlet.LoginServletcannot be cast to class jakarta.servlet.Servlet(xyz.servlet.LoginServlet is in unnamed module of loaderorg.apache.catalina.loader.ParallelWebappClassLoader@2ccca26f; jakarta.servlet.Servlet is in unnamed module of loaderjava.net.URLClassLoader @63e2203c)Thanks,Lance
Re: Tomcat 9: Java 11 to Java 17
I could be wrong, but I don't think you need jakarta for Tomcat 9. You need it for TomEE 9 and Tomcat 10. But please someone verify. On 6/10/2024 1:44 PM, Ryan Esch wrote: Hi folks,I have a webapp running Apache Tomcat 9.0.67 with Java 11, using JASPIC for authentication. For reference, using these: org.apache.tomcat tomcat-catalina 9.0.85 org.apache.tomcat catalina 6.0.53 This works.I need to get this running with Java 17. I've updated my javax classes to jakarta and my JASPIC dependencies to: org.apache.tomcat tomcat-jaspic-api 11.0.0-M5 org.apache.tomcat tomcat-catalina 11.0.0-M5 These are built with Java 17. My webapp compiles and builds. But at runtime, I get errors like this: java.lang.VerifyError: Bad type on operand stackException Details: Reason: Type 'org/apache/catalina/authenticator/jaspic/AuthConfigFactoryImpl' (current frame, stack[4]) is not assignable to 'jakarta/security/auth/message/config/AuthConfigFactory' Specifically, this does not cause any issues: AuthConfigFactory factory = new AuthConfigFactoryImpl(); However, if I call any method on this factory, I see the above Error.I can't seem to figure out the cause. I don't see any old javax AuthConfig classes in the dependencies.Anyone familiar with this? Ryan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Issue with catalina.out not being generated (RHEL 7.9, tomcat 9.0.63)
Hello all, I haven't been able to figure this out - but a catalina.out file is not being generated for me. Sadly - I'm trying to troubleshoot an issue (with a vendor's saml implementation) which wants to write to that file (and doesn't seem to be writing what I need to catalina.-DD-MM.logs, /var/log/messages, or into the journal as seen by "journalctl --unit=tomcat.service"). My environment: * RHEL 7.9 (though the same happens on my RHEL 8 hosts) * Tomcat 9.0.63 (installed from the .tar.gz download from https://tomcat.apache.org/download-90.cgi - not from the OS repository) * Using jsvc via a systemd startup script to start Tomcat (that script is at the bottom of this message). I've tried specifying CATALINA_OUT in setenv.sh, and in my systemd startup script. I've temporarily disabled SELinux to see if that makes a difference. Neither of those work. What does work, though I would like to avoid it, is if I start Tomcat via ./startup.sh. If I do that - catalina.out is generated but I'm not getting other settings I set in my systemd script (or having it tied to startup/shutdown of the OS). I don't know what I'm missing or doing wrong here, or if there's something about jsvc that is an issue here that I can't figure out. I've been unable to find anything related to this (lots of posts about catalina.out related to operating system distributed versions of Tomcat that don't appear to apply). Any advice here would be greatly appreciated! My systemd startup script is below. [Unit] Description=Apache Tomcat Web Application Container After=syslog.target network.target [Service] Type=forking PIDFile=/var/run/tomcat.pid UMask=0007 # Tomcat variables Environment='JAVA_HOME=/usr/lib/jvm/java-openjdk' Environment='CATALINA_PID=/var/run/tomcat.pid' Environment='CATALINA_HOME=/opt/tomcat/latest' Environment='CATALINA_BASE=/opt/tomcat/latest' Environment='CATALINA_OPTS=-Xms512M -Xmx2048M -XX:+UseParallelGC -server' Environment='CATALINA_OUT=/var/log/tomcat/catalina.out' # Needed to make use of Tomcat Native Library Environment='LD_LIBRARY_PATH=/opt/tomcat/latest/lib' ExecStart=/opt/tomcat/latest/bin/jsvc \ -Dcatalina.home=${CATALINA_HOME} \ -Dcatalina.base=${CATALINA_BASE} \ -Djava.awt.headless=true \ -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager \ -Djava.util.logging.config.file=${CATALINA_BASE}/conf/logging.properties \ -Dlog4j2.FormatMsgNoLookups=true \ -cp ${CATALINA_HOME}/bin/commons-daemon.jar:${CATALINA_HOME}/bin/bootstrap.jar:${CATALINA_HOME}/bin/tomcat-juli.jar \ -pidfile ${CATALINA_PID} \ -java-home ${JAVA_HOME} \ -user tomcat \ $CATALINA_OPTS \ org.apache.catalina.startup.Bootstrap ExecStop=/opt/tomcat/latest/bin/jsvc \ -pidfile ${CATALINA_PID} \ -stop \ org.apache.catalina.startup.Bootstrap [Install] WantedBy=multi-user.target Paul Chauvet, CISSP Information Security Officer State University of New York at New Paltz chauv...@newpaltz.edu
Re: Issue with catalina.out not being generated (RHEL 7.9, tomcat 9.0.63)
Hi Noelette, Thanks for the reponse! It logs to catalina--MM-DD.log, localhost.YY-MM-DD.log, localhost_access_log.-MM-DD.txt - but it doesn't use catalina.out. When I temporarily started Tomcat via startup.sh it did create catalina.out (and start logging the things that it wasn't logging into the other files, /var/log/messages, or the systemd journal). I'll see if I can get my setup (at least temporarily) working with startup.sh. From: Noelette Stout Sent: Thursday, August 11, 2022 12:35 PM To: Tomcat Users List Subject: Re: Issue with catalina.out not being generated (RHEL 7.9, tomcat 9.0.63) CAUTION: Message from a non-New Paltz email server. Treat message, links, and attachments with extra caution. We use systemd with jsvc and our tomcat instances write to $CATALINA_BASE/logs by default. On Thu, Aug 11, 2022 at 10:10 AM Paul Chauvet wrote: > Hello all, > > I haven't been able to figure this out - but a catalina.out file is not > being generated for me. Sadly - I'm trying to troubleshoot an issue (with > a vendor's saml implementation) which wants to write to that file (and > doesn't seem to be writing what I need to catalina.-DD-MM.logs, > /var/log/messages, or into the journal as seen by "journalctl > --unit=tomcat.service"). > > > My environment: > > * RHEL 7.9 (though the same happens on my RHEL 8 hosts) > * Tomcat 9.0.63 (installed from the .tar.gz download from > https://tomcat.apache.org/download-90.cgi - not from the OS repository) > * Using jsvc via a systemd startup script to start Tomcat (that script > is at the bottom of this message). > > I've tried specifying CATALINA_OUT in setenv.sh, and in my systemd startup > script. I've temporarily disabled SELinux to see if that makes a > difference. Neither of those work. What does work, though I would like to > avoid it, is if I start Tomcat via ./startup.sh. If I do that - > catalina.out is generated but I'm not getting other settings I set in my > systemd script (or having it tied to startup/shutdown of the OS). > > I don't know what I'm missing or doing wrong here, or if there's something > about jsvc that is an issue here that I can't figure out. I've been unable > to find anything related to this (lots of posts about catalina.out related > to operating system distributed versions of Tomcat that don't appear to > apply). > > Any advice here would be greatly appreciated! > > My systemd startup script is below. > > > [Unit] > Description=Apache Tomcat Web Application Container > After=syslog.target network.target > > [Service] > Type=forking > PIDFile=/var/run/tomcat.pid > UMask=0007 > > # Tomcat variables > Environment='JAVA_HOME=/usr/lib/jvm/java-openjdk' > Environment='CATALINA_PID=/var/run/tomcat.pid' > Environment='CATALINA_HOME=/opt/tomcat/latest' > Environment='CATALINA_BASE=/opt/tomcat/latest' > Environment='CATALINA_OPTS=-Xms512M -Xmx2048M -XX:+UseParallelGC -server' > Environment='CATALINA_OUT=/var/log/tomcat/catalina.out' > > # Needed to make use of Tomcat Native Library > Environment='LD_LIBRARY_PATH=/opt/tomcat/latest/lib' > > ExecStart=/opt/tomcat/latest/bin/jsvc \ > -Dcatalina.home=${CATALINA_HOME} \ > -Dcatalina.base=${CATALINA_BASE} \ > -Djava.awt.headless=true \ > > -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager \ > > -Djava.util.logging.config.file=${CATALINA_BASE}/conf/logging.properties \ > -Dlog4j2.FormatMsgNoLookups=true \ > -cp > ${CATALINA_HOME}/bin/commons-daemon.jar:${CATALINA_HOME}/bin/bootstrap.jar:${CATALINA_HOME}/bin/tomcat-juli.jar > \ > -pidfile ${CATALINA_PID} \ > -java-home ${JAVA_HOME} \ > -user tomcat \ > $CATALINA_OPTS \ > org.apache.catalina.startup.Bootstrap > > ExecStop=/opt/tomcat/latest/bin/jsvc \ > -pidfile ${CATALINA_PID} \ > -stop \ > org.apache.catalina.startup.Bootstrap > > [Install] > WantedBy=multi-user.target > > > > > > > > Paul Chauvet, CISSP > > Information Security Officer > > State University of New York at New Paltz > > chauv...@newpaltz.edu > > -- Noelette Stout ITS Enterprise Applications - Senior Application Administrator Idaho State University E-mail: stounoel "at" isu "dot" edu Desk: 208-282-2554
Re: Issue with catalina.out not being generated (RHEL 7.9, tomcat 9.0.63)
Hi Chris, I honestly don't care if they are in catalina.out, /var/log/messages, or a file named 'awesomestuff.log' - I just know that things are MISSING. Let me be more specific - sorry if I'm not being clear here! Normal operation (running via systemd) - I get Tomcat startup/shutdown, and some other info in catalina--MM-DD.log. I don't get the debug information for opensaml. When I start via startup.sh directly - a lot more is being logged to catalina.out than anywhere else I have been able to find. I tried starting Tomcat without using systemd by just doing the following - but still no catalina.out. /opt/tomcat/latest/bin/jsvc \ -Dcatalina.home=${CATALINA_HOME} \ -Dcatalina.base=${CATALINA_BASE} \ -Djava.awt.headless=true \ -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager \ -Djava.util.logging.config.file=${CATALINA_BASE}/conf/logging.properties \ -Dlog4j2.FormatMsgNoLookups=true \ -cp ${CATALINA_HOME}/bin/commons-daemon.jar:${CATALINA_HOME}/bin/bootstrap.jar:${CATALINA_HOME}/bin/tomcat-juli.jar \ -pidfile ${CATALINA_PID} \ -java-home ${JAVA_HOME} \ -user tomcat \ $CATALINA_OPTS \ org.apache.catalina.startup.Bootstrap I ended up temporarily just starting via startup.sh just long enough to get the error logs I was looking for into catalina.out - then started it up again normally. Sorry to bother everyone with this - but I appreciate your assistance! From: Christopher Schultz Sent: Thursday, August 11, 2022 1:34 PM To: users@tomcat.apache.org Subject: Re: Issue with catalina.out not being generated (RHEL 7.9, tomcat 9.0.63) CAUTION: Message from a non-New Paltz email server. Treat message, links, and attachments with extra caution. Paul, On 8/11/22 13:03, Paul Chauvet wrote: > Hi Noelette, > > Thanks for the reponse! > > It logs to catalina--MM-DD.log, localhost.YY-MM-DD.log, > localhost_access_log.-MM-DD.txt - but it doesn't use catalina.out. > > When I temporarily started Tomcat via startup.sh it did create catalina.out > (and start logging the things that it wasn't logging into the other files, > /var/log/messages, or the systemd journal). > > I'll see if I can get my setup (at least temporarily) working with startup.sh. OH... you might just be misunderstanding what's happening. When you use catalina.sh start (or startup.sh), that script just does this: java [stuff] > ${CATALINA_BASE}/logs/catalina.out 2>&1 When you run with jsvc, it includes some built-in file-rotation and so catalina-[date].log is the same thing. Are you irritated that you can't read the logs, or are you irritated that the log file isn't specifically "catalina.out"? -chris > > From: Noelette Stout > Sent: Thursday, August 11, 2022 12:35 PM > To: Tomcat Users List > Subject: Re: Issue with catalina.out not being generated (RHEL 7.9, tomcat > 9.0.63) > > CAUTION: Message from a non-New Paltz email server. Treat message, links, and > attachments with extra caution. > > > We use systemd with jsvc and our tomcat instances write to > $CATALINA_BASE/logs by default. > > On Thu, Aug 11, 2022 at 10:10 AM Paul Chauvet wrote: > >> Hello all, >> >> I haven't been able to figure this out - but a catalina.out file is not >> being generated for me. Sadly - I'm trying to troubleshoot an issue (with >> a vendor's saml implementation) which wants to write to that file (and >> doesn't seem to be writing what I need to catalina.-DD-MM.logs, >> /var/log/messages, or into the journal as seen by "journalctl >> --unit=tomcat.service"). >> >> >> My environment: >> >>* RHEL 7.9 (though the same happens on my RHEL 8 hosts) >>* Tomcat 9.0.63 (installed from the .tar.gz download from >> https://tomcat.apache.org/download-90.cgi - not from the OS repository) >>* Using jsvc via a systemd startup script to start Tomcat (that script >> is at the bottom of this message). >> >> I've tried specifying CATALINA_OUT in setenv.sh, and in my systemd startup >> script. I've temporarily disabled SELinux to see if that makes a >> difference. Neither of those work. What does work, though I would like to >> avoid it, is if I start Tomcat via ./startup.sh. If I do that - >> catalina.out is generated but I'm not getting other settings I set in my >> systemd script (or having it tied to startup/shutdown of the OS). >> >> I don't know what I'm missing or doing wrong here, or if there's something >> a
Re: Issue with catalina.out not being generated (RHEL 7.9, tomcat 9.0.63)
Hi Noelette, Definitely not a dumb question. Trust me - I've missed obvious things before. In this case though - Tomcat is definitely starting fine via systemd and has been running without issue (through various upgrades from 8.5.x and through 9.0.x versions, though I still need to upgrade to 9.0.64). Everything's working fine - except the catalina.out logging for opensaml (which we're trying to troubleshoot as we move from CAS to SAML for authentication - but without the logs for the saml issues the vendor couldn't assist). Now that I have those debug logs - it's in that vendor's hands as to find out what's wrong 🙂. I will look at the daemon startup method you list though - thank you! Paul Chauvet, CISSP Information Security Officer State University of New York at New Paltz chauv...@newpaltz.edu [cid:aaa5e02a-2ded-4434-b7d6-c140c723291e] Keep on a lookout for fraudulent emails! For examples reported to us - see the "New Paltz PhishBowl<https://www.newpaltz.edu/phishbowl>" From: Noelette Stout Sent: Thursday, August 11, 2022 2:52 PM To: Tomcat Users List Subject: Re: Issue with catalina.out not being generated (RHEL 7.9, tomcat 9.0.63) CAUTION: Message from a non-New Paltz email server. Treat message, links, and attachments with extra caution. dumb question time -- Is tomcat actually starting up all the way when you run with systemd? One of the things that I ran into with tomcat and systemd was that the default service start timeout was not enough time for tomcat to start. Also, I'm not starting tomcat by calling jsvc directly; I'm using the daemon.sh script. Here's what one of my tomcat unit files looks like: [Unit] Description= CAS server (Tomcat) After=syslog.target network-online.target [Service] Type=forking User=tomcat Group=tomcat Environment=CATALINA_HOME=/var/local/tomcat/tomcat Environment=CATALINA_BASE=/var/local/tomcat/cas Environment=JAVA_HOME=/var/local/tomcat/java ExecStart=/var/local/tomcat/tomcat/bin/daemon.sh start ExecStop=/var/local/tomcat/tomcat/bin/daemon.sh stop RemainAfterExit=yes TimeoutSec=300 [Install] WantedBy=multi-user.target I also have a setenv.sh file in $CATALINA_BASE/bin with this (yes, it's a little redundant): export JAVA_HOME="/var/local/tomcat/java" export CATALINA_HOME="/var/local/tomcat/tomcat" export CATALINA_BASE="/var/local/tomcat/cas" CATALINA_PID="$CATALINA_BASE/logs/tomcat.pid" CATALINA_OPTS="-server -Xmx512m -Dlog4j2.formatMsgNoLookups=true" SERVICE_START_WAIT_TIME=300 I always get a catalina-daemon.out file when starting this way. On Thu, Aug 11, 2022 at 12:25 PM Paul Chauvet wrote: > Hi Chris, > > I honestly don't care if they are in catalina.out, /var/log/messages, or a > file named 'awesomestuff.log' - I just know that things are MISSING. > > Let me be more specific - sorry if I'm not being clear here! > > > Normal operation (running via systemd) - I get Tomcat startup/shutdown, > and some other info in catalina--MM-DD.log. I don't get the debug > information for opensaml. > > When I start via startup.sh directly - a lot more is being logged to > catalina.out than anywhere else I have been able to find. > > > I tried starting Tomcat without using systemd by just doing the following > - but still no catalina.out. > /opt/tomcat/latest/bin/jsvc \ > -Dcatalina.home=${CATALINA_HOME} \ > -Dcatalina.base=${CATALINA_BASE} \ > -Djava.awt.headless=true \ > > -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager \ > > -Djava.util.logging.config.file=${CATALINA_BASE}/conf/logging.properties \ > -Dlog4j2.FormatMsgNoLookups=true \ > -cp > ${CATALINA_HOME}/bin/commons-daemon.jar:${CATALINA_HOME}/bin/bootstrap.jar:${CATALINA_HOME}/bin/tomcat-juli.jar > \ > -pidfile ${CATALINA_PID} \ > -java-home ${JAVA_HOME} \ > -user tomcat \ > $CATALINA_OPTS \ > org.apache.catalina.startup.Bootstrap > > > > I ended up temporarily just starting via startup.sh just long enough to > get the error logs I was looking for into catalina.out - then started it up > again normally. > > > Sorry to bother everyone with this - but I appreciate your assistance! > > > > From: Christopher Schultz > Sent: Thursday, August 11, 2022 1:34 PM > To: users@tomcat.apache.org > Subject: Re: Issue with catalina.out not being generated (RHEL 7.9, tomcat > 9.0.63) > > CAUTION: Message from a non-New Paltz email server. Treat message, links, > and attachments with extra caution. > > > Paul, > > On 8/11/22 13:03, Paul Chauvet wrote: > > Hi Noelet
HTTP 400 from tcp half-open health checks
Hello! We upgraded a Windows Tomcat instance from 8.5.41 to 8.5.84. This Tomcat instance is behind a load balancer. Since the upgrade the Tomcat access log (AccessLogValve) has an "empty" entry with response 400 for every TCP half-open health check from the load balancer. Because the health check is every 5 seconds from redundant load-balancers we are getting quite alot of junk in the access log. The TCP half-open check is:LB --> SYN --> Tomcat 443LB <-- SYN/ACK <-- Tomcat 443LB --> FIN --> Tomcat 443LB <-- FIN/ACK <-- Tomcat 443Access log excerpt:[03/May/2023:00:13:58 +0200] 10.20.10.2 - "-" - "-" "-" 400 0 - -[03/May/2023:00:13:59 +0200] 10.20.10.3 - "-" - "-" "-" 400 0 - -[03/May/2023:00:14:03 +0200] 10.20.10.2 - "-" - "-" "-" 400 0 - -[03/May/2023:00:14:04 +0200] 10.20.10.3 - "-" - "-" "-" 400 0 - -[03/May/2023:00:14:08 +0200] 10.20.10.2 - "-" - "-" "-" 400 0 - -[03/May/2023:00:14:09 +0200] 10.20.10.3 - "-" - "-" "-" 400 0 - -[03/May/2023:00:14:13 +0200] 10.20.10.2 - "-" - "-" "-" 400 0 - - We can reproduce this effect from Windows Powershell with:Test-NetConnection -ComputerName tomcat.server.name -RemotePort 443 My question is, is this expected behaviour? Is TCP half-open health check supported by Tomcat? Thanks for any help.Paul
Tomcat 5.5 with JSSE
Hello, I'm running Tomcat 5.5 on Windows XP with Java 1.5. In server.xml I configured SSL as follows: When I try to log in I get the following: handling exception: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: Certificate contains unknown critical extensions: [2.5.29.36, 2.5.29.30] I spoke to CertPath folks at Sun, they say the default implementation/settings of JSSE in Java 1.5 should be able to handle these extensions (name and policy constraints). (The certs in the path *do* contain those critical extensions.) Is it possible that this fails because of how Tomcat 5.5 uses JSSE (e.g., overrides defaults, etc.)? I will appreciate any and all help. Thank you, PR - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Best Practice for properties files
I have a fairly normal application that I am deploying on a tomcat 5.5 server. My application uses log4j for its internal logging and I have a log4j.properties file that I keep in web/WEB-INF/classes. I also have a regular app.properties file that I keep in web/WEB-INF. I deploy my application to my tomcat server by placing app.war in the proper directory. My question is if I am running my application on 4 or 5 different tomcat servers and toe log4j.properties and app.properties file needs to be set up different on each server what is the best way to deploy and maintain those files? I very much want to create a single app.war file and let each system administrator customer there properties without needing to synchronize with me. Any advice is appreciated. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [SPAM] RE: Best Practice for properties files
Richard, Thanks for the suggestion. I appreciate the elegance of your ant targets to create war files targeted for each runtime environment. The reason that I am looking for a different approach is this approach would require me to create a new war file if the managers of the runtime environment want to reconfigure. I'm trying to find ways that I can put more configuration information outside of the war file, perhaps in the context.xml or in some file that context.xml references. Paul -Original Message- From: Richard Mixon [mailto:[EMAIL PROTECTED] Sent: Saturday, June 24, 2006 9:44 PM To: 'Tomcat Users List' Subject: [SPAM] RE: Best Practice for properties files Paul, are you using the deployer application to deploy your app (e.g. apache-tomcat-5.5.17-deployer)? If so, then it is very easy to modify the build.xml to customize the log4j.properties, app.properties and any other file, and then deploy it properly. You could even have a different ant target for each different instance of the webapp.war file. Here's an example of the build.xml that we setup. In this case most of the example deals with setting the JDBC connection to the correct database. HTH - Richard ... ... Customizing ${webapp.path}/META-INF/${webapp}.xml Changing hibernate.connection.driver_class to ${jdbc.connection.driver_class} ... -Original Message- From: Paul Mendelson [mailto:[EMAIL PROTECTED] Sent: Friday, June 23, 2006 9:46 AM To: Tomcat Users List Subject: Best Practice for properties files I have a fairly normal application that I am deploying on a tomcat 5.5 server. My application uses log4j for its internal logging and I have a log4j.properties file that I keep in web/WEB-INF/classes. I also have a regular app.properties file that I keep in web/WEB-INF. I deploy my application to my tomcat server by placing app.war in the proper directory. My question is if I am running my application on 4 or 5 different tomcat servers and toe log4j.properties and app.properties file needs to be set up different on each server what is the best way to deploy and maintain those files? I very much want to create a single app.war file and let each system administrator customer there properties without needing to synchronize with me. Any advice is appreciated. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
URL Accessing Problem
Hello, We have developed an application in SpringMVC and we have applied acegi security system, We have tested this application in JBoss Appserver at our local environment. While testing We didnt get any errors we have been successful.recently we have submitted to our client and they have deployed, configured to https. Then they are trying to access the application like the following. https://app.com/contextroot In our local environment it has gone to welcome page. But in our client envoronment The url has changed to the following. https://app.com//contextroot The problem is one additional slash is appended to the context root. Then We are getting 404 error .I am unable to find the problem. Does the problem with SpringMVC or Jboss server or Https Configuration..??? If I hit Direct URL Like Direct page name it is comming correctly..If I submit the form then one slash is appended to the context root. Can U please tell me where exactly I need to Change..??? Thanks in advance Paul
How to specify security policy file for a web application
Hi, I need to specify java policy file for a web application. I am looking for a way so that each web application will have its own policy file. It will be nice if policy file can be put in the web application directory itself. Regards, Anto Paul
Servlet that needs ROOT access
Is it possible to run Tomcat as non ROOT (desirable as I see from FAQs/other threads), but have a servlet that needs ROOT access? Or is the solution to have the servlet application code running as a separate daemon outside tomcat, with some form of comms to tomcat servlet when tasks need to be done? -Paul - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Servlet that needs ROOT access
Yes I meant as root user in Linux, not the ROOT webapp. I could try giving tomcat user root group access; this is also potentially a security hole though? On Tuesday 01 August 2006 12:14, you wrote: > It is possible to run as non root (assume the "root" here is "root" > for Unix/Linux?) > you can create a specific user say "tomcat" but still assign with > group root, or you can create group "tomcat", make sure your jdk is > accessible by the tomcat user and or group > > Is you mean the root application in tomcat, yes you can, simply copy > your web app structure (index.*, WEB-INF ) into root, or you can > modify the server.xml baseDoc pointing to / but not webapps, so when > you type xxx.xxx.xxx.xxx:8080, it will start up your application .... > > Not sure whether it is what you are asking.. > > On 8/1/06, Paul McMahon <[EMAIL PROTECTED]> wrote: > > Is it possible to run Tomcat as non ROOT (desirable as I see from > > FAQs/other threads), but have a servlet that needs ROOT access? > > > > Or is the solution to have the servlet application code running as a > > separate daemon outside tomcat, with some form of comms to tomcat servlet > > when tasks need to be done? > > > > > > -Paul > > > > - > > To start a new topic, e-mail: users@tomcat.apache.org > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] -- -Paul McMahon -01763 261 466 ext 569 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Servlet that needs ROOT access
I think I can limit a few of the ROOT actions required. The servlet application needs to do things like mkfs, vgcfgrestore, vgchange, mount and umount. On Tuesday 01 August 2006 13:46, Peter Crowther wrote: > > From: Paul McMahon [mailto:[EMAIL PROTECTED] > > Is it possible to run Tomcat as non ROOT, > > but have a servlet that needs ROOT access? > > No. > > > Or is the solution to have the servlet application code > > running as a separate > > daemon outside tomcat, with some form of comms to tomcat > > servlet when tasks need to be done? > > That would be my preference if I were implementing this. How much of > your 'servlet application code' *actually* needs root access? Can you > partition into a small piece that does, and most that doesn't? > Minimising your attack surface in this way would probably be useful. > > Can you give us any more information about what you're doing that > requires root? Does it *have* to require root, or can the requirement > be reduced so that a non-root Tomcat can also do the same thing? In one > sense this opens up an alternative hole; in another, depending on what > you're doing, that may be better than allowing unrestricted root access > to all tasks. > > - Peter > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- -Paul McMahon -01763 261 466 ext 569 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: performance question
Lambda Probe is a free+easy way to get some instrumentation Propes, Barry L wrote: I'm having some problems this morning with performance. How can I easily determine if it's servlets, or Tomcat, as opposed to possibly the database (Oracle) I'm using? I've not had this problem before. Barry - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: multiple virtual hosts and ssl certificates
Hassan Schroeder wrote: On 8/25/06, teknokrat <[EMAIL PROTECTED]> wrote: So lets see if i understand this correctly. I can only have multiple SSL certificates if I create different Services in server.xml pointing to different ports? No, you don't need different Services; you need a Connector and associated keystore per IP (or IP/port) that you want to secure. In 5.5.9 you can put all your certificates in one keystore (e.g. the default one for simplicity) under different aliases, then use the (still) undocumented attribute I suggest you don't proliferate keystores unless you really have to... Paul Singleton - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Internet Explorer different browser windows different session ID ????
Hi, Don't know about FireFox, but for IE the way you start it makes a difference. If you start a new IE window using the File menu, and then "new"->"window", or just CTRL+N, the new IE window will share any sessions with the one you're opening it from. Of you start a new IE window from your desktop or any other shortcut, the new window will start new session. HTH Regard, Paul Hamer management & development [EMAIL PROTECTED] toHAVE websolutions www.tohave.nl [EMAIL PROTECTED] > -Original Message- > From: Gerard Chiva [mailto:[EMAIL PROTECTED] > Sent: Thursday, 24 August 2006 12:05 > To: Tomcat Users List > Subject: Re: Internet Explorer different browser windows > different session ID > > Hi, > > in both cases I open the new browser windows double-clicking on the > navigator icon on my desktop. > > I cannot figure out, why that should affect the different behaviour > between browsers. > > I'm using Tomcat 5.0.28 on Sun Solaris 10, and Firefox 1.5.0.6 and IE > 6.0 on Windows 2000. > > And, in case you wondered, I cannot upgrade to newer releases > of Tomcat. > > Thanks ! > > > Peter Crowther wrote: > >> From: Gerard Chiva [mailto:[EMAIL PROTECTED] > >> With Firefox two different browser windows get the same > >> session ID from any of the servlets, or the same one. > >> > >> But with IE each new browser window I open to comunicate > >> with any of the servlets is getting a different > >> Session ID from the servlets. > >> > > > > How are you opening these browser windows in each case? > > > > - Peter > > > > > - > > To start a new topic, e-mail: users@tomcat.apache.org > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > -- > > -- > -- > *Gerard Chiva i Erill* > Prous Science S.A. > Provença 388, > 08025 Barcelona, Spain > Tel. +34 93.459.22.20 > Fax +34 93.458.15.35 > e-mail: [EMAIL PROTECTED] > Web Site: http://www.prous.com > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: blank pages ME TOO!
Hi, I've had either the same or a similar problem: about 2 weeks ago, my IIS6 + mod_jk1.2.15 + Tomcat5.5.15 suddenly begins serving blank pages on the main site ! Couldn't find anything strange in any logs (iis, mod_jk & tomcat). Accessing Tomcat directly (port 8080) also returned blank pages! However, JSPs within the same app, but in a sub-directory still worked fine! This suddenly happened at somewhat after 10am. The only thing I did, just minutes before, was replace a JSP with a new version, so it had to be recompiled on the next access. An action I must have done a 1000 times before in the last few months, without any problems. After restarting Tomcat+IIS, Tomcat immediately began returning blank pages again! My app (which usually takes almost 3 minutes to load completely) didn't even get initialized. I stopped Tomcat again, cleared the "work" directory, and restarted it. This time everything returned to normal. I've had this config up-and-running without any modifications for months, and never had this problem. Can't figure out why it suddenly pops up. Unexplainable problems like this make me shiver, would be nice if my story rung a bell somewhere :-) Sorry, I couldn't come up with more details, but I needed to get the site back up ASAP. Regards, Paul Hamer management & development [EMAIL PROTECTED] toHAVE websolutions www.tohave.nl [EMAIL PROTECTED] > -Original Message- > From: Mark Thomas [mailto:[EMAIL PROTECTED] > Sent: Thursday, 31 August 2006 05:36 > To: Tomcat Users List > Subject: Re: blank pages > > kalin mintchev wrote: > >> > >> hi all.. > >> > >> here is a situation: > >> > >> after restarting apache and tomcat - using mod_jk - > requested pages > >> return blank. the httpd log logs everything as if the > request turned out > >> ok. the mod_jk log is clean. and the servers otherwise > seem to be working > >> fine > > > > i mean this is a site in production --- i'd like to get it > up and running > > before 6 am... > > Apache, Tomcat and mod_jk versions may help, as would relevant > sections of your configuration files. > > Trying to isolate the problem, what happens if you request a page > directly from Tomcat? > > Also, what changed? Something must have... > > Mark > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.0 Config with SQL Server 2005
Dear all: I hope someone can give me some advices here. Here is some config. info for SQL Server 2000 and I am trying to have the application to talk to SQL 2005. I have downloaded the JDBC driver, but not sure what will be the correct configuration/steps: factory com.xxx.jaas.DataSourceProxyFactory factory com.microsoft.sqlserver.jdbc.SQLServerDataSourceObjectFactory driverClassName com.microsoft.sqlserver.jdbc.SQLServerDriver Thanks a lot for your kind help. Yours Truly, Paul - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HTTP 304
Hi, Using TC5, I can not see why my log is showing: 192.168.3.26 - - [26/Sep/2006:14:06:44 +1000] "GET /dir/gf/locationManager.js HTTP/1.1" 304 - 192.168.3.26 - - [26/Sep/2006:14:06:44 +1000] "GET /dir/gf/i18n.js HTTP/1.1" 304 - and many more like it, particularly after I stop the server, remove the work directory and my JSP has in its header: I read from w3.org that: "If the client has performed a conditional GET request and access is allowed, but the document has not been modified, the server SHOULD respond with this status code" If however the client and server have no knowledge of these assets, would it not request a fresh copy from the server and return HTTP 200 for example? thanks for all input Paul. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: HOWTO disable Tomcat from caching dynamic picture
Hey John, Tomcat does not do any caching. Try adding these HTTP headers: response.addHeader("Pragma","no-cache"); // HTTP/1.0 response.addHeader("Cache-control","no-cache, no-store"); // HTTP/1.1 That's the official way. However, due to an IE4-IE6 bug, you might want to replace the second one by: response.setHeader("Cache-control","max-age=0"); // HTTP/1.1 More info see: http://forum.java.sun.com/thread.jspa?threadID=233446&start=0 Worked fine for me! Regards, Paul Hamer management & development [EMAIL PROTECTED] toHAVE websolutions www.tohave.nl [EMAIL PROTECTED] > -Original Message- > From: John Mok [mailto:[EMAIL PROTECTED] > Sent: Sunday, 01 October 2006 02:46 > To: users@tomcat.apache.org > Subject: HOWTO disable Tomcat from caching dynamic picture > > Hi, > > I am using Tomcat 5.5.17 with Sun JDK 5.0 Update 7 on CentOS > 4.3. I have > a servlet, namely BMPImageViewer, which retrieves a BMP image from > database with conversion into PNG format via JAI. The servlet is > referenced in XSL-FO for PDF generation. > > My problem was that the image did not change even the image > in database > updated. I checked that the servlet BMPImageViewer worked > correctly and > loaded the correct image every time. The servlet outputs the > image with > header set to "no-cache" :- > > response.setHeader("Pragma", "no-cache"); > response.setHeader("Expires", -1); > > How to force Tomcat not to cache the dynamic image? and load > a new one > every time? I hope someone could help me out and advise how > to configure > Tomcat not to cache dynamic image. > > Thanks a lot. > > John Mok > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Missing key in KEYS file for 5.5.20?
I was just trying to use gpg to verify the signature on the 5.5.20 tar.gz file, and got the following error: > gpg -v apache-tomcat-5.5.20.tar.gz.asc gpg: armor header: Version: GnuPG v1.4.5 (MingW32) gpg: assuming signed data in `apache-tomcat-5.5.20.tar.gz' gpg: Signature made Tue 12 Sep 2006 01:17:49 PM EDT using DSA key ID D7B65864 gpg: Can't check signature: public key not found I downloaded the KEYS.htm file and imported it to update my keys, but I still get the same error. Also, a grep for key ID D7B65864 on the KEYS file doesn't turn up anything. Is the KEYS file missing a key that it should have? Thanks, --Paul - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AOL
Daniel Blumenthal wrote: How does the lb decide where you go for all requests after the first one? Typically, the session id is sniffed from the URL or cookie and the lb maintains a table of mappings that expires after some time. Our two choices are evidently "IP-based" and "cookie-based". Currently, we're using "IP-based", so every IP address is treated as a separate request. I'm looking into making it cookie-based, and making cookies a requirement for the site (currently, we only use cookies to store a couple of simple preferences). Any idea how many people have cookies turned off? Are you *sure* your load balancer isn't capable of recognising session IDs in URLs? If it can, then you have a 3rd option: forget cookies and tell Tomcat to use URL encoding exclusively. Of course, you must call response.encodeURL() anywhere you return a link back into the session, but this is probably good practice anyway, and all cookie-related problems go away (and testing becomes easier: you can have many independent sessions in Firefox tabs etc. :-) Paul Singleton - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AOL
Daniel Blumenthal wrote: We just switched from a single server to a cluster, with a load balancer out front to manage incoming connections. The load balancer makes the decision to go to app server 1 (app1) or app server 2 (app2) based on IP address - once a request comes in from one source IP, all future requests (for some period of time) go to the same server. > The problem is that it appears that AOL will randomly assign an IP address to every request a user sends. They presumably run a proxy farm: the IP addresses from request.getRemoteAddr() should be those of the (last) proxy which handled the request. AOL should use the HTTP_X_FORWARDED_FOR* header to convey the originating IP address (do they?): you could get this with request.getHeader("HTTP_X_FORWARDED_FOR") IMHO if your load balancer switches on RemoteAddr when an HTTP_X_FORWARDED_FOR address is available then it is broken, and if AOL don't set HTTP_X_FORWARDED_FOR then they are guilty of Bad Practice (only those dodgy anonymising services have a good reason to do that). Paul Singleton * or perhaps HTTP_CLIENT_IP - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.5.12 Refresh/Cache problem
Can somebody tell me what configuration parameter I need to set to get rid of page not refreshing. I have a png image a.png . When I browse from IE it shows me the image properly. Now I put a different image but with the same name a.png. Event if I press the browser refresh button , it still does not refresh the image. It will only display the new image if I take a new browser. I think this has to do with the Caching but I'm not sure where to look for. Any help would be appreciated. Thanks, Samit Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5.12 Refresh/Cache problem
Janssen, Thanks for the reply, but in that case I will run into a separate problem of clearing up old files so I don't really want to do that. Samit Paul -Original Message- From: MW Janssen [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 01, 2005 2:12 AM To: 'Tomcat Users List' Subject: RE: Tomcat 5.5.12 Refresh/Cache problem is IE caching problem. To avoid caching of images in IE put an extra unique parameter behind the image source, i.e. the time in milliseconds. So the browser can never find it again in the cache. regards, maarten -Oorspronkelijk bericht----- Van: Samit Paul [mailto:[EMAIL PROTECTED] Verzonden: dinsdag 1 november 2005 2:17 Aan: users@tomcat.apache.org Onderwerp: Tomcat 5.5.12 Refresh/Cache problem Can somebody tell me what configuration parameter I need to set to get rid of page not refreshing. I have a png image a.png . When I browse from IE it shows me the image properly. Now I put a different image but with the same name a.png. Event if I press the browser refresh button , it still does not refresh the image. It will only display the new image if I take a new browser. I think this has to do with the Caching but I'm not sure where to look for. Any help would be appreciated. Thanks, Samit Paul -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.361 / Virus Database: 267.12.6/151 - Release Date: 28-10-2005 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.361 / Virus Database: 267.12.6/151 - Release Date: 28-10-2005 - 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 5.5.12 Refresh/Cache problem
Arlene, Thanks for the reply. My file is a PNG file. Can you tell me where can I put this piece of code. Thanks, Samit Paul -Original Message- From: Arlene Milgram [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 01, 2005 8:20 AM To: users@tomcat.apache.org Subject: RE: Tomcat 5.5.12 Refresh/Cache problem /** Turn on caching: expire in one hour * @param response The Http Response. */ public static void setHeadersCacheOn( HttpServletResponse response ){ java.util.Calendar expireDate = java.util.Calendar.getInstance(); expireDate.add(java.util.Calendar.SECOND, 30 ); response.setDateHeader("Expires", expireDate.getTime().getTime()); response.setHeader("Cache-Control","public,store,cache"); response.setHeader("Pragma","cache"); } -Original Message- From: Samit Paul [mailto:[EMAIL PROTECTED] Sent: Monday, October 31, 2005 8:17 PM To: users@tomcat.apache.org Subject: Tomcat 5.5.12 Refresh/Cache problem Can somebody tell me what configuration parameter I need to set to get rid of page not refreshing. I have a png image a.png . When I browse from IE it shows me the image properly. Now I put a different image but with the same name a.png. Event if I press the browser refresh button , it still does not refresh the image. It will only display the new image if I take a new browser. I think this has to do with the Caching but I'm not sure where to look for. Any help would be appreciated. Thanks, Samit Paul - 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 5.5.12 Refresh/Cache problem
Thanks a lot guys. Certainly I misunderstood. Samit Paul -Original Message- From: MW Janssen [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 02, 2005 2:51 AM To: 'Tomcat Users List' Subject: RE: Tomcat 5.5.12 Refresh/Cache problem that's what i meant. regards. -Oorspronkelijk bericht- Van: Stephan van Loendersloot [mailto:[EMAIL PROTECTED] Verzonden: woensdag 2 november 2005 4:39 Aan: Tomcat Users List Onderwerp: Re: Tomcat 5.5.12 Refresh/Cache problem Samit Paul wrote: > Arlene, > Thanks for the reply. My file is a PNG file. Can you tell me where can > I put this piece of code. > Thanks, > > Samit Paul > > -Original Message- > From: Arlene Milgram [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 01, 2005 8:20 AM > To: users@tomcat.apache.org > Subject: RE: Tomcat 5.5.12 Refresh/Cache problem > > > /** Turn on caching: expire in one hour >* @param response The Http Response. >*/ > public static void setHeadersCacheOn( HttpServletResponse response ){ > java.util.Calendar expireDate = java.util.Calendar.getInstance(); > expireDate.add(java.util.Calendar.SECOND, 30 ); > response.setDateHeader("Expires", expireDate.getTime().getTime()); > response.setHeader("Cache-Control","public,store,cache"); > response.setHeader("Pragma","cache"); > } > > -Original Message- > From: Samit Paul [mailto:[EMAIL PROTECTED] > Sent: Monday, October 31, 2005 8:17 PM > To: users@tomcat.apache.org > Subject: Tomcat 5.5.12 Refresh/Cache problem > > Can somebody tell me what configuration parameter I need to set to get > rid of page not refreshing. > I have a png image a.png . When I browse from IE it shows me the image > properly. Now I put a different image but with the same name a.png. > Event if I press the browser refresh button , it still does not > refresh the image. The problem you describe is on a per-browser-per-user-basis, so they will not work effectively. In IE for example, you can set the caching through the menu Tools -> Internet Options -> General and under 'Temporary Internet Files', click Settings, then under 'Check for newer versions of stored pages content', select 'Every visit to the page'. Also you can set the number of megabytes to use for caching to 1Mb. As said, this totally leaves you up to the visitor's browser settings. Other suggested options are to add a number of meta-tags or response-headers like 'Expires', 'Cache-Control', 'Pragma->No-Cache->No-Store', 'Cache-Control->pre-check->post-check' to your pages. However, the interpretation of these things, *again* differs per browser implementation per user and per HTTP protocol version these things were originally designed for. This has nothing to do with Tomcat or any other webserver. Some of the meta-tags and response-headers mentioned above even have an unreliable effect on the browsers 'Back'-button and on search-engines. The most reliable way I have found is to simply take Maarten Janssens's advice: or even: Where the value '1130901624937' is the current time in milliseconds. Maybe you didn't understand his reply and you thought something like: This would indeed leave you with strange duplicate files. The trick is to use the time as a parameter appended to the filename, so you can keep the name your original image. HTH, --Stephan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.362 / Virus Database: 267.12.6/152 - Release Date: 31-10-2005 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.362 / Virus Database: 267.12.7/155 - Release Date: 1-11-2005 - 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: security question for this group
Prabhat Kumar (IT) wrote: I am trying to figure out how to prevent a situation where a user has a runaway page that is a super user page (and unauthorized). The page has a text area that takes an SQL query and executes this on the applications database. My question is, how can such unauthorized tasks be prevented in general? The only Java Server Pages available to the user are those which you deploy, so don't create such a page in the first place :-) If you need to evaluate SQL queries, set them up in advance as PreparedStatements, then just solicit parameter values from the user; if you construct SQL queries from text supplied by the user, they may be able to "inject" commands to do things you don't want them to be able to do RTFM for various techniques for authorizing users Paul Singleton -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.362 / Virus Database: 267.12.8/162 - Release Date: 5/Nov/2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
replacing the error page(s)
If I want to ensure that Tomcat's built-in error page (5.5.9+) is never used (and provide a custom replacement) (for all apps in a server), is there a better way than putting this sort of stuff in conf/web.xml? 404 /some/error/page.jsp java.io.IOException /some/error/page.jsp and what error codes must I do this for? Is there a compact way of specifying *all* codes? Is it a bad idea to define a page for java.lang.Throwable? Paul Singleton -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.362 / Virus Database: 267.12.8/162 - Release Date: 5/Nov/2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.0 : howto make a webapp the ROOT webapp the proper way
Francis Galiegue wrote: ... [...] ... But then this is flawed: * The external-webapps directory does not exist, and tomcat doesn't seem to complain. However, future versions may. Indeed. I recommend setting appBase to a real, empty directory. It seems a bit odd having to maintain an empty dir as part of the configuration, but you can do it if you try :-) You may want to put a README in there, saying "do not interfere"... What's more, if this directory is created and a webapp exists in there we get to the same problem... If webapps just magically come into existence on your server then it needs stricter administration :-) * I'm no expert at all with Tomcat but this just looks like there's a far more simple, elegant way... (before you're an expert you'll stop expecting this ;-) e.g. an attribute to retain deployment on startup from explicit contexts while suppressing implicit deployment from the appBase? Paul Singleton -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.362 / Virus Database: 267.12.8/162 - Release Date: 5/Nov/2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
test
testing this email id -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: test
This mail to [EMAIL PROTECTED] escaped my Gmail filter for tomcat mail lists. At present I have filters for users@tomcat.apache.org and [EMAIL PROTECTED] When does [EMAIL PROTECTED] came into existence ? -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Could do with some guidance/help
I only use Tomcat standalone, and have no hunches about your particular problem, but sometimes IE hides the sordid details of error msgs and I find that Firefox gives them to you straight; also there's a LiveHTTPHeaders plugin which can be useful when troubleshooting? good luck :-/ Paul Singleton Richard Tomkins wrote: Platform: Windows 200 Pro, Service Pack 4 Pentium 4, HyperThreaded, 512MB memory. Installed software, Oracle 10g Release 2, Personal Edition. Apache 1.3.33 J2SDK 1.4.2_10 Tomcat 4.1.31 Mod_jk-1.2.14-apache-1.3.33.so I have set up Tomcat server.xml with the requisite listeners to have it do auto configuration. I a using the ajp13 connector, and I have tried both of the configurations for this inside server.xml, the ajp13 on port 8009 and the coyote/ajp13 on port 8009. The Tomact examples all work as well as the administration and management tools. My problem is that I have an application that I have to install on a number of desktops for internal test purposes. The application is written in jsp and works with an earlier version of Apache and Tomact 3.x.mumble. With the implementation I am working with, on the first page I get a message that an "Internal Server Error" has occurred. If I right mouse click and choose refresh, the expected page shows up on the browser. If I do this via, HYPERLINK "http://localhost:8080/testsoft/index.html"http://localhost:8080/testsoft/in dex.html, the display works everytime, unlike my experience with HYPERLINK "http://locahost/testsoft.html"http://locahost/testsoft.html which should work. Many web pages after do work, and as I said previously, the Tomact examples all work with both methods. Something between Apache and Tomcat is causing me some pain. If anyone has any ideas to throw my way, please do. Regards, Richard Tomkins -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.362 / Virus Database: 267.12.8/165 - Release Date: 9/Nov/2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FW: tomcat
HI Dirk, I was using tomcat 5.5.9 and couldn't change the working folder through "tomcat5 //US" or tomcat5w interface to change the '--StartPath'. Then I updated to 5.5.12 and I could play with this parameters. Samit Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, November 24, 2005 10:26 AM To: [EMAIL PROTECTED] Subject: tomcat Hi Samit, I've found your message in a forum, but there was no direct way to submit a massage to you. So I write directly to you. I have the same problem with the tomcat service unter windows 2003. Have you found a solution for this problem? Thank you for your help. Dirk. "Samit Paul" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > How do I set tomcat-5's working directory to something other than > C:\Windows\System32 when it is run as windows (XP) service . > Even if I set CATALINA_HOME to point to the tomcat installation directory > it > doesn't take it. > Everything works great if I run tomcat from the command line using > tomcat's > startup.bat file. > Any help would be appreciated. > ~Samit Paul > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
IncompatibleClassChangeError handling
If I update a jar file within a JSP web app while Tomcat (5.5.9) is stopped, I may get an IncompatibleClassChangeError at the first request after restart. I fix this by stopping, deleting the work stuff, and restarting. Is it possible in principle for Tomcat to automatically regard the compiled pages as out of date, and recompile them as they are encountered? Paul Singleton -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.362 / Virus Database: 267.13.7/182 - Release Date: 24/Nov/2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Web-application and Tomcat icon
On 11/29/05, Aladin Alaily <[EMAIL PROTECTED]> wrote: > Hello, > > Every time I deploy an application using Tomcat 5.5.12, the usual tomcat > icon is being displayed in the url. > > I would like to know how I can replace that icon with my own... or > better yet, no put any icon at all. The icon displayed on the browser is favicon.ico that is in ROOT. You can replace it with your own icon. -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.0.27 >> java.net.SocketException: Software caused connection abort: recv failed
On 11/29/05, Rajiv Singla <[EMAIL PROTECTED]> wrote: > Hi, > > I was already using 'autoReconnect=true' option. > But after going through MySql website, I found that it has been deprecated > and in order to use 'autoReconnect' option you now need to use > 'enableDeprecatedAutoreconnect=true'. > > I am trying this option for now, if it doesn't work then maybe I'll have to > find another solution. Read the thread posted on the same day "JDBC/MySQL user login goes stale". > > > > -Original Message- > From: Tim Funk [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 29, 2005 5:24 PM > To: Tomcat Users List > Subject: Re: Tomcat 5.0.27 >> java.net.SocketException: Software caused > connection abort: recv failed > > > Not a tomcat issue. Its a mysql driver issue. IIRC - there is an > autoreconnect option for the mysql driver. > > -Tim > > Rajiv Singla wrote: > > >>Hi, > >> > >>I am working on a web application which uses Tomcat-5.0.27 as Application > >>server and MySql 4.1 as DB server. > >>The application uses Struts 1.1 and Hibernate 3.0 frameworks. > >> > >>I am facing a problem with the application. If the servers are kept running > >>idle for a long time(7-8 hours or overnight) and then someone tries to > >>login, the application does not allow the user to login and throws > >>exceptions. > >>When I restart the MySql server, the problem still remains but if I restart > >>the Tomcat server, it works fine. > >> > >>Could someone tell me what is the problem with the servers and how it could > >>be rectified? > >> > >>Here is the full stack trace of errors I get : > >> > >>STACKTRACE: > >> > >>java.net.SocketException: Software caused connection abort: recv failed > >>at java.net.SocketInputStream.socketRead0(Native Method) > >>at java.net.SocketInputStream.read(SocketInputStream.java:129) > >>at java.io.BufferedInputStream.fill(BufferedInputStream.java:183) > >>at java.io.BufferedInputStream.read1(BufferedInputStream.java:222) > >>at java.io.BufferedInputStream.read(BufferedInputStream.java:277) > >>at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1316) > >>at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:1463) > >>at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1854) > >>at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1109) > >>at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1203) > >>at com.mysql.jdbc.Connection.execSQL(Connection.java:2090) > >>at > >>com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1496) > > > - > 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] > > -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SSL Certificate Beginner Question
David Wall wrote: ...if the user accesses your site with http://, the port 80 Connector (or 8080 if testing or using a non-standard port) has a "redirectPort" element that causes Tomcat to automatically issue a redirect using https:// Are you sure? I thought redirectPort was only useful for redirecting _https_ requests which were sent to the wrong port... Paul S. -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.362 / Virus Database: 267.13.10/189 - Release Date: 30/Nov/2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to deploy my webapp as root context webapp without tomcat loading it twice?
Vivek Mohan wrote: Like I mentioned in my problem statement: I don't want to move my application into ROOT folder or rename it to ROOT. And unlike as you said Mark, putting autoDeploy=false doesn't help in this case. Is this (loading a webapp twice if the context path and the docBase path is different) a feature of Tomcat? Can't this be turned off? My hunch is that you won't get a definitive answer to this question in this group :-/ I *think* you need to do all these: * maintain an empty appBase directory * leave autoDeploy alone (there's nothing for it to deploy) * set docBase in Context to an absolute path to your app regards Paul Singleton -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.362 / Virus Database: 267.13.10/189 - Release Date: 30/Nov/2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tom TC committers - a small error on Tomcat docs pages
Hi all, The docs page top logo points to jakarta.apache.org also the writing on the logo is of jakarta.apache.org. -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
What is "AAA" in "Realms and AAA" means ?
Hi all, At Tomcat 5.5 docs home page the 6th documentation title is "6) Realms and AAA". In it what does "AAA" means ? Just out of curiousity. -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JDBC Session Persistence in a cluster problem/question
From: [EMAIL PROTECTED] Subject:JDBC Session persistence in a cluster problem/question Date: 10 January 2006 5:42:51 PM To: [EMAIL PROTECTED] [For context, Tomcat 5.5.12] Hello all, I'm having a bit of trouble understanding exactly what the capabilities are of the whole PersistenceManager and how it saves session data. here's what I we have configured in server.xml: className="org.apache.catalina.session.PersistentManager" > className="org.apache.catalina.session.JDBCStore" connectionURL="jdbc:inetdae7:tower.aconex.com? database=paul&user=sql&password=sql" driverName="com.inet.tds.TdsDriver" sessionIdCol="session_id" sessionValidCol="valid_session" sessionMaxInactiveCol="max_inactive" sessionLastAccessedCol="last_access" sessionTable ="tomcat_sessions" sessionAppCol = "app_name" sessionDataCol = "session_data" /> Sessions are persisting, as we can see the new rows being added to the DB. Fine, great. However in our test cluster environment we have noticed that session variables (strings, Integers) are being "lost" during the failover to the other node in the cluster. From looking at the Javadoc of the PersistentManager and other related info on the net, I can't see anywhere where it indicates that the Session is persisted to the DB when the session is updated/modified/addedto. It seems to only have settings that set how long to wait before saving to the persistence store. 1). Am I correct in my understanding so far? 2) . If so, is this design because of the likely performance impact of all these session changes, and the somewhat unlikely case of the server going down in the first place. 3). do I have any options here? We really do need a pretty seamless failover with session information being kept in sync as it failsover to the other node in the cluster. cheers, Paul Smith
Apache+Tomcat+AJP: failover error, expected?
context: Apache 2.0.54, Tomcat 5.5.12, jk 1.2.15, ajp 1.3 I am observing something which I think I understand, but I want to make sure it is expected behaviour and not something I should attempt to try and fix. See config at the end of this email for more information. We have configured Apache 2 to have a load-balancer between 2 Tomcat instances and configured it as per standard configurations (what we believe to be standard configurations). When doing the following failover test: 1) Start up both tomcat nodes, and 'warm' them up by ensuring that the sticky session OR round-robin logic (we've tried both) routes some requests to both nodes. 2) Pause the submission of requests to the cluster just for testing purposes, then shut down one of the tomcat nodes cleanly via shutdown command leaving one clean node in the cluster. 3) _First_ request that comes into the cluster that would normally by 'stickied'/stuck/round-robin'd to the now deceased node is shown a 500 Error. Subsequent requests are moved successfully over to the remaining node. If I think about this a bit, it seems reasonable to design the ajp connectors this way because of trying to check the state of the worker before sending it a request introduces quite a lot of overhead, and would probably reduce performance. The design is 'optimistic' in that it assumes that for the majority of the time the tomcat node will be there. Unfortunately the first request in gets nuked. Is this the correct and expected behaviour in this scenario? Or have we simply configured something incorrectly? Perhaps that's just The Way It Is? cheers, Paul Smith --begin configs -- [EMAIL PROTECTED] conf]# more workers.properties # Define workers worker.list=loadbalancer,status worker.maintain=5 # - # First Tomcat Server: worker1 (ajp13) # - # # Talk to Tomcat listening on machine mel.neil.aconex.com at port 8009 worker.worker1.type=ajp13 worker.worker1.host=192.168.0.218 worker.worker1.port=8009 worker.worker1.lbfactor=1 # Use up to 10 sockets, which will stay no more than 10min in cache worker.worker1.cachesize=10 worker.worker1.cache_timeout=600 # Ask operating system to send KEEP-ALIVE signal on the connection worker.worker1.socket_keepalive=1 # Want ajp13 connection to be dropped after 10secs (recycle) worker.worker1.socket_timeout=300 # - # Second Tomcat Server: worker2 (ajp13) # - # # Talk to Tomcat listening on machine mel.neil.aconex.com at port 8010 worker.worker2.type=ajp13 worker.worker2.host=192.168.0.219 worker.worker2.port=8009 worker.worker2.lbfactor=0 # Use up to 10 sockets, which will stay no more than 10min in cache worker.worker2.cachesize=10 worker.worker2.cache_timeout=600 # Ask operating system to send KEEP-ALIVE signal on the connection worker.worker2.socket_keepalive=1 # Want ajp13 connection to be dropped after 10secs (recycle) worker.worker2.socket_timeout=300 # - # Load Balancer worker: loadbalancer # - # # The loadbalancer (type lb) worker performs weighted round-robin # load balancing with non-sticky sessions. # Note: # > If a worker dies, the load balancer will check its state #once in a while. Until then all work is redirected to peer #worker. worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=worker1,worker2 worker.loadbalancer.sticky_session=false worker.loadbalancer.recover=65 # - # Status worker: status # - # worker.status.type=status [EMAIL PROTECTED] conf]# more httpd.conf # # Based upon the NCSA server configuration files originally by Rob McCool. # [snip] # # Dynamic Shared Object (DSO) Support # # To be able to use the functionality of a module which was built as a DSO you # have to place corresponding `LoadModule' lines at this location so the # directives contained in it are actually available _before_ they are used. # Statically compiled modules (those listed by `httpd -l') do not need # to be loaded here. # # Example: # LoadModule foo_module modules/mod_foo.so LoadModule jk_module modules/mod_jk.so [snip] # # Bring in additional module-specific configurations # Include conf/ssl.conf # # Configure module: mod_jk # JkWorkersFile conf/workers.properties JkLogFile logs/mod_jk.log JkLogLevel debug JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " JkRequestLogFormat "%w %V %T" JkOptions +ForwardKeySize JkShmFile share/mod_jk.shm JkMount /* loadbalancer JkUnMount /*.html loadbalancer JkUnMount /*.ico loadbalancer JkUnMount /html/*/*.html loadbalancer JkUnMount /html/*/*.htm loadbalancer JkUnMount /html/*/*.ico loadbalancer JkUnMount /html/*/*.gif loadbala
Re: Cluster configuration
Aren't you missing the mcastBindAddr property? We're just going through the test setup for clustering with 5.5.15 and it's working pretty well, here's a snippet from our config: jvmRoute="worker2"> distributable="true" > className="org.apache.catalina.cluster.tcp.SimpleTcpCluster" service.mcastBindAddr="192.168.0.219" receiver.tcpListenAddress="192.168.0.219" tcpThreadCount="2"> the mcastBindAddr and tcListenAddress needs to be different for each node in the cluster. Also note that I would very much recommend using the latest modJK 1.2.15, this together with tomcat 5.5.15 is looking pretty good. cheers, Paul On 12/01/2006, at 11:17 AM, bradley mclain wrote: I am unable to get a 2 node cluster to work. I am using 5.5.15, as I saw in an email that prior versions are broken. when i start node A i see the following written to the log: 1064 INFO [main] - Manager [localhost/cluster]: skipping state transfer. No members active in cluster group. I expect that. when i start node B (after A is started) I see the same snippet: 1219 INFO [main] - Manager [localhost/cluster]: skipping state transfer. No members active in cluster group. I do not expect that. Obviously the two nodes are not finding each other. I have pinged 228.0.0.4 from those servers, as well as 228.0.0.1, and receive responses from each of the servers, so I _believe_ Multicast is operating properly, though I am not a network guy. I am using the server.xml obtained from the documentation (attached below), and I have carefully followed all instructions in the clustering documentation, though perhaps not carefully enough ;-). My servers are not multi-homed, thus I have tried both with and without the mcastBindAddress attribute, but it makes no difference. Can anyone suggest what I may be missing here? cheers, Bradley McLain minSpareThreads="4" maxSpareThreads="4" /> manager.sendAllSessionsWaitTime="20"> className="org.apache.catalina.cluster.session.ClusterSessionListener" /> className="org.apache.catalina.cluster.session.JvmRouteSessionIDBinder Listener" /> - 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: Database Connectivity of JSP(Tomcat 4.x) with Oracle 8i
On 1/18/06, gupta vidhi <[EMAIL PROTECTED]> wrote: > hello, > > i'm using jakarta-tomcat-4.1.31and jdk-1_5_0_02-windows-i586-p-iftw in WIN > 2000 Professional. > I wish to connect Oracle 8.0(plus) with JSP pages. > i request you to kindly tell me how to do this? If you are learning JSP you can connect to a database using JDBC. It is same as using JDBC in any other java application. What you should take care is to put the JDBC driver library in the WEB-INF\lib directory of the application so that Tomcat sees it. -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wrong System encoding
On 1/18/06, jacky <[EMAIL PROTECTED]> wrote: > hi, > RedHat7.3(System encoding is iso8859-15), tomcat 4.1.30 > When i use System.getProperty("file.encoding") in a jsp, it print > "utf-8". I think the "utf-8" must be the encode of tomcat,but how can i get > the system encode: iso8859-15? In fact, i need the right encode to > write/read file. > BTW, i wander why the encode of tomcat container changes to "utf-8". Is > the reason because i used "reponse.setContentType("text/html; charset=utf-8")? > Any suggestion is helpful! I dont know the solution but just to know did you tried running a java application at the command prompt to test the value of System.getProperty("file.encoding") ? -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat log analyser
On 1/18/06, Stas Ostapenko <[EMAIL PROTECTED]> wrote: > Hello ! > > I'm searching for tomcat log analyser. Under Apache (not Tomcat) i > have used AWStats. > Is there something similar for standalone Tomcat ? Tomcat can use AWStats if you configure Tomcat to run CGI script. Or are you asking for an access log analyzer written in Java ? -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Database Connectivity of JSP(Tomcat 4.x) with Oracle 8i
On 1/18/06, gupta vidhi <[EMAIL PROTECTED]> wrote: > i've JDBC installed in other path than Tomcat.you asked me to put the JDBC > driver library into WEB-INF\lib. there's WEB-INF directory,but it do not have > lib as its sub directory.what can be done for this? > kindly tell me how to do the path setting of JDBC with JSP. > i'd made a page in JSP,but when executing its generating error as: > > javax.servlet.ServletException: [Microsoft][ODBC Driver Manager] Data > source name not found and no default driver specified > and so on. > kindly tell how to connect my JSP page with JDBC. > A JDBC tutorial is here http://www-db.stanford.edu/~ullman/fcdb/oracle/or-jdbc.html Don't use JDBC-ODBC bridge. From the error message it seems that it is using JDBC-ODBC bridge. You will get the JDBC driver from ORACLE_HOME\jdbc\lib. For 8i the file will be classes12.zip. Create a lib directory in WEB-INF directory. Tomcat is case sensitive and lib must be in small letters. Copy classes12.zip to WEB-INF\lib and rename it to classes12.jar. Now to connect to database use the JDBC URL like jdbc:oracle:thin:hr/[EMAIL PROTECTED]:1521:orcl. Don't for to restart Tomcat after putting the JAR file in WEB-INF\lib. The Oracle installation provides some sample Java code. Look in jdbc folder for it. -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Database Connectivity of JSP(Tomcat 4.x) with Oracle 8i
On 1/18/06, gupta vidhi <[EMAIL PROTECTED]> wrote: > > i'd copied the classes12.zip from C:\jdbc\lib. there's no folder of > ORACLE_HOME. > now,what else to be done? By ORACLE_HOME I meant where oracle is installed. You cannot attach files while sending mail to this list. The code should look like this <%@ page import="java.sql.*"%> <%@ page import="oracle.jdbc.driver.*"%> <% String url = "jdbc:oracle:thin:@192.168.4.220:1521:ora9i"; String user = "scott"; String password = "tiger"; DriverManager.registerDriver(new oracle.jdbc.OracleDriver()); Connection conn = DriverManager.getConnection (url,user, password); Statement stmt = conn.createStatement(); ResultSet rs = stmt.executeQuery ("select empno from emp"); while (rs.next()) { out.print(rs.getString (1) + ""); } rs.close(); stmt.close(); conn.close(); %> > i'm sending you my JSP page. kindly tell me what code should be > written/added to execute it successfully. > i'd created the table named as user1 in oracle 8.0 and inserted some values > in it. > the name of the database in which this table is been created is prime. > > Regards, > Vidhi > > Anto Paul <[EMAIL PROTECTED]> wrote: > On 1/18/06, gupta vidhi wrote: > > i've JDBC installed in other path than Tomcat.you asked me to put the JDBC > driver library into WEB-INF\lib. there's WEB-INF directory,but it do not > have lib as its sub directory.what can be done for this? > > kindly tell me how to do the path setti ng of JDBC with JSP. > > i'd made a page in JSP,but when executing its generating error as: > > > > javax.servlet.ServletException: [Microsoft][ODBC Driver Manager] Data > source name not found and no default driver specified > > and so on. > > kindly tell how to connect my JSP page with JDBC. > > > > A JDBC tutorial is here > http://www-db.stanford.edu/~ullman/fcdb/oracle/or-jdbc.html > > Don't use JDBC-ODBC bridge. From the error message it seems that > it is using JDBC-ODBC bridge. > You will get the JDBC driver from ORACLE_HOME\jdbc\lib. For 8i the > file will be classes12.zip. Create a lib directory in WEB-INF > directory. Tomcat is case sensitive and lib must be in small letters. > Copy classes12.zip to WEB-INF\lib and rename it to classes12.jar. Now > to connect to database use the JDBC URL like > jdbc:oracle:thin:hr/[EMAIL PROTECTED]:1521:orcl. > > Don't for to restart Tomcat after putting the JAR file in WEB-INF\lib. > > The Oracle installation provides some sample Java code. Look in > jdbc folder for it. > > -- > rgds > Anto Paul > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > Yahoo! Photos > Got holiday prints? See all the ways to get quality prints in your hands > ASAP. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Database Connectivity of JSP(Tomcat 4.x) with Oracle 8i
On 1/19/06, gupta vidhi <[EMAIL PROTECTED]> wrote: > Hello, > thanx for the code.i'd executed but facing some problems.its showing the > following error: > > HTTP Status 500 - No Context configured to process this request > - > > type Status report > message No Context configured to process this request > description The server encountered an internal error (No Context configured > to process this request) that prevented it from fulfilling this request. > > - > > Apache Tomcat/4.1.31 It should be because that Tomcat is not configured. To test this you should create a file named index.html with some text in it and try accessing it. If it works Tomcat is configured. BTW where tomcat is installed and what is the path to the application you are trying to access ?. > as you had asked me to copy classes12.zip from Oracle\jdbc\lib. but i'm bot > finding the jdbc folder in my ORACLE_HOME. its in my : > C:\oracle1\jdk\lib\classes\sun\jdbc path.now this path don't have lib > folder in it.this jdbc folder consists of odbc folder which again don't have > any lib folder. > You should use Search -> Find from Windows start menu to locate the file classes12.zip or search for jdbc in your computer. If it is not found you should download it from oracle.com. Ritchie has given the link in a prevoius post. There you can download driver for any higher version of Oracle database and it will work for 8.0 also. Put the file in WEB-INF\lib and restart Tomcat. >i feel the above error might be coming bcoz of the same reason. > now you say, what should i do and what the matter is all about? > > Regards, > > Vidhi > Anto Paul <[EMAIL PROTECTED]> wrote: > On 1/18/06, gupta vidhi wrote: > > i've JDBC installed in other path than Tomcat.you asked me to put the JDBC > > driver library into WEB-INF\lib. there's WEB-INF directory,but it do not > > have lib as its sub directory.what can be done for this? > > kindly tell me how to do the path setting of JDBC with JSP. > > i'd made a page in JSP,but when executing its generating error as: > > > > javax.servlet.ServletException: [Microsoft][ODBC Driver Manager] Data > > source name not found and no default driver specified > > and so on. > > kindly tell how to connect my JSP page with JDBC. > > > > A JDBC tutorial is here > http://www-db.stanford.edu/~ullman/fcdb/oracle/or-jdbc.html > > Don't use JDBC-ODBC bridge. From the error message it seems that > it is using JDBC-ODBC bridge. > You will get the JDBC driver from ORACLE_HOME\jdbc\lib. For 8i the > file will be classes12.zip. Create a lib directory in WEB-INF > directory. Tomcat is case sensitive and lib must be in small letters. > Copy classes12.zip to WEB-INF\lib and rename it to classes12.jar. Now > to connect to database use the JDBC URL like > jdbc:oracle:thin:hr/[EMAIL PROTECTED]:1521:orcl. > > Don't for to restart Tomcat after putting the JAR file in WEB-INF\lib. > > The Oracle installation provides some sample Java code. Look in > jdbc folder for it. > > -- > rgds > Anto Paul > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > Yahoo! Photos > Ring in the New Year with Photo Calendars. Add photos, events, holidays, > whatever. > -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to download admin webapp
On 1/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi, > > Appologies if the answer to this is obvious. > > Could someone please explain where to obtain the admin webapp for tomcat 5. > You can find it in the same place where you downloaded Tomcat binary. Go to tomcat.apache.org and click on the download link. -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Database Connectivity of JSP(Tomcat 4.x) with Oracle 8i
On 1/19/06, gupta vidhi <[EMAIL PROTECTED]> wrote: > i'd made some JSP & HTML pages(without DB Connectivity) and also execute them > successfully, before copying classes12.jar file in WEB-INF\lib, but now when > i'm executing my pages with or without DB Connec.,they aren't executing and > showing the same error as i'd told you in my previous mail. > now i'm unable to understand, what shud i do,bcoz i'm unable to understand > the problem? > if Tomcat would have not been installed properly,then how could the pages > had executed successfully before.but now the same Tomcat is showing error > with every page. > what could be the reason behind this? > If other JSP pages work Tomcat is configured properly. As a next step check log files in the logs directory of Tomcat. See the files like localhost*. The error message will be there. Post it. > > Anto Paul <[EMAIL PROTECTED]> wrote: > On 1/19/06, gupta vidhi wrote: > > Hello, > > thanx for the code.i'd executed but facing some problems.its showing the > > following error: > > > > HTTP Status 500 - No Context configured to process this request > > - > > > > type Status report > > message No Context configured to process this request > > description The server encountered an internal error (No Context configured > > to process this request) that prevented it from fulfilling this request. > > > > - > > > > Apache Tomcat/4.1.31 > > > It should be because that Tomcat is not configured. To test this you > should create a file named index.html with some text in it and try > accessing it. If it works Tomcat is configured. BTW where tomcat is > installed and what is the path to the application you are trying to > access ?. > > > as you had asked me to copy classes12.zip from Oracle\jdbc\lib. but i'm bot > > finding the jdbc folder in my ORACLE_HOME. its in my : > > C:\oracle1\jdk\lib\classes\sun\jdbc path.now this path don't have lib > > folder in it.this jdbc folder consists of odbc folder which again don't > > have any lib folder. > > > > > You should use Search -> Find from Windows start menu to locate the > file classes12.zip or search for jdbc in your computer. If it is not > found you should download it from oracle.com. Ritchie has given the > link in a prevoius post. There you can download driver for any higher > version of Oracle database and it will work for 8.0 also. Put the file > in WEB-INF\lib and restart Tomcat. > > > > i feel the above error might be coming bcoz of the same reason. > > now you say, what should i do and what the matter is all about? > > > > Regards, > > > > Vidhi > > Anto Paul wrote: > > On 1/18/06, gupta vidhi wrote: > > > i've JDBC installed in other path than Tomcat.you asked me to put the > > > JDBC driver library into WEB-INF\lib. there's WEB-INF directory,but it do > > > not have lib as its sub directory.what can be done for this? > > > kindly tell me how to do the path setting of JDBC with JSP. > > > i'd made a page in JSP,but when executing its generating error as: > > > > > > javax.servlet.ServletException: [Microsoft][ODBC Driver Manager] Data > > > source name not found and no default driver specified > > > and so on. > > > kindly tell how to connect my JSP page with JDBC. > > > > > > > A JDBC tutorial is here > > http://www-db.stanford.edu/~ullman/fcdb/oracle/or-jdbc.html > > > > Don't use JDBC-ODBC bridge. From the error message it seems that > > it is using JDBC-ODBC bridge. > > You will get the JDBC driver from ORACLE_HOME\jdbc\lib. For 8i the > > file will be classes12.zip. Create a lib directory in WEB-INF > > directory. Tomcat is case sensitive and lib must be in small letters. > > Copy classes12.zip to WEB-INF\lib and rename it to classes12.jar. Now > > to connect to database use the JDBC URL like > > jdbc:oracle:thin:hr/[EMAIL PROTECTED]:1521:orcl. > > > > Don't for to restart Tomcat after putting the JAR file in WEB-INF\lib. > > > > The Oracle installation provides some sample Java code. Look in > > jdbc folder for it. > > > > -- > > rgds > > Anto Paul > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > - > > Yahoo! Photos > > Ring in the New Year with Photo Calendars. Add photos, events, holidays, > > whatever. > > > > > -- > rgds > Anto Paul > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > - > Yahoo! Photos > Got holiday prints? See all the ways to get quality prints in your hands > ASAP. > -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Database Connectivity of JSP(Tomcat 4.x) with Oracle 8i
- > >java.lang.ClassCastException: org.apache.naming.resources.FileDirContext > > at > > org.apache.catalina.loader.WebappLoader.setRepositories(WebappLoader.java:1012) > > at org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:618) > > at org.apache.catalina.core.StandardContext.start(StandardContext.java:3486) > > at > > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:774) > > at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:760) > > at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:548) > > at > > org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:260) > > at org.apache.catalina.core.StandardHost.install(StandardHost.java:741) > > at > > org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:512) > > at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:354) > > at org.apache.catalina.startup.HostConfig.start(HostConfig.java:671) > > at > > org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) > > at > > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) > > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1149) > > at org.apache.catalina.core.StandardHost.start(StandardHost.java:707) > > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141) > > at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316) > > at org.apache.catalina.core.StandardService.start(StandardService.java:450) > > at org.apache.catalina.core.StandardServer.start(StandardServer.java:2143) > > at org.apache.catalina.startup.Catalina.start(Catalina.java:463) > > at org.apache.catalina.startup.Catalina.execute(Catalina.java:350) > > at org.apache.catalina.startup.Catalina.process(Catalina.java:129) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:585) > > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156) > > 2006-01-19 12:11:31 StandardHost[localhost]: Error deploying application at > > context path > >java.lang.IllegalStateException: ContainerBase.addChild: start: > >LifecycleException: start: : > > > and more semi relevant stuff in the remaining logs ... > > > > > Regards, > > Vidhi > > > > > > > >Anto Paul wrote: > > On 1/19/06, gupta vidhi wrote: > > > > > >>i'd made some JSP & HTML pages(without DB Connectivity) and also execute > >>them successfully, before copying classes12.jar file in WEB-INF\lib, but > >>now when i'm executing my pages with or without DB Connec.,they aren't > >>executing and showing the same error as i'd told you in my previous mail. > >>now i'm unable to understand, what shud i do,bcoz i'm unable to understand > >>the problem? > >>if Tomcat would have not been installed properly,then how could the pages > >>had executed successfully before.but now the same Tomcat is showing error > >>with every page. > >>what could be the reason behind this? > >> > >> > >> > > > >If other JSP pages work Tomcat is configured properly. > >As a next step check log files in the logs directory of Tomcat. See > >the files like localhost*. The error message will be there. Post it. > > > > > > > >>Anto Paul wrote: > >>On 1/19/06, gupta vidhi wrote: > >> > >> > >>>Hello, > >>>thanx for the code.i'd executed but facing some problems.its showing the > >>>following error: > >>> > >>>HTTP Status 500 - No Context configured to process this request > >>>- > >>> > >>>type Status report > >>>message No Context configured to process this request > >>>description The server encountered an internal error (No Context > >>>configured to process this request) that prevented it from fulfilling this > >>>request. > >>> > >>>- > >>> > >>>Apache Tomcat/4.1.31 > >>> > >>> > >>It should be because that Tomcat is not configured. To test this you > >>should create a file named index.htm
Re: Database Connectivity of JSP(Tomcat 4.x) with Oracle 8i
On 1/20/06, gupta vidhi <[EMAIL PROTECTED]> wrote: > hello, > > i was searching Oracle 8i driver for jdk1.5, but not getting.i had > downloaded classes12.jar from oracle.com and saved in my > >c:\Program Files\Tomcat\jakarta-tomcat-1.4.31\webapps\ROOT\WEB-INF\lib\ > > Is this path correct or i've to store it in my ORACLE_H0ME\jdbc\lib ? > may be ojdbc14.jar is for jdk1.4? > is it possible to download both in the lib folder? You need to use either one. and put it in WEB-INF\lib and not ORACLE_HOME\jdbc\lib. You should check the log files there may be more errors in it. First stop Tomcat delete log files start Tomcat and test and post the log files. Check Tomcat console also if you have one. There are other log files mainly stdout, stderr other than localhost*. and post the relevant error messages. > Thanks & Regards, > Vidhi > > > Anto Paul <[EMAIL PROTECTED]> wrote: > On 1/20/06, gupta vidhi wrote: > > my problem of Tomcat is been solved.now my simple JSP pages(without DB > > connectivity) is been solved. > > but when i'm executing my JSP page(with DB Connectivity) is creating > > problems and showing the following error : > > > > javax.servlet.ServletException: No suitable driver > > at > > org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:498) > > at org.apache.jsp.test_DB1_jsp._jspService(test_DB1_jsp.java:98) > > and so on. > > > Are you sure that the classes12.jar is not corrupted ?. > > > i'd set the CLASSPATH of classes12.jar as: > > > > C:\Program Files\Tomcat\jakarta-tomcat-4.1.31\webapps\ROOT\WEB-INF\lib > > > > > There is no use of setting the CLASSPATH variable. Tomcat wont take > this for running the application. > > If it is not solving your problem you may have to download ojdbc14.jar > from oracle.com and use it as it may be due to the JDK 1.5. > > > > Kindly help. > > > > Regards, > > Vidhi > > David Smith wrote: > > I'd recommend checking that your classes12.jar file is valid. This > > should work: > > > > $JAVA_HOME/bin/jar -v -t -f webapps/ROOT/WEB-INF/lib/classes12.jar > > > > It'll list the table of contents of the archive and be verbose about it. > > Replace -t with -x to extract files for further inspection. > > > > --David > > > > gupta vidhi wrote: > > > > >i'm sending you the whole localhost file: > > > 2006-01-19 12:11:09 HostConfig[localhost]: Deploying configuration > > > descriptor admin.xml > > >2006-01-19 12:11:29 HostConfig[localhost]: Deploying configuration > > >descriptor manager.xml > > > > > > > > > > >... on and on and on . > > > > > > > >2006-01-19 12:11:31 HostConfig[localhost]: Deploying web application > > >directory ROOT > > >2006-01-19 12:11:31 StandardHost[localhost]: Installing web application at > > >context path from URL file:C:\Program > > >Files\Tomcat\jakarta-tomcat-4.1.31\webapps\ROOT > > >2006-01-19 12:11:31 WebappLoader[]: Deploying class repositories to work > > >directory C:\Program > > >Files\Tomcat\jakarta-tomcat-4.1.31\work\Standalone\localhost\_ > > >2006-01-19 12:11:31 WebappLoader[]: Deploy JAR /WEB-INF/lib/classes12.jar > > >to C:\Program > > >Files\Tomcat\jakarta-tomcat-4.1.31\webapps\ROOT\WEB-INF\lib\classes12.jar > > >2006-01-19 12:11:31 StandardHost[localhost]: ContainerBase.addChild: start: > > >LifecycleException: start: : java.lang.ClassCastException: > > >org.apache.naming.resources.FileDirContext > > > at org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:631) > > > at > > > org.apache.catalina.core.StandardContext.start(StandardContext.java:3486) > > > at > > > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:774) > > > at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:760) > > > at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:548) > > > at > > > org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:260) > > > at org.apache.catalina.core.StandardHost.install(StandardHost.java:741) > > > at > > > org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:512) > > > at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:354) > > > at org.apache.catalina.startup.HostConfig.start(HostConfig.java:671) > > > at > > > org.apache.catalina.startup.Host
Re: How and where to specify the log format in Tomcat
On 1/23/06, Sheshadri Patel <[EMAIL PROTECTED]> wrote: > Hi All, > > How and where to enable Tomcat server to use NCSA Common or NCSA Combined > format in their log files? http://tomcat.apache.org/tomcat-5.0-doc/config/valve.html It should be configured in the server.xml. Look for the AccessLogValve element. The pattern attribute specifies the log format. -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Starting Tomcat
Hello, I am a new Tomcat user and am having some difficulties starting the server ; So far, I have downloaded the software ; apache-tomcat-5.5.15.tar.gz Uncompressed and un tarred Created the following environment variables : CATALINA_HOME=/vg_LION1/app/lionweb/apache-tomcat-5.5.15 TOMCAT_HOME=/vg_LION1/app/lionweb/apache-tomcat-5.5.15 CATALINA_TMPDIR=/vg_LION1/app/lionweb/apache-tomcat-5.5.15/temp Run the following : $ bin/startup.sh Using CATALINA_BASE: /vg_LION1/app/lionweb/apache-tomcat-5.5.15 Using CATALINA_HOME: /vg_LION1/app/lionweb/apache-tomcat-5.5.15 Using CATALINA_TMPDIR: /vg_LION1/app/lionweb/apache-tomcat-5.5.15/temp Using JRE_HOME: /export/home/liondev/software/java_1.4.2_10 Which returns status code 0, but no process gets started and there is no trace in the logs. I then attempted to start as a daemon process using jscv : ./bin/jsvc -Djava.endorsed.dirs=./common/endorsed -cp ./bin/bootstrap.jar \ -outfile ./logs/catalina.out -errfile ./logs/catalina.err \ org.apache.catalina.startup.Bootstrap However, ./common/endorsed is not part of the Tomcat installation. This also fails, with the following in the catalina.err log : Jan 25, 2006 11:27:53 AM org.apache.catalina.startup.Bootstrap initClassLoaders SEVERE: Class loader creation threw exception java.lang.NoClassDefFoundError: javax/management/MBeanServerFactory at org.apache.catalina.startup.Bootstrap.createClassLoader(Bootstrap.java:1 65) at org.apache.catalina.startup.Bootstrap.initClassLoaders(Bootstrap.java:97 ) at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:193) at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:261) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.daemon.support.DaemonLoader.load(DaemonLoader.java:16 0) I am not a java developer, so am now stuck ! Please could you offer some advice to get me up and running. Thanks Paul _Confidentiality notice: Whilst this company has procedures in place and makes every effort to safeguard both Inbound and Outbound Emails, we cannot guarantee that attachments are Virus - Free or compatible with your systems and therefore we do not accept any liability in respect of viruses or computer problems experienced. This e-mail and any files transmitted with it are confidential and/or privileged. They are for the intended recipient only. If you are not the intended recipient, you must not use, review, distribute, disclose, alter, print, copy, transmit or rely on this e-mail and any file transmitted with it. If you have received this e-mail and any file transmitted with it in error please notify the sender or Mitsui Sumitomo Insurance (London Management) Ltd Registered 4th Floor, 71 Fenchurch St, London, EC3M 4BS Company Number 1063340 email: [EMAIL PROTECTED] Syndicate 3210 (acting through its Managing Agent at Lloyd's), Mitsui Sumitomo Insurance (London) Limited and Mitsui Sumitomo Insurance Company Limited are all regulated by the Financial Services Authority. _ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Starting Tomcat
Thank you, I'll give it a try. -Original Message- From: Peter Crowther [mailto:[EMAIL PROTECTED] Sent: 25 January 2006 11:46 To: Tomcat Users List Subject: RE: Starting Tomcat > From: Hooper, Paul [mailto:[EMAIL PROTECTED] I am a new Tomcat user > and am having some difficulties starting the server [...] > Using JRE_HOME: /export/home/liondev/software/java_1.4.2_10 5.5 needs *either* a Java 1.5 VM *or* the JDK 1.4 Compatability Package available from the download links at http://tomcat.apache.org/download-55.cgi - this may be your problem. - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ _Confidentiality notice: Whilst this company has procedures in place and makes every effort to safeguard both Inbound and Outbound Emails, we cannot guarantee that attachments are Virus - Free or compatible with your systems and therefore we do not accept any liability in respect of viruses or computer problems experienced. This e-mail and any files transmitted with it are confidential and/or privileged. They are for the intended recipient only. If you are not the intended recipient, you must not use, review, distribute, disclose, alter, print, copy, transmit or rely on this e-mail and any file transmitted with it. If you have received this e-mail and any file transmitted with it in error please notify the sender or Mitsui Sumitomo Insurance (London Management) Ltd Registered 4th Floor, 71 Fenchurch St, London, EC3M 4BS Company Number 1063340 email: [EMAIL PROTECTED] Syndicate 3210 (acting through its Managing Agent at Lloyd's), Mitsui Sumitomo Insurance (London) Limited and Mitsui Sumitomo Insurance Company Limited are all regulated by the Financial Services Authority. _ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Starting Tomcat
That worked perfectly. Thank you very much Paul -Original Message- From: Peter Crowther [mailto:[EMAIL PROTECTED] Sent: 25 January 2006 11:46 To: Tomcat Users List Subject: RE: Starting Tomcat > From: Hooper, Paul [mailto:[EMAIL PROTECTED] I am a new Tomcat user > and am having some difficulties starting the server [...] > Using JRE_HOME: /export/home/liondev/software/java_1.4.2_10 5.5 needs *either* a Java 1.5 VM *or* the JDK 1.4 Compatability Package available from the download links at http://tomcat.apache.org/download-55.cgi - this may be your problem. - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ _Confidentiality notice: Whilst this company has procedures in place and makes every effort to safeguard both Inbound and Outbound Emails, we cannot guarantee that attachments are Virus - Free or compatible with your systems and therefore we do not accept any liability in respect of viruses or computer problems experienced. This e-mail and any files transmitted with it are confidential and/or privileged. They are for the intended recipient only. If you are not the intended recipient, you must not use, review, distribute, disclose, alter, print, copy, transmit or rely on this e-mail and any file transmitted with it. If you have received this e-mail and any file transmitted with it in error please notify the sender or Mitsui Sumitomo Insurance (London Management) Ltd Registered 4th Floor, 71 Fenchurch St, London, EC3M 4BS Company Number 1063340 email: [EMAIL PROTECTED] Syndicate 3210 (acting through its Managing Agent at Lloyd's), Mitsui Sumitomo Insurance (London) Limited and Mitsui Sumitomo Insurance Company Limited are all regulated by the Financial Services Authority. _ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Build archives
Hello, I'm a relative newbie to CruiseControl, however I have managed to install and configure the application and get my project building. However, what is apparent to me is that for each build, the previous build is deleted and overwritten with the new build ( there is no persistance ). What I would like to see is all subsequent builds being stamped as such in the filesystem i.e .Build1, .Build2 etc. Am I expected to manage this outside of the CruiseControl process i.e or is there some functionality inside CruiseControl that will do this for me ? Many thanks Paul _Confidentiality notice: Whilst this company has procedures in place and makes every effort to safeguard both Inbound and Outbound Emails, we cannot guarantee that attachments are Virus - Free or compatible with your systems and therefore we do not accept any liability in respect of viruses or computer problems experienced. This e-mail and any files transmitted with it are confidential and/or privileged. They are for the intended recipient only. If you are not the intended recipient, you must not use, review, distribute, disclose, alter, print, copy, transmit or rely on this e-mail and any file transmitted with it. If you have received this e-mail and any file transmitted with it in error please notify the sender or Mitsui Sumitomo Insurance (London Management) Ltd Registered 4th Floor, 71 Fenchurch St, London, EC3M 4BS Company Number 1063340 email: [EMAIL PROTECTED] Syndicate 3210 (acting through its Managing Agent at Lloyd's), Mitsui Sumitomo Insurance (London) Limited and Mitsui Sumitomo Insurance Company Limited are all regulated by the Financial Services Authority. _ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Download file Problem - 404 error
On 1/30/06, Bob Hall <[EMAIL PROTECTED]> wrote: > --- DEEPA M N <[EMAIL PROTECTED]> wrote: > > > Hi > > I m using Jdk1.5 and Tomcat 5.0.28 for my proj. I > > have written a code which can download a file from > > the server. The code is compiling properly. I pasted > > the .class file in the > > webapps/DownloadFile/WEB-INF/classes/ > > Also i hav written web.xml in the WEB-INF folder. > > After running a appln, i get 404 Resource not > > found error. > > > > Before i hav worked on servlet and tomcat, i was > > not getting such issues before. But now i m facing > > such type of issues, i need to solve it as early as > > possible. Here is a web.xml lines: > > > > > >> PUBLIC "-//Sun Microsystems, Inc.//DTD Web > > Application 2.3//EN" > > "http://java.sun.com/dtd/web-app_2_3.dtd";> > > > > Tomcat Documentation > > > > Tomcat Documentation. > > > > > > > > DownloadFiles > > DownloadFiles > > > > > > > > DownloadFiles > > > > /servlet/DownloadFiles > > > > > > > > Pls do let me know how can i solve this prob. > > I always appreciate ur help. > > Thanks in advance. > > > > Deepa > > Deepa, > > Your servlet must be in a package to work with Java > 1.4 > and greater. > Hi Bob, I dont think the servlet need to be in a packge to call it from a URL. It must be in a package if it is imported in another class. Deepa Everything seems to be fine with given web.xml. Did you extended the HttpServlet class and implemented the service method() ?. Check error log for any errors. -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Download file Problem - 404 error
On 1/31/06, DEEPA M N <[EMAIL PROTECTED]> wrote: > Hi Vineesh, > The class name is DownloadFiles.class > Pls let me know wat is access permissions of the class and tomcat. > I m posting my web.xml after including package. > > >PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" > "http://java.sun.com/dtd/web-app_2_3.dtd";> > > Tomcat Documentation > > Tomcat Documentation. > > > > DownloadFiles > com.deepa.servlet.DownloadFiles > > > > DownloadFiles > /servlet/DownloadFiles > > > > Now wen i run the appln, I get error 500. Pls let me know where i hav gone > wrong. 500 means internal server error. check the log files for the error and post it. > I believe there might be some silly mistake. > Always welcome ur help. > thank u > Regards > Deepa > > > vineesh kumar <[EMAIL PROTECTED]> wrote: > Deepa, > plz check the following things > is ur class is public? > whether the class name is DownloadFiles.class itself? > also check the access permissions of the class and tomcat > directory if ur on a X'nix machine > > > > - > Jiyo cricket on Yahoo! India cricket > -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Download file Problem - 404 error
ardEngineValve.invoke(StandardEngineValve.java:109) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) > at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) > at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) > at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) > at > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) > at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) > at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) > at java.lang.Thread.run(Thread.java:595) > > Thank u in advance > Deepa > > > > - > Jiyo cricket on Yahoo! India cricket > -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Download file Problem - 404 error
On 1/31/06, DEEPA M N <[EMAIL PROTECTED]> wrote: > Hi > I did as u said. This is wat the error i m getting. > > > D:\Tomcat5.0\jakarta-tomcat-5.0.28\webapps\DownloadFile\WEB-INF\classes>java > com.deepa.servlet.DownloadFiles > Exception in thread "main" java.lang.NoClassDefFoundError: > com/deepa/servlet/DownloadFiles (wrong name: DownloadFiles) > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClass(Unknown Source) > at java.security.SecureClassLoader.defineClass(Unknown Source) > at java.net.URLClassLoader.defineClass(Unknown Source) > at java.net.URLClassLoader.access$100(Unknown Source) > at java.net.URLClassLoader$1.run(Unknown Source) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at java.lang.ClassLoader.loadClassInternal(Unknown Source) > This means that the class is not in the correct package. Put the following line as the first line in the file DownloadFiles.java package com.deepa.servlet; > > > D:\Tomcat5.0\jakarta-tomcat-5.0.28\webapps\DownloadFile\WEB-INF\classes\com\deepa\servlet>java > DownloadFiles > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/servlet/http/HttpServlet > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClass(Unknown Source) > at java.security.SecureClassLoader.defineClass(Unknown Source) > at java.net.URLClassLoader.defineClass(Unknown Source) > at java.net.URLClassLoader.access$100(Unknown Source) > at java.net.URLClassLoader$1.run(Unknown Source) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at java.lang.ClassLoader.loadClassInternal(Unknown Source) > > Thank u > > > Anto Paul <[EMAIL PROTECTED]> wrote: > In what package it is defined ?. > Are you sure you deleted the old classfiles and compiled the > classfiles to the right folder ? > Go to WEB-INF\classes and type java com.deepa.servlet.DownloadFiles. > Go to classes com/deepa/servlet and type java DownloadFiles. > > It should give the same error since it is not in the right > package/directory structure. > > > > > > - > Jiyo cricket on Yahoo! India cricket > -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Jcoverage
Does anybody out there know anything about jcoverage ??? _Confidentiality notice: Whilst this company has procedures in place and makes every effort to safeguard both Inbound and Outbound Emails, we cannot guarantee that attachments are Virus - Free or compatible with your systems and therefore we do not accept any liability in respect of viruses or computer problems experienced. This e-mail and any files transmitted with it are confidential and/or privileged. They are for the intended recipient only. If you are not the intended recipient, you must not use, review, distribute, disclose, alter, print, copy, transmit or rely on this e-mail and any file transmitted with it. If you have received this e-mail and any file transmitted with it in error please notify the sender or Mitsui Sumitomo Insurance (London Management) Ltd Registered 4th Floor, 71 Fenchurch St, London, EC3M 4BS Company Number 1063340 email: [EMAIL PROTECTED] Syndicate 3210 (acting through its Managing Agent at Lloyd's), Mitsui Sumitomo Insurance (London) Limited and Mitsui Sumitomo Insurance Company Limited are all regulated by the Financial Services Authority. _ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Small connection problems with JK 1.2.15 and IIS 5
Hi, I experienced the same problem as described earlier in this thread. I'm also using Tomcat 5.5 (5.5.15 to be exact), JK 1.2.15 and IIS 5 (Win2k server). I'm running a single Tomcat instance, and it's on the same server as IIS. I was also having these messages, really thousands every day: - [Thu Feb 02 08:21:08 2006] [warn] jk_ajp_common.c (2138): Unable to get the free endpoint for worker ajp13 from 10 slots [Thu Feb 02 08:21:08 2006] [info] jk_ajp_common.c (2152): can't find free endpoint - Increasing the cachesize in worker.properties to 100 indeed fixes these problems! Many tanx to Mladen Turk for his replies earlier in this thread! I've been having this problem since september 2005, and generated A LOT OF "page not found errors". These have now disappeared :-) However, the JK logs still show a whole lot of (about 10.000 every day!!) these errors: - [Wed Feb 08 13:03:49 2006] [error] jk_isapi_plugin.c (639): WriteClient failed with 2745 [Wed Feb 08 13:03:49 2006] [info] jk_ajp_common.c (1384): Connection aborted or network problems [Wed Feb 08 13:03:49 2006] [info] jk_ajp_common.c (1731): Receiving from tomcat failed, because of client error without recovery in send loop 0 [Wed Feb 08 13:03:49 2006] [info] jk_lb_worker.c (711): unrecoverable error 400, request failed. Client failed in the middle of request, we can't recover to another instance. - Here's my worker.properties file: - ps=\ workers.tomcat_home=C:\Tomcat5.5 workers.java_home=C:\Java\jre5 worker.list=ajp13,jkstatus worker.ajp13w.type=ajp13 worker.ajp13w.host=localhost worker.ajp13w.port=8009 #note: Tomcat AJP maxThreads is currently at 125 worker.ajp13w.cachesize=100 worker.ajp13w.lbfactor=1 worker.ajp13w.redirect=catch worker.catch.type=ajp13 worker.catch.host=localhost worker.catch.port=8009 worker.catch.lbfactor=1 worker.catch.disabled=true worker.ajp13.type=lb worker.ajp13.balance_workers=ajp13w,catch worker.jkstatus.type=status - I'm not sure yet if these errors actually have any consequences for my site-visitors, since I only just fixed the "can't find free endpoint" problem. But I do know, those errors must be there for a reason... Anyone? Tanx a lot! Paul Hamer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Small connection problems with JK 1.2.15 and IIS 5
Sorry, I just noticed I forgot a piece of the error :) The errors I'm still having are almost always immediately preceeded by this one: [Wed Feb 08 13:27:53 2006] [error] jk_isapi_plugin.c (549): HSE_REQ_SEND_RESPONSE_HEADER failed Tanx, Paul Hamer > -Original Message- > From: Paul Hamer [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 08 February, 2006 13:23 > To: users@tomcat.apache.org > Subject: RE: Small connection problems with JK 1.2.15 and IIS 5 > > Hi, > > I experienced the same problem as described earlier in this > thread. I'm also > using Tomcat 5.5 (5.5.15 to be exact), JK 1.2.15 and IIS 5 > (Win2k server). > I'm running a single Tomcat instance, and it's on the same > server as IIS. > > I was also having these messages, really thousands every day: > > - > [Thu Feb 02 08:21:08 2006] [warn] jk_ajp_common.c (2138): > Unable to get the > free endpoint for worker ajp13 from 10 slots > [Thu Feb 02 08:21:08 2006] [info] jk_ajp_common.c (2152): > can't find free > endpoint > - > > Increasing the cachesize in worker.properties to 100 indeed > fixes these > problems! Many tanx to Mladen Turk for his replies earlier in > this thread! > I've been having this problem since september 2005, and > generated A LOT OF > "page not found errors". These have now disappeared :-) > > However, the JK logs still show a whole lot of (about 10.000 > every day!!) > these errors: > > - > [Wed Feb 08 13:03:49 2006] [error] jk_isapi_plugin.c (639): > WriteClient > failed with 2745 > [Wed Feb 08 13:03:49 2006] [info] jk_ajp_common.c (1384): Connection > aborted or network problems > [Wed Feb 08 13:03:49 2006] [info] jk_ajp_common.c (1731): > Receiving from > tomcat failed, because of client error without recovery in send loop 0 > [Wed Feb 08 13:03:49 2006] [info] jk_lb_worker.c (711): > unrecoverable error > 400, request failed. Client failed in the middle of request, we can't > recover to another instance. > - > > Here's my worker.properties file: > > - > ps=\ > workers.tomcat_home=C:\Tomcat5.5 > workers.java_home=C:\Java\jre5 > worker.list=ajp13,jkstatus > > worker.ajp13w.type=ajp13 > worker.ajp13w.host=localhost > worker.ajp13w.port=8009 > #note: Tomcat AJP maxThreads is currently at 125 > worker.ajp13w.cachesize=100 > worker.ajp13w.lbfactor=1 > worker.ajp13w.redirect=catch > > worker.catch.type=ajp13 > worker.catch.host=localhost > worker.catch.port=8009 > worker.catch.lbfactor=1 > worker.catch.disabled=true > > worker.ajp13.type=lb > worker.ajp13.balance_workers=ajp13w,catch > > worker.jkstatus.type=status > - > > I'm not sure yet if these errors actually have any consequences for my > site-visitors, since I only just fixed the "can't find free endpoint" > problem. But I do know, those errors must be there for a reason... > > Anyone? > > Tanx a lot! > Paul Hamer > > > - > 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: caseSensitive on Windows XP
Context path="/V2D" docBase="V2D" caseSensitive="true"/> Thanks Paul Hooper Project Lion Configuration Manager Mitsui Insurance London Market Regent House 1-3 Queensway REDHILL Surrey RH1 1NH 07956 847 505 -Original Message- From: Merico Raffaele [mailto:[EMAIL PROTECTED] Sent: 08 February 2006 14:19 To: users@tomcat.apache.org Subject: caseSensitive on Windows XP Dear Community I am developing a web application based on Tomcat 5.5. and on Cocoon 2.1.8. I am doing all the work on a Windows XP platform. Now, somehow, I have seen filenames are not treated case-sensitive. In order to change this behaviour on Tomcat level I added the following line to the conf/context.xml file: But I did not really changed anything. The case sensitivity is still ignored. Does anybody can give me a tip, how to set the case sensitivity? For your support many thanks in advance ... Raffaele Raffaele Merico LESS Informatik AG Böhnirainstrasse 14 CH-8800 Thalwil Tel: +41 44 723 12 22 Dir: +41 44 723 92 45 Fax: +41 44 723 12 23 mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ _Confidentiality notice: Whilst this company has procedures in place and makes every effort to safeguard both Inbound and Outbound Emails, we cannot guarantee that attachments are Virus - Free or compatible with your systems and therefore we do not accept any liability in respect of viruses or computer problems experienced. This e-mail and any files transmitted with it are confidential and/or privileged. They are for the intended recipient only. If you are not the intended recipient, you must not use, review, distribute, disclose, alter, print, copy, transmit or rely on this e-mail and any file transmitted with it. If you have received this e-mail and any file transmitted with it in error please notify the sender or Mitsui Sumitomo Insurance (London Management) Ltd Registered 4th Floor, 71 Fenchurch St, London, EC3M 4BS Company Number 1063340 email: [EMAIL PROTECTED] Syndicate 3210 (acting through its Managing Agent at Lloyd's), Mitsui Sumitomo Insurance (London) Limited and Mitsui Sumitomo Insurance Company Limited are all regulated by the Financial Services Authority. _ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __
RE: Desperate for help with isapi_redirect.dll
Hi David, > First, it seems to not write all of the log entries. The > final line is: > [Sun Feb 12 21:14:08 2006] [warn] jk_uri_worker_map.c (42 This, I think, is normal. The logentries appear to be cached, and may therefore seem incomplete at any given time. Just wait a couple of minutes and you will find the line has been completed. > [Sun Feb 12 13:34:23 2006] [error] jk_isapi_plugin.c (1049): > could not get a worker for name ajp13 I've been having this error myself too. It seems that you MUST have a worker listed in "worker.list" called "ajp13". I used to have one loadbalancing worker called "wlb", which balanced between two workers "ajp13" and "backup". Still I kept getting this error. Finally I renamed the "ajp13" worker to "ajp13w" and the loadbalancing worker from "wlb" to "ajp13" and the error dissappeared. Looks like a bug to me. I've been "Googling" a lot for this error, and many forums contain posts reporting the same error, yet none of them have *any* replies. Regards, Paul Hamer management & development [EMAIL PROTECTED] toHAVE websolutions www.tohave.nl [EMAIL PROTECTED] > -Original Message- > From: David Thielen [mailto:[EMAIL PROTECTED] > Sent: Monday, 13 February, 2006 05:55 > To: 'Tomcat Users List' > Subject: RE: Desperate for help with isapi_redirect.dll > > Hello; > > Ok, I upped the cachesize and now have a new problem > > First, it seems to not write all of the log entries. The > final line is: > [Sun Feb 12 21:14:08 2006] [warn] jk_uri_worker_map.c (42 > > Second, I am now getting this: > [Sun Feb 12 13:34:23 2006] [error] jk_isapi_plugin.c (1049): > could not get a > worker for name ajp13 > [Sun Feb 12 14:31:39 2006] [error] jk_isapi_plugin.c (1049): > could not get a > worker for name ajp13 > [Sun Feb 12 15:29:22 2006] [error] jk_isapi_plugin.c (1049): > could not get a > worker for name ajp13 > [Sun Feb 12 21:14:01 2006] [warn] jk_uri_worker_map.c (429): Uri > http://www.page2stage.com is invalid. Uri must start with / > [Sun Feb 12 21:14:02 2006] [warn] jk_uri_worker_map.c (429): Uri > http://www.page2stage.com/reviews/index.htm is invalid. Uri > must start with > / > ... more page2stage.com pages listed ... > > Which is not in my properties file at all. I just tried > http://www.page2stage.com/reviews/index.htm and other pages > and it comes up > ok. But it looks like it is having a problem with this. > > This is with Mark's latest version - not the official release. > > Uriworkermap.properties is: > /store/*=ajp13w > /store=ajp13w > /track/*=ajp13w > /forums/*=ajp13w > /forums=ajp13w > /WindwardReportsServlet/*=ajp13w > /WindwardReportsJsp/*=ajp13w > /*.jsp=ajp13w > /*.faces=ajp13w > > Any ideas? > > Thanks - dave > > > > David Thielen > www.windwardreports.com > 303-499-2544 > > -Original Message- > From: Mark Thomas [mailto:[EMAIL PROTECTED] > Sent: Sunday, February 12, 2006 11:43 AM > To: Tomcat Users List > Subject: Re: Desperate for help with isapi_redirect.dll > > David Thielen wrote: > > 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 >
RE: Desperate for help with isapi_redirect.dll
Hiya David, You have a typo (forgot a "w") in the cachesize line of your worker.properties... > worker.ajp13w.cachesize=100 Should fix most of y'r problems :) Greetz, Paul Hamer management & development [EMAIL PROTECTED] toHAVE websolutions www.tohave.nl [EMAIL PROTECTED] > -Original Message- > From: David Thielen [mailto:[EMAIL PROTECTED] > Sent: Monday, 13 February, 2006 15:16 > To: 'Tomcat Users List' > Subject: RE: Desperate for help with isapi_redirect.dll > > worker.properties.minimal: > worker.list=ajp13w > worker.ajp13.cachesize=100 > worker.ajp13w.type=ajp13 > worker.ajp13w.host=localhost > worker.ajp13w.port=8009 > > uriworkermap.properties: > /store/*=ajp13w > /store=ajp13w > /track/*=ajp13w > /forums/*=ajp13w > /forums=ajp13w > /WindwardReportsServlet/*=ajp13w > /WindwardReportsJsp/*=ajp13w > /*.jsp=ajp13w > /*.faces=ajp13w > > Thanks - dave > > David Thielen > www.windwardreports.com > 303-499-2544 > > -Original Message- > From: Mladen Turk [mailto:[EMAIL PROTECTED] > Sent: Monday, February 13, 2006 2:43 AM > To: Tomcat Users List > Subject: Re: Desperate for help with isapi_redirect.dll > > David Thielen wrote: > > Hello; > > > > Ok, I upped the cachesize and now have a new problem > > > > worker for name ajp13 > > [Sun Feb 12 15:29:22 2006] [error] jk_isapi_plugin.c > (1049): could not get > a > > worker for name ajp13 > > > Post your workers.properties file. > > Regards, > Mladen. > > - > 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: Tomcat 5.5.15 Clustering ?
Is the multicast going over the 127.0.0.1 instead? We've had this problem before (redhat el3), and to fix it, you have to make sure that in /etc/hosts that localhost is bound to a real IP address and not 127.0.0.1. for some reason, in Java it always seems to want to stick to the local interface when localhost is mapped to this. Paul Smith On 16/02/2006, at 3:08 AM, Filip Hanik - Dev Lists wrote: David, you are all over the place. Slow down for a second. my guess is that one of your interfaces is not doing what you think it is doing. follow these simple steps 1. Make sure that your multicast is working 2. Stop all your tomcat processes 3. Make sure nothing else is broadcasting on the same mcast address 4. Delete or archive all your previous logs 5. Startup tomcat 1 - wait 10 seconds 6. Startup tomcat 2 Then do the following 7. Set tcpListenAddress="auto" in your server.xml file 8. Repeat steps 1 through 6 9. email the logs to the list our guess is that you have a networking problem, but you just don't dont look into it close enough for yourself and then provide us with the info. Filip David Avenante wrote: Yes all right ! INFO: Register manager /cluster-1.0-SNAPSHOT to cluster element Host with name localhost Feb 15, 2006 10:47:32 AM org.apache.catalina.cluster.session.DeltaManagerstart But Why my mcastAddress is good ! now i' ve a new error Feb 15, 2006 10:50:41 AM org.apache.catalina.cluster.tcp.FastAsyncSocketSender $FastQueueThreadpushQueuedMessages WARNING: Unable to asynchronously send session with id=[GET-ALL-/ cluster- 1.0-SNAPSHOT] - message will be ignored. java.net.ConnectException: Connection timed out at java.net.PlainSocketImpl.socketConnect(Native Method) but it's a big progress ;) I got to verifiy if my ntp synchronisation between my server is OK ;) Thank you very much. - 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: Image files accesable for a servlet in Tomcat, but they were accesible in Java standalone program
Hi Marc, Are you running Tomcat on a "headless" machine, in other words, on a machine that does not have any graphics drivers installed? This is the case for many SSH-only Linux servers, like mine. If so, then specify -Djava.awt.headless=true as a parameter to Tomcat. Regards, Paul Hamer management & development [EMAIL PROTECTED] toHAVE websolutions www.tohave.nl [EMAIL PROTECTED] > -Original Message- > From: Wentink, Marc [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 22 February, 2006 16:42 > To: tomcat-user@jakarta.apache.org > Subject: Image files accesable for a servlet in Tomcat, but > they were accesible in Java standalone program > > Dear Sirs, > > I have got a servlet that generates a pdf file from a xml > file, the servlet runs in Tomcat, and it runs fine as long as > in the xml file does not contain references to images. At the > moment the xml contains an image I got this error: > > java.lang.NoClassDefFoundError > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:141) > at > java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Graph > icsEnvironment.java:62) > at > java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1041) > at > java.awt.image.BufferedImage.getGraphics(BufferedImage.java:1031) > at net.antonius.pdfgen.TypeImageMap.parse(Unknown Source) > > > The strange thing is that if I ran the old program as an > independent java program, I did not got the error. Hence the > java environment provided by Tomcat misses some classes? > > Thanks in advance for any suggestions. > > Marc > > > - > 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: Image files accesable for a servlet in Tomcat, but they were accesible in Java standalone program
Hi Zohar, What doe you mean by "reference" ?? Please elaborate. Regards, Paul Hamer management & development [EMAIL PROTECTED] toHAVE websolutions www.tohave.nl [EMAIL PROTECTED] > -Original Message- > From: Zohar Amir [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 22 February, 2006 17:28 > To: Tomcat Users List > Subject: Re: Image files accesable for a servlet in Tomcat, > but they were accesible in Java standalone program > > Sorry to barge in, but maybe you can help me with my question: > If I want to reference images from my servlet, when should I > put them and > how do I reference them? > Thanks, > Zohar. > > - Original Message - > From: "Wentink, Marc" <[EMAIL PROTECTED]> > To: "Tomcat Users List" > Sent: Wednesday, February 22, 2006 6:20 PM > Subject: RE: Image files accesable for a servlet in Tomcat, > but they were > accesible in Java standalone program > > > Hey thanks! That's it > > -Oorspronkelijk bericht- > Van: Paul Hamer [mailto:[EMAIL PROTECTED] > Verzonden: woensdag 22 februari 2006 17:19 > Aan: 'Tomcat Users List' > Onderwerp: RE: Image files accesable for a servlet in Tomcat, but they > were accesible in Java standalone program > > > Hi Marc, > > Are you running Tomcat on a "headless" machine, in other > words, on a machine > that does not have any graphics drivers installed? This is > the case for many > SSH-only Linux servers, like mine. > > If so, then specify > > -Djava.awt.headless=true > > as a parameter to Tomcat. > > Regards, > Paul Hamer > > management & development > [EMAIL PROTECTED] > > toHAVE websolutions > www.tohave.nl > [EMAIL PROTECTED] > > > -Original Message- > > From: Wentink, Marc [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, 22 February, 2006 16:42 > > To: tomcat-user@jakarta.apache.org > > Subject: Image files accesable for a servlet in Tomcat, but > > they were accesible in Java standalone program > > > > Dear Sirs, > > > > I have got a servlet that generates a pdf file from a xml > > file, the servlet runs in Tomcat, and it runs fine as long as > > in the xml file does not contain references to images. At the > > moment the xml contains an image I got this error: > > > > java.lang.NoClassDefFoundError > > at java.lang.Class.forName0(Native Method) > > at java.lang.Class.forName(Class.java:141) > > at > > java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Graph > > icsEnvironment.java:62) > > at > > java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1041) > > at > > java.awt.image.BufferedImage.getGraphics(BufferedImage.java:1031) > > at net.antonius.pdfgen.TypeImageMap.parse(Unknown Source) > > > > > > The strange thing is that if I ran the old program as an > > independent java program, I did not got the error. Hence the > > java environment provided by Tomcat misses some classes? > > > > Thanks in advance for any suggestions. > > > > Marc > > > > > > > - > > 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]
JSP Compiler error Windows XP Tomcat 5.5.9
I am getting the following JSP compiler error when running tomcat 5.5.9 with JDK 1.5_05 on Windows XP Professional Service Pack 1: java.io.IOException: tmpFile.renameTo(classFile) failed at org.apache.jasper.compiler.SmapUtil$SDEInstaller.install(SmapUtil.java:245) at org.apache.jasper.compiler.SmapUtil.installSmap(SmapUtil.java:164) at org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:267) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:288) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:267) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:255) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) The work directory contains a .classtmp file after the error occurs. This problem does not happen for every JSP page and the JSP page usually compiles if I hit the refresh button. It doesn't always fail on the same JSP page. I have not changed any tomcat JSP configuration settings in the \conf\web.xml file. Has anyone else experienced this problem? If so, is there a workaround? Thank you. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat IP and Session ID's
I have a question regarding IP address and session ID's. If a user on IP Address 1 connects to the Tomcat server and is given session ID A, what happens if that session ID is hijacked by someone on IP address 2 and then used for a further request. How would the different version of Tomcat react to this, if at all. Specifically does Tomcat hold a relationship between IP address and session ID which is checked on each subsequent request. _ Are you using the latest version of MSN Messenger? Download MSN Messenger 7.5 today! http://messenger.msn.co.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat IP and Session ID's
Thank you. I was wondering, over and above encrypting the communications channel how does HTTPS help to prevent session ID hijacking? Regards Paul Roberts. From: "Peter Crowther" <[EMAIL PROTECTED]> Reply-To: "Tomcat Users List" To: "Tomcat Users List" Subject: RE: Tomcat IP and Session ID's Date: Fri, 24 Feb 2006 11:51:44 - > From: Paul Roberts [mailto:[EMAIL PROTECTED] > I have a question regarding IP address and session ID's. > > If a user on IP Address 1 connects to the Tomcat server and is given > session ID A, what happens if that session ID is hijacked by > someone on > IP address 2 and then used for a further request. How would the > different version of Tomcat react to this, if at all. > Specifically does > Tomcat hold a relationship between IP address and session ID which is > checked on each subsequent request. No. In fact, Tomcat should not do so - some users access Web servers via a farm of proxy servers, and different servers in the farm (with different IP addresses) might make different requests for the same user, even when that user is loading (say) images on a single page. If you want to prevent hijacking of session IDs, the session must be over HTTPS, not HTTP. - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Are you using the latest version of MSN Messenger? Download MSN Messenger 7.5 today! http://messenger.msn.co.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
error-page for nonexistent context
(I am required to anonymiee a Tomcat 5.5 server from hackers trying to discover its version etc.) If I put this in conf/web.xml 404 /anon_error.jsp *and* put an anon_error.jsp in every web app, then I can replace the built-in error page. But where will Tomcat look for /anon_error.jsp when a (page within a) nonexistent context is requested? Paul Singleton -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.375 / Virus Database: 268.0.0/268 - Release Date: 23/Feb/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Stopping Data Source when stopping context
I'm using tomcat 5.5 on linux, JDK 1.4.2 and have noticed that in my configuration that when I stop a context using the tomcat manager that the data source defined locally in that context is not stopped. To resolve this issue I would normally stop the entire tomcat instance and restart it. This is a problem as there are other applications running on the server so I would rather be able to just stop the context and have the local resources stopped at the same time. My context configuration follows the example below. Any ideas on how to configure tomcat to stop the data sources for the context when it is stopped? Cheers, Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error-page for nonexistent context
Mark Thomas wrote: Paul Singleton wrote: (I am required to anonymiee a Tomcat 5.5 server from hackers trying to discover its version etc.) If I put this in conf/web.xml 404 /anon_error.jsp *and* put an anon_error.jsp in every web app, then I can replace the built-in error page. But where will Tomcat look for /anon_error.jsp when a (page within a) nonexistent context is requested? I haven't tested this... I would expect an unknown context to be mapped to the ROOT context given the mapping rules defined in section SRV.11.1 If the context isn't recognised, then the longest macthing context path will be "/" which is the ROOT context. Thanks for this: I think you're right, and I have now tested this in 5.5.9 (which of course is not necessarily the version I'm trying to anonymise :-) and it works. cheers - Paul S. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can't get cipher list to work in SSL connector
Hi, Does anyone know if the ciphers attribute in tomcat server.xml connector works, and if so what the correct syntax is for this? I have tried almost everything with no joy. I want to limit to use of only strong ciphers for SSL connections. I am using Tomcat 5.5.9. Thanks, Paul DISCLAIMER: Important Notice * This e-mail may contain information that is confidential, privileged or otherwise protected from disclosure. If you are not an intended recipient of this e-mail, do not duplicate or redistribute it by any means. Please delete it and any attachments and notify the sender that you have received it in error. Unintended recipients are prohibited from taking action on the basis of information in this e-mail.E-mail messages may contain computer viruses or other defects, may not be accurately replicated on other systems, or may be intercepted, deleted or interfered with without the knowledge of the sender or the intended recipient. If you are not comfortable with the risks associated with e-mail messages, you may decide not to use e-mail to communicate with IPC. IPC reserves the right, to the extent and under circumstances permitted by applicable law, to retain, monitor and intercept e-mail messages to and from its systems.
RE: Can't get cipher list to work in SSL connector
Thanks. I tried that with no luck either. Does anyone have an example of a working connector configuration from server.xml? Paul Wasik, Paul wrote: > Does anyone know if the ciphers attribute in tomcat server.xml connector > works, and if so what the correct syntax is for this? I have tried > almost everything with no joy. I want to limit to use of only strong > ciphers for SSL connections. I am using Tomcat 5.5.9. The ciphers need to be named as per the cipher suites in JSSE. See http://java.sun.com/j2se/1.4.2/docs/guide/security/jsse/JSSERefGuide.html Search the page for "Supported Cipher Suites". Also, I am pretty sure they need to be comma separated. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] DISCLAIMER: Important Notice * This e-mail may contain information that is confidential, privileged or otherwise protected from disclosure. If you are not an intended recipient of this e-mail, do not duplicate or redistribute it by any means. Please delete it and any attachments and notify the sender that you have received it in error. Unintended recipients are prohibited from taking action on the basis of information in this e-mail.E-mail messages may contain computer viruses or other defects, may not be accurately replicated on other systems, or may be intercepted, deleted or interfered with without the knowledge of the sender or the intended recipient. If you are not comfortable with the risks associated with e-mail messages, you may decide not to use e-mail to communicate with IPC. IPC reserves the right, to the extent and under circumstances permitted by applicable law, to retain, monitor and intercept e-mail messages to and from its systems. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
High CPU Tomcat 5.5.12 - Caused By Norton AV on Win2K3
Hi all, Ran into an issue on a Windows 2003 server with Tomcat 5.5.12 and Norton Symantec 10.0 AV with GroupWare Protection. The presence of the Norton AV component even if Symantec AV service stopped causes Tomcat 5.5 CPU utilization to go to 95%. I had to uninstall Symantec AV and reboot and then Tomcat runs normally. Anyone else come across this sort of issue and if so any resolutions other than removing Symantec AV? Paul DISCLAIMER: Important Notice * This e-mail may contain information that is confidential, privileged or otherwise protected from disclosure. If you are not an intended recipient of this e-mail, do not duplicate or redistribute it by any means. Please delete it and any attachments and notify the sender that you have received it in error. Unintended recipients are prohibited from taking action on the basis of information in this e-mail.E-mail messages may contain computer viruses or other defects, may not be accurately replicated on other systems, or may be intercepted, deleted or interfered with without the knowledge of the sender or the intended recipient. If you are not comfortable with the risks associated with e-mail messages, you may decide not to use e-mail to communicate with IPC. IPC reserves the right, to the extent and under circumstances permitted by applicable law, to retain, monitor and intercept e-mail messages to and from its systems.
RE: High CPU Tomcat 5.5.12 - Caused By Norton AV on Win2K3
Thanks for the suggestions. But the applications function. They are just sluggish due to the CPU load. There is no real traffic on this server. It seems to be one particular webapp. We'll have to analyze what that is doing. Paul From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Sun 3/12/2006 7:48 PM To: Tomcat Users List Subject: Re: High CPU Tomcat 5.5.12 - Caused By Norton AV on Win2K3 Good Evening Paul- At first glance it Appears that the component you are speaking of was blocking 8080 transmissions You should look at the Norton Internet Security config screen and manually configure Apache Tomcat to allow those transmissions.. HTH, Martin - Original Message - From: "Wasik, Paul" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Sunday, March 12, 2006 11:44 AM Subject: High CPU Tomcat 5.5.12 - Caused By Norton AV on Win2K3 Hi all, Ran into an issue on a Windows 2003 server with Tomcat 5.5.12 and Norton Symantec 10.0 AV with GroupWare Protection. The presence of the Norton AV component even if Symantec AV service stopped causes Tomcat 5.5 CPU utilization to go to 95%. I had to uninstall Symantec AV and reboot and then Tomcat runs normally. Anyone else come across this sort of issue and if so any resolutions other than removing Symantec AV? Paul DISCLAIMER: Important Notice * This e-mail may contain information that is confidential, privileged or otherwise protected from disclosure. If you are not an intended recipient of this e-mail, do not duplicate or redistribute it by any means. Please delete it and any attachments and notify the sender that you have received it in error. Unintended recipients are prohibited from taking action on the basis of information in this e-mail.E-mail messages may contain computer viruses or other defects, may not be accurately replicated on other systems, or may be intercepted, deleted or interfered with without the knowledge of the sender or the intended recipient. If you are not comfortable with the risks associated with e-mail messages, you may decide not to use e-mail to communicate with IPC. IPC reserves the right, to the extent and under circumstances permitted by applicable law, to retain, monitor and intercept e-mail messages to and from its systems. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] DISCLAIMER: Important Notice * This e-mail may contain information that is confidential, privileged or otherwise protected from disclosure. If you are not an intended recipient of this e-mail, do not duplicate or redistribute it by any means. Please delete it and any attachments and notify the sender that you have received it in error. Unintended recipients are prohibited from taking action on the basis of information in this e-mail.E-mail messages may contain computer viruses or other defects, may not be accurately replicated on other systems, or may be intercepted, deleted or interfered with without the knowledge of the sender or the intended recipient. If you are not comfortable with the risks associated with e-mail messages, you may decide not to use e-mail to communicate with IPC. IPC reserves the right, to the extent and under circumstances permitted by applicable law, to retain, monitor and intercept e-mail messages to and from its systems.
Tomcat 5.5.16 Bug? messes up when a class has the same name as a package
Hi, I just updated to Tomcat 5.5.16 about 2 days after it was released. Yesterday I walked into what seems to be a bug. I'm not sure whether Tomcat 5.5.15 had this problem as well. I am sure, however, that Tomcat 4.0.6 did *not* have this problem. I've got the following class/package structure: 1: nl.hhv.merlin.gui.editor.EditButtons 2: nl.hhv.merlin.gui.Editor 3: nl.hhv.merlin.gui.editor2.EditButtons Note that packagename of the first class is equal to the fully qualified name of the second class (except for caps/nocaps). This should be no problem right?!? At least it never was until now. Now I have a JSP that simply does: <% nl.hhv.merlin.gui.editor.EditButtons buttons = null; %> Eclipse has no problems with this JSP, and happily accepts it, why shouldn't it? Looks fine to me to :-) But Tomcat 5.5.16 gives me the following error: Generated servlet error: nl.hhv.merlin.gui.editor cannot be resolved to a type When I change my JSP to: <% nl.hhv.merlin.gui.editor2.EditButtons buttons = null; %> Tomcat compiles the JSP without any problems. Note that the 2nd EditButtons class is an EXACT copy of the first. All three classes are zipped into the same jar, so it's not a classpath issue. Any thoughts on this? Regards, Paul Hamer management & development [EMAIL PROTECTED] toHAVE websolutions www.tohave.nl [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5.16 Bug? messes up when a class has the same name as a package
Hi again, Just checked: the same problem occurs with Tomcat 5.5.15. Regards, Paul Hamer management & development [EMAIL PROTECTED] toHAVE websolutions www.tohave.nl [EMAIL PROTECTED] -Original Message- From: Paul Hamer [mailto:[EMAIL PROTECTED] Sent: Thursday, 23 March 2006 13:59 To: users@tomcat.apache.org Subject: Tomcat 5.5.16 Bug? messes up when a class has the same name as a package Hi, I just updated to Tomcat 5.5.16 about 2 days after it was released. Yesterday I walked into what seems to be a bug. I'm not sure whether Tomcat 5.5.15 had this problem as well. I am sure, however, that Tomcat 4.0.6 did *not* have this problem. I've got the following class/package structure: 1: nl.hhv.merlin.gui.editor.EditButtons 2: nl.hhv.merlin.gui.Editor 3: nl.hhv.merlin.gui.editor2.EditButtons Note that packagename of the first class is equal to the fully qualified name of the second class (except for caps/nocaps). This should be no problem right?!? At least it never was until now. Now I have a JSP that simply does: <% nl.hhv.merlin.gui.editor.EditButtons buttons = null; %> Eclipse has no problems with this JSP, and happily accepts it, why shouldn't it? Looks fine to me to :-) But Tomcat 5.5.16 gives me the following error: Generated servlet error: nl.hhv.merlin.gui.editor cannot be resolved to a type When I change my JSP to: <% nl.hhv.merlin.gui.editor2.EditButtons buttons = null; %> Tomcat compiles the JSP without any problems. Note that the 2nd EditButtons class is an EXACT copy of the first. All three classes are zipped into the same jar, so it's not a classpath issue. Any thoughts on this? Regards, Paul Hamer management & development [EMAIL PROTECTED] toHAVE websolutions www.tohave.nl [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: Tomcat 5.5.16 Bug? messes up when a class has the same name as a package
Hi Allistair, You're missing one vital part :-) You've got only 1 class: com.qas.Qas The problem should occur when you add a second class called: com.Qas Now try com.qas.Qas qas = new com.qas.Qas(); in your JSP again. Regards, Paul Hamer management & development [EMAIL PROTECTED] toHAVE websolutions www.tohave.nl [EMAIL PROTECTED] -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Thursday, 23 March 2006 14:52 To: Tomcat Users List Subject: RE: Tomcat 5.5.16 Bug? messes up when a class has the same name as a package I cannot reproduce this issue in 5.5.16 I created a class qas at com.qas Resulting in a fully qualified class name of com.qas.qas Which in a JSP I instantiated with com.qas.qas qas = new com.qas.qas(); No issue. I then refactored to com.qas.Qas And re-tested again without issue. Perhaps the issue exibits itself when the classes are packed into a JAR. How did you create your JAR? Allistair. -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: 23 March 2006 13:29 To: Tomcat Users List Subject: RE: Tomcat 5.5.16 Bug? messes up when a class has the same name as a package Tomcat is just adhering to the Sun Java specification naming conventions. Packages should be lowercase. If Eclipse allows it, it's being "nice" to you in the same way that IE is "nice" about rendering invalid HTML. It's better Tomcat forces you to correct your bad naming conventions than encouraging it. Cheers, Allistair. -Original Message- From: Paul Hamer [mailto:[EMAIL PROTECTED] Sent: 23 March 2006 13:24 To: 'Tomcat Users List' Subject: RE: Tomcat 5.5.16 Bug? messes up when a class has the same name as a package Hi again, Just checked: the same problem occurs with Tomcat 5.5.15. Regards, Paul Hamer management & development [EMAIL PROTECTED] toHAVE websolutions www.tohave.nl [EMAIL PROTECTED] -Original Message- From: Paul Hamer [mailto:[EMAIL PROTECTED] Sent: Thursday, 23 March 2006 13:59 To: users@tomcat.apache.org Subject: Tomcat 5.5.16 Bug? messes up when a class has the same name as a package Hi, I just updated to Tomcat 5.5.16 about 2 days after it was released. Yesterday I walked into what seems to be a bug. I'm not sure whether Tomcat 5.5.15 had this problem as well. I am sure, however, that Tomcat 4.0.6 did *not* have this problem. I've got the following class/package structure: 1: nl.hhv.merlin.gui.editor.EditButtons 2: nl.hhv.merlin.gui.Editor 3: nl.hhv.merlin.gui.editor2.EditButtons Note that packagename of the first class is equal to the fully qualified name of the second class (except for caps/nocaps). This should be no problem right?!? At least it never was until now. Now I have a JSP that simply does: <% nl.hhv.merlin.gui.editor.EditButtons buttons = null; %> Eclipse has no problems with this JSP, and happily accepts it, why shouldn't it? Looks fine to me to :-) But Tomcat 5.5.16 gives me the following error: Generated servlet error: nl.hhv.merlin.gui.editor cannot be resolved to a type When I change my JSP to: <% nl.hhv.merlin.gui.editor2.EditButtons buttons = null; %> Tomcat compiles the JSP without any problems. Note that the 2nd EditButtons class is an EXACT copy of the first. All three classes are zipped into the same jar, so it's not a classpath issue. Any thoughts on this? Regards, Paul Hamer management & development [EMAIL PROTECTED] toHAVE websolutions www.tohave.nl [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] --- QAS Ltd. Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- Disclaimer: The information contained within this e-mail is confidential and may be privileged. This email is intended solely for the named recipient only; if you are not authorised you must not disclose, copy, distribute, or retain this message or any part of it. If you have received this message in error please contact the sender at once so that we may take the appropriate action and avoid troubling you further. Any views expressed in this message are those of the individual sender. QAS Limited has the right lawfully to record, monitor and inspect messages between its employees and any third party. Your messages shall be subject to such lawful supervision as QAS Limited deems to be necessary in order to protect its information, its interests and its reputation. Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS Limited cannot guarantee tha
RE: Tomcat 5.5.16 Bug? messes up when a class has the same name as a package
Hi Shankar and others, I've filed it in Bugzilla... it has become Bug 39093. Thanx for your input! Regards, Paul Hamer management & development [EMAIL PROTECTED] toHAVE websolutions www.tohave.nl [EMAIL PROTECTED] -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Shankar Unni Sent: Thursday, 23 March 2006 23:49 To: users@tomcat.apache.org Subject: Re: Tomcat 5.5.16 Bug? messes up when a class has the same name as a package Paul Hamer wrote: > Just checked: the same problem occurs with Tomcat 5.5.15. Definitely smells like a bug. Can you package a small *self-contained* example (preferably a fully self-contained webapp example with such a minimal set of files) and post a bug in ASF Bugzilla? That's http://issues.apache.org/bugzilla . - 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 5.5.16 Bug? messes up when a class has the same name as a package
Hi Allistair, I've tried your example too, and it indeed works!?!? I've filed a bug in the ASF bugzilla providing a test-case, it's bug 39093. Tanx for your time! Regards, Paul Hamer management & development [EMAIL PROTECTED] toHAVE websolutions www.tohave.nl [EMAIL PROTECTED] -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Thursday, 23 March 2006 15:50 To: Tomcat Users List Subject: RE: Tomcat 5.5.16 Bug? messes up when a class has the same name as a package Except it doesn't :) It works for me. <% com.Qas qas1 = new com.Qas(); com.qas.Qas qas2 = new com.qas.Qas(); out.println(qas1.test()); out.println(qas2.test()); %> I think it's your JAR. Rename your JAR to .ZIP and examine how its packaged the classes. Allistair. -----Original Message- From: Paul Hamer [mailto:[EMAIL PROTECTED] Sent: 23 March 2006 14:43 To: 'Tomcat Users List' Subject: RE: Tomcat 5.5.16 Bug? messes up when a class has the same name as a package Hi Allistair, You're missing one vital part :-) You've got only 1 class: com.qas.Qas The problem should occur when you add a second class called: com.Qas Now try com.qas.Qas qas = new com.qas.Qas(); in your JSP again. Regards, Paul Hamer management & development [EMAIL PROTECTED] toHAVE websolutions www.tohave.nl [EMAIL PROTECTED] -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Thursday, 23 March 2006 14:52 To: Tomcat Users List Subject: RE: Tomcat 5.5.16 Bug? messes up when a class has the same name as a package I cannot reproduce this issue in 5.5.16 I created a class qas at com.qas Resulting in a fully qualified class name of com.qas.qas Which in a JSP I instantiated with com.qas.qas qas = new com.qas.qas(); No issue. I then refactored to com.qas.Qas And re-tested again without issue. Perhaps the issue exibits itself when the classes are packed into a JAR. How did you create your JAR? Allistair. -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: 23 March 2006 13:29 To: Tomcat Users List Subject: RE: Tomcat 5.5.16 Bug? messes up when a class has the same name as a package Tomcat is just adhering to the Sun Java specification naming conventions. Packages should be lowercase. If Eclipse allows it, it's being "nice" to you in the same way that IE is "nice" about rendering invalid HTML. It's better Tomcat forces you to correct your bad naming conventions than encouraging it. Cheers, Allistair. -Original Message- From: Paul Hamer [mailto:[EMAIL PROTECTED] Sent: 23 March 2006 13:24 To: 'Tomcat Users List' Subject: RE: Tomcat 5.5.16 Bug? messes up when a class has the same name as a package Hi again, Just checked: the same problem occurs with Tomcat 5.5.15. Regards, Paul Hamer management & development [EMAIL PROTECTED] toHAVE websolutions www.tohave.nl [EMAIL PROTECTED] -Original Message- From: Paul Hamer [mailto:[EMAIL PROTECTED] Sent: Thursday, 23 March 2006 13:59 To: users@tomcat.apache.org Subject: Tomcat 5.5.16 Bug? messes up when a class has the same name as a package Hi, I just updated to Tomcat 5.5.16 about 2 days after it was released. Yesterday I walked into what seems to be a bug. I'm not sure whether Tomcat 5.5.15 had this problem as well. I am sure, however, that Tomcat 4.0.6 did *not* have this problem. I've got the following class/package structure: 1: nl.hhv.merlin.gui.editor.EditButtons 2: nl.hhv.merlin.gui.Editor 3: nl.hhv.merlin.gui.editor2.EditButtons Note that packagename of the first class is equal to the fully qualified name of the second class (except for caps/nocaps). This should be no problem right?!? At least it never was until now. Now I have a JSP that simply does: <% nl.hhv.merlin.gui.editor.EditButtons buttons = null; %> Eclipse has no problems with this JSP, and happily accepts it, why shouldn't it? Looks fine to me to :-) But Tomcat 5.5.16 gives me the following error: Generated servlet error: nl.hhv.merlin.gui.editor cannot be resolved to a type When I change my JSP to: <% nl.hhv.merlin.gui.editor2.EditButtons buttons = null; %> Tomcat compiles the JSP without any problems. Note that the 2nd EditButtons class is an EXACT copy of the first. All three classes are zipped into the same jar, so it's not a classpath issue. Any thoughts on this? Regards, Paul Hamer management & development [EMAIL PROTECTED] toHAVE websolutions www.tohave.nl [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: Tomcat 5.5.16 Bug? messes up when a class has the same name as a package
Hi Allistair, The JAR looks fine to me. It was created using ant. I've tried using an exploded version, so with separate .class files, but that still doesn't work. The testcase I posted in ASF bugzilla works for other people, so something must be wrong on my side. I'm going to try to test this completely isolated from Eclipse, see if that changes anything... who knows, this might turn out to be an Eclipse issue :) I'll repost as soon as I have any new information, thanx for your help so far. Regards, Paul Hamer management & development [EMAIL PROTECTED] toHAVE websolutions www.tohave.nl [EMAIL PROTECTED] -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Friday, 24 March 2006 10:23 To: Tomcat Users List Subject: RE: Tomcat 5.5.16 Bug? messes up when a class has the same name as a package OK fair enough Paul. Did you get a chance to look into the JAR structure? How do you create your JAR? Have you tried your use case with exploded classes rather than a JAR? Allistair -Original Message- From: Paul Hamer [mailto:[EMAIL PROTECTED] Sent: 24 March 2006 09:03 To: 'Tomcat Users List' Subject: RE: Tomcat 5.5.16 Bug? messes up when a class has the same name as a package Hi Allistair, I've tried your example too, and it indeed works!?!? I've filed a bug in the ASF bugzilla providing a test-case, it's bug 39093. Tanx for your time! Regards, Paul Hamer management & development [EMAIL PROTECTED] toHAVE websolutions www.tohave.nl [EMAIL PROTECTED] -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Thursday, 23 March 2006 15:50 To: Tomcat Users List Subject: RE: Tomcat 5.5.16 Bug? messes up when a class has the same name as a package Except it doesn't :) It works for me. <% com.Qas qas1 = new com.Qas(); com.qas.Qas qas2 = new com.qas.Qas(); out.println(qas1.test()); out.println(qas2.test()); %> I think it's your JAR. Rename your JAR to .ZIP and examine how its packaged the classes. Allistair. -Original Message- From: Paul Hamer [mailto:[EMAIL PROTECTED] Sent: 23 March 2006 14:43 To: 'Tomcat Users List' Subject: RE: Tomcat 5.5.16 Bug? messes up when a class has the same name as a package Hi Allistair, You're missing one vital part :-) You've got only 1 class: com.qas.Qas The problem should occur when you add a second class called: com.Qas Now try com.qas.Qas qas = new com.qas.Qas(); in your JSP again. Regards, Paul Hamer management & development [EMAIL PROTECTED] toHAVE websolutions www.tohave.nl [EMAIL PROTECTED] -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Thursday, 23 March 2006 14:52 To: Tomcat Users List Subject: RE: Tomcat 5.5.16 Bug? messes up when a class has the same name as a package I cannot reproduce this issue in 5.5.16 I created a class qas at com.qas Resulting in a fully qualified class name of com.qas.qas Which in a JSP I instantiated with com.qas.qas qas = new com.qas.qas(); No issue. I then refactored to com.qas.Qas And re-tested again without issue. Perhaps the issue exibits itself when the classes are packed into a JAR. How did you create your JAR? Allistair. -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: 23 March 2006 13:29 To: Tomcat Users List Subject: RE: Tomcat 5.5.16 Bug? messes up when a class has the same name as a package Tomcat is just adhering to the Sun Java specification naming conventions. Packages should be lowercase. If Eclipse allows it, it's being "nice" to you in the same way that IE is "nice" about rendering invalid HTML. It's better Tomcat forces you to correct your bad naming conventions than encouraging it. Cheers, Allistair. -Original Message- From: Paul Hamer [mailto:[EMAIL PROTECTED] Sent: 23 March 2006 13:24 To: 'Tomcat Users List' Subject: RE: Tomcat 5.5.16 Bug? messes up when a class has the same name as a package Hi again, Just checked: the same problem occurs with Tomcat 5.5.15. Regards, Paul Hamer management & development [EMAIL PROTECTED] toHAVE websolutions www.tohave.nl [EMAIL PROTECTED] -Original Message- From: Paul Hamer [mailto:[EMAIL PROTECTED] Sent: Thursday, 23 March 2006 13:59 To: users@tomcat.apache.org Subject: Tomcat 5.5.16 Bug? messes up when a class has the same name as a package Hi, I just updated to Tomcat 5.5.16 about 2 days after it was released. Yesterday I walked into what seems to be a bug. I'm not sure whether Tomcat 5.5.15 had this problem as well. I am sure, however, that Tomcat 4.0.6 did *not* have this problem. I've got the following class/package structure: 1: nl.hhv.merlin.gui.editor.EditButtons 2: nl.hhv.merlin.gui.Editor 3: nl.hhv.merlin.gui.editor2.EditButtons Note that packagename of the first class is