• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Apache problems

 
Rupali Desai
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make sure you have servlet.jar in you classpath.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic