I'm surprised that no one is using services from within a packaged project...
Could you be more specific?
You want to connect (what protocol) to a service, installed a different web application from LCDS ?
rtmp is the protocol.
I deployed a war file (with a jar in the library that holds my service class) in my tomcat and embedded LCDS into it.
There shouldn't be an issue with accessing a class packaged in a JAR in WEB-INF/lib. You should be able to use any class that's in the web app's classpath as long as you specify the full-qualified classname in the source element of the destination. Is that what you are doing?
Here's my setup:
Jar located at:
Remote-Config file here:
<destination id="AlertService"> <properties> <source>com.company.cliq.alert.service.AlertServiceImpl</source> <scope>application</scope> </properties> </destination>
Navigating to class from Jar file:
Do you have an explicit constructor(s) in your class but do not have a no-args constructor? If so, that could be the issue. You must have a no-args constructor to work with the Remoting Service. If you don't specify any constructor, there is a default no-args constructor. Otherwise, you must include one explicitly.
If you have that taken care of:
Based on that, it seems like it should work as long as the package declaration in your class is:
It isn't working? What does your client code where you are calling it look like?
Are you able to run other things such as the samples in the lcds-samples web app?
Ok, I think I figured it out. I went through the logs and it looks like some dependencies were missing.
Yes the samples work, and I also have a seperate simple prototype working. This one is part of a bigger project.
After fixing dependencies, it now says the class has an overloaded method and does not support introspection.
flex-servlet.xml does not exist...where does this come from?
flex-servet.xml is used when you are using Spring BlazeDS Integration project to create destinations from Spring. As such it is not part of LCDS.
So there's no solution for LCDS currently?
Alex, you should download the Spring - Flex project and install it manually to LCDS. Once you do that, you will have access to flex-servlet.xml. The Spring-Flex project is not bundled with LCDS.
Hope this makes sense.
Yes, you can find a sample flex-servlet.xml in the Spring Flex test-drive samples (e.g. under
By convention, you declare the remoting/messaging destinations within this file (see above file for examples). The Spring-Flex documentation explains more about the syntax. Hope that helps.