| Author |
Message |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 05/04/2010 14:54:32
|
jjconti
Initiate
Joined: 05/04/2010 10:18:32
Messages: 53
Offline
|
I've installed java, tomcat and mango. When running tomcat, as explained in the download page, I get this error in the brwoser:
Estado HTTP 404 -
type Informe de estado
mensaje
descripción El recurso requerido () no está disponible.
Apache Tomcat/6.0.20
and this in the tomcat terminal:
INFO: Server startup in 28213 ms
05/04/2010 15:48:27 org.apache.jk.common.MsgAjp processHeader
GRAVE: BAD packet signature 18245
05/04/2010 15:48:27 org.apache.jk.common.ChannelSocket processConnection
GRAVE: Error, processing connection
java.lang.IndexOutOfBoundsException
at java.io.BufferedInputStream.read(BufferedInputStream.java:310)
at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:621)
at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:57
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja
va:686)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSock
et.java:891)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:690)
at java.lang.Thread.run(Thread.java:619)
What can be happening?
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 05/04/2010 15:20:26
|
mlohbihler
Master
![[Avatar]](/forum/images/avatar/eccbc87e4b5ce2fe28308fd9f2a7baf3.png)
Joined: 01/03/2007 22:48:52
Messages: 1454
Offline
|
See here: http://www.coderanch.com/t/88061/Tomcat/Tomcat-Error-SEVERE-BAD-packet
|
Best regards,
Matthew Lohbihler |
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 17/08/2010 14:08:38
|
jjconti
Initiate
Joined: 05/04/2010 10:18:32
Messages: 53
Offline
|
I've looked at the page you pointed me but that couldn't help me.
When I restart Tomcat, I see this in the std output:
$ service tomcat6 restart
You need root privileges to run this script
kimera@kimi:/usr/lib/j2sdk1.6-sun$ sudo service tomcat6 restart
* Stopping Tomcat servlet engine tomcat6 [ OK ]
* Starting Tomcat servlet engine tomcat6 Using CATALINA_BASE: /var/lib/tomcat6
Using CATALINA_HOME: /usr/share/tomcat6
Using CATALINA_TMPDIR: /tmp/tomcat6-tmp
Using JRE_HOME: /usr/lib/jvm/java-6-openjdk
Using CLASSPATH: /usr/share/tomcat6/bin/bootstrap.jar
[ OK ]
Is there a problem with the value set to JRE_HOME? It's pointing to open java rather than to sun java. I tried to chage it with export but I wasnt able.
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 17/08/2010 14:15:17
|
mlohbihler
Master
![[Avatar]](/forum/images/avatar/eccbc87e4b5ce2fe28308fd9f2a7baf3.png)
Joined: 01/03/2007 22:48:52
Messages: 1454
Offline
|
I would investigate this message first:
You need root privileges to run this script
|
Best regards,
Matthew Lohbihler |
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 17/08/2010 14:17:34
|
mlohbihler
Master
![[Avatar]](/forum/images/avatar/eccbc87e4b5ce2fe28308fd9f2a7baf3.png)
Joined: 01/03/2007 22:48:52
Messages: 1454
Offline
|
Ah, ok, so you ran it with sudo right after... Open JDK should be fine. I would suggest trying a JDK instead of the JRE. Not sure if that will help.
|
Best regards,
Matthew Lohbihler |
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 17/08/2010 14:34:47
|
jjconti
Initiate
Joined: 05/04/2010 10:18:32
Messages: 53
Offline
|
Solved. I was missing chwon to tomcat6.
|
|
|
 |
|
|