You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by János Jarecsni <ja...@gmail.com> on 2008/04/21 14:00:05 UTC

example doesn't work :(

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>

RE: example doesn't work :(

Posted by Jonathan Barker <jo...@gmail.com>.
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:janos.jarecsni@gmail.com]
> 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 <ja...@gmail.com> 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 <ja...@gmail.com> 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 <ch...@bellsouth.net> 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 <ja...@gmail.com> wrote:
> > > > >
> > > > >> thanks for the prompt help! I'm now updating everything :)
> > > > >> have a nice day!
> > > > >>
> > > > >>
> > > > >> On 21/04/2008, Sven Homburg <ho...@googlemail.com> wrote:
> > > > >>
> > > > >>> now i am see it too ;-
> > > > >>>
> > > > >>> 2008/4/21, Chris Lewis <ch...@bellsouth.net>:
> > > > >>>
> > > > >>>
> > > > >>>> 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: users-unsubscribe@tapestry.apache.org
> > > > >>>> For additional commands, e-mail: users-help@tapestry.apache.org
> > > > >>>>
> > > > >>>>
> > > > >>>>
> > > > >>>
> > > > >>> --
> > > > >>> with regards
> > > > >>> Sven Homburg
> > > > >>> http://tapestry5-components.googlecode.com
> > > > >>>
> > > > >>>
> > > > >>
> > > >
> > > >
> > > > --
> > > >
> > > > http://thegodcode.net
> > > >
> > > >
> > > > --------------------------------------------------------------------
> -
> > > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > > For additional commands, e-mail: users-help@tapestry.apache.org
> > > >
> > > >
> > >
> >


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: example doesn't work :(

Posted by János Jarecsni <ja...@gmail.com>.
definitely not! that's why I don't see why I get these exceptions.

On 21/04/2008, Sven Homburg <ho...@googlemail.com> wrote:
>
> are you using hibernate in your application ?
>
> 2008/4/21, János Jarecsni <ja...@gmail.com>:
>
> >
> > 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 <ja...@gmail.com> 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 <ja...@gmail.com> 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 <ch...@bellsouth.net> 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 <ja...@gmail.com> wrote:
> > > > > >
> > > > > >> thanks for the prompt help! I'm now updating everything :)
> > > > > >> have a nice day!
> > > > > >>
> > > > > >>
> > > > > >> On 21/04/2008, Sven Homburg <ho...@googlemail.com> wrote:
> > > > > >>
> > > > > >>> now i am see it too ;-
> > > > > >>>
> > > > > >>> 2008/4/21, Chris Lewis <ch...@bellsouth.net>:
> > > > > >>>
> > > > > >>>
> > > > > >>>> 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: users-unsubscribe@tapestry.apache.org
> > > > > >>>> For additional commands, e-mail:
> users-help@tapestry.apache.org
> > > > > >>>>
> > > > > >>>>
> > > > > >>>>
> > > > > >>>
> > > > > >>> --
> > > > > >>> with regards
> > > > > >>> Sven Homburg
> > > > > >>> http://tapestry5-components.googlecode.com
> > > > > >>>
> > > > > >>>
> > > > > >>
> > > > >
> > > > >
> > > > > --
> > > > >
> > > > > http://thegodcode.net
> > > > >
> > > > >
> > > > >
> > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > > > For additional commands, e-mail: users-help@tapestry.apache.org
> > > > >
> > > > >
> > > >
> > >
> >
>
>
>
>
> --
>
> with regards
> Sven Homburg
> http://tapestry5-components.googlecode.com
>

Re: example doesn't work :(

Posted by Sven Homburg <ho...@googlemail.com>.
are you using hibernate in your application ?

2008/4/21, János Jarecsni <ja...@gmail.com>:
>
> 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 <ja...@gmail.com> 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 <ja...@gmail.com> 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 <ch...@bellsouth.net> 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 <ja...@gmail.com> wrote:
> > > > >
> > > > >> thanks for the prompt help! I'm now updating everything :)
> > > > >> have a nice day!
> > > > >>
> > > > >>
> > > > >> On 21/04/2008, Sven Homburg <ho...@googlemail.com> wrote:
> > > > >>
> > > > >>> now i am see it too ;-
> > > > >>>
> > > > >>> 2008/4/21, Chris Lewis <ch...@bellsouth.net>:
> > > > >>>
> > > > >>>
> > > > >>>> 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: users-unsubscribe@tapestry.apache.org
> > > > >>>> For additional commands, e-mail: users-help@tapestry.apache.org
> > > > >>>>
> > > > >>>>
> > > > >>>>
> > > > >>>
> > > > >>> --
> > > > >>> with regards
> > > > >>> Sven Homburg
> > > > >>> http://tapestry5-components.googlecode.com
> > > > >>>
> > > > >>>
> > > > >>
> > > >
> > > >
> > > > --
> > > >
> > > > http://thegodcode.net
> > > >
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > > For additional commands, e-mail: users-help@tapestry.apache.org
> > > >
> > > >
> > >
> >
>



