Tomcat: java.io.IOException: Premature packet header end

2002-08-30 Thread Guoben Li

Hi,

  I have Apache 1.3.26 and Tomcat 4.0.4 installed/configured on the
same host.  When I tried to access Tomcat's examples/jps/index.html
from Apache my browser popped up: "The page cannot be displayed". 
  I had a look of both logs:

  On Tomcat side logs/apache_log.2002-8-30.txt showed:

2002-08-30 14:33:10 WarpEngine[apache.mycfo.com]: Mapping request
2002-08-30 14:33:10 WarpHost[apache.mycfo.com]: Mapping request for Host
2002-08-30 14:33:10 [org.apache.catalina.connector.warp.WarpConnector] Connection from 
/127.0.0.1:44034 to /127.0.0.1:8008
2002-08-30 14:33:10 [org.apache.catalina.connector.warp.WarpConnection] Exception on 
socket
java.io.IOException: Premature packet header end
at 
org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:237)
at 
org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHandler.java:112)
at 
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:194)
at java.lang.Thread.run(Thread.java:536)

2002-08-30 14:33:11[org.apache.catalina.connector.warp.WarpConfigurationHandler] 
Filter mappings (2)

   On Apache side logs/error_log showed:
 
[Fri Aug 30 14:33:11 2002] [notice] child pid 7835 exit signal Segmentation Fault (11)

  Anyone can help?  Many thanks!

Guoben

  

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Need help: Can't get Tomcat "examples" on Apache using mod_webapp.so

2002-08-28 Thread Guoben Li

Hi,

  I can't get Tomcat "examples" display on Apache. 
The following is a list of all I did and what I got.

  Please, please help.  Many thanks!

Guoben Li

1. Apache 1.3.26; Tomcat 4.0.4 on the same Solaris host
   http://myserver:8080/examples works well;

2. successfully compiled mod_webapp.so from 
   jakarta-tomcat-connectors-4.0.4-src and copied to libexec/.;

3. in httpd.conf, added:
   __
   LoadModule webapp_module libexec/mod_webapp.so
   AddModule mod_webapp.c

   WebAppConnection conn warp localhost:8008
   WebAppDeploy examples conn /examples/
   WebAppInfo /webapp-info
   ___
   
   bin/apachectl configtest had [warn] "mod_webapp.c is already added" but
   "Syntax OK";

4. in server.xml, the only place changed was 'name=':
   ___
   
   ___

5. started tomcat with bin/startup.sh then restarted apache

   http://myserver/examples "The page cannot be found"

   http://myserver/examples/ "The page cannot be displayed"

   http://myserver/webapp-info/ however displays Host and Connections info:

  Host myserver.domain.com:80 
Application Name "examples"
Root URL Path "/examples/"
Connection "conn"

Connection Name "conn"
Connection parameters "localhost:8008"
Provider "warp"
Configuration Details "Host: localhost Port:8008 Address:127.0.0.1 Socket 
Count: 1 Server ID: -653512835" 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: where is mod_jk.so?

2002-08-27 Thread Guoben Li

Don,

  It's in jakarta-tomcat-connectors-4.0.4-src.tar.gz from 
  http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/src

  after you tar -xf it the subdirectory is ./jk/native/apache-1.3/

Guoben Li

