Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-6809

The passport component misses a web.xml file

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: Trunk, Release Branch 15.12
    • Fix Version/s: 16.11.01
    • Component/s: passport
    • Labels:
      None

      Description

      While checking OFBIZ-6794I found this remaning issue in log:

      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]
      

      I tried to add an empty web.xml to the passport webapp and it worked

        Activity

        Hide
        jacques.le.roux Jacques Le Roux added a comment -

        Fixed in trunk and R15.12 at r1725006 and r1725007

        Show
        jacques.le.roux Jacques Le Roux added a comment - Fixed in trunk and R15.12 at r1725006 and r1725007

          People

          • Assignee:
            jacques.le.roux Jacques Le Roux
            Reporter:
            jacques.le.roux Jacques Le Roux
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development