Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Embedded tomcat 7 connector  RSS feed

 
Argiris Gounaris
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Tomcat gurus...i want to upgrade embedded tomcat 5.5 to 7 and i need to transform some
code that it's creating the connectors. Since i couldn't find anywhere, at least, the algorithmic procedure
i started to play with just the javadoc and the code...here is one of my connectors source



since i am using values from configuration files, there is a change that you will not understand fully the
code. What i want to know is mostly the algorithm for a connector to be successfully established using tomcat 7...

my main concern is the error bellow
java.lang.NoSuchMethodError: org.apache.catalina.connector.Connector.setProperty(Ljava/lang/String;Ljava/lang/String;)V at xxx.xxx.xxx.catalina.EmbeddedCatalina.start(EmbeddedCatalina.java:357)
even if im using the setProperty with (string, string)

any ideas, proposals??
 
Igor Mironov
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should recompile xxx.xxx.xxx.catalina.EmbeddedCatalina as the return value of Connector.setProperty() has changed in 6.0 from void to boolean.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!