ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chirag Manocha <chirag.mano...@hotwaxmedia.com>
Subject Re: Ofbiz Hello1 deploy error
Date Thu, 04 Jun 2009 08:19:10 GMT
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]]
>>>
>>>   
>>>       
>>     
>
>   

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message