Ofbiz Hello1 deploy error

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

Ofbiz Hello1 deploy error

jillas
I am gettiing the following error with a simple hello1 program example in ofbiz

org.ofbiz.webapp.control.RequestHandlerException: Unknown request [main]; this request does not exist or cannot be called directly

In log file it is showing as

2009-06-04 12:03:35,913 (http-0.0.0.0-8080-1) [     ControlServlet.java:130:INFO ] [[[main] Request Begun, encoding=[UTF-8]- total:0.0,since last(Begin):0.0]]
2009-06-04 12:03:35,913 (http-0.0.0.0-8080-1) [            UtilXml.java:181:WARN ] [UtilXml.readXmlDocument] URL was null, doing nothing
2009-06-04 12:03:35,913 (http-0.0.0.0-8080-1) [    ConfigXMLReader.java:352:ERROR]
---- runtime exception report --------------------------------------------------
Exception: java.lang.NullPointerException
Message: null
---- stack trace ---------------------------------------------------------------
java.lang.NullPointerException
org.ofbiz.webapp.control.ConfigXMLReader.loadDocument(ConfigXMLReader.java:347)
org.ofbiz.webapp.control.ConfigXMLReader$ControllerConfig.<init>(ConfigXMLReader.java:105)
org.ofbiz.webapp.control.ConfigXMLReader.getControllerConfig(ConfigXMLReader.java:73)
org.ofbiz.webapp.control.RequestHandler.getControllerConfig(RequestHandler.java:96)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:112)
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:201)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:259)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:44)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:595)
--------------------------------------------------------------------------------

2009-06-04 12:03:35,913 (http-0.0.0.0-8080-1) [     ControlServlet.java:204:ERROR]
---- exception report ----------------------------------------------------------
Error in request handler:
Exception: org.ofbiz.webapp.control.RequestHandlerException
Message: Unknown request [main]; this request does not exist or cannot be called directly.
---- stack trace ---------------------------------------------------------------
org.ofbiz.webapp.control.RequestHandlerException: Unknown request [main]; this request does not exist or cannot be called directly.
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:142)
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:201)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:259)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:44)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:595)
--------------------------------------------------------------------------------

2009-06-04 12:03:35,929 (http-0.0.0.0-8080-1) [     ControlServlet.java:218:ERROR] An error occurred, going to the errorPage: /error/error.jsp
2009-06-04 12:03:35,929 (http-0.0.0.0-8080-1) [     ControlServlet.java:225:ERROR] Including errorPage: /error/error.jsp
2009-06-04 12:03:35,960 (http-0.0.0.0-8080-1) [     ControlServlet.java:299:INFO ] [[[main] Request Done- total:0.047,since last([main] Request Be...):0.047]]
Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz Hello1 deploy error

Chirag Manocha-2
It seems that you have missed controller entry.
Check with your controller.xml file.

Regards
--
Chirag Manocha
HotWax Media Pvt. Ltd.
Website :- www.hotwaxmedia.com
Contact :- +91-98263-19099



jillas wrote:

> I am gettiing the following error with a simple hello1 program example in
> ofbiz
>
> org.ofbiz.webapp.control.RequestHandlerException: Unknown request [main];
> this request does not exist or cannot be called directly
>
> In log file it is showing as
>
> 2009-06-04 12:03:35,913 (http-0.0.0.0-8080-1) [    
> ControlServlet.java:130:INFO ] [[[main] Request Begun, encoding=[UTF-8]-
> total:0.0,since last(Begin):0.0]]
> 2009-06-04 12:03:35,913 (http-0.0.0.0-8080-1) [          
> UtilXml.java:181:WARN ] [UtilXml.readXmlDocument] URL was null, doing
> nothing
> 2009-06-04 12:03:35,913 (http-0.0.0.0-8080-1) [  
> ConfigXMLReader.java:352:ERROR]
> ---- runtime exception report
> --------------------------------------------------
> Exception: java.lang.NullPointerException
> Message: null
> ---- stack trace
> ---------------------------------------------------------------
> java.lang.NullPointerException
> org.ofbiz.webapp.control.ConfigXMLReader.loadDocument(ConfigXMLReader.java:347)
> org.ofbiz.webapp.control.ConfigXMLReader$ControllerConfig.<init>(ConfigXMLReader.java:105)
> org.ofbiz.webapp.control.ConfigXMLReader.getControllerConfig(ConfigXMLReader.java:73)
> org.ofbiz.webapp.control.RequestHandler.getControllerConfig(RequestHandler.java:96)
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:112)
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:201)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:259)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
> org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:44)
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> java.lang.Thread.run(Thread.java:595)
> --------------------------------------------------------------------------------
>
> 2009-06-04 12:03:35,913 (http-0.0.0.0-8080-1) [    
> ControlServlet.java:204:ERROR]
> ---- exception report
> ----------------------------------------------------------
> Error in request handler:
> Exception: org.ofbiz.webapp.control.RequestHandlerException
> Message: Unknown request [main]; this request does not exist or cannot be
> called directly.
> ---- stack trace
> ---------------------------------------------------------------
> org.ofbiz.webapp.control.RequestHandlerException: Unknown request [main];
> this request does not exist or cannot be called directly.
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:142)
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:201)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:259)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
> org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:44)
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> java.lang.Thread.run(Thread.java:595)
> --------------------------------------------------------------------------------
>
> 2009-06-04 12:03:35,929 (http-0.0.0.0-8080-1) [    
> ControlServlet.java:218:ERROR] An error occurred, going to the errorPage:
> /error/error.jsp
> 2009-06-04 12:03:35,929 (http-0.0.0.0-8080-1) [    
> ControlServlet.java:225:ERROR] Including errorPage: /error/error.jsp
> 2009-06-04 12:03:35,960 (http-0.0.0.0-8080-1) [    
> ControlServlet.java:299:INFO ] [[[main] Request Done- total:0.047,since
> last([main] Request Be...):0.047]]
>
>  
Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz Hello1 deploy error

Vivek Mishra-2
In reply to this post by jillas
Hello,
Please make sure that request entry exists in controller.xml
--
Vivek Mishra

jillas wrote:

