我有一个由SOAPUI创建的xml项目。我需要使用Java生成war文件。
我找到了提供此功能的类,但是当您创建war文件时,我收到错误。
soapUI 4.5.1-SNAPSHOT War Generator
18:30:27,415 INFO [DefaultSoapUICore] initialized soapui-settings from [/home/natrix82567/soapui-settings.xml]
18:30:27,891 INFO [WsdlProject] Loaded project from [file:/home/natrix82567/Документы/mw-bpweb-auto-07-nc-pb-soapui-project.xml]
18:30:28,141 INFO [WsdlProject] Saved project [api] to [/tmp/api-project.xml - 111525 bytes
18:30:28,142 INFO [SoapUIMockAsWarGenerator] Creating WAR file with endpoint [api]
18:30:28,145 INFO [MockAsWar] Creating WAR directory in [/home/natrix82567]
18:30:28,146 ERROR [JarPackager] /home/natrix82567/My individual project/trunk/TaskSoapUI/../lib or /home/natrix82567/WEB-INF/lib is not directory!
18:30:28,147 INFO [SoapUIMockAsWarGenerator] WAR Generation complete
Exception in thread "SwingWorker" java.lang.NullPointerException
at java.io.File.<init>(File.java:222)
at com.eviware.soapui.tools.MockAsWar.prepareWarFile(MockAsWar.java:214)
at com.eviware.soapui.tools.MockAsWar$1.construct(MockAsWar.java:90)
at com.eviware.soapui.support.swing.SwingWorkerDelegator.construct(SwingWorkerDelegator.java:46)
at com.eviware.soapui.support.swing.SwingWorker$2.run(SwingWorker.java:149)
at java.lang.Thread.run(Thread.java:662)
实际上问题是,为什么他没有看到文件夹WEB-INF目录为和NullPointerException?