ah, you mean I should not have added typestry-hibernate-XXX at all?

On 21/04/2008, Chris Lewis <[EMAIL PROTECTED]> wrote:
>
> Of course you don't need hibernate. I suggested that you upgrade the
> hibernate module because one of the exceptions you shared was caused by
> it, so I assumed you had added it out of need. If you don't, remove the
> dependency, otherwise please spend some time figuring out your
> configuration. None of your issues are problems in tapestry.
>
>
> János Jarecsni wrote:
> > can I just pass some fake hibernate.cfg.xml or T5 now requires some
> database
> > resources to work? I mean do I have to create a valid hibernate config
> just
> > to run T5?
> >
> > thx
> > janos
> >
> > On 21/04/2008, János Jarecsni <[EMAIL PROTECTED]> wrote:
> >
> >> I updated everything, now I get this exception:
> >>
> >> some hibernate.cfg.xml is not found this time ... I think I'm close to
> the
> >> solution :)
> >>
> >> thanks again
> >> Janos
> >>
> >> Caused by: java.lang.RuntimeException: Error invoking service
> contribution
> >> method
> >>
> org.apache.tapestry.hibernate.HibernateModule.contributeValueEncoderSource(MappedConfiguration,
> >> HibernateSessionSource, Session, TypeCoercer): Exception constructing
> >> service 'HibernateSessionSource': Error invoking service builder method
> >> org.apache.tapestry.hibernate.HibernateModule.build(Logger, List,
> >> RegistryShutdownHub) (at HibernateModule.java:124) (for service
> >> 'HibernateSessionSource'): /hibernate.cfg.xml not found
> >>         at
> >>
> org.apache.tapestry.ioc.internal.ContributionDefImpl.invokeMethod(ContributionDefImpl.java:107)
> >>         at
> >>
> org.apache.tapestry.ioc.internal.ContributionDefImpl.contribute(ContributionDefImpl.java:68)
> >>         at
> >>
> org.apache.tapestry.ioc.internal.RegistryImpl.addToMappedConfiguration(RegistryImpl.java:451)
> >>         at
> >>
> org.apache.tapestry.ioc.internal.RegistryImpl.getMappedConfiguration(RegistryImpl.java:408)
> >>         at
> >>
> org.apache.tapestry.ioc.internal.ServiceResourcesImpl.getMappedConfiguration(ServiceResourcesImpl.java:97)
> >>         at
> >>
> org.apache.tapestry.ioc.internal.AbstractServiceCreator.addMappedConfigurationParameter(AbstractServiceCreator.java:154)
> >>         at
> >>
> org.apache.tapestry.ioc.internal.AbstractServiceCreator.getParameterDefaultsWithConfiguration(AbstractServiceCreator.java:118)
> >>         at
> >>
> org.apache.tapestry.ioc.internal.ServiceBuilderMethodInvoker.getParameterDefaultsWithConfigurations(ServiceBuilderMethodInvoker.java:47)
> >>         at
> >>
> org.apache.tapestry.ioc.internal.ServiceBuilderMethodInvoker.createObject(ServiceBuilderMethodInvoker.java:68)
> >>         ... 97 more
> >> Caused by: java.lang.RuntimeException: Exception constructing service
> >> 'HibernateSessionSource': Error invoking service builder method
> >> org.apache.tapestry.hibernate.HibernateModule.build(Logger, List,
> >> RegistryShutdownHub) (at HibernateModule.java:124) (for service
> >> 'HibernateSessionSource'): /hibernate.cfg.xml not found
> >>         at
> >>
> org.apache.tapestry.ioc.internal.services.JustInTimeObjectCreator.createObject(JustInTimeObjectCreator.java:76)
> >>         at
> >>
> $HibernateSessionSource_119716e94a9._delegate($HibernateSessionSource_119716e94a9.java)
> >>         at
> >>
> $HibernateSessionSource_119716e94a9.getConfiguration($HibernateSessionSource_119716e94a9.java)
> >>         at
> >>
> org.apache.tapestry.hibernate.HibernateModule.contributeValueEncoderSource(HibernateModule.java:154)
> >>         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:597)
> >>         at
> >>
> org.apache.tapestry.ioc.internal.ContributionDefImpl.invokeMethod(ContributionDefImpl.java:95)
> >>         ... 105 more
> >> Caused by: java.lang.RuntimeException: Error invoking service builder
> >> method org.apache.tapestry.hibernate.HibernateModule.build(Logger,
> List,
> >> RegistryShutdownHub) (at HibernateModule.java:124) (for service
> >> 'HibernateSessionSource'): /hibernate.cfg.xml not found
> >>         at
> >>
> org.apache.tapestry.ioc.internal.ServiceBuilderMethodInvoker.createObject(ServiceBuilderMethodInvoker.java:88)
> >>         at
> >>
> org.apache.tapestry.ioc.internal.SingletonServiceLifecycle.createService(SingletonServiceLifecycle.java:29)
> >>         at
> >>
> org.apache.tapestry.ioc.internal.LifecycleWrappedServiceCreator.createObject(LifecycleWrappedServiceCreator.java:54)
> >>         at
> >>
> org.apache.tapestry.ioc.internal.InterceptorStackBuilder.createObject(InterceptorStackBuilder.java:51)
> >>         at
> >>
> org.apache.tapestry.ioc.internal.RecursiveServiceCreationCheckWrapper.createObject(RecursiveServiceCreationCheckWrapper.java:61)
> >>         at
> >>
> org.apache.tapestry.ioc.internal.services.JustInTimeObjectCreator.createObject(JustInTimeObjectCreator.java:66)
> >>         ... 113 more
> >> Caused by: org.hibernate.HibernateException: /hibernate.cfg.xml not
> found
> >>         at
> >>
> org.hibernate.util.ConfigHelper.getResourceAsStream(ConfigHelper.java:147)
> >>         at
> >>
> org.hibernate.cfg.Configuration.getConfigurationInputStream(Configuration.java:1411)
> >>         at
> >> org.hibernate.cfg.Configuration.configure(Configuration.java:1433)
> >>         at
> >>
> org.hibernate.cfg.AnnotationConfiguration.configure(AnnotationConfiguration.java:972)
> >>         at
> >>
> org.hibernate.cfg.AnnotationConfiguration.configure(AnnotationConfiguration.java:69)
> >>         at
> >> org.hibernate.cfg.Configuration.configure(Configuration.java:1420)
> >>         at
> >>
> org.hibernate.cfg.AnnotationConfiguration.configure(AnnotationConfiguration.java:966)
> >>         at
> >>
> org.hibernate.cfg.AnnotationConfiguration.configure(AnnotationConfiguration.java:69)
> >>         at
> >>
> org.apache.tapestry.internal.hibernate.DefaultHibernateConfigurer.configure(DefaultHibernateConfigurer.java:25)
> >>         at
> >>
> org.apache.tapestry.internal.hibernate.HibernateSessionSourceImpl.<init>(HibernateSessionSourceImpl.java:40)
> >>         at
> >>
> org.apache.tapestry.hibernate.HibernateModule.build(HibernateModule.java:124)
> >>         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:597)
> >>         at
> >>
> org.apache.tapestry.ioc.internal.ServiceBuilderMethodInvoker.createObject(ServiceBuilderMethodInvoker.java:76)
> >>         ... 118 more
> >>
> >>
> >> On 21/04/2008, János Jarecsni <[EMAIL PROTECTED]> wrote:
> >>
> >>> hm :( that yes, but now I examined the .WAR file, and saw that the old
> >>> versions for the other JARs are there. sh..it :) thanks, I will give
> it
> >>> another, more precise shot :P
> >>>
> >>> thanks!!!!
> >>> janos
> >>>
> >>> On 21/04/2008, Chris Lewis <[EMAIL PROTECTED]> wrote:
> >>>
> >>>> did you update everything, including tapestry-hibernate?
> >>>>
> >>>>
> >>>> János Jarecsni wrote:
> >>>>
> >>>>> I upgraded to 5.0.11, but nothing works now :) I saw some complains
> >>>>>
> >>>> that
> >>>>
> >>>>> Hibernate is missing, added Hibernate jars, then now I see some IOC
> >>>>>
> >>>> problems
> >>>>
> >>>>> like this:
> >>>>>
> >>>>> Caused by: java.lang.RuntimeException: Error invoking service
> >>>>>
> >>>> contribution
> >>>>
> >>>>> method
> >>>>>
> >>>>>
> >>>>
> org.apache.tapestry.hibernate.HibernateModule.contributeHibernateSessionSource(OrderedConfiguration,
> >>>>
> >>>>> ClassNameLocator, HibernateEntityPackageManager): No service
> >>>>>
> >>>> implements the
> >>>>
> >>>>> interface org.apache.tapestry.ioc.services.ClassNameLocator.
> >>>>>         at
> >>>>>
> >>>>>
> >>>>
> org.apache.tapestry.ioc.internal.ContributionDefImpl.invokeMethod(ContributionDefImpl.java:107)
> >>>>
> >>>>>         at
> >>>>>
> >>>>>
> >>>>
> org.apache.tapestry.ioc.internal.ContributionDefImpl.contribute(ContributionDefImpl.java:62)
> >>>>
> >>>>>         at
> >>>>>
> >>>>>
> >>>>
> org.apache.tapestry.ioc.internal.RegistryImpl.addToOrderedConfiguration(RegistryImpl.java:501)
> >>>>
> >>>>>         at
> >>>>>
> >>>>>
> >>>>
> org.apache.tapestry.ioc.internal.RegistryImpl.getOrderedConfiguration(RegistryImpl.java:367)
> >>>>
> >>>>>         at
> >>>>>
> >>>>>
> >>>>
> org.apache.tapestry.ioc.internal.ServiceResourcesImpl.getOrderedConfiguration(ServiceResourcesImpl.java:88)
> >>>>
> >>>>>         at
> >>>>>
> >>>>>
> >>>>
> org.apache.tapestry.ioc.internal.AbstractServiceCreator.addOrderedConfigurationParameter(AbstractServiceCreator.java:131)
> >>>>
> >>>>>         at
> >>>>>
> >>>>>
> >>>>
> org.apache.tapestry.ioc.internal.AbstractServiceCreator.getParameterDefaultsWithConfiguration(AbstractServiceCreator.java:112)
> >>>>
> >>>>>         at
> >>>>>
> >>>>>
> >>>>
> org.apache.tapestry.ioc.internal.ServiceBuilderMethodInvoker.getParameterDefaultsWithConfigurations(ServiceBuilderMethodInvoker.java:47)
> >>>>
> >>>>>         at
> >>>>>
> >>>>>
> >>>>
> org.apache.tapestry.ioc.internal.ServiceBuilderMethodInvoker.createObject(ServiceBuilderMethodInvoker.java:68)
> >>>>
> >>>>>         ... 116 more
> >>>>> Caused by: java.lang.RuntimeException: No service implements the
> >>>>>
> >>>> interface
> >>>>
> >>>>> org.apache.tapestry.ioc.services.ClassNameLocator.
> >>>>>         at
> >>>>>
> >>>>>
> >>>>
> org.apache.tapestry.ioc.internal.RegistryImpl.getService(RegistryImpl.java:517)
> >>>>
> >>>>>         at
> >>>>>
> >>>>>
> >>>>
> org.apache.tapestry.ioc.internal.services.MasterObjectProviderImpl.provide(MasterObjectProviderImpl.java:46)
> >>>>
> >>>>>         at
> >>>>>
> >>>>>
> >>>>
> $MasterObjectProvider_11971314589.provide($MasterObjectProvider_11971314589.java)
> >>>>
> >>>>>         at
> >>>>>
> >>>>>
> >>>>
> org.apache.tapestry.ioc.internal.RegistryImpl.getObject(RegistryImpl.java:621)
> >>>>
> >>>>>         at
> >>>>>
> >>>>>
> >>>>
> org.apache.tapestry.ioc.internal.RegistryImpl.getObject(RegistryImpl.java:675)
> >>>>
> >>>>>         at
> >>>>>
> >>>>>
> >>>>
> org.apache.tapestry.ioc.internal.ObjectLocatorImpl.getObject(ObjectLocatorImpl.java:50)
> >>>>
> >>>>>         at
> >>>>>
> >>>>>
> >>>>
> org.apache.tapestry.ioc.internal.util.InternalUtils.calculateParameterValue(InternalUtils.java:207)
> >>>>
> >>>>>         at
> >>>>>
> >>>>>
> >>>>
> org.apache.tapestry.ioc.internal.util.InternalUtils.calculateParameters(InternalUtils.java:237)
> >>>>
> >>>>>         at
> >>>>>
> >>>>>
> >>>>
> org.apache.tapestry.ioc.internal.util.InternalUtils.calculateParametersForMethod(InternalUtils.java:216)
> >>>>
> >>>>>         at
> >>>>>
> >>>>>
> >>>>
> org.apache.tapestry.ioc.internal.ContributionDefImpl.invokeMethod(ContributionDefImpl.java:90)
> >>>>
> >>>>>         ... 124 more
> >>>>>
> >>>>> could someone point me to some description what and how to configure
> >>>>>
> >>>> for
> >>>>
> >>>>> upgrading 5.0.10 to 5.0.11?
> >>>>>
> >>>>> thanks in advance
> >>>>> Janos
> >>>>>
> >>>>> On 21/04/2008, János Jarecsni <[EMAIL PROTECTED]> wrote:
> >>>>>
> >>>>>
> >>>>>> thanks for the prompt help! I'm now updating everything :)
> >>>>>> have a nice day!
> >>>>>>
> >>>>>>
> >>>>>> On 21/04/2008, Sven Homburg <[EMAIL PROTECTED]> wrote:
> >>>>>>
> >>>>>>
> >>>>>>> now i am see it too ;-
> >>>>>>>
> >>>>>>> 2008/4/21, Chris Lewis <[EMAIL PROTECTED]>:
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>> Hi,
> >>>>>>>>
> >>>>>>>> From the package in the stack trace it looks like you're using
> >>>>>>>>
> >>>> the old
> >>>>
> >>>>>>>> version of that component. It has since been merged into the
> >>>>>>>> http://code.google.com/p/tapestry5-components/, so try that.
> >>>>>>>>
> >>>> Also, the
> >>>>
> >>>>>>>> latest T5 release is 5.0.11.
> >>>>>>>>
> >>>>>>>> chris
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> János Jarecsni wrote:
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>> Hi,
> >>>>>>>>>
> >>>>>>>>> the fckeditor component doesn't work in my environment. For the
> >>>>>>>>>
> >>>> page
> >>>>
> >>>>>>>> below I
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>> get an error message:
> >>>>>>>>>
> >>>>>>>>> An unexpected application exception has occurred.
> >>>>>>>>>
> >>>>>>>>> Render queue error in BeginRender[AddCelebrity:biography]:
> >>>>>>>>> org.apache.tapestry.ioc.internal.util.TapestryException
> >>>>>>>>>
> >>>>>>>>> And in the tomcat log I find this:
> >>>>>>>>>
> >>>>>>>>> Caused by: java.lang.NullPointerException
> >>>>>>>>>         at
> >>>>>>>>>
> >>>>>>>>>
> >>>> net.keso.ted.fckeditor.components.Editor.getScript(Editor.java:53)
> >>>>
> >>>>>>>>>         at
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>
> net.keso.ted.fckeditor.components.Editor.writeFieldTag(Editor.java:85)
> >>>>
> >>>>>>>>>         at
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>
> org.apache.tapestry.corelib.base.AbstractTextField.begin(AbstractTextField.java:152)
> >>>>
> >>>>>>>>>         at
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>
> org.apache.tapestry.corelib.base.AbstractTextField.beginRender(AbstractTextField.java)
> >>>>
> >>>>>>>>>         at
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>> net.keso.ted.fckeditor.components.Editor.beginRender(Editor.java)
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>>         at
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>
> org.apache.tapestry.internal.structure.ComponentPageElementImpl$11$1.run(ComponentPageElementImpl.java:338)
> >>>>
> >>>>>>>>>         at
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>
> org.apache.tapestry.internal.structure.ComponentPageElementImpl.invoke(ComponentPageElementImpl.java:880)
> >>>>
> >>>>>>>>> I have T5 5.0.10 (latest I think) and fckeditor 1.0.2. With a
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>> literal:
> >>>>>>>
> >>>>>>>
> >>>>>>>> value
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>> it works fine, and sometimes also with the property. I could not
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>> find
> >>>>>>>
> >>>>>>>
> >>>>>>>> out a
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>> pattern when it is ok, and when not :)
> >>>>>>>>>
> >>>>>>>>> Any ideas?
> >>>>>>>>> thx
> >>>>>>>>>
> >>>>>>>>> Janos
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>> <html xmlns:t="
> >>>>>>>>>
> >>>> http://tapestry.apache.org/schema/tapestry_5_0_0.xsd
> >>>>
> >>>>>>> ">
> >>>>>>>
> >>>>>>>
> >>>>>>>>>     <head>
> >>>>>>>>>         <title>Celebrity Collector: Adding New Celebrity</title>
> >>>>>>>>>         <link rel="stylesheet" href="${styles}"
> >>>>>>>>>
> >>>> type="text/css"/>
> >>>>
> >>>>>>>>>     </head>
> >>>>>>>>>     <body>
> >>>>>>>>>         <h1>Adding New Celebrity</h1>
> >>>>>>>>>
> >>>>>>>>>         <t:beaneditform t:id="celebrity" t:submitLabel="Save"
> >>>>>>>>>             remove="id"
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>
> reorder="firstName,lastName,dateOfBirth,birthDateVerified,occupation,biography">
> >>>>
> >>>>>>>>>             <t:parameter name="biography">
> >>>>>>>>>             <table cellpadding="0" cellspacing="0"><tr>
> >>>>>>>>>                 <td><t:fckeditor.editor t:id="biography"
> >>>>>>>>> t:value="celebrity.biography"
> >>>>>>>>>                     t:toolbarSet="Medium" t:width="350"
> >>>>>>>>> t:height="200"/></td></tr>
> >>>>>>>>>             </table>
> >>>>>>>>>               </t:parameter>
> >>>>>>>>>         </t:beaneditform>
> >>>>>>>>>     </body>
> >>>>>>>>> </html>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>> --
> >>>>>>>> http://thegodcode.net
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>> ---------------------------------------------------------------------
> >>>>
> >>>>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>>>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>> --
> >>>>>>> with regards
> >>>>>>> Sven Homburg
> >>>>>>> http://tapestry5-components.googlecode.com
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>> --
> >>>>
> >>>> http://thegodcode.net
> >>>>
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>>
> >>>>
> >>>>
>
>
> --
>
> http://thegodcode.net
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to