tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James H. H. Lampert" <jam...@touchtonecorp.com>
Subject Re: Converting an SSL connector tag from Tomcat 7 format to Tomcat 8.5 format -- WHAT GOES WHERE?
Date Wed, 06 Sep 2017 19:52:53 GMT
On 9/6/17, 11:19 AM, Mark Thomas wrote:

> The old format will work with 8.5.x.
>
> What were the stack traces?

And Alejandro Vargas wanted to see the stack traces, too.

Seeing as how this was the first stack trace (of 20, most with "caused 
by" sub-stack-traces):

>  java.lang.ClassNotFoundException: org.apache.coyote.http11.Http11Protocol
> 	at java.net.URLClassLoader$1.run(URLClassLoader.java:359)
> 	at java.net.URLClassLoader$1.run(URLClassLoader.java:348)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.net.URLClassLoader.findClass(URLClassLoader.java:347)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
> 	at java.lang.Class.forName0(Native Method)
> 	at java.lang.Class.forName(Class.java:195)
> 	at org.apache.catalina.connector.Connector.<init>(Connector.java:74)
> 	at org.apache.catalina.startup.ConnectorCreateRule.begin(ConnectorCreateRule.java:64)
> 	at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1190)
> 	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.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1338)
> 	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2781)
> 	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
> 	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:504)
> 	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:642)
> 	at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1458)
> 	at org.apache.catalina.startup.Catalina.load(Catalina.java:579)
> 	at org.apache.catalina.startup.Catalina.load(Catalina.java:630)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> 	at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:311)
> 	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:494)

I tried putting the old-style connector tag back in, with the class name 
changed from "org.apache.coyote.http11.Http11Protocol" to 
"org.apache.coyote.http11.Http11NioProtocol" and this time, it worked 
perfectly.

I should have tried that when I first noticed there was a difference. It 
actually DID jump right out at me, but I couldn't believe that was the 
only thing wrong, with 20 stack traces.

--
JHHL

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message