请教:为什么我在weblogic下,得不到Digester的对象

03-11-17 zonda
环境如下:

app server: weblogic 6.1

web server: tomcat4.0

打了一个ejb包,并将相关jar(commons-digester.jar等等几个相关的jar)也已经一起配置在weblogic下了,编译没有问题。但是ejb中如下程序

import java.io.File;

import org.apache.commons.digester.Digester;

import org.apache.commons.digester.xmlrules.DigesterLoader;

…………

File inputXMLFile = new File(m_strXMLFile);

File rules = new File(m_strRuleFile);

try

{

// get rule

Digester digester = DigesterLoader.createDigester(rules.toURL());

//check validate By Dtd?

digester.setValidating(true);

BusinessAll objBusinessAll = (BusinessAll)digester.parse(inputXMLFile);

m_BussinessInfo = objBusinessAll.getBusinessAll();

}

…………

走到Digester digester = DigesterLoader.createDigester(rules.toURL());这一句就不再执行了。具体就是Digester digester = new Digester()就不能执行。

我试过了,在web server上相同程序可以正常运行得到结果。但是weblogic上就是不行。

另外,我的weblogic有如下的出错信息:

<Error> <ConnectionManager> <tokyo> <myserver> <ExecuteThread: '12' for queue: 'default'> <> <> <000000> <Closing: 'weblogic.rjvm.t3.T3JVMConnection@36507e' because of: 'Server received a message over an uninitialized connection: 'JVMMessage from: 'null' to: '8534209706014373881S:10.20.0.71:[7001,7001,7002,7002,7001,7002,-1]:mydomain:myserver' cmd: 'CMD_REQUEST', QOS: '101', responseId: '1', invokableId: '9', flags: 'JVMIDs Not Sent, TX Context Not Sent', abbrev offset: '239'''>

<Error> <ConnectionManager> <tokyo> <myserver> <ExecuteThread: '14' for queue: 'default'> <> <> <000000> <Closing: 'weblogic.rjvm.t3.T3JVMConnection@c34a9' because of: 'Server received a message over an uninitialized connection: 'JVMMessage from: 'null' to: '8534209706014373881S:10.20.0.71:[7001,7001,7002,7002,7001,7002,-1]:mydomain:myserver' cmd: 'CMD_REQUEST', QOS: '101', responseId: '1', invokableId: '269', flags: 'JVMIDs Not Sent, TX Context Not Sent', abbrev offset: '34'''>

请各位dx帮忙看看。多谢多谢!

zonda
2003-11-17 16:41
出错信息:

<Error> <ConnectionManager> <tokyo> <myserver> <ExecuteThread: '12' for queue: 'default'> <> <> <000000> <Closing: 'weblogic.rjvm.t3.T3JVMConnection@36507e' because of: 'Server received a message over an uninitialized connection: 'JVMMessage from: 'null' to: '8534209706014373881S:10.20.0.71:[7001,7001,7002,7002,7001,7002,-1]:mydomain:myserver' cmd: 'CMD_REQUEST', QOS: '101', responseId: '1', invokableId: '9', flags: 'JVMIDs Not Sent, TX Context Not Sent', abbrev offset: '239'''>

猜你喜欢