tags:

views:

9

answers:

0

I'm trying to get authentication working in my project that uses BlazeDS with Flashbuilder 4 and GlassFish v3.

I followed the custom authentication example in the BlazeDS Developers Guide, but ran into an error when trying to get the channelSet with:

cs = ServerConfig.getChannelSet(remote.destination);  

The error I get is:

[MessagingError message='Destination 'grammarDBBean' either does not exist or the destination has no channels defined (and the application does not define any default channels.)']

I couldn't follow the example exactly in this case because I'm using Flex 4, but my destination is set as:

<s:RemoteObject id="remote" destination="grammarDBBean" 
      showBusyCursor="true" result="resultHandler(event)" 
      fault="faultHandler(event)" >
  <s:channelSet>
    <s:ChannelSet>
      <s:AMFChannel uri="http://localhost:8084/TestWebProject/messagebroker/amf"/&gt;
    </s:ChannelSet>
  </s:channelSet>
  <mx:method name="sayHelloToMe" result="sayHelloResultHandler(event)"/>
</s:RemoteObject>

and in remoting-config.xml I have:

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

<destination id="grammarDBBean">
 <channels>
  <channel ref="my-amf"/>
 </channels>
 <properties>
  <factory>ejb3</factory>
  <source>java:comp/env/GrammarDBBean</source>
 </properties>
</destination>

I added the specific channels reference to the destination, even though there is a default channel set, but it didn't help.

I've been trying to figure out what the problem could be and found the BlazeDS 4 upgrade which says it aligns better with Flex 4, etc., so I'm guessing/hoping that may help to resolve the issue.

I downloaded the new blazeds.war file, but I'm unsure of what I need to do to upgrade my existing project(s) to use it. I know I would need to deploy the new war file on the application server, but is there anything else in the project itself that needs to be updated? Any of the lib files, etc.? I used the wizard initially to setup the project, so I'm not sure of all the things it does and thus what would need to be changed.

The only thing I can find regarding installation instructions refers to the initial setup, so any pointers on this would be very helpful.

Renee