-- 
with regards
Sven Homburg
http://tapestry5-components.googlecode.com

Re: example doesn't work :(

Posted by Chris Lewis <ch...@bellsouth.net>.
It is a module for hibernate integration, so if you don't need
hibernate, you don't need that module.

János Jarecsni wrote:
> ah, you mean I should not have added typestry-hibernate-XXX at all?
>
> On 21/04/2008, Chris Lewis <ch...@bellsouth.net> 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 <ja...@gmail.com> 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 <ja...@gmail.com> 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 <ch...@bellsouth.net> 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 <ja...@gmail.com> wrote:
>>>>>>>
>>>>>>>
>>>>>>>               
>>>>>>>> thanks for the prompt help! I'm now updating everything :)
>>>>>>>> have a nice day!
>>>>>>>>
>>>>>>>>
>>>>>>>> On 21/04/2008, Sven Homburg <ho...@googlemail.com> wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>                 
>>>>>>>>> now i am see it too ;-
>>>>>>>>>
>>>>>>>>> 2008/4/21, Chris Lewis <ch...@bellsouth.net>:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                   
>>>>>>>>>> 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: users-unsubscribe@tapestry.apache.org
>>>>>>>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                     
>>>>>>>>> --
>>>>>>>>> with regards
>>>>>>>>> Sven Homburg
>>>>>>>>> http://tapestry5-components.googlecode.com
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                   
>>>>>> --
>>>>>>
>>>>>> http://thegodcode.net
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>>>
>>>>>>
>>>>>>
>>>>>>             
>> --
>>
>> http://thegodcode.net
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>>     

-- 
http://thegodcode.net


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: example doesn't work :(

Posted by Chris Lewis <ch...@bellsouth.net>.
And unfortunately that should be expected, as it was based on an older
alpha version.

János Jarecsni wrote:
> things are ok now :) thanks guys. unfortunately the example code from the T5
> book is broken in a lot of places now. I will need more time to look into
> this. but the upgrade is ok now :)
>
> thanks again
> cu
> janos
>
> On 21/04/2008, Sven Homburg <ho...@googlemail.com> wrote:
>   
>> bingo
>>
>> 2008/4/21, János Jarecsni <ja...@gmail.com>:
>>
>>     
>>> ah, you mean I should not have added typestry-hibernate-XXX at all?
>>>
>>>
>>> On 21/04/2008, Chris Lewis <ch...@bellsouth.net> 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 <ja...@gmail.com> 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 <ja...@gmail.com> 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 <ch...@bellsouth.net> 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 <ja...@gmail.com> wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                   
>>>>>>>>>> thanks for the prompt help! I'm now updating everything :)
>>>>>>>>>> have a nice day!
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On 21/04/2008, Sven Homburg <ho...@googlemail.com> wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                     
>>>>>>>>>>> now i am see it too ;-
>>>>>>>>>>>
>>>>>>>>>>> 2008/4/21, Chris Lewis <ch...@bellsouth.net>:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>                       
>>>>>>>>>>>> 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: users-unsubscribe@tapestry.apache.org
>>>>>>>>>>>> For additional commands, e-mail:
>>>>>>>>>>>>                         
>> users-help@tapestry.apache.org
>>     
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>                         
>>>>>>>>>>> --
>>>>>>>>>>> with regards
>>>>>>>>>>> Sven Homburg
>>>>>>>>>>> http://tapestry5-components.googlecode.com
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>                       
>>>>>>>> --
>>>>>>>>
>>>>>>>> http://thegodcode.net
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>                 
>>> ---------------------------------------------------------------------
>>>       
>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>>>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>                 
>>>> --
>>>>
>>>> http://thegodcode.net
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>
>>>>
>>>>         
>>
>>
>> --
>>
>> with regards
>> Sven Homburg
>> http://tapestry5-components.googlecode.com
>>
>>     

