注意:如果要運用java調用Tuxedo的調用,請安裝Tuxedo8.1客戶端。不然Tuxedo會調用出錯.
環境: Tuxedo8.1客戶端
Tomcat 6.0.18
Spring 2.5
Hibernate 3.0
Structs 1.35
自寫Dll動態鏈接庫接口
如果用java Main寫的程序,并把所有的dll放在同一目錄,調用Tuxedo能正常調用。但用在Tomcat 的容器下,就調用不正常(調用失敗),也就是出現下面的錯誤日誌:
错误编号:-1,内部错误码: 12,描述: TPESYSTEM - internal system error
Tuxedo自己產生的日誌如下:
093454.BTGD_APP6!?proc.900.892.0: 05-22-2009: Tuxedo Version 8.1 32-bit Windows.
093454.BTGD_APP6!?proc.900.892.0: LIBWSC_CAT:1055: ERROR: Unable to establish WSL connection
093454.BTGD_APP6!?proc.900.892.0: LIBWSC_CAT:1027: ERROR: Unable to connect to WSH
093454.BTGD_APP6!?proc.900.892.0: LIBWSC_CAT:1020: ERROR: Unable to obtain authentication level
093540.BTGD_APP6!?proc.900.892.0: LIBWSC_CAT:1055: ERROR: Unable to establish WSL connection
093540.BTGD_APP6!?proc.900.892.0: LIBWSC_CAT:1027: ERROR: Unable to connect to WSH
093540.BTGD_APP6!?proc.900.892.0: LIBWSC_CAT:1020: ERROR: Unable to obtain authentication level
095121.BTGD_APP6!?proc.900.892.0: LIBWSC_CAT:1055: ERROR: Unable to establish WSL connection
095121.BTGD_APP6!?proc.900.892.0: LIBWSC_CAT:1027: ERROR: Unable to connect to WSH
095121.BTGD_APP6!?proc.900.892.0: LIBWSC_CAT:1020: ERROR: Unable to obtain authentication level
155009.BTGD_APP6!?proc.1548.3928.0: 05-22-2009: Tuxedo Version 8.1 32-bit Windows.
155009.BTGD_APP6!?proc.1548.3928.0: GP_CAT:1345: ERROR: pif: can't load 'registry.dll'
155009.BTGD_APP6!?proc.1548.3928.0: GP_CAT:1345: ERROR: pif: can't load 'registry.dll'
155009.BTGD_APP6!?proc.1548.3928.0: LIBWSC_CAT:2011: WARN: Unable to invoke audit postop on security failure
161102.BTGD_APP6!?proc.3608.4740.0: 05-22-2009: Tuxedo Version 8.1 32-bit Windows.
161102.BTGD_APP6!?proc.3608.4740.0: LIBWSC_CAT:1055: ERROR: Unable to establish WSL connection
161102.BTGD_APP6!?proc.3608.4740.0: LIBWSC_CAT:1027: ERROR: Unable to connect to WSH
161102.BTGD_APP6!?proc.3608.4740.0: LIBWSC_CAT:1020: ERROR: Unable to obtain authentication level
++++++++++++++++++++++++++++++++++++++
解決的方案:就是把DLL 文件,copy到tomcat\bin\目录下就能正常調用了。
--转自