RE: Need some help please

2001-01-17 Thread Craig O'Brien

Are the examples working?  I assume the servlets are.

Probably a %CLASSPATH% issue.  The JSPs need to compile the first time you
call them so you need a reference to your JDK in the classpath.

You will need these elements in your classpaths:
This is just mine, yours may be slightly different...

%CLASSPATH%
Your path to:  \JDK1.3\lib\tools.jar
Your path to:  \JDK1.3

ALSO
%JAVA_HOME% path to:  \JDK1.3
%TOMCAT_HOME% path to:   \tomcat

Hope this helps,
Craig

lazybrain eh...

-Original Message-
From: lazybrain [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 17, 2001 3:48 PM
To: [EMAIL PROTECTED]
Subject: Need some help please


I setup tomcat and most everything is working. Any time I try to
access a .jsp file I get the following.


"
Internal Server Error

The server encountered an internal error or misconfiguration and was unable
to
complete your request.

Please contact the server administrator,  and inform them of the time the
error
occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Apache/1.3.14 Server
"

the example servlets work, however any .jsp file does not. I can't find
anything in the documentation about this.  I set the log levels to debug
but nothing is helpfull at all. How can I fix this?? Thanks in advance.

Mike



-
"The Road to the Internet Starts Here"
http://www.enter.net/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Need some help please

2001-01-17 Thread Amjad Ashraf
Title: RE: Need some help please





hi, thank you for replying.


actually when I go through apache (i.e. https://domainname.com/examples/jsp/num/numguess.jsp) I get the plain text version of the file, meaning it is not working. Going to servlets gives me the error:

The requested url * was not found on the server.


so neither servlets or jsp's work when I go through apache.


but when I go through tomcat (http://domainname.com:8080/examples/jsp/num/numguess.jsp) everything works great. Note, I am going through port 8080.

Where is this class path setting by the way? I don't think it is an issue for me since things work when I go directly through tomcat. Why won't it go through apache?! I have followed the doucmentation meticulously at this point. Any ideas? I just know there is a problem with mod_jk.so. When I go through apache and ask for *.jsp files, it doesn't realize to pass them onto mod_jk (which passes it onto tomcat).


-Original Message-
From: Craig O'Brien [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 17, 2001 5:16 PM
To: [EMAIL PROTECTED]
Subject: RE: Need some help please



Are the examples working? I assume the servlets are.


Probably a %CLASSPATH% issue. The JSPs need to compile the first time you
call them so you need a reference to your JDK in the classpath.


You will need these elements in your classpaths:
This is just mine, yours may be slightly different...


%CLASSPATH%
Your path to: \JDK1.3\lib\tools.jar
Your path to: \JDK1.3


ALSO
%JAVA_HOME% path to: \JDK1.3
%TOMCAT_HOME% path to: \tomcat


Hope this helps,
Craig


lazybrain eh...


-Original Message-
From: lazybrain [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 17, 2001 3:48 PM
To: [EMAIL PROTECTED]
Subject: Need some help please



I setup tomcat and most everything is working. Any time I try to
access a .jsp file I get the following.




Internal Server Error


The server encountered an internal error or misconfiguration and was unable
to
complete your request.


Please contact the server administrator, and inform them of the time the
error
occurred, and anything you might have done that may have caused the error.


More information about this error may be available in the server error log.



Apache/1.3.14 Server



the example servlets work, however any .jsp file does not. I can't find
anything in the documentation about this. I set the log levels to debug
but nothing is helpfull at all. How can I fix this?? Thanks in advance.


Mike




-
The Road to the Internet Starts Here
http://www.enter.net/




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]





RE: Need some help please

2001-01-17 Thread Stefan Langer



Could 
you include your tomcat.conf or the part of your httpd.conf where you include 
mod_jk ???
It 
sounds to me as if you haven't included the JkMounts for mod_jk and 
associate them with the jsp extensions.

Stefan


RE: Need some help please

2001-01-17 Thread Amjad Ashraf
uot;
AllowOverride None
deny from all
/Location
#
# The following line prohibits users from directly accessing META-INF
#
Location "/test/META-INF/"
AllowOverride None
deny from all
/Location
###
# Auto configuration for the /test context ends.
###


  -Original Message-From: Stefan Langer 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, January 17, 2001 5:37 
  PMTo: [EMAIL PROTECTED]Subject: RE: Need 
  some help please
  Could you include your tomcat.conf or the part of your httpd.conf where 
  you include mod_jk ???
  It 
  sounds to me as if you haven't included the JkMounts for mod_jk and 
  associate them with the jsp extensions.
  
  Stefan


RE: Need some help please

2001-01-17 Thread Craig O'Brien

If your JSPs are working on port 8080 then classpath is probably not the
issue.

jserv install page will probably have your answers.  It sounds to me like
your problem is to get Apache to direct jsp calls to tomcat.  Are the
Servlets working fine if you them in without the port?   I am not the best
at this as I use IIS and am not too familiar with Apache.

Look over the section in "A minimalist User's Guide" on "Setting up Tomcat
to Cooperate with the Apache Web Server."

Good luck,
Craig




 -Original Message-
From: Amjad Ashraf [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 17, 2001 5:23 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Need some help please


hi, thank you for replying.
actually when I go through apache (i.e.
https://domainname.com/examples/jsp/num/numguess.jsp) I get the plain text
version of the file, meaning it is not working.  Going to servlets gives me
the error:
The requested url * was not found on the server.
so neither servlets or jsp's work when I go through apache.
but when I go through tomcat
(http://domainname.com:8080/examples/jsp/num/numguess.jsp) everything works
great.  Note, I am going through port 8080.
Where is this class path setting by the way?  I don't think it is an issue
for me since things work when I go directly through tomcat.  Why won't it go
through apache?!  I have followed the doucmentation meticulously at this
point.  Any ideas?  I just know there is a problem with mod_jk.so.  When I
go through apache and ask for *.jsp files, it doesn't realize to pass them
onto mod_jk (which passes it onto tomcat).


-Original Message-
From: Craig O'Brien [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 17, 2001 5:16 PM
To: [EMAIL PROTECTED]
Subject: RE: Need some help please


Are the examples working?  I assume the servlets are.
Probably a %CLASSPATH% issue.  The JSPs need to compile the first time you
call them so you need a reference to your JDK in the classpath.
You will need these elements in your classpaths:
This is just mine, yours may be slightly different...
%CLASSPATH%
Your path to:  \JDK1.3\lib\tools.jar
Your path to:  \JDK1.3
ALSO
%JAVA_HOME% path to:  \JDK1.3
%TOMCAT_HOME% path to:   \tomcat
Hope this helps,
Craig
lazybrain eh...
-Original Message-
From: lazybrain [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 17, 2001 3:48 PM
To: [EMAIL PROTECTED]
Subject: Need some help please


I setup tomcat and most everything is working. Any time I try to
access a .jsp file I get the following.


"
Internal Server Error
The server encountered an internal error or misconfiguration and was unable
to
complete your request.
Please contact the server administrator,  and inform them of the time the
error
occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.


Apache/1.3.14 Server
"
the example servlets work, however any .jsp file does not. I can't find
anything in the documentation about this.  I set the log levels to debug
but nothing is helpfull at all. How can I fix this?? Thanks in advance.
Mike



-
"The Road to the Internet Starts Here"
http://www.enter.net/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Need some help please

2001-01-17 Thread Amjad Ashraf
 -
#-
#
#
# Additional class path components.
#
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)classes
#
# The XML parser provided with Tomcat
#
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)jaxp.jar
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)parser.jar
#
# Tomcat's implementation
#
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)jasper.jar
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)servlet.jar
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)webserver.jar
#
# Javac as available from Java2SE
#
worker.inprocess.class_path=$(workers.java_home)$(ps)lib$(ps)tools.jar
#
# Setting the command line for tomcat
# Note: The cmd_line string may not contain spaces.
#
worker.inprocess.cmd_line=-config
worker.inprocess.cmd_line=$(workers.tomcat_home)/conf/jni_server.xml
worker.inprocess.cmd_line=-home
worker.inprocess.cmd_line=$(workers.tomcat_home)
#
# The JVM that we are about to use
#
# This is for Java2
#
#worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(ps)jvm.dll
worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)java
#
# And this is for jdk1.1.X
#
#worker.inprocess.jvm_lib=$(workers.java_home)$(ps)bin$(ps)javai.dll
#
#
# Setting the place for the stdout and stderr of tomcat
#
worker.inprocess.stdout=$(workers.tomcat_home)$(ps)inprocess.stdout
worker.inprocess.stderr=$(workers.tomcat_home)$(ps)inprocess.stderr
#
# Setting the tomcat.home Java property
#
worker.inprocess.sysprops=tomcat.home=$(workers.tomcat_home)
#
# Java system properties
#
# worker.inprocess.sysprops=java.compiler=NONE
# worker.inprocess.sysprops=myprop=mypropvalue
#
# Additional path components.
#
# worker.inprocess.ld_path=d:$(ps)SQLLIB$(ps)bin
#


  -Original Message-From: Stefan Langer 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, January 17, 2001 6:00 
  PMTo: [EMAIL PROTECTED]Subject: RE: Need 
  some help please
  The 
  file looks good to me. Do you get any error from apache when you start it? 
  Maybe it can't find mod_jk (just a suggestion).
  You 
  have placed mod_jk.so in libexec??? 
  
  This 
  may sound dumb but I'm just trying to help:
  you 
  have restarted apache after configuring the httpd.conf 
  right???
  
  One 
  last thing: Have you setup the worker.properties correctly?? Since you use 
  AJP13 you should include that worker in your properties 
  file.
  
  Clueless
  
  Stefan


