JNLP代表Java网络启动协议。它是基于XML的文件的格式,用于配置使用Java Web Start启动的应用程序和applet的详细信息。
org.codehaus.mojo:webstart-maven-plugin:1.0-beta-7:jnlp-download-servlet 失败的原因可能是什么?
我们的pom.xml是: 4.0.0 com.我们的 我们的pom.xml是: <?xml version="1.0" encoding="UTF-8"?> <project> <modelVersion>4.0.0</modelVersion> <parent> <groupId>com.our</groupId> <artifactId>our.control</artifactId> <version>1.20.2.7</version> </parent> <artifactId>our.gui-client.webstart</artifactId> <name>our.gui-client.webstart</name> <packaging>war</packaging> <dependencies> <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.5</version> <scope>provided</scope> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <configuration> <webResources> <resource> <directory>webstatic</directory> <filtering>true</filtering> <includes> <include>**/*.html</include> </includes> </resource> <resource> <directory>webstatic</directory> <filtering>false</filtering> <excludes> <exclude>**/*.html</exclude> </excludes> </resource> </webResources> </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>webstart-maven-plugin</artifactId> <version>1.0-beta-7</version> <executions> <execution> <phase>prepare-package</phase> <goals> <goal>jnlp-download-servlet</goal> </goals> </execution> </executions> <configuration> <outputDirectoryName>webstart</outputDirectoryName> <outputJarVersions>false</outputJarVersions> <jnlpFiles> <jnlpFile> <templateFilename>template.vm</templateFilename> <outputFilename>our.jnlp</outputFilename> <jarResources> <jarResource> <groupId>com.our</groupId> <artifactId>our.gui-client</artifactId> <version>${project.version}</version> <mainClass>com.our.control.guiclient.MainApp</mainClass> </jarResource> </jarResources> </jnlpFile> </jnlpFiles> <sign> <keystore>${project.build.directory}/keyStore</keystore> <keypass>our</keypass> <storepass>our</storepass> <alias>webstart</alias> <storetype>jks</storetype> <validity>3650</validity> <dnameCn>our.com</dnameCn> <dnameOu>None</dnameOu> <dnameO>SIA</dnameO> <dnameL>L</dnameL> <dnameSt>St</dnameSt> <dnameC>C</dnameC> <keystoreConfig> <delete>true</delete> <gen>true</gen> </keystoreConfig> <verify>true</verify> </sign> <updateManifestEntries> <Trusted-Library>true</Trusted-Library> <Permissions>all-permissions</Permissions> <Codebase>*</Codebase> </updateManifestEntries> </configuration> </plugin> </plugins> </build> </project> 堆栈跟踪是 org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:webstart-maven-plugin:1.0-beta-7:jnlp-download-servlet (default) on project our.control.gui-client.webstart: Execution default of goal org.codehaus.mojo:webstart-maven-plugin:1.0-beta-7:jnlp-download-servlet failed. at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:347) at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:330) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:175) at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:76) at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:163) at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:160) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:827) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:272) at org.apache.maven.cli.MavenCli.main (MavenCli.java:195) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347) Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default of goal org.codehaus.mojo:webstart-maven-plugin:1.0-beta-7:jnlp-download-servlet failed. at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:133) at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:342) at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:330) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:175) at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:76) at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:163) at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:160) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:827) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:272) at org.apache.maven.cli.MavenCli.main (MavenCli.java:195) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347) Caused by: java.lang.NullPointerException at org.codehaus.mojo.webstart.util.DefaultArtifactUtil.artifactContainsClass (DefaultArtifactUtil.java:211) at org.codehaus.mojo.webstart.JnlpDownloadServletMojo.resolveJarResources (JnlpDownloadServletMojo.java:490) at org.codehaus.mojo.webstart.JnlpDownloadServletMojo.execute (JnlpDownloadServletMojo.java:180) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126) at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:342) at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:330) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:175) at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:76) at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:163) at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:160) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:827) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:272) at org.apache.maven.cli.MavenCli.main (MavenCli.java:195) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347) [ERROR] [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <args> -rf :our.control.gui-client.webstart [DEBUG] Shutting down adapter factory; available factories [file-lock, rwlock-local, semaphore-local, noop]; available name mappers [discriminating, file-gav, file-hgav, file-static, gav, static] 如果发生循环依赖就会出现这种情况! <jarResources> <jarResource> <groupId>com.our</groupId> <artifactId>our.gui-client</artifactId> <version>${project.version}</version> <mainClass>com.our.control.guiclient.MainApp</mainClass> </jarResource> </jarResources> 这个罐子正在提供另一个 pom,它正在提供当前的兴趣 pom。因此,从技术上讲,它的工作原理就像一个圆形罐子,但不幸的是错误消息并不全面
词汇表 V = {w1, w2, w3} 和 V × V 上的二元概率分布 p 由下式给出:p(w1, w1)
给定以下数据:词汇表 V = {w1, w2, w3} 和二元词 V × V 上的概率分布 p 由下式给出:p(w1, w1) = 0.25, p(w2, w2) = 0.0, p(w3, w3) = 0.25, p(w2, w1) = 0.125, p(...
K8S - 将 Pod 定义从 Jenkins GUI 切换到 yaml 文件会导致自定义 jnlp 容器出错
我目前正在努力为运行 Jenkins 管道的 K8s 集群设置适当的 yaml 配置(见下文)。 到目前为止,整个配置都是在 Jenkins UI 中设置的,de...
OpenWebStart 和 log4j2 的 Java webstart 应用程序安全问题
我正在将一些自动签名的 WebStart (WS) 应用程序从 Oracle 的 Java 8 迁移到 OpenJDK11+OpenWebStart。但是我在迁移后遇到了奇怪的 java.io.FilePermission 错误(在其他世界......
无法使用 JVM 1.17 在打开的 Web 上打开我的 jnlp 文件,但我可以使用 JVM 1.8 打开它
当我尝试使用 JVM 1.17 打开我的 jnlp 文件时,出现以下错误。 net.sourceforge.jnlp.LaunchException:致命:启动错误:无法启动 JNLP fi ...
如何在JDK 14下运行Topcoder Arena小程序?
我刚刚下载了Topcoder Arena小程序,但我无法启动它。我使用的是Windows 8.1x64上的JDK 14。我尝试了以下方法。1) javaw ContestAppletProd.jnlp 什么也没做。2) java ...
现在,我发现了两种创建Jenkins Slave或Jenkins Workers的可能解决方案:使用SSH-Slave插件和JNLP现在是我的问题:什么是更好/更稳定的解决方案,为什么?我发现...
我发现了很多有关自动化Eclipse PDE流程的资料。我觉得这些消息来源并不能很好地解释正在发生的事情。我可以使用半手动方式创建可部署的程序包...
连接到正在运行的JavaWebStart,Oracle Forms 12c App [性能测试]
直到现在,我一直在使用Oracle负载测试对Oracle Forms应用程序进行负载测试。现在我们要更改我们的应用程序,新的应用程序将是Java Web Start应用程序-将从.jnlp ...
def custom1(input):List1 = []对于输入中的i:List1.append(i)返回List1 vectorizer = TfidfVectorizer(tokenizer = custom1)拟合我的矢量化器之后。但是,当我...
我正在尝试用Java Web Start应用程序替换我的所有Applet。我遇到的问题是,我还没有看到将codebase属性指定为目录的任何示例...
如何在无头远程Linux服务器上运行应用程序并在本地Windows机器上查看UI
我有一个swing应用程序,该应用程序接收一些输入文件,对其进行操作,并在其UI中显示它。目前,我有一台远程无头Linux机器,其中的数据文件(每天更改)。所以...
我们已将Jenkins服务器配置为使用固定端口和JNLP4。我们的信息安全团队已标明,如果要打开一个指向JNLP端口的Web浏览器,则下面的内部属性为...]]] >>
我有一个使用webstart的应用程序,其中属性以形式传递。但是由于我将jre升级为更新45,所以它不再起作用。更新40正常运行。我看不到...
如何确保GKE中的Jenkins从服务器与其主服务器安全通信?
我打算在安装程序中使用Jenkins Kubernetes插件,该安装程序将VM上具有主服务器和从服务器的现有Jenkins安装程序拆分为当前设置中剩余的主服务器,而从服务器则为...] >> [[
JNLP应用程序失败,并出现有关丢失jniwrap64.dll的错误
我有一个JNLP应用程序,该应用程序失败并出现以下错误:在java.library.path中找不到JNIWrapper本机库(jniwrap64.dll):...。我安装了Java 8 64位并使用IE11。任何...
OpenJDK-IceTeaWeb不支持DownloadService2服务
我的公司最近已迁移到OpenJDK平台。但是其中一个应用程序(JNLP)使用WebStart,我尝试安装IcedTeaWeb,但似乎不支持缓存管理类DownloadService2 ...
如何在Google App Engine中运行Java应用程序?
我创建了一个简单的Java应用程序,其中包含按钮,文本字段等。 我已经为其创建了JAR文件和JNLP文件,并由Jarsigner对其进行了签名。 现在,我希望...
如果双击JNLP文件来启动,则如何允许JAVA Web Start应用程序访问macOS Catalina上的文件系统?
使用macOS Catalina,我们遇到以下问题:双击JNLP文件启动应用程序时,以及通过...启动时,打开Java Web Start应用程序的行为会有所不同。]]
我有一个桌面应用程序,我想使用JAVA Web start启动该应用程序。当我第一次使用浏览器启动时它工作正常,它将下载在...中定义的所有罐子