LR测试EJB接口问题
最近在学用LR测试EJB接口,按照网上查的资料,运行 ejbdetector的时候报错,报错信息如下:# sh EJB_Detector.sh
/IBM/WebSphere/AppServer/java/bin/java EJBDetector /IBM/WebSphere/AppServer/installedApps/TelecomTesting1Network/:/IBM/WebSphere/AppServer/installedApps/TelecomTesting1Network/crmEAR.ear/coManagerEJB.jar
Loading Detector properties.
Initializing Detector. (Build: 263)
Did not identify vendor by home directory.
Use the java parameter -Dvendor=<vendor_code>
Where <vendor_code> is:
Websphere3.5 - For IBM WebSphere Server 3.5
GenericAppServer - For unknown application server
Weblogic6.x - For BEA WebLogic Server 6.x
Weblogic5.x - For BEA WebLogic Server 5.x
Weblogic4.x - For BEA WebLogic Server 4.x
Websphere4.0 - For IBM WebSphere Server 4.0
J2EE - For Sun J2EE Server
OC4J - For Oracle OC4J Server
Websphere3.0 - For IBM WebSphere Server 3.0
Weblogic7.x - For BEA WebLogic Server 7.x
Application Server: Unknown Application Server.
InvocationTarget Exception in initialization DetectorAgent!!!
java.lang.VerifyError: (class: mic/detector/utils/XMLParser, method: getDocument signature: (Ljava/lang/Object;Ljava/lang/String;)Lorg/w3c/dom/Document;) Incompatible object argument for method call
java.lang.VerifyError: (class: mic/detector/utils/XMLParser, method: getDocument signature: (Ljava/lang/Object;Ljava/lang/String;)Lorg/w3c/dom/Document;) Incompatible object argument for method call
at mic.detector.ejb.EJBDetectorEngine.checkXMLDD(EJBDetectorEngine.java:203)
at mic.detector.ejb.EJBDetectorEngine.checkEJBArchive(EJBDetectorEngine.java:153)
at mic.detector.ejb.EJBDetectorEngine.checkEntry(EJBDetectorEngine.java:136)
at mic.detector.ejb.EJBDetectorEngine.<init>(EJBDetectorEngine.java:46)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:80)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:44)
at java.lang.reflect.Constructor.newInstance(Constructor.java:315)
at java.lang.Class.newInstance3(Class.java:367)
at java.lang.Class.newInstance(Class.java:305)
at mic.detector.DetectionManager.instantiate(DetectionManager.java:92)
at mic.detector.DetectionManager.<init>(DetectionManager.java:34)
at mic.detector.DetectorAgent.<init>(DetectorAgent.java:20)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:80)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:44)
at java.lang.reflect.Constructor.newInstance(Constructor.java:315)
at EJBDetector.<init>(EJBDetector.java:57)
at EJBDetector.main(EJBDetector.java:106)
请大家帮忙解决一下,谢谢! 是提示你要加参数来启动吧
----------------------------------------------------------------------------------
Use the java parameter -Dvendor=<vendor_code>
Where <vendor_code> is:
Websphere3.5 - For IBM WebSphere Server 3.5
GenericAppServer - For unknown application server
Weblogic6.x - For BEA WebLogic Server 6.x
Weblogic5.x - For BEA WebLogic Server 5.x
Weblogic4.x - For BEA WebLogic Server 4.x
Websphere4.0 - For IBM WebSphere Server 4.0
J2EE - For Sun J2EE Server
OC4J - For Oracle OC4J Server
Websphere3.0 - For IBM WebSphere Server 3.0
Weblogic7.x - For BEA WebLogic Server 7.x
页:
[1]