Re: exception on hitting tomcat url

2010-06-29 Thread Pid
On 29/06/2010 05:38, vinay basavanal wrote:
 Ya sorry for that
  Tomcat version is 6.0.16
 and am attaching the server.xml file

We don't usually ask you to /attach/ files because the mailing list
sometimes strips attachments, and because various mail archives don't
store them.

One of the advantages of a public mail archive is that other users with
problems can search them and maybe learn from them.  If key information
is in an attached file then it's often not available a few months later,
so they can't see what the problem was.

You also completely ignored the request to remove the comments from your
server.xml.  Details are important.

Create a backup of the server.xml file and then edit out all of the
comments.  You might find it easier to spot what's wrong with the HTTP
Connector.


 on 8089 ajp connector is defined in xml but i dont know anything about
 ajp connector
  
 and HTTp is configured on 8081
 when i hit http://localhost:8081 http://localhost:8081/ i get http 400

See above.


 and when i hit  http://localhost:8089 http://localhost:8089/ i get
 exception in tomcat console

That's because 'hitting' 8089 won't send a properly formatted AJP
message to the connector.


p

 On Mon, Jun 28, 2010 at 6:35 PM, Caldarale, Charles R
 chuck.caldar...@unisys.com mailto:chuck.caldar...@unisys.com wrote:
 
  From: vinay basavanal [mailto:vinay.s...@gmail.com
 mailto:vinay.s...@gmail.com]
  Subject: Re: exception on hitting tomcat url
 
  i  i have this line can u explain me
 
 Highly unlikely that anyone other than your therapist can explain you.
 
 You apparently didn't bother to read Pid's suggested link, and you
 still avoid telling us any useful information, which at the minimum
 would include the exact versions of all the product involved, the
 URL you're using, the httpd configuration, and the Tomcat server.xml
 (minus comments and passwords).
 
  - Chuck
 
 
 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE
 PROPRIETARY MATERIAL and is thus for use only by the intended
 recipient. If you received this in error, please contact the sender
 and delete the e-mail and its attachments from all computers.
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 mailto:users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 mailto:users-h...@tomcat.apache.org
 
 
 
 
 -- 
 Thanks  Regards
 Vinay
 9972078950
 
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




signature.asc
Description: OpenPGP digital signature


exception on hitting tomcat url

2010-06-28 Thread vinay basavanal
HI all,

my tomcat starts with no problem but when i hot
http://localhost:8081/where 8081 is the port that tomcat runs
i get following error
EVERE: BAD packet signature 18245
Jun 28, 2010 3:50:58 PM org.apache.jk.common.ChannelSocket processConnection
SEVERE: Error, processing connection
java.lang.IndexOutOfBoundsException
 at java.io.BufferedInputStream.read(BufferedInputStream.java:306)
 at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:620)
 at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:577)
 at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:685)
 at
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
 at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
 at java.lang.Thread.run(Thread.java:595)

please help me out.

-- 
Thanks  Regards
Vinay
9972078950


Re: exception on hitting tomcat url

2010-06-28 Thread vinay basavanal
Hi all,

   please help me out

On Mon, Jun 28, 2010 at 3:54 PM, vinay basavanal vinay.s...@gmail.comwrote:

 HI all,

 my tomcat starts with no problem but when i hot 
 http://localhost:8081/where 8081 is the port that tomcat runs
 i get following error
 EVERE: BAD packet signature 18245
 Jun 28, 2010 3:50:58 PM org.apache.jk.common.ChannelSocket
 processConnection
 SEVERE: Error, processing connection
 java.lang.IndexOutOfBoundsException
  at java.io.BufferedInputStream.read(BufferedInputStream.java:306)
  at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:620)
  at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:577)
  at
 org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:685)
  at
 org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
  at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
  at java.lang.Thread.run(Thread.java:595)

 please help me out.

 --
 Thanks  Regards
 Vinay
 9972078950




-- 
Thanks  Regards
Vinay
9972078950


Re: exception on hitting tomcat url

2010-06-28 Thread Pid
On 28/06/2010 11:38, vinay basavanal wrote:
 Hi all,
 
please help me out

Be patient, and please read this:

 http://catb.org/esr/faqs/smart-questions.html


