Hi list,
I've downloaded binary ofbiz-rel4.0-current.zip<http://build.hotwaxmedia.com/builds40/ofbiz-rel4.0-current.zip>, and I am trying to deploy first "practice" component webapp by following instruction on: http://docs.ofbiz.org/display/OFBIZ/OFBiz+Beginner%27s+Development+Guide+Using+Practice+Application I have hit few problems under "Create the web app": 1) Step4 said copy existing component e.g. example component web.xml, there is no "example component", but I found framework/example/webapp/example/WEB-INF/web.xml. With this, there is no " mainDecoratorLocation" found. (I found this value from application/product/webapp/catalog/WEB-INF/web.xml though, so I use this) 2) Same thing with "widget" and "error" directory as above and I just copied from the same "catalog" component. 3) Step 10, after the server is started, I get an error: org.ofbiz.webapp.view.ViewHandlerException: Unknown handler type: screen The documentation says I should see the "This is first practice" instead. Any idea? Thanks, Zemian Here is a stacktrace: 2008-10-06 12:02:21,958 (http-0.0.0.0-8080-Processor4) [ ControlServlet.java:126:DEBUG] [[[main] Servlet Starting, doing setup- total:0.0,since last(Begin):0.0]] 2008-10-06 12:02:21,958 (http-0.0.0.0-8080-Processor4) [ ControlServlet.java:181:DEBUG] [[[main] Setup done, doing Event(s) and View(s)- total:0.0,since last([main] Servlet St...):0.0]] 2008-10-06 12:02:21,961 (http-0.0.0.0-8080-Processor4) [ UtilXml.java:243:DEBUG] XML Read 0.0030s: jndi:/ 0.0.0.0/practice/WEB-INF/controller.xml 2008-10-06 12:02:21,962 (http-0.0.0.0-8080-Processor4) [ ConfigXMLReader.java:558:INFO ] ConfigMap Created: (1) records in 0.0s 2008-10-06 12:02:21,962 (http-0.0.0.0-8080-Processor4) [ ConfigXMLReader.java:716:INFO ] HandlerMap Created: (0) view handlers and (0) request/event handlers in 0.0s 2008-10-06 12:02:21,962 (http-0.0.0.0-8080-Processor4) [ ConfigXMLReader.java:291:INFO ] RequestMap Created: (1) records in 0.0s 2008-10-06 12:02:21,962 (http-0.0.0.0-8080-Processor4) [ ConfigXMLReader.java:385:INFO ] ViewMap Created: (1) records in 0.0s 2008-10-06 12:02:21,963 (http-0.0.0.0-8080-Processor4) [ RequestHandler.java:236:INFO ] [Processing Request]: main sessionId=6A93B3C6E80E0FB1946568791FC5DECB.jvm1 2008-10-06 12:02:21,963 (http-0.0.0.0-8080-Processor4) [ RequestManager.java:116:INFO ] [RequestManager.getRequestAttribute] Value for attribute "null" of uri "main" not found 2008-10-06 12:02:21,963 (http-0.0.0.0-8080-Processor4) [ RequestHandler.java:425:INFO ] [RequestHandler.doRequest]: Response is a view. sessionId=6A93B3C6E80E0FB1946568791FC5DECB.jvm1 2008-10-06 12:02:21,963 (http-0.0.0.0-8080-Processor4) [ RequestHandler.java:578:INFO ] servletName=control, view=main sessionId=6A93B3C6E80E0FB1946568791FC5DECB.jvm1 2008-10-06 12:02:21,964 (http-0.0.0.0-8080-Processor4) [ ControlServlet.java:192:ERROR] ---- exception report ---------------------------------------------------------- Error in request handler: Exception: org.ofbiz.webapp.view.ViewHandlerException Message: Unknown handler type: screen ---- stack trace --------------------------------------------------------------- org.ofbiz.webapp.view.ViewHandlerException: Unknown handler type: screen org.ofbiz.webapp.view.ViewFactory.loadViewHandler(ViewFactory.java:119) org.ofbiz.webapp.view.ViewFactory.getViewHandler(ViewFactory.java:100) org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:642) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:427) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:189) javax.servlet.http.HttpServlet.service(HttpServlet.java:595) javax.servlet.http.HttpServlet.service(HttpServlet.java:688) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) java.lang.Thread.run(Thread.java:613) -------------------------------------------------------------------------------- |
The tutorial is based on the *trunk* version of OFBiz, not Release 4.
Try downloading and installing the latest trunk distribution. -Adrian Zemian Deng wrote: > Hi list, > > I've downloaded binary > ofbiz-rel4.0-current.zip<http://build.hotwaxmedia.com/builds40/ofbiz-rel4.0-current.zip>, > and I am trying to deploy first "practice" component webapp by following > instruction on: > http://docs.ofbiz.org/display/OFBIZ/OFBiz+Beginner%27s+Development+Guide+Using+Practice+Application > > I have hit few problems under "Create the web app": > > 1) Step4 said copy existing component e.g. example component web.xml, there > is no "example component", but I found > framework/example/webapp/example/WEB-INF/web.xml. With this, there is no " > mainDecoratorLocation" found. (I found this value from > application/product/webapp/catalog/WEB-INF/web.xml though, so I use this) > > 2) Same thing with "widget" and "error" directory as above and I just copied > from the same "catalog" component. > > 3) Step 10, after the server is started, I get an error: > org.ofbiz.webapp.view.ViewHandlerException: Unknown handler type: screen > > The documentation says I should see the "This is first practice" instead. > Any idea? > > Thanks, > Zemian > > Here is a stacktrace: > 2008-10-06 12:02:21,958 (http-0.0.0.0-8080-Processor4) [ > ControlServlet.java:126:DEBUG] [[[main] Servlet Starting, doing setup- > total:0.0,since last(Begin):0.0]] > 2008-10-06 12:02:21,958 (http-0.0.0.0-8080-Processor4) [ > ControlServlet.java:181:DEBUG] [[[main] Setup done, doing Event(s) and > View(s)- total:0.0,since last([main] Servlet St...):0.0]] > 2008-10-06 12:02:21,961 (http-0.0.0.0-8080-Processor4) [ > UtilXml.java:243:DEBUG] XML Read 0.0030s: jndi:/ > 0.0.0.0/practice/WEB-INF/controller.xml > 2008-10-06 12:02:21,962 (http-0.0.0.0-8080-Processor4) [ > ConfigXMLReader.java:558:INFO ] ConfigMap Created: (1) records in 0.0s > 2008-10-06 12:02:21,962 (http-0.0.0.0-8080-Processor4) [ > ConfigXMLReader.java:716:INFO ] HandlerMap Created: (0) view handlers and > (0) request/event handlers in 0.0s > 2008-10-06 12:02:21,962 (http-0.0.0.0-8080-Processor4) [ > ConfigXMLReader.java:291:INFO ] RequestMap Created: (1) records in 0.0s > 2008-10-06 12:02:21,962 (http-0.0.0.0-8080-Processor4) [ > ConfigXMLReader.java:385:INFO ] ViewMap Created: (1) records in 0.0s > 2008-10-06 12:02:21,963 (http-0.0.0.0-8080-Processor4) [ > RequestHandler.java:236:INFO ] [Processing Request]: main > sessionId=6A93B3C6E80E0FB1946568791FC5DECB.jvm1 > 2008-10-06 12:02:21,963 (http-0.0.0.0-8080-Processor4) [ > RequestManager.java:116:INFO ] [RequestManager.getRequestAttribute] Value > for attribute "null" of uri "main" not found > 2008-10-06 12:02:21,963 (http-0.0.0.0-8080-Processor4) [ > RequestHandler.java:425:INFO ] [RequestHandler.doRequest]: Response is a > view. sessionId=6A93B3C6E80E0FB1946568791FC5DECB.jvm1 > 2008-10-06 12:02:21,963 (http-0.0.0.0-8080-Processor4) [ > RequestHandler.java:578:INFO ] servletName=control, view=main > sessionId=6A93B3C6E80E0FB1946568791FC5DECB.jvm1 > 2008-10-06 12:02:21,964 (http-0.0.0.0-8080-Processor4) [ > ControlServlet.java:192:ERROR] > ---- exception report > ---------------------------------------------------------- > Error in request handler: > Exception: org.ofbiz.webapp.view.ViewHandlerException > Message: Unknown handler type: screen > ---- stack trace > --------------------------------------------------------------- > org.ofbiz.webapp.view.ViewHandlerException: Unknown handler type: screen > org.ofbiz.webapp.view.ViewFactory.loadViewHandler(ViewFactory.java:119) > org.ofbiz.webapp.view.ViewFactory.getViewHandler(ViewFactory.java:100) > org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:642) > org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:427) > org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:189) > javax.servlet.http.HttpServlet.service(HttpServlet.java:595) > javax.servlet.http.HttpServlet.service(HttpServlet.java:688) > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) > org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248) > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541) > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) > java.lang.Thread.run(Thread.java:613) > -------------------------------------------------------------------------------- > |
I tried with the trunk[1] version and still get the same error:
org.ofbiz.webapp.view.ViewHandlerException: Unknown handler type: screen [1]http://build.hotwaxmedia.com/builds/ofbiz-trunk-current.zip What did I missed? -Z On Mon, Oct 6, 2008 at 12:27 PM, Adrian Crum <[hidden email]> wrote: > The tutorial is based on the *trunk* version of OFBiz, not Release 4. Try > downloading and installing the latest trunk distribution. > > -Adrian > > Zemian Deng wrote: > >> Hi list, >> >> I've downloaded binary >> ofbiz-rel4.0-current.zip< >> http://build.hotwaxmedia.com/builds40/ofbiz-rel4.0-current.zip>, >> >> and I am trying to deploy first "practice" component webapp by following >> instruction on: >> >> http://docs.ofbiz.org/display/OFBIZ/OFBiz+Beginner%27s+Development+Guide+Using+Practice+Application >> >> I have hit few problems under "Create the web app": >> >> 1) Step4 said copy existing component e.g. example component web.xml, >> there >> is no "example component", but I found >> framework/example/webapp/example/WEB-INF/web.xml. With this, there is no " >> mainDecoratorLocation" found. (I found this value from >> application/product/webapp/catalog/WEB-INF/web.xml though, so I use this) >> >> 2) Same thing with "widget" and "error" directory as above and I just >> copied >> from the same "catalog" component. >> >> 3) Step 10, after the server is started, I get an error: >> org.ofbiz.webapp.view.ViewHandlerException: Unknown handler type: screen >> >> The documentation says I should see the "This is first practice" instead. >> Any idea? >> >> Thanks, >> Zemian >> >> Here is a stacktrace: >> 2008-10-06 12:02:21,958 (http-0.0.0.0-8080-Processor4) [ >> ControlServlet.java:126:DEBUG] [[[main] Servlet Starting, doing setup- >> total:0.0,since last(Begin):0.0]] >> 2008-10-06 12:02:21,958 (http-0.0.0.0-8080-Processor4) [ >> ControlServlet.java:181:DEBUG] [[[main] Setup done, doing Event(s) and >> View(s)- total:0.0,since last([main] Servlet St...):0.0]] >> 2008-10-06 12:02:21,961 (http-0.0.0.0-8080-Processor4) [ >> UtilXml.java:243:DEBUG] XML Read 0.0030s: jndi:/ >> 0.0.0.0/practice/WEB-INF/controller.xml >> 2008-10-06 12:02:21,962 (http-0.0.0.0-8080-Processor4) [ >> ConfigXMLReader.java:558:INFO ] ConfigMap Created: (1) records in 0.0s >> 2008-10-06 12:02:21,962 (http-0.0.0.0-8080-Processor4) [ >> ConfigXMLReader.java:716:INFO ] HandlerMap Created: (0) view handlers and >> (0) request/event handlers in 0.0s >> 2008-10-06 12:02:21,962 (http-0.0.0.0-8080-Processor4) [ >> ConfigXMLReader.java:291:INFO ] RequestMap Created: (1) records in 0.0s >> 2008-10-06 12:02:21,962 (http-0.0.0.0-8080-Processor4) [ >> ConfigXMLReader.java:385:INFO ] ViewMap Created: (1) records in 0.0s >> 2008-10-06 12:02:21,963 (http-0.0.0.0-8080-Processor4) [ >> RequestHandler.java:236:INFO ] [Processing Request]: main >> sessionId=6A93B3C6E80E0FB1946568791FC5DECB.jvm1 >> 2008-10-06 12:02:21,963 (http-0.0.0.0-8080-Processor4) [ >> RequestManager.java:116:INFO ] [RequestManager.getRequestAttribute] Value >> for attribute "null" of uri "main" not found >> 2008-10-06 12:02:21,963 (http-0.0.0.0-8080-Processor4) [ >> RequestHandler.java:425:INFO ] [RequestHandler.doRequest]: Response is a >> view. sessionId=6A93B3C6E80E0FB1946568791FC5DECB.jvm1 >> 2008-10-06 12:02:21,963 (http-0.0.0.0-8080-Processor4) [ >> RequestHandler.java:578:INFO ] servletName=control, view=main >> sessionId=6A93B3C6E80E0FB1946568791FC5DECB.jvm1 >> 2008-10-06 12:02:21,964 (http-0.0.0.0-8080-Processor4) [ >> ControlServlet.java:192:ERROR] >> ---- exception report >> ---------------------------------------------------------- >> Error in request handler: >> Exception: org.ofbiz.webapp.view.ViewHandlerException >> Message: Unknown handler type: screen >> ---- stack trace >> --------------------------------------------------------------- >> org.ofbiz.webapp.view.ViewHandlerException: Unknown handler type: screen >> org.ofbiz.webapp.view.ViewFactory.loadViewHandler(ViewFactory.java:119) >> org.ofbiz.webapp.view.ViewFactory.getViewHandler(ViewFactory.java:100) >> >> org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:642) >> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:427) >> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:189) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:595) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:688) >> >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) >> >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) >> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248) >> >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) >> >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) >> >> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) >> >> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) >> >> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) >> >> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) >> >> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) >> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541) >> >> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) >> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) >> >> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) >> >> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) >> >> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) >> >> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) >> java.lang.Thread.run(Thread.java:613) >> >> -------------------------------------------------------------------------------- >> >> -- http://code.google.com/p/sweetscala - a Scala web framework. |
are you using the practice controller?
you should not get this error if you are Zemian Deng wrote: > I tried with the trunk[1] version and still get the same error: > org.ofbiz.webapp.view.ViewHandlerException: > Unknown handler type: screen > > [1]http://build.hotwaxmedia.com/builds/ofbiz-trunk-current.zip > > What did I missed? > > -Z > > On Mon, Oct 6, 2008 at 12:27 PM, Adrian Crum <[hidden email]> wrote: > >> The tutorial is based on the *trunk* version of OFBiz, not Release 4. Try >> downloading and installing the latest trunk distribution. >> >> -Adrian >> >> Zemian Deng wrote: >> >>> Hi list, >>> >>> I've downloaded binary >>> ofbiz-rel4.0-current.zip< >>> http://build.hotwaxmedia.com/builds40/ofbiz-rel4.0-current.zip>, >>> >>> and I am trying to deploy first "practice" component webapp by following >>> instruction on: >>> >>> http://docs.ofbiz.org/display/OFBIZ/OFBiz+Beginner%27s+Development+Guide+Using+Practice+Application >>> >>> I have hit few problems under "Create the web app": >>> >>> 1) Step4 said copy existing component e.g. example component web.xml, >>> there >>> is no "example component", but I found >>> framework/example/webapp/example/WEB-INF/web.xml. With this, there is no " >>> mainDecoratorLocation" found. (I found this value from >>> application/product/webapp/catalog/WEB-INF/web.xml though, so I use this) >>> >>> 2) Same thing with "widget" and "error" directory as above and I just >>> copied >>> from the same "catalog" component. >>> >>> 3) Step 10, after the server is started, I get an error: >>> org.ofbiz.webapp.view.ViewHandlerException: Unknown handler type: screen >>> >>> The documentation says I should see the "This is first practice" instead. >>> Any idea? >>> >>> Thanks, >>> Zemian >>> >>> Here is a stacktrace: >>> 2008-10-06 12:02:21,958 (http-0.0.0.0-8080-Processor4) [ >>> ControlServlet.java:126:DEBUG] [[[main] Servlet Starting, doing setup- >>> total:0.0,since last(Begin):0.0]] >>> 2008-10-06 12:02:21,958 (http-0.0.0.0-8080-Processor4) [ >>> ControlServlet.java:181:DEBUG] [[[main] Setup done, doing Event(s) and >>> View(s)- total:0.0,since last([main] Servlet St...):0.0]] >>> 2008-10-06 12:02:21,961 (http-0.0.0.0-8080-Processor4) [ >>> UtilXml.java:243:DEBUG] XML Read 0.0030s: jndi:/ >>> 0.0.0.0/practice/WEB-INF/controller.xml >>> 2008-10-06 12:02:21,962 (http-0.0.0.0-8080-Processor4) [ >>> ConfigXMLReader.java:558:INFO ] ConfigMap Created: (1) records in 0.0s >>> 2008-10-06 12:02:21,962 (http-0.0.0.0-8080-Processor4) [ >>> ConfigXMLReader.java:716:INFO ] HandlerMap Created: (0) view handlers and >>> (0) request/event handlers in 0.0s >>> 2008-10-06 12:02:21,962 (http-0.0.0.0-8080-Processor4) [ >>> ConfigXMLReader.java:291:INFO ] RequestMap Created: (1) records in 0.0s >>> 2008-10-06 12:02:21,962 (http-0.0.0.0-8080-Processor4) [ >>> ConfigXMLReader.java:385:INFO ] ViewMap Created: (1) records in 0.0s >>> 2008-10-06 12:02:21,963 (http-0.0.0.0-8080-Processor4) [ >>> RequestHandler.java:236:INFO ] [Processing Request]: main >>> sessionId=6A93B3C6E80E0FB1946568791FC5DECB.jvm1 >>> 2008-10-06 12:02:21,963 (http-0.0.0.0-8080-Processor4) [ >>> RequestManager.java:116:INFO ] [RequestManager.getRequestAttribute] Value >>> for attribute "null" of uri "main" not found >>> 2008-10-06 12:02:21,963 (http-0.0.0.0-8080-Processor4) [ >>> RequestHandler.java:425:INFO ] [RequestHandler.doRequest]: Response is a >>> view. sessionId=6A93B3C6E80E0FB1946568791FC5DECB.jvm1 >>> 2008-10-06 12:02:21,963 (http-0.0.0.0-8080-Processor4) [ >>> RequestHandler.java:578:INFO ] servletName=control, view=main >>> sessionId=6A93B3C6E80E0FB1946568791FC5DECB.jvm1 >>> 2008-10-06 12:02:21,964 (http-0.0.0.0-8080-Processor4) [ >>> ControlServlet.java:192:ERROR] >>> ---- exception report >>> ---------------------------------------------------------- >>> Error in request handler: >>> Exception: org.ofbiz.webapp.view.ViewHandlerException >>> Message: Unknown handler type: screen >>> ---- stack trace >>> --------------------------------------------------------------- >>> org.ofbiz.webapp.view.ViewHandlerException: Unknown handler type: screen >>> org.ofbiz.webapp.view.ViewFactory.loadViewHandler(ViewFactory.java:119) >>> org.ofbiz.webapp.view.ViewFactory.getViewHandler(ViewFactory.java:100) >>> >>> org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:642) >>> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:427) >>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:189) >>> javax.servlet.http.HttpServlet.service(HttpServlet.java:595) >>> javax.servlet.http.HttpServlet.service(HttpServlet.java:688) >>> >>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) >>> >>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) >>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248) >>> >>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) >>> >>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) >>> >>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) >>> >>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) >>> >>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) >>> >>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) >>> >>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) >>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541) >>> >>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) >>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) >>> >>> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) >>> >>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) >>> >>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) >>> >>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) >>> java.lang.Thread.run(Thread.java:613) >>> >>> -------------------------------------------------------------------------------- >>> >>> > > |
look at the comments
http://docs.ofbiz.org/display/OFBIZ/OFBiz+Beginner%27s+Development+Guide+Using+Practice+Application [hidden email] wrote: > are you using the practice controller? > you should not get this error if you are > Zemian Deng wrote: >> I tried with the trunk[1] version and still get the same error: >> org.ofbiz.webapp.view.ViewHandlerException: >> Unknown handler type: screen >> >> [1]http://build.hotwaxmedia.com/builds/ofbiz-trunk-current.zip >> >> What did I missed? >> >> -Z >> >> On Mon, Oct 6, 2008 at 12:27 PM, Adrian Crum <[hidden email]> wrote: >> >>> The tutorial is based on the *trunk* version of OFBiz, not Release 4. >>> Try >>> downloading and installing the latest trunk distribution. >>> >>> -Adrian >>> >>> Zemian Deng wrote: >>> >>>> Hi list, >>>> >>>> I've downloaded binary >>>> ofbiz-rel4.0-current.zip< >>>> http://build.hotwaxmedia.com/builds40/ofbiz-rel4.0-current.zip>, >>>> >>>> and I am trying to deploy first "practice" component webapp by >>>> following >>>> instruction on: >>>> >>>> http://docs.ofbiz.org/display/OFBIZ/OFBiz+Beginner%27s+Development+Guide+Using+Practice+Application >>>> >>>> >>>> I have hit few problems under "Create the web app": >>>> >>>> 1) Step4 said copy existing component e.g. example component web.xml, >>>> there >>>> is no "example component", but I found >>>> framework/example/webapp/example/WEB-INF/web.xml. With this, there >>>> is no " >>>> mainDecoratorLocation" found. (I found this value from >>>> application/product/webapp/catalog/WEB-INF/web.xml though, so I use >>>> this) >>>> >>>> 2) Same thing with "widget" and "error" directory as above and I just >>>> copied >>>> from the same "catalog" component. >>>> >>>> 3) Step 10, after the server is started, I get an error: >>>> org.ofbiz.webapp.view.ViewHandlerException: Unknown handler type: >>>> screen >>>> >>>> The documentation says I should see the "This is first practice" >>>> instead. >>>> Any idea? >>>> >>>> Thanks, >>>> Zemian >>>> >>>> Here is a stacktrace: >>>> 2008-10-06 12:02:21,958 (http-0.0.0.0-8080-Processor4) [ >>>> ControlServlet.java:126:DEBUG] [[[main] Servlet Starting, doing setup- >>>> total:0.0,since last(Begin):0.0]] >>>> 2008-10-06 12:02:21,958 (http-0.0.0.0-8080-Processor4) [ >>>> ControlServlet.java:181:DEBUG] [[[main] Setup done, doing Event(s) and >>>> View(s)- total:0.0,since last([main] Servlet St...):0.0]] >>>> 2008-10-06 12:02:21,961 (http-0.0.0.0-8080-Processor4) [ >>>> UtilXml.java:243:DEBUG] XML Read 0.0030s: jndi:/ >>>> 0.0.0.0/practice/WEB-INF/controller.xml >>>> 2008-10-06 12:02:21,962 (http-0.0.0.0-8080-Processor4) [ >>>> ConfigXMLReader.java:558:INFO ] ConfigMap Created: (1) records in 0.0s >>>> 2008-10-06 12:02:21,962 (http-0.0.0.0-8080-Processor4) [ >>>> ConfigXMLReader.java:716:INFO ] HandlerMap Created: (0) view >>>> handlers and >>>> (0) request/event handlers in 0.0s >>>> 2008-10-06 12:02:21,962 (http-0.0.0.0-8080-Processor4) [ >>>> ConfigXMLReader.java:291:INFO ] RequestMap Created: (1) records in 0.0s >>>> 2008-10-06 12:02:21,962 (http-0.0.0.0-8080-Processor4) [ >>>> ConfigXMLReader.java:385:INFO ] ViewMap Created: (1) records in 0.0s >>>> 2008-10-06 12:02:21,963 (http-0.0.0.0-8080-Processor4) [ >>>> RequestHandler.java:236:INFO ] [Processing Request]: main >>>> sessionId=6A93B3C6E80E0FB1946568791FC5DECB.jvm1 >>>> 2008-10-06 12:02:21,963 (http-0.0.0.0-8080-Processor4) [ >>>> RequestManager.java:116:INFO ] [RequestManager.getRequestAttribute] >>>> Value >>>> for attribute "null" of uri "main" not found >>>> 2008-10-06 12:02:21,963 (http-0.0.0.0-8080-Processor4) [ >>>> RequestHandler.java:425:INFO ] [RequestHandler.doRequest]: Response >>>> is a >>>> view. sessionId=6A93B3C6E80E0FB1946568791FC5DECB.jvm1 >>>> 2008-10-06 12:02:21,963 (http-0.0.0.0-8080-Processor4) [ >>>> RequestHandler.java:578:INFO ] servletName=control, view=main >>>> sessionId=6A93B3C6E80E0FB1946568791FC5DECB.jvm1 >>>> 2008-10-06 12:02:21,964 (http-0.0.0.0-8080-Processor4) [ >>>> ControlServlet.java:192:ERROR] >>>> ---- exception report >>>> ---------------------------------------------------------- >>>> Error in request handler: >>>> Exception: org.ofbiz.webapp.view.ViewHandlerException >>>> Message: Unknown handler type: screen >>>> ---- stack trace >>>> --------------------------------------------------------------- >>>> org.ofbiz.webapp.view.ViewHandlerException: Unknown handler type: >>>> screen >>>> org.ofbiz.webapp.view.ViewFactory.loadViewHandler(ViewFactory.java:119) >>>> org.ofbiz.webapp.view.ViewFactory.getViewHandler(ViewFactory.java:100) >>>> >>>> org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:642) >>>> >>>> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:427) >>>> >>>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:189) >>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:595) >>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:688) >>>> >>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) >>>> >>>> >>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) >>>> >>>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248) >>>> >>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) >>>> >>>> >>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) >>>> >>>> >>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) >>>> >>>> >>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) >>>> >>>> >>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) >>>> >>>> >>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) >>>> >>>> >>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) >>>> >>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541) >>>> >>>> >>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) >>>> >>>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) >>>> >>>> >>>> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) >>>> >>>> >>>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) >>>> >>>> >>>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) >>>> >>>> >>>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) >>>> >>>> java.lang.Thread.run(Thread.java:613) >>>> >>>> -------------------------------------------------------------------------------- >>>> >>>> >>>> >> >> > > |
In reply to this post by Zemian Deng
Hello Zemian ,
There is an attachment with : http://docs.ofbiz.org/display/OFBIZ/OFBiz+Beginner%27s+Development+Guide+Using+Practice+Application you can download it. It will help you a lot. Thanks and Regards Surya Kusumakar www.hotwaxmedia.com Zemian Deng wrote: > Hi list, > > I've downloaded binary > ofbiz-rel4.0-current.zip<http://build.hotwaxmedia.com/builds40/ofbiz-rel4.0-current.zip>, > and I am trying to deploy first "practice" component webapp by following > instruction on: > http://docs.ofbiz.org/display/OFBIZ/OFBiz+Beginner%27s+Development+Guide+Using+Practice+Application > > I have hit few problems under "Create the web app": > > 1) Step4 said copy existing component e.g. example component web.xml, there > is no "example component", but I found > framework/example/webapp/example/WEB-INF/web.xml. With this, there is no " > mainDecoratorLocation" found. (I found this value from > application/product/webapp/catalog/WEB-INF/web.xml though, so I use this) > > 2) Same thing with "widget" and "error" directory as above and I just copied > from the same "catalog" component. > > 3) Step 10, after the server is started, I get an error: > org.ofbiz.webapp.view.ViewHandlerException: Unknown handler type: screen > > The documentation says I should see the "This is first practice" instead. > Any idea? > > Thanks, > Zemian > > Here is a stacktrace: > 2008-10-06 12:02:21,958 (http-0.0.0.0-8080-Processor4) [ > ControlServlet.java:126:DEBUG] [[[main] Servlet Starting, doing setup- > total:0.0,since last(Begin):0.0]] > 2008-10-06 12:02:21,958 (http-0.0.0.0-8080-Processor4) [ > ControlServlet.java:181:DEBUG] [[[main] Setup done, doing Event(s) and > View(s)- total:0.0,since last([main] Servlet St...):0.0]] > 2008-10-06 12:02:21,961 (http-0.0.0.0-8080-Processor4) [ > UtilXml.java:243:DEBUG] XML Read 0.0030s: jndi:/ > 0.0.0.0/practice/WEB-INF/controller.xml > 2008-10-06 12:02:21,962 (http-0.0.0.0-8080-Processor4) [ > ConfigXMLReader.java:558:INFO ] ConfigMap Created: (1) records in 0.0s > 2008-10-06 12:02:21,962 (http-0.0.0.0-8080-Processor4) [ > ConfigXMLReader.java:716:INFO ] HandlerMap Created: (0) view handlers and > (0) request/event handlers in 0.0s > 2008-10-06 12:02:21,962 (http-0.0.0.0-8080-Processor4) [ > ConfigXMLReader.java:291:INFO ] RequestMap Created: (1) records in 0.0s > 2008-10-06 12:02:21,962 (http-0.0.0.0-8080-Processor4) [ > ConfigXMLReader.java:385:INFO ] ViewMap Created: (1) records in 0.0s > 2008-10-06 12:02:21,963 (http-0.0.0.0-8080-Processor4) [ > RequestHandler.java:236:INFO ] [Processing Request]: main > sessionId=6A93B3C6E80E0FB1946568791FC5DECB.jvm1 > 2008-10-06 12:02:21,963 (http-0.0.0.0-8080-Processor4) [ > RequestManager.java:116:INFO ] [RequestManager.getRequestAttribute] Value > for attribute "null" of uri "main" not found > 2008-10-06 12:02:21,963 (http-0.0.0.0-8080-Processor4) [ > RequestHandler.java:425:INFO ] [RequestHandler.doRequest]: Response is a > view. sessionId=6A93B3C6E80E0FB1946568791FC5DECB.jvm1 > 2008-10-06 12:02:21,963 (http-0.0.0.0-8080-Processor4) [ > RequestHandler.java:578:INFO ] servletName=control, view=main > sessionId=6A93B3C6E80E0FB1946568791FC5DECB.jvm1 > 2008-10-06 12:02:21,964 (http-0.0.0.0-8080-Processor4) [ > ControlServlet.java:192:ERROR] > ---- exception report > ---------------------------------------------------------- > Error in request handler: > Exception: org.ofbiz.webapp.view.ViewHandlerException > Message: Unknown handler type: screen > ---- stack trace > --------------------------------------------------------------- > org.ofbiz.webapp.view.ViewHandlerException: Unknown handler type: screen > org.ofbiz.webapp.view.ViewFactory.loadViewHandler(ViewFactory.java:119) > org.ofbiz.webapp.view.ViewFactory.getViewHandler(ViewFactory.java:100) > org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:642) > org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:427) > org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:189) > javax.servlet.http.HttpServlet.service(HttpServlet.java:595) > javax.servlet.http.HttpServlet.service(HttpServlet.java:688) > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) > org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248) > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541) > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) > java.lang.Thread.run(Thread.java:613) > -------------------------------------------------------------------------------- > > |
Surya:
please read the email Surya Kusumakar wrote: > Hello Zemian , > There is an attachment with : > http://docs.ofbiz.org/display/OFBIZ/OFBiz+Beginner%27s+Development+Guide+Using+Practice+Application > > you can download it. It will help you a lot. > Thanks and Regards > Surya Kusumakar > www.hotwaxmedia.com > > Zemian Deng wrote: >> Hi list, >> >> I've downloaded binary >> ofbiz-rel4.0-current.zip<http://build.hotwaxmedia.com/builds40/ofbiz-rel4.0-current.zip>, >> >> and I am trying to deploy first "practice" component webapp by following >> instruction on: >> http://docs.ofbiz.org/display/OFBIZ/OFBiz+Beginner%27s+Development+Guide+Using+Practice+Application >> >> >> I have hit few problems under "Create the web app": >> >> 1) Step4 said copy existing component e.g. example component web.xml, >> there >> is no "example component", but I found >> framework/example/webapp/example/WEB-INF/web.xml. With this, there is >> no " >> mainDecoratorLocation" found. (I found this value from >> application/product/webapp/catalog/WEB-INF/web.xml though, so I use this) >> >> 2) Same thing with "widget" and "error" directory as above and I just >> copied >> from the same "catalog" component. >> >> 3) Step 10, after the server is started, I get an error: >> org.ofbiz.webapp.view.ViewHandlerException: Unknown handler type: screen >> >> The documentation says I should see the "This is first practice" instead. >> Any idea? >> >> Thanks, >> Zemian >> >> Here is a stacktrace: >> 2008-10-06 12:02:21,958 (http-0.0.0.0-8080-Processor4) [ >> ControlServlet.java:126:DEBUG] [[[main] Servlet Starting, doing setup- >> total:0.0,since last(Begin):0.0]] >> 2008-10-06 12:02:21,958 (http-0.0.0.0-8080-Processor4) [ >> ControlServlet.java:181:DEBUG] [[[main] Setup done, doing Event(s) and >> View(s)- total:0.0,since last([main] Servlet St...):0.0]] >> 2008-10-06 12:02:21,961 (http-0.0.0.0-8080-Processor4) [ >> UtilXml.java:243:DEBUG] XML Read 0.0030s: jndi:/ >> 0.0.0.0/practice/WEB-INF/controller.xml >> 2008-10-06 12:02:21,962 (http-0.0.0.0-8080-Processor4) [ >> ConfigXMLReader.java:558:INFO ] ConfigMap Created: (1) records in 0.0s >> 2008-10-06 12:02:21,962 (http-0.0.0.0-8080-Processor4) [ >> ConfigXMLReader.java:716:INFO ] HandlerMap Created: (0) view handlers and >> (0) request/event handlers in 0.0s >> 2008-10-06 12:02:21,962 (http-0.0.0.0-8080-Processor4) [ >> ConfigXMLReader.java:291:INFO ] RequestMap Created: (1) records in 0.0s >> 2008-10-06 12:02:21,962 (http-0.0.0.0-8080-Processor4) [ >> ConfigXMLReader.java:385:INFO ] ViewMap Created: (1) records in 0.0s >> 2008-10-06 12:02:21,963 (http-0.0.0.0-8080-Processor4) [ >> RequestHandler.java:236:INFO ] [Processing Request]: main >> sessionId=6A93B3C6E80E0FB1946568791FC5DECB.jvm1 >> 2008-10-06 12:02:21,963 (http-0.0.0.0-8080-Processor4) [ >> RequestManager.java:116:INFO ] [RequestManager.getRequestAttribute] Value >> for attribute "null" of uri "main" not found >> 2008-10-06 12:02:21,963 (http-0.0.0.0-8080-Processor4) [ >> RequestHandler.java:425:INFO ] [RequestHandler.doRequest]: Response is a >> view. sessionId=6A93B3C6E80E0FB1946568791FC5DECB.jvm1 >> 2008-10-06 12:02:21,963 (http-0.0.0.0-8080-Processor4) [ >> RequestHandler.java:578:INFO ] servletName=control, view=main >> sessionId=6A93B3C6E80E0FB1946568791FC5DECB.jvm1 >> 2008-10-06 12:02:21,964 (http-0.0.0.0-8080-Processor4) [ >> ControlServlet.java:192:ERROR] >> ---- exception report >> ---------------------------------------------------------- >> Error in request handler: >> Exception: org.ofbiz.webapp.view.ViewHandlerException >> Message: Unknown handler type: screen >> ---- stack trace >> --------------------------------------------------------------- >> org.ofbiz.webapp.view.ViewHandlerException: Unknown handler type: screen >> org.ofbiz.webapp.view.ViewFactory.loadViewHandler(ViewFactory.java:119) >> org.ofbiz.webapp.view.ViewFactory.getViewHandler(ViewFactory.java:100) >> org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:642) >> >> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:427) >> >> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:189) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:595) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:688) >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) >> >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) >> >> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248) >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) >> >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) >> >> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) >> >> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) >> >> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) >> >> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) >> >> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) >> >> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541) >> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) >> >> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) >> >> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) >> >> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) >> >> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) >> >> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) >> >> java.lang.Thread.run(Thread.java:613) >> -------------------------------------------------------------------------------- >> >> >> > > |
In reply to this post by Zemian Deng
Hi Zemian,
You have to just add the following contents in your widget->PracticeScreens.xml file. <?xml version="1.0" encoding="UTF-8"?> <screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd"> <screen name="main"> <section> <widgets> <label text="This is first practice"/> </widgets> </section> </screen> </screens> So that you can see "This is first practice" rather including everything from the catalog->widget directory... and just change the *mainDecoratorLocation context param to* "component://practice/widget/PracticeScreens.xml" in your web.xml. Please read the documentation carefully. REGARDS ONIMA KASLIWAL www.hotwaxmedia.com Zemian Deng wrote: > Hi list, > > I've downloaded binary > ofbiz-rel4.0-current.zip<http://build.hotwaxmedia.com/builds40/ofbiz-rel4.0-current.zip>, > and I am trying to deploy first "practice" component webapp by following > instruction on: > http://docs.ofbiz.org/display/OFBIZ/OFBiz+Beginner%27s+Development+Guide+Using+Practice+Application > > I have hit few problems under "Create the web app": > > 1) Step4 said copy existing component e.g. example component web.xml, there > is no "example component", but I found > framework/example/webapp/example/WEB-INF/web.xml. With this, there is no " > mainDecoratorLocation" found. (I found this value from > application/product/webapp/catalog/WEB-INF/web.xml though, so I use this) > > 2) Same thing with "widget" and "error" directory as above and I just copied > from the same "catalog" component. > > 3) Step 10, after the server is started, I get an error: > org.ofbiz.webapp.view.ViewHandlerException: Unknown handler type: screen > > The documentation says I should see the "This is first practice" instead. > Any idea? > > Thanks, > Zemian > > Here is a stacktrace: > 2008-10-06 12:02:21,958 (http-0.0.0.0-8080-Processor4) [ > ControlServlet.java:126:DEBUG] [[[main] Servlet Starting, doing setup- > total:0.0,since last(Begin):0.0]] > 2008-10-06 12:02:21,958 (http-0.0.0.0-8080-Processor4) [ > ControlServlet.java:181:DEBUG] [[[main] Setup done, doing Event(s) and > View(s)- total:0.0,since last([main] Servlet St...):0.0]] > 2008-10-06 12:02:21,961 (http-0.0.0.0-8080-Processor4) [ > UtilXml.java:243:DEBUG] XML Read 0.0030s: jndi:/ > 0.0.0.0/practice/WEB-INF/controller.xml > 2008-10-06 12:02:21,962 (http-0.0.0.0-8080-Processor4) [ > ConfigXMLReader.java:558:INFO ] ConfigMap Created: (1) records in 0.0s > 2008-10-06 12:02:21,962 (http-0.0.0.0-8080-Processor4) [ > ConfigXMLReader.java:716:INFO ] HandlerMap Created: (0) view handlers and > (0) request/event handlers in 0.0s > 2008-10-06 12:02:21,962 (http-0.0.0.0-8080-Processor4) [ > ConfigXMLReader.java:291:INFO ] RequestMap Created: (1) records in 0.0s > 2008-10-06 12:02:21,962 (http-0.0.0.0-8080-Processor4) [ > ConfigXMLReader.java:385:INFO ] ViewMap Created: (1) records in 0.0s > 2008-10-06 12:02:21,963 (http-0.0.0.0-8080-Processor4) [ > RequestHandler.java:236:INFO ] [Processing Request]: main > sessionId=6A93B3C6E80E0FB1946568791FC5DECB.jvm1 > 2008-10-06 12:02:21,963 (http-0.0.0.0-8080-Processor4) [ > RequestManager.java:116:INFO ] [RequestManager.getRequestAttribute] Value > for attribute "null" of uri "main" not found > 2008-10-06 12:02:21,963 (http-0.0.0.0-8080-Processor4) [ > RequestHandler.java:425:INFO ] [RequestHandler.doRequest]: Response is a > view. sessionId=6A93B3C6E80E0FB1946568791FC5DECB.jvm1 > 2008-10-06 12:02:21,963 (http-0.0.0.0-8080-Processor4) [ > RequestHandler.java:578:INFO ] servletName=control, view=main > sessionId=6A93B3C6E80E0FB1946568791FC5DECB.jvm1 > 2008-10-06 12:02:21,964 (http-0.0.0.0-8080-Processor4) [ > ControlServlet.java:192:ERROR] > ---- exception report > ---------------------------------------------------------- > Error in request handler: > Exception: org.ofbiz.webapp.view.ViewHandlerException > Message: Unknown handler type: screen > ---- stack trace > --------------------------------------------------------------- > org.ofbiz.webapp.view.ViewHandlerException: Unknown handler type: screen > org.ofbiz.webapp.view.ViewFactory.loadViewHandler(ViewFactory.java:119) > org.ofbiz.webapp.view.ViewFactory.getViewHandler(ViewFactory.java:100) > org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:642) > org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:427) > org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:189) > javax.servlet.http.HttpServlet.service(HttpServlet.java:595) > javax.servlet.http.HttpServlet.service(HttpServlet.java:688) > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) > org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248) > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541) > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) > java.lang.Thread.run(Thread.java:613) > -------------------------------------------------------------------------------- > > |
Zemian,
For "org.ofbiz.webapp.view.ViewHandlerException: " you need to add the following in your controller.xml. <handler name="screenxml" type="view" class="org.ofbiz.widget.screen.ScreenXmlViewHandler"/> and you may take contents of the error.jsp file from any of the existing ones. -Harsha onima wrote: > Hi Zemian, > You have to just add the following contents in your > widget->PracticeScreens.xml file. > > <?xml version="1.0" encoding="UTF-8"?> > > <screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd"> > > > <screen name="main"> > <section> > <widgets> > <label text="This is first practice"/> > </widgets> > </section> > </screen> > </screens> > > > So that you can see "This is first practice" rather including > everything from the catalog->widget directory... > and just change the *mainDecoratorLocation context param to* > "component://practice/widget/PracticeScreens.xml" in your web.xml. > > Please read the documentation carefully. > > REGARDS > ONIMA KASLIWAL > www.hotwaxmedia.com > > > > > > > > Zemian Deng wrote: >> Hi list, >> >> I've downloaded binary >> ofbiz-rel4.0-current.zip<http://build.hotwaxmedia.com/builds40/ofbiz-rel4.0-current.zip>, >> >> and I am trying to deploy first "practice" component webapp by following >> instruction on: >> http://docs.ofbiz.org/display/OFBIZ/OFBiz+Beginner%27s+Development+Guide+Using+Practice+Application >> >> >> I have hit few problems under "Create the web app": >> >> 1) Step4 said copy existing component e.g. example component >> web.xml, there >> is no "example component", but I found >> framework/example/webapp/example/WEB-INF/web.xml. With this, there is >> no " >> mainDecoratorLocation" found. (I found this value from >> application/product/webapp/catalog/WEB-INF/web.xml though, so I use >> this) >> >> 2) Same thing with "widget" and "error" directory as above and I just >> copied >> from the same "catalog" component. >> >> 3) Step 10, after the server is started, I get an error: >> org.ofbiz.webapp.view.ViewHandlerException: Unknown handler type: screen >> >> The documentation says I should see the "This is first practice" >> instead. >> Any idea? >> >> Thanks, >> Zemian >> >> Here is a stacktrace: >> 2008-10-06 12:02:21,958 (http-0.0.0.0-8080-Processor4) [ >> ControlServlet.java:126:DEBUG] [[[main] Servlet Starting, doing setup- >> total:0.0,since last(Begin):0.0]] >> 2008-10-06 12:02:21,958 (http-0.0.0.0-8080-Processor4) [ >> ControlServlet.java:181:DEBUG] [[[main] Setup done, doing Event(s) and >> View(s)- total:0.0,since last([main] Servlet St...):0.0]] >> 2008-10-06 12:02:21,961 (http-0.0.0.0-8080-Processor4) [ >> UtilXml.java:243:DEBUG] XML Read 0.0030s: jndi:/ >> 0.0.0.0/practice/WEB-INF/controller.xml >> 2008-10-06 12:02:21,962 (http-0.0.0.0-8080-Processor4) [ >> ConfigXMLReader.java:558:INFO ] ConfigMap Created: (1) records in 0.0s >> 2008-10-06 12:02:21,962 (http-0.0.0.0-8080-Processor4) [ >> ConfigXMLReader.java:716:INFO ] HandlerMap Created: (0) view handlers >> and >> (0) request/event handlers in 0.0s >> 2008-10-06 12:02:21,962 (http-0.0.0.0-8080-Processor4) [ >> ConfigXMLReader.java:291:INFO ] RequestMap Created: (1) records in 0.0s >> 2008-10-06 12:02:21,962 (http-0.0.0.0-8080-Processor4) [ >> ConfigXMLReader.java:385:INFO ] ViewMap Created: (1) records in 0.0s >> 2008-10-06 12:02:21,963 (http-0.0.0.0-8080-Processor4) [ >> RequestHandler.java:236:INFO ] [Processing Request]: main >> sessionId=6A93B3C6E80E0FB1946568791FC5DECB.jvm1 >> 2008-10-06 12:02:21,963 (http-0.0.0.0-8080-Processor4) [ >> RequestManager.java:116:INFO ] [RequestManager.getRequestAttribute] >> Value >> for attribute "null" of uri "main" not found >> 2008-10-06 12:02:21,963 (http-0.0.0.0-8080-Processor4) [ >> RequestHandler.java:425:INFO ] [RequestHandler.doRequest]: Response is a >> view. sessionId=6A93B3C6E80E0FB1946568791FC5DECB.jvm1 >> 2008-10-06 12:02:21,963 (http-0.0.0.0-8080-Processor4) [ >> RequestHandler.java:578:INFO ] servletName=control, view=main >> sessionId=6A93B3C6E80E0FB1946568791FC5DECB.jvm1 >> 2008-10-06 12:02:21,964 (http-0.0.0.0-8080-Processor4) [ >> ControlServlet.java:192:ERROR] >> ---- exception report >> ---------------------------------------------------------- >> Error in request handler: >> Exception: org.ofbiz.webapp.view.ViewHandlerException >> Message: Unknown handler type: screen >> ---- stack trace >> --------------------------------------------------------------- >> org.ofbiz.webapp.view.ViewHandlerException: Unknown handler type: screen >> org.ofbiz.webapp.view.ViewFactory.loadViewHandler(ViewFactory.java:119) >> org.ofbiz.webapp.view.ViewFactory.getViewHandler(ViewFactory.java:100) >> org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:642) >> >> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:427) >> >> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:189) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:595) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:688) >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) >> >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) >> >> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248) >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) >> >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) >> >> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) >> >> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) >> >> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) >> >> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) >> >> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) >> >> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541) >> >> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) >> >> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) >> >> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) >> >> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) >> >> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) >> >> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) >> >> java.lang.Thread.run(Thread.java:613) >> -------------------------------------------------------------------------------- >> >> >> > |
you do not need to add the handler or deal with the error.jsp
Please read the comments in http://docs.ofbiz.org/display/OFBIZ/OFBiz+Beginner%27s+Development+Guide+Using+Practice+Application and read the Common_controller.xml Harsha Chadhar wrote: > Zemian, > For "org.ofbiz.webapp.view.ViewHandlerException: " you need to > add the following in your controller.xml. > <handler name="screenxml" type="view" > class="org.ofbiz.widget.screen.ScreenXmlViewHandler"/> > > and you may take contents of the error.jsp file from any of the > existing ones. > > -Harsha > > onima wrote: >> Hi Zemian, >> You have to just add the following contents in your >> widget->PracticeScreens.xml file. >> >> <?xml version="1.0" encoding="UTF-8"?> >> >> <screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> >> xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd"> >> >> >> <screen name="main"> >> <section> >> <widgets> >> <label text="This is first practice"/> >> </widgets> >> </section> >> </screen> >> </screens> >> >> >> So that you can see "This is first practice" rather including >> everything from the catalog->widget directory... >> and just change the *mainDecoratorLocation context param to* >> "component://practice/widget/PracticeScreens.xml" in your web.xml. >> >> Please read the documentation carefully. >> >> REGARDS >> ONIMA KASLIWAL >> www.hotwaxmedia.com >> >> >> >> >> >> >> >> Zemian Deng wrote: >>> Hi list, >>> >>> I've downloaded binary >>> ofbiz-rel4.0-current.zip<http://build.hotwaxmedia.com/builds40/ofbiz-rel4.0-current.zip>, >>> >>> and I am trying to deploy first "practice" component webapp by following >>> instruction on: >>> http://docs.ofbiz.org/display/OFBIZ/OFBiz+Beginner%27s+Development+Guide+Using+Practice+Application >>> >>> >>> I have hit few problems under "Create the web app": >>> >>> 1) Step4 said copy existing component e.g. example component >>> web.xml, there >>> is no "example component", but I found >>> framework/example/webapp/example/WEB-INF/web.xml. With this, there is >>> no " >>> mainDecoratorLocation" found. (I found this value from >>> application/product/webapp/catalog/WEB-INF/web.xml though, so I use >>> this) >>> >>> 2) Same thing with "widget" and "error" directory as above and I just >>> copied >>> from the same "catalog" component. >>> >>> 3) Step 10, after the server is started, I get an error: >>> org.ofbiz.webapp.view.ViewHandlerException: Unknown handler type: screen >>> >>> The documentation says I should see the "This is first practice" >>> instead. >>> Any idea? >>> >>> Thanks, >>> Zemian >>> >>> Here is a stacktrace: >>> 2008-10-06 12:02:21,958 (http-0.0.0.0-8080-Processor4) [ >>> ControlServlet.java:126:DEBUG] [[[main] Servlet Starting, doing setup- >>> total:0.0,since last(Begin):0.0]] >>> 2008-10-06 12:02:21,958 (http-0.0.0.0-8080-Processor4) [ >>> ControlServlet.java:181:DEBUG] [[[main] Setup done, doing Event(s) and >>> View(s)- total:0.0,since last([main] Servlet St...):0.0]] >>> 2008-10-06 12:02:21,961 (http-0.0.0.0-8080-Processor4) [ >>> UtilXml.java:243:DEBUG] XML Read 0.0030s: jndi:/ >>> 0.0.0.0/practice/WEB-INF/controller.xml >>> 2008-10-06 12:02:21,962 (http-0.0.0.0-8080-Processor4) [ >>> ConfigXMLReader.java:558:INFO ] ConfigMap Created: (1) records in 0.0s >>> 2008-10-06 12:02:21,962 (http-0.0.0.0-8080-Processor4) [ >>> ConfigXMLReader.java:716:INFO ] HandlerMap Created: (0) view handlers >>> and >>> (0) request/event handlers in 0.0s >>> 2008-10-06 12:02:21,962 (http-0.0.0.0-8080-Processor4) [ >>> ConfigXMLReader.java:291:INFO ] RequestMap Created: (1) records in 0.0s >>> 2008-10-06 12:02:21,962 (http-0.0.0.0-8080-Processor4) [ >>> ConfigXMLReader.java:385:INFO ] ViewMap Created: (1) records in 0.0s >>> 2008-10-06 12:02:21,963 (http-0.0.0.0-8080-Processor4) [ >>> RequestHandler.java:236:INFO ] [Processing Request]: main >>> sessionId=6A93B3C6E80E0FB1946568791FC5DECB.jvm1 >>> 2008-10-06 12:02:21,963 (http-0.0.0.0-8080-Processor4) [ >>> RequestManager.java:116:INFO ] [RequestManager.getRequestAttribute] >>> Value >>> for attribute "null" of uri "main" not found >>> 2008-10-06 12:02:21,963 (http-0.0.0.0-8080-Processor4) [ >>> RequestHandler.java:425:INFO ] [RequestHandler.doRequest]: Response is a >>> view. sessionId=6A93B3C6E80E0FB1946568791FC5DECB.jvm1 >>> 2008-10-06 12:02:21,963 (http-0.0.0.0-8080-Processor4) [ >>> RequestHandler.java:578:INFO ] servletName=control, view=main >>> sessionId=6A93B3C6E80E0FB1946568791FC5DECB.jvm1 >>> 2008-10-06 12:02:21,964 (http-0.0.0.0-8080-Processor4) [ >>> ControlServlet.java:192:ERROR] >>> ---- exception report >>> ---------------------------------------------------------- >>> Error in request handler: >>> Exception: org.ofbiz.webapp.view.ViewHandlerException >>> Message: Unknown handler type: screen >>> ---- stack trace >>> --------------------------------------------------------------- >>> org.ofbiz.webapp.view.ViewHandlerException: Unknown handler type: screen >>> org.ofbiz.webapp.view.ViewFactory.loadViewHandler(ViewFactory.java:119) >>> org.ofbiz.webapp.view.ViewFactory.getViewHandler(ViewFactory.java:100) >>> org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:642) >>> >>> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:427) >>> >>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:189) >>> javax.servlet.http.HttpServlet.service(HttpServlet.java:595) >>> javax.servlet.http.HttpServlet.service(HttpServlet.java:688) >>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) >>> >>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) >>> >>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248) >>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) >>> >>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) >>> >>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) >>> >>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) >>> >>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) >>> >>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) >>> >>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) >>> >>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541) >>> >>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) >>> >>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) >>> >>> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) >>> >>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) >>> >>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) >>> >>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) >>> >>> java.lang.Thread.run(Thread.java:613) >>> -------------------------------------------------------------------------------- >>> >>> >>> >> > > > |
Free forum by Nabble | Edit this page |