You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Rick Mangi (JIRA)" <ji...@codehaus.org> on 2009/10/21 16:03:26 UTC

[jira] Commented: (MSITE-220) site:run mojo will not display javadocs or jxr results

    [ http://jira.codehaus.org/browse/MSITE-220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=195452#action_195452 ] 

Rick Mangi commented on MSITE-220:
----------------------------------

I sent this to the mailing list and was pointed to this jira ticket. I can generate my javadocs with mvn javadoc:javadoc but running site:run and browsing to the site causes the exceptions below. I wonder if it has something to do with the classloader for the embedded servlet container.


> /Users/mangir/work/kids-web-core/src/main/java/com/nickonline/web/filter/rew
> rite/DefaultRewriteHandler.java:18: cannot find symbol
> symbol  : variable LogFactory
> location: class com.nickonline.web.filter.rewrite.DefaultRewriteHandler
>     protected static final Log log = LogFactory
>                                      ^
> java.lang.ClassCastException: com.sun.tools.javadoc.ClassDocImpl cannot be
> cast to com.sun.javadoc.AnnotationTypeDoc
> 
> 
> And in the browser I get a bunch of messages similar to the following:
> 
> HTTP ERROR: 500
> 
> Error rendering Maven report: Exit code: 1 -
> /Users/mangir/work/kids-web-core/src/main/java/com/nickonline/ir/BaseIR.java
> :7: package net.sf.ehcache does not exist
> import net.sf.ehcache.CacheManager;
>                      ^
> /Users/mangir/work/kids-web-core/src/main/java/com/nickonline/ir/BaseIR.java
> :18: cannot find symbol
> symbol  : class CacheManager
> location: interface com.nickonline.ir.BaseIR
>     public void setCacheManager(CacheManager cacheManager);
>                                 ^
> /Users/mangir/work/kids-web-core/src/main/java/com/nickonline/ir/BaseIR.java
> :19: cannot find symbol
> symbol  : class CacheManager
> location: interface com.nickonline.ir.BaseIR
>     public CacheManager getCacheManager();
>            ^
> /Users/mangir/work/kids-web-core/src/main/java/com/nickonline/ir/BaseIRImpl.
> java:3: package net.sf.ehcache does not exist
> import net.sf.ehcache.CacheManager;
>                      ^
> /Users/mangir/work/kids-web-core/src/main/java/com/nickonline/ir/BaseIRImpl.
> java:5: package org.apache.commons.logging does not exist
> import org.apache.commons.logging.Log;
>                                  ^
> /Users/mangir/work/kids-web-core/src/main/java/com/nickonline/ir/BaseIRImpl.
> java:6: package org.apache.commons.logging does not exist
> import org.apache.commons.logging.LogFactory;
>                                  ^
> 

> site:run mojo will not display javadocs or jxr results
> ------------------------------------------------------
>
>                 Key: MSITE-220
>                 URL: http://jira.codehaus.org/browse/MSITE-220
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>          Components: site:run
>    Affects Versions: 2.0-beta-5
>         Environment: maven 2.0.5
>            Reporter: John Casey
>
> I don't know if this is reported already; I could not find the issue if it has.
> The problem is that the site:run mojo causes the javadoc and jxr reports to run when their links are clicked, but doesn't display there results on-screen.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira