BPEL工作流问题——远程连接

[复制链接]
查看11 | 回复3 | 2007-11-20 13:39:58 | 显示全部楼层 |阅读模式
javax.naming.NameNotFoundException: TaskQueryService not found
当我的 SOA Server and Java Web Client 都在本机上时候(localhost),一切正常.但是当我用 Java web Client 去访问一个 remote server, 就遇到了上述问题.客户端连接方式是 REMOTE_CLIENT.查了很多信息,看配置也没看出错误。
我的配置如下:
哪位好心人伸一把援手?
hw_worklist_jndi.properties
orabpel.platform ias_10g
java.naming.factory.initial=com.evermind.server.rmi.RMIInitialContextFactory
java.naming.provider.url=opmn

rmi://heyl

c4j_soa/hw_services
java.naming.security.principal=oc4jadmin
java.naming.security.credentials=manager1
dedicated.connection=true
wf_client_config.xml

opmn

rmi://heyl

c4j_soa/hw_services
oc4jadmin
manager1
com.evermind.server.rmi.RMIInitialContextFactory


另有wf_config.xml

具体错误如下:


at oracle.bpel.services.workflow.query.client.TaskQueryServiceRemoteClient.authenticate(TaskQueryServiceRemoteClient.java:139)

at com.cnnct.xzxk.service.impl.WorkflowClientServiceImpl.getWorkflowContext(WorkflowClientServiceImpl.java:169)

at com.cnnct.xzxk.service.BeplFlowTest.testGetTasksForUser(BeplFlowTest.java:36)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at junit.framework.TestCase.runTest(TestCase.java:154)

at junit.framework.TestCase.runBare(TestCase.java:127)

at junit.framework.TestResult$1.protect(TestResult.java:106)

at junit.framework.TestResult.runProtected(TestResult.java:124)

at junit.framework.TestResult.run(TestResult.java:109)

at junit.framework.TestCase.run(TestCase.java:118)

at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)

at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)

at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)

at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)

at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)

at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: javax.naming.NameNotFoundException: TaskQueryService not found

at com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:52)

at javax.naming.InitialContext.lookup(Unknown Source)

at oracle.bpel.services.workflow.query.client.TaskQueryServiceRemoteClient.authenticate(TaskQueryServiceRemoteClient.java:132)

... 18 more

TaskQueryService not found
javax.naming.NameNotFoundException: TaskQueryService not found

at com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:52)

at javax.naming.InitialContext.lookup(Unknown Source)
回复

使用道具 举报

千问 | 2007-11-20 13:39:58 | 显示全部楼层
java.naming.provider.url=opmnrmi://heylc4j_soa/hw_services
这句是不是没有写OPMN的端口号?
回复

使用道具 举报

千问 | 2007-11-20 13:39:58 | 显示全部楼层
原帖由 dakula 于 2007-11-20 17:12 发表
java.naming.provider.url=opmnrmi://heylc4j_soa/hw_services
这句是不是没有写OPMN的端口号?

写了6003端口,也一样不对
肯请指教!大谢!!
回复

使用道具 举报

千问 | 2007-11-20 13:39:58 | 显示全部楼层
能不能把源代码再贴出来多一点?或者你现用java API来调一下TaskQueryService这个类来看看,看看能不能调成功?还有,如果我没有记错,如果你是缺省安装soa suite的话,home oc4j实例的opmn端口应该是6004,6003似乎是控制端口,这个你可以在OEM控制台里面查一下。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行