cpelander
2014-04-25 05:34:06 UTC
Hello all! I am a on the 3.x latest branch and following the tutorial. I
have downloaded the tutorial updates from github and have been running into
issues getting the SOAP and REST services to work at the same time. I am a
bit new to using Spring (and am a Release Engineer by trade, not really a
Java dev) but have done a lot of reading on development. I think I am
missing something, though..
Basically, this is what I am running into -
When adding bean id="personManager" in applicationContext.xml (i.e.
/ <bean id="personManager"
class="com.pelander.service.impl.GenericManagerImpl">
<constructor-arg>
<bean class="com.pelander.dao.hibernate.GenericDaoHibernate"
autowire="byType">
<constructor-arg value="com.pelander.model.Person"/>
</bean>
</constructor-arg>
</bean>/
using GenericManagerImpl Tomcat states it already exists in service if
jaxws:endpoint id="personService" exists in cxf-servlet.xml (i.e.)
/ <jaxws:endpoint id="personService" implementor="#personManager"
address="/PersonService"/>
/
If the item is removed from cxf-servlet.xml, then the other will work as a
REST service.
Basically, I can get one to work at a time, but not both. I am using the
code at
https://github.com/appfuse/appfuse-demos/tree/master/tutorial-service . I
am also compiling to a war, deploying to Tomcat 7.0.42, and can give more
details from the catalina.out if needed. Annotations being used are from
the tutorials (2.x but I think they're the same).
Any suggestions? What am I missing?
--
View this message in context: http://appfuse.547863.n4.nabble.com/jaxws-and-jaxrs-used-at-the-same-time-tp4657081.html
Sent from the AppFuse - User mailing list archive at Nabble.com.
have downloaded the tutorial updates from github and have been running into
issues getting the SOAP and REST services to work at the same time. I am a
bit new to using Spring (and am a Release Engineer by trade, not really a
Java dev) but have done a lot of reading on development. I think I am
missing something, though..
Basically, this is what I am running into -
When adding bean id="personManager" in applicationContext.xml (i.e.
/ <bean id="personManager"
class="com.pelander.service.impl.GenericManagerImpl">
<constructor-arg>
<bean class="com.pelander.dao.hibernate.GenericDaoHibernate"
autowire="byType">
<constructor-arg value="com.pelander.model.Person"/>
</bean>
</constructor-arg>
</bean>/
using GenericManagerImpl Tomcat states it already exists in service if
jaxws:endpoint id="personService" exists in cxf-servlet.xml (i.e.)
/ <jaxws:endpoint id="personService" implementor="#personManager"
address="/PersonService"/>
/
If the item is removed from cxf-servlet.xml, then the other will work as a
REST service.
Basically, I can get one to work at a time, but not both. I am using the
code at
https://github.com/appfuse/appfuse-demos/tree/master/tutorial-service . I
am also compiling to a war, deploying to Tomcat 7.0.42, and can give more
details from the catalina.out if needed. Annotations being used are from
the tutorials (2.x but I think they're the same).
Any suggestions? What am I missing?
--
View this message in context: http://appfuse.547863.n4.nabble.com/jaxws-and-jaxrs-used-at-the-same-time-tp4657081.html
Sent from the AppFuse - User mailing list archive at Nabble.com.