Hi there,
I've been running through the samples in the "Getting Started w/ Flex"
guide and seem to have hit a brick wall.
I'm trying to run the "Contact" application, however, after compiling
and attempting to the run the app, I'm greeted with the follow error:
----------
[RPC Fault faultString="Send failed"
faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed
error undefined url:'rtmp://localhost:2037'"]
at
mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/internal:\
:dispatchFaultEvent()
at ::DataListRequestResponder/fault()
at mx.rpc::AsyncRequest/fault()
at mx.messaging::ChannelSet/::faultPendingSends()
at mx.messaging::ChannelSet/channelFaultHandler()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEven\
tFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.messaging::Channel/mx.messaging:Channel::connectFailed()
at
mx.messaging.channels::PollingChannel/mx.messaging.channels:PollingChann\
el::connectFailed()
at
mx.messaging.channels::RTMPChannel/mx.messaging.channels:RTMPChannel::st\
atusHandler()
---------
I've checked my Catalina.out log and see this upon startup (which seems
fine):
---------
[Flex] [INFO] Starting Adobe Flex Data Services 2 Express
[Flex] [INFO] Adobe Flex Data Services Build: 155539
[Flex] [INFO] Endpoint my-amf created with security: None
at URI:
http://{server.name}:{server.port}/{context.root}/messagebroker/amf
[Flex] [INFO] Endpoint my-polling-amf created with security: None
at URI:
http://{server.name}:{server.port}/{context.root}/messagebroker/amfpolli\
ng
[Flex] [INFO] Endpoint my-http created with security: None
at URI:
http://{server.name}:{server.port}/{context.root}/messagebroker/http
[Flex] [INFO] Endpoint my-secure-amf created with security: None
at URI:
https://{server.name}:9100/{context.root}/messagebroker/amfsecure
[Flex] [INFO] Endpoint my-rtmp created with security: None
at URI: rtmp://{server.name}:2037
[Flex] [INFO] Endpoint my-secure-http created with security: None
at URI:
https://{server.name}:9100/{context.root}/messagebroker/httpsecure
---------
However, looking in my localhost_log file, I see this:
---------
2007-02-04 14:49:13 StandardContext[/samples]StandardWrapper.Throwable
flex.messaging.config.ConfigurationException: Unable to create service
'flex.data.DataService' for 'data-service' due to the following error:
Error instantiating application scoped instance of type
'samples.contact.ContactAssembler' for destination 'contact'..
at
flex.messaging.config.MessagingConfiguration.createServices(MessagingCon\
figuration.java:202)
...
2007-02-04 14:49:14 StandardContext[/samples]Servlet /samples threw
load() exception
javax.servlet.ServletException: Servlet.init() for servlet
MessageBrokerServlet threw exception
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav\
a:1071)
...
----- Root Cause -----
flex.messaging.config.ConfigurationException: Unable to create service
'flex.data.DataService' for 'data-service' due to the following error:
Error instantiating application scoped instance of type
'samples.contact.ContactAssembler' for destination 'contact'..
at
flex.messaging.config.MessagingConfiguration.createServices(MessagingCon\
figuration.java:202)
...
---------
I'm running Tomcat 5.0.28, and I've installed the JOTM and the JMX
libraries. I ran into a problem running the "Notes" example, but
quickly found out (by searching here) that those libraries were needed
for Tomcat and Java 1.4.x.
I'd appreciate any help anyone can provide.
Kind regards,
Frank