cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Søren Neigaard <neiga...@mobilethink.dk>
Subject RE: Cocoon examples?
Date Wed, 10 Oct 2001 18:54:47 GMT
Thx :)

Theres more things I dont get though... I have no classes in my
"build/cocoon/webapp/WEB-INF/classes/*", should I have classes here? Do I
need to include some *.jar files for my servlet engine?

If I try to start cocoon, I get the following error (any ideas):

2001.10.09 13:23:34: cocoon,INFO: DEBUG   (2001-10-09) 13:23.34:584
[        ] (Unknown-URI) Unknown-thread/DefaultLogTargetFactoryManager:
added new LogTargetFactory of type priority-filter
2001.10.09 13:23:34: cocoon,INFO: DEBUG   (2001-10-09) 13:23.34:594
[        ] (Unknown-URI) Unknown-thread/DefaultLogTargetFactoryManager:
added new LogTargetFactory of type servlet
2001.10.09 13:23:34: cocoon,INFO: DEBUG   (2001-10-09) 13:23.34:594
[        ] (Unknown-URI) Unknown-thread/DefaultLogTargetFactoryManager:
added new LogTargetFactory of type cocoon
2001.10.09 13:23:34: cocoon,INFO: DEBUG   (2001-10-09) 13:23.34:604
[        ] (Unknown-URI) Unknown-thread/DefaultLogTargetManager: added new
LogTarget of id cocoon
2001.10.09 13:23:34: cocoon,INFO: DEBUG   (2001-10-09) 13:23.34:614
[        ] (Unknown-URI) Unknown-thread/DefaultLogTargetManager: added new
LogTarget of id root
2001.10.09 13:23:34: cocoon,INFO: DEBUG   (2001-10-09) 13:23.34:614
[        ] (Unknown-URI) Unknown-thread/DefaultLogTargetManager: added new
LogTarget of id components
2001.10.09 13:23:34: cocoon,INFO: DEBUG   (2001-10-09) 13:23.34:614
[        ] (Unknown-URI) Unknown-thread/PriorityFilterTargetFactory:
loglevel is ERROR
2001.10.09 13:23:34: cocoon,INFO: DEBUG   (2001-10-09) 13:23.34:614
[        ] (Unknown-URI) Unknown-thread/PriorityFilterTargetFactory:
creating target servlet:
org.apache.avalon.framework.configuration.DefaultConfiguration@168e23
2001.10.09 13:23:34: cocoon,INFO: DEBUG   (2001-10-09) 13:23.34:624
[        ] (Unknown-URI) Unknown-thread/DefaultLogTargetManager: added new
LogTarget of id filter
2001.10.09 13:23:34: cocoon,INFO: DEBUG   (2001-10-09) 13:23.34:624
[        ] (Unknown-URI) Unknown-thread/DefaultLogKitManager: added logger
for category cocoon
2001.10.09 13:23:34: cocoon,INFO: DEBUG   (2001-10-09) 13:23.34:624
[        ] (Unknown-URI) Unknown-thread/DefaultLogKitManager: added logger
for category root
2001.10.09 13:23:34: cocoon,INFO: DEBUG   (2001-10-09) 13:23.34:624
[        ] (Unknown-URI) Unknown-thread/DefaultLogKitManager: added logger
for category root.store
2001.10.09 13:23:34: cocoon,INFO: DEBUG   (2001-10-09) 13:23.34:634
[        ] (Unknown-URI) Unknown-thread/DefaultLogKitManager: added logger
for category root.xslt
2001.10.09 13:23:34: cocoon,INFO: DEBUG   (2001-10-09) 13:23.34:634
[        ] (Unknown-URI) Unknown-thread/DefaultLogKitManager: Logger for
category root returned
2001.10.09 13:23:34: cocoon,INFO: DEBUG   (2001-10-09) 13:23.34:785
[        ] (Unknown-URI) Unknown-thread/DefaultLogKitManager: Logger for
category cocoon returned
2001.10.09 13:23:35: cocoon,INFO: DEBUG   (2001-10-09) 13:23.35:065
[        ] (Unknown-URI) Unknown-thread/DefaultLogKitManager: Logger for
category root.store returned
2001.10.09 13:23:35: cocoon,INFO: DEBUG   (2001-10-09) 13:23.35:135
[        ] (Unknown-URI) Unknown-thread/DefaultLogKitManager: Logger for
category root.store returned
2001.10.09 13:23:35: cocoon,INFO: DEBUG   (2001-10-09) 13:23.35:225
[        ] (Unknown-URI) Unknown-thread/DefaultLogKitManager: Logger for
category root.store returnedjava.lang.NoClassDefFoundError:
org/hsqldb/Server at
org.apache.cocoon.components.hsqldb.ServerImpl.run(ServerImpl.java:102) at
java.lang.Thread.run(Unknown Source)
2001.10.09 13:23:35: cocoon,INFO: DEBUG   (2001-10-09) 13:23.35:406
[        ] (Unknown-URI) Unknown-thread/DefaultLogKitManager: Logger for
category root.store returned
  -----Oprindelig meddelelse-----
  Fra: Jeremy Aston [mailto:jeremyaston@yahoo.co.uk]
  Sendt: 9. oktober 2001 03:34
  Til: cocoon-users@xml.apache.org; 'Søren_Neigaard'
  Emne: Re: SV: SV: Cocoon examples?


  Hi Soren,

  On a Windows platform you can use a zip compatible program such as WinZip