-Original Message-
From: Don [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 27, 2002 9:02 AM
To: 'Tomcat Users List'
Subject: where is mod_jk.so?


Hello,

I am trying to integrate Apache 1.3.26 with Tomcat 4.0.3 binary on Solaris
5.8.
Any pointers to "good" references on this would be appreciated.
I have found some info, regarding httpd.conf edits etc.  My
biggest problem now is coming up with mod_jk.so, source, binary...
Where do I find this module to add to Apache?

Thanks,

Don
[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: sun/tools/javac/Main?

2001-06-28 Thread Guoben Li

Pete and Julian,

  I looked into $TOMCAT_HOME/bin/tomcat.sh and saw:

CLASSPATH=${CLASSPATH}:${JAVA_HOME}/lib/tools.jar

  So my problem was that JAVA_HOME was not set
properly before starting Tomcat. The script tomcat.sh
does try to guess what JAVA_HOME is (by `which java`)
but in my case the result was incorrect.

  Thanks again!

Guoben

--- pete <[EMAIL PROTECTED]> wrote:

> Try that for starters, otherwise you could hack
> tomcat.sh (or whatever 
> script you use to start tomcat) to add a CLASSPATH
> pointing to tools.jar 
> before tomcat starts.
> 
> -Pete
> 
> > You need to include tools.jar in your classpath
> (tools.jar contains the java
> > compiler - javac - required to compile JSPs.). 
> You should find the jar file 
> > in the "lib" directory where you installed your
> JDK.
> > 
> > P.
> > 
> > Thus spake Guoben Li <[EMAIL PROTECTED]> on Wed,
> 27 Jun 2001 16:46:06 -0700 (PDT):
> > 
> > GL> Hi,
> > GL> 
> > GL>   I have Tomcat 3.2.1 configured with Apache
> on Sun
> > GL> Solaris 2.7. A home-made servlet I compiled
> and put in
> > GL> $TOMCAT_HOME/webapps/examples/WEB-INF/classes/
> runs as
> > GL> expected.
> > GL> 
> > GL>   When I tried any Tomcat provided JSP example
> in
> > GL> http://myserver/examples/jsp/index.html,
> however, I
> > GL> got
> > GL> 
> > GL> Internal Servlet Error:
> > GL> 
> > GL> javax.servlet.ServletException:
> sun/tools/javac/Main
> > GL> at
> > GL>
>
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)
> > GL> ...
> > GL> 
> > GL> Root cause:
> > GL> 
> > GL> java.lang.NoClassDefFoundError:
> sun/tools/javac/Main
> > GL> at
> > GL>
>
org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128)
> > GL> ...
> > GL> 
> > GL>   Has anybody seen this error and found a
> solution?
> > GL> There is no directory "sun" or "tools" on this
> server.
> > GL> 
> > GL> Thanks in advance.
> > GL> 
> > GL> Guoben Li
> > GL> myCFO
> > GL> 
> > GL> 
> > GL>
> __
> > GL> Do You Yahoo!?
> > GL> Get personalized email addresses from Yahoo!
> Mail
> > GL> http://personal.mail.yahoo.com/
> 
> 
> 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



Re: sun/tools/javac/Main?

2001-06-27 Thread Guoben Li

Jules and Peter,

   Thank you both for you quick response!

   I found tools.jar in /usr/j2se/lib on my server.
The remaining question is: how to set CLASSPATH for 
Tomcat?  When I run
http://myserver/examples/jsp/dates/date.jsp it is
Tomcat that tries to compile it and create a servlet
for it, right?

Guoben Li

--- Julian Conway <[EMAIL PROTECTED]> wrote:
> You're either using a jre with no "tools.jar"
> (contains sun/tools/javac/Main),
> or you don't have tools.jar in your classpath.
> 
> a. Check your using a jdk, not just jre
> b. Check your classpath.
> 
> Jules
> 
> Guoben Li wrote:
> 
> > Hi,
> >
> >   I have Tomcat 3.2.1 configured with Apache on
> Sun
> > Solaris 2.7. A home-made servlet I compiled and
> put in
> > $TOMCAT_HOME/webapps/examples/WEB-INF/classes/
> runs as
> > expected.
> >
> >   When I tried any Tomcat provided JSP example in
> > http://myserver/examples/jsp/index.html, however,
> I
> > got
> >
> > Internal Servlet Error:
> >
> > javax.servlet.ServletException:
> sun/tools/javac/Main
> > at
> >
>
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)
> > ...
> >
> > Root cause:
> >
> > java.lang.NoClassDefFoundError:
> sun/tools/javac/Main
> > at
> >
>
org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128)
> > ...
> >
> >   Has anybody seen this error and found a
> solution?
> > There is no directory "sun" or "tools" on this
> server.
> >
> > Thanks in advance.
> >
> > Guoben Li
> > myCFO
> >
> > __
> > Do You Yahoo!?
> > Get personalized email addresses from Yahoo! Mail
> > http://personal.mail.yahoo.com/
> 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



sun/tools/javac/Main?

2001-06-27 Thread Guoben Li

Hi,

  I have Tomcat 3.2.1 configured with Apache on Sun
Solaris 2.7. A home-made servlet I compiled and put in
$TOMCAT_HOME/webapps/examples/WEB-INF/classes/ runs as
expected.

  When I tried any Tomcat provided JSP example in
http://myserver/examples/jsp/index.html, however, I
got

Internal Servlet Error:

javax.servlet.ServletException: sun/tools/javac/Main
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)
...

Root cause:

java.lang.NoClassDefFoundError: sun/tools/javac/Main
at
org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128)
...

  Has anybody seen this error and found a solution?
There is no directory "sun" or "tools" on this server.

Thanks in advance.

Guoben Li
myCFO


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/