Installing Apache Tomcat 5.5.26 on Windows 2003 Enterprise x64
We are looking to install the most recent, stable release of Apache Tomcat on the said platform (so we choose Apache 5.5.26). What JVM requirements are there? Can we install JRE 1.6 or do we need to use JRE 1.5? Thanks, Tony Fountain Manager, Database Administration Benefit Concepts, Inc. (419) 244-9936 x9010 (office) (419) 249-7221 (fax) - 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: Tomcat and Redirects
Good point regarding the compatibility kit, that completely slipped my mind :). Thanks, Tony -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Friday, November 09, 2007 2:05 PM To: Tomcat Users List Subject: RE: Tomcat and Redirects From: Tony Fountain [mailto:[EMAIL PROTECTED] Subject: RE: Tomcat and Redirects Just to clarify, you can run Java programs compiled in 1.4, but the JVM installed on the machine running the app should be 1.5 or greater. That's not true either. All you need to run Tomcat 5.5 on a 1.4 JVM is the small compatibility kit available on the Tomcat download page. Tomcat 5.5 works perfectly well on JRE 1.4. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.paetec.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]
RE: Tomcat and Redirects
Just to clarify, you can run Java programs compiled in 1.4, but the JVM installed on the machine running the app should be 1.5 or greater. I'm doing that now with a commercial app we purchased (Apache Tomcat 5.5.23, JVM 1.5.0_12-b04 but the application itself is compiled under Java 1.4 and runs just fine. Thanks, Tony Fountain Manager, Database Administration Benefit Concepts, Inc. (419) 244-9936 x9010 (office) (419) 249-7221 (fax) -Original Message- From: Michael [mailto:[EMAIL PROTECTED] Sent: Friday, November 09, 2007 1:45 PM To: Tomcat Users List Subject: Re: Tomcat and Redirects Dwebb wrote: We are running Tomcat 5.5.11, Java 1.4.2_04-b05 on Linux 2.6.9-34.ELsmp Hi Danny, you shouldn't run tomcat 5.5.x with JAva 1.4. It's designed to work with Java 5 and up. bye -- NO OOXML - Say NO To Microsoft Office broken standard http://www.noooxml.org - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.paetec.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]
RE: Class loading issue
Mark, This sounds identical to my issue... Thanks for pointing me in that direction. Now I think I'm going to investigate on how to make the TC parser load first and avoid this altogether. Thanks, Tony -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Friday, October 26, 2007 7:40 PM To: Tomcat Users List Subject: Re: Class loading issue Tony Fountain wrote: Thanks for the response. However, that does not clarify for me why it only happens when I attempt to set the load-on-startup element in the webapps web.xml file but if I do not autoload the class, it works just fine. It might be related to http://issues.apache.org/bugzilla/show_bug.cgi?id=29936 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] This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.paetec.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]
RE: Class loading issue
Sorry, I should not that the error generated was something about DocumentBuilderFactoryImpl is not being loaded properly. This is a class that is accessed as a part of this product. Thanks, Tony -Original Message- From: Tony Fountain [mailto:[EMAIL PROTECTED] Sent: Friday, October 26, 2007 9:43 AM To: Tomcat Users List Subject: Class loading issue Windows 2003 Server Apache Tomcat 5.5.23 (running as Windows service) JVM 1.5.0_12b-04 (Sun) In an attempt to have a specific web app load when Apache starts, I added the following element to the \WEB-INF\web.xml file for the appropriate servlet - load-on-startup1/load-on-startup. This works, but when the webapp loads, one of the classes it requires generates an error the first time the webapp is accessed via the browser. The class is contained in a JAR that resides in the \WEB-INF\lib folder. This webapp is not written by us, rather it's a product we purchased. At the suggestion of the vendor I moved the JAR file to the \Tomcat\common\lib folder and everything now works just fine. I've reviewed the documentation on class loading in Tomcat 5.5 but this still makes no sense to me in terms of why this happens and why moving it fixed it. According to this documentation, the \WEB-INF\lib solution should work just fine. Any thoughts? Note that if I do not attempt to load on startup then everything works fine (just takes several seconds for the webapp to load upon the initial access). Thanks, Tony - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.paetec.com. This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.paetec.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]
RE: Help with Tomcat IIS
I do not agree with the statement about it being a sad tone. 95% of our shop is .NET / IIS / MSSQL, however we are intergrating another product into our applications that is written in Java and requires a J2EE compliant application server to run, thus here I am :). I understand the thoughts and practices of streamlining the technologies in your shop but being too strict about it also limits your options. There is valid consideration that needs to be made to the best tool for the job as well. We spent about 6 months evaluating a variety of tools and in this case, the ones that were .NET based fell very short of the product we ended up choosing. /soapbox Tony -Original Message- From: myrealbruno [mailto:[EMAIL PROTECTED] Sent: Friday, October 26, 2007 6:23 AM To: Tomcat Users List Subject: Re: Help with Tomcat IIS Hi, I think the mailing list archives are full of people with IIS - or Apache - fronting Tomcat. There is a very good article that explains the technical reasons http://people.apache.org/~mturk/docs/article/ftwai.html Also, there might be cases where the reasons are political, or when the environment is very heterogenous, or combinations of the two. (The last sentence should be read with a sad tone) Hope it helps, b. - Original Message - From: Jacob Rhoden [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, October 25, 2007 12:38 AM Subject: Re: Help with Tomcat IIS Wow, this is the first time I have heard of someone wanting to use Tomcat with IIS. Most IIS people would be using .NET. (I am interested to hear from people if its possible and why you would do it) Is there a speciffic reason you need to connect it to IIS? Did you know that tomcat can be used without Apache or IIS? Simply edit the server.xml file so that it listens on port 80 instead of port 8080. This makes configuration much easier. However I understand if you do have a specific reason to use IIS. Best Regards, Jacob Demetris Zavorotnichenko wrote: I have been banging my head about this for a long time and haven't figured it out yet. I have a 64 Bit Machine with Windows Server 2003 (64 bit) What version of Tomcat should I install in order to be able to connect it to IIS 6 And What Jakata connector version should I use? Which would be compatible with all this. Please help me out on this. I have been through the tutorials a hundred times and I got confused since there are SO many Directories with different Jakata Connectors for different versions. Please if someone could write down this things (in short) - since I know the procedure of setting this up Please help me here. ---AV Spam Filtering by M+Guardian - Risk Free Email (TM)--- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.paetec.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]
RE: Suggestions for connection pooling
Everyone, thanks for the feedback and additional suggestions on clean coding :). I think I'm good to go. Thanks, Tony -Original Message- From: Len Popp [mailto:[EMAIL PROTECTED] Sent: Thursday, October 25, 2007 5:25 PM To: Tomcat Users List Subject: Re: Suggestions for connection pooling On 10/25/07, Tony Fountain [EMAIL PROTECTED] wrote: Now, my goal is to utilize connection pooling. Does (a) this implementation achieve that and (b) the close statement suffice to return the object to the pool and not actually close the connection? Or do I also need to set conn = null;? You don't need to set conn = null, but you *do* need to make sure that the connection is closed in all cases, even when an exception is thrown. So: Connection conn = ds.getConnection(); try { ...do something... } finally { conn.close(); } -- Len - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.paetec.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]
Class loading issue
Windows 2003 Server Apache Tomcat 5.5.23 (running as Windows service) JVM 1.5.0_12b-04 (Sun) In an attempt to have a specific web app load when Apache starts, I added the following element to the \WEB-INF\web.xml file for the appropriate servlet - load-on-startup1/load-on-startup. This works, but when the webapp loads, one of the classes it requires generates an error the first time the webapp is accessed via the browser. The class is contained in a JAR that resides in the \WEB-INF\lib folder. This webapp is not written by us, rather it's a product we purchased. At the suggestion of the vendor I moved the JAR file to the \Tomcat\common\lib folder and everything now works just fine. I've reviewed the documentation on class loading in Tomcat 5.5 but this still makes no sense to me in terms of why this happens and why moving it fixed it. According to this documentation, the \WEB-INF\lib solution should work just fine. Any thoughts? Note that if I do not attempt to load on startup then everything works fine (just takes several seconds for the webapp to load upon the initial access). Thanks, Tony - 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: Class loading issue
The exact error is this: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) Caused by: javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source) at org.apache.commons.modeler.util.DomUtil.readXml(DomUtil.java:241) at org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.execute(Mb eansDescriptorsDOMSource.java:87) at org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.loadDescri ptors(MbeansDescriptorsDOMSource.java:77) at org.apache.commons.modeler.Registry.load(Registry.java:791) at org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:900) at org.apache.commons.modeler.Registry.loadMetadata(Registry.java:267) at org.apache.catalina.storeconfig.StoreConfigLifecycleListener.createMBean (StoreConfigLifecycleListener.java:93) at org.apache.catalina.storeconfig.StoreConfigLifecycleListener.lifecycleEv ent(StoreConfigLifecycleListener.java:58) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu pport.java:120) at org.apache.catalina.core.StandardServer.start(StandardServer.java:705) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) ... 6 more That's the entire contents of the stdout log file. I don't mind moving the vendor specific jar files to the \common\lib folder, but I would like to make sense of why it happens as well. Note that implementing this product is my first exposure in 15 years of programming to Java / Apache technologies :). Not that they (.NET / IIS vs Java / Apache) are too dissimilar, rather it's the implementation topics like this I struggle with at the moment. Thanks, Tony -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Friday, October 26, 2007 9:51 AM To: Tomcat Users List Subject: RE: Class loading issue From: Tony Fountain [mailto:[EMAIL PROTECTED] Subject: Class loading issue but when the webapp loads, one of the classes it requires generates an error the first time the webapp is accessed via the browser. What error? Do you have an associated stack trace? Is there anything in the logs? Note that common/lib is visible not only to the webapp, but also to the container classes. Just speculating, but if the classes in question are used somehow for something like container-managed connection pooling, they must be visible to Tomcat as well as the webapp. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.paetec.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]
RE: Class loading issue
Per request, I actually don't have a xercesImpl.jar file that is being used (there is one but it's not being ran). However, I do have a file named a_xercesImpl.jar that is being used by the webapp (located in webapps\webapp\WEB-INF\lib. I did verify that the a_xercesImpl.jar file contains the class DocumentBuilderFactoryImpl. Now for some history that might help explain some of this. The product is written in Java 1.4 and shipped with an older version of Tomcat (5.0 I think - it uses procrun 1.0 if that's any help). Since the product is supposed to support running under any J2EE compliant application server, we opted to go with the more stable release of Apache Tomcat 5.5.23 and JVM 1.5. And all we did to get the product to run in Apache Tomcat 5.5.23 is moved the webapp folder from the initial installation folder of Tomcat 5.0 to the webapp folder of Tomcat 5.5. That included any of the JAR files in that hiearchy. Thanks, Tony -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Friday, October 27, 2000 11:19 AM To: Tony Fountain Subject: Re: Class loading issue Please post to group where (in tomcat) is your xercesImpl.jar located? Thx/ M-- - Original Message - From: Tony Fountain [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Friday, October 26, 2007 11:11 AM Subject: RE: Class loading issue The exact error is this: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) Caused by: javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source) at org.apache.commons.modeler.util.DomUtil.readXml(DomUtil.java:241) at org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.execute(Mb eansDescriptorsDOMSource.java:87) at org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.loadDescri ptors(MbeansDescriptorsDOMSource.java:77) at org.apache.commons.modeler.Registry.load(Registry.java:791) at org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:900) at org.apache.commons.modeler.Registry.loadMetadata(Registry.java:267) at org.apache.catalina.storeconfig.StoreConfigLifecycleListener.createMBean (StoreConfigLifecycleListener.java:93) at org.apache.catalina.storeconfig.StoreConfigLifecycleListener.lifecycleEv ent(StoreConfigLifecycleListener.java:58) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu pport.java:120) at org.apache.catalina.core.StandardServer.start(StandardServer.java:705) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) .. 6 more That's the entire contents of the stdout log file. I don't mind moving the vendor specific jar files to the \common\lib folder, but I would like to make sense of why it happens as well. Note that implementing this product is my first exposure in 15 years of programming to Java / Apache technologies :). Not that they (.NET / IIS vs Java / Apache) are too dissimilar, rather it's the implementation topics like this I struggle with at the moment. Thanks, Tony -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Friday, October 26, 2007 9:51 AM To: Tomcat Users List Subject: RE: Class loading issue From: Tony Fountain [mailto:[EMAIL PROTECTED] Subject: Class loading issue but when the webapp loads, one of the classes it requires generates an error the first time the webapp is accessed via the browser. What error? Do you have an associated stack trace? Is there anything in the logs? Note that common/lib is visible not only to the webapp, but also to the container classes. Just speculating, but if the classes in question are used somehow for something like container-managed connection pooling, they must be visible to Tomcat as well as the webapp. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock
RE: Class loading issue
Thanks for the response. However, that does not clarify for me why it only happens when I attempt to set the load-on-startup element in the webapps web.xml file but if I do not autoload the class, it works just fine. As far as the JAVA_OPTS go, I do not see where I have this set at all. I'm running Apache Tomcat 5.5.23 as a windows service. In the properties under Java, I am setting these options: -Dcatalina.home=C:\Apache\Tomcat -Dcatalina.base=C:\Apache\Tomcat -Djava.endorsed.dirs=C:\Apache\Tomcat\common\endorsed -Djava.io.tmpdir=C:\Apache\Tomcat\temp -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=C:\Apache\Tomcat\conf\logging.properties Thanks, Tony -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Friday, October 26, 2007 12:18 PM To: Tomcat Users List Subject: RE: Class loading issue From: Tony Fountain [mailto:[EMAIL PROTECTED] Subject: RE: Class loading issue Caused by: javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found It looks like you must have the system property javax.xml.parsers.DocumentBuilderFactory set to point to org.apache.xerces.jaxp.DocumentBuilderFactoryImpl (e.g., via JAVA_OPTS). This forces all XML scanning to go through that class, including any done by Tomcat itself. Consequently, the above class must be made visible to the Tomcat internal classes, so putting the jar into common/lib is required. I'm not sure if there's any means of specifying a webapp-local XML parser rather than a global one; others may have more experience here. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.paetec.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]
RE: Class loading issue
Chuck, There is nothing in the endorsed directory. It's the default installation of Apache Tomcat 5.5.23 (selected the FULL option). As far as the comment regarding the parser class... I'll admit, you totally lost me :). I don't see a META-INF folder anywhere in the installation path. Thanks, Tony -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Friday, October 26, 2007 1:46 PM To: Tomcat Users List Subject: RE: Class loading issue From: Tony Fountain [mailto:[EMAIL PROTECTED] Subject: RE: Class loading issue However, that does not clarify for me why it only happens when I attempt to set the load-on-startup element in the webapps web.xml file Don't have a real answer for that, at least not yet (but see below for speculation). Might need a classloader trace to figure that out, and it's probably not worth the trouble. As far as the JAVA_OPTS go, I do not see where I have this set at all. That's fine; JAVA_OPTS isn't used for the Windows service. -Djava.endorsed.dirs=C:\Apache\Tomcat\common\endorsed Is there anything in the above directory? If so, it may be involved. The parser class name can also be specified in a .jar via a service provider configuration file: META-INF/services/javax.xml.parsers.DocumentBuilderFactory If such a jar file is seen before or during the call to DocumentBuilderFactory.newInstance(), it would appear to apply globally. Not sure what happens if the jar file is encountered after the newInstance() call, or if multiple jar files have conflicting settings. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.paetec.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]
Suggestions for connection pooling
Platform: Apache Tomcat 5.5.23 running as windows service JVM 1.5.0_12-b04 (Sun) Windows 2003 Server We are running software on this platform that we purchased and integrated into our product. We replaced the default authentication class of the product with our own implementation. This resulted in a Java class that performs many database calls to SQL Server 2005. This all works and I'm in a mode of optimizing it and found that I'm creating a database connection for every call (sometimes a single action sends many requests). I've been researching options for implementing connection pooling but I have found many variations and no really solid examples. I'm pretty new to Java / Tomcat so I'm in search of suggestions and recommendations from more experienced individuals on the following topics: * How configure a JNDI resource (versus hardcoding the connection in the class - which is what I do now). I've tried this with some examples and have been unable to get it to work. * How can I implement connection pooling? Do I need to roll my own solution or is there a magical way to tap into Tomcat and allow it to manage the connection pool (latter is preferred). Config file and Java code examples would be very helpful as well. Also, keep in mind that even though the JVM is at 1.5, the product is compiled at 1.4 if that makes a difference. Thanks! Tony
RE: Help with Tomcat IIS
Why don't you run Apache Tomcat and IIS on the same box? I do here (our IIS pages written in ASP.NET serve content from the Apache Tomcat app via frames). I'm using 5.5.23 and the default windows installation has it listening on port 8080 for non SSL requests and 8443 for SSL requests. Tony -Original Message- From: Demetris Zavorotnichenko [mailto:[EMAIL PROTECTED] Sent: Thursday, October 25, 2007 2:20 AM To: 'Tomcat Users List'; [EMAIL PROTECTED] Subject: RE: Help with Tomcat IIS All this info is great but you guys haven't answered my question yet. Please help me out here. -Original Message- From: Roger Parkinson [mailto:[EMAIL PROTECTED] Sent: Thursday, October 25, 2007 2:14 AM To: Tomcat Users List Subject: Re: Help with Tomcat IIS We do it because the IIS is already active on the existing server and it is running a bunch of other stuff we don't want to stop (eg MS Exchange). So we cannot have tomcat take over handling port 80 requests. It works fine, though. Roger Jacob Rhoden wrote: Propes, Barry L wrote: there's lots of people who combine the two -- I currently am, because our UNIX support group has not made the environment compatible for or with Tomcat! Sounds like you and I have the same employer (: But seriously, I am trying to work out the pro's and cons of standalone mode. I am wondering why you put IIS in front of tomcat? Does IIS provide other services apart from tomcat, or is there a specific reason? Best Regards, Jacob - 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] This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.paetec.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]
RE: Suggestions for connection pooling
Thanks for the reference. This looks like what I need. Now to go read up a bit more to grasp the concept. Tony -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 26, 2000 2:30 PM To: Tony Fountain Subject: Re: Suggestions for connection pooling DBCP http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.h tml#Database%20Connection%20Pool%20(DBCP)%20Configurations Plenty of good examples on JNDI Configurations M-- - Original Message - Wrom: XRQBGJSNBOHMKHJYFMYXOEAIJJPHSCRTNHGSWZIDREXCAXZ To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, October 25, 2007 1:19 PM Subject: Suggestions for connection pooling Platform: Apache Tomcat 5.5.23 running as windows service JVM 1.5.0_12-b04 (Sun) Windows 2003 Server We are running software on this platform that we purchased and integrated into our product. We replaced the default authentication class of the product with our own implementation. This resulted in a Java class that performs many database calls to SQL Server 2005. This all works and I'm in a mode of optimizing it and found that I'm creating a database connection for every call (sometimes a single action sends many requests). I've been researching options for implementing connection pooling but I have found many variations and no really solid examples. I'm pretty new to Java / Tomcat so I'm in search of suggestions and recommendations from more experienced individuals on the following topics: * How configure a JNDI resource (versus hardcoding the connection in the class - which is what I do now). I've tried this with some examples and have been unable to get it to work. * How can I implement connection pooling? Do I need to roll my own solution or is there a magical way to tap into Tomcat and allow it to manage the connection pool (latter is preferred). Config file and Java code examples would be very helpful as well. Also, keep in mind that even though the JVM is at 1.5, the product is compiled at 1.4 if that makes a difference. Thanks! Tony This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.paetec.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]
RE: Suggestions for connection pooling
Ok - I think I have my answer but I'm going to pass it by the community to verify. First, my setup is: Apache Tomcat 5.5.23 running as windows service JVM 1.5.0_12-b04 (Sun) Windows 2003 Server Apache is installed in C:\Apache\Tomcat. The location of the XML files is C:\Apache\Tomcat\conf\context.xml and C:\Apache\Tomcat\webapps\Reports\WEB-INF\web.xml. I added the following to the context.xml: Resource name=jdbc/myDatabase auth=Container type=javax.sql.DataSource driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver initialSize=5 maxActive=-1 maxIdle=-1 minIdle=0 maxWait=1 url=jdbc:sqlserver://servername\instance;integratedSecurity=true;da tabaseName=ReportingSupport username= password= validationQuery=SELECT 1 testOnBorrow=true testOnReturn=true testWhileIdle=true timeBetweenEvictionRunsMillis=6 numTestsPerEvictionRun=5 minEvictableIdleTimeMillis=60 poolPreparedStatements=true maxOpenPreparedStatements=0 removeAbandoned=true removeAbandonedTimeout=300 logAbandoned=true / I added the following to the web.xml (within the web-app tag): resource-ref descriptionResource for connecting to the SQL Server/description res-ref-namejdbc/myDatabase/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref In my code I simply do: Context initCtx = new InitialContext(); Context envCtx = (Context)initCtx.lookup(java:comp/env); DataSource ds = (DataSource)envCtx.lookup(jdbc/myDatabase); Connection conn = ds.getConnection(); ...do something... conn.close(); Now, my goal is to utilize connection pooling. Does (a) this implementation achieve that and (b) the close statement suffice to return the object to the pool and not actually close the connection? Or do I also need to set conn = null;? Thanks, Tony -Original Message- From: Tony Fountain [mailto:[EMAIL PROTECTED] Sent: Thursday, October 25, 2007 2:39 PM To: Tomcat Users List Subject: RE: Suggestions for connection pooling Thanks for the reference. This looks like what I need. Now to go read up a bit more to grasp the concept. Tony -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 26, 2000 2:30 PM To: Tony Fountain Subject: Re: Suggestions for connection pooling DBCP http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.h tml#Database%20Connection%20Pool%20(DBCP)%20Configurations Plenty of good examples on JNDI Configurations M-- - Original Message - Wrom: XRQBGJSNBOHMKHJYFMYXOEAIJJPHSCRTNHGSWZIDREXCAXZ To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, October 25, 2007 1:19 PM Subject: Suggestions for connection pooling Platform: Apache Tomcat 5.5.23 running as windows service JVM 1.5.0_12-b04 (Sun) Windows 2003 Server We are running software on this platform that we purchased and integrated into our product. We replaced the default authentication class of the product with our own implementation. This resulted in a Java class that performs many database calls to SQL Server 2005. This all works and I'm in a mode of optimizing it and found that I'm creating a database connection for every call (sometimes a single action sends many requests). I've been researching options for implementing connection pooling but I have found many variations and no really solid examples. I'm pretty new to Java / Tomcat so I'm in search of suggestions and recommendations from more experienced individuals on the following topics: * How configure a JNDI resource (versus hardcoding the connection in the class - which is what I do now). I've tried this with some examples and have been unable to get it to work. * How can I implement connection pooling? Do I need to roll my own solution or is there a magical way to tap into Tomcat and allow it to manage the connection pool (latter is preferred). Config file and Java code examples would be very helpful as well. Also, keep in mind that even though the JVM is at 1.5, the product is compiled at 1.4 if that makes a difference. Thanks! Tony This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.paetec.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL
Monitoring Apache Tomcat
Hi, Apache Tomcat/5.5.23 (runs as windows service using C:\Apache\Tomcat\bin\tomcat5.exe //RS//Tomcat5) JVM 1.5.0_12-b04 Windows 2003 Standard (x86) We are experiencing an issue where every night our Apache Tomcat crashes. I've reviewed all the logs and can not find anything to find out why. The only trace I have is in the Windows event log this message - The Apache Tomcat service terminated unexpectedly. It has done this (n) time(s). (where (n) has been any random number it seems - 2, 5, 10, etc). There is absolutely nothing in any of the Apache log files and there is only one web app and there is nothing in any of it's log files either. My question is, are there any recommendations for monitoring the health of the Apache service so when it goes down, we can see what was going on over time? Thanks, Tony
Apache Tomcat (5.5) configuration suggestions
Hi, Windows 2003 Server R2 SP2 Apache Tomcat/5.5.23 JVM 1.5.0_12-b04 We are using a reporting product written in Java 1.4 from another vendor that integrates into our web application via frames and URL requests. We have been noticing various performance stability related issues (i.e. slow performance, degraded performance, and stability of Apache). My first thought is I do not have Apache configured optimally to (a) run at an enterprise service level and (2) work with this webapp from the vendor optimally. I believe that (a) our web interface, (b) our network and (c) the 3rd party product are all ok. I do come from a non-Java background so some of this is rather new to me. Can anyone suggestion pointers or references that can discuss (a) the various configuration options for running Apache Tomcat as a windows service and (b) options for Apache Tomcat to run optimally with a specific webapp. Just as an FYI, the server this runs on is a HP ProLiant BL20p G4 server blade. Looking at this server and seeing the issues I stated above I really think I need to configure Apache differently since the machine can obviously handle it. Also, is there some sort of server type mode for Apache to run in that will allow me to make use of more than 1.5 GB of memory? Thanks, Tony Fountain Benefit Concepts, Inc. (419) 244-9936 x9010 (office) (419) 249-7221 (fax)
RE: Apache Tomcat (5.5) configuration suggestions
Peter, Thanks for the response. I have our network guy looking into that avenue for me. Just another question though, from the perspective of performance, will the x64 yield much better performance for this type of thing over x32? Obviously it will from a systems standpoint but is it evident from an end user perspective? Thanks, Tony Fountain Benefit Concepts, Inc. (419) 244-9936 x9010 (office) (419) 249-7221 (fax) -Original Message- From: Peter Crowther [mailto:[EMAIL PROTECTED] Sent: Thursday, October 04, 2007 11:14 AM To: Tomcat Users List Subject: RE: Apache Tomcat (5.5) configuration suggestions From: Tony Fountain [mailto:[EMAIL PROTECTED] is there some sort of server type mode for Apache to run in that will allow me to make use of more than 1.5 GB of memory? You'll need the 64-bit JVM - and a 64-bit OS! Other than that, 1.5G is about as large a contiguous heap as Java can allocate in the 32-bit Windows address space. Windows reserves the upper 2G for itself and its DLLs, and there are some other bits'n'pieces in the lower 2G that fragment it. If your 2k3 server is already 64-bit, a simple change of JVM will do the job. Otherwise, you have a reinstall on your hands. - 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] This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.paetec.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]
RE: Apache Tomcat (5.5) configuration suggestions
Peter, Would you happen to know of any good references that walks through how to trouble shoot Apache related performance issues? If I can zone in on the key issues I can obviously address them appropriately. Thanks, Tony Fountain Benefit Concepts, Inc. (419) 244-9936 x9010 (office) (419) 249-7221 (fax) -Original Message- From: Peter Crowther [mailto:[EMAIL PROTECTED] Sent: Thursday, October 04, 2007 11:53 AM To: Tomcat Users List Subject: RE: Apache Tomcat (5.5) configuration suggestions From: Tony Fountain [mailto:[EMAIL PROTECTED] from the perspective of performance, will the x64 yield much better performance for this type of thing over x32? Obviously it will from a systems standpoint but is it evident from an end user perspective? Depends entirely on your application and your system configuration. For most server applications, network bandwidth, disk latency and throughput and the amount of RAM available for caching are far more relevant than CPU grunt. Intel have done a superb job of branding the CPU as *the* key system component. It isn't - servers need to be balanced systems, and x86 vs x64 is only a small part of the overall balance. Bottom line: if you have an application that's too slow, a change in CPU architecture isn't going to save you :-). - 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] This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.paetec.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]
RE: New to Apache
Yes, I did do that - it was just a simple way to obtain the email address. I'll be careful not to do this again as I was unaware of this. Thanks, Tony Fountain Benefit Concepts, Inc. (419) 244-9936 x9010 (office) (419) 249-7221 (fax) -Original Message- From: Mark H. Wood,UL 0115A,+1 317 274 0749, [mailto:[EMAIL PROTECTED] On Behalf Of Mark H. Wood Sent: Tuesday, October 02, 2007 8:51 AM To: users@tomcat.apache.org Subject: Re: New to Apache On Mon, Oct 01, 2007 at 06:58:23PM -0400, Mark Thomas wrote: Tony Fountain wrote: Mark, I did not hijack a thread. I started this one myself. No you didn't. You hit reply to an old message deleted the content and changed the subject. Please don't do this. Possibly he's an innocent victim of today's over-helpful MUAs. If I'd never seen or been told about the Message-ID:, In-Reply-To:, and References: headers, I'd think that the above actions had wiped out all traces of the previous thread, and I would think I'm being efficient by letting the MUA copy the list address for me instead of typing it myself. Authors of gooey MUAs would do well to support listmail better by, for example, providing a button to send new message to the list that reflected this message, or enabling the association of a folder with an address and providing a button for send to this folder's associated address. -- Mark H. Wood, Lead System Programmer [EMAIL PROTECTED] Typically when a software vendor says that a product is intuitive he means the exact opposite. - 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: New to Apache
Mark, I did not hijack a thread. I started this one myself. Thanks, Tony Fountain Benefit Concepts, Inc. (419) 244-9936 x9010 (office) (419) 249-7221 (fax) -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Thursday, September 27, 2007 11:23 PM To: Tomcat Users List Subject: Re: New to Apache Please don't hi-jack threads. 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] This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.paetec.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]
New to Apache
Hi, I'm new to these technologies and hope one of you pros can point me in the correct location. We are using a product written in Java that integrates into our website. This product obviously needs to run under a J2EE compliant application server so we choose Apache Tomcat 5.5 with Java 1.5. However we are having a lot of issues with performance and are trying to diagnose these issues. We are running on a Windows 2003 Server and running Apache Tomcat as a Windows service. The two things I'd like to find out are (1) how do you measure the performance of Apache and (2) where can I find good documentation on the different options/parameters/etc on running an Apache server as a Windows service? Also, I ran across some statements before about server configurations/options? Where can I find information on that topic? Thanks, Tony - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
IIS redirect to Apache
Hi, Scenario: we purchased a product written in Java to integrate into our reporting tool. Our setup is such that our web application is written in .NET and hosted on a web farm using IIS (5 or 6 depending on the environment). The product we purchased runs under Apache Tomcat/5.5.23 using 1.5.0_12-b04. The product is integrated into our web portal using frames and sending URL requests to Apache. We are running into issues with javascript code from the product generating errors for what I suspect may be related to crossing domains (our web site and the Apache server). I figure I can resolve this by generating a proxy on the IIS server to handle the request to the Apache server. My question is does anyone have any pointers on how to setup this type of proxy? Thanks, Tony - 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: IIS redirect to Apache
Martin, To clarify our setup, our site receives the initial HTTP request and the application server in question is IIS and the site is written in ASP.NET. Some of the pages that will be served will include a frame that hosts pages from this product hosted by Tomcat on another server. The current configuration is such that the product invokes some javascript on the client and the javascript is generating errors preventing the pages from working properly. The vendor states that this is due to security issues with the javascript executing across domains and the way to fix this is to implement a proxy from IIS that redirects the request (I'm assuming server side but I'm not sure) to the Tomcat webapp. I'm looking to see if anyone else has any experience they could lend in creating a proxy from IIS that redirects a request to a Java webapp hosted by Tomcat on another physical server. My understanding is I will then be able to reference the URL and make it look like it's part of the domain running in IIS instead of formatting another URL in the form of http://servername:port/webapp/repository. Thanks, Tony Fountain Benefit Concepts, Inc. (419) 244-9936 x9010 (office) (419) 249-7221 (fax) -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 15, 2007 4:10 PM To: Tony Fountain Subject: Re: IIS redirect to Apache Kinda O/T here...Which system is front-ending..e.g. which box will be first to get the HTTP requests? M-- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Tony Fountain [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, August 15, 2007 1:39 PM Subject: IIS redirect to Apache Hi, Scenario: we purchased a product written in Java to integrate into our reporting tool. Our setup is such that our web application is written in .NET and hosted on a web farm using IIS (5 or 6 depending on the environment). The product we purchased runs under Apache Tomcat/5.5.23 using 1.5.0_12-b04. The product is integrated into our web portal using frames and sending URL requests to Apache. We are running into issues with javascript code from the product generating errors for what I suspect may be related to crossing domains (our web site and the Apache server). I figure I can resolve this by generating a proxy on the IIS server to handle the request to the Apache server. My question is does anyone have any pointers on how to setup this type of proxy? Thanks, Tony - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.paetec.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]
RE: IIS redirect to Apache
Rainer, Thanks for the information. I'll read up on the IIS ISAPI plugin and if I have any more questions, I'll post them. Thanks, Tony Fountain Benefit Concepts, Inc. (419) 244-9936 x9010 (office) (419) 249-7221 (fax) -Original Message- From: Rainer Jung [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 15, 2007 3:55 PM To: Tomcat Users List Subject: Re: IIS redirect to Apache Hi Tony, the Tomcat project has a sub project called Tomcat Connectors or simply JK. It produces web server plugins to connect the most important web servers directly to Tomcat via a special protocol named AJP. Tomcat has an incoming AJP connector built-in. The Tomcat connectors include Apache httpd modules as well as an IIS ISAPI plugin and a Netscape/Sun NSAPI plugin. So you would need to download http://tomcat.apache.org/download-connectors.cgi an appropriate binary of the IIS plugin, configure and include the plugin correctly for your IIS to establish a reverse proxy function for your IIS. The most recent version of the plugin is 1.2.25. The Tomcat connectors website http://tomcat.apache.org/connectors-doc/ contains documentation. The IIS plugin documentation might not be the best part of it, but in case you get stuck, you can post more specific questions to this list. I assume, that by Apache in your post you always meant Tomcat. If you meant Apache HTTPD web server, then I might have not completely understood your actual or planned setup. Regards, Rainer Tony Fountain wrote: Hi, Scenario: we purchased a product written in Java to integrate into our reporting tool. Our setup is such that our web application is written in .NET and hosted on a web farm using IIS (5 or 6 depending on the environment). The product we purchased runs under Apache Tomcat/5.5.23 using 1.5.0_12-b04. The product is integrated into our web portal using frames and sending URL requests to Apache. We are running into issues with javascript code from the product generating errors for what I suspect may be related to crossing domains (our web site and the Apache server). I figure I can resolve this by generating a proxy on the IIS server to handle the request to the Apache server. My question is does anyone have any pointers on how to setup this type of proxy? Thanks, Tony - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.paetec.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]
RE: Error starting Tomcat 5.5 as a Windows service
Daniel, Thanks for the suggestion. That did the trick. The Tomcat application is now running as a windows service and everything is working. Odd situation though since I always thought that environment variables were recognized immediately (except for previously opened command windows). Lesson learned :). Thanks, Tony Fountain Benefit Concepts, Inc. (419) 244-9936 x9010 -Original Message- From: Daniel Stephens [mailto:[EMAIL PROTECTED] Sent: Thursday, July 05, 2007 4:32 PM To: Tomcat Users List Subject: Re: Error starting Tomcat 5.5 as a Windows service Make sure you have CATALINA_HOME pointed to your tomcat instance. make sure your java home is correct.. It sounds like it can't find the java home.. You did boot after the install right? If you added that environment variable to the system section, you'll need to boot to pick it up or open a new cmd prompt to re-read the environment. On 7/5/07, Tony Fountain [EMAIL PROTECTED] wrote: Hi, I am attempting to install Tomcat 5.5.23 as a Windows service on a Windows 2003 Server box. The steps I went through are as follows * Installed the JDK 1.5 Update 12 * Manually added the environment variable JAVA_HOME to C:\Program Files\Java\jdk1.5.0_12 (as a system variable, not user level) * Ran the windows installer package and selected the full install option. At this point I expected to be able to test the service can start and serve requests using examples installed with the installation but I am unable to. Anytime I try to start the Windows service the following error is logged: [2007-07-05 15:53:54] [1276 prunsrv.c] [debug] Procrun log initialized [2007-07-05 15:53:54] [info] Running Service... [2007-07-05 15:53:54] [1098 prunsrv.c] [debug] Inside ServiceMain... [2007-07-05 15:53:54] [info] Starting service... [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[0] -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 5.5 [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[1] -Dcatalina.base=C:\Program Files\Apache Software Foundation\Tomcat 5.5 [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[2] -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\endorsed [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[3] -Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat 5.5\temp [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[4] -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[5] -Djava.util.logging.config.file=C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\logging.properties [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[6] -Djava.class.path=C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin\bootstrap.jar [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[7] vfprintf [2007-07-05 15:53:54] [info] Error occurred during initialization of VM [2007-07-05 15:53:54] [info] java/lang/NoClassDefFoundError [2007-07-05 15:53:54] [info] : java/lang/Object I'm assuming it's a class path issue but being new to the world of Java, I'm not sure what could be missing out of a basic installation. I have performed some Google searches and even searched through some of the archives but was unable to find anything specific to this situation. Any pointers or a push in the right direction would be greatly appreciated. FYI - Even at the Windows command prompt, if I type java -version I receive this error: Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object Same error, different cause so I'm not completely sure if this is even related to the Tomcat installation, rather possibly some odd situation that was encountered when the JDK was installed. Thanks, Tony This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.paetec.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]
Error starting Tomcat 5.5 as a Windows service
Hi, I am attempting to install Tomcat 5.5.23 as a Windows service on a Windows 2003 Server box. The steps I went through are as follows * Installed the JDK 1.5 Update 12 * Manually added the environment variable JAVA_HOME to C:\Program Files\Java\jdk1.5.0_12 (as a system variable, not user level) * Ran the windows installer package and selected the full install option. At this point I expected to be able to test the service can start and serve requests using examples installed with the installation but I am unable to. Anytime I try to start the Windows service the following error is logged: [2007-07-05 15:53:54] [1276 prunsrv.c] [debug] Procrun log initialized [2007-07-05 15:53:54] [info] Running Service... [2007-07-05 15:53:54] [1098 prunsrv.c] [debug] Inside ServiceMain... [2007-07-05 15:53:54] [info] Starting service... [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[0] -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 5.5 [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[1] -Dcatalina.base=C:\Program Files\Apache Software Foundation\Tomcat 5.5 [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[2] -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\endorsed [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[3] -Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat 5.5\temp [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[4] -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[5] -Djava.util.logging.config.file=C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\logging.properties [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[6] -Djava.class.path=C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin\bootstrap.jar [2007-07-05 15:53:54] [400 javajni.c] [debug] Jvm Option[7] vfprintf [2007-07-05 15:53:54] [info] Error occurred during initialization of VM [2007-07-05 15:53:54] [info] java/lang/NoClassDefFoundError [2007-07-05 15:53:54] [info] : java/lang/Object I'm assuming it's a class path issue but being new to the world of Java, I'm not sure what could be missing out of a basic installation. I have performed some Google searches and even searched through some of the archives but was unable to find anything specific to this situation. Any pointers or a push in the right direction would be greatly appreciated. FYI - Even at the Windows command prompt, if I type java -version I receive this error: Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object Same error, different cause so I'm not completely sure if this is even related to the Tomcat installation, rather possibly some odd situation that was encountered when the JDK was installed. Thanks, Tony