creating facilitymanager getting this type of error

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

creating facilitymanager getting this type of error

shilpa
2012-07-19 12:09:58,093 (http-0.0.0.0-8080-1) [     ControlServlet.java:141:INFO ] [[[CreateFacility] Request Begun, encoding=[UTF-8]- total:0.0,since last(Begin):0.0]]
2012-07-19 12:09:58,109 (http-0.0.0.0-8080-1) [            UtilXml.java:1060:ERROR] XmlFileLoader: File jndi:/0.0.0.0/hello/WEB-INF/controller.xml process error. Line: 67. Error message: cvc-complex-type.3.2.2: Attribute 'location' is not allowed to appear in element 'event'.
2012-07-19 12:09:58,109 (http-0.0.0.0-8080-1) [    ConfigXMLReader.java:120:INFO ] controller loaded: 0.0s, 6 requests, 10 views in jndi:/0.0.0.0/hello/WEB-INF/controller.xml
2012-07-19 12:09:58,171 (http-0.0.0.0-8080-1) [  ServiceDispatcher.java:532:ERROR] Error in Service [facilityGenericPermission]: You must be logged in to complete the [Main permission logic] process.
2012-07-19 12:09:58,187 (http-0.0.0.0-8080-1) [    TransactionUtil.java:339:ERROR]
---- exception report ----------------------------------------------------------
[TransactionUtil.rollback]
Exception: java.lang.Exception
Message: Stack Trace
---- stack trace ---------------------------------------------------------------
java.lang.Exception: Stack Trace
org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:338)
org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:315)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:536)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:224)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:177)
org.ofbiz.service.ModelService.evalPermission(ModelService.java:970)
org.ofbiz.service.ServiceDispatcher.checkAuth(ServiceDispatcher.java:921)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:353)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:224)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:336)
org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:647)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:393)
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:224)
org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:87)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
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:339)
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:191)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
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:615)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
java.lang.Thread.run(Thread.java:662)
--------------------------------------------------------------------------------

