Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
services.xml channel setup issues
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  12 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Dbenge  
View profile  
 More options Jan 7 2009, 9:10 am
From: Dbenge <david.be...@gmail.com>
Date: Wed, 7 Jan 2009 06:10:03 -0800 (PST)
Local: Wed, Jan 7 2009 9:10 am
Subject: services.xml channel setup issues
can someone post an example of what a properly setup services.xml
file?  I am getting channel errors when I try to use mine in flex.

Thanks


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dbenge  
View profile  
 More options Jan 7 2009, 9:10 am
From: Dbenge <david.be...@gmail.com>
Date: Wed, 7 Jan 2009 06:10:03 -0800 (PST)
Local: Wed, Jan 7 2009 9:10 am
Subject: services.xml channel setup issues
can someone post an example of what a properly setup services.xml
file?  I am getting channel errors when I try to use mine in flex.

Thanks


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rae Buerckner  
View profile  
 More options Jan 7 2009, 4:41 pm
From: "Rae Buerckner" <rae.buerck...@gmail.com>
Date: Thu, 8 Jan 2009 08:41:27 +1100
Local: Wed, Jan 7 2009 4:41 pm
Subject: Re: services.xml channel setup issues

<!--  CF Based Endpoints -->
        <channel-definition id="my-cfamf"
class="mx.messaging.channels.AMFChannel">
            <endpoint
uri="http://{server.name}:{server.port}{context.root}/flex2gateway/"
class="flex.messaging.endpoints.AMFEndpoint"/>
            <properties>
                <polling-enabled>false</polling-enabled>
                <serialization>
                    <instantiate-types>false</instantiate-types>
                </serialization>
            </properties>
        </channel-definition>

        <channel-definition id="cf-polling-amf"
class="mx.messaging.channels.AMFChannel">
            <endpoint
uri="http://{server.name}:{server.port}{context.root}/flex2gateway/cfamfpol ling"
class="flex.messaging.endpoints.AMFEndpoint"/>
            <properties>
                <polling-enabled>true</polling-enabled>
                <polling-interval-seconds>8</polling-interval-seconds>
                <serialization>
                    <instantiate-types>false</instantiate-types>
                </serialization>
            </properties>
        </channel-definition>

        <channel-definition id="my-cfamf-secure"
class="mx.messaging.channels.SecureAMFChannel">
            <endpoint
uri="https://{server.name}:{server.port}{context.root}/flex2gateway/cfamfse cure"
class="flex.messaging.endpoints.SecureAMFEndpoint"/>
            <properties>
                <polling-enabled>false</polling-enabled>
                <add-no-cache-headers>false</add-no-cache-headers>
                <serialization>
                    <instantiate-types>false</instantiate-types>
                </serialization>
            </properties>
        </channel-definition>

        <!--  ColdFusion specific RTMP channel -->

        <channel-definition id="cf-rtmp"
class="mx.messaging.channels.RTMPChannel">
            <endpoint uri="rtmp://{server.name}:2048"
class="flex.messaging.endpoints.RTMPEndpoint"/>
            <properties>
                <idle-timeout-minutes>20</idle-timeout-minutes>
                <serialization>
                    <instantiate-types>false</instantiate-types>
                </serialization>
            </properties>
        </channel-definition>

        <!--  Java Based Endpoints -->
        <!--
        <channel-definition id="java-amf"
class="mx.messaging.channels.AMFChannel">
            <endpoint
uri="http://{server.name}:{server.port}{context.root}/flex2gateway/amf"
class="flex.messaging.endpoints.AMFEndpoint"/>
        </channel-definition>

        <channel-definition id="java-secure-amf"
class="mx.messaging.channels.SecureAMFChannel">
            <endpoint
uri="https://{server.name}:{server.port}{context.root}/flex2gateway/amfsecu re"
class="flex.messaging.endpoints.SecureAMFEndpoint"/>
        </channel-definition>

        <channel-definition id="java-polling-amf"
class="mx.messaging.channels.AMFChannel">
            <endpoint
uri="http://{server.name}:{server.port}{context.root}/flex2gateway/amfpolli ng"
class="flex.messaging.endpoints.AMFEndpoint"/>
            <properties>
                <polling-enabled>true</polling-enabled>
                <polling-interval-seconds>8</polling-interval-seconds>
            </properties>
        </channel-definition>

        <channel-definition id="java-rtmp"