-- 
http://thegodcode.net


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: example doesn't work :(

Posted by János Jarecsni <ja...@gmail.com>.
things are ok now :) thanks guys. unfortunately the example code from the T5
book is broken in a lot of places now. I will need more time to look into
this. but the upgrade is ok now :)

thanks again
cu
janos

On 21/04/2008, Sven Homburg <ho...@googlemail.com> wrote:
>
> bingo
>
> 2008/4/21, János Jarecsni <ja...@gmail.com>:
>
> >
> > ah, you mean I should not have added typestry-hibernate-XXX at all?
> >
> >
> > On 21/04/2008, Chris Lewis <ch...@bellsouth.net> 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 <ja...@gmail.com> 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 <ja...@gmail.com> 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 <ch...@bellsouth.net> 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 <ja...@gmail.com> wrote:
> > > >>>>>
> > > >>>>>
> > > >>>>>> thanks for the prompt help! I'm now updating everything :)
> > > >>>>>> have a nice day!
> > > >>>>>>
> > > >>>>>>
> > > >>>>>> On 21/04/2008, Sven Homburg <ho...@googlemail.com> wrote:
> > > >>>>>>
> > > >>>>>>
> > > >>>>>>> now i am see it too ;-
> > > >>>>>>>
> > > >>>>>>> 2008/4/21, Chris Lewis <ch...@bellsouth.net>:
> > > >>>>>>>
> > > >>>>>>>
> > > >>>>>>>
> > > >>>>>>>> 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: users-unsubscribe@tapestry.apache.org
> > > >>>>>>>> For additional commands, e-mail:
> users-help@tapestry.apache.org
> > > >>>>>>>>
> > > >>>>>>>>
> > > >>>>>>>>
> > > >>>>>>>>
> > > >>>>>>> --
> > > >>>>>>> with regards
> > > >>>>>>> Sven Homburg
> > > >>>>>>> http://tapestry5-components.googlecode.com
> > > >>>>>>>
> > > >>>>>>>
> > > >>>>>>>
> > > >>>> --
> > > >>>>
> > > >>>> http://thegodcode.net
> > > >>>>
> > > >>>>
> > > >>>>
> > ---------------------------------------------------------------------
> > > >>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > >>>> For additional commands, e-mail: users-help@tapestry.apache.org
> > > >>>>
> > > >>>>
> > > >>>>
> > >
> > >
> > > --
> > >
> > > http://thegodcode.net
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> > >
> > >
> >
>
>
>
>
> --
>
> with regards
> Sven Homburg
> http://tapestry5-components.googlecode.com
>

Re: example doesn't work :(

Posted by Sven Homburg <ho...@googlemail.com>.
bingo

2008/4/21, János Jarecsni <ja...@gmail.com>:
>
> ah, you mean I should not have added typestry-hibernate-XXX at all?
>
>
> On 21/04/2008, Chris Lewis <ch...@bellsouth.net> 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 <ja...@gmail.com> 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 <ja...@gmail.com> 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 <ch...@bellsouth.net> 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 <ja...@gmail.com> wrote:
> > >>>>>
> > >>>>>
> > >>>>>> thanks for the prompt help! I'm now updating everything :)
> > >>>>>> have a nice day!
> > >>>>>>
> > >>>>>>
> > >>>>>> On 21/04/2008, Sven Homburg <ho...@googlemail.com> wrote:
> > >>>>>>
> > >>>>>>
> > >>>>>>> now i am see it too ;-
> > >>>>>>>
> > >>>>>>> 2008/4/21, Chris Lewis <ch...@bellsouth.net>:
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>> 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: users-unsubscribe@tapestry.apache.org
> > >>>>>>>> For additional commands, e-mail: users-help@tapestry.apache.org
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>> --
> > >>>>>>> with regards
> > >>>>>>> Sven Homburg
> > >>>>>>> http://tapestry5-components.googlecode.com
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>> --
> > >>>>
> > >>>> http://thegodcode.net
> > >>>>
> > >>>>
> > >>>>
> ---------------------------------------------------------------------
> > >>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > >>>> For additional commands, e-mail: users-help@tapestry.apache.org
> > >>>>
> > >>>>
> > >>>>
> >
> >
> > --
> >
> > http://thegodcode.net
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>



