struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David G. Friedman" <hum...@ix.netcom.com>
Subject RE: running ant
Date Wed, 19 Jan 2005 17:29:43 GMT
Alex,

Is there any possibility that your ant build file specifies a different set
of classpath components for the JavaDoc building section?  If servlet jar
isn't in your CLASSPATH environmental variable then this idea could explain
the issue of java class compilation while JavaDoc has the complation
problems.

Regards,
David

-----Original Message-----
From: Alex Kravets [mailto:akravets@kligerweiss.com]
Sent: Wednesday, January 19, 2005 11:01 AM
To: Struts Users Mailing List
Subject: Re: running ant


but then how can compilation step succeed?

David G. Friedman wrote:

>Sounds like you don't have servet.jar or servlet-api.jar (Tomcat 5.X name
>for that jar) in your classpath.
>
>Regards,
>David
>
>-----Original Message-----
>From: Alex Kravets [mailto:akravets@kligerweiss.com]
>Sent: Wednesday, January 19, 2005 10:47 AM
>To: Struts Users Mailing List
>Subject: running ant
>
>
>I am building my application using Ant. It seems to be compiling but
>fails at step to build javadoc. Will this impact running of the
>application (I think not)? Here is the output of running Ant:
>Buildfile: build.xml
>
>clean:
>   [delete] Deleting directory
>/export/home/jakarta-tomcat-5.5.4/webapps/log/WEB-INF/classes
>    [mkdir] Created dir:
>/export/home/jakarta-tomcat-5.5.4/webapps/log/WEB-INF/classes
>
>prepare:
>
>resources:
>     [copy] Copying 2 files to
>/export/home/jakarta-tomcat-5.5.4/webapps/log/WEB-INF/classes
>
>compile:
>    [javac] Compiling 2 source files to
>/export/home/jakarta-tomcat-5.5.4/webapps/log/WEB-INF/classes
>
>javadoc:
>   [delete] Deleting directory
>/export/home/jakarta-tomcat-5.5.4/webapps/log/WEB-INF/doc/api
>    [mkdir] Created dir:
>/export/home/jakarta-tomcat-5.5.4/webapps/log/WEB-INF/doc/api
>  [javadoc] Generating Javadoc
>  [javadoc] Javadoc execution
>  [javadoc] Loading source files for package app...
>  [javadoc] Constructing Javadoc information...
>  [javadoc]
>/export/home/jakarta-tomcat-5.5.4/webapps/log/WEB-INF/src/java/app/ExecuteQ
u
>eryAction.java:13:
>package javax.servlet does not exist
>  [javadoc] import javax.servlet.ServletException;
>  [javadoc]                      ^
>  [javadoc]
>/export/home/jakarta-tomcat-5.5.4/webapps/log/WEB-INF/src/java/app/ExecuteQ
u
>eryAction.java:14:
>package javax.servlet.http does not exist
>  [javadoc] import javax.servlet.http.HttpServletRequest;
>  [javadoc]                           ^
>  [javadoc]
>/export/home/jakarta-tomcat-5.5.4/webapps/log/WEB-INF/src/java/app/ExecuteQ
u
>eryAction.java:15:
>package javax.servlet.http does not exist
>  [javadoc] import javax.servlet.http.HttpSession;
>  [javadoc]                           ^
>  [javadoc]
>/export/home/jakarta-tomcat-5.5.4/webapps/log/WEB-INF/src/java/app/ExecuteQ
u
>eryAction.java:16:
>package javax.servlet.http does not exist
>  [javadoc] import javax.servlet.http.HttpServletResponse;
>  [javadoc]                           ^
>  [javadoc]
>/export/home/jakarta-tomcat-5.5.4/webapps/log/WEB-INF/src/java/app/ExecuteQ
u
>eryAction.java:30:
>cannot find symbol
>  [javadoc] symbol  : class HttpServletRequest
>  [javadoc] location: class app.ExecuteQueryAction
>  [javadoc]             HttpServletRequest request,
>  [javadoc]             ^
>  [javadoc]
>/export/home/jakarta-tomcat-5.5.4/webapps/log/WEB-INF/src/java/app/ExecuteQ
u
>eryAction.java:31:
>cannot find symbol
>  [javadoc] symbol  : class HttpServletResponse
>  [javadoc] location: class app.ExecuteQueryAction
>  [javadoc]             HttpServletResponse response)
>  [javadoc]             ^
>  [javadoc]
>/export/home/jakarta-tomcat-5.5.4/webapps/log/WEB-INF/src/java/app/ExecuteQ
u
>eryAction.java:32:
>cannot find symbol
>  [javadoc] symbol  : class ServletException
>  [javadoc] location: class app.ExecuteQueryAction
>  [javadoc]         throws IOException, ServletException {
>  [javadoc]                             ^
>  [javadoc]
>/export/home/jakarta-tomcat-5.5.4/webapps/log/WEB-INF/src/java/app/ExecuteQ
u
>eryForm.java:10:
>package javax.servlet.http does not exist
>  [javadoc] import javax.servlet.http.HttpServletRequest;
>  [javadoc]                           ^
>[javadoc]
>/export/home/jakarta-tomcat-5.5.4/webapps/log/WEB-INF/src/java/app/ExecuteQ
u
>eryForm.java:75:
>cannot find symbol
>  [javadoc] symbol  : class HttpServletRequest
>  [javadoc] location: class app.ExecuteQueryForm
>  [javadoc]         HttpServletRequest request) {
>  [javadoc]         ^
>  [javadoc]
>/export/home/jakarta-tomcat-5.5.4/webapps/log/WEB-INF/src/java/app/ExecuteQ
u
>eryForm.java:89:
>cannot find symbol
>  [javadoc] symbol  : class HttpServletRequest
>  [javadoc] location: class app.ExecuteQueryForm
>  [javadoc]                                  HttpServletRequest request) {
>  [javadoc]                                  ^
>  [javadoc] Standard Doclet version 1.5.0
>  [javadoc] Building tree for all the packages and classes...
>  [javadoc] com.sun.tools.javac.code.Symbol$CompletionFailure: file
>javax/servlet/ServletRequest.class not found
>  [javadoc]
com.sun.tools.doclets.internal.toolkit.util.DocletAbortException
>  [javadoc]     at
>com.sun.tools.doclets.formats.html.ClassWriterImpl.printSummaryDetailLinks(
C
>lassWriterImpl.java:461)
>  [javadoc]     at
>com.sun.tools.doclets.formats.html.HtmlDocletWriter.navLinks(HtmlDocletWrit
e
>r.java:448)
>  [javadoc]     at
>com.sun.tools.doclets.formats.html.ClassWriterImpl.writeHeader(ClassWriterI
m
>pl.java:124)
>  [javadoc]     at
>com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.buildClassHead
e
>r(ClassBuilder.java:164)
>  [javadoc]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>Method)
>  [javadoc]     at
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3
9
>)
>  [javadoc]     at
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
l
>.java:25)
>  [javadoc]     at java.lang.reflect.Method.invoke(Method.java:585)
>  [javadoc]     at
>com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.invokeMethod(C
l
>assBuilder.java:101)
>  [javadoc]     at
>com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder.build(Abstr
a
>ctBuilder.java:90)
>  [javadoc]     at
>com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.buildClassDoc(
C
>lassBuilder.java:124)
>  [javadoc]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>Method)
>  [javadoc]     at
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3
9
>)
>  [javadoc]     at
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
l
>.java:25)
>  [javadoc]     at java.lang.reflect.Method.invoke(Method.java:585)
>  [javadoc]     at
>com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.invokeMethod(C
l
>assBuilder.java:101)
>  [javadoc]     at
>com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder.build(Abstr
a
>ctBuilder.java:90)
>  [javadoc]     at
>com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.build(ClassBui
l
>der.java:108)
>  [javadoc]     at
>com.sun.tools.doclets.formats.html.HtmlDoclet.generateClassFiles(HtmlDoclet
.
>java:155)
>  [javadoc]     at
>com.sun.tools.doclets.internal.toolkit.AbstractDoclet.generateClassFiles(Ab
s
>tractDoclet.java:164)
>  [javadoc]     at
>com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(Abstr
a
>ctDoclet.java:106)
>  [javadoc]     at
>com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(AbstractDoclet.
j
>ava:64)
>  [javadoc]     at
>com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDoclet.java:42)
>  [javadoc]     at
>com.sun.tools.doclets.standard.Standard.start(Standard.java:23)
>  [javadoc]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>Method)
>  [javadoc]     at
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3
9
>)
>  [javadoc]     at
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
l
>.java:25)
>  [javadoc]     at java.lang.reflect.Method.invoke(Method.java:585)
>  [javadoc]     at
>com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:215)
>  [javadoc]     at
>com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:91)
>  [javadoc]     at
>com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340)
>  [javadoc]     at com.sun.tools.javadoc.Start.begin(Start.java:128)
>  [javadoc]     at com.sun.tools.javadoc.Main.execute(Main.java:41)
>  [javadoc]     at com.sun.tools.javadoc.Main.main(Main.java:31)
>[javadoc] com.sun.tools.javac.code.Symbol$CompletionFailure: file
>javax/servlet/http/HttpServletResponse.class not found
>  [javadoc]
>/export/home/jakarta-tomcat-5.5.4/webapps/log/WEB-INF/src/java/app/ExecuteQ
u
>eryForm.java:59:
>warning - @param argument "password" is not a parameter
>name.
>  [javadoc] Building index for all the packages and classes...
>  [javadoc] Building index for all classes...
>  [javadoc] Generating
>/export/home/jakarta-tomcat-5.5.4/webapps/log/WEB-INF/doc/api/stylesheet.cs
s
>...
>  [javadoc] 11 warnings
>
>dist:
>
>thanks,
>Alex
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message