class="mx.messaging.channels.RTMPChannel">
            <endpoint uri="rtmp://{server.name}:2036"
class="flex.messaging.endpoints.RTMPEndpoint"/>
            <properties>
                <idle-timeout-minutes>20</idle-timeout-minutes>
            </properties>
        </channel-definition>
        -->

        <channel-definition id="java-http"
class="mx.messaging.channels.HTTPChannel">
            <endpoint
uri="http://{server.name}:{server.port}{context.root}/flex2gateway/http"
class="flex.messaging.endpoints.HTTPEndpoint"/>
        </channel-definition>

        <channel-definition id="java-secure-http"
class="mx.messaging.channels.SecureHTTPChannel">
            <endpoint
uri="https://{server.name}:{server.port}{context.root}/flex2gateway/httpsec ure"
class="flex.messaging.endpoints.SecureHTTPEndpoint"/>
        </channel-definition>
    </channels>

2009/1/8 Dbenge <david.be...@gmail.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dbenge  
View profile  
 More options Jan 8 2009, 12:20 am
From: Dbenge <david.be...@gmail.com>
Date: Wed, 7 Jan 2009 21:20:06 -0800 (PST)
Local: Thurs, Jan 8 2009 12:20 am
Subject: Re: services.xml channel setup issues
I am now getting the following error when I hit my test cfc.
Send failed' faultDetail:'Channel.Connect.Failed error
NetConnection.Call.BadVersion: : url: 'http://localhost/messagebroker/
amf''

Flex code
<mx:RemoteObject id="roMedUserService" destination="Conduit"
source="com.votekinc.meddesk.bl.roMedUserHelper"
showBusyCursor="true">
        <mx:method name="authenticateUser"
fault="this.roMedUserService_authenticateUser_faultHandler(event)"
result="this.roMedUserService_authenticateUser_resultHandler(event)" /


I have confirmed that I can hit http://localhost/flex2gateway/ and i
get the proper response.  And the app did work before and the CFC
returns in a test CFM page so I must have something wrong in the other
config files.

Anyone kind enough to point out where I went wrong during the setup?

Services-config.xml - the one I am compiling with in my AIR app
<?xml version="1.0" encoding="UTF-8"?>
<services-config>

    <services>
        <service-include file-path="remoting-config.xml" />
        <service-include file-path="proxy-config.xml" />
        <service-include file-path="messaging-config.xml" />
    </services>

    <security>
    </security>

    <channels>
<!--  CF Based Endpoints -->
        <channel-definition id="my-cfamf"
class="mx.messaging.channels.AMFChannel">
            <endpoint
uri="http://localhost/flex2gateway/"
class="flex.messaging.endpoints.AMFEndpoint"/>
            <properties>
                <polling-enabled>false</polling-enabled>
                <serialization>
                    <instantiate-types>false</instantiate-types>
                </serialization>
            </properties>
        </channel-definition>

        <channel-definition id="cf-polling-amf"
class="mx.messaging.channels.AMFChannel">
            <endpoint
uri="http://localhost/flex2gateway/cfamfpolling"
class="flex.messaging.endpoints.AMFEndpoint"/>
            <properties>
                <polling-enabled>true</polling-enabled>
                <polling-interval-seconds>8</polling-interval-seconds>
                <serialization>
                    <instantiate-types>false</instantiate-types>
                </serialization>
            </properties>
        </channel-definition>

        <channel-definition id="my-cfamf-secure"
class="mx.messaging.channels.SecureAMFChannel">
            <endpoint
uri="https://localhost/flex2gateway/cfamfsecure"
class="flex.messaging.endpoints.SecureAMFEndpoint"/>
            <properties>
                <polling-enabled>false</polling-enabled>
                <add-no-cache-headers>false</add-no-cache-headers>
                <serialization>
                    <instantiate-types>false</instantiate-types>
                </serialization>
            </properties>
        </channel-definition>

        <!--  ColdFusion specific RTMP channel -->

        <channel-definition id="cf-rtmp"
class="mx.messaging.channels.RTMPChannel">
            <endpoint uri="rtmp://localhost:2048"
class="flex.messaging.endpoints.RTMPEndpoint"/>
            <properties>
                <idle-timeout-minutes>20</idle-timeout-minutes>
                <serialization>
                    <instantiate-types>false</instantiate-types>
                </serialization>
            </properties>
        </channel-definition>

