2017-02-10 120 views
1

我试图从我的计算机运行xmlaccess,而websphere门户服务器安装在通过局域网连接的不同计算机上。我完成了在我的计算机上添加jar文件的所有配置,然后运行带有所需参数的xmlaccess命令。但是我一直给出相同的输出,并且不会创建输出文件。我已经复制了ibm知识中心提供的所有jar文件。对本地远程门户服务器运行xmlaccess命令

这是命令,我给和输出我得到每次,运行安装WebSphere的机器上相同的命令时,它会创建的输出文件和工作的一切优秀

C:\Users\Admin\Desktop\deployment>xmlaccess -in C:\Users\Admin\Desktop\deploymen 
t\ExportAllPortlets.xml -url http://172.16.100.227:10039/wps/config -out Exporte 
dWebModules.xml -user ****** -password ****** 
Licensed Materials - Property of IBM, 5724-E76, 5724-E77, 5724-I29 and 5655-Y16, 
(C) Copyright IBM Corp. 2001, 2014 - All Rights reserved. US Government Users R 
estricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule 
Contract with IBM Corp. 
EJPXB0001I: Command line parameters: 
     -in <xml input file> 
     [-user <user name>] 
       Will be queried over the console, if omitted 
     [-password <password>] 
       Will be queried over the console, if omitted 
     [-useEncryptedCredentials <file>] 
       Retrieve user name and password from properties file. Update fil 
e with encrypted password. 
     [-noUpdateProperties] 
       Do not save encrypted password back to properties file. 
     [-out <output file>] 
       default: write to stdout 
     [-url <portal config URL>] 
       default: http://localhost/wps/config 
     [-attempts <max. connection attempts>] 
       default: 1 attempt, no retries 
     [-truststore <file name of the trust store for HTTPS>] 
       default: $JAVA_HOME/lib/security/cacerts 
     [-trustpwd <password for the trust store for HTTPS>] 
       default: <empty> 
     [-trusttype <file type of the trust store for HTTPS>] 
       default: jks 
     [-keystore <file name of the key store for HTTPS>] 
       default: $JAVA_HOME/lib/security/cacerts 
     [-keypwd <password for the key store for HTTPS>] 
       default: <empty> 
     [-keytype <file type of the key store for HTTPS>] 
       default: jks 
     [-credentialexport] 
       enables export and import of credential secrets 
     [-protocol <protocol>] 
       selects the protocol (if portal config URL 
       specified https:, otherwise this parameter is ignored). 
       default: SSL 
     [-encryptionPassphrase <passphrase>] 
       passphrase for credential encryption and decryption 

回答

0

尝试把它在一个非虚拟化目录,如c:\ xmlaccess而不是桌面上。

在那里 bootstrap.jar,com.ibm.ffdc.jar,com.ibm.ws.emf.jar,com.ibm.ws.runtime.jar 请这些罐子创建在该目录中称为插件文件夹,j2ee.jar,org.eclipse.emf.common.jar,org.eclipse.emf.ecore.jar,wp.base.jar,wp.engine.impl.jar,wp.utilities.streams.jar,wp.xml .client.jar

我使用的是1.8 JDK 然后设置你的bat文件这样

@echo off 
set WAS_HOME=C:\xmlacess\plugins 

set cpath=%WAS_HOME%\com.ibm.ws.runtime.jar 
set cpath=%cpath%;%WAS_HOME%\bootstrap.jar 
set cpath=%cpath%;%WAS_HOME%\com.ibm.ws.emf.jar 
set cpath=%cpath%;%WAS_HOME%\org.eclipse.emf.ecore.jar 
set cpath=%cpath%;%WAS_HOME%\org.eclipse.emf.common.jar 

%JAVA% -classpath c:\xmlaccess\plugins\wp.xml.client.jar;%WAS_HOME%\wp.base.jar;%WAS_HOME%\wp.engine.impl.jar;%WAS_HOME%\wp.utilities.streams.jar;%WAS_HOME%\j2ee.jar;%WAS_HOME%\com.ibm.ffdc.jar;%cpath% com.ibm.wps.xmlaccess.XmlAccess %* 
+0

我使用的JRE版本6,也试图把它放在C盘,没有成功还@ Crosstalk22 –

+0

所以我是usin ga JRE 8,并且设置了我的bat文件,像这样@echo off set WAS_HOME = C:\ xmlacess \ plugins set cpath =%WAS_HOME%\ com.ibm.ws.runtime.jar set cpath =%cpath %;%WAS_HOME%\ bootstrap.jar set cpath =%cpath%;%WAS_HOME%\ com.ibm.ws.emf.jar set cpath =%cpath%;%WAS_HOME%\ org.eclipse.emf.ecore。 jar set cpath =%cpath%;%WAS_HOME%\ org.eclipse.emf.common.jar %JAVA%-classpath c:\ xmlaccess \ plugins \ wp.xml.client.jar;%WAS_HOME%\ wp。 base.jar;%WAS_HOME%\ wp.engine.impl.jar;%WAS_HOME%\ wp.utilities.streams.jar;%WAS_HOME%\的j2ee.jar;%WAS_HOME%\ com.ibm.ffdc.jar;%则将cpath %com.ibm.wps.xmlaccess.XmlAccess% – Crosstalk22

+0

我把下面的jar放在plugins目录下bootstrap.jar com.ibm.ffdc的.jar com.ibm.ws.emf.jar com.ibm.ws.runtime.jar 的j2ee.jar org.eclipse.emf.common.jar org.eclipse.emf.ecore.jar wp.base .jar wp.engine.impl.jar wp.utilities.streams.jar wp.xml.client.jar – Crosstalk22

相关问题