Image loading
Good Day all, I refer to any images in my web application by using /images/image name which has been working fine for weeks. I tried to refer to a new image that I wanted to use on a page and referred to it the same way and it did not load. I fully qualified the path name for the file and it loaded. What is the problem? Thanks in advance My grandfather once told me that there are two kinds of people: those who work and those who take the credit. He told me to try to be in the first group; there was less competition there. - Indira Gandhi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Image loading
nevermind problem solved -Original Message- From: Gregory, Carlton [mailto:[EMAIL PROTECTED] Sent: Friday, December 05, 2003 1:23 PM To: '[EMAIL PROTECTED]' Subject: Image loading Good Day all, I refer to any images in my web application by using /images/image name which has been working fine for weeks. I tried to refer to a new image that I wanted to use on a page and referred to it the same way and it did not load. I fully qualified the path name for the file and it loaded. What is the problem? Thanks in advance My grandfather once told me that there are two kinds of people: those who work and those who take the credit. He told me to try to be in the first group; there was less competition there. - Indira Gandhi - 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]
Adherence to DTD issue
I have altered a web.xml file in my \webapps\test\WEB-INF directory. Upon startup I get a parse error about the structure of the file. I opened the file in XML spy and it said it was an servlet tag unexpected child element. I then downloaded the DTD from sun and printed it out. I am adhering to the DTD from what it seems. ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; web-app servlet servlet-name Hello3 /servlet-name servlet-class Hello3 /servlet-class /servlet servlet-mapping servlet-name Hello3 /servlet-name url-pattern /test/Hello3 /url-pattern /servlet-mapping servlet --- IT GIVES THE ERROR AT THIS LINE servlet-name SurveyServlet /servlet-name servlet-class SurveyServlet /servlet-class /servlet servlet-mapping servlet-name SurveyServlet /servlet-name url-pattern /MedSurvey /url-pattern /servlet-mapping Any ideas? Need more info? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Adherence to DTD issue-RESOLVED
THANK YOU. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, July 17, 2003 1:50 PM To: Tomcat Users List Subject: RE: Adherence to DTD issue Howdy, Tomcat 4.x uses the Servlet Specification v2.3 DTD. You're using the 2.2 DTD. Switch to 2.3. Among the DTD differences is the fact all servlet declarations must come before any servlet-mapping declarations. You're violating this requirement. Yoav Shapira Millennium ChemInformatics -Original Message- From: Gregory, Carlton [mailto:[EMAIL PROTECTED] Sent: Thursday, July 17, 2003 1:43 PM To: '[EMAIL PROTECTED]' Subject: Adherence to DTD issue I have altered a web.xml file in my \webapps\test\WEB-INF directory. Upon startup I get a parse error about the structure of the file. I opened the file in XML spy and it said it was an servlet tag unexpected child element. I then downloaded the DTD from sun and printed it out. I am adhering to the DTD from what it seems. ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; web-app servlet servlet-name Hello3 /servlet-name servlet-class Hello3 /servlet-class /servlet servlet-mapping servlet-name Hello3 /servlet-name url-pattern /test/Hello3 /url-pattern /servlet-mapping servlet --- IT GIVES THE ERROR AT THIS LINE servlet-name SurveyServlet /servlet-name servlet-class SurveyServlet /servlet-class /servlet servlet-mapping servlet-name SurveyServlet /servlet-name url-pattern /MedSurvey /url-pattern /servlet-mapping Any ideas? Need more info? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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: connection pooling - how to verify it's in use
Are you trying to see the (total connections available -- total connections used) info? -Original Message- From: Christopher Prince [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 02, 2003 10:54 AM To: Tomcat Users List Subject: Re: connection pooling - how to verify it's in use I had a problem like this. I had an application that didn't use connection pooling and i was converting it over. In Windows is used the netstat command with the auto repeat option. It shows all of the active network connections and i watched the list et shorter as components where switched over. hope this helps At 09:32 AM 7/2/2003 -0500, you wrote: I have a question about connection pooling I can't seem to answer after reading the Tomcat FAQ or either JNDI HOW-TO. I'm using TC 4.1.24 and have followed all the instructions on setting up a connection pool thru Tomcat for an application (this one uses an EDBC driver) - and I can see how I can verify that it gets a connection to the database. But I'm not sure just how to tell that it's using a connection pool(I've been known to screw-up in reverse); is there some setting in server.xml that would allow me to see that the connections are using a pool? Thanks! -- Lynn Hollerman. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.491 / Virus Database: 290 - Release Date: 6/18/2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1.24 with Oracle8i
Im new to Tomcat and Oracle too. There is some good info out on technet.oracle.com on Servlets and JSPs BUT all the examples use OC4J (Oracle Containers for J2EE) not Tomcat. I am trying to learn the best way to use connection pooling. Ive been told that Oracles implementation of connection pooling has issues to try to use a generic implementation. BUT that some Oracle transactions require native statements not wrapped statements. I was suggested poolman. But so far that is all I know. There is a good presentation Understanding, Creating and Using JDBC Connection Pools do a google on it. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 8:53 AM To: Tomcat Users List Subject: RE: Tomcat 4.1.24 with Oracle8i Howdy, What do you need to know? Yoav Shapira Millennium ChemInformatics -Original Message- From: Naveen My [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 7:41 AM To: Tomcat Users List Subject: Tomcat 4.1.24 with Oracle8i Can anybody help me with tutorial links of Tomcat + oracle ? I am using Tomcat 4.1.24 and Oracle 8i. thanks in advance -naveen - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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: JDBC Pooling Clarification
Thank you Mike I appreciate the feedback on your experience. Now you know I was going to ask. How did you get around the native issue in poolman? And do you know of another tool(s) that does not have this issue? (with Oracle 8.1.7) I would like to go generic but I have not seen any third party implementations of the Oracle ConnectionCache (pooling physical connections). -Original Message- From: mike jackson [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 5:05 PM To: 'Tomcat Users List' Subject: RE: JDBC Pooling Clarification Personally I've had problems with Oracle's connection pooling (didn't cleanup the connections before handing them out, the connects were arriving dirty to begin with). But, barring those issues, if you use a generic connection pooling system, rather than the oracle one, it'll make it easier to move from one database vendor to other in the future. If you're going to do this you're going to want to find one that returns native statements rather than wrapped statements, some oracle things need the native oracle statement, and won't work with a wrapped connection (the xsql tools come to mind). Also, you're probably going to want one that'll tell you what's going on in the pool. Personally I use poolman, which is missing the native statements issue, but its easy to work around it. Your mileage may vary, batteries not include, some assembly required. --mikej -=-- mike jackson [EMAIL PROTECTED] -Original Message- From: Gregory, Carlton [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 12:54 PM To: 'Tomcat Users List' Subject: RE: JDBC Pooling Clarification thanks Yoav, Oracle has some good example on there technet.oracle.com site but the use OC4J instead of Tomcat. With the many docs I was coming across on the web it became confusing as to what is a MUST and what is a CHOICE. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 4:44 PM To: Tomcat Users List Subject: RE: JDBC Pooling Clarification Howdy, Question 1. This package is used REGARDLESS of what database you are using? You can configure what package is used by altering the factory setting in the ResourceParams section for your data source. Question 2. If DBCP does not have to be used then I could use Oracles connection pooling AND connection cache? By definition, yes. Question 3. Is DBCP apart of JNDI? No, it's a jakarta-commons project: http://jakarta.apache.org/commons/dbcp/ Question 4. Is it possible to have multiple users use the SAME connection pool, and in my respect with Oracle a connection cache? Why not? What's the difference between one or N users? It all comes from your servlets anyways. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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]
JDBC Pooling Clarification
After googling to countless pages on connection pooling I figured I should ask the list for some clarification. According to this doc: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-how to.html DBCP is what Tomcat uses to perform connection pooling. Question 1. This package is used REGARDLESS of what database you are using? Question 2. If DBCP does not have to be used then I could use Oracles connection pooling AND connection cache? Question 3. Is DBCP apart of JNDI? Question 4. Is it possible to have multiple users use the SAME connection pool, and in my respect with Oracle a connection cache? Im using Oracel 8.1.7.4.10 omcat 4.1.24 Apache 2.0.45 Win2k Pro JDK 1.4 Thank you for your time in advance Carlton G - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JDBC Pooling Clarification
thanks Yoav, Oracle has some good example on there technet.oracle.com site but the use OC4J instead of Tomcat. With the many docs I was coming across on the web it became confusing as to what is a MUST and what is a CHOICE. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 4:44 PM To: Tomcat Users List Subject: RE: JDBC Pooling Clarification Howdy, Question 1. This package is used REGARDLESS of what database you are using? You can configure what package is used by altering the factory setting in the ResourceParams section for your data source. Question 2. If DBCP does not have to be used then I could use Oracles connection pooling AND connection cache? By definition, yes. Question 3. Is DBCP apart of JNDI? No, it's a jakarta-commons project: http://jakarta.apache.org/commons/dbcp/ Question 4. Is it possible to have multiple users use the SAME connection pool, and in my respect with Oracle a connection cache? Why not? What's the difference between one or N users? It all comes from your servlets anyways. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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]
java.lang.IllegalArgumentException: addChild: Child name 'default' is not unique
Has anyone encountered the problem listed as my subject line before? I do believe my tags are in the right order. I printed out the dtd frm Sun. I just keep recieving http 404 Im running Tomcat 4.1.24 on Win3k Pro and Apache 2.0.45. I have cleared my logs. Stopped Tomcat and Apache then restarted both. Thanks for your time and help in advance. 2003-06-25 15:22:24 WebappLoader[/test]: Deploying class repositories to work directory C:\Program Files\jakarta-tomcat-4.1.24\work\Standalone\localhost\test 2003-06-25 15:22:24 WebappLoader[/test]: Deploy class files /WEB-INF/classes to C:\Program Files\jakarta-tomcat-4.1.24\bin\..\webapps\test\WEB-INF\classes 2003-06-25 15:22:24 WebappLoader[/test]: Reloading checks are enabled for this Context 2003-06-25 15:22:24 StandardManager[/test]: Seeding random number generator class java.security.SecureRandom 2003-06-25 15:22:24 StandardManager[/test]: Seeding of random number generator has been completed 2003-06-25 15:22:24 StandardWrapper[/test:default]: Loading container servlet default 2003-06-25 15:22:24 StandardWrapper[/test:invoker]: Loading container servlet invoker 2003-06-25 15:22:25 WebappLoader[]: Deploying class repositories to work directory C:\Program Files\jakarta-tomcat-4.1.24\work\Standalone\localhost\_ 2003-06-25 15:22:25 WebappLoader[]: Deploy class files /WEB-INF/classes to C:\Program Files\jakarta-tomcat-4.1.24\bin\..\webapps\ROOT\WEB-INF\classes 2003-06-25 15:22:25 ContextConfig[] Parse error in application web.xml java.lang.IllegalArgumentException: addChild: Child name 'default' is not unique at org.apache.commons.digester.Digester.createSAXException(Digester.java:2383) at org.apache.commons.digester.Digester.createSAXException(Digester.java:2409) at org.apache.commons.digester.Digester.endElement(Digester.java:1067) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1543) at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.ja va:282) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java: 243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3567) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) 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:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) 2003-06-25 15:22:25 ContextConfig[]: Occurred at line 57 column 15 2003-06-25 15:22:25 ContextConfig[]: Marking this application unavailable due to previous error(s) ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]