<!--  Java Based Endpoints -->
        <!--
        <channel-definition id="java-amf"
class="mx.messaging.channels.AMFChannel">
            <endpoint
uri="http://{server.name}:{server.port}{context.root}/flex2gateway/
amf"
class="flex.messaging.endpoints.AMFEndpoint"/>
        </channel-definition>

        <channel-definition id="java-secure-amf"
class="mx.messaging.channels.SecureAMFChannel">
            <endpoint
uri="https://{server.name}:{server.port}{context.root}/flex2gateway/
amfsecure"
class="flex.messaging.endpoints.SecureAMFEndpoint"/>
        </channel-definition>

        <channel-definition id="java-polling-amf"
class="mx.messaging.channels.AMFChannel">
            <endpoint
uri="http://{server.name}:{server.port}{context.root}/flex2gateway/
amfpolling"
class="flex.messaging.endpoints.AMFEndpoint"/>
            <properties>
                <polling-enabled>true</polling-enabled>
                <polling-interval-seconds>8</polling-interval-seconds>
            </properties>
        </channel-definition>

        <channel-definition id="java-rtmp"
class="mx.messaging.channels.RTMPChannel">
            <endpoint uri="rtmp://{server.name}:2036"
class="flex.messaging.endpoints.RTMPEndpoint"/>
            <properties>
                <idle-timeout-minutes>20</idle-timeout-minutes>
            </properties>
        </channel-definition>
        -->

        <channel-definition id="java-http"
class="mx.messaging.channels.HTTPChannel">
            <endpoint
uri="http://localhost/flex2gateway/http"
class="flex.messaging.endpoints.HTTPEndpoint"/>
        </channel-definition>

        <channel-definition id="java-secure-http"
class="mx.messaging.channels.SecureHTTPChannel">
            <endpoint
uri="https://localhost/flex2gateway/httpsecure"
class="flex.messaging.endpoints.SecureHTTPEndpoint"/>
        </channel-definition>
    </channels>

                <!--<channel-definition id="my-amf"
class="mx.messaging.channels.AMFChannel">
            <endpoint url="http://localhost/messagebroker/amf"
class="flex.messaging.endpoints.AMFEndpoint"/>
        </channel-definition>

        <channel-definition id="my-secure-amf"
class="mx.messaging.channels.SecureAMFChannel">
                <endpoint url="https://localhost/messagebroker/amfsecure"
class="flex.messaging.endpoints.SecureAMFEndpoint"/>
                         <properties>
                <add-no-cache-headers>false</add-no-cache-headers>
            </properties>
        </channel-definition>

        <channel-definition id="my-polling-amf"
class="mx.messaging.channels.AMFChannel">
            <endpoint url="http://localhost/messagebroker/amfpolling"
class="flex.messaging.endpoints.AMFEndpoint"/>
            <properties>
                <polling-enabled>true</polling-enabled>
                <polling-interval-seconds>4</polling-interval-seconds>
            </properties>
        </channel-definition>-->
    </channels>

    <logging>
        <target class="flex.messaging.log.ConsoleTarget" level="Info">
            <properties>
                <prefix>[BlazeDS] </prefix>
                <includeDate>false</includeDate>
                <includeTime>false</includeTime>
                <includeLevel>false</includeLevel>
                <includeCategory>false</includeCategory>
            </properties>
            <filters>
                <pattern>Endpoint.*</pattern>
                <pattern>Service.*</pattern>
                <pattern>Configuration</pattern>
            </filters>
        </target>
    </logging>

    <system>
        <redeploy>
            <enabled>false</enabled>
            <!--
            <watch-interval>20</watch-interval>
            <watch-file>{context.root}/WEB-INF/flex/services-
config.xml</watch-file>
            <watch-file>{context.root}/WEB-INF/flex/proxy-config.xml</
watch-file>
            <watch-file>{context.root}/WEB-INF/flex/remoting-
config.xml</watch-file>
            <watch-file>{context.root}/WEB-INF/flex/messaging-
config.xml</watch-file>
            <watch-file>{context.root}/WEB-INF/flex/data-management-
config.xml</watch-file>
            <touch-file>{context.root}/WEB-INF/web.xml</touch-file>
             -->
        </redeploy>
    </system>

</services-config>

remoting config
<?xml version="1.0" encoding="UTF-8"?>
<service id="remoting-service"
class="flex.messaging.services.RemotingService"