> I am gettiing the following error with a simple hello1 program example in
> ofbiz
>
> org.ofbiz.webapp.control.RequestHandlerException: Unknown request [main];
> this request does not exist or cannot be called directly
>
> In log file it is showing as
>
> 2009-06-04 12:03:35,913 (http-0.0.0.0-8080-1) [    
> ControlServlet.java:130:INFO ] [[[main] Request Begun, encoding=[UTF-8]-
> total:0.0,since last(Begin):0.0]]
> 2009-06-04 12:03:35,913 (http-0.0.0.0-8080-1) [          
> UtilXml.java:181:WARN ] [UtilXml.readXmlDocument] URL was null, doing
> nothing
> 2009-06-04 12:03:35,913 (http-0.0.0.0-8080-1) [  
> ConfigXMLReader.java:352:ERROR]
> ---- runtime exception report
> --------------------------------------------------
> Exception: java.lang.NullPointerException
> Message: null
> ---- stack trace
> ---------------------------------------------------------------
> java.lang.NullPointerException
> org.ofbiz.webapp.control.ConfigXMLReader.loadDocument(ConfigXMLReader.java:347)
> org.ofbiz.webapp.control.ConfigXMLReader$ControllerConfig.<init>(ConfigXMLReader.java:105)
> org.ofbiz.webapp.control.ConfigXMLReader.getControllerConfig(ConfigXMLReader.java:73)
> org.ofbiz.webapp.control.RequestHandler.getControllerConfig(RequestHandler.java:96)
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:112)
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:201)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:259)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
> org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:44)
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> java.lang.Thread.run(Thread.java:595)
> --------------------------------------------------------------------------------
>
> 2009-06-04 12:03:35,913 (http-0.0.0.0-8080-1) [    
> ControlServlet.java:204:ERROR]
> ---- exception report
> ----------------------------------------------------------
> Error in request handler:
> Exception: org.ofbiz.webapp.control.RequestHandlerException
> Message: Unknown request [main]; this request does not exist or cannot be
> called directly.
> ---- stack trace
> ---------------------------------------------------------------
> org.ofbiz.webapp.control.RequestHandlerException: Unknown request [main];
> this request does not exist or cannot be called directly.
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:142)
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:201)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:259)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
> org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:44)
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> java.lang.Thread.run(Thread.java:595)
> --------------------------------------------------------------------------------
>
> 2009-06-04 12:03:35,929 (http-0.0.0.0-8080-1) [    
> ControlServlet.java:218:ERROR] An error occurred, going to the errorPage:
> /error/error.jsp
> 2009-06-04 12:03:35,929 (http-0.0.0.0-8080-1) [    
> ControlServlet.java:225:ERROR] Including errorPage: /error/error.jsp
> 2009-06-04 12:03:35,960 (http-0.0.0.0-8080-1) [    
> ControlServlet.java:299:INFO ] [[[main] Request Done- total:0.047,since
> last([main] Request Be...):0.047]]
>
>  

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz Hello1 deploy error

hans_bakker
In reply to this post by jillas
please use the official hello world example at:

http://docs.ofbiz.org/display/OFBIZ/OFBiz+Beginners+Development+Guide
+Using+Practice+Application+(Hello+World...)

regards,
Hans


On Wed, 2009-06-03 at 23:35 -0700, jillas wrote:

> I am gettiing the following error with a simple hello1 program example in
> ofbiz
>
> org.ofbiz.webapp.control.RequestHandlerException: Unknown request [main];
> this request does not exist or cannot be called directly
>
> In log file it is showing as
>
> 2009-06-04 12:03:35,913 (http-0.0.0.0-8080-1) [    
> ControlServlet.java:130:INFO ] [[[main] Request Begun, encoding=[UTF-8]-
> total:0.0,since last(Begin):0.0]]
> 2009-06-04 12:03:35,913 (http-0.0.0.0-8080-1) [          
> UtilXml.java:181:WARN ] [UtilXml.readXmlDocument] URL was null, doing
> nothing
> 2009-06-04 12:03:35,913 (http-0.0.0.0-8080-1) [  
> ConfigXMLReader.java:352:ERROR]
> ---- runtime exception report
> --------------------------------------------------
> Exception: java.lang.NullPointerException
> Message: null
> ---- stack trace
> ---------------------------------------------------------------
> java.lang.NullPointerException
> org.ofbiz.webapp.control.ConfigXMLReader.loadDocument(ConfigXMLReader.java:347)
> org.ofbiz.webapp.control.ConfigXMLReader$ControllerConfig.<init>(ConfigXMLReader.java:105)
> org.ofbiz.webapp.control.ConfigXMLReader.getControllerConfig(ConfigXMLReader.java:73)
> org.ofbiz.webapp.control.RequestHandler.getControllerConfig(RequestHandler.java:96)
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:112)
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:201)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:259)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
> org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:44)
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> java.lang.Thread.run(Thread.java:595)
> --------------------------------------------------------------------------------
>
> 2009-06-04 12:03:35,913 (http-0.0.0.0-8080-1) [    
> ControlServlet.java:204:ERROR]
> ---- exception report
> ----------------------------------------------------------
> Error in request handler:
> Exception: org.ofbiz.webapp.control.RequestHandlerException
> Message: Unknown request [main]; this request does not exist or cannot be
> called directly.
> ---- stack trace
> ---------------------------------------------------------------
> org.ofbiz.webapp.control.RequestHandlerException: Unknown request [main];
> this request does not exist or cannot be called directly.
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:142)
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:201)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:259)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
> org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:44)
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> java.lang.Thread.run(Thread.java:595)
> --------------------------------------------------------------------------------
>
> 2009-06-04 12:03:35,929 (http-0.0.0.0-8080-1) [    
> ControlServlet.java:218:ERROR] An error occurred, going to the errorPage:
> /error/error.jsp
> 2009-06-04 12:03:35,929 (http-0.0.0.0-8080-1) [    
> ControlServlet.java:225:ERROR] Including errorPage: /error/error.jsp
> 2009-06-04 12:03:35,960 (http-0.0.0.0-8080-1) [    
> ControlServlet.java:299:INFO ] [[[main] Request Done- total:0.047,since
> last([main] Request Be...):0.047]]
>
--
Antwebsystems.com: Quality OFBiz services for competitive rates

Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz Hello1 deploy error

jillas
In reply to this post by Chirag Manocha-2
Hi

    The controller.xml is like this :

<?xml version="1.0" encoding="UTF-8" ?>
<site-conf xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
        xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/site-conf.xsd">
    <description>First Hello World Site Configuration File</description>
    <owner>Open For Business Project (c) 2005 </owner>
    <errorpage>/error/error.jsp</errorpage>
    <handler name="java" type="request" class="org.ofbiz.webapp.event.JavaEventHandler"/>
    <handler name="soap" type="request" class="org.ofbiz.webapp.event.SOAPEventHandler"/>
    <handler name="service" type="request" class="org.ofbiz.webapp.event.ServiceEventHandler"/>
    <handler name="service-multi" type="request" class="org.ofbiz.webapp.event.ServiceMultiEventHandler"/>
    <handler name="simple" type="request" class="org.ofbiz.webapp.event.SimpleEventHandler"/>
    <handler name="ftl" type="view" class="org.ofbiz.webapp.ftl.FreeMarkerViewHandler"/>
    <handler name="jsp" type="view" class="org.ofbiz.webapp.view.JspViewHandler"/>
    <handler name="screen" type="view" class="org.ofbiz.widget.screen.ScreenWidgetViewHandler"/>
    <handler name="http" type="view" class="org.ofbiz.webapp.view.HttpViewHandler"/>
    <preprocessor>
       
       
        <event type="java" path="org.ofbiz.securityext.login.LoginEvents" invoke="checkExternalLoginKey"/>
    </preprocessor>
    <postprocessor>
       
       
    </postprocessor>
   
    <request-map uri="main">
        <response name="success" type="view" value="main"/>
    </request-map>
   
   
    <view-map name="error" page="/error/error.jsp"/>
    <view-map name="main" type="ftl" page="main.ftl"/>
   