-- 
with regards
Sven Homburg
http://tapestry5-components.googlecode.com

Re: example doesn't work :(

Posted by János Jarecsni <ja...@gmail.com>.
ah, you mean I should not have added typestry-hibernate-XXX at all?

On 21/04/2008, Chris Lewis <ch...@bellsouth.net> 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 <ja...@gmail.com> 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 <ja...@gmail.com> 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 <ch...@bellsouth.net> 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 <ja...@gmail.com> wrote:
> >>>>>
> >>>>>
> >>>>>> thanks for the prompt help! I'm now updating everything :)
> >>>>>> have a nice day!
> >>>>>>
> >>>>>>
> >>>>>> On 21/04/2008, Sven Homburg <ho...@googlemail.com> wrote:
> >>>>>>
> >>>>>>
> >>>>>>> now i am see it too ;-
> >>>>>>>
> >>>>>>> 2008/4/21, Chris Lewis <ch...@bellsouth.net>:
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>> 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: users-unsubscribe@tapestry.apache.org
> >>>>>>>> For additional commands, e-mail: users-help@tapestry.apache.org
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>> --
> >>>>>>> with regards
> >>>>>>> Sven Homburg
> >>>>>>> http://tapestry5-components.googlecode.com
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>> --
> >>>>
> >>>> http://thegodcode.net
> >>>>
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >>>> For additional commands, e-mail: users-help@tapestry.apache.org
> >>>>
> >>>>
> >>>>
>
>
> --
>
> http://thegodcode.net
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: example doesn't work :(

Posted by Chris Lewis <ch...@bellsouth.net>.
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 <ja...@gmail.com> 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 <ja...@gmail.com> 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 <ch...@bellsouth.net> 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 <ja...@gmail.com> wrote:
>>>>>
>>>>>           
>>>>>> thanks for the prompt help! I'm now updating everything :)
>>>>>> have a nice day!
>>>>>>
>>>>>>
>>>>>> On 21/04/2008, Sven Homburg <ho...@googlemail.com> wrote:
>>>>>>
>>>>>>             
>>>>>>> now i am see it too ;-
>>>>>>>
>>>>>>> 2008/4/21, Chris Lewis <ch...@bellsouth.net>:
>>>>>>>
>>>>>>>
>>>>>>>               
>>>>>>>> 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: users-unsubscribe@tapestry.apache.org
>>>>>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>                 
>>>>>>> --
>>>>>>> with regards
>>>>>>> Sven Homburg
>>>>>>> http://tapestry5-components.googlecode.com
>>>>>>>
>>>>>>>
>>>>>>>               
>>>> --
>>>>
>>>> http://thegodcode.net
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>
>>>>
>>>>         

-- 
http://thegodcode.net


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: example doesn't work :(

Posted by János Jarecsni <ja...@gmail.com>.
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 <ja...@gmail.com> 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 <ja...@gmail.com> 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 <ch...@bellsouth.net> 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 <ja...@gmail.com> wrote:
> > > >
> > > >> thanks for the prompt help! I'm now updating everything :)
> > > >> have a nice day!
> > > >>
> > > >>
> > > >> On 21/04/2008, Sven Homburg <ho...@googlemail.com> wrote:
> > > >>
> > > >>> now i am see it too ;-
> > > >>>
> > > >>> 2008/4/21, Chris Lewis <ch...@bellsouth.net>:
> > > >>>
> > > >>>
> > > >>>> 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: users-unsubscribe@tapestry.apache.org
> > > >>>> For additional commands, e-mail: users-help@tapestry.apache.org
> > > >>>>
> > > >>>>
> > > >>>>
> > > >>>
> > > >>> --
> > > >>> with regards
> > > >>> Sven Homburg
> > > >>> http://tapestry5-components.googlecode.com
> > > >>>
> > > >>>
> > > >>
> > >
> > >
> > > --
> > >
> > > http://thegodcode.net
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> > >
> > >
> >
>

Re: example doesn't work :(

