You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Søren Krum <so...@uninett.no> on 2009/05/08 12:07:11 UTC
ServerPagesGenerator in 2.2 ?!
Hi!
While upgrading from a cocoon 2.1 to 2.2 i found some pices of code
using a ServerPageGenerator, but i was not able to find that one in one
of the cocoon modules. Any idea if it was removed or in wihch module it
was placed?
The documentation of views (found here:
http://cocoon.apache.org/2.2/core-modules/core/2.2/1374_1_1.html) knows
about this generator, but that may just not up to date...
Best Regards
--
Søren D. Krum
Systemutvikler/system developer
UNINETT FAS
+ 47 73557859
There are 10 different kind of people in the world, those who understand binary and those who don't
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: ServerPagesGenerator in 2.2 ?!
Posted by Joerg Heinicke <jo...@gmx.de>.
Ah, that is true. Not all blocks actually got released as part of 2.2
release. But you can still take the block and use it.
Regarding your error, the type of manager might have changed from
ComponentManager to ServiceManager.
Joerg
On 11.05.2009 12:37, Søren Krum wrote:
> Joerg Heinicke wrote:
>> I'm not sure why you can't find the XSP block in 2.2 but there is a
>> ServerPagesGenerator:
>> http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-xsp/cocoon-xsp-impl/src/main/java/org/apache/cocoon/generation/
>>
>>
>> Joerg
>>
> Looks like that is Snapshot 6, seems like that package never made it
> over to cocoon 2.2 release. Strange enough, in 2.2 is there still a
> manager field. And i have just one version of the ServerGenerator in the
> classpass, so should not be confusion about which version to use.
>
> Really strange.
>
> Thx for your suggestions anyway.
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: ServerPagesGenerator in 2.2 ?!
Posted by Søren Krum <so...@uninett.no>.
Joerg Heinicke wrote:
> I'm not sure why you can't find the XSP block in 2.2 but there is a
> ServerPagesGenerator:
> http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-xsp/cocoon-xsp-impl/src/main/java/org/apache/cocoon/generation/
>
>
> Joerg
>
Looks like that is Snapshot 6, seems like that package never made it
over to cocoon 2.2 release. Strange enough, in 2.2 is there still a
manager field. And i have just one version of the ServerGenerator in the
classpass, so should not be confusion about which version to use.
Really strange.
Thx for your suggestions anyway.
--
Søren D. Krum
Systemutvikler/system developer
UNINETT FAS
+ 47 73557859
There are 10 different kind of people in the world, those who understand binary and those who don't
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: ServerPagesGenerator in 2.2 ?!
Posted by Joerg Heinicke <jo...@gmx.de>.
I'm not sure why you can't find the XSP block in 2.2 but there is a
ServerPagesGenerator:
http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-xsp/cocoon-xsp-impl/src/main/java/org/apache/cocoon/generation/
Joerg
On 11.05.2009 10:37, Søren Krum wrote:
> Hi!
>
> Now i tried out the ServerPageGenerator coming from cocoon:cocoon-xsp
> 2.1.11 but if i try to run it in an environment which is based on 2.2, i
> get the following error:
>
> Caused by:
> java.lang.NoSuchFieldError: manager
> at
> org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator.java:170)
>
>
> That normally points to a version conflict (i.e. different versions of
> the class. Here it seems to be ServletGenerator, but that one has a
> manager, and it is protected, so the ServerPageGenerator should be able
> to see it
>
> Anyone who has a idea what is going wrong?
>
> Søren D. Krum
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: ServerPagesGenerator in 2.2 ?!
Posted by Søren Krum <so...@uninett.no>.
Hi!
Now i tried out the ServerPageGenerator coming from cocoon:cocoon-xsp
2.1.11 but if i try to run it in an environment which is based on 2.2, i
get the following error:
Caused by:
java.lang.NoSuchFieldError: manager
at
org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator.java:170)
That normally points to a version conflict (i.e. different versions of
the class. Here it seems to be ServletGenerator, but that one has a
manager, and it is protected, so the ServerPageGenerator should be able
to see it
Anyone who has a idea what is going wrong?
Søren D. Krum
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: ServerPagesGenerator in 2.2 ?!
Posted by Søren Krum <so...@uninett.no>.
Hi,
is that under cocoon:cocoon-xsp? Sorry, i searched under
org.apache.cocoon, and there is nothing like that, and i asumed that
under cocoon: was the old stuff, will say 2.1 or older
Søren D. Krum
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: ServerPagesGenerator in 2.2 ?!
Posted by Joerg Heinicke <jo...@gmx.de>.
Cocoon 2.2 still has an XSP block (cocoon-xsp) with the
ServerPagesGenerator.
Joerg
On 08.05.2009 12:07, Søren Krum wrote:
> Hi!
>
> While upgrading from a cocoon 2.1 to 2.2 i found some pices of code
> using a ServerPageGenerator, but i was not able to find that one in one
> of the cocoon modules. Any idea if it was removed or in wihch module it
> was placed?
>
> The documentation of views (found here:
> http://cocoon.apache.org/2.2/core-modules/core/2.2/1374_1_1.html) knows
> about this generator, but that may just not up to date...
>
> Best Regards
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org