</site-conf>

Regards
Prashanth Jilla

Chirag Manocha-2 wrote
It seems that you have missed controller entry.
Check with your controller.xml file.

Regards
--
Chirag Manocha
HotWax Media Pvt. Ltd.
Website :- www.hotwaxmedia.com
Contact :- +91-98263-19099



jillas wrote:
> I am gettiing the following error with a simple hello1 program example in
> ofbiz
>
> org.ofbiz.webapp.control.RequestHandlerException: Unknown request [main];
> this request does not exist or cannot be called directly
>
> In log file it is showing as
>
> 2009-06-04 12:03:35,913 (http-0.0.0.0-8080-1) [    
> ControlServlet.java:130:INFO ] [[[main] Request Begun, encoding=[UTF-8]-
> total:0.0,since last(Begin):0.0]]
> 2009-06-04 12:03:35,913 (http-0.0.0.0-8080-1) [          
> UtilXml.java:181:WARN ] [UtilXml.readXmlDocument] URL was null, doing
> nothing
> 2009-06-04 12:03:35,913 (http-0.0.0.0-8080-1) [  
> ConfigXMLReader.java:352:ERROR]
> ---- runtime exception report
> --------------------------------------------------
> Exception: java.lang.NullPointerException
> Message: null
> ---- stack trace
> ---------------------------------------------------------------
> java.lang.NullPointerException
> org.ofbiz.webapp.control.ConfigXMLReader.loadDocument(ConfigXMLReader.java:347)
> org.ofbiz.webapp.control.ConfigXMLReader$ControllerConfig.<init>(ConfigXMLReader.java:105)
> org.ofbiz.webapp.control.ConfigXMLReader.getControllerConfig(ConfigXMLReader.java:73)
> org.ofbiz.webapp.control.RequestHandler.getControllerConfig(RequestHandler.java:96)
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:112)
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:201)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:259)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
> org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:44)
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> java.lang.Thread.run(Thread.java:595)
> --------------------------------------------------------------------------------
>
> 2009-06-04 12:03:35,913 (http-0.0.0.0-8080-1) [    
> ControlServlet.java:204:ERROR]
> ---- exception report
> ----------------------------------------------------------
> Error in request handler:
> Exception: org.ofbiz.webapp.control.RequestHandlerException
> Message: Unknown request [main]; this request does not exist or cannot be
> called directly.
> ---- stack trace
> ---------------------------------------------------------------
> org.ofbiz.webapp.control.RequestHandlerException: Unknown request [main];
> this request does not exist or cannot be called directly.
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:142)
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:201)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:259)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
> org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:44)
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> java.lang.Thread.run(Thread.java:595)
> --------------------------------------------------------------------------------
>
> 2009-06-04 12:03:35,929 (http-0.0.0.0-8080-1) [    
> ControlServlet.java:218:ERROR] An error occurred, going to the errorPage:
> /error/error.jsp
> 2009-06-04 12:03:35,929 (http-0.0.0.0-8080-1) [    
> ControlServlet.java:225:ERROR] Including errorPage: /error/error.jsp
> 2009-06-04 12:03:35,960 (http-0.0.0.0-8080-1) [    
> ControlServlet.java:299:INFO ] [[[main] Request Done- total:0.047,since
> last([main] Request Be...):0.047]]
>
>  
Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz Hello1 deploy error

jillas
In reply to this post by Vivek Mishra-2
Hi

    The controller.xml is like this :

<?xml version="1.0" encoding="UTF-8" ?>
<site-conf xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
        xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/site-conf.xsd">
    <description>First Hello World Site Configuration File</description>
    <owner>Open For Business Project (c) 2005 </owner>
    <errorpage>/error/error.jsp</errorpage>
    <handler name="java" type="request" class="org.ofbiz.webapp.event.JavaEventHandler"/>
    <handler name="soap" type="request" class="org.ofbiz.webapp.event.SOAPEventHandler"/>
    <handler name="service" type="request" class="org.ofbiz.webapp.event.ServiceEventHandler"/>
    <handler name="service-multi" type="request" class="org.ofbiz.webapp.event.ServiceMultiEventHandler"/>
    <handler name="simple" type="request" class="org.ofbiz.webapp.event.SimpleEventHandler"/>
    <handler name="ftl" type="view" class="org.ofbiz.webapp.ftl.FreeMarkerViewHandler"/>
    <handler name="jsp" type="view" class="org.ofbiz.webapp.view.JspViewHandler"/>
    <handler name="screen" type="view" class="org.ofbiz.widget.screen.ScreenWidgetViewHandler"/>
    <handler name="http" type="view" class="org.ofbiz.webapp.view.HttpViewHandler"/>
    <preprocessor>
       
       
        <event type="java" path="org.ofbiz.securityext.login.LoginEvents" invoke="checkExternalLoginKey"/>
    </preprocessor>
    <postprocessor>
       
       
    </postprocessor>
   
    <request-map uri="main">
        <response name="success" type="view" value="main"/>
    </request-map>
   
   
    <view-map name="error" page="/error/error.jsp"/>
    <view-map name="main" type="ftl" page="main.ftl"/>
   
</site-conf>

Regards
Prashanth Jilla
Vivek Mishra-2 wrote
Hello,
Please make sure that request entry exists in controller.xml
--
Vivek Mishra

