You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by giacomo <gi...@apache.org> on 2001/05/04 18:02:00 UTC

Weired compilation

Hi people

I've encountered weired compilation errors and am not able to locate the
problem. Does anybody else had this?

I've made a fresh checkout, checked the ext dir and so on but cannot
find why javac isn't able to find those methods. And yes they are in the
normal logkit.jar :( I also tried to use a newly compiled one from the
jakarta-avalon-logkit repository :((

compile:
Copying 12 files to
/usr/home/giacomo/cvs/xml-cocoon2/build/cocoon/classes
Compiling 225 source files to
/usr/home/giacomo/cvs/xml-cocoon2/build/cocoon/classes
/usr/home/giacomo/cvs/xml-cocoon2/build/cocoon/src/org/apache/cocoon/servlet/CocoonServlet.java:49:
Class org.apache.log.output.ServletOutputLogTarget not found in import.
import org.apache.log.output.ServletOutputLogTarget;
       ^
/usr/home/giacomo/cvs/xml-cocoon2/build/cocoon/src/org/apache/cocoon/components/pipeline/CachingStreamPipeline.java:169:
Method isDebugEnabled() not found in class org.apache.log.Logger.
                        if (getLogger().isDebugEnabled() == true) {
                                                      ^
/usr/home/giacomo/cvs/xml-cocoon2/build/cocoon/src/org/apache/cocoon/components/pipeline/CachingStreamPipeline.java:286:
Method isDebugEnabled() not found in class org.apache.log.Logger.
                            if (getLogger().isDebugEnabled() == true) {
                                                          ^
/usr/home/giacomo/cvs/xml-cocoon2/build/cocoon/src/org/apache/cocoon/components/pipeline/CachingEventPipeline.java:154:
Method isDebugEnabled() not found in class org.apache.log.Logger.
                        if (getLogger().isDebugEnabled() == true) {
                                                      ^
/usr/home/giacomo/cvs/xml-cocoon2/build/cocoon/src/org/apache/cocoon/Main.java:158:
Method getPriorityForName(java.lang.String) not found in interface
org.apache.log.Priority.
            final Priority priority =
Priority.getPriorityForName(logLevel);
                                                                 ^
/usr/home/giacomo/cvs/xml-cocoon2/build/cocoon/src/org/apache/cocoon/Main.java:159:
Incompatible type for method. Can't convert org.apache.log.Priority to
org.apache.log.Priority.Enum.
            LogKit.setGlobalPriority(priority);
                                     ^
/usr/home/giacomo/cvs/xml-cocoon2/build/cocoon/src/org/apache/cocoon/Main.java:161:
Method setPriority(org.apache.log.Priority) not found in class
org.apache.log.Logger.
            log.setPriority(priority);
                           ^
TIA

Giacomo


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: Weired compilation

Posted by giacomo <gi...@apache.org>.

On Fri, 4 May 2001, Berin Loritsch wrote:

> giacomo wrote:
> >
> > Hi people
> >
> > I've encountered weired compilation errors and am not able to locate the
> > problem. Does anybody else had this?
> >
> > I've made a fresh checkout, checked the ext dir and so on but cannot
> > find why javac isn't able to find those methods. And yes they are in the
> > normal logkit.jar :( I also tried to use a newly compiled one from the
> > jakarta-avalon-logkit repository :((
>
> Make sure that your libs are also updated.  Peter made some changes to
> LogKit prior to codefreeze, and committed updates to Cocoon to reflect
> those changes.  You do have to have your libs and your code updated for
> it to compile though....
>
> Once Avalon Framework/Excalibur/LogKit are released next week, we will
> include version numbers in the jars to avoid this kind of confusion.

It cannot be that. I've checked out the hole repository again into
another directory to make sure I have the correct stuff and also diffed
it but nada. Javac still complains. I'm very confused and it hinders me
to complete some work to test and commit (the samples for cached XSP
pages) ://

Giacomo
>
> >
> > compile:
> > Copying 12 files to
> > /usr/home/giacomo/cvs/xml-cocoon2/build/cocoon/classes
> > Compiling 225 source files to
> > /usr/home/giacomo/cvs/xml-cocoon2/build/cocoon/classes
> > /usr/home/giacomo/cvs/xml-cocoon2/build/cocoon/src/org/apache/cocoon/servlet/CocoonServlet.java:49:
> > Class org.apache.log.output.ServletOutputLogTarget not found in import.
> > import org.apache.log.output.ServletOutputLogTarget;
> >        ^
> > /usr/home/giacomo/cvs/xml-cocoon2/build/cocoon/src/org/apache/cocoon/components/pipeline/CachingStreamPipeline.java:169:
> > Method isDebugEnabled() not found in class org.apache.log.Logger.
> >                         if (getLogger().isDebugEnabled() == true) {
> >                                                       ^
> > /usr/home/giacomo/cvs/xml-cocoon2/build/cocoon/src/org/apache/cocoon/components/pipeline/CachingStreamPipeline.java:286:
> > Method isDebugEnabled() not found in class org.apache.log.Logger.
> >                             if (getLogger().isDebugEnabled() == true) {
> >                                                           ^
> > /usr/home/giacomo/cvs/xml-cocoon2/build/cocoon/src/org/apache/cocoon/components/pipeline/CachingEventPipeline.java:154:
> > Method isDebugEnabled() not found in class org.apache.log.Logger.
> >                         if (getLogger().isDebugEnabled() == true) {
> >                                                       ^
> > /usr/home/giacomo/cvs/xml-cocoon2/build/cocoon/src/org/apache/cocoon/Main.java:158:
> > Method getPriorityForName(java.lang.String) not found in interface
> > org.apache.log.Priority.
> >             final Priority priority =
> > Priority.getPriorityForName(logLevel);
> >                                                                  ^
> > /usr/home/giacomo/cvs/xml-cocoon2/build/cocoon/src/org/apache/cocoon/Main.java:159:
> > Incompatible type for method. Can't convert org.apache.log.Priority to
> > org.apache.log.Priority.Enum.
> >             LogKit.setGlobalPriority(priority);
> >                                      ^
> > /usr/home/giacomo/cvs/xml-cocoon2/build/cocoon/src/org/apache/cocoon/Main.java:161:
> > Method setPriority(org.apache.log.Priority) not found in class
> > org.apache.log.Logger.
> >             log.setPriority(priority);
> >                            ^
> > TIA
> >
> > Giacomo
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > For additional commands, email: cocoon-dev-help@xml.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: Weired compilation

Posted by Berin Loritsch <bl...@apache.org>.
giacomo wrote:
> 
> Hi people
> 
> I've encountered weired compilation errors and am not able to locate the
> problem. Does anybody else had this?
> 
> I've made a fresh checkout, checked the ext dir and so on but cannot
> find why javac isn't able to find those methods. And yes they are in the
> normal logkit.jar :( I also tried to use a newly compiled one from the
> jakarta-avalon-logkit repository :((

Make sure that your libs are also updated.  Peter made some changes to
LogKit prior to codefreeze, and committed updates to Cocoon to reflect
those changes.  You do have to have your libs and your code updated for
it to compile though....

Once Avalon Framework/Excalibur/LogKit are released next week, we will
include version numbers in the jars to avoid this kind of confusion.

> 
> compile:
> Copying 12 files to
> /usr/home/giacomo/cvs/xml-cocoon2/build/cocoon/classes
> Compiling 225 source files to
> /usr/home/giacomo/cvs/xml-cocoon2/build/cocoon/classes
> /usr/home/giacomo/cvs/xml-cocoon2/build/cocoon/src/org/apache/cocoon/servlet/CocoonServlet.java:49:
> Class org.apache.log.output.ServletOutputLogTarget not found in import.
> import org.apache.log.output.ServletOutputLogTarget;
>        ^
> /usr/home/giacomo/cvs/xml-cocoon2/build/cocoon/src/org/apache/cocoon/components/pipeline/CachingStreamPipeline.java:169:
> Method isDebugEnabled() not found in class org.apache.log.Logger.
>                         if (getLogger().isDebugEnabled() == true) {
>                                                       ^
> /usr/home/giacomo/cvs/xml-cocoon2/build/cocoon/src/org/apache/cocoon/components/pipeline/CachingStreamPipeline.java:286:
> Method isDebugEnabled() not found in class org.apache.log.Logger.
>                             if (getLogger().isDebugEnabled() == true) {
>                                                           ^
> /usr/home/giacomo/cvs/xml-cocoon2/build/cocoon/src/org/apache/cocoon/components/pipeline/CachingEventPipeline.java:154:
> Method isDebugEnabled() not found in class org.apache.log.Logger.
>                         if (getLogger().isDebugEnabled() == true) {
>                                                       ^
> /usr/home/giacomo/cvs/xml-cocoon2/build/cocoon/src/org/apache/cocoon/Main.java:158:
> Method getPriorityForName(java.lang.String) not found in interface
> org.apache.log.Priority.
>             final Priority priority =
> Priority.getPriorityForName(logLevel);
>                                                                  ^
> /usr/home/giacomo/cvs/xml-cocoon2/build/cocoon/src/org/apache/cocoon/Main.java:159:
> Incompatible type for method. Can't convert org.apache.log.Priority to
> org.apache.log.Priority.Enum.
>             LogKit.setGlobalPriority(priority);
>                                      ^
> /usr/home/giacomo/cvs/xml-cocoon2/build/cocoon/src/org/apache/cocoon/Main.java:161:
> Method setPriority(org.apache.log.Priority) not found in class
> org.apache.log.Logger.
>             log.setPriority(priority);
>                            ^
> TIA
> 
> Giacomo
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org