Hmmmm...

That brings us to the culprits being either hibernate or jetty. Are you
using maven2 in eclipse as well?

On 4/11/06, Rodnei Couto <[EMAIL PROTECTED]> wrote:
>
> tapesttry 4.01 / hivemind / hibernate using jetty.
>
> i'm not using spring
>
> []'s
> Rodnei Couto
>
> Jesse Kuhnert escreveu:
> > It's not tapestry OR hivemind...Not sure who the ultimate culprit is but
> > it's obviously a classloader or someone in the classloader type of
> issue.
> >
> > I'm running with hivemind / tap / spring / hibernate using jetty. What
> are
> > you running with?
> >
> > On 4/11/06, Rodnei Couto <[EMAIL PROTECTED]> wrote:
> >
> >> If i try to inject the propertie how a application object, a had a
> >> ClassCastException when try to use the getPropertie method.
> >>
> >> Example
> >>
> >> Hivemind
> >>
> >> <module id="examples" version="1.0.0" package="com.helloworld.exampple
> ">
> >>       <contribution configuration-id="tapestry.state.ApplicationObjects
> ">
> >>       <state-object name="visit" scope="session">
> >>         <create-instance class="HelloWorldImp"/>
> >>       </state-object>
> >>     </contribution>
> >> </module>
> >>
> >> Home.page
> >>
> >> <inject property="valor" type="state" object="visit"/>
> >>
> >> Home.java
> >>
> >> public abstract HelloWorldImp getValor();
> >>
> >>
> >> when i do getValor() in Home.java, i give a ClassCastException. I think
> >> that is the same cause error to another problem.
> >>
> >> []'s
> >> Rodnei Couto
> >>
> >> James Carman escreveu:
> >>
> >>> That's fine if you're not using annotations.  That's why I asked Jesse
> >>> (since in his environment, he can probably do both).  I wanted to know
> >>>
> >> if
> >>
> >>> the annotation version of "inject" is working and not the xml
> >>>
> >> version.  I
> >>
> >>> know I've injected services into my pages via annotations.
> >>>
> >>> -----Original Message-----
> >>> From: Rodnei Couto [mailto:[EMAIL PROTECTED]
> >>> Sent: Tuesday, April 11, 2006 2:31 PM
> >>> To: Tapestry users
> >>> Subject: Re: Hivemind problem with tapestry 4
> >>>
> >>> i'm not using annotations, because i can't change my projet to java 5
> >>>
> >> yet.
> >>
> >>> I made this example in hivemind, without tapestry, and work fine.
> Didn't
> >>> work with hivemind and tapestry together.
> >>>
> >>> []'s
> >>> Rodnei Couto
> >>>
> >>> Jesse Kuhnert escreveu:
> >>>
> >>>
> >>>> Don't know yet, but I don't think it's hivemind's problem. Will know
> >>>>
> >> for
> >>
> >>>> sure in the next couple minutes.
> >>>>
> >>>> On 4/11/06, James Carman <[EMAIL PROTECTED]> wrote:
> >>>>
> >>>>
> >>>>
> >>>>> Jesse,
> >>>>>
> >>>>> Does it work using annotations?
> >>>>>
> >>>>>
> >>>>> -----Original Message-----
> >>>>> From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
> >>>>> Sent: Tuesday, April 11, 2006 2:19 PM
> >>>>> To: Tapestry users
> >>>>> Subject: Re: Hivemind problem with tapestry 4
> >>>>>
> >>>>> How lucky for you! I'm running into the same exact problem now. When
> I
> >>>>> find
> >>>>> a solution I'll let people know.
> >>>>>
> >>>>> On 4/11/06, Rodnei Couto <[EMAIL PROTECTED]> wrote:
> >>>>>
> >>>>>
> >>>>>
> >>>>>> Hi list,
> >>>>>>
> >>>>>> I'm migrating my aplication from tapestry 3 to tapestry 4. I made
> >>>>>>
> >> this
> >>
> >>>>>> hivemind helloWorld example with tapestry to learn, but this didn't
> >>>>>> work.
> >>>>>>
> >>>>>> The version of hivemind is 1.1.1.
> >>>>>>
> >>>>>> Somebody can help me?
> >>>>>>
> >>>>>> The exception is:
> >>>>>>
> >>>>>> org.apache.hivemind.ApplicationRuntimeException
> >>>>>> Error at context:/WEB-INF/Home.page, line 9, column 68: Error
> adding
> >>>>>> property valor to class tapestryTest.Pagina: The value obtained
> using
> >>>>>> locator 'service:examples.HelloWorld' (<SingletonProxy for
> >>>>>> examples.HelloWorld(com.helloworld.exampple.HelloWorld)>) is not
> >>>>>> compatible with the existing property (of type
> >>>>>> com.helloworld.exampple.HelloWorld).
> >>>>>>
> >>>>>>
> >>>>>> HelloWorld Interface:
> >>>>>>
> >>>>>> package com.helloworld.exampple;
> >>>>>> public interface HelloWorld {
> >>>>>>     public String getHelloWorld();
> >>>>>> }
> >>>>>>
> >>>>>> HelloWorldImp Class:
> >>>>>>
> >>>>>> package com.helloworld.exampple;
> >>>>>> public class HelloWorldImp implements HelloWorld {
> >>>>>>     public String getHelloWorld() {
> >>>>>>        return "Hello World";
> >>>>>>     }
> >>>>>> }
> >>>>>>
> >>>>>> hivemind.xml
> >>>>>>
> >>>>>> <?xml version="1.0"?>
> >>>>>> <module id="examples" version="1.0.0" package="
> >>>>>>
> >> com.helloworld.exampple">
> >>
> >>>>>>     <service-point id="HelloWorld">
> >>>>>>         <invoke-factory>
> >>>>>>             <construct class="HelloWorldImp"/>
> >>>>>>         </invoke-factory>
> >>>>>>     </service-point>
> >>>>>> </module>
> >>>>>>
> >>>>>> Home.page
> >>>>>>
> >>>>>> <page-specification class="tapestryTest.Pagina">
> >>>>>>     <inject property="valor" object="service:examples.HelloWorld"/>
> >>>>>> </page-specification>
> >>>>>>
> >>>>>> Home.java
> >>>>>>
> >>>>>> public abstract class Pagina extends BasePage {
> >>>>>>    public abstract HelloWorld getValor();
> >>>>>>    public String getString(){
> >>>>>>         Object valor = getValor();
> >>>>>>         return getValor().getHelloWorld();
> >>>>>>     }
> >>>>>> }
> >>>>>>
> >>>>>>
> ---------------------------------------------------------------------
> >>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>>>>> For additional commands, e-mail:
> [EMAIL PROTECTED]
> >>>>>>
> >>>>>>
> >>>>>>
> ---------------------------------------------------------------------
> >>>>>> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> >>>>>> For additional commands, e-mail:
> >>>>>>
> >> [EMAIL PROTECTED]
> >>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>> --
> >>>>> Jesse Kuhnert
> >>>>> Tacos/Tapestry, team member/developer
> >>>>>
> >>>>> Open source based consulting work centered around
> >>>>> dojo/tapestry/tacos/hivemind.  http://opennotion.com
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> ---------------------------------------------------------------------
> >>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>>>> For additional commands, e-mail:
> [EMAIL PROTECTED]
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>> --
> >>>> Jesse Kuhnert
> >>>> Tacos/Tapestry, team member/developer
> >>>>
> >>>> Open source based consulting work centered around
> >>>> dojo/tapestry/tacos/hivemind.  http://opennotion.com
> >>>>
> >>>>
> >>>>
> >>>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >
> >
> > --
> > Jesse Kuhnert
> > Tacos/Tapestry, team member/developer
> >
> > Open source based consulting work centered around
> > dojo/tapestry/tacos/hivemind.  http://opennotion.com
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Jesse Kuhnert
Tacos/Tapestry, team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.  http://opennotion.com

Reply via email to