åé¡çºç
ããã¾ã§ã¯é常ã«é 調ã ã£ãã®ã ãã©ãæè¿åé¡ãçºçããã
ä»åã®éçºããã¸ã§ã¯ãã®ã¿ã¼ã²ããã«ãªãã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã¯JBoss5.1ãªã®ã§ããã¹ãç¨ã®ç°å¢ã«ã³ãã¥ããã£çã®JBoss5.1.0GAãã¤ã³ã¹ãã¼ã«ãã¦ããªã¢ã¼ãã§ãããã¤ãããã¨ããã¨ãããããããã¾ãåããªãã
ãããã¤ã®ããã«ã¯Jenkinsã«Deploy Plugin ã¨ãããã©ã°ã¤ã³ãå
¥ããå¿
è¦ãããã®ã ãã©ãããããããã¤ããããã¨ããéã¨ã©ã¼ã«ãªã£ã¦ããããã ã
ERROR: Publisher hudson.plugins.deploy.DeployPublisher aborted due to exception
org.codehaus.cargo.container.ContainerException: Failed to create deployer with implementation class org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer for the parameters (container [id = [jboss5x]], deployer type [remote]).
at
ï¼ä¸ç¥ï¼
Caused by: org.codehaus.cargo.util.CargoException: Cannot locate the JBoss deployer class! Make sure the jboss-deployer for your
JBoss version as well as all required JBoss JARs are in CARGO's classpath.
More information on: http://cargo.codehaus.org/JBoss+Remote+Deployer
at org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.(JBoss5xRemoteDeployer.java:91)
... 26 more
Caused by: java.lang.ClassNotFoundException: org.codehaus.cargo.tools.jboss.JBossDeployer
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
Deploy Pluginã®å
é¨ã§CARGOã¨ãããJ2EEã³ã³ãããæä½ããããã®ã©ããã¼ã使ç¨ãã¦ãããããªã®ã ãã©ãããã§ä¾å¤ãçºçãã¦ããããã ã
å¾ãã®ã»ãã«ClassNotFoundExceptionã¨ããã®ã§ãä½ãã¯ã©ã¹ã足ãã¦ãªãã®ã ãããã¨æãã試è¡é¯èª¤ã®çµæ以ä¸ã®CARGOé¢é£ã®Jarããã¦ã³ãã¼ããããã©ã°ã¤ã³ã®libãã£ã¬ã¯ããªã«å
¥ãã¦ã¿ãã
ï¼ææ°çã§ãªãã®ã¯ããã©ã°ã¤ã³ã«å
¥ã£ã¦ããä»ã®CARGOé¢é£ã®Jarãã¡ã¤ã«ã¨ãã¼ã¸ã§ã³ãåãããããï¼
- cargo-core-uberjar-1.0.6.jar
- cargo-core-tools-jboss-deployer-5-1.0.6.jar
ããã«ããã¨ã©ã¼ã¡ãã»ã¼ã¸ã¯å¤ãã£ããã®ã®ãä»åº¦ã¯å¥ã®ã¯ã©ã¹ã足ããªãã¨ã¨ã©ã¼ãåºãããã«ãªã£ãã
ERROR: Publisher hudson.plugins.deploy.DeployPublisher aborted due to exception
org.codehaus.cargo.util.CargoException: Cannot deploy deployable org.codehaus.cargo.container.deployable.WAR@17f4804
at org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.deploy(JBoss5xRemoteDeployer.java:116)
at org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.redeploy(JBoss5xRemoteDeployer.java:154)
at hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:64)
ï¼ä¸ç¥ï¼
Caused by: javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory [Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory]
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.(InitialContext.java:197)
at org.codehaus.cargo.tools.jboss.JBossDeployer.getDeploymentManager(JBossDeployer.java:136)
at org.codehaus.cargo.tools.jboss.JBossDeployer.deploy(JBossDeployer.java:63)
at org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.deploy(JBoss5xRemoteDeployer.java:112)
... 18 more
Caused by: java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
ä»åº¦ã¯org.jnp.interfaces.NamingContextFactoryã¨ããã¯ã©ã¹ããªãããã ã
ããã¯ã©ããJBossé¢é£ã®ã¯ã©ã¹ãããã®ã§ãããããJarãå
¥ãã¦ã¿ãã®ã ãã©ããã¾ã®ã¨ãã解決ãã¦ããªãã
æåã®ä¾å¤ã®Stack Traceã«è¡¨ç¤ºããã¦ããURLã®å ãè¦ãã¨ãã³ã³ããã®ã¯ã©ã¹ãã¹ã«ä»¥ä¸ã®Jarãç½®ããã¨æ¸ãã¦ãããããªã®ã§Jboss5.1ã®clientãlibãã£ã¬ã¯ããªã«ããJarãçã£ç«¯ããç½®ãã¦ã¯ã¿ãã®ã ãã©â¦ã
ãJBoss deployment manager JARs
ãJBoss remoting client JARs
ã¡ãªã¿ã«CARGOã®ant taskã§ãåãã¨ã©ã¼ã«ãªãã®ã§ãJenkinsã¨ããããCARGOå´ã§ä½ãåé¡ãèµ·ãã¦ããã®ã ã¨æããï¼ãã¡ããã使ãæ¹å«ãï¼
ä»åã®ã¢ããªã§ãã³ã³ããã«ä¾åãããããªé¨åã¯ã»ã¨ãã©ãªãã®ã§ãTomcatã§ãå ¨ç¶åé¡ã¯ãªãã®ã ãã©â¦ã