我用wsad开发,用的是EJB1.1,使用自底向上的cmp,在服务器启动的时候出现如下异常:
........................................
[04-8-5 16:54:24:807 CST] 3cc6fd3e ApplicationMg A WSVR0221I: 应用程序已启动:IBMUTC
[04-8-5 16:54:24:837 CST] 3cc6fd3e ApplicationMg A WSVR0200I: 正在启动应用程序:HelloEar
[04-8-5 16:54:24:947 CST] 3cc6fd3e EJBContainerI I WSVR0207I: 正在准备启动 EJB jar:HelloEJB.jar
[04-8-5 16:54:25:558 CST] 3cc6fd3e ConnectionFac E J2CA0102E: 无效的 EJB 组件:无法使用 The Relational Resource Adapter 的版本 1.1 的 EJB 模块。
[04-8-5 16:54:25:598 CST] 3cc6fd3e Helpers W NMSV0605W: 使用名称“jdbc/sample”从上下文“localhost/nodes/localhost/servers/server1”中查找的引用对象发送到 JNDI 命名管理器并且导致异常。引用数据如下:
引用工厂类名:com.ibm.ejs.j2c.ConnectionFactoryBuilderImpl
引用工厂类位置 URL:<null>
Reference Class Name: SAMPLE
Type: connectorName
Content: SAMPLE
Type: recoveryClasspath
Content: d:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.1\runtimes\base_v51/lib/rsadapter.rar
Type: FactoryJndiName
Content: jdbc/sample
Address Type: dd
AddressContents: ffffffac ffffffed 0 5 73 72 0 25 63 6f 6d 2e 69 62 6d 2e 65 6a 73 2e 6a 32 63 2e 52 65 73 6f 75 72 63 65 ...
Address Type: poolProps
AddressContents: ffffffac ffffffed 0 5 73 72 0 27 63 6f 6d 2e 69 62 6d 2e 65 6a 73 2e 6a 32 63 2e 43 6f 6e 6e 65 63 74 6f ...
Address Type: configProps
AddressContents: ffffffac ffffffed 0 5 73 72 0 23 63 6f 6d 2e 69 62 6d 2e 65 6a 73 2e 6a 32 63 2e 43 6f 6e 6e 65 63 74 6f ...
Address Type: mmProps
AddressContents: ffffffac ffffffed 0 5 73 72 0 14 6a 61 76 61 2e 75 74 69 6c 2e 50 72 6f 70 65 72 74 69 65 73 39 12 ffffffd0 7a ...
Address Type: dsProps
AddressContents: ffffffac ffffffed 0 5 73 72 0 14 6a 61 76 61 2e 75 74 69 6c 2e 50 72 6f 70 65 72 74 69 65 73 39 12 ffffffd0 7a ...
Address Type: mcfProps
AddressContents: ffffffac ffffffed 0 5 73 72 0 2d 63 6f 6d 2e 69 62 6d 2e 65 6a 73 2e 6a 32 63 2e 4d 61 6e 61 67 65 64 43 ...
Address Type: mbeanProps
AddressContents: ffffffac ffffffed 0 5 73 72 0 1a 63 6f 6d 2e 69 62 6d 2e 65 6a 73 2e 6a 32 63 2e 4d 42 65 61 6e 50 72 6f ...
异常数据如下:
java.lang.Exception: Invalid EJB component: Cannot use an EJB module with version 1.1, CMP version 1.x using The Relational Resource Adapter