Tomcat error: Element type "Connector" must be followed by either attribute specifications, ">" or "/>"

5k Views Asked by At

I have implied basic authentication on tomcat server and configured to have ssl encryption. Then my tomcat is not starting shows following error

Could not load the Tomcat server configuration at /Servers/Tomcat v7.0 Server at localhost-config. The configuration may be corrupt or incomplete. Element type "Connector" must be followed by either attribute specifications, ">" or "/>".

any help ?

3

There are 3 best solutions below

4
On

Sounds like your server.xml file is syntactically incorrect. It is located in $CATALINA_BASE/conf. Simply check its XML syntax, there must be something wrong with the <Connector> element.

Try use an XML editor if you can't spot the mistake.

0
On

I had the same problem when configuring a proxy connector in Jira after copying sample tag from their support page. Nothing wrong with the XML syntax according to my editor.

I solved it by going over the tag replacing all " with new " and all blanks with space. Looking at it in a hex editor to compare the difference between non-working and working config I see that the non-working one had had 20 09" (space tab) in the blank/space areas. The working one has only space.

0
On

I had a similar problem. I missed a space between 2 attributes.

Changing

protocol="org.apache.coyote.http11.Http11NioProtocol"SSLEnabled="true"

to

protocol="org.apache.coyote.http11.Http11NioProtocol" SSLEnabled="true"

solved my problem.