Hi there, I swear that this code worked a few minutes ago and now it gets
me an error. I simply try to follow the document here https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Tutorial+-+A+Beginners+Development+Guide#OFBizTutorial-ABeginnersDevelopmentGuide-Part1and the error shows up when I try to run the code done in part I. This is the java console: [java] 2012-12-18 16:05:25,232 (http-bio-0.0.0.0-8080-exec-2) [ ControlServlet.java:140:INFO ] [[[main(Domain:http://localhost)] Request Begun, encoding=[UTF-8]- total:0.0,since last(Begin):0.0]] [java] 2012-12-18 16:05:25,239 (http-bio-0.0.0.0-8080-exec-2) [ ConfigXMLReader.java:115:INFO ] controller loaded: 0.001s, 1 requests, 1 views in jndi:/0.0.0.0/practice/WEB-INF/controller.xml [java] 2012-12-18 16:05:25,247 (http-bio-0.0.0.0-8080-exec-2) [ ConfigXMLReader.java:115:INFO ] controller loaded: 0.001s, 36 requests, 19 views in file:/C:/workplace/ofbiz/framework/common/webcommon/WEB-INF/common-controller.xml [java] 2012-12-18 16:05:25,247 (http-bio-0.0.0.0-8080-exec-2) [ RequestHandler.java:775:INFO ] Rendering View [main], sessionId=D1D67E25E9DACB8CC8D45535908A9D3D.jvm1 [java] 2012-12-18 16:05:25,248 (http-bio-0.0.0.0-8080-exec-2) [ ViewFactory.java:125:WARN ] Warning: could not load view handler class because it was not found; note that some views may not work: java.lang.ClassNotFoundException: org.ofbiz.widget.screen.ScreenWidgetViewHandler [java] 2012-12-18 16:05:25,249 (http-bio-0.0.0.0-8080-exec-2) [ ControlServlet.java:223:ERROR] [java] ---- exception report ---------------------------------------------------------- [java] Error in request handler: [java] Exception: org.ofbiz.webapp.view.ViewHandlerException [java] Message: No handler found for type: screen [java] ---- stack trace --------------------------------------------------------------- [java] org.ofbiz.webapp.view.ViewHandlerException: No handler found for type: screen [java] org.ofbiz.webapp.view.ViewFactory.getViewHandler(ViewFactory.java:102) [java] org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:876) [java] org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:591) [java] org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:214) [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:621) [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:722) [java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) [java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [java] org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:314) [java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [java] org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) [java] org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) [java] org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) [java] org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) [java] org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) [java] org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) [java] org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929) [java] org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) [java] org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002) [java] org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585) [java] org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312) [java] java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [java] java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [java] java.lang.Thread.run(Unknown Source) [java] -------------------------------------------------------------------------------- [java] 2012-12-18 16:05:25,249 (http-bio-0.0.0.0-8080-exec-2) [ ControlServlet.java:243:ERROR] An error occurred, going to the errorPage: /error/error.jsp [java] 2012-12-18 16:05:25,249 (http-bio-0.0.0.0-8080-exec-2) [ ControlServlet.java:250:ERROR] Including errorPage: /error/error.jsp [java] 2012-12-18 16:05:25,252 (http-bio-0.0.0.0-8080-exec-2) [ ServerHitBin.java:637:INFO ] Visit delegatorName=default, ServerHitBin delegatorName=default [java] 2012-12-18 16:05:25,294 (http-bio-0.0.0.0-8080-exec-2) [ ControlServlet.java:324:INFO ] [[[main(Domain:http://localhost)] Request Done- total:0.062,since last([main(Domain:http...):0.062]] -- *Michael Gawrychowski * |
Administrator
|
You broke the screen handler
Message: No handler found for type: screen Not sure how you did that, it's normally in common-controller.xml (also in ecommerce controller, the others you can neglect) <handler name="screen" type="view" class="org.ofbiz.widget.screen.MacroScreenViewHandler"/> From: "Michael Gawrychowski" <[hidden email]> > Hi there, I swear that this code worked a few minutes ago and now it gets > me an error. I simply try to follow the document here > https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Tutorial+-+A+Beginners+Development+Guide#OFBizTutorial-ABeginnersDevelopmentGuide-Part1and > the error shows up when I try to run the code done in part I. This is > the java console: > > > [java] 2012-12-18 16:05:25,232 (http-bio-0.0.0.0-8080-exec-2) [ > ControlServlet.java:140:INFO ] [[[main(Domain:http://localhost)] Request > Begun, encoding=[UTF-8]- total:0.0,since last(Begin):0.0]] > [java] 2012-12-18 16:05:25,239 (http-bio-0.0.0.0-8080-exec-2) [ > ConfigXMLReader.java:115:INFO ] controller loaded: 0.001s, 1 requests, 1 > views in jndi:/0.0.0.0/practice/WEB-INF/controller.xml > [java] 2012-12-18 16:05:25,247 (http-bio-0.0.0.0-8080-exec-2) [ > ConfigXMLReader.java:115:INFO ] controller loaded: 0.001s, 36 requests, 19 > views in > file:/C:/workplace/ofbiz/framework/common/webcommon/WEB-INF/common-controller.xml > [java] 2012-12-18 16:05:25,247 (http-bio-0.0.0.0-8080-exec-2) [ > RequestHandler.java:775:INFO ] Rendering View [main], > sessionId=D1D67E25E9DACB8CC8D45535908A9D3D.jvm1 > [java] 2012-12-18 16:05:25,248 (http-bio-0.0.0.0-8080-exec-2) [ > ViewFactory.java:125:WARN ] Warning: could not load view handler class > because it was not found; note that some views may not work: > java.lang.ClassNotFoundException: > org.ofbiz.widget.screen.ScreenWidgetViewHandler > [java] 2012-12-18 16:05:25,249 (http-bio-0.0.0.0-8080-exec-2) [ > ControlServlet.java:223:ERROR] > [java] ---- exception report > ---------------------------------------------------------- > [java] Error in request handler: > [java] Exception: org.ofbiz.webapp.view.ViewHandlerException > [java] Message: No handler found for type: screen > [java] ---- stack trace > --------------------------------------------------------------- > [java] org.ofbiz.webapp.view.ViewHandlerException: No handler found > for type: screen > [java] > org.ofbiz.webapp.view.ViewFactory.getViewHandler(ViewFactory.java:102) > [java] > org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:876) > [java] > org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:591) > [java] > org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:214) > [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:621) > [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:722) > [java] > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) > [java] > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) > [java] > org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:314) > [java] > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) > [java] > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) > [java] > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) > [java] > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) > [java] > org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) > [java] > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) > [java] > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) > [java] > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) > [java] > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929) > [java] > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) > [java] > org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002) > [java] > org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585) > [java] > org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312) > [java] java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown > Source) > [java] java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown > Source) > [java] java.lang.Thread.run(Unknown Source) > [java] > -------------------------------------------------------------------------------- > [java] 2012-12-18 16:05:25,249 (http-bio-0.0.0.0-8080-exec-2) [ > ControlServlet.java:243:ERROR] An error occurred, going to the errorPage: > /error/error.jsp > [java] 2012-12-18 16:05:25,249 (http-bio-0.0.0.0-8080-exec-2) [ > ControlServlet.java:250:ERROR] Including errorPage: /error/error.jsp > [java] 2012-12-18 16:05:25,252 (http-bio-0.0.0.0-8080-exec-2) [ > ServerHitBin.java:637:INFO ] Visit delegatorName=default, ServerHitBin > delegatorName=default > [java] 2012-12-18 16:05:25,294 (http-bio-0.0.0.0-8080-exec-2) [ > ControlServlet.java:324:INFO ] [[[main(Domain:http://localhost)] Request > Done- total:0.062,since last([main(Domain:http...):0.062]] > > > -- > *Michael Gawrychowski > * > |
Jacques, thank you for your response. I will look into it. I noticed that
it ran with no errors when I changed the handler to this in the controller.xml: <handler name="screenxml" type="view" class="org.ofbiz.widget.screen.ScreenXmlViewHandler"/> M. * * On Wed, Dec 19, 2012 at 1:02 AM, Jacques Le Roux < [hidden email]> wrote: > You broke the screen handler > Message: No handler found for type: screen > > Not sure how you did that, it's normally in common-controller.xml (also in > ecommerce controller, the others you can neglect) > <handler name="screen" type="view" > class="org.ofbiz.widget.screen.MacroScreenViewHandler"/> > > > From: "Michael Gawrychowski" <[hidden email]> > > Hi there, I swear that this code worked a few minutes ago and now it gets > > me an error. I simply try to follow the document here > > > https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Tutorial+-+A+Beginners+Development+Guide#OFBizTutorial-ABeginnersDevelopmentGuide-Part1and > > the error shows up when I try to run the code done in part I. This is > > the java console: > > > > > > [java] 2012-12-18 16:05:25,232 (http-bio-0.0.0.0-8080-exec-2) [ > > ControlServlet.java:140:INFO ] [[[main(Domain:http://localhost)] Request > > Begun, encoding=[UTF-8]- total:0.0,since last(Begin):0.0]] > > [java] 2012-12-18 16:05:25,239 (http-bio-0.0.0.0-8080-exec-2) [ > > ConfigXMLReader.java:115:INFO ] controller loaded: 0.001s, 1 requests, 1 > > views in jndi:/0.0.0.0/practice/WEB-INF/controller.xml > > [java] 2012-12-18 16:05:25,247 (http-bio-0.0.0.0-8080-exec-2) [ > > ConfigXMLReader.java:115:INFO ] controller loaded: 0.001s, 36 requests, > 19 > > views in > > > file:/C:/workplace/ofbiz/framework/common/webcommon/WEB-INF/common-controller.xml > > [java] 2012-12-18 16:05:25,247 (http-bio-0.0.0.0-8080-exec-2) [ > > RequestHandler.java:775:INFO ] Rendering View [main], > > sessionId=D1D67E25E9DACB8CC8D45535908A9D3D.jvm1 > > [java] 2012-12-18 16:05:25,248 (http-bio-0.0.0.0-8080-exec-2) [ > > ViewFactory.java:125:WARN ] Warning: could not load view handler class > > because it was not found; note that some views may not work: > > java.lang.ClassNotFoundException: > > org.ofbiz.widget.screen.ScreenWidgetViewHandler > > [java] 2012-12-18 16:05:25,249 (http-bio-0.0.0.0-8080-exec-2) [ > > ControlServlet.java:223:ERROR] > > [java] ---- exception report > > ---------------------------------------------------------- > > [java] Error in request handler: > > [java] Exception: org.ofbiz.webapp.view.ViewHandlerException > > [java] Message: No handler found for type: screen > > [java] ---- stack trace > > --------------------------------------------------------------- > > [java] org.ofbiz.webapp.view.ViewHandlerException: No handler found > > for type: screen > > [java] > > org.ofbiz.webapp.view.ViewFactory.getViewHandler(ViewFactory.java:102) > > [java] > > > org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:876) > > [java] > > > org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:591) > > [java] > > org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:214) > > [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:621) > > [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:722) > > [java] > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) > > [java] > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) > > [java] > > org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:314) > > [java] > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) > > [java] > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) > > [java] > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) > > [java] > > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) > > [java] > > > org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) > > [java] > > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) > > [java] > > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) > > [java] > > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) > > [java] > > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929) > > [java] > > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) > > [java] > > > org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002) > > [java] > > > org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585) > > [java] > > > org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312) > > [java] java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown > > Source) > > [java] java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown > > Source) > > [java] java.lang.Thread.run(Unknown Source) > > [java] > > > -------------------------------------------------------------------------------- > > [java] 2012-12-18 16:05:25,249 (http-bio-0.0.0.0-8080-exec-2) [ > > ControlServlet.java:243:ERROR] An error occurred, going to the errorPage: > > /error/error.jsp > > [java] 2012-12-18 16:05:25,249 (http-bio-0.0.0.0-8080-exec-2) [ > > ControlServlet.java:250:ERROR] Including errorPage: /error/error.jsp > > [java] 2012-12-18 16:05:25,252 (http-bio-0.0.0.0-8080-exec-2) [ > > ServerHitBin.java:637:INFO ] Visit delegatorName=default, ServerHitBin > > delegatorName=default > > [java] 2012-12-18 16:05:25,294 (http-bio-0.0.0.0-8080-exec-2) [ > > ControlServlet.java:324:INFO ] [[[main(Domain:http://localhost)] Request > > Done- total:0.062,since last([main(Domain:http...):0.062]] > > > > > > -- > > *Michael Gawrychowski > > * > > > -- *Michael Gawrychowski Senior Software Engineer * *[hidden email] 877-4No-Spam (466-7726) ext. 6439* *Your Premier SaaS Distributor For....* *Spam & Virus Filtering <http://www.excelmicro.com/spam-virus-filtering> / Email Archiving <http://www.excelmicro.com/archiving> / Email Encryption<http://www.excelmicro.com/encryption> / Google Apps <http://www.excelmicro.com/googleapps> / Web Security<http://www.excelmicro.com/web_security> * |
In reply to this post by Jacques Le Roux
Jacques, it looks like the common-controller.xml file located under
framework/common/webcommon already has a line with: <handler name="screen" type="view" class="org.ofbiz.widget.screen.MacroScreenViewHandler"/> M. On Wed, Dec 19, 2012 at 1:02 AM, Jacques Le Roux < [hidden email]> wrote: > common-controller.xml -- *Michael Gawrychowski Senior Software Engineer * *[hidden email] 877-4No-Spam (466-7726) ext. 6439* *Your Premier SaaS Distributor For....* *Spam & Virus Filtering <http://www.excelmicro.com/spam-virus-filtering> / Email Archiving <http://www.excelmicro.com/archiving> / Email Encryption<http://www.excelmicro.com/encryption> / Google Apps <http://www.excelmicro.com/googleapps> / Web Security<http://www.excelmicro.com/web_security> * |
Administrator
|
Before changing things around you need to understand what you are doing, or is this part of the tuto?
Jacques From: "Michael Gawrychowski" <[hidden email]> > Jacques, it looks like the common-controller.xml file located under > framework/common/webcommon already has a line with: <handler name="screen" > type="view" class="org.ofbiz.widget.screen.MacroScreenViewHandler"/> > > M. > > On Wed, Dec 19, 2012 at 1:02 AM, Jacques Le Roux < > [hidden email]> wrote: > >> common-controller.xml > > > > > -- > *Michael Gawrychowski > Senior Software Engineer * > *[hidden email] > 877-4No-Spam (466-7726) ext. 6439* > > > *Your Premier SaaS Distributor For....* > *Spam & Virus Filtering > <http://www.excelmicro.com/spam-virus-filtering> / Email > Archiving <http://www.excelmicro.com/archiving> / Email > Encryption<http://www.excelmicro.com/encryption> > / Google Apps <http://www.excelmicro.com/googleapps> / Web > Security<http://www.excelmicro.com/web_security> > * > |
Hi Jacques, I was not changing anything. I'm going through the tutorial and
it looks like it works when I remove the line with: <handler name="screen" type="view" class="org.ofbiz.widget.screen.MacroScreenViewHandler"/> at all. I guess it uses the default one defined somewhere earlier in the code. M. On Wed, Dec 19, 2012 at 5:01 PM, Jacques Le Roux < [hidden email]> wrote: > Before changing things around you need to understand what you are doing, > or is this part of the tuto? > > Jacques > > From: "Michael Gawrychowski" <[hidden email]> > > Jacques, it looks like the common-controller.xml file located under > > framework/common/webcommon already has a line with: <handler > name="screen" > > type="view" class="org.ofbiz.widget.screen.MacroScreenViewHandler"/> > > > > M. > > > > On Wed, Dec 19, 2012 at 1:02 AM, Jacques Le Roux < > > [hidden email]> wrote: > > > >> common-controller.xml > > > > > > > > > > -- > > *Michael Gawrychowski > > Senior Software Engineer * > > *[hidden email] > > 877-4No-Spam (466-7726) ext. 6439* > > > > > > *Your Premier SaaS Distributor For....* > > *Spam & Virus Filtering > > <http://www.excelmicro.com/spam-virus-filtering> / Email > > Archiving <http://www.excelmicro.com/archiving> / Email > > Encryption<http://www.excelmicro.com/encryption> > > / Google Apps <http://www.excelmicro.com/googleapps> / Web > > Security<http://www.excelmicro.com/web_security> > > * > > > -- *Michael Gawrychowski Senior Software Engineer * *[hidden email] 877-4No-Spam (466-7726) ext. 6439* *Your Premier SaaS Distributor For....* *Spam & Virus Filtering <http://www.excelmicro.com/spam-virus-filtering> / Email Archiving <http://www.excelmicro.com/archiving> / Email Encryption<http://www.excelmicro.com/encryption> / Google Apps <http://www.excelmicro.com/googleapps> / Web Security<http://www.excelmicro.com/web_security> * |
Free forum by Nabble | Edit this page |