RE: Need some help please

2001-01-17 Thread Stefan Langer



The 
only thing that I can assume now is that somehow the binary you are using isn't 
working properly. (please correct me if I'm wrong)
You 
should try compiling mod_jk for your machine. Just get the source file for 
tomcat and then follow the mod_jk how to. 
It 
takes a little effort but it should work if you follow the instructions. 


I'm 
really out of ideas and your files look ok.

Maybe 
somebody else can spot something I haven't since I'm not an apache 
expert...

Stefan


RE: Need some help please

2001-01-17 Thread Amjad Ashraf



you 
know what, originally I was compiling the mod_jk binary myself from tomcat 3.2 
src. But then httpd would give me:[warn] Loaded DSO libexec/mod_jk.so 
uses plain Apache 1.3 API, this module might crash under EAPI! (please recompile 
it with -DEAPI).

So, I 
changed apxs to pass -DEAPI to all gcc commands. In other words I 
recompiled with EAPI and apache still complained. I saw a lot of posts 
regarding this and no solution (I think apache warns if it was originally 
compiled with ssl support and therefore it uses EAPI). SoI got this 
rpm off falsehope.com which gives me mod_jk.so compiled with EAPI. And 
apache doesn't complain about it. So that is why I prefer to use it. 
But maybe you are right and there is somthing wrong with it. But I am out 
of options.

If 
there was only a way to get some freaking log info. when I hit apache for jsp's 
so that the logs could tell me why it chose not to use mod_jk, or why mod_jk 
failed or something...

  -Original Message-From: Stefan Langer 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, January 17, 2001 6:31 
  PMTo: [EMAIL PROTECTED]Subject: RE: Need 
  some help please
  The 
  only thing that I can assume now is that somehow the binary you are using 
  isn't working properly. (please correct me if I'm wrong)
  You 
  should try compiling mod_jk for your machine. Just get the source file for 
  tomcat and then follow the mod_jk how to. 
  It 
  takes a little effort but it should work if you follow the instructions. 
  
  
  I'm 
  really out of ideas and your files look ok.
  
  Maybe somebody else can spot something I haven't since I'm not an 
  apache expert...
  
  Stefan