On 1/2/08, jackalista <[EMAIL PROTECTED]> wrote:
>
> I've been pushing this along in background but am having another problem with
> this tutorial.  I got the problem below fixed but then hit a problem
> because of this tag in applicationContext.xml:
>
> <bean class="org.jackalista.mx.service.PersonService"/>
>
> Person service got a NoClassDefFoundError.  As there is no such
> PersonService class I tried setting the tag to point at the service
> interface, PersonManager but jetty complained about it being an interface.
> I then tried setting it to the implementation class, PersonManagerImpl like
> this:
>
> <bean class="org.jackalista.mx.service.impl.PersonManagerImpl"/>

Your bean definition should look like the following:

    <bean id="personDao"
class="org.appfuse.tutorial.dao.hibernate.PersonDaoHibernate">
        <property name="sessionFactory" ref="sessionFactory"/>
    </bean>
    <!-- Add new DAOs here -->

    <bean id="personManager"
class="org.appfuse.tutorial.service.impl.PersonManagerImpl">
        <constructor-arg ref="personDao"/>
    </bean>

>
>
> I now am getting an error saying that there's no default constructor in the
> PersonManagerImpl class (which is true).  I don't think I want to add one
> though, as then the constructor injection that sets the PersonDao is
> subverted.  Where have I gone wrong?
>
> Also, should I be trying to integrate CXF instead of monkeying around with
> xfire, given the status of the xfire vs. CXF projects?  CXF looks mighty
> AppFuse-worthy to my eye, and I'll even do some of the work to make it
> happen but you'll have to provide some guidance as I'm new to the 2.0
> AppFuse release.  Should I refocus on getting CXF to work?

Someone expressed an interest in upgrading from XFire to CXF a couple
of weeks ago. I don't know how they've progressed, but I'd hate to see
duplicate efforts. You can see our thinking on CXF on the Web Services
tutorial.

http://appfuse.org/display/APF/Web+Services

In other words, we'd love to upgrade to CXF and will likely accept any
patches (whether they require JAXB over XMLBeans is not important).

> Also, I've been
> using a 2.0 M5 release to do all this, should I just start over with the
> latest at this point?  It seems that a fair bit has happened now since the
> M5 release... what do you think?

2.0 is much improved over M5. You might read the release notes since
M5 to see what's changed.

http://appfuse.org/display/APF/Migration+Guide

Matt

>
> Thanks,
>
> Jack
>
>
>
>
> On Dec 4, 2007, at 9:13 PM, jackalista wrote:
>
>
> Yes, anytime you change files in "core", you have to install it so
> "web" can use it.
>
> Matt
>
>
> --
> View this message in context: 
> http://www.nabble.com/Web-services-in-Appfuse-2.0-tp12777689s2369p14588090.html
> Sent from the AppFuse - User mailing list archive at Nabble.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]

Reply via email to