jillas wrote:
> I am gettiing the following error with a simple hello1 program example in
> ofbiz
>
> org.ofbiz.webapp.control.RequestHandlerException: Unknown request [main];
> this request does not exist or cannot be called directly
>
> In log file it is showing as
>
> 2009-06-04 12:03:35,913 (http-0.0.0.0-8080-1) [    
> ControlServlet.java:130:INFO ] [[[main] Request Begun, encoding=[UTF-8]-
> total:0.0,since last(Begin):0.0]]
> 2009-06-04 12:03:35,913 (http-0.0.0.0-8080-1) [          
> UtilXml.java:181:WARN ] [UtilXml.readXmlDocument] URL was null, doing
> nothing
> 2009-06-04 12:03:35,913 (http-0.0.0.0-8080-1) [  
> ConfigXMLReader.java:352:ERROR]
> ---- runtime exception report
> --------------------------------------------------
> Exception: java.lang.NullPointerException
> Message: null
> ---- stack trace
> ---------------------------------------------------------------
> java.lang.NullPointerException
> org.ofbiz.webapp.control.ConfigXMLReader.loadDocument(ConfigXMLReader.java:347)
> org.ofbiz.webapp.control.ConfigXMLReader$ControllerConfig.<init>(ConfigXMLReader.java:105)
> org.ofbiz.webapp.control.ConfigXMLReader.getControllerConfig(ConfigXMLReader.java:73)
> org.ofbiz.webapp.control.RequestHandler.getControllerConfig(RequestHandler.java:96)
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:112)
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:201)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:259)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
> org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:44)
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> java.lang.Thread.run(Thread.java:595)
> --------------------------------------------------------------------------------
>
> 2009-06-04 12:03:35,913 (http-0.0.0.0-8080-1) [    
> ControlServlet.java:204:ERROR]
> ---- exception report
> ----------------------------------------------------------
> Error in request handler:
> Exception: org.ofbiz.webapp.control.RequestHandlerException
> Message: Unknown request [main]; this request does not exist or cannot be
> called directly.
> ---- stack trace
> ---------------------------------------------------------------
> org.ofbiz.webapp.control.RequestHandlerException: Unknown request [main];
> this request does not exist or cannot be called directly.
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:142)
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:201)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:259)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
> org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:44)
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> java.lang.Thread.run(Thread.java:595)
> --------------------------------------------------------------------------------
>
> 2009-06-04 12:03:35,929 (http-0.0.0.0-8080-1) [    
> ControlServlet.java:218:ERROR] An error occurred, going to the errorPage:
> /error/error.jsp
> 2009-06-04 12:03:35,929 (http-0.0.0.0-8080-1) [    
> ControlServlet.java:225:ERROR] Including errorPage: /error/error.jsp
> 2009-06-04 12:03:35,960 (http-0.0.0.0-8080-1) [    
> ControlServlet.java:299:INFO ] [[[main] Request Done- total:0.047,since
> last([main] Request Be...):0.047]]
>
>  

 
Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz Hello1 deploy error

Chirag Manocha-2
In reply to this post by jillas
Hi Prashanth,

Then check with your webapp location and mount-point in
ofbiz-component.xml file.
mount-point is that which is used after http://localhost:8080/ and
location is your webapp location.

And this is good that you are learning it, but i would also recommend
you to learn by
http://docs.ofbiz.org/display/OFBIZ/OFBiz+Beginners+Development+Guide+Using+Practice+Application+(Hello+World...)

Regards
--
Chirag Manocha
HotWax Media Pvt. Ltd.
Website :- www.hotwaxmedia.com
Contact :- +91-98263-19099



jillas wrote:

> Hi
>
>     The controller.xml is like this :
>
> <?xml version="1.0" encoding="UTF-8" ?>
> <site-conf xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>        
> xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/site-conf.xsd">
>     <description>First Hello World Site Configuration File</description>
>     <owner>Open For Business Project (c) 2005 </owner>
>     <errorpage>/error/error.jsp</errorpage>
>     <handler name="java" type="request"
> class="org.ofbiz.webapp.event.JavaEventHandler"/>
>     <handler name="soap" type="request"
> class="org.ofbiz.webapp.event.SOAPEventHandler"/>
>     <handler name="service" type="request"
> class="org.ofbiz.webapp.event.ServiceEventHandler"/>
>     <handler name="service-multi" type="request"
> class="org.ofbiz.webapp.event.ServiceMultiEventHandler"/>
>     <handler name="simple" type="request"
> class="org.ofbiz.webapp.event.SimpleEventHandler"/>
>     <handler name="ftl" type="view"
> class="org.ofbiz.webapp.ftl.FreeMarkerViewHandler"/>
>     <handler name="jsp" type="view"
> class="org.ofbiz.webapp.view.JspViewHandler"/>
>     <handler name="screen" type="view"
> class="org.ofbiz.widget.screen.ScreenWidgetViewHandler"/>
>     <handler name="http" type="view"
> class="org.ofbiz.webapp.view.HttpViewHandler"/>
>     <preprocessor>
>         <!-- Events to run on every request before security (chains exempt)
> -->
>         <!-- <event type="java" path="org.ofbiz.webapp.event.TestEvent"
> invoke="test"/> -->
>         <event type="java" path="org.ofbiz.securityext.login.LoginEvents"
> invoke="checkExternalLoginKey"/>
>     </preprocessor>
>     <postprocessor>
>         <!-- Events to run on every request after all other processing
> (chains exempt) -->
>         <!-- <event type="java" path="org.ofbiz.webapp.event.TestEvent"
> invoke="test"/> -->
>     </postprocessor>
>     <!-- Request Mappings -->
>     <request-map uri="main">
>         <response name="success" type="view" value="main"/>
>     </request-map>
>     <!-- end of request mappings -->
>     <!-- View Mappings -->
>     <view-map name="error" page="/error/error.jsp"/>
>     <view-map name="main" type="ftl" page="main.ftl"/>
>     <!-- end of view mappings -->
> </site-conf>
>
> Regards
> Prashanth Jilla
>
>
> Chirag Manocha-2 wrote:
>  
>> It seems that you have missed controller entry.
>> Check with your controller.xml file.
>>
>> Regards
>> --
>> Chirag Manocha
>> HotWax Media Pvt. Ltd.
>> Website :- www.hotwaxmedia.com
>> Contact :- +91-98263-19099
>>
>>
>>
>> jillas wrote:
>>    
>>> I am gettiing the following error with a simple hello1 program example in
>>> ofbiz
>>>
>>> org.ofbiz.webapp.control.RequestHandlerException: Unknown request [main];
>>> this request does not exist or cannot be called directly
>>>
>>> In log file it is showing as
>>>
>>> 2009-06-04 12:03:35,913 (http-0.0.0.0-8080-1) [    
>>> ControlServlet.java:130:INFO ] [[[main] Request Begun, encoding=[UTF-8]-
>>> total:0.0,since last(Begin):0.0]]
>>> 2009-06-04 12:03:35,913 (http-0.0.0.0-8080-1) [          
>>> UtilXml.java:181:WARN ] [UtilXml.readXmlDocument] URL was null, doing
>>> nothing
>>> 2009-06-04 12:03:35,913 (http-0.0.0.0-8080-1) [  
>>> ConfigXMLReader.java:352:ERROR]
>>> ---- runtime exception report
>>> --------------------------------------------------
>>> Exception: java.lang.NullPointerException
>>> Message: null
>>> ---- stack trace
>>> ---------------------------------------------------------------
>>> java.lang.NullPointerException
>>> org.ofbiz.webapp.control.ConfigXMLReader.loadDocument(ConfigXMLReader.java:347)
>>> org.ofbiz.webapp.control.ConfigXMLReader$ControllerConfig.<init>(ConfigXMLReader.java:105)
>>> org.ofbiz.webapp.control.ConfigXMLReader.getControllerConfig(ConfigXMLReader.java:73)
>>> org.ofbiz.webapp.control.RequestHandler.getControllerConfig(RequestHandler.java:96)
>>> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:112)
>>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:201)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:259)
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
>>> org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:44)
>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
>>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>>> java.lang.Thread.run(Thread.java:595)
>>> --------------------------------------------------------------------------------
>>>
>>> 2009-06-04 12:03:35,913 (http-0.0.0.0-8080-1) [    
>>> ControlServlet.java:204:ERROR]
>>> ---- exception report
>>> ----------------------------------------------------------
>>> Error in request handler:
>>> Exception: org.ofbiz.webapp.control.RequestHandlerException
>>> Message: Unknown request [main]; this request does not exist or cannot be
>>> called directly.
>>> ---- stack trace
>>> ---------------------------------------------------------------
>>> org.ofbiz.webapp.control.RequestHandlerException: Unknown request [main];
>>> this request does not exist or cannot be called directly.
>>> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:142)
>>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:201)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:259)
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
>>> org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:44)
>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
>>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>>> java.lang.Thread.run(Thread.java:595)
>>> --------------------------------------------------------------------------------
>>>
>>> 2009-06-04 12:03:35,929 (http-0.0.0.0-8080-1) [    
>>> ControlServlet.java:218:ERROR] An error occurred, going to the errorPage:
>>> /error/error.jsp
>>> 2009-06-04 12:03:35,929 (http-0.0.0.0-8080-1) [    
>>> ControlServlet.java:225:ERROR] Including errorPage: /error/error.jsp
>>> 2009-06-04 12:03:35,960 (http-0.0.0.0-8080-1) [    
>>> ControlServlet.java:299:INFO ] [[[main] Request Done- total:0.047,since
>>> last([main] Request Be...):0.047]]
>>>
>>>  
>>>      
>>    
>
>  
Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz Hello1 deploy error