Posted by János Jarecsni <ja...@gmail.com>.
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 <ja...@gmail.com> 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 <ch...@bellsouth.net> 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 <ja...@gmail.com> wrote:
> > >
> > >> thanks for the prompt help! I'm now updating everything :)
> > >> have a nice day!
> > >>
> > >>
> > >> On 21/04/2008, Sven Homburg <ho...@googlemail.com> wrote:
> > >>
> > >>> now i am see it too ;-
> > >>>
> > >>> 2008/4/21, Chris Lewis <ch...@bellsouth.net>:
> > >>>
> > >>>
> > >>>> 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: users-unsubscribe@tapestry.apache.org
> > >>>> For additional commands, e-mail: users-help@tapestry.apache.org
> > >>>>
> > >>>>
> > >>>>
> > >>>
> > >>> --
> > >>> with regards
> > >>> Sven Homburg
> > >>> http://tapestry5-components.googlecode.com
> > >>>
> > >>>
> > >>
> >
> >
> > --
> >
> > http://thegodcode.net
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>

Re: example doesn't work :(

Posted by János Jarecsni <ja...@gmail.com>.
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 <ch...@bellsouth.net> 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 <ja...@gmail.com> wrote:
> >
> >> thanks for the prompt help! I'm now updating everything :)
> >> have a nice day!
> >>
> >>
> >> On 21/04/2008, Sven Homburg <ho...@googlemail.com> wrote:
> >>
> >>> now i am see it too ;-
> >>>
> >>> 2008/4/21, Chris Lewis <ch...@bellsouth.net>:
> >>>
> >>>
> >>>> 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: users-unsubscribe@tapestry.apache.org
> >>>> For additional commands, e-mail: users-help@tapestry.apache.org
> >>>>
> >>>>
> >>>>
> >>>
> >>> --
> >>> with regards
> >>> Sven Homburg
> >>> http://tapestry5-components.googlecode.com
> >>>
> >>>
> >>
>
>
> --
>
> http://thegodcode.net
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: example doesn't work :(

Posted by Chris Lewis <ch...@bellsouth.net>.
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 <ja...@gmail.com> wrote:
>   
>> thanks for the prompt help! I'm now updating everything :)
>> have a nice day!
>>
>>
>> On 21/04/2008, Sven Homburg <ho...@googlemail.com> wrote:
>>     
>>> now i am see it too ;-
>>>
>>> 2008/4/21, Chris Lewis <ch...@bellsouth.net>:
>>>
>>>       
>>>> 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: users-unsubscribe@tapestry.apache.org
>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>
>>>>
>>>>         
>>>
>>> --
>>> with regards
>>> Sven Homburg
>>> http://tapestry5-components.googlecode.com
>>>
>>>       
>>     

-- 
http://thegodcode.net


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: example doesn't work :(

Posted by János Jarecsni <ja...@gmail.com>.
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 <ja...@gmail.com> wrote:
>
> thanks for the prompt help! I'm now updating everything :)
> have a nice day!
>
>
> On 21/04/2008, Sven Homburg <ho...@googlemail.com> wrote:
> >
> > now i am see it too ;-
> >
> > 2008/4/21, Chris Lewis <ch...@bellsouth.net>:
> >
> > >
> > > 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: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> > >
> > >
> >
> >
> >
> > --
> > with regards
> > Sven Homburg
> > http://tapestry5-components.googlecode.com
> >
>
>

Re: example doesn't work :(

Posted by János Jarecsni <ja...@gmail.com>.
thanks for the prompt help! I'm now updating everything :)
have a nice day!


On 21/04/2008, Sven Homburg <ho...@googlemail.com> wrote:
>
> now i am see it too ;-
>
> 2008/4/21, Chris Lewis <ch...@bellsouth.net>:
>
> >
> > 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: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
>
> --
> with regards
> Sven Homburg
> http://tapestry5-components.googlecode.com
>

Re: example doesn't work :(

Posted by Sven Homburg <ho...@googlemail.com>.
now i am see it too ;-

2008/4/21, Chris Lewis <ch...@bellsouth.net>:
>
> 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: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
with regards
Sven Homburg
http://tapestry5-components.googlecode.com

Re: example doesn't work :(

Posted by Chris Lewis <ch...@bellsouth.net>.
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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: example doesn't work :(

Posted by Sven Homburg <ho...@googlemail.com>.
lastes tapestry is 5..0.11
lastest fckeditor is 2.6

have a look here
http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/components/Editor.html
and here http://87.193.218.134:8080/t5c-demo/editorpage

2008/4/21, János Jarecsni <ja...@gmail.com>:
>
> 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>
>



-- 
with regards
Sven Homburg
http://tapestry5-components.googlecode.com