Thanks, Matt. I changed the Pentaho HibernateUtil class file to use
annotations. However, I am getting a ClassNotFoundException though the class
is present in the library in WEB-INF/lib. I installed the library in the
local maven repository and then did a mvn -e compile and mvn -e
jetty:run-war. Here is where the library is and the runtime error I get.
Thanks for any insights into this matter.
$ find . -name pentaho-repository\*.jar
./target/aclproject-1.0-SNAPSHOT/WEB-INF/lib/pentaho-repository-1.5.3.jar
./target/work/webapp/WEB-INF/lib/pentaho-repository-1.5.3.jar
/cygdrive/c/work/aclproject
$ jar tvf
./target/aclproject-1.0-SNAPSHOT/WEB-INF/lib/pentaho-repository-1.5.3
.jar | grep SubscriptionHibernateHandler
1471 Mon Apr 23 01:28:24 EDT 2007
com/pentaho/repository/subscribe/Subscriptio
nHibernateHandler.class
aclproject] ERROR [btpool0-2] Logger.error(195) |
misc-org.pentaho.core.system.PentahoSystem: PentahoSystem.ERROR_0021 - Could
not detemine implementor for IAclVoter
[aclproject] ERROR [btpool0-2] Logger.fatal(239) | Error: Pentaho 1.5.3
build 658 0
[aclproject] FATAL [btpool0-2] Logger.fatal(240) |
misc-org.pentaho.core.system.PentahoSystem: PentahoSystem.ERROR_0013 - Could
not create object
com.pentaho.repository.subscribe.SubscriptionHibernateHandler
java.lang.ClassNotFoundException:
com.pentaho.repository.subscribe.SubscriptionHibernateHandler
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at
org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)
at
org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
at
org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
at
org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at
org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:358)
at
org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:320)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at
org.pentaho.core.system.PentahoSystem.createObject(PentahoSystem.java:1191)
at
org.pentaho.core.system.PentahoSystem.createObject(PentahoSystem.java:1215)
at
org.pentaho.repository.HibernateUtil.setupConfigurationHandlers(HibernateUtil.java:166)
at
org.pentaho.repository.HibernateUtil.initialize(HibernateUtil.java:125)
at org.pentaho.repository.HibernateUtil.<clinit>(HibernateUtil.java:83)
mraible wrote:
>
> It looks like Pentaho has it's own sessionFactory for Hibernate - and
> it doesn't support annotations.
>
> Matt
>
> On 4/26/07, nmall <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> I would like to integrate Pentaho standalone with the struts webapp
>> provided by appfuse basic struts, here is the error I am getting while
>> initializing. Any suggestions on how to deal with this. Thanks for any
>> help!! I am sure this would be helpful for lots of people out there if it
>> is
>> done right.
>>
>> org.hibernate.MappingException: An AnnotationConfiguration instance is
>> required to use <mapping class="org.appfuse.model.User"/>
>> at
>> org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1597)
>> at
>> org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1552)
>> at
>> org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1531)
>> at
>> org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1505)
>> at
>> org.hibernate.cfg.Configuration.configure(Configuration.java:1425)
>> at
>> org.hibernate.cfg.Configuration.configure(Configuration.java:1411)
>> at
>> org.pentaho.repository.HibernateUtil.initialize(HibernateUtil.java:117)
>> at
>> org.pentaho.repository.HibernateUtil.<clinit>(HibernateUtil.java:83)
>> at
>> com.pentaho.repository.subscribe.SubscriptionRepository.<init>(SubscriptionRepository.java:64)
>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>> Method)
>> at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>> at
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>> at
>> java.lang.reflect.Constructor.newInstance(Constructor.java:494)
>> at java.lang.Class.newInstance0(Class.java:350)
>> at java.lang.Class.newInstance(Class.java:303)
>> at
>> org.pentaho.core.system.PentahoSystem.createObject(PentahoSystem.java:1192)
>> at
>> org.pentaho.core.system.PentahoSystem.createObject(PentahoSystem.java:1215)
>> at
>> org.pentaho.core.system.PentahoSystem.loadStartupObject(PentahoSystem.java:608)
>> at
>> org.pentaho.core.system.PentahoSystem.loadStartupObject(PentahoSystem.java:563)
>> at
>> org.pentaho.core.system.PentahoSystem.initGlobalObjects(PentahoSystem.java:732)
>> at
>> org.pentaho.core.system.GlobalObjectInitializer.startup(GlobalObjectInitializer.java:33)
>> at
>> org.pentaho.core.system.PentahoSystem.createSystemListeners(PentahoSystem.java:390)
>> at
>> org.pentaho.core.system.PentahoSystem.init(PentahoSystem.java:323)
>> at
>> org.pentaho.core.system.PentahoSystem.init(PentahoSystem.java:215)
>> at org.appfuse.webapp.action.Init.initialize(Init.java:35)
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Hibernate-error-tf3655652s2369.html#a10212953
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> http://raibledesigns.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/Hibernate-error-tf3655652s2369.html#a10222426
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]