Andreas Hartmann wrote:
Andrew Golightly wrote:
Hey Andrea,
I did an update, a clean build and now I get 11 errors:
Created dir: /opt/lenya/mc-test/lenya-1.4.x/build/lenya/modules
Compiling 145 source files to
/opt/lenya/mc-test/lenya-1.4.x/build/lenya/modules
/opt/lenya/mc-test/lenya-1.4.x/build/lenya/java/modules/org/apache/lenya/cms/site/usecases/CustomPublish.java:7:
package org.apache.lenya.defaultpub.cms.usecases does not exist
import org.apache.lenya.defaultpub.cms.usecases.Publish;
It looks as if you have a CustomPublish class in one of
your publications that extends the default publication's
publish usecase.
In this special case, we should move the Publish usecase
handler from the default publication to the core.
I have added
src/java/org/apache/lenya/defaultpub
src/java/org/apache/lenya/notification
temporarily to the core such that it compiles again.
But I still receive a runtime error
org.apache.lenya.workflow.impl.WorkflowManagerImpl
Any idea why it doesn't find this impl?
Michi
Until
then, you could copy the Publish usecase into your
publication.
HTH,
-- Andreas
^
/opt/lenya/mc-test/lenya-1.4.x/build/lenya/java/modules/org/apache/lenya/cms/site/usecases/CustomPublish.java:9:
cannot resolve symbol
symbol : class Publish
location: class org.apache.lenya.cms.site.usecases.CustomPublish
public class CustomPublish extends Publish {
^
/opt/lenya/mc-test/lenya-1.4.x/build/lenya/java/modules/org/apache/lenya/cms/site/usecases/CustomPublish.java:11:
cannot resolve symbol
symbol : variable super
location: class org.apache.lenya.cms.site.usecases.CustomPublish
super.initParameters();
^
/opt/lenya/mc-test/lenya-1.4.x/build/lenya/java/modules/org/apache/lenya/cms/site/usecases/CustomPublish.java:15:
cannot resolve symbol
symbol : variable super
location: class org.apache.lenya.cms.site.usecases.CustomPublish
super.doCheckPreconditions();
^
/opt/lenya/mc-test/lenya-1.4.x/build/lenya/java/modules/org/apache/lenya/cms/site/usecases/CustomPublish.java:19:
cannot resolve symbol
symbol : variable super
location: class org.apache.lenya.cms.site.usecases.CustomPublish
super.doExecute();
^
/opt/lenya/mc-test/lenya-1.4.x/build/lenya/java/modules/org/apache/lenya/cms/site/usecases/CustomPublish.java:26:
cannot resolve symbol
symbol : method getSourceDocument ()
location: class org.apache.lenya.cms.site.usecases.CustomPublish
Document doc = getSourceDocument();
^
/opt/lenya/mc-test/lenya-1.4.x/build/lenya/java/modules/org/apache/lenya/cms/site/usecases/CustomPublish.java:27:
cannot resolve symbol
symbol : method getSourceDocument ()
location: class org.apache.lenya.cms.site.usecases.CustomPublish
String sourceUri = getSourceDocument().getSourceURI();
^
/opt/lenya/mc-test/lenya-1.4.x/build/lenya/java/modules/org/apache/lenya/cms/site/usecases/CustomPublish.java:29:
cannot resolve symbol
symbol : variable manager
location: class org.apache.lenya.cms.site.usecases.CustomPublish
resolver = (SourceResolver)
manager.lookup(SourceResolver.ROLE);
^
/opt/lenya/mc-test/lenya-1.4.x/build/lenya/java/modules/org/apache/lenya/cms/site/usecases/CustomPublish.java:34:
cannot resolve symbol
symbol : variable super
location: class org.apache.lenya.cms.site.usecases.CustomPublish
super.publish(authoringDocument);
^
/opt/lenya/mc-test/lenya-1.4.x/build/lenya/java/modules/org/apache/lenya/cms/site/usecases/CustomPublish.java:48:
cannot resolve symbol
symbol : variable manager
location: class org.apache.lenya.cms.site.usecases.CustomPublish
resolver = (SourceResolver)
this.manager.lookup(SourceResolver.ROLE);
^
/opt/lenya/mc-test/lenya-1.4.x/build/lenya/java/modules/org/apache/lenya/cms/site/usecases/CustomPublish.java:54:
cannot resolve symbol
symbol : variable manager
location: class org.apache.lenya.cms.site.usecases.CustomPublish
this.manager.release(resolver);
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -deprecation for details.
11 errors
thanks,
Andrew
Andreas Hartmann wrote:
Andrew Golightly wrote:
Hi Andreas,
not sure whether I have the same problem exactly, but lenya isn't
building. I get this error:
/home/andrew/gate-research/cms-systems/lenya/lenya-1.4.x/src/java/org/apache/lenya/cms/workflow/DocumentWorkflowable.java:219:
cannot resolve symbol
symbol : class LenyaVersion
location: class org.apache.lenya.cms.workflow.DocumentWorkflowable
Version version = new LenyaVersion(event, state);
I forgot to add a class to SVN, it should work now.
Sorry for the inconvenience,
-- Andreas
--
Michael Wechner
Wyona - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
[EMAIL PROTECTED] [EMAIL PROTECTED]
+41 44 272 91 61
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]