You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by "Hartwig, Thomas" <t....@crapoud.com> on 2004/05/15 18:13:19 UTC

asset management

The asset management does not work in my binary installation
(incubating-lenya-1.2dev-bin-20040514045132).

Assets are not uploaded in site administration and authoring. There 
comes no error message or anything. I can see the upload form, but after 
submission lenya just returns to the overview.

The only thing I can see is the following info in core.log:

-------------------------------------------------------------------------
INFO    (2004-05-15) 18:01.55:719   [core.program-generator] 
(/lenya/default/info-authoring/index.html) 
http8080-Processor25/ProgramGeneratorImpl: The serverpage 
[file:/opt/tomcat/webapps/lenya/lenya/content/info/assets.xsp] could not 
be preloaded, will be re-created 
(org.apache.cocoon.components.language.LanguageException: Unable to 
preload program org/apache/cocoon/www/lenya/content/info/assets_xsp: 
org.apache.cocoon.components.language.LanguageException: Could not load 
class for program 'org/apache/cocoon/www/lenya/content/info/assets_xsp' 
due to a java.lang.ClassNotFoundException: 
org.apache.cocoon.www.lenya.content.info.assets_xsp)
-------------------------------------------------------------------------

Unfortunately I can not build lenya from the source in my environment 
with following errors, so I can not test it. However I have seen working 
asset management on the demo site: 
http://olr.kbs.uni-hannover.de:8080/lenya/default/authoring

Rolf Kulemann which build did you use for that?


-------------------------------------------------------------------------
webapp:
      [echo] INFO: Copy files from src/webapp to build/lenya/webapp
      [echo] INFO: Copy publications from src/webapp/lenya/pubs to 
build/lenya/webapp/lenya/pubs
  [copyPubs] Copying 0 directories to 
/home/th/unpacked/cocoon-lenya/build/lenya/webapp/lenya/pubs
  [copyPubs] Copying 0 files to 
/home/th/unpacked/cocoon-lenya/build/lenya/webapp/lenya/pubs
      [echo] INFO: Patch cocoon.xconf

BUILD FAILED
java.lang.IllegalArgumentException: No attributes are implemented
         at 
org.apache.crimson.jaxp.DocumentBuilderFactoryImpl.setAttribute(DocumentBuilderFactoryImpl.java:93)
         at XConfToolTask.execute(Unknown Source)
         at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
         at org.apache.tools.ant.Task.perform(Task.java:364)
         at org.apache.tools.ant.Target.execute(Target.java:301)
         at org.apache.tools.ant.Target.performTasks(Target.java:328)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1063)
         at org.apache.tools.ant.Main.runBuild(Main.java:632)
         at org.apache.tools.ant.Main.startAnt(Main.java:183)
         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)

Total time: 5 seconds
java.lang.IllegalArgumentException: No attributes are implemented
         at 
org.apache.crimson.jaxp.DocumentBuilderFactoryImpl.setAttribute(DocumentBuilderFactoryImpl.java:93)
         at XConfToolTask.execute(Unknown Source)
         at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
         at org.apache.tools.ant.Task.perform(Task.java:364)
         at org.apache.tools.ant.Target.execute(Target.java:301)
         at org.apache.tools.ant.Target.performTasks(Target.java:328)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1063)
         at org.apache.tools.ant.Main.runBuild(Main.java:632)
         at org.apache.tools.ant.Main.startAnt(Main.java:183)
         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
No attributes are implemented


Thomas

Re: image attributes

Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Thomas Hartwig wrote:

> Ok. I found this one in "lenya/pubs/myproject/xslt/xhtml2xhtml.xsl" and 
> have added the align attribute there.

another (superior) option is to define css classes that achieve this. 
the align attribute is not supported in xhtml strict.

-- 
Gregor J. Rothfuss
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://wyona.com                   http://cocoon.apache.org/lenya
gregor.rothfuss@wyona.com                       gregor@apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org


Re: image attributes

Posted by Thomas Hartwig <t....@crapoud.com>.
Ok. I found this one in "lenya/pubs/myproject/xslt/xhtml2xhtml.xsl" and 
have added the align attribute there.

Thomas

Thomas Hartwig wrote:
> I managed it to add the attribute "align" to the object class for 
> setting the alignment of an image within a text. Bxeng interprets this 
> one, and displays the image at the right edge for instance. But if I 
> save the document. The object tag is converted to a image tag without 
> the align attribute in the HTML file. Which XSL or action is responsible 
> for this conversion, so I could add the align here as well?
> 
> Thomas
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: lenya-user-help@cocoon.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org


image attributes

Posted by Thomas Hartwig <t....@crapoud.com>.
I managed it to add the attribute "align" to the object class for 
setting the alignment of an image within a text. Bxeng interprets this 
one, and displays the image at the right edge for instance. But if I 
save the document. The object tag is converted to a image tag without 
the align attribute in the HTML file. Which XSL or action is responsible 
for this conversion, so I could add the align here as well?

Thomas

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org


Re: asset management

Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Hartwig, Thomas wrote:

> The asset management does not work in my binary installation
> (incubating-lenya-1.2dev-bin-20040514045132).
> 
> Assets are not uploaded in site administration and authoring. There 
> comes no error message or anything. I can see the upload form, but after 
> submission lenya just returns to the overview.
> 
> The only thing I can see is the following info in core.log:

you need to turn on enable uploads. in the binary, that would be in 
cocoon.xconf i think (or maybe web.xml)

-- 
Gregor J. Rothfuss
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://wyona.com                   http://cocoon.apache.org/lenya
gregor.rothfuss@wyona.com                       gregor@apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org