/**
* 字符串,生成xml文件
* @param str
* @param fileName
* @throws IOException
*/
public void strChangeXML(String str,String fileName ) throws IOException {
SAXReader saxReader = new SAXReader();
Document document;
try {
document = saxReader.read(new ByteArrayInputStream(str.getBytes()));
OutputFormat format = OutputFormat.createPrettyPrint();
/** 指定XML字符集编码 */
format.setEncoding("UTF-8");
/** 将document中的内容写入文件中 */
XMLWriter writer = new XMLWriter(new FileWriter(new File(fileName)),format);
writer.write(document);
writer.close();
} catch (DocumentException e) {
// TODOAuto-generatedcatchblock
logger.error(e.getMessage());
}
}
webSphere配置问题
1:在安装升级时候会弹出一个“请找到.....软件维护.pak路径”,这只要选好你那个pak文件放在什么地方就行了
2:新建数据源的配置问题,作用域:cell:xp-201211160925cell01:nodes:节点名。提供程序:Oracle JDBC Driver。名称:自己取(比如说funds5)。JNDI名称:jdbc/funds5。描述:New JDBC DataSource
。help类名:Oracle10g数据库..。容器认证:xp-201211160925cellManager01/funds5.数据属性:jdbc:oracle:thin:@192.168.10.98:1521:orcl
。。。。。。。。。。。。。。。。。
版权原因,完整文章,请参考如下:webSphere配置问题