Domanda

I've try to deploy my project with Tomcat 5.5 (sounds dull :D)

But i have a trouble when using SSL with this error like this post.

An error occurred during a connection to localhost:7080.

SSL received a record that exceeded the maximum permissible length.

(Error code: ssl_error_rx_record_too_long)

And later i go and fix it with this post with this post with adding protocol="org.apache.coyote.http11.Http11Protocol" into my Connector tag in my tomcat server.xml. But when i restart my tomcat, there is an error like this image (dont know how to copy this error through windows terminal)

enter image description here

And this is my server.xml connector tag

<Connector  port="8443" maxHttpHeaderSize="8192"
           maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
           enableLookups="false" disableUploadTimeout="true"
           acceptCount="100" scheme="https" secure="true"
           clientAuth="false" sslProtocol="TLS"
           sslEnabled="true"
           keystoreFile="${user.home}/keystores/keystore_lipsweb_jetty.jks"
           keystorePass="jetty1" />
<Connector port="7080" maxHttpHeaderSize="8192"
           maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
           enableLookups="false" redirectPort="8443" acceptCount="100"
           connectionTimeout="20000" disableUploadTimeout="true"
           URIEncoding="UTF-8"/>

Well, i still have no idea how to fix this. Really appreciate with your helps. Thanks

È stato utile?

Soluzione 2

I've been resolve this problem by change my Tomcat version. When i create this post, i use Tomcat 5.5.36. But when i try to use an older one (5.5.26), There is no error on deployment and my project working properly.

Well, so far i don't know what the difference between Tomcat 5.5.36 and 5.5.26. I hope in few times i can explain what happen here in detail. But anyone who knows this thing can sharing here and i really appreciate it.

Altri suggerimenti

i did it like this and it worked for me

 <Connector className="org.apache.coyote.tomcat4.CoyoteConnector" port="80" minProcessors="5"
                   address="10.1.0.50"
                   maxProcessors="75"
                   enableLookups="false" redirectPort="443" acceptCount="10" debug="0" connectionTimeout="20000"
                   useURIValidationHack="false" URIEncoding="UTF-8"/>

<Connector port="443" maxHttpHeaderSize="8192"
                   address="10.1.0.50"
                   maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
                   enableLookups="false" disableUploadTimeout="true"
                   acceptCount="100" scheme="https" secure="true"
                   clientAuth="false" sslProtocol="TLS" SSLEnabled="true"
                   URIEncoding="UTF-8"
                   keystoreFile="/usr/java/default/jre/lib/security/keystore.jks"
                   keystorePass="password"/>
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top