or WinRar.  On Unix I assume a gzip utility would do the same (I really must
get my Linux box going one year ;-)).

  I assume however you are talking about the cocoon.war.  When you download
the distributable and run the build script as per the install instructions
the webapp gets built in your %COCOON_HOME%/build/cocoon/webapp folder and
it is this that can be copied into %TOMCAT_HOME%/webapps/cocoon.   You can
get rid of the war as well.  See the install instructions in the C2 docs and
on cTwIG for more info.

  Regards

  Jeremy

    Søren_Neigaard <neigaard@mobilethink.dk> wrote:

    How do I unpack a WAR?
      -----Oprindelig meddelelse-----
      Fra: Jeremy Aston [mailto:jeremyaston@yahoo.co.uk]
      Sendt: 8. oktober 2001 07:42
      Til: Søren_Neigaard; cocoon-users@xml.apache.org
      Emne: Re: SV: Cocoon examples?


      Hi Soren,

      Thanks for the comments.

      I'm not sure that the map command you suggest would work however even
it does then I would still use XSP.  About 18 months ago I spent alot of
time trying to work out the best way of building multi-lingual, branded
sites using a java architecture.  I thought XML/XSL offered alot of options
however did not extend the whole thing to logicsheets.  Once I saw Cocoon
and logicsheets I found that someone had written a full implementation of
the stuff I was mucking around with.

      XSP on it's own does not offer a load more over a JSP type approach
however with logicsheets you have alot of power.  You have the ability to
embed logic in the logicsheet or mix and match with bean calls to business
logic, just like in JSP, but with a nice XML wrapping around it.  I will be
putting some more examples up on cTwIG in the next few days I hope btw.

      If you compare it with actual servlets then IMHO XSP/Logicsheets/XSL
offers a far better technology for publishing than raw servlets.  Servlets
have their place, in non presentational scenarios such as data exchange or
some kind of SOAP environment for example, but I really do think that the
Cocoon approach is the best publishing platform I have seen.

      In my experience - 99% of the time whatever you munge around with
business logic needs to be displayed.  No matter how far you go with a "MVC"
tiered approach, the results of logic have to be stuck into presenation
code.  Servlets will not make that easier - well designed
XML/XSP/Logicsheets/XSL does.

      Stepping off his soapbox...

      Jez


      Søren_Neigaard <neigaard@mobilethink.dk> wrote:

        Great intro, thanks :) I'm still confused at one point though (well
more than one, but here the most). I have some businessobjects I want to
retrive data from (maybe as XML), and use this data as input for Cocoon. How
is this done? I absolutly don't want to use XSP (I don't like the mix of
content and logic). Should I set the "<map:generate src=""/>" src to point
at a servlet that returns XML? This sounds like a bad idea too me though,
but it's my best idea.

        Any ideas?
          -----Oprindelig meddelelse-----
          Fra: Jeremy Aston [mailto:jeremyaston@yahoo.co.uk]
          Sendt: 8. oktober 2001 01:15
          Til: cocoon-users@xml.apache.org
          Emne: Re: Cocoon examples?


          Hi Soren,

          You may also want to check out the idiots guide at
http://www.pigbite.co.uk/ctwig/index.html

          Best regards

          Jeremy

            Søren_Neigaard <neigaard@mobilethink.dk> wrote:

            Are there any examples shipped with Cocoon2? I'm having some
trubles finding
            out how it all works, so maybe some examples where I can see
what to do, all
            the way from Java Servlets to XSL?

            Med venlig hilsen/Best regards
            Søren Neigaard
            -------------------------------
            Mobilethink A/S
            Arosgaarden
            Åboulevarden 23, 5.sal
            DK - 8000 Århus C
            Telefon: +45 86207800
            Direct: +45 86207810
            Fax: +45 86207801


            ----------------------------------------------------------------
-----
            Please check that your question has not already been answered in
the
            FAQ before posting.

            To unsubscribe, e-mail:
            For additional commands, e-mail:





----------------------------------------------------------------------
          Do You Yahoo!?
          Get your free Yahoo! address at Yahoo! Mail: UK or IE.





--------------------------------------------------------------------------
      Do You Yahoo!?
      Get your free Yahoo! address at Yahoo! Mail: UK or IE.





----------------------------------------------------------------------------
--
  Do You Yahoo!?
  Get your free Yahoo! address at Yahoo! Mail: UK or IE.


Mime
View raw message