You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Tim Williams <wi...@gmail.com> on 2010/05/27 17:43:19 UTC

dispatcher compile errors

Anyone else getting:


compile:
    [javac] Compiling 1 source file to
/Users/twilliams/Development/forrest/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/build/classes
    [javac] /Users/twilliams/Development/forrest/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/transformation/DispatcherTransformer.java:399:
cannot access SourceResolver
    [javac] class file for SourceResolver not found
    [javac]         resolverDispatcher = new CocoonResolver(m_resolver);
    [javac]                              ^
    [javac] 1 error

... in dispatcher?  I'll poke around locally but wanted to see if it
was just me since zones is apparently working fine.

--tim

Re: dispatcher compile errors

Posted by Sjur Moshagen <sj...@mac.com>.
Den 3. jun. 2010 kl. 01.39 skrev David Crossley:

> Sjur Moshagen wrote:
>> 
>> Here's my output:
>> 
>> jar:
>> Building jar: /usr/local/forrest/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/build/org.apache.forrest.plugin.internal.dispatcher.jar
> 
> Did you see this bug (now fixed).
> https://issues.apache.org/jira/browse/FOR-1195
> "the plugins 'clean' target should remove previously built classes"
> 
> Perhaps your's missed the "compile" phase and just re-packed the jar.
> 
> Needs '....ant clean' beforehand.

You were right. I manually deleted the whole build/ dir in dispatcher, cleaned forrest, rebuilt, cleaned by project, and reran. The relevant output was:

compile:
Created dir: /usr/local/forrest/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/build/classes
Compiling 33 source files to /usr/local/forrest/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/build/classes
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Copying 1 file to /usr/local/forrest/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/build/classes

jar:
Building jar: /usr/local/forrest/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/build/org.apache.forrest.plugin.internal.dispatcher.jar

local-deploy:
Locally deploying org.apache.forrest.plugin.internal.dispatcher
Copying 354 files to /usr/local/forrest/build/plugins/org.apache.forrest.plugin.internal.dispatcher
Copied 91 empty directories to 5 empty directories under /usr/local/forrest/build/plugins/org.apache.forrest.plugin.internal.dispatcher
Copying 1 file to /usr/local/forrest/build/plugins/lib
Copying 14 files to /usr/local/forrest/build/plugins/lib

build:
Plugin org.apache.forrest.plugin.internal.dispatcher deployed ! Ready to configure

Still no problems, now using HEAD of trunk.

Sjur

> -David
> 
>> $ java -version
>> java version "1.6.0_20"
>> Java(TM) SE Runtime Environment (build 1.6.0_20-b02-279-10M3065)
>> Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01-279, mixed mode)
>> 
>> MacOS X 10.6.3


Re: dispatcher compile errors

Posted by David Crossley <cr...@apache.org>.
Sjur Moshagen wrote:
> 
> Here's my output:
> 
> jar:
> Building jar: /usr/local/forrest/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/build/org.apache.forrest.plugin.internal.dispatcher.jar

Did you see this bug (now fixed).
https://issues.apache.org/jira/browse/FOR-1195
"the plugins 'clean' target should remove previously built classes"

Perhaps your's missed the "compile" phase and just re-packed the jar.

Needs '....ant clean' beforehand.

-David

> local-deploy:
> Locally deploying org.apache.forrest.plugin.internal.dispatcher
> Copying 354 files to /usr/local/forrest/build/plugins/org.apache.forrest.plugin.internal.dispatcher
> Copied 91 empty directories to 5 empty directories under /usr/local/forrest/build/plugins/org.apache.forrest.plugin.internal.dispatcher
> Copying 1 file to /usr/local/forrest/build/plugins/lib
> Copying 14 files to /usr/local/forrest/build/plugins/lib
> 
> That is, no problems. This is against r950069.
> 
> $ java -version
> java version "1.6.0_20"
> Java(TM) SE Runtime Environment (build 1.6.0_20-b02-279-10M3065)
> Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01-279, mixed mode)
> 
> MacOS X 10.6.3
> 
> Sjur
> 

Re: dispatcher compile errors

Posted by Sjur Moshagen <sj...@mac.com>.
Den 1. jun. 2010 kl. 04.34 skrev David Crossley:

> Tim Williams wrote:
>> Anyone else getting:
>> 
>> 
>> compile:
>>    [javac] Compiling 1 source file to
>> /Users/twilliams/Development/forrest/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/build/classes
>>    [javac] /Users/twilliams/Development/forrest/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/transformation/DispatcherTransformer.java:399:
>> cannot access SourceResolver
>>    [javac] class file for SourceResolver not found
>>    [javac]         resolverDispatcher = new CocoonResolver(m_resolver);
>>    [javac]                              ^
>>    [javac] 1 error
>> 
>> ... in dispatcher?  I'll poke around locally but wanted to see if it
>> was just me since zones is apparently working fine.
> 
> It does the "compile" phase for me okay. (Mac 10.5.8 with Java 1.5).

Here's my output:

jar:
Building jar: /usr/local/forrest/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/build/org.apache.forrest.plugin.internal.dispatcher.jar

local-deploy:
Locally deploying org.apache.forrest.plugin.internal.dispatcher
Copying 354 files to /usr/local/forrest/build/plugins/org.apache.forrest.plugin.internal.dispatcher
Copied 91 empty directories to 5 empty directories under /usr/local/forrest/build/plugins/org.apache.forrest.plugin.internal.dispatcher
Copying 1 file to /usr/local/forrest/build/plugins/lib
Copying 14 files to /usr/local/forrest/build/plugins/lib

That is, no problems. This is against r950069.

$ java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02-279-10M3065)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01-279, mixed mode)

MacOS X 10.6.3

Sjur


Re: dispatcher compile errors

Posted by David Crossley <cr...@apache.org>.
Tim Williams wrote:
> Anyone else getting:
> 
> 
> compile:
>     [javac] Compiling 1 source file to
> /Users/twilliams/Development/forrest/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/build/classes
>     [javac] /Users/twilliams/Development/forrest/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/transformation/DispatcherTransformer.java:399:
> cannot access SourceResolver
>     [javac] class file for SourceResolver not found
>     [javac]         resolverDispatcher = new CocoonResolver(m_resolver);
>     [javac]                              ^
>     [javac] 1 error
> 
> ... in dispatcher?  I'll poke around locally but wanted to see if it
> was just me since zones is apparently working fine.

It does the "compile" phase for me okay. (Mac 10.5.8 with Java 1.5).

-David

Re: dispatcher compile errors

Posted by Thorsten Scherler <sc...@gmail.com>.
On Thu, 2010-05-27 at 11:43 -0400, Tim Williams wrote:
> Anyone else getting:
> 
> 
> compile:
>     [javac] Compiling 1 source file to
> /Users/twilliams/Development/forrest/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/build/classes
>     [javac] /Users/twilliams/Development/forrest/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/transformation/DispatcherTransformer.java:399:
> cannot access SourceResolver
>     [javac] class file for SourceResolver not found
>     [javac]         resolverDispatcher = new CocoonResolver(m_resolver);
>     [javac]                              ^
>     [javac] 1 error
> 
> ... in dispatcher?  I'll poke around locally but wanted to see if it
> was just me since zones is apparently working fine.

Hmm, yeah I just tried on my box and it works fine. I am again
developing on ubuntu, but when I restart I will give it a go under mac
os.

salu2

> 
> --tim

-- 
Thorsten Scherler <thorsten.at.apache.org>
Open Source Java <consulting, training and solutions>