jillas
Hi Chirag

               The webapp location is "hot-deploy\hello1\webapp\hello1\" and the mount-point is "hello1" in ofbiz-component.xml. Below is the ofbiz-component.xml

<?xml version="1.0" encoding="UTF-8"?>
<ofbiz-component name="hello1"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
        xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/ofbiz-component.xsd">
    <resource-loader name="main" type="component"/>
    <webapp name="hello1"
       title="My First OFBiz Application"
       server="default-server"
       location="webapp/hello1"
       mount-point="/hello1"
       app-bar-display="false"/>     
</ofbiz-component>

for testing the URL userd is : http://localhost:8080/hello1/control/main

NOTE: I am using "ofbiz9.04". is it problem with the version?

Thanks & Regards
Prashanth Jilla

Chirag Manocha-2 wrote
Hi Prashanth,

Then check with your webapp location and mount-point in
ofbiz-component.xml file.
mount-point is that which is used after http://localhost:8080/ and
location is your webapp location.

And this is good that you are learning it, but i would also recommend
you to learn by
http://docs.ofbiz.org/display/OFBIZ/OFBiz+Beginners+Development+Guide+Using+Practice+Application+(Hello+World...)

Regards
--
Chirag Manocha
HotWax Media Pvt. Ltd.
Website :- www.hotwaxmedia.com
Contact :- +91-98263-19099



jillas wrote:
> Hi
>
>     The controller.xml is like this :
>
> <?xml version="1.0" encoding="UTF-8" ?>
> <site-conf xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
>       
> xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/site-conf.xsd">
>     <description>First Hello World Site Configuration File</description>
>     <owner>Open For Business Project (c) 2005 </owner>
>     <errorpage>/error/error.jsp</errorpage>
>     <handler name="java" type="request"
> class="org.ofbiz.webapp.event.JavaEventHandler"/>
>     <handler name="soap" type="request"
> class="org.ofbiz.webapp.event.SOAPEventHandler"/>
>     <handler name="service" type="request"
> class="org.ofbiz.webapp.event.ServiceEventHandler"/>
>     <handler name="service-multi" type="request"
> class="org.ofbiz.webapp.event.ServiceMultiEventHandler"/>
>     <handler name="simple" type="request"
> class="org.ofbiz.webapp.event.SimpleEventHandler"/>
>     <handler name="ftl" type="view"
> class="org.ofbiz.webapp.ftl.FreeMarkerViewHandler"/>
>     <handler name="jsp" type="view"
> class="org.ofbiz.webapp.view.JspViewHandler"/>
>     <handler name="screen" type="view"
> class="org.ofbiz.widget.screen.ScreenWidgetViewHandler"/>
>     <handler name="http" type="view"
> class="org.ofbiz.webapp.view.HttpViewHandler"/>
>     <preprocessor>
>        
>        
>         <event type="java" path="org.ofbiz.securityext.login.LoginEvents"
> invoke="checkExternalLoginKey"/>
>     </preprocessor>
>     <postprocessor>
>        
>        
>     </postprocessor>
>    
>     <request-map uri="main">
>         <response name="success" type="view" value="main"/>
>     </request-map>
>    
>    
>     <view-map name="error" page="/error/error.jsp"/>
>     <view-map name="main" type="ftl" page="main.ftl"/>
>    
> </site-conf>
>
> Regards
> Prashanth Jilla
>
>
> Chirag Manocha-2 wrote:
>  
>> It seems that you have missed controller entry.
>> Check with your controller.xml file.
>>
>> Regards
>> --
>> Chirag Manocha
>> HotWax Media Pvt. Ltd.
>> Website :- www.hotwaxmedia.com
>> Contact :- +91-98263-19099
>>
>>
>>
>> jillas wrote:
>>    
>>> I am gettiing the following error with a simple hello1 program example in
>>> ofbiz
>>>
>>> org.ofbiz.webapp.control.RequestHandlerException: Unknown request [main];
>>> this request does not exist or cannot be called directly
>>>
>>> In log file it is showing as
>>>
>>> 2009-06-04 12:03:35,913 (http-0.0.0.0-8080-1) [    
>>> ControlServlet.java:130:INFO ] [[[main] Request Begun, encoding=[UTF-8]-
>>> total:0.0,since last(Begin):0.0]]
>>> 2009-06-04 12:03:35,913 (http-0.0.0.0-8080-1) [          
>>> UtilXml.java:181:WARN ] [UtilXml.readXmlDocument] URL was null, doing
>>> nothing
>>> 2009-06-04 12:03:35,913 (http-0.0.0.0-8080-1) [  
>>> ConfigXMLReader.java:352:ERROR]
>>> ---- runtime exception report
>>> --------------------------------------------------
>>> Exception: java.lang.NullPointerException
>>> Message: null
>>> ---- stack trace
>>> ---------------------------------------------------------------
>>> java.lang.NullPointerException
>>> org.ofbiz.webapp.control.ConfigXMLReader.loadDocument(ConfigXMLReader.java:347)
>>> org.ofbiz.webapp.control.ConfigXMLReader$ControllerConfig.<init>(ConfigXMLReader.java:105)
>>> org.ofbiz.webapp.control.ConfigXMLReader.getControllerConfig(ConfigXMLReader.java:73)
>>> org.ofbiz.webapp.control.RequestHandler.getControllerConfig(RequestHandler.java:96)
>>> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:112)
>>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:201)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:259)
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
>>> org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:44)
>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
>>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>>> java.lang.Thread.run(Thread.java:595)
>>> --------------------------------------------------------------------------------
>>>
>>> 2009-06-04 12:03:35,913 (http-0.0.0.0-8080-1) [    
>>> ControlServlet.java:204:ERROR]
>>> ---- exception report
>>> ----------------------------------------------------------
>>> Error in request handler:
>>> Exception: org.ofbiz.webapp.control.RequestHandlerException
>>> Message: Unknown request [main]; this request does not exist or cannot be
>>> called directly.
>>> ---- stack trace
>>> ---------------------------------------------------------------
>>> org.ofbiz.webapp.control.RequestHandlerException: Unknown request [main];
>>> this request does not exist or cannot be called directly.
>>> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:142)
>>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:201)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:259)
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
>>> org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:44)
>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
>>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>>> java.lang.Thread.run(Thread.java:595)
>>> --------------------------------------------------------------------------------
>>>
>>> 2009-06-04 12:03:35,929 (http-0.0.0.0-8080-1) [    
>>> ControlServlet.java:218:ERROR] An error occurred, going to the errorPage:
>>> /error/error.jsp
>>> 2009-06-04 12:03:35,929 (http-0.0.0.0-8080-1) [    
>>> ControlServlet.java:225:ERROR] Including errorPage: /error/error.jsp
>>> 2009-06-04 12:03:35,960 (http-0.0.0.0-8080-1) [    
>>> ControlServlet.java:299:INFO ] [[[main] Request Done- total:0.047,since
>>> last([main] Request Be...):0.047]]
>>>
>>>  
>>>      
>>    
>
>  
Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz Hello1 deploy error

