无法使用intellj

时间:2018-08-29 08:07:00

标签: intellij-idea web-deployment websphere-liberty

当尝试使用intellij在本地Websphere自由17.0.0.4上启动松散应用程序时,出现以下错误:

Error:Loose application 'xxx:war exploded': org.jdom.IllegalAddException: The element "archive" could not be added as the root of the document: The Content already has an existing parent document

有人知道我能做什么吗?是哪个文件?

我的server.xml:

<?xml version="1.0" encoding="UTF-8"?>
<server description="new server">
  <!-- Enable features -->
  <featureManager>
    <feature>webProfile-7.0</feature>
    <feature>localConnector-1.0</feature>
  </featureManager>
  <!-- To access this server from a remote client add a host attribute to the following element, e.g. host="*" -->
  <httpEndpoint id="defaultHttpEndpoint" httpPort="9080" httpsPort="9443" />
  <!-- Automatically expand WAR files and EAR files -->
  <applicationManager autoExpand="true" />
  <applicationMonitor updateTrigger="mbean" />
  <application id="sbt_jsf_war_exploded" location="C:\Users\x\_projects\x\idea-xxx-liberty\projects\xxx\target\xxx.xml" name="xxx_war_exploded" type="war" >
    <classloader commonLibraryRef="oracleDriver" />
  </application>
  <!-- ORACLE DATABASE -->
  <!-- jdbc driver-->
  <library id="oracleDriver">
    <fileset dir="C:\Users\x\_projects\x\sw\oracle" includes="*.jar" scanInterval="120s" />
  </library>
  <!-- xa datasource -->
  <dataSource id="ORACLE_DS_XA" jndiName="jdbc/sbt/sbt">
    <jdbcDriver libraryRef="oracleDriver" javax.sql.ConnectionPoolDataSource="oracle.jdbc.xa.client.OracleXADataSource" />
    <properties.oracle URL="jdbc:oracle:thin:@localhost:1521:xx1" password="pw" user="user" />
    <connectionManager minPoolSize="1" maxPoolSize="10" />
  </dataSource>
  <keyStore id="defaultKeyStore" password="IhrKennwort" />
</server>

如果您需要更多信息,我可以提供更多信息。

TIA

0 个答案:

没有答案