Oracleã§ã¢ã¼ã«ã¤ããã°ã大éã«
éç¨ä¸ã®Oracleãã¼ã¿ãã¼ã¹ã§ãå¤éã«ã¢ã¼ã«ã¤ããã°ã大éã«åããã¦åæ¢å¯¸åã«ãªã£ãã
æ®æ®µã®10åãããã®ãµã¤ãºã«ãªã£ã¦ããã
ã¡ãªã¿ã«Oracleã®ãã¼ã¸ã§ã³ã¯11.2.0.1 (SE)ã
æåã¯ãããå¦çã®ä¸å ·åã§ã大éã«ã¬ã³ã¼ããæ´æ°ããã®ã ããã¨æã£ã¦ããããã¢ã¼ã«ã¤ããã°ã®ãµã¤ãºã®ç£è¦ã¹ã¯ãªãããè¦ç´ãã¦ããã¢ã¼ã«ã¤ããã°ãæ¥å¢ããæé帯ã«ãããå¦çãªã©ã¯ã»ã¨ãã©èµ°ã£ã¦ããªãã
ãã ãå½è©²ã®æé帯ã«ãOracleã«ããã©ã«ãã§æå¹ã«ãªã£ã¦ããèªåãã¼ã¿ãã¼ã¹ã»ã¡ã³ããã³ã¹ã»ã¿ã¹ã¯ãèµ°ã£ã¦ããã
Oracleã®èªåãã¼ã¿ãã¼ã¹ã»ã¡ã³ããã³ã¹ã»ã¿ã¹ã¯ã«ã¯ä»¥ä¸ã®ï¼ç¨®é¡ãããã
- ãªããã£ãã¤ã¶çµ±è¨åé(auto optimizer stats collection)
- ã»ã°ã¡ã³ãã»ã¢ããã¤ã¶(auto space advisor)
- SQLãã¥ã¼ãã³ã°ã»ã¢ããã¤ã¶(sql tuning advisor)
æå¾ã®ãSQLãã¥ã¼ãã³ã°ã»ã¢ããã¤ã¶ãã¯ç¡å¹ã«ãªã£ã¦ãããããæªããã®ã¯ããªããã£ãã¤ã¶çµ±è¨åéãã¨ãã»ã°ã¡ã³ãã»ã¢ããã¤ã¶ãã§ããã
ã¢ã¼ã«ã¤ããã°ã大éã«åãããæ¥ã¨åãããªãæ¥ããããããç¹å®ã®ãã¼ãã«ã®çµ±è¨æ
å ±ã失å¹ããã®ãããªã¬ã¼ã§ã¯ï¼ã¨èããã¾ãã¯ããªããã£ãã¤ã¶çµ±è¨åéãããªãã«ãã¦ã¿ãã
BEGIN
dbms_auto_task_admin.disable(
client_name => 'auto optimizer stats collection',
operation => NULL,
window_name => NULL);
END;
/
ããããããã§ã¯æ¹åããªããããããä¸æ¹ã®ãã»ã°ã¡ã³ãã»ã¢ããã¤ã¶ãã®ã»ããç¡å¹åãã¦ã¿ãã¨ãããã¢ã¼ã«ã¤ããã°ã大éã«åãããç¾è±¡ã¯åã¾ã£ãã
BEGIN
dbms_auto_task_admin.disable(
client_name => 'auto space advisor',
operation => NULL,
window_name => NULL);
END;
/
å¾ã§èª¿ã¹ãã¨ãããã©ããç¹å®ã®Oracleã®ãã¼ã¸ã§ã³ã«åå¨ãããã°ã®ããã ã
target-densitydpiã¯ãªããªãã®ï¼
以åæ¥è¨ã«ããã¼ã¸ã®æ¨ªãã¯ã»ã«æ°ã端æ«ã®è§£å度ã«ãããä¸å®ã«ããæ¹æ³ã¨ãã¦ãtarget-densitydpiã使ãæ¹æ³ãç´¹ä»ããã
ããããAndroid4.2以éã§ã¯ããããæ¨æºãã©ã¦ã¶ããªããªããå¤ãã®æ©ç¨®ã§ã¯ããã©ã«ããã©ã¦ã¶ãChromeã«ç½®ãæãã*1ã
ããã«ä¼´ã£ã¦ãå
èµã®WebKitãChromeã§ã¯target-densitydpiãå»æ¢ãããããã ã
http://stackoverflow.com/questions/11592015/support-for-target-densitydpi-is-removed-from-webkit
ã¾ã ã¾ã 4.1以åã®ç«¯æ«ãåå¨ããã®ã§ãå½é¢ã¯ãã©ã¦ã¶ã«ãã£ã¦initial-scaleã§èª¿æ´ããæ¹æ³ã¨åãæ¿ãã¦ä½¿ç¨ãã¹ãã ããã
Androidåããã¼ã¸ã§è§£å度ï¼ç»ç´ æ°ï¼åºå®ããã«ã¯viewportã«densitydpiãæå®ããã®ãããã¿ãã
ã¹ããåãã®Webãã¼ã¸ãã¤ããéããã¼ã¸ã®æ³å®ãã解å度ãæ¡å¤§ã»ç¸®å°ã®å¯å¦ãæå®ããããã«ãmetaã¿ã°ã§viewportãæå®ããã®ãä¸è¬çããã¨ãã°ãããªæãã
<meta name="viewport" content="width=device-width" />
ä¸è¨ã®å ´åãããã¤ã¹ã®è§£å度ã«ãããã¦ã³ã³ãã³ããé ç½®ããããã端æ«ãã¨ã«æ¨ªå¹ ã®ãã¯ã»ã«æ°ãç°ãªãããã®ããã端æ«ã«ãã£ã¦ã¯ãã¾ãã¬ã¤ã¢ã¦ããããªãå ´åãã§ã¦ããã
ããã§ãwidthã®è¨å®ãå¤ãã¦ãã©ã®ç«¯æ«ã§ãæ¨ªå¹ 640ãã¯ã»ã«ç¸å½ã«ãªãããã«æ¡å¤§ã»ç¸®å°è¡¨ç¤ºãããã¨ãã§ããã
<meta name="viewport" content="width=640" />
iOSããã¤ã¹ã®å ´åä¸è¨ã®è¨å®ã§ãã¾ãããï¼ãããï¼ããAndroidã®æ¨æºãã©ã¦ã¶ã¯widthã«ãã¯ã»ã«å¤ãæå®ããéã®åä½ããããããæååã®èªåæ¹è¡ã®ä½ç½®ããããããªã£ããããã
Androidã®å ´åãviewportã«target-densitydpiã¨ãããã©ã¡ã¼ã¿ãç¨æããã¦ããããããããå©ç¨ãã¦ãµã¤ãºèª¿æ´ããã®ãè¯ãããã ã
ããã¯ãã³ã³ãã³ãã表示ããéã«ã1ã¤ã³ããããä½ããã(ãã¯ã»ã«)ããæå®ãããã©ã¡ã¼ã¿ã§ãããã©ã«ãå¤ã¯160dpiã«ãªã£ã¦ããã
横å¹
800ãã¯ã»ã«ã®è§£å度ã®ç«¯æ«ã«ã640ãã¯ã»ã«ã§è¡¨ç¤ºããããã¨ãæ³å®ããã³ã³ãã³ãã表示ãããã¨ããå ´åã160 * 640 / 800 = 128 (dpi)ã«ãªãã
ãããviewportã§è¨è¿°ããã¨ä»¥ä¸ã®ããã«ãªãã
<meta name="viewport" content="width=device-width,target-densitydpi=128" />
ãã ã端æ«ã®è§£å度ã«ããviewportã®æå®ãå¤åãããã«ã¯ããã¼ã¸ãã¼ãæã«JavaScriptã«ããåçã«densitydpiã®å¤ãå¤åãããå¿ è¦ãããã
ããã§ããã¼ã¸ã®å
é ã§ä»¥ä¸ã®ãããªã¹ã¯ãªãããå®è¡ããviewportã®æå®ãæ¸ãæãã¦ã¿ãã
(ä¸é¨jQueryã使ç¨ãã¦ããããã ãmetaã¿ã°ã追å ããã¨ããã¯ãªããjQueryã§ã¯ã§ããªãã£ããããDOMãç´æ¥æä½ãã¦ããï¼
var width = 640; //æå®ããã解å度
var defaultDpi = 160; //ããã©ã«ãå¤
//viewportãå¤æ´ãããããå ã ãã£ãviewportãåé¤
$('meta[name=viewport]').remove();
// jQuery ã§metaã¿ã°ãæä½ã§ããªãã®ã§DOMãç´æ¥å¤æ´
var densityDpi = (defaultDpi * width / screen.width) | 0;
var meta = document.createElement('meta');
meta.setAttribute('name', 'viewport');
meta.setAttribute('content', 'width=device-width, target-densitydpi=' + densityDpi);
document.getElementsByTagName('head')[0].appendChild(meta);
ããã§ç«¯æ«ã®è§£å度ãå¤ãã£ã¦ããæ¨ªå¹ ã¯åä¸ã®ãã¯ã»ã«å¤ã ã¨ãã¦ãã¼ã¸ãã¬ã¤ã¢ã¦ããããã¨ãã§ããããã ã
ã¬ã¹ãã³ã·ãwebãã¶ã¤ã³ã®æ½®æµã«ã¯åããããå¤å°ã®å´©ãã許容ã§ããªããããªå ´åã¯å½¹ã«ãã¤ãã¨ã
Jenkinsã®Deploy PluginããJBoss 5.1ã«ãããã¤ã§ããªãã£ã件ã®ã¤ã¥ã
Jenkinsã®Deploy PluginããJBoss 5.1ã«ãããã¤ã§ããªãã£ã件ã®ã¤ã¥ãã
http://d.hatena.ne.jp/festiva1300/20120713/p2
çµå±ãDeploy Pluginãå©ç¨ããã®ã¯ããããããããã¤å ã®ãã·ã³ãJenkinsã®ã¹ã¬ã¼ãã«ãã¦earãé ç½®ãã¦ããã
JBossã®å ´åãdeployãã£ã¬ã¯ããªã«earãã¡ã¤ã«ãé ç½®ï¼ãããã¯ä¸æ¸ãï¼ããã ãã§åãããã¤ãããããã以ä¸ã®ãããªè¨å®ããã¦èªåãããã¤ãå®ç¾ãã¦ããã
- ãããã¤å ã®ãã·ã³ããç¹å®ã¸ã§ãå°ç¨ãã«ãã¦Jenkinsã®ã¹ã¬ã¼ãã«ãã
- ãã«ãç¨ã®ã¸ã§ãã®ããææç©ãã³ãã¼ããJBossã®deployãã£ã¬ã¯ããªã«é ç½®ããã¹ã¯ãªãããã¸ã§ãï¼ãããã¤ç¨ã®ã¸ã§ãï¼ã«ãã
- ãã«ãç¨ã®ã¸ã§ãã®å¾ç¶å¦çã§ããããã¤ç¨ã®ã¸ã§ããå®è¡ãããããã«ãã
ãã©ã¦ã¶ã®ã¦ã¤ã³ãã¦ãéããåã«è¦åãã
社å ã·ã¹ãã åãã§ããã©ã¦ã¶ã¦ã¤ã³ãã¦ãéãã[Ã]ãã¿ã³ãªã©ã§éãã¦ãã¾ããªãããè¦åãåºãããã¨ããè¦æããã£ãã®ã§ã対å¿ããéã®ã¡ã¢ã
- ã¿ã¤ãã«ãã¼ã®éãããã¿ã³ããã¼ãã¼ãã·ã§ã¼ãã«ããï¼CTRL+Wãªã©ï¼ã§éãããã¨ããã¨ãã«è¦åãã
- ç»é¢ä¸ã®ãã¿ã³ããªã³ã¯ãã¯ãªãã¯ããã¨ãã¯è¦åããªã
ã¦ã¼ã¶ã表示ä¸ã®ç»é¢ããé·ç§»ã¾ãã¯éãããã¨ããéã«è¦åã¡ãã»ã¼ã¸ãåºãããã®ã¤ãã³ãã¨ãã¦ãwindow.onbeforeunload ãããã
window.onbeforeunload = function(e){
return "ã¦ã¤ã³ãã¦ãéãããã¨ãã¦ãã¾ã";
};
ãã ããã®ã¾ã¾ã§ã¯ç»é¢ä¸ã®ãã¿ã³ããªã³ã¯ãã¯ãªãã¯ããéã«ãè¦åãåºã¦ãã¾ãã
ããã§ããã¿ã³ããªã³ã¯ãã¯ãªãã¯ããéã«ã¯ã¡ãã»ã¼ã¸ãåºããªãããã«ã¤ãã³ããã³ãã©ãç½®ãæãã¦ããããã®å¾ã§åã³è¦åãåºãããã«ãã³ãã©ãã»ããããªããã¨ããæ¹æ³ãèããã
ï¼jQueryã使ç¨ãã¦ãã¾ãï¼
function onBeforeUnload(e) {
return 'ã¦ã¤ã³ãã¦ãéãããã¨ãã¦ãã¾ã';
}$(function(){
setTimeout( function() {
window.onbeforeunload = onBeforeUnload;
}, 100);$('a,:input').bind('click', function(){
window.onbeforeunload = function(e) {};
setTimeout( function() {
window.onbeforeunload = onBeforeUnload;
}, 100);
});
});
ãããªæãï¼
StackTraceå ¨æ
ã³ã³ã½ã¼ã«ã«åºã¦ããStackTraceå ¨æã¯ãã¡ãã
CARGOé¢é£ã®Jaré ç½®å
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 org.codehaus.cargo.generic.spi.AbstractGenericHintFactory.createImplementation(AbstractGenericHintFactory.java:157)
at org.codehaus.cargo.generic.spi.AbstractIntrospectionGenericHintFactory.createImplementation(AbstractIntrospectionGenericHintFactory.java:87)
at org.codehaus.cargo.generic.deployer.DefaultDeployerFactory.createDeployer(DefaultDeployerFactory.java:135)
at org.codehaus.cargo.generic.deployer.DefaultDeployerFactory.createDeployer(DefaultDeployerFactory.java:153)
at hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:55)
at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:90)
at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:77)
at hudson.FilePath.act(FilePath.java:788)
at hudson.FilePath.act(FilePath.java:770)
at hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:77)
at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:47)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:700)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:675)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:653)
at hudson.model.Build$RunnerImpl.post2(Build.java:162)
at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:622)
at hudson.model.Run.run(Run.java:1434)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:238)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.codehaus.cargo.generic.deployer.DefaultDeployerFactory.createInstance(DefaultDeployerFactory.java:206)
at org.codehaus.cargo.generic.spi.AbstractGenericHintFactory.createImplementation(AbstractGenericHintFactory.java:153)
... 20 more
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)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.(JBoss5xRemoteDeployer.java:81)
... 26 more
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.codehaus.cargo.generic.deployer.DefaultDeployerFactory.createInstance(DefaultDeployerFactory.java:206)
at org.codehaus.cargo.generic.spi.AbstractGenericHintFactory.createImplementation(AbstractGenericHintFactory.java:153)
at org.codehaus.cargo.generic.spi.AbstractIntrospectionGenericHintFactory.createImplementation(AbstractIntrospectionGenericHintFactory.java:87)
at org.codehaus.cargo.generic.deployer.DefaultDeployerFactory.createDeployer(DefaultDeployerFactory.java:135)
at org.codehaus.cargo.generic.deployer.DefaultDeployerFactory.createDeployer(DefaultDeployerFactory.java:153)
at hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:55)
at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:90)
at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:77)
at hudson.FilePath.act(FilePath.java:788)
at hudson.FilePath.act(FilePath.java:770)
at hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:77)
at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:47)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:700)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:675)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:653)
at hudson.model.Build$RunnerImpl.post2(Build.java:162)
at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:622)
at hudson.model.Run.run(Run.java:1434)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:238)
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)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.(JBoss5xRemoteDeployer.java:81)
... 26 more
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)
at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:90)
at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:77)
at hudson.FilePath.act(FilePath.java:788)
at hudson.FilePath.act(FilePath.java:770)
at hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:77)
at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:47)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:700)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:675)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:653)
at hudson.model.Build$RunnerImpl.post2(Build.java:162)
at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:622)
at hudson.model.Run.run(Run.java:1434)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:238)
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)
at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:46)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:654)
... 24 more
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)
at org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.redeploy(JBoss5xRemoteDeployer.java:154)
at hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:64)
at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:90)
at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:77)
at hudson.FilePath.act(FilePath.java:788)
at hudson.FilePath.act(FilePath.java:770)
at hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:77)
at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:47)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:700)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:675)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:653)
at hudson.model.Build$RunnerImpl.post2(Build.java:162)
at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:622)
at hudson.model.Run.run(Run.java:1434)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:238)
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)
at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:46)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:654)
... 24 more
åé¡çºç
ããã¾ã§ã¯é常ã«é 調ã ã£ãã®ã ãã©ãæè¿åé¡ãçºçããã
ä»åã®éçºããã¸ã§ã¯ãã®ã¿ã¼ã²ããã«ãªãã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã¯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ã§ãå ¨ç¶åé¡ã¯ãªãã®ã ãã©â¦ã