• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Apache problems

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Make sure you have servlet.jar in you classpath.
 
When it is used for evil, then watch out! When it is used for good, then things are much nicer. Like this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic