Hi, Thanks The issue was due to having the proxy module in the configuration . There were no space in the file .It all came when i copied and pasted the content in while submitting the query .
Thanks a lot Saju Bill Barker-2 wrote: > > "Saju K K" <saju.kandat...@nokia.com> wrote in message > news:22656151.p...@talk.nabble.com... >> >> On configuring nio/ajp I am getting and error org.apache.common.MsgApj >> p= >> rocessHeader " SEVER: BAD packet singnature 18245" >> >> We are using jdk 1.5.0_14/ apache-tomcat-6.0.18 / redhat linux 2.6.9 . >> I have tried configuring the following one at a time and it is working >> fine= >> . In order to have a high performance proxy we want to configure both >> nio/= >> ajp and http/ajp together in tomcat and make it listen to apache http >> serve= >> r on 8080. >> >> >> Tomcat server.xml >> >> <Connector port=3D"8080" address=3D"serdev41" connectionTimeout=3D"5000" >> mi= >> nProcessors=3D"5" maxProcessors=3D"100" protocol=3D"HTTP/1.1" >> redirectPort= >> =3D"8443" /> <Connector port=3D"8081" maxThreads=3D"150" >> protocol=3D"org.apache.coyote.= http11.Http11NioProtocol" >> connectionTimeout=3D"20000" redirectPort=3D"8343= " /> <!--<Connector >> port=3D"8082" protocol=3D"org.apache.coyote.http11. Http11Ap= rProtocol" >> enableLookups=3D"false" redirectPort=3D"8543" connectionTimeout= >> =3D"20000"/>--> <Connector port=3D"8083" protocol=3D"AJP/1.3" >> redirectPort=3D"8943" /> <Connector address=3D"serdev41 " >> redirectPort=3D"8643" channelNioSocket.soT= imeout=3D"600000" >> protocol=3D"AJP/1.3" port=3D"0" channelNioSocket.port=3D"= 8084" >> channelNioSocket.maxThreads=3D"150" channelNioSocket.maxSpareThreads= >> =3D"50" channelNioSocket.minSpareThreads=3D"25" >> channelNioSocket.bufferSize= >> =3D"16384"/> >> > > Going to have to agree with André here. You have extra spaces in both the > address and port attributes, which should prevent the NIO/AJP connector > from > starting at all. But it seems that it is starting. > > It looks like you are using mod_proxy_ajp instead of mod_jk. If this is > the > case, then the worker.properties file won't be read. > > Note that the NIO/AJP connector is currently considered "experimental" by > the TC developers, since it hasn't had the amount of testing that the > other > connectors have. That is why there is no offical documentation for it. > > If, despite the above warning, you want to continue using it, then set the > logging level for the category org.apache.jk to FINE, and post the results > here. I'll be more than happy to look into it if I have a test case. > >> worker.properties >> >> worker.list=3Dworker1,worker2,worker3 >> workers.tomcat_home=3D/opt/www/tomcat-6.0/apache-tomcat-6.0.18 >> workers.java_home=3D/root/softwares/jdk1.5.0_14 >> ps=3D/ >> # Define Node1 >> # modifies the host as your host IP or DNS name. >> >> worker.worker1.port=3D8083 >> worker.worker1.host=3Dserdev41 >> worker.worker1.type=3Dajp13 >> worker.worker1.lbfactor=3D1 >> worker.worker1.connection_pool_size=3D150 >> worker.worker1.connection_pool_timeout=3D600 >> worker.worker1.socket_keepalive=3D1 >> >> worker.worker2.port=3D8080 >> worker.worker2.host=3Dserdev41 >> worker.worker2.type=3Dajp13 >> worker.worker2.lbfactor=3D2 >> worker.worker2.connection_pool_size=3D150 >> worker.worker2.connection_pool_timeout=3D600 >> worker.worker2.socket_keepalive=3D1 >> >> worker.worker3.port=3D8084 >> worker.worker3.host=3Dserdev41 >> worker.worker3.type=3Dajp13 >> worker.worker3.lbfactor=3D3 >> worker.worker3.connection_pool_size=3D150 >> worker.worker3.connection_pool_timeout=3D600 >> worker.worker3.socket_keepalive=3D1 >> >> mod_jk.conf >> >> LoadModule jk_module modules/mod_jk.so >> JkWorkersFile conf/workers.properties >> JkLogFile logs/mod_jk.log >> JkLogLevel info >> JkLogStampFormat "[%a %b %d %H: %M: %S %Y]" >> JkRequestLogFormat "%w %V %T" >> JkMount /* worker3 >> >> >> Httpd.conf >> <IfModule mod_proxy.c> >> ProxyRequests off >> <Proxy *> >> Order deny,allow >> Allow from all >> </Proxy> >> ProxyPreserveHost On >> ProxyPass /proxy ajp://serdev41:8084 >> ProxyPassReverse /proxy ajp://serdev41:8084 </IfModule> >> >> Include conf/mod_jk.conf >> LoadModule proxy_module modules/mod_proxy.so >> LoadModule proxy_http_module modules/mod_proxy_http.so >> >> >> On making a request I am getting we are getting the above mentioned >> error >> = >> ,what could be the problem for this >> >> Thanks in advance >> >> -- >> View this message in context: >> http://www.nabble.com/SEVERE%3A--BAD-packet-singnature-18245-tp22656151p22656151.html >> Sent from the Tomcat - User mailing list archive at Nabble.com. > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > -- View this message in context: http://www.nabble.com/SEVERE%3A--BAD-packet-singnature-18245-tp22656151p22676013.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org