RE: Problems with Tomcat 4.0.5
Thanks Shapira. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 05 October 2004 18:04 To: Tomcat Users List Subject: RE: Problems with Tomcat 4.0.5 Hi, Tomcat 4.0.5 is not a good choice for a production system, because it's not a stable release. 4.0.6 was a stable release. Beyond that, I suggest you check out the status pages on the Tomcat site, which urge you to update to a more recent and supported branch, such as Tomcat 5.0. Yoav Shapira Millennium Research Informatics >-Original Message- >From: Hassan Sajjad [mailto:[EMAIL PROTECTED] >Sent: Tuesday, October 05, 2004 12:59 PM >To: [EMAIL PROTECTED] >Subject: Problems with Tomcat 4.0.5 > >Hi > > > >I have developed a J2EE Application (1.3 specs), using Struts 1.1 >Framework. >It also uses Tiles, as integrated into the Struts Framework. The >application >is built on Tomcat 4.1.27, and works well on the development env. However, >the production env /host uses Tomcat 4.0.5, and it's where it all plunges >into problems. > >The exception is in JSP Custom Tags. My Site uses composite view pattern >via >Tiles, and the tomcat engine is failing to render the composite views >successfully. > > > >Anyone has any idea? How to over come this issue? Host has a limitation and >can't upgrade the tomcat. Is there a work around? > > > >Much appreciate your help. > > > >Thanks > >Hassan > > > >Stack Trace: > > > >2004-10-05 16:18:45 WarpEngine[Apache]: Mapping request >2004-10-05 16:18:45 WarpHost[claudius.davanco.com]: Mapping request for >Host >2004-10-05 16:18:45 ApplicationDispatcher[/piweb] Servlet.service() for >servlet default threw exception >java.lang.IllegalStateException >at >org.apache.jasper.runtime.ServletResponseWrapperInclude.getOutputStream (Ser >v >letResponseWrapperInclude.java:109) >at >org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServle t.ja >v >a:1146) >at >org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:5 19) >at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) >at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) >at >org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispat cher >. >java:683) >at >org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDis patc >h >er.java:574) >at >org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispa tche >r >.java:497) >at >org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.j ava: >8 >19) >at >org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java: 391) >at >org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:137) >at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:177) >at >org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:756) >at >org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertT ag.j >a >va:881) >at >org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:473) >at >org.apache.jsp.classicLayout$jsp._jspService(classicLayout$jsp.java:326 ) >at >org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) >at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) >at >org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServl et.j >a >va:201) >at >org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381 ) >at >org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473) >at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) >at >org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispat cher >. >java:683) >at >org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDis patc >h >er.java:431) >at >org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispa tche >r >.java:355) >at >org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.ja va:1 >0 >69) >at >org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestPro cess >o >r.java:274) > >at org.apache.struts.tiles.TilesRequestProcessor 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
Problems with Tomcat 4.0.5
Hi I have developed a J2EE Application (1.3 specs), using Struts 1.1 Framework. It also uses Tiles, as integrated into the Struts Framework. The application is built on Tomcat 4.1.27, and works well on the development env. However, the production env /host uses Tomcat 4.0.5, and it's where it all plunges into problems. The exception is in JSP Custom Tags. My Site uses composite view pattern via Tiles, and the tomcat engine is failing to render the composite views successfully. Anyone has any idea? How to over come this issue? Host has a limitation and can't upgrade the tomcat. Is there a work around? Much appreciate your help. Thanks Hassan Stack Trace: 2004-10-05 16:18:45 WarpEngine[Apache]: Mapping request 2004-10-05 16:18:45 WarpHost[claudius.davanco.com]: Mapping request for Host 2004-10-05 16:18:45 ApplicationDispatcher[/piweb] Servlet.service() for servlet default threw exception java.lang.IllegalStateException at org.apache.jasper.runtime.ServletResponseWrapperInclude.getOutputStream(Serv letResponseWrapperInclude.java:109) at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.jav a:1146) at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:519) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher. java:683) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatch er.java:574) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher .java:497) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:8 19) at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:391) at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:137) at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:177) at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:756) at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.ja va:881) at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:473) at org.apache.jsp.classicLayout$jsp._jspService(classicLayout$jsp.java:326) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:201) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher. java:683) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch er.java:431) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher .java:355) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10 69) at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcesso r.java:274) at org.apache.struts.tiles.TilesRequestProcessor
Re: Problem with UserTransaction reference within Servlet code.
Guy, I've seen the alternative product at http://www.atomikos.com/download.html, it seems good, however in my instance I only require transaction support to make a composite view from more than one JSP pages (Templating), and I want this to be done in a transaction. Due to this reason I'm not concerned if JOTM does not support database crash etc. Cheers Hassan - Original Message - From: "Guy Pardon" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, April 06, 2004 2:26 PM Subject: Re: Problem with UserTransaction reference within Servlet code. > Hi, > > True, it's nicely written but it suggests things that JOTM has never > been able to do. > > In particular, JOTM is not a "fully functional transaction manager" and > will not recover your databases after restart or crash - meaning that > the claim that it makes your application robust is to be taken with at > least a few grains of salt (especially if you value data integrity)... > > Of course, one will probably say that I'm biased in what I value to be > important in a JTA ;-) > > Best regards, > > Guy > > On dinsdag, apr 6, 2004, at 15:10 Europe/Brussels, Hassan Sajjad wrote: > > > Thanks Jon, the resource you mentioned at ONJava did the magic. It's > > excellent tutorial-type Article, for anyone interested in knowledge > > reading. > > It's > > http://www.onjava.com/pub/a/onjava/2003/07/30/ > > jotm_transactions.html?page=1 > > > > Rgds > > Hassan > > > > - Original Message - > > From: "Hassan Sajjad" <[EMAIL PROTECTED]> > > To: "Tomcat Users List" <[EMAIL PROTECTED]> > > Sent: Tuesday, April 06, 2004 1:17 PM > > Subject: Re: Problem with UserTransaction reference within Servlet > > code. > > > > > >> This looks very promising Jon. > >> > >> Thanks a lot mate. > >> > >> - Original Message - > >> From: "Jon Wingfield" <[EMAIL PROTECTED]> > >> To: "Tomcat Users List" <[EMAIL PROTECTED]> > >> Sent: Tuesday, April 06, 2004 12:58 PM > >> Subject: Re: Problem with UserTransaction reference within Servlet > >> code. > >> > >> > >>> And of course: > >>> > >> > > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource- > > examples-howto.html#Tyrex%20Connection%20Pool > >>> > >>> Although I'm not sure how actively maintained Tyrex is these days. > >>> http://sourceforge.net/projects/tyrex/ > >>> > >>> Jon > >>> > >>> Jon Wingfield wrote: > >>> > >>>> There is always a way ;) > >>>> > >>>> Saw this the other day: > >>>> http://www.theserverside.com/discussions/thread.tss?thread_id=24879 > >>>> > >>>> Googled for this for JTA integration with tomcat: > >>>> http://www.onjava.com/pub/a/onjava/2003/07/30/jotm_transactions.html > >>>> > >>>> JNDI config for tomcat: > >>>> > >> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources- > >> howto.html > >>>> > >>>> Have fun, > >>>> > >>>> Jon > >>>> > >>>> Hassan Sajjad wrote: > >>>> > >>>>> Jon Wingfield, thanks for your reply. > >>>>> > >>>>> My application is a Web Application (.war) only, no ejb's etc. > > However, > >>>>> since I'm using Composite View Pattern (aka Templating), I want > >> different > >>>>> parts to be combined into One View, all in one transaction. This is > >>>>> done in > >>>>> a Servlet. > >>>>> Now if Tomcat doesn't provide a reference to an implementation of > >>>>> javax.transaction.UserTransaction, through JNDI lookup, then I > > believe > >>>>> there > >>>>> must be some other of doing this. e.g. Using a third party package > > that > >>>>> provides the implementation of javax.transaction api and plugging > >>>>> it > >>>>> in the > >>>>> application. Do you know of any? > >>>>> > >>>>> Remember, after all this is on the Web Tier, Tomcat tier, there > >>>>> must > > be > >> a > >>>>> way of doing it! > >>>>> > >>>>> Thanks > >>>>> Hassan > >>> > >>> > >>> > >>> - > >>> 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] > > > > > > > > Dr. Guy Pardon ( [EMAIL PROTECTED] ) > Atomikos: Your Partner for Reliable eBusiness Coordination > http://www.atomikos.com/ > > The information in this email is confidential and only meant for the > addressee(s). The content of this email is informal and will not be > legally binding for Atomikos. > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with UserTransaction reference within Servlet code.
Thanks Jon, the resource you mentioned at ONJava did the magic. It's excellent tutorial-type Article, for anyone interested in knowledge reading. It's http://www.onjava.com/pub/a/onjava/2003/07/30/jotm_transactions.html?page=1 Rgds Hassan - Original Message - From: "Hassan Sajjad" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, April 06, 2004 1:17 PM Subject: Re: Problem with UserTransaction reference within Servlet code. > This looks very promising Jon. > > Thanks a lot mate. > > - Original Message - > From: "Jon Wingfield" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Sent: Tuesday, April 06, 2004 12:58 PM > Subject: Re: Problem with UserTransaction reference within Servlet code. > > > > And of course: > > > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html#Tyrex%20Connection%20Pool > > > > Although I'm not sure how actively maintained Tyrex is these days. > > http://sourceforge.net/projects/tyrex/ > > > > Jon > > > > Jon Wingfield wrote: > > > > > There is always a way ;) > > > > > > Saw this the other day: > > > http://www.theserverside.com/discussions/thread.tss?thread_id=24879 > > > > > > Googled for this for JTA integration with tomcat: > > > http://www.onjava.com/pub/a/onjava/2003/07/30/jotm_transactions.html > > > > > > JNDI config for tomcat: > > > > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.html > > > > > > Have fun, > > > > > > Jon > > > > > > Hassan Sajjad wrote: > > > > > >> Jon Wingfield, thanks for your reply. > > >> > > >> My application is a Web Application (.war) only, no ejb's etc. However, > > >> since I'm using Composite View Pattern (aka Templating), I want > different > > >> parts to be combined into One View, all in one transaction. This is > > >> done in > > >> a Servlet. > > >> Now if Tomcat doesn't provide a reference to an implementation of > > >> javax.transaction.UserTransaction, through JNDI lookup, then I believe > > >> there > > >> must be some other of doing this. e.g. Using a third party package that > > >> provides the implementation of javax.transaction api and plugging it > > >> in the > > >> application. Do you know of any? > > >> > > >> Remember, after all this is on the Web Tier, Tomcat tier, there must be > a > > >> way of doing it! > > >> > > >> Thanks > > >> Hassan > > > > > > > > - > > 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: Problem with UserTransaction reference within Servlet code.
This looks very promising Jon. Thanks a lot mate. - Original Message - From: "Jon Wingfield" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, April 06, 2004 12:58 PM Subject: Re: Problem with UserTransaction reference within Servlet code. > And of course: > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html#Tyrex%20Connection%20Pool > > Although I'm not sure how actively maintained Tyrex is these days. > http://sourceforge.net/projects/tyrex/ > > Jon > > Jon Wingfield wrote: > > > There is always a way ;) > > > > Saw this the other day: > > http://www.theserverside.com/discussions/thread.tss?thread_id=24879 > > > > Googled for this for JTA integration with tomcat: > > http://www.onjava.com/pub/a/onjava/2003/07/30/jotm_transactions.html > > > > JNDI config for tomcat: > > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.html > > > > Have fun, > > > > Jon > > > > Hassan Sajjad wrote: > > > >> Jon Wingfield, thanks for your reply. > >> > >> My application is a Web Application (.war) only, no ejb's etc. However, > >> since I'm using Composite View Pattern (aka Templating), I want different > >> parts to be combined into One View, all in one transaction. This is > >> done in > >> a Servlet. > >> Now if Tomcat doesn't provide a reference to an implementation of > >> javax.transaction.UserTransaction, through JNDI lookup, then I believe > >> there > >> must be some other of doing this. e.g. Using a third party package that > >> provides the implementation of javax.transaction api and plugging it > >> in the > >> application. Do you know of any? > >> > >> Remember, after all this is on the Web Tier, Tomcat tier, there must be a > >> way of doing it! > >> > >> Thanks > >> Hassan > > > > - > 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: Problem with UserTransaction reference within Servlet code.
Jon Wingfield, thanks for your reply. My application is a Web Application (.war) only, no ejb's etc. However, since I'm using Composite View Pattern (aka Templating), I want different parts to be combined into One View, all in one transaction. This is done in a Servlet. Now if Tomcat doesn't provide a reference to an implementation of javax.transaction.UserTransaction, through JNDI lookup, then I believe there must be some other of doing this. e.g. Using a third party package that provides the implementation of javax.transaction api and plugging it in the application. Do you know of any? Remember, after all this is on the Web Tier, Tomcat tier, there must be a way of doing it! Thanks Hassan - Original Message - From: "Jon Wingfield" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, April 06, 2004 11:25 AM Subject: Re: Problem with UserTransaction reference within Servlet code. > The answer's in the question ;) > Tomcat is not a J2EE Server but an implementation of the Servlet > Specification (which is but a part of the whole J2EE spec). > Tomcat's JNDI lookups are in-process only. > > Need an open source J2EE container? Have a look at JBoss... > > Hassan Sajjad wrote: > > Hi > > > > Can anyone help! > > > > Problem with UserTransaction reference within Servlet code. > > > > When you reference UserTransaction object in your Servlet Code, as from J2EE Specification: The J2EE Product Provider is responsible for providing an appropriate object as required > > > > There's a code snippet. > > > > Context initCtx = new InitialContext(); > > UserTransaction tx = (UserTransaction)initCtx.lookup("java:comp/UserTransaction"); > > > > This works fine on J2EE Impementation Servers but fails on Tomcat 4.1.3. > > > > Exception: > > > > javax.naming.NameNotFoundException: Name javax.transaction.UserTransaction is not bound in this Context > > at org.apache.naming.NamingContext.lookup(NamingContext.java:811) > > at org.apache.naming.NamingContext.lookup(NamingContext.java:194) > > at org.apache.naming.SelectorContext.lookup(SelectorContext.java:183) > > at javax.naming.InitialContext.lookup(InitialContext.java:347) > > > > > > Thanks > > Hassan > > PREMIER HOUSEWARES > > Premier Business Park, 55 Jordanvale Avenue > > Whiteinch Glasgow G14 0QP > > UK > > > > - > 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]
Problem with UserTransaction reference within Servlet code.
Hi Can anyone help! Problem with UserTransaction reference within Servlet code. When you reference UserTransaction object in your Servlet Code, as from J2EE Specification: The J2EE Product Provider is responsible for providing an appropriate object as required There's a code snippet. Context initCtx = new InitialContext(); UserTransaction tx = (UserTransaction)initCtx.lookup("java:comp/UserTransaction"); This works fine on J2EE Impementation Servers but fails on Tomcat 4.1.3. Exception: javax.naming.NameNotFoundException: Name javax.transaction.UserTransaction is not bound in this Context at org.apache.naming.NamingContext.lookup(NamingContext.java:811) at org.apache.naming.NamingContext.lookup(NamingContext.java:194) at org.apache.naming.SelectorContext.lookup(SelectorContext.java:183) at javax.naming.InitialContext.lookup(InitialContext.java:347) Thanks Hassan PREMIER HOUSEWARES Premier Business Park, 55 Jordanvale Avenue Whiteinch Glasgow G14 0QP UK
Problem with UserTransaction reference within Servlet code.
Hi Can anyone help! Problem with UserTransaction reference within Servlet code. When you reference UserTransaction object in your Servlet Code, as from = J2EE Specification: The J2EE Product Provider is responsible for = providing an appropriate object as required Context initCtx =3D new InitialContext(); // Look up the UserTransaction object. UserTransaction tx =3D = (UserTransaction)initCtx.lookup("java:comp/UserTransaction"); This works fine on J2EE Impementation Servers but fails on Tomcat 4.1.3. = Exception: javax.naming.NameNotFoundException: Name = javax.transaction.UserTransaction is no t bound in this Context at = org.apache.naming.NamingContext.lookup(NamingContext.java:811) at = org.apache.naming.NamingContext.lookup(NamingContext.java:194) at = org.apache.naming.SelectorContext.lookup(SelectorContext.java:183) at javax.naming.InitialContext.lookup(InitialContext.java:347) Thanks Hassan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]