Hi this error is in resources.xml not in server.xml. You put <role ...> but this is not a supported entry there.
Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber <http://www.tomitribe.com> | JavaEE Factory <https://javaeefactory-rmannibucau.rhcloud.com> 2016-06-15 1:06 GMT+02:00 paulhr <[email protected]>: > I am using this Connector XML Element for in my server.xml file as per my > SSL > vendors instructions for Tomcat. > > <Connector port="8443" maxHttpHeaderSize="8192" > protocol="org.apache.coyote.http11.Http11Protocol" > maxThreads="150" minSpareThreads="25" maxSpareThreads="75" > enableLookups="false" disableUploadTimeout="true" > acceptCount="100" SSLEnabled="true" scheme="https" > secure="true" keyAlias="server" keystoreFile="/root/usque_software.jks" > keystorePass="__" clientAuth="false" sslProtocol="TLS" > xpoweredBy="false" /> > > We spent over an hour trouble shooting the issue and have come no closer to > resolving it. > > The Catalina.log has the following exception stack. It seems like there is > an XML parsing error. There does not seem to be a XSD defined for the > server.xml file to validate against. Can someone tell me if Tomee 1.7.4 > supports all the element attributes provided? > > INFO: Using > 'openejb.jndiname.format={deploymentId}{interfaceType.openejbLegacyName}' > Jun 14, 2016 7:23:31 PM org.apache.openejb.config.ReadDescriptors > readResourcesXml > WARNING: can't read > org.apache.openejb.config.ReadDescriptors$UrlSource@183dc7ad to load > resources for module org.apache.openejb.config.ResourcesModule@2b2bef9 > javax.xml.bind.UnmarshalException: unexpected element > (uri:"http://www.openejb.org/System/Configuration", local:"role"). > Expected > elements are > <{http://www.openejb.org/System/Configuration}Service>,<{ > http://www.openejb.org/System/Configuration}Resource>,<{ > http://www.openejb.org/System/Configuration}JndiProvider>,<{ > http://www.openejb.org/System/Configuration}Connector>,<{ > http://www.openejb.org/System/Configuration}Container> > at > > com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:662) > at > > com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:258) > at > > com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:253) > at > > com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:120) > at > > com.sun.xml.bind.v2.runtime.unmarshaller.Loader.childElement(Loader.java:105) > at > > com.sun.xml.bind.v2.runtime.unmarshaller.StructureLoader.childElement(StructureLoader.java:262) > at > > com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:498) > at > > com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:480) > at > > com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.startElement(SAXConnector.java:150) > at > org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:551) > at > > org.apache.openejb.config.sys.JaxbOpenejb$NamespaceFilter.startElement(JaxbOpenejb.java:350) > at > > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509) > at > > com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:182) > at > > com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:357) > at > > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2787) > at > > com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606) > at > > com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:118) > at > > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510) > at > > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848) > at > > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777) > at > > com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) > at > > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213) > at > > com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643) > at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:357) > at > > com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:258) > at > > com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:236) > at > > com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:288) > at > org.apache.openejb.config.sys.JaxbOpenejb.unmarshal(JaxbOpenejb.java:324) > at > org.apache.openejb.config.sys.JaxbOpenejb.unmarshal(JaxbOpenejb.java:332) > at > > org.apache.openejb.config.ReadDescriptors.readResourcesXml(ReadDescriptors.java:255) > at > org.apache.openejb.config.DeploymentLoader.load(DeploymentLoader.java:149) > at > > org.apache.tomee.catalina.TomcatWebAppBuilder.checkHost(TomcatWebAppBuilder.java:2054) > at > > org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:136) > at > > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) > at > > org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) > at > > org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1371) > at > > org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1543) > at > > org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1553) > at > > org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1521) > at java.lang.Thread.run(Thread.java:745) > > Jun 14, 2016 7:23:31 PM org.apache.openejb.config.ConfigurationFactory > configureApplication > INFO: Configuring enterprise application: > /opt/tomee-plume/webapps/tomcat-users.xml > > > > > -- > View this message in context: > http://tomee-openejb.979440.n4.nabble.com/SSL-install-config-errors-tp4678882.html > Sent from the TomEE Users mailing list archive at Nabble.com. >
