ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Chamness" <ma...@cacheware.com>
Subject RE: Package javax.servlet.http not found in import
Date Fri, 01 Jun 2001 23:32:01 GMT
Why don't you include the servlet API packages?
This is what the error states.

----------------
        <classpath>
            <pathelement path="${classes}"/>
            <pathelement path="${src}"/>
            <pathelement location="../lib/servlet.jar"/>
         </classpath>
----------------

-mark

> -----Original Message-----
> From: Pinar Bicioglu [mailto:pinarbici@hotmail.com]
> Sent: Friday, June 01, 2001 4:05 PM
> To: ant-user@jakarta.apache.org
> Subject: Package javax.servlet.http not found in import
>
>
> 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:\RECY
> CLER\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