jillas
In reply to this post by Chirag Manocha-2
Hi Chirag

        It's a verynice tutorial link you have given, I have done part -1 sucessfully in the tutorial. But while doing part-2 and part-3 I din't found any difference in the output after performing all the operations as given in the tutorail. The output is attached file for all parts.

        Please let me know where I have done wrong. There is no error in logs.

Thanks & Regards
Prashanth Jilla


Chirag Manocha-2 wrote
Hi Prashanth,

Then check with your webapp location and mount-point in
ofbiz-component.xml file.
mount-point is that which is used after http://localhost:8080/ and
location is your webapp location.

And this is good that you are learning it, but i would also recommend
you to learn by
http://docs.ofbiz.org/display/OFBIZ/OFBiz+Beginners+Development+Guide+Using+Practice+Application+(Hello+World...)

Regards
--
Chirag Manocha
HotWax Media Pvt. Ltd.
Website :- www.hotwaxmedia.com
Contact :- +91-98263-19099



jillas wrote:
> Hi
>
>     The controller.xml is like this :
>
> <?xml version="1.0" encoding="UTF-8" ?>
> <site-conf xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
>       
> xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/site-conf.xsd">
>     <description>First Hello World Site Configuration File</description>
>     <owner>Open For Business Project (c) 2005 </owner>
>     <errorpage>/error/error.jsp</errorpage>
>     <handler name="java" type="request"
> class="org.ofbiz.webapp.event.JavaEventHandler"/>
>     <handler name="soap" type="request"
> class="org.ofbiz.webapp.event.SOAPEventHandler"/>
>     <handler name="service" type="request"
> class="org.ofbiz.webapp.event.ServiceEventHandler"/>
>     <handler name="service-multi" type="request"
> class="org.ofbiz.webapp.event.ServiceMultiEventHandler"/>
>     <handler name="simple" type="request"
> class="org.ofbiz.webapp.event.SimpleEventHandler"/>
>     <handler name="ftl" type="view"
> class="org.ofbiz.webapp.ftl.FreeMarkerViewHandler"/>
>     <handler name="jsp" type="view"
> class="org.ofbiz.webapp.view.JspViewHandler"/>
>     <handler name="screen" type="view"
> class="org.ofbiz.widget.screen.ScreenWidgetViewHandler"/>
>     <handler name="http" type="view"
> class="org.ofbiz.webapp.view.HttpViewHandler"/>
>     <preprocessor>
>        
>        
>         <event type="java" path="org.ofbiz.securityext.login.LoginEvents"
> invoke="checkExternalLoginKey"/>
>     </preprocessor>
>     <postprocessor>
>        
>        
>     </postprocessor>
>    
>     <request-map uri="main">
>         <response name="success" type="view" value="main"/>
>     </request-map>
>    
>    
>     <view-map name="error" page="/error/error.jsp"/>
>     <view-map name="main" type="ftl" page="main.ftl"/>
>    
> </site-conf>
>
> Regards
> Prashanth Jilla
>
>
> Chirag Manocha-2 wrote:
>  
>> It seems that you have missed controller entry.
>> Check with your controller.xml file.
>>
>> Regards
>> --
>> Chirag Manocha
>> HotWax Media Pvt. Ltd.
>> Website :- www.hotwaxmedia.com
>> Contact :- +91-98263-19099
>>
>>
>>
>> jillas wrote:
>>    
>>> I am gettiing the following error with a simple hello1 program example in
>>> ofbiz
>>>
>>> org.ofbiz.webapp.control.RequestHandlerException: Unknown request [main];
>>> this request does not exist or cannot be called directly
>>>
>>> In log file it is showing as
>>>
>>> 2009-06-04 12:03:35,913 (http-0.0.0.0-8080-1) [    
>>> ControlServlet.java:130:INFO ] [[[main] Request Begun, encoding=[UTF-8]-
>>> total:0.0,since last(Begin):0.0]]
>>> 2009-06-04 12:03:35,913 (http-0.0.0.0-8080-1) [          
>>> UtilXml.java:181:WARN ] [UtilXml.readXmlDocument] URL was null, doing
>>> nothing
>>> 2009-06-04 12:03:35,913 (http-0.0.0.0-8080-1) [  
>>> ConfigXMLReader.java:352:ERROR]
>>> ---- runtime exception report
>>> --------------------------------------------------
>>> Exception: java.lang.NullPointerException
>>> Message: null
>>> ---- stack trace
>>> ---------------------------------------------------------------
>>> java.lang.NullPointerException
>>> org.ofbiz.webapp.control.ConfigXMLReader.loadDocument(ConfigXMLReader.java:347)
>>> org.ofbiz.webapp.control.ConfigXMLReader$ControllerConfig.<init>(ConfigXMLReader.java:105)
>>> org.ofbiz.webapp.control.ConfigXMLReader.getControllerConfig(ConfigXMLReader.java:73)
>>> org.ofbiz.webapp.control.RequestHandler.getControllerConfig(RequestHandler.java:96)
>>> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:112)
>>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:201)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:259)
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
>>> org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:44)
>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
>>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>>> java.lang.Thread.run(Thread.java:595)
>>> --------------------------------------------------------------------------------
>>>
>>> 2009-06-04 12:03:35,913 (http-0.0.0.0-8080-1) [    
>>> ControlServlet.java:204:ERROR]
>>> ---- exception report
>>> ----------------------------------------------------------
>>> Error in request handler:
>>> Exception: org.ofbiz.webapp.control.RequestHandlerException
>>> Message: Unknown request [main]; this request does not exist or cannot be
>>> called directly.
>>> ---- stack trace
>>> ---------------------------------------------------------------
>>> org.ofbiz.webapp.control.RequestHandlerException: Unknown request [main];
>>> this request does not exist or cannot be called directly.
>>> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:142)
>>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:201)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:259)
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
>>> org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:44)
>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
>>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>>> java.lang.Thread.run(Thread.java:595)
>>> --------------------------------------------------------------------------------
>>>
>>> 2009-06-04 12:03:35,929 (http-0.0.0.0-8080-1) [    
>>> ControlServlet.java:218:ERROR] An error occurred, going to the errorPage:
>>> /error/error.jsp
>>> 2009-06-04 12:03:35,929 (http-0.0.0.0-8080-1) [    
>>> ControlServlet.java:225:ERROR] Including errorPage: /error/error.jsp
>>> 2009-06-04 12:03:35,960 (http-0.0.0.0-8080-1) [    
>>> ControlServlet.java:299:INFO ] [[[main] Request Done- total:0.047,since
>>> last([main] Request Be...):0.047]]
>>>
>>>  
>>>      
>>    
>
>  
Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz Hello1 deploy error