p

 On Mon, Jun 28, 2010 at 3:54 PM, vinay basavanal vinay.s...@gmail.comwrote:
 
 HI all,

 my tomcat starts with no problem but when i hot 
 http://localhost:8081/where 8081 is the port that tomcat runs
 i get following error
 EVERE: BAD packet signature 18245
 Jun 28, 2010 3:50:58 PM org.apache.jk.common.ChannelSocket
 processConnection
 SEVERE: Error, processing connection
 java.lang.IndexOutOfBoundsException
  at java.io.BufferedInputStream.read(BufferedInputStream.java:306)
  at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:620)
  at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:577)
  at
 org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:685)
  at
 org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
  at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
  at java.lang.Thread.run(Thread.java:595)

 please help me out.

 --
 Thanks  Regards
 Vinay
 9972078950

 
 
 




signature.asc
Description: OpenPGP digital signature


Re: exception on hitting tomcat url

2010-06-28 Thread Peter Crowther
Do you have an AJP connector configured on port 8081, rather than a HTTP
connector?  That would explain the symptom you're seeing.

- Peter

On 28 June 2010 11:24, vinay basavanal vinay.s...@gmail.com wrote:

 HI all,

my tomcat starts with no problem but when i hot
 http://localhost:8081/where 8081 is the port that tomcat runs
 i get following error
 EVERE: BAD packet signature 18245
 Jun 28, 2010 3:50:58 PM org.apache.jk.common.ChannelSocket
 processConnection
 SEVERE: Error, processing connection
 java.lang.IndexOutOfBoundsException
  at java.io.BufferedInputStream.read(BufferedInputStream.java:306)
  at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:620)
  at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:577)
  at

 org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:685)
  at

 org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
  at

 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
  at java.lang.Thread.run(Thread.java:595)

 please help me out.

 --
 Thanks  Regards
 Vinay
 9972078950



Re: exception on hitting tomcat url

2010-06-28 Thread vinay basavanal
no i dont have ajp connector

On Mon, Jun 28, 2010 at 5:41 PM, Peter Crowther peter.crowt...@melandra.com
 wrote:

 Do you have an AJP connector configured on port 8081, rather than a HTTP
 connector?  That would explain the symptom you're seeing.

 - Peter

 On 28 June 2010 11:24, vinay basavanal vinay.s...@gmail.com wrote:

  HI all,
 
 my tomcat starts with no problem but when i hot
  http://localhost:8081/where 8081 is the port that tomcat runs
  i get following error
  EVERE: BAD packet signature 18245
  Jun 28, 2010 3:50:58 PM org.apache.jk.common.ChannelSocket
  processConnection
  SEVERE: Error, processing connection
  java.lang.IndexOutOfBoundsException
   at java.io.BufferedInputStream.read(BufferedInputStream.java:306)
   at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:620)
   at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:577)
   at
 
 
 org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:685)
   at
 
 
 org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
   at
 
 
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
   at java.lang.Thread.run(Thread.java:595)
 
  please help me out.
 
  --
  Thanks  Regards
  Vinay
  9972078950
 




-- 
Thanks  Regards
Vinay
9972078950


Re: exception on hitting tomcat url

2010-06-28 Thread vinay basavanal
sorry for wrong reply
 * * Connector port=*8081* protocol=*AJP/1.3* redirectPort=*8443* /
i  i have this line can u explain me



On Mon, Jun 28, 2010 at 5:59 PM, vinay basavanal vinay.s...@gmail.comwrote:

 no i dont have ajp connector


 On Mon, Jun 28, 2010 at 5:41 PM, Peter Crowther 
 peter.crowt...@melandra.com wrote:

 Do you have an AJP connector configured on port 8081, rather than a HTTP
 connector?  That would explain the symptom you're seeing.

 - Peter

 On 28 June 2010 11:24, vinay basavanal vinay.s...@gmail.com wrote:

  HI all,
 
 my tomcat starts with no problem but when i hot
  http://localhost:8081/where 8081 is the port that tomcat runs
  i get following error
  EVERE: BAD packet signature 18245
  Jun 28, 2010 3:50:58 PM org.apache.jk.common.ChannelSocket
  processConnection
  SEVERE: Error, processing connection
  java.lang.IndexOutOfBoundsException
   at java.io.BufferedInputStream.read(BufferedInputStream.java:306)
   at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:620)
   at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:577)
   at
 
 
 org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:685)
   at
 
 
 org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
   at
 
 
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
   at java.lang.Thread.run(Thread.java:595)
 
  please help me out.
 
  --
  Thanks  Regards
  Vinay
  9972078950
 




 --
 Thanks  Regards
 Vinay
 9972078950




