Hi there,

I'm learning Cocoon and have followed some (~3) online tutorials on
the apache site.  (I got interested because I'm a Forrest user.) I
didn't want to waste time, so I decided to jump straight to version
2.2.  (Not so smart, maybe?)

The maven install was pretty impressive.  Still I'm used to getting
all of a project's documentation and sample apps *with* the
distribution.  So I looked around but couldn't find such a bundle.
What to do?

Also, as a new user, I'm not sure *what* dependencies I need to define
in the POM.  For example, I tried using XSP by following a dated
series at 
http://www.ibm.com/developerworks/views/xml/libraryview.jsp?search_by=publish+dynamic+XML+content+with+%20Cocoon+2
but I kept getting ClassNotFoundExceptions.  After much
experimentation in my POM, I got rid of that exception, but got
another indicating that I had the wrong version for that dependency.
Here's the entry in my POM file that got rid of the
ClassNotFoundException:

  <dependency>
      <groupId>cocoon</groupId>
      <artifactId>cocoon-xsp</artifactId>
      <version>2.1.8</version>
  </dependency>

And here's the exception that replaced it after making that change:


java.lang.NoSuchFieldError: manager
        at 
org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator.java:170)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)


So how do I find out what version to use?  And for that matter, how do
I find which group/artifact Id to define in the POM in the first
place?


Thanks
-Babak

Btw, the reason why I followed that XSP trail was to see how I'd end
up putting an app together.  I've read elsewhere that XSP is not the
way to go anymore (something about lack of seperation of concerns?),
but I need a simple example of a web form to grasp how the Cocoon way
works.  If you know of a better example that works for Cocoon 2.2,
please do let me know..

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to