ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pinar Bicioglu" <pinarb...@hotmail.com>
Subject Package javax.servlet.http not found in import
Date Fri, 01 Jun 2001 23:04:34 GMT
I am going crazy here. I posted tons of messages regarding my problem that I 
haven't been able to resolve for three days. Everybody tried to help me 
thanks to all of you. But the problem still exists....

All I want to do is to generate a javadoc. I have two source files in which 
I import one package that is not standard. (it is written by someone from 
our office)


here is the lates version of my javadoc target and the error code it 
generates...

<!-- Javadoc target -->
   <target name="javadoc" depends="packages" >

    <property name="root"  value="org.apache.struts" />
    <property name="src"   value="d:\ap20\java" />
    <echo message="${my.classpath.txt}"/>
       <javadoc sourcepath="${src}"
         destdir="${javadoc.home}"
         packagenames="${root}.*"
         classpath="d:\ap20\websrc\WEB-INF\lib\struts.jar"
         author="true"
         version="true"
         use="true"
         windowtitle="${app.name} ${version} API"
         doctitle="${app.name}" />
         </target>

error message:

D:\ap20>ant javadoc
Buildfile: build.xml

prepare:

compile:

packages:

javadoc:
     [echo] ${my.classpath.txt}
  [javadoc] Generating Javadoc
  [javadoc] Javadoc execution
  [javadoc] Loading source files for package org.apache.struts.form...
  [javadoc] Constructing Javadoc information...
  [javadoc] D:\ap20\java\org\apache\struts\form\ValidateForm.java:13: 
Package javax.servle
t.http not found in import.
  [javadoc] import javax.servlet.http.*;
  [javadoc]        ^
  [javadoc] javadoc: warning - Cannot find class 
javax.servlet.http.HttpServlet
  [javadoc] javadoc: warning - Cannot find class 
javax.servlet.ServletRequest
  [javadoc] javadoc: warning - Cannot find class 
javax.servlet.http.HttpServletRequest
  [javadoc] javadoc: warning - Cannot find class 
javax.servlet.ServletResponse
  [javadoc] javadoc: warning - Cannot find class 
javax.servlet.ServletException
  [javadoc] javadoc: warning - Cannot find class 
javax.servlet.http.HttpServletResponse
  [javadoc] javadoc: warning - Import not found: 
javax.servlet.RequestDispatcher - ignorin
g!
  [javadoc] javadoc: warning - Import not found: 
javax.servlet.ServletException - ignoring
!
  [javadoc] javadoc: warning - Import not found: 
javax.servlet.http.HttpServletRequest - i
gnoring!
  [javadoc] javadoc: warning - Import not found: 
javax.servlet.http.HttpSession - ignoring
!
  [javadoc] javadoc: warning - Import not found: 
javax.servlet.http.HttpServletResponse -
ignoring!
  [javadoc] javadoc: warning - Cannot find class javax.sql.DataSource
  [javadoc] javadoc: warning - Cannot find class org.xml.sax.HandlerBase
  [javadoc] javadoc: warning - Cannot find class 
javax.servlet.http.HttpServlet
  [javadoc] javadoc: warning - Cannot find class org.xml.sax.SAXException
  [javadoc] javadoc: warning - Cannot find class 
org.xml.sax.SAXParseException
  [javadoc] javadoc: warning - Cannot find class javax.xml.parsers.SAXParser
  [javadoc] javadoc: warning - Cannot find class org.xml.sax.InputSource
  [javadoc] javadoc: warning - Cannot find class org.xml.sax.Locator
  [javadoc] javadoc: warning - Cannot find class org.xml.sax.AttributeList
  [javadoc] javadoc: warning - Cannot find class org.xml.sax.HandlerBase
  [javadoc] Building tree for all the packages and classes...
  [javadoc] Building index for all the packages and classes...
  [javadoc] Building index for all classes...
  [javadoc] Generating 
D:\Tomcat\jakarta-tomcat-3.2.2b3\webapps\struts\javadoc\stylesheet.
css...
  [javadoc] 21 warnings

BUILD SUCCESSFUL

Total time: 7 seconds

and "my.classpath.txt" consists of .jar files as below...

myclasspath="d:\jdk1.2.2\lib\tools.jar;d:\jakarta-ant-1.3\lib\ant.jar;D:\Bin\sb\classes\parser.jar;D:\jdk1.2.2\lib\tools.jar;d:\RECYCLER\S-1-5-21-116989744-1368684792-1540833222-1308\DD1.2B3\lib"


thanks a lot...........



_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com


Mime
View raw message