[ 
https://issues.apache.org/jira/browse/OFBIZ-6809?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jacques Le Roux closed OFBIZ-6809.
----------------------------------
    Resolution: Fixed

Fixed in trunk and R15.12 at r1725006 and r1725007

> The passport component misses a web.xml file
> --------------------------------------------
>
>                 Key: OFBIZ-6809
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-6809
>             Project: OFBiz
>          Issue Type: Bug
>          Components: specialpurpose/passport
>    Affects Versions: Trunk, Release Branch 15.12
>            Reporter: Jacques Le Roux
>            Assignee: Jacques Le Roux
>            Priority: Trivial
>             Fix For: Upcoming Branch
>
>
> While checking OFBIZ-6735 I found this remaning issue in log:
> {code}
> Jan 16, 2016 5:56:06 PM org.apache.tomcat.util.digester.Digester error
> SEVERE: Parse Error at line 114 column 22: cvc-complex-type.2.4.a: Invalid 
> content was found starting with element 'description'. One of 
> '{"http://java.sun.com/xml/ns/javaee":servlet-class, "http://java.sun.c
> om/xml/ns/javaee":jsp-file, "http://java.sun.com/xml/ns/javaee":init-param, 
> "http://java.sun.com/xml/ns/javaee":load-on-startup, 
> "http://java.sun.com/xml/ns/javaee":enabled, 
> "http://java.sun.com/xml/ns/javaee
> ":async-supported, "http://java.sun.com/xml/ns/javaee":run-as, 
> "http://java.sun.com/xml/ns/javaee":security-role-ref, 
> "http://java.sun.com/xml/ns/javaee":multipart-config}' is expected.
> org.xml.sax.SAXParseException; lineNumber: 114; columnNumber: 22; 
> cvc-complex-type.2.4.a: Invalid content was found starting with element 
> 'description'. One of '{"http://java.sun.com/xml/ns/javaee":servlet-cl
> ass, "http://java.sun.com/xml/ns/javaee":jsp-file, 
> "http://java.sun.com/xml/ns/javaee":init-param, 
> "http://java.sun.com/xml/ns/javaee":load-on-startup, 
> "http://java.sun.com/xml/ns/javaee":enabled, "http://jav
> a.sun.com/xml/ns/javaee":async-supported, 
> "http://java.sun.com/xml/ns/javaee":run-as, 
> "http://java.sun.com/xml/ns/javaee":security-role-ref, 
> "http://java.sun.com/xml/ns/javaee":multipart-config}' is expected.
>         at 
> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown 
> Source)
>         at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
>         at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
>         at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
>         at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
>         at 
> org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown
>  Source)
>         at 
> org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source)
>         at 
> org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown 
> Source)
>         at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown 
> Source)
>         at 
> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown 
> Source)
>         at 
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
>  Source)
>         at 
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
> Source)
>         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>         at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown 
> Source)
>         at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1555)
>         at org.ofbiz.webapp.WebAppUtil.parseWebXmlFile(WebAppUtil.java:160)
>         at org.ofbiz.webapp.WebAppUtil.getWebXml(WebAppUtil.java:131)
>         at org.ofbiz.webapp.WebAppUtil.getWebSiteId(WebAppUtil.java:117)
>         at 
> org.ofbiz.webapp.WebAppUtil.getWebappInfoFromWebsiteId(WebAppUtil.java:100)
>         at 
> org.ofbiz.common.email.NotificationServices.setBaseUrl(NotificationServices.java:257)
>         at 
> org.ofbiz.common.email.EmailServices.sendMailFromScreen(EmailServices.java:457)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:497)
>         at 
> org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:100)
>         at 
> org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:57)
>         at 
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:395)
>         at 
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:227)
>         at 
> org.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync(GenericDispatcherFactory.java:88)
>         at 
> org.ofbiz.order.order.OrderServices.sendOrderNotificationScreen(OrderServices.java:2714)
>         at 
> org.ofbiz.order.order.OrderServices.sendOrderChangeNotification(OrderServices.java:2573)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:497)
>         at 
> org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:100)
>         at 
> org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:57)
>         at 
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:395)
>         at 
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:227)
>         at 
> org.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync(GenericDispatcherFactory.java:88)
>         at 
> org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:69)
>         at org.ofbiz.service.job.AbstractJob.run(AbstractJob.java:87)
>         at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>         at java.lang.Thread.run(Thread.java:745)
> 2016-01-16 17:56:06,288 |OFBiz-JobQueue-1     |NotificationServices          
> |W| Exception thrown while adding baseUrl to context:
> java.lang.IllegalArgumentException: 
> C:/projectASF-Mars/ofbiz/specialpurpose/passport/webapp/passport/WEB-INF/web.xml
>  does not exist.
>         at org.ofbiz.webapp.WebAppUtil.parseWebXmlFile(WebAppUtil.java:148) 
> ~[ofbiz-webapp.jar:?]
>         at org.ofbiz.webapp.WebAppUtil.getWebXml(WebAppUtil.java:131) 
> ~[ofbiz-webapp.jar:?]
>         at org.ofbiz.webapp.WebAppUtil.getWebSiteId(WebAppUtil.java:117) 
> ~[ofbiz-webapp.jar:?]
>         at 
> org.ofbiz.webapp.WebAppUtil.getWebappInfoFromWebsiteId(WebAppUtil.java:100) 
> ~[ofbiz-webapp.jar:?]
>         at 
> org.ofbiz.common.email.NotificationServices.setBaseUrl(NotificationServices.java:257)
>  [ofbiz-common.jar:?]
>         at 
> org.ofbiz.common.email.EmailServices.sendMailFromScreen(EmailServices.java:457)
>  [ofbiz-common.jar:?]
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
> ~[?:1.8.0_51]
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> ~[?:1.8.0_51]
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  ~[?:1.8.0_51]
>         at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_51]
>         at 
> org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:100)
>  [ofbiz-service.jar:?]
>         at 
> org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:57)
>  [ofbiz-service.jar:?]
>         at 
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:395) 
> [ofbiz-service.jar:?]
>         at 
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:227) 
> [ofbiz-service.jar:?]
>         at 
> org.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync(GenericDispatcherFactory.java:88)
>  [ofbiz-service.jar:?]
>         at 
> org.ofbiz.order.order.OrderServices.sendOrderNotificationScreen(OrderServices.java:2714)
>  [ofbiz-order.jar:?]
>         at 
> org.ofbiz.order.order.OrderServices.sendOrderChangeNotification(OrderServices.java:2573)
>  [ofbiz-order.jar:?]
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
> ~[?:1.8.0_51]
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> ~[?:1.8.0_51]
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  ~[?:1.8.0_51]
>         at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_51]
>         at 
> org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:100)
>  [ofbiz-service.jar:?]
>         at 
> org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:57)
>  [ofbiz-service.jar:?]
>         at 
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:395) 
> [ofbiz-service.jar:?]
>         at 
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:227) 
> [ofbiz-service.jar:?]
>         at 
> org.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync(GenericDispatcherFactory.java:88)
>  [ofbiz-service.jar:?]
>         at 
> org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:69) 
> [ofbiz-service.jar:?]
>         at org.ofbiz.service.job.AbstractJob.run(AbstractJob.java:87) 
> [ofbiz-service.jar:?]
>         at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>  [?:1.8.0_51]
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>  [?:1.8.0_51]
>         at java.lang.Thread.run(Thread.java:745) [?:1.8.0_51]
> {code}
> I tried to add an empty web.xml to the passport webapp and it worked



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to