"Integration with Spring" does not work :( It just said "Destination not found".

39 views
Skip to first unread message

Shigeru Nakagaki

unread,
Jan 30, 2015, 5:31:10 AM1/30/15
to gran...@googlegroups.com
Hello

I tried Tomcat7 and GraniteDS 3.1.0.GA without Spring4 and it worked.
But Tomcat7, Spring4.1 and GraniteDS 3.1.0.GA does not work.
It just said 

(mx.rpc::Fault)#0
  content = (null)
  errorID = 0
  faultCode = "Destination not found: myTestService"
  faultDetail = "null"
  faultString = ""
  message = "faultCode:Destination not found: myTestService faultString:'null' faultDetail:'null'"
  name = "Error"
  rootCause = (null)

And I noticed "META-INF/services-config.properties" is still zero byte after Tomcat was launched.
What did I miss? And what should I check?


I read "Integration with Spring" and I put "META-INF/services-config.properties"
and I configured

  applicationContext.xml
    <graniteds:server-filter url-pattern="/*"/>

  services-config.xml
    granite-service and a channel named "graniteamf"

  granite-config.xml
    <granite-config scan="true"/>

  dispatcher-servlet.xml
    (only a bean)

  web.xml
    context-param
  ContextLoaderListener
  RequestContextListener
  DispatcherServlet
  servlet-mapping

and a test service is just like bellow

@Service("myTestService")
@RemoteDestination(id = "myTestService", source = "myTestService")
public class MyTestService {


Why does not Spring pick up "MyTestService" as a service??


thanks

Erguder Bekrek

unread,
Jan 30, 2015, 5:32:30 AM1/30/15
to gran...@googlegroups.com
spring 4.0 is different than spring 4.1

--

---
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes "Granite Data Services Forum".
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse graniteds+...@googlegroups.com.
Pour obtenir davantage d'options, consultez la page https://groups.google.com/d/optout.



--
Erguder Bekrek

Développeur Flash/Flex ActionScript 2.0/3.0
514.728.5708
erguder...@gmail.com

Shigeru Nakagaki

unread,
Feb 3, 2015, 7:19:33 PM2/3/15
to gran...@googlegroups.com
Hi, I wrote incorrectly.

I tried Tomcat7 and GraniteDS 3.1.0.GA without Spring4.1 and it worked.
But Tomcat7, Spring4.1 and GraniteDS 3.1.0.GA does not work.

thanks

Shigeru Nakagaki
Reply all
Reply to author
Forward
0 new messages