cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Heiner Braun privat <h.h.br...@onlinehome.de>
Subject trying to test the latest woody hibernate flowscript example
Date Mon, 10 Nov 2003 21:04:43 GMT


Hugo Burm wrote:

>On Sunday 09 November 2003 02:50 pm, you wrote:
>  
>
>>I got your xmlform-example running with cocoon-2.1rc1-dev.
>>But I have problems with your woody example. I tried it now with
>>cocoon-2.1rc3-dev.
>>But when I start cocoon I get the error :
>>For element list  the attribute role and the attribute name are missing
>>although role is no list attribute  and name is given.
>>Best regards
>>Heiner
>>    
>>
>
>
>I uploaded a new verzion (zip archive) to the Wiki page around 15.30h today 
>(sunday). So if your clock is displaying the correct time,  I guess you are 
>using the old version. Try the newest one.
>The problem you detected arises from a wrong DTD in the header of the 
>Hibernate xmb configuration file.
>Should be -2.0
>
>Regards
>
>Hugo
>
>
>  
>
I installed the latest version of cocoon 2.1 from the cvs and your latest hibernatewoody-example.

When I start cocoon I get the following protocoll :
./cocoon.sh: using ./build/webapp as the webapp directory
-------------------- Loading --------------------
Processing repository: ./tools/jetty/lib
Adding jar: ./tools/jetty/lib/jetty-4.2.9.jar
Adding jar: ./tools/jetty/lib/servlet-2.3.jar
Processing repository: ./lib/endorsed
Adding jar: ./lib/endorsed/xalan-2.5.2.jar
Adding jar: ./lib/endorsed/xercesImpl-2.5.0.jar
Adding jar: ./lib/endorsed/xml-apis.jar
-------------------- Executing -----------------
Main Class: org.mortbay.jetty.Server
01:06:31.771 EVENT  Starting Jetty/4.2.9
01:06:34.561 EVENT  Started WebApplicationContext[/,./build/webapp]
Hibernate factory instance created
Hibernate service called
Hibernate configure called
11.11.2003 01:06:41 net.sf.hibernate.cfg.Environment <clinit>
INFO: Hibernate 2.1 beta 5
11.11.2003 01:06:41 net.sf.hibernate.cfg.Environment <clinit>
INFO: loaded properties from resource hibernate.properties: 
{hibernate.connection.username=makler, 
hibernate.connection.password=Braun, 
hibernate.cglib.use_reflection_optimizer=true, 
hibernate.dialect=net.sf.hibernate.dialect.MySQLDialect, 
hibernate.connection.url=jdbc:mysql://localhost:3306/test, 
hibernate.connection.driver_class=com.mysql.jdbc.Driver}
11.11.2003 01:06:41 net.sf.hibernate.cfg.Environment <clinit>
INFO: using CGLIB reflection optimizer
11.11.2003 01:06:41 net.sf.hibernate.cfg.Configuration addClass
INFO: Mapping resource: org/apache/cocoon/woody/samples/Form2Bean.hbm.xml
11.11.2003 01:06:43 net.sf.hibernate.cfg.Binder bindRootClass
INFO: Mapping class: org.apache.cocoon.woody.samples.Form2Bean -> form2bean
Exception in thread "main" java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at Loader.invokeMain(Unknown Source)
        at Loader.run(Unknown Source)
        at Loader.main(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: 
org/apache/cocoon/woody/datatype/Enum
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
        at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
        at org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:225)
        at org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:198)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:1647)
        at java.lang.Class.getDeclaredMethods(Class.java:1131)
        at 
net.sf.hibernate.property.BasicPropertyAccessor.getterMethod(BasicPropertyAccessor.java:215)
        at 
net.sf.hibernate.property.BasicPropertyAccessor.getGetterOrNull(BasicPropertyAccessor.java:195)
        at 
net.sf.hibernate.property.BasicPropertyAccessor.getGetter(BasicPropertyAccessor.java:185)
        at 
net.sf.hibernate.util.ReflectHelper.reflectedPropertyType(ReflectHelper.java:57)
        at net.sf.hibernate.mapping.Value.setTypeByReflection(Value.java:92)
        at net.sf.hibernate.cfg.Binder.createProperty(Binder.java:953)
        at net.sf.hibernate.cfg.Binder.propertiesFromXML(Binder.java:946)
        at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:313)
        at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1143)
        at net.sf.hibernate.cfg.Configuration.add(Configuration.java:243)
        at 
net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:266)
        at 
net.sf.hibernate.cfg.Configuration.addClass(Configuration.java:307)
        at 
org.apache.cocoon.woody.samples.HibernateFactory.initialize(HibernateFactory.java:80)
        at 
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282)
        at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:310)
        at 
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:143)
        at 
org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:556)
        at 
org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:547)
        at 
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282)
        at org.apache.cocoon.Cocoon.initialize(Cocoon.java:340)
        at 
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282)
        at 
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1369)
        at 
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:515)
        at 
org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:219)
        at 
org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.java:436)
        at 
org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:150)
        at 
org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.java:442)
        at org.mortbay.http.HttpServer.start(HttpServer.java:647)
        at org.mortbay.jetty.Server.main(Server.java:429)
        ... 7 more


Mime
View raw message