2012-07-19 12:09:58,187 (http-0.0.0.0-8080-1) [    TransactionUtil.java:349:INFO ] [TransactionUtil.rollback] transaction rolled back
2012-07-19 12:09:58,187 (http-0.0.0.0-8080-1) [  ServiceDispatcher.java:593:INFO ] Sync service [hello/facilityGenericPermission] finished in [78] milliseconds with response [{errorMessage=You must be logged in to complete the [Main permission logic] process., responseMessage=error}]
2012-07-19 12:09:58,187 (http-0.0.0.0-8080-1) [  ServiceDispatcher.java:508:INFO ] [[Sync service failed...- total:0.0,since last(Begin):0.0]] - 'hello / createFacility'
2012-07-19 12:09:58,187 (http-0.0.0.0-8080-1) [    TransactionUtil.java:349:INFO ] [TransactionUtil.rollback] transaction rolled back
2012-07-19 12:09:58,187 (http-0.0.0.0-8080-1) [    TransactionUtil.java:274:WARN ] [TransactionUtil.commit] Not committing transaction, status is No Transaction (6)
2012-07-19 12:09:58,187 (http-0.0.0.0-8080-1) [     RequestHandler.java:648:INFO ] Ran Event [service:#createFacility] from [request], result is [error]
2012-07-19 12:09:58,187 (http-0.0.0.0-8080-1) [     RequestHandler.java:431:ERROR] Request CreateFacility caused an error with the following message: You must be logged in to complete the [Main permission logic] process.
2012-07-19 12:09:58,187 (http-0.0.0.0-8080-1) [     RequestHandler.java:750:INFO ] Rendering View [main], sessionId=50F6D6002588FEAA97CC707C07AB0B18.jvm1
2012-07-19 12:09:58,203 (http-0.0.0.0-8080-1) [            UtilXml.java:1060:ERROR] XmlFileLoader: File file:/D:/ofbiz/ofbiz_11.04/ofbiz/hot-deploy/hello/widget/HelloScreens.xml process error. Line: 201. Error message: cvc-complex-type.3.2.2: Attribute 'list-name' is not allowed to appear in element 'entity-condition'.
2012-07-19 12:09:58,203 (http-0.0.0.0-8080-1) [            UtilXml.java:1060:ERROR] XmlFileLoader: File file:/D:/ofbiz/ofbiz_11.04/ofbiz/hot-deploy/hello/widget/HelloScreens.xml process error. Line: 201. Error message: cvc-complex-type.4: Attribute 'list' must appear on element 'entity-condition'.
2012-07-19 12:09:58,203 (http-0.0.0.0-8080-1) [            UtilXml.java:1060:ERROR] XmlFileLoader: File file:/D:/ofbiz/ofbiz_11.04/ofbiz/hot-deploy/hello/widget/HelloScreens.xml process error. Line: 224. Error message: cvc-complex-type.3.2.2: Attribute 'list-name' is not allowed to appear in element 'entity-and'.
2012-07-19 12:09:58,203 (http-0.0.0.0-8080-1) [            UtilXml.java:1060:ERROR] XmlFileLoader: File file:/D:/ofbiz/ofbiz_11.04/ofbiz/hot-deploy/hello/widget/HelloScreens.xml process error. Line: 224. Error message: cvc-complex-type.4: Attribute 'list' must appear on element 'entity-and'.
2012-07-19 12:09:58,203 (http-0.0.0.0-8080-1) [            UtilXml.java:1060:ERROR] XmlFileLoader: File file:/D:/ofbiz/ofbiz_11.04/ofbiz/hot-deploy/hello/widget/HelloScreens.xml process error. Line: 225. Error message: cvc-complex-type.3.2.2: Attribute 'env-name' is not allowed to appear in element 'field-map'.
2012-07-19 12:09:58,203 (http-0.0.0.0-8080-1) [            UtilXml.java:1060:ERROR] XmlFileLoader: File file:/D:/ofbiz/ofbiz_11.04/ofbiz/hot-deploy/hello/widget/HelloScreens.xml process error. Line: 225. Error message: cvc-complex-type.4: Attribute 'field-name' must appear on element 'field-map'.
2012-07-19 12:09:58,203 (http-0.0.0.0-8080-1) [            UtilXml.java:1060:ERROR] XmlFileLoader: File file:/D:/ofbiz/ofbiz_11.04/ofbiz/hot-deploy/hello/widget/HelloScreens.xml process error. Line: 229. Error message: cvc-complex-type.3.2.2: Attribute 'value-name' is not allowed to appear in element 'entity-one'.
2012-07-19 12:09:58,203 (http-0.0.0.0-8080-1) [            UtilXml.java:1060:ERROR] XmlFileLoader: File file:/D:/ofbiz/ofbiz_11.04/ofbiz/hot-deploy/hello/widget/HelloScreens.xml process error. Line: 229. Error message: cvc-complex-type.4: Attribute 'value-field' must appear on element 'entity-one'.
2012-07-19 12:09:58,203 (http-0.0.0.0-8080-1) [            UtilXml.java:1060:ERROR] XmlFileLoader: File file:/D:/ofbiz/ofbiz_11.04/ofbiz/hot-deploy/hello/widget/HelloScreens.xml process error. Line: 230. Error message: cvc-complex-type.3.2.2: Attribute 'env-name' is not allowed to appear in element 'field-map'.
2012-07-19 12:09:58,203 (http-0.0.0.0-8080-1) [            UtilXml.java:1060:ERROR] XmlFileLoader: File file:/D:/ofbiz/ofbiz_11.04/ofbiz/hot-deploy/hello/widget/HelloScreens.xml process error. Line: 230. Error message: cvc-complex-type.4: Attribute 'field-name' must appear on element 'field-map'.
2012-07-19 12:09:58,203 (http-0.0.0.0-8080-1) [      ScreenFactory.java:130:INFO ] Got 11 screens
Reply | Threaded
Open this post in threaded view
|

Re: creating facilitymanager getting this type of error

devalpatel
hello,

As per my email, have u checked the auth param in services.xml for this createFacility service ?

And, the service which is calling createFacility service ?

Regards,

Deval