RE: Tomcat 4.1 - 5.0
I believe they go into $catalina_home/conf/Catalina/localhost/somewebapp.xml Randall -Original Message- From: e-Denton Subscriber [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 23, 2004 1:21 PM To: [EMAIL PROTECTED] Subject: Tomcat 4.1 - 5.0 I am converting a Struts app from Tomcat 4.1 to 5.0 and don't know how to establish my context. Under 4.1, I placed a Context entry (at the end of this email) in server.xml. I gather it should now be in its own xml file within my application directory. But, where? and by what name? Is it found automagically? !-- portal context Chang Wagers Associates Copyright 2004 -- Context displayName=e-Denton Portal Application docBase=e-Denton path=/e-Denton debug=3 reloadable=true useNaming=true Loader checkInterval=1 / Resource name=jdbc/portal auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/portal parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter nameusername/name valuefortune/value /parameter parameter namepassword/name valuex/value /parameter parameter namedriverClassName/name valuecom.mysql.jdbc.Driver/value /parameter parameter nameurl/name valuejdbc:mysql://127.0.0.1:3306/x?autoReconnect=true/value /parameter parameter namemaxActive/name value10/value /parameter parameter namemaxIdle/name value5/value /parameter parameter namemaxWait/name value1/value /parameter /ResourceParams /Context - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1 - 5.0
Thanks--it works! - Original Message - From: Randall Svancara [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; e-Denton Subscriber [EMAIL PROTECTED] Sent: Wednesday, June 23, 2004 2:23 PM Subject: RE: Tomcat 4.1 - 5.0 I believe they go into $catalina_home/conf/Catalina/localhost/somewebapp.xml Randall -Original Message- From: e-Denton Subscriber [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 23, 2004 1:21 PM To: [EMAIL PROTECTED] Subject: Tomcat 4.1 - 5.0 I am converting a Struts app from Tomcat 4.1 to 5.0 and don't know how to establish my context. Under 4.1, I placed a Context entry (at the end of this email) in server.xml. I gather it should now be in its own xml file within my application directory. But, where? and by what name? Is it found automagically? !-- portal context Chang Wagers Associates Copyright 2004 -- Context displayName=e-Denton Portal Application docBase=e-Denton path=/e-Denton debug=3 reloadable=true useNaming=true Loader checkInterval=1 / Resource name=jdbc/portal auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/portal parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter nameusername/name valuefortune/value /parameter parameter namepassword/name valuex/value /parameter parameter namedriverClassName/name valuecom.mysql.jdbc.Driver/value /parameter parameter nameurl/name valuejdbc:mysql://127.0.0.1:3306/x?autoReconnect=true/value /parameter parameter namemaxActive/name value10/value /parameter parameter namemaxIdle/name value5/value /parameter parameter namemaxWait/name value1/value /parameter /ResourceParams /Context - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1 - 5.0
I thought that warfile/META-INFO/context.xml was the right place e-Denton Subscriber wrote: Thanks--it works! - Original Message - From: Randall Svancara [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; e-Denton Subscriber [EMAIL PROTECTED] Sent: Wednesday, June 23, 2004 2:23 PM Subject: RE: Tomcat 4.1 - 5.0 I believe they go into $catalina_home/conf/Catalina/localhost/somewebapp.xml Randall -Original Message- From: e-Denton Subscriber [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 23, 2004 1:21 PM To: [EMAIL PROTECTED] Subject: Tomcat 4.1 - 5.0 I am converting a Struts app from Tomcat 4.1 to 5.0 and don't know how to establish my context. Under 4.1, I placed a Context entry (at the end of this email) in server.xml. I gather it should now be in its own xml file within my application directory. But, where? and by what name? Is it found automagically? !-- portal context Chang Wagers Associates Copyright 2004 -- Context displayName=e-Denton Portal Application docBase=e-Denton path=/e-Denton debug=3 reloadable=true useNaming=true Loader checkInterval=1 / Resource name=jdbc/portal auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/portal parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter nameusername/name valuefortune/value /parameter parameter namepassword/name valuex/value /parameter parameter namedriverClassName/name valuecom.mysql.jdbc.Driver/value /parameter parameter nameurl/name valuejdbc:mysql://127.0.0.1:3306/x?autoReconnect=true/value /parameter parameter namemaxActive/name value10/value /parameter parameter namemaxIdle/name value5/value /parameter parameter namemaxWait/name value1/value /parameter /ResourceParams /Context - 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] -- Emerson Cargnin Analista de Sistemas Setor de Desenvolvimento de Sistemas - TRE-SC tel : (048) - 251-3700 - Ramal 3181 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1 - 5.0
At least to use default place to be expanded let's say, to just use the datasource configuration e-Denton Subscriber wrote: Thanks--it works! - Original Message - From: Randall Svancara [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; e-Denton Subscriber [EMAIL PROTECTED] Sent: Wednesday, June 23, 2004 2:23 PM Subject: RE: Tomcat 4.1 - 5.0 I believe they go into $catalina_home/conf/Catalina/localhost/somewebapp.xml Randall -Original Message- From: e-Denton Subscriber [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 23, 2004 1:21 PM To: [EMAIL PROTECTED] Subject: Tomcat 4.1 - 5.0 I am converting a Struts app from Tomcat 4.1 to 5.0 and don't know how to establish my context. Under 4.1, I placed a Context entry (at the end of this email) in server.xml. I gather it should now be in its own xml file within my application directory. But, where? and by what name? Is it found automagically? !-- portal context Chang Wagers Associates Copyright 2004 -- Context displayName=e-Denton Portal Application docBase=e-Denton path=/e-Denton debug=3 reloadable=true useNaming=true Loader checkInterval=1 / Resource name=jdbc/portal auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/portal parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter nameusername/name valuefortune/value /parameter parameter namepassword/name valuex/value /parameter parameter namedriverClassName/name valuecom.mysql.jdbc.Driver/value /parameter parameter nameurl/name valuejdbc:mysql://127.0.0.1:3306/x?autoReconnect=true/value /parameter parameter namemaxActive/name value10/value /parameter parameter namemaxIdle/name value5/value /parameter parameter namemaxWait/name value1/value /parameter /ResourceParams /Context - 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] -- Emerson Cargnin Analista de Sistemas Setor de Desenvolvimento de Sistemas - TRE-SC tel : (048) - 251-3700 - Ramal 3181 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1 - 5.0 Web-app Porting
Howdy, I still don't understand how this works with Tomcat 4.1 and not 5.0. I thought 5.0 was backwards compatible. Well, that's a nice entertaining start to my week ;) The standards (Servlet and JSP specifications) are backwards compatible. So things that implement them will be backwards compatible. However, features of the server not mandated by the specification (e.g. server configuration, non-standard features) are not guaranteed to be backwards-compatible. Moreover, tomcat 5 is not yet mature. You are helping us test it and find bugs, for which we are grateful ;) Besides, struts' tags are very popular (htmlbean etc.). If 5.0 were somehow not compatible with these tags, we would hear more complaints from this forum. We would, I agree, if more people assumed tomcat 5 was production-ready. Not many people make this assumption now. Many people are waiting for a tomcat 5 stable release, which hasn't happened (and won't until the specs are final). When the first stable release comes out, I expect to see a lot more tomcat 5 bug reports as there will be many more users/testers. It's natural for every product ;) 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]
Re: Tomcat 4.1 - 5.0 Web-app Porting
[EMAIL PROTECTED] wrote: I'm using Tomcat 5.0.11. I still don't understand how this works with Tomcat 4.1 and not 5.0. I thought 5.0 was backwards compatible. Besides, struts' tags are very popular (htmlbean etc.). If 5.0 were somehow not compatible with these tags, we would hear more complaints from this forum. I am tilting towards believing that I am, most probably, facing a configuration/settings problem. Any suggestions? The only way to get a NPE where you're getting it is if the tag pool is null. It will only happen if _jspInit is not properly called, basically (the code should be easy to read). So I doubt your JSP is a plain clean JSP ;-) BTW, I developed and tested a rather big Struts webapp using TC 5 without any problems. -- x Rémy Maucherat Senior Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1 - 5.0 Web-app Porting
Here's my entire index.jsp. What would you change to make it work with Tomcat 5.0? It seems to works fine with 4.1. [EMAIL PROTECTED] contentType=text/html% %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % html:html !-- this is where it crashes-- head titlebean:message key=indexPage.title//title /head % if (request.getHeader(dsam_sn) == null) {% frameset cols=145,* frameborder=0 border=0 frame src=CommonTasks.jsp frameborder=0 marginwidth=0 scrolling=no name=commonTasks noresize frame src=HeadendCatalog.jsp frameborder=0 marginwidth=0 name=main /frameset noframesbean:message key=indexPage.noFrameMessage//noframes % } else {% jsp:forward page=InstHomePage.jsp / % } % /html:html |-+ | | Remy Maucherat | | | [EMAIL PROTECTED] | | || | | 09/15/03 09:04 AM| | | Please respond to| | | Tomcat Users| | | List| | || |-+ --| | | | To: Tomcat Users List [EMAIL PROTECTED] | | cc: | | Subject: Re: Tomcat 4.1 - 5.0 Web-app Porting | --| [EMAIL PROTECTED] wrote: I'm using Tomcat 5.0.11. I still don't understand how this works with Tomcat 4.1 and not 5.0. I thought 5.0 was backwards compatible. Besides, struts' tags are very popular (htmlbean etc.). If 5.0 were somehow not compatible with these tags, we would hear more complaints from this forum. I am tilting towards believing that I am, most probably, facing a configuration/settings problem. Any suggestions? The only way to get a NPE where you're getting it is if the tag pool is null. It will only happen if _jspInit is not properly called, basically (the code should be easy to read). So I doubt your JSP is a plain clean JSP ;-) BTW, I developed and tested a rather big Struts webapp using TC 5 without any problems. -- x Rémy Maucherat Senior Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1 - 5.0 Web-app Porting
[EMAIL PROTECTED] wrote: Here's my entire index.jsp. What would you change to make it work with Tomcat 5.0? It seems to works fine with 4.1. Yes, I'm sure it does work fine with 4.1. Coincidentally, it also works fine for me in 5.0. It works for me with both pooling enabled and disabled (you can verify using the Struts example webapp). -- x Rémy Maucherat Senior Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1 - 5.0 Web-app Porting
I'm using Tomcat 5.0.11. I still don't understand how this works with Tomcat 4.1 and not 5.0. I thought 5.0 was backwards compatible. Besides, struts' tags are very popular (htmlbean etc.). If 5.0 were somehow not compatible with these tags, we would hear more complaints from this forum. I am tilting towards believing that I am, most probably, facing a configuration/settings problem. Any suggestions? Thanks in advance for your response, -Prashant |-+ | | Craig R.| | | McClanahan | | | [EMAIL PROTECTED]| | | org | | || | | 09/12/03 05:44 PM| | | Please respond to| | | Struts Users| | | Mailing List| | || |-+ --| | | | To: Struts Users Mailing List [EMAIL PROTECTED] | | cc: [EMAIL PROTECTED] | | Subject: Re: Tomcat 4.1 - 5.0 Web-app Porting | --| On Fri, 12 Sep 2003 [EMAIL PROTECTED] wrote: Date: Fri, 12 Sep 2003 16:01:57 -0500 From: [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Tomcat 4.1 - 5.0 Web-app Porting Hi, I am trying to port a web-application originally written with Tomcat 4.1 to Tomcat 5.0. The application uses struts and throws the following exception when launched: The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.NullPointerException org.apache.jasper.runtime.TagHandlerPool.reuse(TagHandlerPool.java:176) com.acterna.cable.rda.index_jsp. _jspx_meth_bean_message_0(index_jsp.java:119) com.acterna.cable.rda.index_jsp. _jspService(index_jsp.java:67) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) Which specific version of Tomcat 5.0.x are you trying? I seem to recall that there were a couple of bugs in the tag pooling code that could bite you in a page with lots of tags (typical of Struts apps), but that these bugs were fixed in 5.0.9. If that doesn't fix the problem, you can also turn off tag pooling with a servlet init parameter -- read the docs in $CATALINA_HOME/conf/web.xml for which one needs to be set. Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1 - 5.0 Web-app Porting
On Fri, 12 Sep 2003 [EMAIL PROTECTED] wrote: Date: Fri, 12 Sep 2003 16:01:57 -0500 From: [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Tomcat 4.1 - 5.0 Web-app Porting Hi, I am trying to port a web-application originally written with Tomcat 4.1 to Tomcat 5.0. The application uses struts and throws the following exception when launched: The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.NullPointerException org.apache.jasper.runtime.TagHandlerPool.reuse(TagHandlerPool.java:176) com.acterna.cable.rda.index_jsp. _jspx_meth_bean_message_0(index_jsp.java:119) com.acterna.cable.rda.index_jsp._jspService(index_jsp.java:67) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) Which specific version of Tomcat 5.0.x are you trying? I seem to recall that there were a couple of bugs in the tag pooling code that could bite you in a page with lots of tags (typical of Struts apps), but that these bugs were fixed in 5.0.9. If that doesn't fix the problem, you can also turn off tag pooling with a servlet init parameter -- read the docs in $CATALINA_HOME/conf/web.xml for which one needs to be set. Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]