jillas
In reply to this post by hans_bakker
Hi Hans

        It's a verynice tutorial link you have given, I have done part -1 sucessfully in the tutorial. But while doing part-2 and part-3 I din't found any difference in the output after performing all the operations as given in the tutorail. The output is attached file for all parts.

        Please let me know where I have done wrong. There is no error in logs.

Thanks & Regards
Prashanth Jilla

hansbak wrote
please use the official hello world example at:

http://docs.ofbiz.org/display/OFBIZ/OFBiz+Beginners+Development+Guide
+Using+Practice+Application+(Hello+World...)

regards,
Hans


On Wed, 2009-06-03 at 23:35 -0700, jillas wrote:
> I am gettiing the following error with a simple hello1 program example in
> ofbiz
>
> org.ofbiz.webapp.control.RequestHandlerException: Unknown request [main];
> this request does not exist or cannot be called directly
>
> In log file it is showing as
>
> 2009-06-04 12:03:35,913 (http-0.0.0.0-8080-1) [    
> ControlServlet.java:130:INFO ] [[[main] Request Begun, encoding=[UTF-8]-
> total:0.0,since last(Begin):0.0]]
> 2009-06-04 12:03:35,913 (http-0.0.0.0-8080-1) [          
> UtilXml.java:181:WARN ] [UtilXml.readXmlDocument] URL was null, doing
> nothing
> 2009-06-04 12:03:35,913 (http-0.0.0.0-8080-1) [  
> ConfigXMLReader.java:352:ERROR]
> ---- runtime exception report
> --------------------------------------------------
> Exception: java.lang.NullPointerException
> Message: null
> ---- stack trace
> ---------------------------------------------------------------
> java.lang.NullPointerException
> org.ofbiz.webapp.control.ConfigXMLReader.loadDocument(ConfigXMLReader.java:347)
> org.ofbiz.webapp.control.ConfigXMLReader$ControllerConfig.<init>(ConfigXMLReader.java:105)
> org.ofbiz.webapp.control.ConfigXMLReader.getControllerConfig(ConfigXMLReader.java:73)
> org.ofbiz.webapp.control.RequestHandler.getControllerConfig(RequestHandler.java:96)
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:112)
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:201)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:259)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
> org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:44)
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> java.lang.Thread.run(Thread.java:595)
> --------------------------------------------------------------------------------
>
> 2009-06-04 12:03:35,913 (http-0.0.0.0-8080-1) [    
> ControlServlet.java:204:ERROR]
> ---- exception report
> ----------------------------------------------------------
> Error in request handler:
> Exception: org.ofbiz.webapp.control.RequestHandlerException
> Message: Unknown request [main]; this request does not exist or cannot be
> called directly.
> ---- stack trace
> ---------------------------------------------------------------
> org.ofbiz.webapp.control.RequestHandlerException: Unknown request [main];
> this request does not exist or cannot be called directly.
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:142)
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:201)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:259)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
> org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:44)
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> java.lang.Thread.run(Thread.java:595)
> --------------------------------------------------------------------------------
>
> 2009-06-04 12:03:35,929 (http-0.0.0.0-8080-1) [    
> ControlServlet.java:218:ERROR] An error occurred, going to the errorPage:
> /error/error.jsp
> 2009-06-04 12:03:35,929 (http-0.0.0.0-8080-1) [    
> ControlServlet.java:225:ERROR] Including errorPage: /error/error.jsp
> 2009-06-04 12:03:35,960 (http-0.0.0.0-8080-1) [    
> ControlServlet.java:299:INFO ] [[[main] Request Done- total:0.047,since
> last([main] Request Be...):0.047]]
>
--
Antwebsystems.com: Quality OFBiz services for competitive rates
Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz Hello1 deploy error

Chirag Manocha-2
In reply to this post by jillas
Hello Prashanth.
Part-2 is for Doing Some advancements. This section is to teach you
about the use of decorators, uiLabels etc. This teaches you flow of process.
Part-3 is for CRUD operations. It is basically for teaching you
operations with database.

P.S. :-
1). Jpg files are not delivered to subscribers of mailing list.
2). Please do not repeat your mail on mailing list and even in single
thread. Everyone read your mail, those have proper answer will reply on
it. This just increases size of mailing list and everyones' mailbox
also. :-)

Happy Learning
 

Regards
--
Chirag Manocha
HotWax Media Pvt. Ltd.
Website :- www.hotwaxmedia.com
Contact :- +91-98263-19099



jillas wrote:

> Hi Chirag
>
>         It's a verynice tutorial link you have given, I have done part -1
> sucessfully in the tutorial. But while doing part-2 and part-3 I din't found
> any difference in the output after performing all the operations as given in
> the tutorail. The output is attached file for all parts.
>
>         Please let me know where I have done wrong. There is no error in
> logs.
>
> Thanks & Regards
> Prashanth Jilla
>
>
>
> Chirag Manocha-2 wrote:
>  
>> Hi Prashanth,
>>
>> Then check with your webapp location and mount-point in
>> ofbiz-component.xml file.
>> mount-point is that which is used after http://localhost:8080/ and
>> location is your webapp location.
>>
>> And this is good that you are learning it, but i would also recommend
>> you to learn by
>> http://docs.ofbiz.org/display/OFBIZ/OFBiz+Beginners+Development+Guide+Using+Practice+Application+(Hello+World...)
>>
>> Regards
>> --
>> Chirag Manocha
>> HotWax Media Pvt. Ltd.
>> Website :- www.hotwaxmedia.com
>> Contact :- +91-98263-19099
>>
>>
>>
>> jillas wrote:
>>    
>>> Hi
>>>
>>>     The controller.xml is like this :
>>>
>>> <?xml version="1.0" encoding="UTF-8" ?>
>>> <site-conf xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>        
>>> xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/site-conf.xsd">
>>>     <description>First Hello World Site Configuration File</description>
>>>     <owner>Open For Business Project (c) 2005 </owner>
>>>     <errorpage>/error/error.jsp</errorpage>
>>>     <handler name="java" type="request"
>>> class="org.ofbiz.webapp.event.JavaEventHandler"/>
>>>     <handler name="soap" type="request"
>>> class="org.ofbiz.webapp.event.SOAPEventHandler"/>
>>>     <handler name="service" type="request"
>>> class="org.ofbiz.webapp.event.ServiceEventHandler"/>
>>>     <handler name="service-multi" type="request"
>>> class="org.ofbiz.webapp.event.ServiceMultiEventHandler"/>
>>>     <handler name="simple" type="request"
>>> class="org.ofbiz.webapp.event.SimpleEventHandler"/>
>>>     <handler name="ftl" type="view"
>>> class="org.ofbiz.webapp.ftl.FreeMarkerViewHandler"/>
>>>     <handler name="jsp" type="view"
>>> class="org.ofbiz.webapp.view.JspViewHandler"/>
>>>     <handler name="screen" type="view"
>>> class="org.ofbiz.widget.screen.ScreenWidgetViewHandler"/>
>>>     <handler name="http" type="view"
>>> class="org.ofbiz.webapp.view.HttpViewHandler"/>
>>>     <preprocessor>
>>>         <!-- Events to run on every request before security (chains
>>> exempt)
>>> -->
>>>         <!-- <event type="java" path="org.ofbiz.webapp.event.TestEvent"
>>> invoke="test"/> -->
>>>         <event type="java" path="org.ofbiz.securityext.login.LoginEvents"
>>> invoke="checkExternalLoginKey"/>
>>>     </preprocessor>
>>>     <postprocessor>
>>>         <!-- Events to run on every request after all other processing
>>> (chains exempt) -->
>>>         <!-- <event type="java" path="org.ofbiz.webapp.event.TestEvent"
>>> invoke="test"/> -->
>>>     </postprocessor>
>>>     <!-- Request Mappings -->
>>>     <request-map uri="main">
>>>         <response name="success" type="view" value="main"/>
>>>     </request-map>
>>>     <!-- end of request mappings -->
>>>     <!-- View Mappings -->
>>>     <view-map name="error" page="/error/error.jsp"/>
>>>     <view-map name="main" type="ftl" page="main.ftl"/>
>>>     <!-- end of view mappings -->
>>> </site-conf>
>>>
>>> Regards
>>> Prashanth Jilla
>>>
>>>
>>> Chirag Manocha-2 wrote:
>>>  
>>>      
>>>> It seems that you have missed controller entry.
>>>> Check with your controller.xml file.
>>>>
>>>> Regards
>>>> --
>>>> Chirag Manocha
>>>> HotWax Media Pvt. Ltd.
>>>> Website :- www.hotwaxmedia.com
>>>> Contact :- +91-98263-19099
>>>>
>>>>
>>>>
>>>> jillas wrote:
>>>>    
>>>>        
>>>>> I am gettiing the following error with a simple hello1 program example
>>>>> in
>>>>> ofbiz
>>>>>
>>>>> org.ofbiz.webapp.control.RequestHandlerException: Unknown request
>>>>> [main];
>>>>> this request does not exist or cannot be called directly
>>>>>
>>>>> In log file it is showing as
>>>>>
>>>>> 2009-06-04 12:03:35,913 (http-0.0.0.0-8080-1) [    
>>>>> ControlServlet.java:130:INFO ] [[[main] Request Begun,
>>>>> encoding=[UTF-8]-
>>>>> total:0.0,since last(Begin):0.0]]
>>>>> 2009-06-04 12:03:35,913 (http-0.0.0.0-8080-1) [          
>>>>> UtilXml.java:181:WARN ] [UtilXml.readXmlDocument] URL was null, doing
>>>>> nothing
>>>>> 2009-06-04 12:03:35,913 (http-0.0.0.0-8080-1) [  
>>>>> ConfigXMLReader.java:352:ERROR]
>>>>> ---- runtime exception report
>>>>> --------------------------------------------------
>>>>> Exception: java.lang.NullPointerException
>>>>> Message: null
>>>>> ---- stack trace
>>>>> ---------------------------------------------------------------
>>>>> java.lang.NullPointerException
>>>>> org.ofbiz.webapp.control.ConfigXMLReader.loadDocument(ConfigXMLReader.java:347)
>>>>> org.ofbiz.webapp.control.ConfigXMLReader$ControllerConfig.<init>(ConfigXMLReader.java:105)
>>>>> org.ofbiz.webapp.control.ConfigXMLReader.getControllerConfig(ConfigXMLReader.java:73)
>>>>> org.ofbiz.webapp.control.RequestHandler.getControllerConfig(RequestHandler.java:96)
>>>>> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:112)
>>>>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:201)
>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>>>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:259)
>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>>>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
>>>>> org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:44)
>>>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
>>>>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>>>>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>>>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>>>>> java.lang.Thread.run(Thread.java:595)
>>>>> --------------------------------------------------------------------------------
>>>>>
>>>>> 2009-06-04 12:03:35,913 (http-0.0.0.0-8080-1) [    
>>>>> ControlServlet.java:204:ERROR]
>>>>> ---- exception report
>>>>> ----------------------------------------------------------
>>>>> Error in request handler:
>>>>> Exception: org.ofbiz.webapp.control.RequestHandlerException
>>>>> Message: Unknown request [main]; this request does not exist or cannot
>>>>> be
>>>>> called directly.
>>>>> ---- stack trace
>>>>> ---------------------------------------------------------------
>>>>> org.ofbiz.webapp.control.RequestHandlerException: Unknown request
>>>>> [main];
>>>>> this request does not exist or cannot be called directly.
>>>>> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:142)
>>>>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:201)
>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>>>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:259)
>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>>>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
>>>>> org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:44)
>>>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
>>>>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>>>>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>>>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>>>>> java.lang.Thread.run(Thread.java:595)
>>>>> --------------------------------------------------------------------------------
>>>>>
>>>>> 2009-06-04 12:03:35,929 (http-0.0.0.0-8080-1) [    
>>>>> ControlServlet.java:218:ERROR] An error occurred, going to the
>>>>> errorPage:
>>>>> /error/error.jsp
>>>>> 2009-06-04 12:03:35,929 (http-0.0.0.0-8080-1) [    
>>>>> ControlServlet.java:225:ERROR] Including errorPage: /error/error.jsp
>>>>> 2009-06-04 12:03:35,960 (http-0.0.0.0-8080-1) [    
>>>>> ControlServlet.java:299:INFO ] [[[main] Request Done- total:0.047,since
>>>>> last([main] Request Be...):0.047]]
>>>>>
>>>>>  
>>>>>      
>>>>>          
>>>>    
>>>>        
>>>  
>>>      
>>    
> http://www.nabble.com/file/p23869172/part-1.jpg 
>