ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jillas <prashanth.ji...@cognizant.com>
Subject Re: Ofbiz Hello1 deploy error
Date Thu, 04 Jun 2009 07:17:10 GMT

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

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]]
>>
>>   
> 
>  
> 

-- 
View this message in context: http://www.nabble.com/Ofbiz-Hello1-deploy-error-tp23864518p23864980.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Mime
View raw message