使用mysql驱动程序将WAR部署到CloudBees上的Glassfish4时出错

时间:2014-01-16 11:29:34

标签: mysql deployment war cloudbees glassfish-4

我正在尝试在CloudBees Glassfish4服务器上部署WAR。我按照http://developer.cloudbees.com/bin/view/RUN/Glassfish4底部的说明将jar包含在META-INF / lib目录中。

部署时:

bees app:deploy target/app.war -a myDomain/app -t glassfish4-full

我收到错误:

错误:Server.InternalError - java.lang.IllegalArgumentException:平台错误 -

plugin_setup_error: glassfish4-full 1 [main] INFO com.cloudbees.clickstack.glassfish.Setup - Setup clickstack com.cloudbees.clickstack:glassfish-clickstack:4-full-1.0.2 - 2013-12-12T13:06:29.572+0100, current dir /mnt/genapp/apps/1cabb3f9/.
[main] INFO com.cloudbees.clickstack.glassfish.Setup - Setup: Environment{, 
 appUser='app_1cabb3f9', 
 appId='1cabb3f9', 
 appPort=8336, 
 appDir=/var/genapp/apps/1cabb3f9, 
 logDir=/var/genapp/apps/1cabb3f9/.genapp/log, 
 genappDir=/var/genapp/apps/1cabb3f9/.genapp, 
 controlDir=/var/genapp/apps/1cabb3f9/.genapp/control, 
 clickstackDir=/mnt/genapp-tmp/genapp-remote-plugin-1389871636905879, 
 packageDir=/mnt/genapp-tmp/stax-genapp-1389871636.236927/app, 
}, com.cloudbees.clickstack.domain.metadata.Metadata@385cbbb1
Exception in thread "main" java.lang.Exception: Exception deploying on 10.159.35.35
    at com.cloudbees.clickstack.glassfish.Setup.main(Setup.java:147)
Caused by: java.lang.IllegalArgumentException
    at com.sun.nio.zipfs.ZipPath.relativize(ZipPath.java:238)
    at com.cloudbees.clickstack.util.Files2$3.visitFile(Files2.java:188)
    at com.cloudbees.clickstack.util.Files2$3.visitFile(Files2.java:184)
    at java.nio.file.FileTreeWalker.walk(Unknown Source)
    at java.nio.file.FileTreeWalker.walk(Unknown Source)
    at java.nio.file.FileTreeWalker.walk(Unknown Source)
    at java.nio.file.Files.walkFileTree(Unknown Source)
    at java.nio.file.Files.walkFileTree(Unknown Source)
    at com.cloudbees.clickstack.util.Files2.unzipSubDirectoryIfExists(Files2.java:184)
    at com.cloudbees.clickstack.util.ApplicationUtils.extractContainerExtraLibs(ApplicationUtils.java:49)
    at com.cloudbees.clickstack.glassfish.Setup.installApplication(Setup.java:259)
    at com.cloudbees.clickstack.glassfish.Setup.setup(Setup.java:154)
    at com.cloudbees.clickstack.glassfish.Setup.main(Setup.java:139)

2 个答案:

答案 0 :(得分:0)

我收到了CloudBees支持的回复。

http://developer.cloudbees.com/bin/view/RUN/Glassfish4处的文档错误,您不需要在项目中包含mysql连接器。

答案 1 :(得分:0)

我在支持平台上回复了你。我们修复了“glassfish4-full”和“glassfish4”(web profile)ClickStacks上的错误。

很抱歉给您带来不便,

西里尔

Clickstacks发行说明: