[opencms-dev] Ds:counter leads to error
Hartmann, Waehrisch & Feykes GmbH
hartmann at waehrisch-feykes.de
Tue Jan 20 16:25:02 CET 2004
It seems that the Method "getCmsObject()" has been removed from the class
com.opencms.flex.cache.CmsFlexRequest in Version 5.0.1!!! Without
deprecation.
This is very bad practice for a minor bugfix release.
You should really expect that modules for 5.0.0 would work with version
5.0.1 without changes.
Bye,
Stephan
----- Original Message -----
From: <Reinier.Battenberg at mbcac.Mercedes-Benz.com>
To: <opencms-dev at opencms.org>
Sent: Tuesday, January 20, 2004 3:53 PM
Subject: RE: [opencms-dev] Ds:counter leads to error
> Bingo!
>
> As the code that is generating the error is in the baseclass
> "BodyTagSupport", I suspected it did not have anything to do with the
> counter code, but with something in the core.
>
> Yesterday, we upgraded to 5.01, so I setup a server with 5.0 today.
>
> And that solved the issue. I am counting away!.
>
> My knowledge ends here, I guess. Is there someone here who can pick this
up
> further, or shall I put a description in the buglist?
>
> Rgds,
>
> reinier
>
> PS I guess this is the line in the error. Maybe it just lacks a ;?
>
>
com.opencms.flex.cache.CmsFlexRequest.getCmsObject()Lcom/opencms/file/CmsObj
> ect;
>
>
>
> -----Original Message-----
> From: Hartmann, Waehrisch & Feykes GmbH
> [mailto:hartmann at waehrisch-feykes.de]
> Sent: 20 January 2004 13:31
> To: opencms-dev at opencms.org
> Subject: Re: [opencms-dev] Ds:counter leads to error
>
>
> You can try to create an instance of TagCounter, call setPageContext(),
call
> doStartTag() and then doEndTag():
>
> TagCounter counter = new TagCounter();
counter.setPageContext(pageContext);
> counter.doStartTag();
> counter.doEndTag();
>
> Bye,
> Stephan
>
> ----- Original Message -----
> From: <Reinier.Battenberg at mbcac.Mercedes-Benz.com>
> To: <opencms-dev at opencms.org>
> Sent: Tuesday, January 20, 2004 1:07 PM
> Subject: RE: [opencms-dev] Ds:counter leads to error
>
>
> > Hi Stephan,
> >
> > I did some extra tests.
> > 1. imported the java class & created it using JSP code. I can
> > instantiate the object, but it is useless, it need to be used with the
> > taglib. But at least I know it is not a lost .jar file, or something
> > similar) 2. I added the cms taglib and used it(<cms:user
> > property="name"/>. It
> works.
> > Pasting the <ds:counter /> tag in my testfile is the thing that makes
> > it
> go,
> > aaaaaargh. Cutting it out, solves it.
> >
> > BTW the speed of anwsers here is tremendous!
> >
> > Rgds,
> >
> > reinier
> >
> > -----Original Message-----
> > From: Hartmann, Waehrisch & Feykes GmbH
> > [mailto:hartmann at waehrisch-feykes.de]
> > Sent: 20 January 2004 12:05
> > To: opencms-dev at opencms.org
> > Subject: Re: [opencms-dev] Ds:counter leads to error
> >
> >
> > Hi,
> >
> > is this jsp called through OpenCms, i.e. it is not exported as a
> > static resource? Is it cached?
> >
> > Regards,
> > Stephan
> >
> > ----- Original Message -----
> > From: <Reinier.Battenberg at mbcac.Mercedes-Benz.com>
> > To: <opencms-dev at opencms.org>
> > Sent: Tuesday, January 20, 2004 11:30 AM
> > Subject: [opencms-dev] Ds:counter leads to error
> >
> >
> > > Hi,
> > >
> > > I downloaded and installed the dynamic counter from the sandbox. I
> > > made
> > the
> > > easiest possible .jsp, and it still comes up with an error (on 2
> > > separate systems it behaves the same).
> > >
> > > Importing the taglib is not causing it, it is when I remove the
> > <ds:counter
> > > /> that the error disapears.
> > >
> > > I must be doing something wrong. Does anyone know what?
> > >
> > > Rgds,
> > >
> > > Reinier Battenberg
> > > Senior IT Developer
> > > Mercedes-Benz CAC N.V.
> > >
> > > .jsp source:
> > >
> > > <%@ taglib prefix="ds" uri="http://www.dynamicsources.de/taglib/ds"
> > > %> <html> <head> <title> test page for counter </title>
> > > </head
> > > <body>
> > > The counter is at: <ds:counter />
> > > </body>
> > > </html>
> > >
> > >
> > > Error:
> > >
> > > javax.servlet.ServletException: Resource loader error in file
> > > '/Intra/en/count.jsp'
> > >
> > > Root cause:
> > > org.apache.jasper.JasperException:
> > >
> >
>
com.opencms.flex.cache.CmsFlexRequest.getCmsObject()Lcom/opencms/file/CmsObj
> > > ect;
> > > at
> > >
> >
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
> > > 54)
> > > at
> > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:
> > > 29
> > > 5)
> > > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
> > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > at
> > >
> >
>
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
> > > java:684)
> > > at
> > >
> >
>
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatch
> > > er.java:575)
> > > at
> > >
> >
>
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher
> > > .java:498)
> > > at
> > >
> >
>
com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDispat
> > > cher.java:158)
> > > at com.opencms.flex.CmsJspLoader.service(CmsJspLoader.java:972)
> > > at
> > >
> >
>
com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDispat
> > > cher.java:256)
> > > at com.opencms.flex.CmsJspLoader.load(CmsJspLoader.java:577)
> > > at com.opencms.flex.CmsJspLoader.initlaunch(CmsJspLoader.java:239)
> > > at com.opencms.core.OpenCms.showResource(OpenCms.java:961)
> > > at
> > > com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:31
> > > 0)
> > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > at
> > >
> >
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> > > FilterChain.java:247)
> > > at
> > >
> >
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> > > ain.java:193)
> > > at
> > >
> >
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> > > va:256)
> > > at
> > >
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> > > eNext(StandardPipeline.java:643)
> > > at
> > >
> >
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> > > at
> > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995
> > > )
> > > at
> > >
> >
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> > > va:191)
> > > at
> > >
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> > > eNext(StandardPipeline.java:643)
> > > at
> > >
> >
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> > > at
> > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995
> > > )
> > > at
> > > org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2
> > > 416)
> > > at
> > >
> >
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
> > > )
> > > at
> > >
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> > > eNext(StandardPipeline.java:643)
> > > at
> > >
> >
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
> > > java:171)
> > > at
> > >
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> > > eNext(StandardPipeline.java:641)
> > > at
> > >
> >
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
> > > )
> > > at
> > >
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> > > eNext(StandardPipeline.java:641)
> > > at
> > >
> >
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> > > at
> > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995
> > > )
> > > at
> > >
> >
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
> > > :174)
> > > at
> > >
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> > > eNext(StandardPipeline.java:643)
> > > at
> > >
> >
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> > > at
> > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995
> > > )
> > > at
> > > org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223
> > > )
> > > at
> > >
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
> > > at
> > >
> >
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
> > > ction(Http11Protocol.java:392)
> > > at
> > > org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.jav
> > > a:
> > > 565)
> > > at
> > >
> >
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> > > a:619)
> > > at java.lang.Thread.run(Thread.java:534)
> > >
> > > --------------- End of root cause.
> > >
> > > at com.opencms.flex.CmsJspLoader.service(CmsJspLoader.java:979)
> > > at
> > >
> >
>
com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDispat
> > > cher.java:256)
> > > at com.opencms.flex.CmsJspLoader.load(CmsJspLoader.java:577)
> > > at com.opencms.flex.CmsJspLoader.initlaunch(CmsJspLoader.java:239)
> > > at com.opencms.core.OpenCms.showResource(OpenCms.java:961)
> > > at
> > > com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:31
> > > 0)
> > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > at
> > >
> >
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> > > FilterChain.java:247)
> > > at
> > >
> >
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> > > ain.java:193)
> > > at
> > >
> >
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> > > va:256)
> > > at
> > >
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> > > eNext(StandardPipeline.java:643)
> > > at
> > >
> >
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> > > at
> > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995
> > > )
> > > at
> > >
> >
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> > > va:191)
> > > at
> > >
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> > > eNext(StandardPipeline.java:643)
> > > at
> > >
> >
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> > > at
> > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995
> > > )
> > > at
> > > org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2
> > > 416)
> > > at
> > >
> >
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
> > > )
> > > at
> > >
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> > > eNext(StandardPipeline.java:643)
> > > at
> > >
> >
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
> > > java:171)
> > > at
> > >
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> > > eNext(StandardPipeline.java:641)
> > > at
> > >
> >
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
> > > )
> > > at
> > >
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> > > eNext(StandardPipeline.java:641)
> > > at
> > >
> >
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> > > at
> > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995
> > > )
> > > at
> > >
> >
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
> > > :174)
> > > at
> > >
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> > > eNext(StandardPipeline.java:643)
> > > at
> > >
> >
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> > > at
> > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995
> > > )
> > > at
> > > org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223
> > > )
> > > at
> > >
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
> > > at
> > >
> >
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
> > > ction(Http11Protocol.java:392)
> > > at
> > > org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.jav
> > > a:
> > > 565)
> > > at
> > >
> >
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> > > a:619)
> > > at java.lang.Thread.run(Thread.java:534)
> > >
> > >
> > > _______________________________________________
> > > This mail is send to you from the opencms-dev mailing list To change
> > > your list options, or to unsubscribe from the list, please visit
> > > http://mail.opencms.org/mailman/listinfo/opencms-dev
> > >
> >
> > _______________________________________________
> > This mail is send to you from the opencms-dev mailing list
> > To change your list options, or to unsubscribe from the list, please
> > visit http://mail.opencms.org/mailman/listinfo/opencms-dev
> > _______________________________________________
> > This mail is send to you from the opencms-dev mailing list
> > To change your list options, or to unsubscribe from the list, please
> > visit http://mail.opencms.org/mailman/listinfo/opencms-dev
> >
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
More information about the opencms-dev
mailing list