T5components pulls in some dependencies that you might not want.  For
example, if you are not running Hibernate, you want to make sure that you
don't have tapestry-hibernate pulled in.

You may need to explicitly exclude libraries.  Also, beware of mixes of
versions being pulled in.

Jonathan

 
> -----Original Message-----
> From: János Jarecsni [mailto:[EMAIL PROTECTED]
> Sent: Monday, April 21, 2008 10:48 AM
> To: Tapestry users
> Subject: Re: example doesn't work :(
> 
> 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(Contribu
> tionDefImpl.java:107)
> >         at
> >
> org.apache.tapestry.ioc.internal.ContributionDefImpl.contribute(Contributi
> onDefImpl.java:68)
> >         at
> >
> org.apache.tapestry.ioc.internal.RegistryImpl.addToMappedConfiguration(Reg
> istryImpl.java:451)
> >         at
> >
> org.apache.tapestry.ioc.internal.RegistryImpl.getMappedConfiguration(Regis
> tryImpl.java:408)
> >         at
> >
> org.apache.tapestry.ioc.internal.ServiceResourcesImpl.getMappedConfigurati
> on(ServiceResourcesImpl.java:97)
> >         at
> >
> org.apache.tapestry.ioc.internal.AbstractServiceCreator.addMappedConfigura
> tionParameter(AbstractServiceCreator.java:154)
> >         at
> >
> org.apache.tapestry.ioc.internal.AbstractServiceCreator.getParameterDefaul
> tsWithConfiguration(AbstractServiceCreator.java:118)
> >         at
> >
> org.apache.tapestry.ioc.internal.ServiceBuilderMethodInvoker.getParameterD
> efaultsWithConfigurations(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.createOb
> ject(JustInTimeObjectCreator.java:76)
> >         at
> >
> $HibernateSessionSource_119716e94a9._delegate($HibernateSessionSource_1197
> 16e94a9.java)
> >         at
> >
> $HibernateSessionSource_119716e94a9.getConfiguration($HibernateSessionSour
> ce_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(DelegatingMethodAccessorIm
> pl.java:25)
> >         at java.lang.reflect.Method.invoke(Method.java:597)
> >         at
> >
> org.apache.tapestry.ioc.internal.ContributionDefImpl.invokeMethod(Contribu
> tionDefImpl.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(S
> ingletonServiceLifecycle.java:29)
> >         at
> >
> org.apache.tapestry.ioc.internal.LifecycleWrappedServiceCreator.createObje
> ct(LifecycleWrappedServiceCreator.java:54)
> >         at
> >
> org.apache.tapestry.ioc.internal.InterceptorStackBuilder.createObject(Inte
> rceptorStackBuilder.java:51)
> >         at
> >
> org.apache.tapestry.ioc.internal.RecursiveServiceCreationCheckWrapper.crea
> teObject(RecursiveServiceCreationCheckWrapper.java:61)
> >         at
> >
> org.apache.tapestry.ioc.internal.services.JustInTimeObjectCreator.createOb
> ject(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(AnnotationConfiguratio
> n.java:972)
> >         at
> >
> org.hibernate.cfg.AnnotationConfiguration.configure(AnnotationConfiguratio
> n.java:69)
> >         at
> > org.hibernate.cfg.Configuration.configure(Configuration.java:1420)
> >         at
> >
> org.hibernate.cfg.AnnotationConfiguration.configure(AnnotationConfiguratio
> n.java:966)
> >         at
> >
> org.hibernate.cfg.AnnotationConfiguration.configure(AnnotationConfiguratio
> n.java:69)
> >         at
> >
> org.apache.tapestry.internal.hibernate.DefaultHibernateConfigurer.configur
> e(DefaultHibernateConfigurer.java:25)
> >         at
> >
> org.apache.tapestry.internal.hibernate.HibernateSessionSourceImpl.<init>(H
> ibernateSessionSourceImpl.java:40)
> >         at
> >
> org.apache.tapestry.hibernate.HibernateModule.build(HibernateModule.java:1
> 24)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >         at
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> 39)
> >         at
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm
> pl.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.contributeHibernateSessionSo
> urce(OrderedConfiguration,
> > > > > ClassNameLocator, HibernateEntityPackageManager): No service
> > > > implements the
> > > > > interface org.apache.tapestry.ioc.services.ClassNameLocator.
> > > > >         at
> > > > >
> > > >
> org.apache.tapestry.ioc.internal.ContributionDefImpl.invokeMethod(Contribu
> tionDefImpl.java:107)
> > > > >         at
> > > > >
> > > >
> org.apache.tapestry.ioc.internal.ContributionDefImpl.contribute(Contributi
> onDefImpl.java:62)
> > > > >         at
> > > > >
> > > >
> org.apache.tapestry.ioc.internal.RegistryImpl.addToOrderedConfiguration(Re
> gistryImpl.java:501)
> > > > >         at
> > > > >
> > > >
> org.apache.tapestry.ioc.internal.RegistryImpl.getOrderedConfiguration(Regi
> stryImpl.java:367)
> > > > >         at
> > > > >
> > > >
> org.apache.tapestry.ioc.internal.ServiceResourcesImpl.getOrderedConfigurat
> ion(ServiceResourcesImpl.java:88)
> > > > >         at
> > > > >
> > > >
> org.apache.tapestry.ioc.internal.AbstractServiceCreator.addOrderedConfigur
> ationParameter(AbstractServiceCreator.java:131)
> > > > >         at
> > > > >
> > > >
> org.apache.tapestry.ioc.internal.AbstractServiceCreator.getParameterDefaul
> tsWithConfiguration(AbstractServiceCreator.java:112)
> > > > >         at
> > > > >
> > > >
> org.apache.tapestry.ioc.internal.ServiceBuilderMethodInvoker.getParameterD
> efaultsWithConfigurations(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_1197131458
> 9.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(ObjectLocator
> Impl.java:50)
> > > > >         at
> > > > >
> > > >
> org.apache.tapestry.ioc.internal.util.InternalUtils.calculateParameterValu
> e(InternalUtils.java:207)
> > > > >         at
> > > > >
> > > >
> org.apache.tapestry.ioc.internal.util.InternalUtils.calculateParameters(In
> ternalUtils.java:237)
> > > > >         at
> > > > >
> > > >
> org.apache.tapestry.ioc.internal.util.InternalUtils.calculateParametersFor
> Method(InternalUtils.java:216)
> > > > >         at
> > > > >
> > > >
> org.apache.tapestry.ioc.internal.ContributionDefImpl.invokeMethod(Contribu
> tionDefImpl.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(AbstractTex
> tField.java)
> > > > >>>
> > > > >>>>>         at
> > > > >>>>>
> > > > >>>>
> net.keso.ted.fckeditor.components.Editor.beginRender(Editor.java)
> > > > >>>>
> > > > >>>>>         at
> > > > >>>>>
> > > > >>>>>
> > > > >>>
> > > >
> org.apache.tapestry.internal.structure.ComponentPageElementImpl$11$1.run(C
> omponentPageElementImpl.java:338)
> > > > >>>
> > > > >>>>>         at
> > > > >>>>>
> > > > >>>>>
> > > > >>>
> > > >
> org.apache.tapestry.internal.structure.ComponentPageElementImpl.invoke(Com
> ponentPageElementImpl.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,biogr
> aphy">
> > > > >>>
> > > > >>>>>             <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]
> > > >
> > > >
> > >
> >


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

Reply via email to