Please use rather user ML for such questions, see why here : http://ofbiz.apache.org/mailing-lists.html
Jacques Xue-Feng Yang wrote: > Hi: > > I am new to ofbiz and testing it now. I put a HelloWorld hello1 in hot-deploy > but not in applications. When starting the > installed server(apache-ofbiz-12.04.02) , I got the following error: > > > [java] 2013-10-07 06:17:22,116 (main) [ ComponentContainer.java:180:INFO ] > Auto-Loading component directory : > [C:/gtworkspace/ofbiz/applications] > [java] 2013-10-07 06:17:22,121 (main) [ ComponentContainer.java:167:ERROR] > Cannot load component : @ hello1 : The component root > location does not exist: C:\gtworkspace\ofbiz > \applications/hello1/ > [java] 2013-10-07 06:17:22,121 (main) [ ComponentContainer.java:170:ERROR] > Cannot load component : @ hello1 > > I didn't change anything in applications/component-load.xml, but did > everything as the tutorial suggested. > > > Then, it shows loading OK for hot-deploy > [java] 2013-10-07 06:38:25,213 (main) [ ComponentContainer.java:180:INFO ] > Auto-Loading component directory : > [C:/gtworkspace/ofbiz/hot-deploy] > [java] 2013-10-07 06:38:25,224 (main) [ ComponentContainer.java:241:INFO ] > Loading component : [hello1] > [java] 2013-10-07 06:38:25,238 (main) [ ComponentContainer.java:149:INFO ] > All components loaded > > However, after the server is up, ecommerce works correct, but when browsed > http://localhost:8080/hello1/control/main, I run into > errors in two cases: > > 1) Setup controller.xml as in the tutorial: > > <preprocessor> > <event type="java" path="org.ofbiz.securityext.login.LoginEvents" > invoke="checkExternalLoginKey"/> > </preprocessor> > > I got the error: > > [java] 2013-10-07 06:58:07,073 (http-bio-0.0.0.0-8443-exec-4) [ > JavaEventHandler.java:108:ERROR] > [java] ---- exception report > ---------------------------------------------------------- > [java] Problems Processing Event > [java] Exception: java.lang.NoSuchMethodException > [java] Message: > org.ofbiz.securityext.login.LoginEvents.checkExternalLoginKey(javax.servlet.http.HttpServletRequest, > javax.servlet.http.HttpServletResponse) > [java] ---- stack trace > --------------------------------------------------------------- > [java] java.lang.NoSuchMethodException: > org.ofbiz.securityext.login.LoginEvents.checkExternalLoginKey(javax.servlet.http.HttpServletRequest, > javax.servlet.http.HttpServletResp > onse) > [java] java.lang.Class.getMethod(Class.java:1655) > > I checked ofbiz API, there is no such a method in LoginEvents. The tutorial > looks out of date. > > > 2) Setup controller.xml as I found in > C:\gtworkspace\ofbiz\framework\common\webcommon\WEB-INF\common-controller.xml > > > <preprocessor> > <event name="checkExternalLoginKey" type="java" > path="org.ofbiz.webapp.control.LoginWorker" invoke="checkExternalLoginKey"/> > </preprocessor> > > or > > <preprocessor> > <event type="java" > path="org.ofbiz.webapp.control.LoginWorker" > invoke="checkExternalLoginKey"/> > </preprocessor> > > or > > <preprocessor> > <event type="java" path="org.ofbiz.webapp.event.TestEvent" invoke="test"/> > > </preprocessor> > > or > > <preprocessor></preprocessor> > > I got the same WARN and empty page. > > > [java] 2013-10-07 07:33:13,151 (http-bio-0.0.0.0-8080-exec-1) [ > ControlServlet.java:140:INFO ] [[[main(Domain:http://localhost)] > Request Begun, encoding=[UTF-8]- total:0.0 > ,since last(Begin):0.0]] > [java] 2013-10-07 07:33:13,158 (http-bio-0.0.0.0-8080-exec-1) [ > ConfigXMLReader.java:116:INFO ] controller loaded: 0.0s, 1 > requests, 2 views in jndi:/0.0.0.0/hello1/WEB-INF > /controller.xml > [java] 2013-10-07 07:33:13,164 (http-bio-0.0.0.0-8080-exec-1) [ > RequestHandler.java:809:INFO ] Rendering View [main], > sessionId=3B027A0AF37574B2E47E728EF6A06C19.jvm1 > [java] 2013-10-07 07:33:13,231 (http-bio-0.0.0.0-8080-exec-1) [ > ControlServlet.java:220:WARN ] Communication error with the > client while processing the request: /hello1/control/main > [java] 2013-10-07 07:33:13,240 (http-bio-0.0.0.0-8080-exec-1) [ > ServerHitBin.java:637:INFO ] Visit delegatorName=default, > ServerHitBin delegatorName=default > [java] 2013-10-07 07:33:13,250 (http-bio-0.0.0.0-8080-exec-1) [ > ControlServlet.java:324:INFO ] [[[main(Domain:http://localhost)] > Request Done- total:0.099,since last([main > (Domain:http...):0.099]] > > Actually, since I didn't find the first load error in applications at the > beginning, so I did all the testing in controller.xml. > The result forced me to read all print out. > > I searched online and couldn't find anything. So I hope someone here may help > me on the problems. > > Thanks, > > Xue-Feng
