build.xml file的配置
<java classpath="${weblogic.lib.home}/weblogic.jar"
classname="weblogic.Deployer"
fork="yes"
maxmemory="256m">
<arg line="-username user
-password 123456789
-adminurl t3://localhost:7001
-name TextObject
-undeploy" />
</java>错误提示:
t3://localhost:7001不能连接 invalid type code :CE. URL是表示执行中的管理server,确认正确的认证资格。如果换为weblogic用户,invalid type code :88.错误。总之,就是想利用ant,达到自动编译,自动部署到weblogic中。
<java classpath="${weblogic.lib.home}/weblogic.jar"
classname="weblogic.Deployer"
fork="yes"
maxmemory="256m">
<arg line="-username user
-password 123456789
-adminurl t3://localhost:7001
-name TextObject
-undeploy" />
</java>错误提示:
t3://localhost:7001不能连接 invalid type code :CE. URL是表示执行中的管理server,确认正确的认证资格。如果换为weblogic用户,invalid type code :88.错误。总之,就是想利用ant,达到自动编译,自动部署到weblogic中。
I got past this, now on to another weird bug I'll have to google for. Quoting solution I found:
Adding this VM argument to client JVM preserves the backward compatible behavior of loadClass() and provides a workaround without patching JDK or WebLogic server:
-Dsun.lang.ClassLoader.allowArraySyntax=true
http://forums.oracle.com/forums/thread.jspa?messageID=3018525