If your service doesn't appear on the /services page, it's likely
because you haven't registered a bean for it. Does OrderManager have
a @WebService annotation?
Matt
On Mar 20, 2008, at 3:29 AM, Chris Lilley wrote:
Hi all,
Apologies if this is a dumb question (no, wait! there's no such
thing, right?). Anyway, I'm new to most of the things involved in
AppFuse, apart from Java.
I'm using AppFuse 2.0, and a Spring MVC modular archetype. I've
been through the tutorials creating a persistent object and a
manager, and then tried to expose my web service using XFire &
annotations. I haven't seen any errors along the way (woo!), and my
persistence and manager tests work perfectly. Unfortunately, I
can't see my web service or its WSDL when I run the webapp with
jetty:run-war.
I have to confess I got slightly confused around the start of the
manager tutorial. Everywhere up to there, the tutorial implies that
you should swap src/main/webapp for core/src/main/java, but it gets
a bit less consistent around this point. Anyway, I carried on
working in core.
The standard User service appears on the services page, but that's
it. My equivalent of the PersonService (OK, so I didn't follow the
tutorials exactly - I created a different object type, but the
structure is exactly the same).
Can anyone point me at the places to look for problems? Everything
up to the manager test works perfectly.
My applicationContext.xml in core contains this:
<bean id="orderDao"
class="com.myclient.cfx.dao.hibernate.OrderDaoHibernate">
<property name="sessionFactory" ref="sessionFactory"/>
</bean>
<bean id="orderManager"
class="com.myclient.cfx.service.impl.OrderManagerImpl">
<constructor-arg ref="orderDao" />
</bean>
Any ideas? Helpful tips on ways to debug this would be gratefully
received. In the mean time I'm going to try it using a simple
archetype and see if it's any easier...
-
Chrisl<chris_lilley.vcf>----------------------------------------------
-----------------------
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]