Authentication in tomcat 4.1.27
Hi, I am migrating my web application to 4.1.27 from tomcat 3 . In tomcat 3 , I had following code for authentication in server.xml. RequestInterceptor className=com.remind.securetomcat.SecRealm debug=0 initCtx=com.sun.jndi.ldap.LdapCtxFactory ldapHost=ldap://ldap.mycompany.com:389; baseDn=ou=active,ou=employees,ou=people,o=mycompany.com maxDnAge=300 maxPwAge=6000 maxFilterAge=6000 / where as 'com.remind.securetomcat.SecRealm' is my class to authenticate user by my company's ldap. com.remind.securetomcat.SecRealm class extends tomcat's org.apache.tomcat.core.BaseInterceptor' , which is not present in tomcat 4.1.27 . What changes are required to make authentication work in server.xml in tomcat 4.1.27 configuration to make this work? Thanks and Regards Shailesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re[2] :Deployment problems in tomcat 4.1.27 : jdbc and properties files
Atlast it worked by changing code to use Thread.getContextClassLoader().getResourceAsStream(framework.properties); to load my files. Anton, Thanks a lot :) regards Shailesh -Original Message- From: Anton Tagunov [mailto:[EMAIL PROTECTED] Sent: Monday, September 08, 2003 11:28 AM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re[2]: Deployment problems in tomcat 4.1.27 : jdbc and properties files Hello Shailesh! SM properties files(configuration files) for my web-app are not getting SM picked up. I have tried following ways one by one: SM 1. kept them in \WEB-INF\classes folder the right move SM 2. kept them in \WEB-INF\lib won't work, it's for jars only SM 3. made the jar out of them and kept that jar in lib directory too would work too, but looks like an overkill. BUT, you may pack them into the same jar as your application classes are in and keep THAT in /WEB-INF/lib, this would be quite reasonable SM but whenever my bootstrap code runs, it doesn't find these properties SM files. SM Code is : SM InputStream myStream = SM ClassLoader.getSystemResourceAsStream(framework.properties); SM or SM InputStream myStream = SM ClassLoader.getSystemResourceAsStream(/WEB-INF/properties/framework.propert SM ies); Should have been, assumint you have /WEB-INF/classes/framework.properties or /WEB-INF/lib/some.jar!/framework.properties Thread.getContextClassLoader().getResourceAsStream(framework.properties); An noteworthy alternative is, assuming you have /WEB-INF/properties/framework.properties inside a servlet this.getServletContext().getResourceAsStream(/WEB-INF/properties/framework. properties); inside a jsp % ... = application.getResourceAsStream(/WEB-INF/properties/framework.properties); % Anton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Parse error in application web.xml (addChild: Child name 'jsp' is not unique)
Hi, Has somebody got this error ? I am getting this while starting my tomcat 4.1.27 to deploy my web-app and when it reads my web-app's web.xml . Error : 2003-09-08 15:00:54 ContextConfig[/remind/cafe] Parse error in application web.xml java.lang.IllegalArgumentException: addChild: Child name 'jsp' is not unique at org.apache.commons.digester.Digester.createSAXException(Digester.java:2540) at org.apache.commons.digester.Digester.createSAXException(Digester.java:2566) at org.apache.commons.digester.Digester.endElement(Digester.java:1061) 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.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) 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 java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) 2003-09-08 15:00:54 ContextConfig[/remind/cafe]: Occurred at line 60 column 13 2003-09-08 15:00:54 ContextConfig[/remind/cafe]: Marking this application unavailable due to previous error(s) I looked in my web.xml at line 60, where i have specified 'jsp' servlet definition. servlet servlet-namejsp/servlet-name servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class /servlet Am i doing something wrong in migrating from tomcat 3 to 4.1.27 . ? Thanks a lot Shailesh Modi
RE: Parse error in application web.xml (addChild: Child name 'jsp' is not unique)
It worked when i removed the jsp servlet definition from my web-app web.xml but when i tried commenting jsp servlet definition in $CATALINA_HOME/conf/web.xml and kept that in my web.xml only. It gave me errors as 2003-09-08 19:06:30 ContextConfig[/remind/cafe] Parse error in default web.xml java.lang.IllegalArgumentException: Servlet mapping specifies an unknown servlet name jsp because somehow it doesnt load jsp servlet from any other web app's web.xml definition and there were other web-apps too which didnt have their own web.xml. So i didnt touch the tomcat's web.xml and removed the specification from my web.xml Yoav , Thanks a lot. Regards, Shailesh -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, September 08, 2003 6:48 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: Parse error in application web.xml (addChild: Child name 'jsp' is not unique) Howdy, Did you comment out the jsp servlet definition in $CATALINA_HOME/conf/web.xml? You can only have one servlet with that name jsp. The above is the global web.xml which is read in addition to your application's web.xml. Most people simply leave the JSP servlet definition in the global web.xml and don't add it to their own webapp's web.xml. Yoav Shapira Millennium ChemInformatics -Original Message- From: Shailesh Modi [mailto:[EMAIL PROTECTED] Sent: Monday, September 08, 2003 5:42 AM To: [EMAIL PROTECTED] Apache. Org (E-mail) Subject: Parse error in application web.xml (addChild: Child name 'jsp' is not unique) Hi, Has somebody got this error ? I am getting this while starting my tomcat 4.1.27 to deploy my web-app and when it reads my web-app's web.xml . Error : 2003-09-08 15:00:54 ContextConfig[/remind/cafe] Parse error in application web.xml java.lang.IllegalArgumentException: addChild: Child name 'jsp' is not unique at org.apache.commons.digester.Digester.createSAXException(Digester.java:2 540) at org.apache.commons.digester.Digester.createSAXException(Digester.java:2 566) at org.apache.commons.digester.Digester.endElement(Digester.java:1061) 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(Un know n Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) 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 java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) 2003-09-08 15:00:54 ContextConfig[/remind/cafe]: Occurred at line 60 column 13 2003-09-08 15:00:54 ContextConfig[/remind/cafe]: Marking this application unavailable due to previous error(s) I looked in my web.xml at line 60, where i have specified 'jsp' servlet definition. servlet servlet-namejsp/servlet-name servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class /servlet Am i doing something wrong in migrating from tomcat 3 to 4.1.27 . ? Thanks a lot Shailesh Modi 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]
RE: Deployment problems in tomcat 4.1.27 : jdbc and properties files
Hi James, It is classes.jar and now it is being picked up when i kept it in \common\lib directory. But properties files(configuration files) for my web-app are not getting picked up. I have tried following ways one by one: 1. kept them in \WEB-INF\classes folder 2. kept them in \WEB-INF\lib 3. made the jar out of them and kept that jar in lib directory too but whenever my bootstrap code runs, it doesn't find these properties files. Code is : InputStream myStream = ClassLoader.getSystemResourceAsStream(framework.properties); or InputStream myStream = ClassLoader.getSystemResourceAsStream(/WEB-INF/properties/framework.propert ies); The same code was working in tomcat 3 where i used to specify classpath but not in tomcat 4.1.27 ? Please let me know what else can be done ? Thanks a lot Regards , Shailesh -Original Message- From: James Harman [mailto:[EMAIL PROTECTED] Sent: Saturday, September 06, 2003 9:05 AM To: Tomcat Users List Subject: Re: Deployment problems in tomcat 4.1.27 : jdbc and properties files Shailesh, Is it classes12.jar or classes12.zip? Your first post said zip. If it is zip make sure you rename it to jar. If you rename it to classes12.jar and put it in WEB-INF\lib it will be picked up. James Shailesh Modi wrote: Hi, I have kept classes12.jar in every possible places in tomcat 4 directory(C:\jakarta-tomcat-4.1.27\common\lib or C:\jakarta-tomcat-4.1.27\server\lib), but no help. Also keeping properties files into my web-app's WEB-INF/classes directory too not able to help me out. Alternatively, I have tried giving relative path (eg /WEB-INF/properties/framework.properties) , still my Loader class is not able to locate the framework properties file. InputStream myStream = ClassLoader.getSystemResourceAsStream(framework.properties); or InputStream myStream = ClassLoader.getSystemResourceAsStream(/WEB-INF/properties/framework.proper t ies); both are not working. One more thing, in tomcat 3 , I had modified server.xml by placing following code for authentication. RequestInterceptor className=com.remind.securetomcat.SecRealm debug=0 initCtx=com.sun.jndi.ldap.LdapCtxFactory ldapHost=ldap://ldap.mycompany.com:389; baseDn=ou=active,ou=employees,ou=people,o=mycompany.com maxDnAge=300 maxPwAge=6000 maxFilterAge=6000 / where as 'com.remind.securetomcat.SecRealm' is my class to authenticates user by ldap. Where should i place this tag in server.xml in tomcat 4.1.27 configuration to make this work? Thanks a Lot. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2003 2:54 PM To: Tomcat Users List Subject: RE: deployment problems in tomcat 4.1.27 It is sayed that property file should be in your classpath! So I allways put my property file under WEB-INF/classes/ directory which seems to be fine. I am using Struts, but I guess the Struts uses the same mechanism to access properties! As I understand your oracle12.zip is needed to startup tomcat server in this case it should be under %CATALINA_HOME%/server/lib directory. And I suggest to transfert it into .jar file! Atleast I am using mysql connector (it is in jar file) and I allways have to put it under %CATALINA_HOME%/server/lib directory to make my JDBC realm work! If your .jar file is needed only for your own application then WEB-INF/lib should do! Also there is %CATALINA_HOME%/common/ directory which has /lib directory where you can put different stuff. This stuff will be visible to all your web applications! For example appache suggeests to put different jars from their common project. ___ Living things are systems that tend to respond to changes in their environment, and inside themselves, in such a way as to promote their own continuation. Janis Olekss Exigen Latvia System Analyst (Office) +371 7072900 (Cell) +371 9136267 Shailesh Modi [EMAIL PROTECTED] 09/04/2003 12:20 Please respond to Tomcat Users List To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject:RE: deployment problems in tomcat 4.1.27 Thanks Janis, it was great help. I am having another problem regarding classpath of tomcat. My application property files and oracle classes (classes12.zip) are not being picked up, when tomcat deploys my web app. my properties files are in /WEB-INF/properties folder and classes12.zip is in /WEB-INF/lib folder. I have tried putting classes12.zip in Tomcat's %CATALINA_HOME%/common/lib and my properties files in /WEB-INF/lib directory, but no help. At application startup , I am loading my properties file as InputStream myStream = ClassLoader.getSystemResourceAsStream(framework.properties); But myStream is getting null. This code was working fine in tomcat 3 (as we used to specify classpath to tomcat startup for properties files, jars and other
deployment problems in tomcat 4.1.27
Hi, I am trying to deploy my web application in tomcat 4.1.27, earlier tomcat 3 was successfully running my web-app. 1. basic problem - I want to set my web-app context as /remind/cafe/ (e.g. http://server:port/remind/cafe/index.do) but tomcat 4.1.27 asks me to put my web-app war file into webapps folder where i cant set my own context. Actually i dont know how to set my own context in tomcat 4.1.27. I want to place my web-app files in my devlopment folders and run application from there itself by tomcat 4.1.27 . 2. I have some config property files into my WEB-INF/properties folder. Do i have to place these files into WEB-INF/lib folder so that they can be accessible by my servlet at application startup Or is there any way where these files can be picked up from properties folder itself.? Any pointers would greatly appreciated. Thanks a lot Shailesh Modi
RE: deployment problems in tomcat 4.1.27
Thanks Janis, it was great help. I am having another problem regarding classpath of tomcat. My application property files and oracle classes (classes12.zip) are not being picked up, when tomcat deploys my web app. my properties files are in /WEB-INF/properties folder and classes12.zip is in /WEB-INF/lib folder. I have tried putting classes12.zip in Tomcat's %CATALINA_HOME%/common/lib and my properties files in /WEB-INF/lib directory, but no help. At application startup , I am loading my properties file as InputStream myStream = ClassLoader.getSystemResourceAsStream(framework.properties); But myStream is getting null. This code was working fine in tomcat 3 (as we used to specify classpath to tomcat startup for properties files, jars and other shared libs) but not working in tomcat 4.1.27 . Thanks a lot. Shailesh -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2003 12:39 PM To: Tomcat Users List Subject: Re: deployment problems in tomcat 4.1.27 You have to configure server.xml file There are 2 things 1) host which defines your docBase 2) context which defines different contexts See apache.org for the tag specifications ___ Living things are systems that tend to respond to changes in their environment, and inside themselves, in such a way as to promote their own continuation. Janis Olekss Exigen Latvia System Analyst (Office) +371 7072900 (Cell) +371 9136267 Shailesh Modi [EMAIL PROTECTED] 09/04/2003 10:12 Please respond to Tomcat Users List To: [EMAIL PROTECTED] cc: Subject:deployment problems in tomcat 4.1.27 Hi, I am trying to deploy my web application in tomcat 4.1.27, earlier tomcat 3 was successfully running my web-app. 1. basic problem - I want to set my web-app context as /remind/cafe/ (e.g. http://server:port/remind/cafe/index.do) but tomcat 4.1.27 asks me to put my web-app war file into webapps folder where i cant set my own context. Actually i dont know how to set my own context in tomcat 4.1.27. I want to place my web-app files in my devlopment folders and run application from there itself by tomcat 4.1.27 . 2. I have some config property files into my WEB-INF/properties folder. Do i have to place these files into WEB-INF/lib folder so that they can be accessible by my servlet at application startup Or is there any way where these files can be picked up from properties folder itself.? Any pointers would greatly appreciated. Thanks a lot Shailesh Modi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: deployment problems in tomcat 4.1.27
Hi, I have kept classes12.jar in every possible places in tomcat 4 folders, but no help. Also keeping properties files into WEB-INF/classes directory too not able to help me out. Alternatively, I have tried giving relative path (eg /WEB-INF/properties/framework.properties) , still my Loader class is not able to locate the framework properties file. InputStream myStream = ClassLoader.getSystemResourceAsStream(framework.properties); or InputStream myStream = ClassLoader.getSystemResourceAsStream(/WEB-INF/properties/framework.propert ies); both are not working. One more thing, in tomcat 3 , I had modified server.xml by placing following code for authentication. RequestInterceptor className=com.remind.securetomcat.SecRealm debug=0 initCtx=com.sun.jndi.ldap.LdapCtxFactory ldapHost=ldap://ldap.mycompany.com:389; baseDn=ou=active,ou=employees,ou=people,o=mycompany.com maxDnAge=300 maxPwAge=6000 maxFilterAge=6000 / where as 'com.remind.securetomcat.SecRealm' is my class to authenticates user by ldap. Where should i place this tag in server.xml in tomcat 4.1.27 configuration to make this work? Thanks a Lot. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2003 2:54 PM To: Tomcat Users List Subject: RE: deployment problems in tomcat 4.1.27 It is sayed that property file should be in your classpath! So I allways put my property file under WEB-INF/classes/ directory which seems to be fine. I am using Struts, but I guess the Struts uses the same mechanism to access properties! As I understand your oracle12.zip is needed to startup tomcat server in this case it should be under %CATALINA_HOME%/server/lib directory. And I suggest to transfert it into .jar file! Atleast I am using mysql connector (it is in jar file) and I allways have to put it under %CATALINA_HOME%/server/lib directory to make my JDBC realm work! If your .jar file is needed only for your own application then WEB-INF/lib should do! Also there is %CATALINA_HOME%/common/ directory which has /lib directory where you can put different stuff. This stuff will be visible to all your web applications! For example appache suggeests to put different jars from their common project. ___ Living things are systems that tend to respond to changes in their environment, and inside themselves, in such a way as to promote their own continuation. Janis Olekss Exigen Latvia System Analyst (Office) +371 7072900 (Cell) +371 9136267 Shailesh Modi [EMAIL PROTECTED] 09/04/2003 12:20 Please respond to Tomcat Users List To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject:RE: deployment problems in tomcat 4.1.27 Thanks Janis, it was great help. I am having another problem regarding classpath of tomcat. My application property files and oracle classes (classes12.zip) are not being picked up, when tomcat deploys my web app. my properties files are in /WEB-INF/properties folder and classes12.zip is in /WEB-INF/lib folder. I have tried putting classes12.zip in Tomcat's %CATALINA_HOME%/common/lib and my properties files in /WEB-INF/lib directory, but no help. At application startup , I am loading my properties file as InputStream myStream = ClassLoader.getSystemResourceAsStream(framework.properties); But myStream is getting null. This code was working fine in tomcat 3 (as we used to specify classpath to tomcat startup for properties files, jars and other shared libs) but not working in tomcat 4.1.27 . Thanks a lot. Shailesh -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2003 12:39 PM To: Tomcat Users List Subject: Re: deployment problems in tomcat 4.1.27 You have to configure server.xml file There are 2 things 1) host which defines your docBase 2) context which defines different contexts See apache.org for the tag specifications ___ Living things are systems that tend to respond to changes in their environment, and inside themselves, in such a way as to promote their own continuation. Janis Olekss Exigen Latvia System Analyst (Office) +371 7072900 (Cell) +371 9136267 Shailesh Modi [EMAIL PROTECTED] 09/04/2003 10:12 Please respond to Tomcat Users List To: [EMAIL PROTECTED] cc: Subject:deployment problems in tomcat 4.1.27 Hi, I am trying to deploy my web application in tomcat 4.1.27, earlier tomcat 3 was successfully running my web-app. 1. basic problem - I want to set my web-app context as /remind/cafe/ (e.g. http://server:port/remind/cafe/index.do) but tomcat 4.1.27 asks me to put my web-app war file into webapps folder where i cant set my own context. Actually i dont know how to set my own context in tomcat 4.1.27. I want to place my web
Deployment problems in tomcat 4.1.27 : jdbc and properties files
Hi, I have kept classes12.jar in every possible places in tomcat 4 directory(C:\jakarta-tomcat-4.1.27\common\lib or C:\jakarta-tomcat-4.1.27\server\lib), but no help. Also keeping properties files into my web-app's WEB-INF/classes directory too not able to help me out. Alternatively, I have tried giving relative path (eg /WEB-INF/properties/framework.properties) , still my Loader class is not able to locate the framework properties file. InputStream myStream = ClassLoader.getSystemResourceAsStream(framework.properties); or InputStream myStream = ClassLoader.getSystemResourceAsStream(/WEB-INF/properties/framework.propert ies); both are not working. One more thing, in tomcat 3 , I had modified server.xml by placing following code for authentication. RequestInterceptor className=com.remind.securetomcat.SecRealm debug=0 initCtx=com.sun.jndi.ldap.LdapCtxFactory ldapHost=ldap://ldap.mycompany.com:389; baseDn=ou=active,ou=employees,ou=people,o=mycompany.com maxDnAge=300 maxPwAge=6000 maxFilterAge=6000 / where as 'com.remind.securetomcat.SecRealm' is my class to authenticates user by ldap. Where should i place this tag in server.xml in tomcat 4.1.27 configuration to make this work? Thanks a Lot. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2003 2:54 PM To: Tomcat Users List Subject: RE: deployment problems in tomcat 4.1.27 It is sayed that property file should be in your classpath! So I allways put my property file under WEB-INF/classes/ directory which seems to be fine. I am using Struts, but I guess the Struts uses the same mechanism to access properties! As I understand your oracle12.zip is needed to startup tomcat server in this case it should be under %CATALINA_HOME%/server/lib directory. And I suggest to transfert it into .jar file! Atleast I am using mysql connector (it is in jar file) and I allways have to put it under %CATALINA_HOME%/server/lib directory to make my JDBC realm work! If your .jar file is needed only for your own application then WEB-INF/lib should do! Also there is %CATALINA_HOME%/common/ directory which has /lib directory where you can put different stuff. This stuff will be visible to all your web applications! For example appache suggeests to put different jars from their common project. ___ Living things are systems that tend to respond to changes in their environment, and inside themselves, in such a way as to promote their own continuation. Janis Olekss Exigen Latvia System Analyst (Office) +371 7072900 (Cell) +371 9136267 Shailesh Modi [EMAIL PROTECTED] 09/04/2003 12:20 Please respond to Tomcat Users List To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject:RE: deployment problems in tomcat 4.1.27 Thanks Janis, it was great help. I am having another problem regarding classpath of tomcat. My application property files and oracle classes (classes12.zip) are not being picked up, when tomcat deploys my web app. my properties files are in /WEB-INF/properties folder and classes12.zip is in /WEB-INF/lib folder. I have tried putting classes12.zip in Tomcat's %CATALINA_HOME%/common/lib and my properties files in /WEB-INF/lib directory, but no help. At application startup , I am loading my properties file as InputStream myStream = ClassLoader.getSystemResourceAsStream(framework.properties); But myStream is getting null. This code was working fine in tomcat 3 (as we used to specify classpath to tomcat startup for properties files, jars and other shared libs) but not working in tomcat 4.1.27 . Thanks a lot. Shailesh -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2003 12:39 PM To: Tomcat Users List Subject: Re: deployment problems in tomcat 4.1.27 You have to configure server.xml file There are 2 things 1) host which defines your docBase 2) context which defines different contexts See apache.org for the tag specifications ___ Living things are systems that tend to respond to changes in their environment, and inside themselves, in such a way as to promote their own continuation. Janis Olekss Exigen Latvia System Analyst (Office) +371 7072900 (Cell) +371 9136267 Shailesh Modi [EMAIL PROTECTED] 09/04/2003 10:12 Please respond to Tomcat Users List To: [EMAIL PROTECTED] cc: Subject:deployment problems in tomcat 4.1.27 Hi, I am trying to deploy my web application in tomcat 4.1.27, earlier tomcat 3 was successfully running my web-app. 1. basic problem - I want to set my web-app context as /remind/cafe/ (e.g. http://server:port/remind/cafe/index.do) but tomcat 4.1.27 asks me to put my web-app war file into webapps folder where i cant set my own context
exception in deploying webapp in tomcat4.1
) at org.apache.catalina.core.StandardContext.addChild(StandardContext.java:1321) ... 48 more Sep 3, 2003 7:19:34 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 Sep 3, 2003 7:19:34 PM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on tcp port 8009 Sep 3, 2003 7:19:34 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=15/125 config=C:\Program Files\Apache Group\Tomcat 4 .1\conf\jk2.properties My web application uses struts 1.0,velocity 1.3. The same web application works fine in tomcat3 , but not in tomcat 4.1 . Any pointers where am i doing wrong? Thanks in advance. Shailesh Modi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: exception in deploying webapp in tomcat4.1
Hi , Please see attached web.xml for my web-app. It is compliant with servlet specs v2.3 DTD. Now i am installing 4.1.27 and will see if that resolves my problem. Let me know if there is anything wrong with my web.xml Thanks a lot , Shailesh -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 03, 2003 8:09 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: exception in deploying webapp in tomcat4.1 Howdy, You need to make sure your web.xml file is compliant with the Servlet Specification v2.3 DTD. Post your web.xml and we can help you migrate it. In addition, I recommend you use the latest stable tomcat 4.1, which is 4.1.27, not 4.1.10 which you're using now. Yoav Shapira Millennium ChemInformatics -Original Message- From: Shailesh Modi [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 03, 2003 10:38 AM To: [EMAIL PROTECTED] Subject: exception in deploying webapp in tomcat4.1 Hi All, I just upgraded to tomcat 4.1 from tomcat 3. I have installed setup Tomcat 4.1 and its running fine with sample web applications. When i put my web application's war file into webapps folder and try to start tomcat, it gives me following error. Sep 3, 2003 7:19:09 PM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Sep 3, 2003 7:19:10 PM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Sep 3, 2003 7:19:10 PM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Sep 3, 2003 7:19:12 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1.10 Sep 3, 2003 7:19:29 PM org.apache.commons.digester.Digester endElement SEVERE: End event threw exception java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java: 228) at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260) at org.apache.commons.digester.Digester.endElement(Digester.java:1036) at org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParse r.ja v a:579) at org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder .jav a :646) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValid ator . java:1972) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.j ava: 8 78) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElemen t(XMLDocumentFragmentScannerImpl.java:1144) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement( XMLDocumentFragmentScannerImpl.java:987) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent Dispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1445) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XM LDocumentFragmentScannerImpl.java:333) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java: 524) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java: 580) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.jav a:11 6 9) at org.apache.commons.digester.Digester.parse(Digester.java:1495) at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConf ig.j a 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(LifecycleS uppo r t.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:349 3) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.j ava: 8 21) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeplo yer. j ava:257) at org.apache.catalina.core.StandardHost.install(StandardHost.java:772) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:502) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:410) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:3 68) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleS uppo r t.java:166) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196) 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