Weblogic10,BlazeDS,FlashBuilder4,错误设置远程服务绑定

我真的不确定还有什么可以尝试,任何帮助将不胜感激。谢谢 1)我正在使用weblogic 10,flashbuilder4 eclipse插件,一切都在运行Windows XP。 2)我在weblogic 10上部署了blazeds tomcat示例,并且能够将其远程服务成功绑定到fb4中的新项目DataGrid,一切正常。 3)然后我修改了样本以使用我自己的java类。在fb4中数据提供程序绑定的最后一步,当我选择目标并单击“完成”按钮时,它会显示: “com.hello.test.ProductSearch在指定位置不可用。请通过取消选择destniation productsearch来尝试导入” 我验证了类文件在weblogic上正确部署,http:// localhost:7001 / hello / messagebroker / amf没有显示错误。 此外,当我将相同的文件位置部署到tomcat时,它工作正常。总结一下: 1)BlazeDS示例在weblogic10和tomcat中都能正常工作 2)我的com.hello.test.ProductSearch在tomcat中工作正常,但在weblogic10中给出了上述错误。 所以看起来问题是weblogic 10部署,我只是使用默认标准weblogic10部署。不知道问题是什么,现在已经好几天了。 ------------------------------ 远程-config.xml中
<adapters>
    <adapter-definition id="java-object" class="flex.messaging.services.remoting.adapters.JavaAdapter" default="true"/>
</adapters>



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



<destination id="productsearch">
    <properties>
        <source>com.hello.test.ProductSearch</source>
    </properties>
</destination>
services-config.xml中
<services>
    <service-include file-path="remoting-config.xml" />

    <default-channels>

       <channel ref="my-amf"/>

    </default-channels>

</services>





<channels>



    <channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">

        <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>

        <properties>
            <polling-enabled>false</polling-enabled>
        </properties>
    </channel-definition>

</channels>



<logging>
    <!-- You may also use flex.messaging.log.ServletLogTarget -->
    <target class="flex.messaging.log.ConsoleTarget" level="Error">
        <properties>
            <prefix>[BlazeDS] </prefix>
            <includeDate>false</includeDate>
            <includeTime>false</includeTime>
            <includeLevel>true</includeLevel>
            <includeCategory>false</includeCategory>
        </properties>
        <filters>
            <pattern>Endpoint.*</pattern>
            <pattern>Service.*</pattern>
            <pattern>Configuration</pattern>
        </filters>
    </target>
</logging>



<system>
    <redeploy>
        <enabled>true</enabled>
        <watch-interval>20</watch-interval>
        <watch-file>{context.root}/WEB-INF/flex/services-config.xml</watch-fi le>
        <watch-file>{context.root}/WEB-INF/flex/remoting-config.xml</watch-fi le>
        <touch-file>{context.root}/WEB-INF/web.xml</touch-file>
    </redeploy>
</system>
ProductSearch.java
package com.hello.test;
import java.util.ArrayList;
import java.util.List;



public class ProductSearch
{
     public AttributeVO[] search()
     {
         List<AttributeVO> retList = new ArrayList<AttributeVO>();

         retList.add(new AttributeVO("one","two", "three","four"));
         retList.add(new AttributeVO("five","six", "seven","eight"));

        return retList.toArray(new AttributeVO[retList.size()]);



     }
}
AttributeVO.java
package com.hello.test;



import java.io.Serializable;



public class AttributeVO implements Serializable
{



    static final long serialVersionUID = 1L;



    private String val1;
    private String val2;
    private String val3;
    private String val4;

    public AttributeVO()
    {}

    etc... all get getter/setters

}
    
已邀请:
解决了。我使用jdk 1.6编译了服务器端java,显然最新版本的blazeDS与1.6不兼容(当然它不会告诉你,这太简单了)。 一旦我使用jdk 1.5重新编译,一切正常。 谈论挫折..     

要回复问题请先登录注册