他に何を試すべきか本当にわかりません。助けていただければ幸いです。ありがとうございました
1) weblogic 10、flashbuilder4 eclipse プラグインを使用しています。すべて Windows XP で実行されています。
2) blazeds tomcat サンプルを weblogic 10 にデプロイし、そのリモート サービスを fb4 の新しいプロジェクト DataGrid に正常にバインドできました。すべて正常に動作します。
3) 次に、独自の Java クラスを使用するようにサンプルを変更しました。fb4 でのデータ プロバイダー バインディングの最後のステップで、宛先を選択して [完了] ボタンをクリックすると、次のように表示されます。
「com.hello.test.ProductSearch は指定された場所では利用できません。宛先の productsearch の選択を解除してインポートしてみてください」
クラス ファイルが weblogic に適切にデプロイされ、http://localhost:7001/hello/messagebroker/amf にエラーが表示されないことを確認しました。
また、同じファイルの場所を tomcat にデプロイすると、正常に動作します。要約すると、1) BlazeDS サンプルは weblogic10 と tomcat の両方で正常に動作します 2) 私の com.hello.test.ProductSearch は tomcat では正常に動作しますが、weblogic10 では上記のエラーが発生します。
問題はweblogic 10の展開にあるようです。デフォルトの標準のweblogic10展開を使用しています。問題が何であるかわからないので、何日もそれを続けています。
------------------------------
remoting-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>
サービス構成.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()]);
}
}
属性VO.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
}