-- 
Thanks  Regards
Vinay
9972078950


Re: exception on hitting tomcat url

2010-06-28 Thread vinay basavanal
Ya sorry for that
 Tomcat version is 6.0.16
and am attaching the server.xml file
on 8089 ajp connector is defined in xml but i dont know anything about ajp
connector

and HTTp is configured on 8081
when i hit http://localhost:8081 i get http 400
and when i hit  http://localhost:8089 i get exception in tomcat console
On Mon, Jun 28, 2010 at 6:35 PM, Caldarale, Charles R 
chuck.caldar...@unisys.com wrote:

  From: vinay basavanal [mailto:vinay.s...@gmail.com]
  Subject: Re: exception on hitting tomcat url
 
  i  i have this line can u explain me

 Highly unlikely that anyone other than your therapist can explain you.

 You apparently didn't bother to read Pid's suggested link, and you still
 avoid telling us any useful information, which at the minimum would include
 the exact versions of all the product involved, the URL you're using, the
 httpd configuration, and the Tomcat server.xml (minus comments and
 passwords).

  - Chuck


 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you received
 this in error, please contact the sender and delete the e-mail and its
 attachments from all computers.


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




-- 
Thanks  Regards
Vinay
9972078950
?xml version=1.0 encoding=UTF-8?
!-- Note:  A Server is not itself a Container, so you may not
 define subcomponents such as Valves at this level.
 Documentation at /docs/config/server.html
 --Server port=8005 shutdown=SHUTDOWN

  !--APR library loader. Documentation at /docs/apr.html --
  Listener SSLEngine=on className=org.apache.catalina.core.AprLifecycleListener/
  !--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html --
  Listener className=org.apache.catalina.core.JasperListener/
  !-- JMX Support for the Tomcat server. Documentation at /docs/non-existent.html --
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener/
  Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener/

  !-- Global JNDI resources
   Documentation at /docs/jndi-resources-howto.html
  --
  GlobalNamingResources
!-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users
--
Resource auth=Container description=User database that can be updated and saved factory=org.apache.catalina.users.MemoryUserDatabaseFactory name=UserDatabase pathname=conf/tomcat-users.xml type=org.apache.catalina.UserDatabase/
  /GlobalNamingResources

  !-- A Service is a collection of one or more Connectors that share
   a single Container Note:  A Service is not itself a Container, 
   so you may not define subcomponents such as Valves at this level.
   Documentation at /docs/config/service.html
   --
  Service name=Catalina
  
!--The connectors can use a shared executor, you can define one or more named thread pools--
!--
Executor name=tomcatThreadPool namePrefix=catalina-exec- 
maxThreads=150 minSpareThreads=4/
--


!-- A Connector represents an endpoint by which requests are received
 and responses are returned. Documentation at :
 Java HTTP Connector: /docs/config/http.html (blocking  non-blocking)
 Java AJP  Connector: /docs/config/ajp.html
 APR (HTTP/AJP) Connector: /docs/apr.html
 Define a non-SSL HTTP/1.1 Connector on port 8080
--

	!--
	Connector connectionTimeout=2 port=8090 protocol=HTTP/1.1 redirectPort=8443/
	--

	!-- A Connector using the shared thread pool--
Connector executor=tomcatThreadPool
   port=8081 protocol=HTTP/1.1 
   connectionTimeout=2 
   redirectPort=8443 /

!-- Define a SSL HTTP/1.1 Connector on port 8443
 This connector uses the JSSE configuration, when using APR, the 
 connector should be using the OpenSSL style configuration
 described in the APR documentation --
!--
Connector port=8443 protocol=HTTP/1.1 SSLEnabled=true
   maxThreads=150 scheme=https secure=true
   clientAuth=false sslProtocol=TLS /
--

!-- Define an AJP 1.3 Connector on port 8089 --
Connector port=8089 protocol=AJP/1.3 redirectPort=8443/


!-- An Engine represents the entry point (within Catalina) that processes
 every request.  The Engine implementation for Tomcat stand alone
 analyzes the HTTP headers included with the request, and passes them
 on to the appropriate Host (virtual host).
 Documentation at /docs/config/engine.html --

!-- You should set jvmRoute to support load-balancing via AJP ie :
Engine name=Standalone defaultHost=localhost jvmRoute=jvm1 
-- 
Engine defaultHost=localhost name=Catalina