messageTypes="flex.messaging.messages.RemotingMessage">

        <adapters>
                <adapter-definition id="java-object"
class="flex.messaging.services.remoting.adapters.JavaAdapter" />
                <adapter-definition id="conduit"
class="com.compoundtheory.conduit.adapters.ColdFusionAdapter"/>
        </adapters>

        <default-channels>
                <channel ref="my-cfamf" />
        </default-channels>

        <destination id="Conduit">
                <channels>
                        <channel ref="my-cfamf" />
                </channels>
                <adapter ref="conduit" />
                <properties>
                        <source>*</source>
                        <cfcs>
                                <!--
                                Whether or not reload the CFCs below on each request.
                                Useful for debugging when building new invokers,serialisers
                                or deserialisers
                                -->
                                <reloadcfcs>false</reloadcfcs>
                                <!--
                                The CFC that invokes the remote method call
                                 -->
                                <invoker>conduit.core.CFCInvoker</invoker>
                                <!--
                                Translates CF=>AS3
                                 -->
                                <serialiser>conduit.core.CFSerialiser</serialiser>
                                <!--
                                Translates AS3=>CF
                                 -->
                                <deserialiser>conduit.core.CFDeserialiser</deserialiser>
                        </cfcs>
                        <access>
                                <!--
                                allow "public" (which is public or remote) or just "remote"
methods to be invoked.
                                If not specified, "remote" is the default
                                -->
                                <method-access-level>public</method-access-level>
                        </access>
                </properties>
        </destination>

</service>

proxy-config.xml
<?xml version="1.0" encoding="UTF-8"?>
<service id="proxy-service"
    class="flex.messaging.services.HTTPProxyService">

    <properties>
        <connection-manager>
            <max-total-connections>100</max-total-connections>
            <default-max-connections-per-host>2</default-max-
connections-per-host>
        </connection-manager>
        <allow-lax-ssl>true</allow-lax-ssl>
    </properties>

    <adapters>
        <adapter-definition id="http-proxy"
class="flex.messaging.services.http.HTTPProxyAdapter" default="true"/>
        <adapter-definition id="soap-proxy"
class="flex.messaging.services.http.SOAPProxyAdapter"/>
    </adapters>

    <default-channels>
        <channel ref="my-amf"/>
    </default-channels>

    <destination
...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Mandel  
View profile  
 More options Jan 8 2009, 12:27 am
From: "Mark Mandel" <mark.man...@gmail.com>
Date: Thu, 8 Jan 2009 16:27:03 +1100
Local: Thurs, Jan 8 2009 12:27 am
Subject: Re: services.xml channel setup issues
One difference I'm seeing, my <system> <redeploy> section looks like this:

    <system>

        <manageable>false</manageable>

        <!--

        <redeploy>

            <enabled>true</enabled>

            <watch-interval>20</watch-interval>

            <watch-file>{context.root}/WEB-INF/flex/services-config.xml</watch-file>

            <watch-file>{context.root}/WEB-INF/flex/proxy-config.xml</watch-file>

            <watch-file>{context.root}/WEB-INF/flex/remoting-config.xml</watch-file>

            <watch-file>{context.root}/WEB-INF/flex/messaging-config.xml</watch-file>

            <watch-file>{context.root}/WEB-INF/flex/data-management-config.xml</watch-f ile>

            <touch-file>{context.root}/WEB-INF/web.xml</touch-file>

        </redeploy>

         -->

    </system>

Also I didn't remove the Coldfusion destination from my remoting-config.xml

Some quick questions:

What version of CF are you on?
What version of BlazeDS did you install?
Are the right .jar files in the right places?

Mark

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dbenge  
View profile  
 More options Jan 8 2009, 12:53 am
From: Dbenge <david.be...@gmail.com>
Date: Wed, 7 Jan 2009 21:53:17 -0800 (PST)
Local: Thurs, Jan 8 2009 12:53 am
Subject: Re: services.xml channel setup issues
running from the command line I see this in cf

[BlazeDS]Endpoint java-secure-http created with security: None
at URL: https://localhost/flex2gateway/httpsecure
**** MessageBrokerServlet failed to initialize due to runtime
exception:   Exception: flex
.messaging.MessageException: Cannot create class of type
'flex.messaging.endpoints.RTMPEnd
point'. Type 'flex.messaging.endpoints.RTMPEndpoint' not found.
        at flex.messaging.util.ClassUtil.createClass(ClassUtil.java:
66)
        at flex.messaging.MessageBroker.createEndpoint
