wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Apache problems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Apache problems" Watch "Apache problems" New topic
Author

Apache problems

Rupali Desai
Ranch Hand

Joined: May 29, 2001
Posts: 42
I am getting the following problem with apache

[Wed Jul 24 11:00:22 2002] [error] [client 127.0.0.1] Exception in thread "main"
[Wed Jul 24 11:10:19 2002] [error] [client 127.0.0.1] java.lang.NoClassDefFoundError: javax/servlet/http/HttpUtils
I have a small html form which calls a perl script which in turn call a java program.
I am able to execute it on command line
c:\ perl Acg.pl
but when I do it through the browser I see the above mentioned error inthe error log of apache.
I have set the clas path environment.
my perl scrip looks like this.
#!c:/perl/bin/perl
print "Content-type: text/html\r\n\r\n";
exec " java -DQUERY_STRING=$ENV{'QUERY_STRING'} -DREQUEST_METHOD=$ENV{'REQUEST_METHOD'} -DREMOTE_ADDR=$ENV{'REMOTE_ADDR'} -DCONTENT_LENGTH=$ENV{'CONTENT_LENGTH'} -classpath d:/java_acg_1.0 kagi.acg.Acg_xxa_reference ";

Thanks in advance.
Rupali Desai
Juanjo Bazan
Ranch Hand

Joined: Feb 04, 2002
Posts: 231
Make sure you have servlet.jar in you classpath.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Apache problems