(MessageBroker.java:577)
        at flex.messaging.config.MessagingConfiguration.createEndpoints
(MessagingConfigura
tion.java:251)

I must have screwed something up following the blaze/cf install
instructions.
I will walk back over them.

On Jan 7, 1:41 pm, "Rae Buerckner" <rae.buerck...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dbenge  
View profile  
 More options Jan 8 2009, 9:39 am
From: Dbenge <david.be...@gmail.com>
Date: Thu, 8 Jan 2009 06:39:20 -0800 (PST)
Local: Thurs, Jan 8 2009 9:39 am
Subject: Re: services.xml channel setup issues
8.0.1
brand new STABLE blazeDS that I just downloaded
I think my problem was with step 2 of the BlazDS install.  I moved the
flex directory 100% out and started fresh.

When I get this right I am going to write the install up better so
other chumps like me will have more references.

BTW your suggestion in the logging section of running CF from the jrun
command line was a huge help.
Thanks

On Jan 7, 9:27 pm, "Mark Mandel" <mark.man...@gmail.com> wrote:

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dbenge  
View profile  
 More options Jan 10 2009, 4:25 pm
From: Dbenge <david.be...@gmail.com>
Date: Sat, 10 Jan 2009 13:25:14 -0800 (PST)
Local: Sat, Jan 10 2009 4:25 pm
Subject: Re: services.xml channel setup issues
So I uninstalled my cf 8 DEV install and did a server config type
fresh install.
I am still testing just BlazeDS without conduit just to establish a
working install before moving forward but I keep getting this error.
hdr(DSEndpoint) = my-cfamf
ception: flex.messaging.MessageException: flex/data/adapters/
ChangeObjectImpl
whenever I return anything more complex than a string.  Any clues on
whats wrong now?

On Jan 8, 6:39 am, Dbenge <david.be...@gmail.com> wrote:

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dbenge  
View profile  
 More options Jan 10 2009, 6:18 pm
From: Dbenge <david.be...@gmail.com>
Date: Sat, 10 Jan 2009 15:18:47 -0800 (PST)
Local: Sat, Jan 10 2009 6:18 pm
Subject: Re: services.xml channel setup issues
Wild! My problems were fixed by moving
concurrent.jar
and cfgatewayadapter.jar  out of the flex/jars/ dir and into
Coldfusion/lib/

On Jan 10, 1:25 pm, Dbenge <david.be...@gmail.com> wrote:

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Mandel  
View profile  
 More options Jan 10 2009, 6:42 pm
From: "Mark Mandel" <mark.man...@gmail.com>
Date: Sun, 11 Jan 2009 10:42:22 +1100
Local: Sat, Jan 10 2009 6:42 pm
Subject: Re: services.xml channel setup issues

So this is the:
blazeds-bin-3.2.0.3978.zip version?

This is weird, I had no problems when I followed:
http://opensource.adobe.com/wiki/display/blazeds/Installation+Guide#I...

Mark

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dbenge  
View profile  
 More options Jan 10 2009, 7:03 pm
From: Dbenge <david.be...@gmail.com>
Date: Sat, 10 Jan 2009 16:03:56 -0800 (PST)
Local: Sat, Jan 10 2009 7:03 pm
Subject: Re: services.xml channel setup issues
yea 3.2.0.3978
That video link I posted also called out flex/jars/ as the home for
those jars.

I am still getting
faultCode:InvokeFailed faultString:'[MessagingError
message='Destination 'Conduit' either does not exist or the
destination has no channels defined (and the application does not
define any default channels.)']' faultDetail:'Couldn't establish a
connection to 'Conduit''
I have restarted Flex.  I am going to reboot just to be sure
everything is nice and fresh.

On Jan 10, 3:42 pm, "Mark Mandel" <mark.man...@gmail.com> wrote:

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Mandel  
View profile  
 More options Jan 10 2009, 7:05 pm
From: "Mark Mandel" <mark.man...@gmail.com>
Date: Sun, 11 Jan 2009 11:05:24 +1100
Local: Sat, Jan 10 2009 7:05 pm
Subject: Re: services.xml channel setup issues

I had that at one point, i had to restart CF, then recompile my Flex app
after a restart of FlexBuilder.

Mark

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »