Am migrating my application to JBOSS5 from JBOSS4
I get the below exception while doing so
I did all to make it work, replaced with new log4j, tried without log4j, changed common-logging jar.
But still am facing this exception. Appreciate your help on this.
Also, in my project they are maintaing JARS in three folders for some purpose 1.) webapp/lib 2.) common/lib 3.) services/lib
Am pasting here list of jars in each folder here
1.) WEBAPP/LIB folder
03/08/2012 06:54 PM <DIR> .
03/08/2012 06:54 PM <DIR> ..
03/01/2012 02:24 PM 458,647 admin.jar
03/01/2012 02:24 PM 49,170 bootstrap.jar
03/01/2012 02:24 PM 5,956 channel.jfap.jar
03/01/2012 02:24 PM 246,395 channel.tcp.jar
03/01/2012 02:24 PM 303,805 channelfw.jar
03/01/2012 02:25 PM 188,671 commons-beanutils-1.7.0.jar
03/01/2012 02:24 PM 31,909 commons-fileupload-1.1.1.jar
03/01/2012 02:23 PM 65,621 commons-io-1.2.jar
03/01/2012 02:24 PM 245,274 commons-lang-2.3.jar
03/08/2012 06:54 PM 55,423 commons-logging.jar
03/01/2012 02:24 PM 534,203 dom4j-full.jar
03/01/2012 02:24 PM 2,124,154 emf.jar
03/01/2012 02:24 PM 90,193 ffdc.jar
03/01/2012 02:24 PM 802,494 freemarker-2.3.8.jar
03/01/2012 02:23 PM 892,456 ibmorb.jar
03/01/2012 02:23 PM 1,500,466 idl.jar
03/01/2012 02:24 PM 411,400 j2cImpl.jar
03/01/2012 02:24 PM 140,745 j2cIntf.jar
03/08/2012 03:17 PM 372,224 log4j.jar
03/01/2012 02:24 PM 140,592 naming.jar
03/01/2012 02:24 PM 318,980 namingclient.jar
03/01/2012 02:24 PM 167,958 ognl-2.6.9.jar
03/01/2012 02:24 PM 695,816 pmi.jar
03/01/2012 02:24 PM 3,246 pmirm-sib.jar
03/01/2012 02:24 PM 331,712 quartz-1.5.0.jar
03/01/2012 02:24 PM 450,121 ras.jar
03/01/2012 02:24 PM 383,227 rsadapterspi.jar
03/01/2012 02:23 PM 445,493 runtime.jar
03/01/2012 02:24 PM 85,758 runtimefw.jar
03/01/2012 02:23 PM 4,148,686 sib.common.jar
03/01/2012 02:24 PM 572,695 sibws.jar
03/01/2012 02:24 PM 12,628 struts2-api-2.0.5.jar
03/01/2012 02:23 PM 2,206,214 struts2-core-2.0.5.jar
03/01/2012 02:25 PM 13,909 struts2-sitemesh-plugin-2.0.5.jar
03/01/2012 02:23 PM 16,105 tcss-batch_1.0.jar
03/08/2012 03:12 PM 71,435 tcss-stub.jar
03/01/2012 02:24 PM 21,838 txClient.jar
03/01/2012 02:24 PM 53,565 txClientPrivate.jar
03/01/2012 02:25 PM 343,292 utils.jar
03/01/2012 02:24 PM 9,675,478 wccm_base.jar
03/01/2012 02:24 PM 354 websphere-jars.txt
03/01/2012 02:24 PM 5,799 wsexception.jar
03/08/2012 03:20 PM 139,889 XmlSchema-1.4.2.jar
03/01/2012 02:24 PM 448,273 xwork-2.0.0.jar
44 File(s) 29,272,269 bytes
2 Dir(s) 156,930,625,536 bytes free
2.) COMMON/LIB folder
03/08/2012 06:51 PM <DIR> .
03/08/2012 06:51 PM <DIR> ..
03/01/2012 02:11 PM 327,810 backport-util-concurrent-3.0.jar
03/01/2012 02:11 PM 610,790 c3p0-0.9.1.2.jar
03/01/2012 02:11 PM 2,686 c3p0-oracle-thin-extras-0.9.1.2.jar
03/01/2012 02:11 PM 174,535 commons-math-1.1.jar
03/01/2012 02:11 PM 534,203 dom4j-full-1.3.jar
03/01/2012 02:11 PM 243,457 ehcache-1.4.0.jar
03/01/2012 02:11 PM 50,626 ejb3-persistence-3.0.jar
03/01/2012 02:11 PM 338,447 hibernate-annotations-3.2.0.CR1.jar
03/01/2012 02:11 PM 338,447 hibernate-annotations.jar
03/01/2012 02:11 PM 97,570 hibernate-entitymanager-3.2.0.CR1.jar
03/01/2012 02:11 PM 97,570 hibernate-entitymanager.jar
03/01/2012 02:11 PM 2,112,010 hibernate3-3.2.0.cr2.jar
03/01/2012 02:11 PM 2,112,010 hibernate3.jar
03/01/2012 02:11 PM 4,498,893 icu4j-3_8_1.jar
03/01/2012 02:11 PM 143,792 jsch-0.1.34.jar
03/01/2012 02:11 PM 8,277 jsr107cache-1.0.jar
03/01/2012 02:11 PM 1,941,501 jython-2.2.1.jar
03/08/2012 03:17 PM 372,224 log4j.jar
03/01/2012 02:11 PM 1,545,954 ojdbc14.zip
03/08/2012 06:51 PM 70,516 tcss-stub.jar
03/08/2012 03:20 PM 139,889 XmlSchema-1.4.2.jar
3.) SERVICES/LIB folder
03/08/2012 06:53 PM <DIR> .
03/08/2012 06:53 PM <DIR> ..
03/01/2012 02:08 PM 62,983 activation-1.1.jar
03/01/2012 02:09 PM 248,639 annogen-0.1.0.jar
03/05/2012 02:22 PM 427,742 axiom-api-1.2.11.jar
03/05/2012 02:22 PM 159,057 axiom-dom-1.2.11.jar
03/05/2012 02:22 PM 122,415 axiom-impl-1.2.11.jar
03/05/2012 02:20 PM 689,180 axis2-adb-1.6.0.jar
03/05/2012 02:20 PM 179,618 axis2-adb-codegen-1.6.0.jar
03/05/2012 02:20 PM 18,269 axis2-ant-plugin-1.6.0.jar
03/05/2012 02:20 PM 96,876 axis2-clustering-1.6.0.jar
03/05/2012 02:20 PM 254,358 axis2-codegen-1.6.0.jar
03/05/2012 02:20 PM 147,166 axis2-corba-1.6.0.jar
03/05/2012 02:20 PM 16,422 axis2-fastinfoset-1.6.0.jar
03/05/2012 02:20 PM 27,739 axis2-java2wsdl-1.6.0.jar
03/05/2012 02:20 PM 28,679 axis2-jaxbri-1.6.0.jar
03/05/2012 02:20 PM 741,267 axis2-jaxws-1.6.0.jar
03/05/2012 02:20 PM 35,725 axis2-jibx-1.6.0.jar
03/05/2012 02:20 PM 19,184 axis2-json-1.6.0.jar
03/05/2012 02:20 PM 1,040,584 axis2-kernel-1.6.0.jar
03/05/2012 02:20 PM 430,582 axis2-metadata-1.6.0.jar
03/05/2012 02:20 PM 13,728 axis2-mtompolicy-1.6.0.jar
03/05/2012 02:20 PM 89,063 axis2-saaj-1.6.0.jar
03/05/2012 02:20 PM 33,739 axis2-soapmonitor-servlet-1.6.0.jar
03/05/2012 02:20 PM 11,453 axis2-spring-1.6.0.jar
03/08/2012 03:07 PM 284,405 axis2-transport-all-1.0.0.jar
03/05/2012 02:20 PM 152,386 axis2-transport-http-1.6.0.jar
03/05/2012 02:20 PM 16,106 axis2-transport-local-1.6.0.jar
03/05/2012 02:20 PM 26,613 axis2-xmlbeans-1.6.0.jar
03/01/2012 02:08 PM 331,716 backport-util-concurrent-3.1.jar
03/01/2012 02:09 PM 46,725 commons-codec-1.3.jar
03/01/2012 02:09 PM 53,082 commons-fileupload-1.2.jar
03/01/2012 02:08 PM 305,001 commons-httpclient-3.1.jar
03/01/2012 02:08 PM 109,043 commons-io-1.4.jar
03/08/2012 06:53 PM 55,423 commons-logging.jar
03/01/2012 02:08 PM 12,232 geronimo-annotation_1.0_spec-1.1.jar
03/01/2012 02:09 PM 28,804 geronimo-stax-api_1.0_spec-1.0.1.jar
03/01/2012 02:08 PM 168,160 httpcore-4.0-beta1.jar
03/01/2012 02:08 PM 152,058 httpcore-nio-4.0-beta1.jar
03/01/2012 02:09 PM 1,335,669 jalopy-1.5rc3.jar
03/01/2012 02:08 PM 54,187 jettison-1.0-RC2.jar
03/05/2012 02:20 PM 407,900 jibx-bind-1.2.jar
03/05/2012 02:20 PM 128,520 jibx-run-1.2.jar
03/08/2012 03:17 PM 372,224 log4j.jar
03/01/2012 02:08 PM 388,864 mail-1.4.jar
03/01/2012 02:09 PM 34,750 mex-1.4.1.jar
03/05/2012 02:20 PM 34,162 neethi-2.0.5.jar
03/01/2012 02:08 PM 32,108 soapmonitor-1.4.1.jar
03/01/2012 02:09 PM 149,442 woden-api-1.0M8.jar
03/01/2012 02:09 PM 225,594 woden-impl-dom-1.0M8.jar
03/01/2012 02:08 PM 148,429 wsdl4j-1.6.2.jar
03/01/2012 02:09 PM 520,092 wstx-asl-3.2.4.jar
03/08/2012 03:20 PM 139,889 XmlSchema-1.4.2.jar
51 File(s) 10,608,052 bytes
2 Dir(s) 156,930,625,536 bytes free
And here goes the real exception
java.lang.ExceptionInInitializerError
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 java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:264)
at org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:256)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:220)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:332)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:90)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3783)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4413)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
at $Proxy38.start(Unknown Source)
at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
at org.jboss.system.ServiceController.start(ServiceController.java:460)
at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
at org.jboss.Main.boot(Main.java:221)
at org.jboss.Main$1.run(Main.java:556)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.apache.commons.logging.LogConfigurationException: User-specified log class 'org.apache.commons.logging.impl.Log4JLogger' cannot be found or is not useable.
at org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:798)
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:601)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:333)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:307)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:645)
at org.apache.struts2.dispatcher.FilterDispatcher.<clinit>(FilterDispatcher.java:151)
... 81 more
Try to change :
<property name="filteredPackages">javax.servlet,org.apache.commons.logging</property>
By
<property name="filteredPackages">javax.servlet</property>
in JBOSS_HOME/server/name/deployers/jbossweb.deployer/META-INF/war-deployers-jboss-beans.xml
Tell me if it resolves your problem.
Related
I tried all the possible solutions available online. Changed my token with all permissions. Changed the gitlab connection with latest token. Still pipelines in gitlab shows the pending status. These are the logs from jenkins.
Mar 23, 2022 5:37:19 PM INFO com.dabsquared.gitlabjenkins.util.CommitStatusUpdater retrieveGitlabProjectIds
Retrieving gitlab project ids
Mar 23, 2022 5:37:19 PM WARNING com.dabsquared.gitlabjenkins.util.CommitStatusUpdater retrieveGitlabProjectIds
No gitlab client found.
Mar 23, 2022 5:38:13 PM INFO com.dabsquared.gitlabjenkins.util.CommitStatusUpdater retrieveGitlabProjectIds
Retrieving gitlab project ids
Mar 23, 2022 5:38:13 PM WARNING com.dabsquared.gitlabjenkins.util.CommitStatusUpdater retrieveGitlabProjectIds
No gitlab client found.
Mar 23, 2022 5:38:13 PM INFO com.dabsquared.gitlabjenkins.util.CommitStatusUpdater retrieveGitlabProjectIds
Retrieving gitlab project ids
Mar 23, 2022 5:38:13 PM WARNING com.dabsquared.gitlabjenkins.util.CommitStatusUpdater retrieveGitlabProjectIds
No gitlab client found.
Mar 23, 2022 5:38:14 PM INFO com.dabsquared.gitlabjenkins.util.CommitStatusUpdater retrieveGitlabProjectIds
Retrieving gitlab project ids
Mar 23, 2022 5:38:14 PM WARNING com.dabsquared.gitlabjenkins.util.CommitStatusUpdater retrieveGitlabProjectIds
No gitlab client found.
Mar 23, 2022 5:38:14 PM INFO com.dabsquared.gitlabjenkins.util.CommitStatusUpdater retrieveGitlabProjectIds
Retrieving gitlab project ids
Mar 23, 2022 5:38:14 PM WARNING com.dabsquared.gitlabjenkins.util.CommitStatusUpdater retrieveGitlabProjectIds
No gitlab client found.
Mar 23, 2022 5:38:14 PM INFO com.dabsquared.gitlabjenkins.util.CommitStatusUpdater retrieveGitlabProjectIds
Retrieving gitlab project ids
Mar 23, 2022 5:38:14 PM WARNING com.dabsquared.gitlabjenkins.util.CommitStatusUpdater retrieveGitlabProjectIds
No gitlab client found.
Mar 23, 2022 5:38:15 PM INFO org.jenkinsci.plugins.workflow.job.WorkflowRun finish
multi/pipelines-check #79 completed: SUCCESS
Mar 23, 2022 5:38:15 PM INFO io.jenkins.plugins.generic.event.HttpEventSender send
Skipped event sending due to receiver URL not set
Mar 23, 2022 5:38:16 PM WARNING jenkins.util.Listeners lambda$notify$0
null
java.lang.NullPointerException
at io.jenkins.plugins.gitlabbranchsource.helpers.GitLabPipelineStatusNotifier.lambda$getStatusName$0(GitLabPipelineStatusNotifier.java:102)
at java.logging/java.util.logging.Logger.log(Logger.java:1050)
at io.jenkins.plugins.gitlabbranchsource.helpers.GitLabPipelineStatusNotifier.getStatusName(GitLabPipelineStatusNotifier.java:101)
at io.jenkins.plugins.gitlabbranchsource.helpers.GitLabPipelineStatusNotifier.getStatusName(GitLabPipelineStatusNotifier.java:84)
at io.jenkins.plugins.gitlabbranchsource.helpers.GitLabPipelineStatusNotifier.logComment(GitLabPipelineStatusNotifier.java:178)
at io.jenkins.plugins.gitlabbranchsource.helpers.GitLabPipelineStatusNotifier.access$500(GitLabPipelineStatusNotifier.java:52)
at io.jenkins.plugins.gitlabbranchsource.helpers.GitLabPipelineStatusNotifier$JobCompletedListener.onCompleted(GitLabPipelineStatusNotifier.java:484)
at hudson.model.listeners.RunListener.lambda$fireCompleted$0(RunListener.java:207)
at jenkins.util.Listeners.lambda$notify$0(Listeners.java:59)
at jenkins.util.Listeners.notify(Listeners.java:67)
at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:205)
at org.jenkinsci.plugins.workflow.job.WorkflowRun.finish(WorkflowRun.java:627)
at org.jenkinsci.plugins.workflow.job.WorkflowRun.access$800(WorkflowRun.java:138)
at org.jenkinsci.plugins.workflow.job.WorkflowRun$GraphL.onNewHead(WorkflowRun.java:1049)
at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.notifyListeners(CpsFlowExecution.java:1474)
at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$3.run(CpsThreadGroup.java:497)
at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$1.run(CpsVmExecutorService.java:38)
at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:139)
at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
JENKINSFILE:
pipeline {
agent {label 'xxx'}
options {
gitLabConnection('xxx')
}
stages {
stage('Code') {
steps {
gitlabCommitStatus(connection: gitLabConnection(gitLabConnection: 'xxx', jobCredentialId: 'xxx-xxx-xxx-xxx-xxxxx', useAlternativeCredential: true), name: 'Code_checkout') {
checkout([$class: 'GitSCM', branches: [[name: '*/develop']], extensions: [[$class: 'GitLFSPull'], [$class: 'RelativeTargetDirectory', relativeTargetDir: 'xxxxxx']], userRemoteConfigs: [[url: 'git#gitlab.com:xxxxx/xxxxxx/root.git']]])
sh'''
cd xxxxxxxxx
git submodule update --init --recursive
cd /home/jenkins/jenkins_slave/workspace/ROOT/vds
git checkout develop
git pull
cd xxxxxxxxxxx
'''
}
}
}
stage('Testing') {
steps {
gitlabCommitStatus(connection: gitLabConnection(gitLabConnection: 'xxxxxx', jobCredentialId: 'xxxxxxx', useAlternativeCredential: true), name: 'Testing') {
echo "checking"
}
}
}
}
all the code checkout part and testing part is happening in shell
You can use these two parameters in optionsblock
options {
gitLabConnection('gitlab')
gitlabBuilds(builds: ['build'])
}
and in post section you can use the updateGitlabCommitStatus like this
post {
failure {
updateGitlabCommitStatus name: 'build', state: 'failed'
}
unstable {
updateGitlabCommitStatus name: 'build', state: 'failed'
}
aborted {
updateGitlabCommitStatus name: 'build', state: 'canceled'
}
success {
updateGitlabCommitStatus name: 'build', state: 'success'
}
always {
}
}
For info checkout this section https://github.com/jenkinsci/gitlab-plugin/blob/master/README.md
I have got ISPConfig installed on my VPS and I'm trying to set up the email function.
My Server IP is 146.71.76.30 and hostname is set to dutyhosts.tk
Whenever I try and send an email via Roundcube I am getting the below error in the mail logs
Can someone advise on what I have missed or need to sort?
Aug 25 12:44:06 dutyhosts dovecot: imap-login: Login: user=<support#dutyhosts.tk>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=11098, secured, session=<DBQKD7Otrtx/AAAB>
Aug 25 12:44:06 dutyhosts postfix/pickup[10367]: A6C04A558D: uid=33 from=<support#dutyhosts.tk>
Aug 25 12:44:06 dutyhosts dovecot: imap(support#dutyhosts.tk): Logged out in=451 out=640
Aug 25 12:44:06 dutyhosts postfix/cleanup[11095]: warning: connect to Milter service inet:localhost:11332: Connection refused
Aug 25 12:44:06 dutyhosts postfix/cleanup[11095]: A6C04A558D: message-id=<f003feab44aba7e7cd98fba5afbea994#dutyhosts.tk>
Aug 25 12:44:06 dutyhosts postfix/qmgr[10368]: A6C04A558D: from=<support#dutyhosts.tk>, size=549, nrcpt=1 (queue active)
Aug 25 12:44:08 dutyhosts dovecot: imap-login: Login: user=<support#dutyhosts.tk>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=11102, secured, session=<bZwnD7OtwNx/AAAB>
Aug 25 12:44:08 dutyhosts dovecot: imap(support#dutyhosts.tk): Logged out in=70 out=633
Aug 25 12:44:10 dutyhosts dovecot: imap-login: Login: user=<support#dutyhosts.tk>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=11106, secured, session=<dio+D7Otwtx/AAAB>
Aug 25 12:44:10 dutyhosts dovecot: imap(support#dutyhosts.tk): Logged out in=76 out=546
Aug 25 12:44:10 dutyhosts dovecot: imap-login: Login: user=<support#dutyhosts.tk>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=11108, secured, session=<daxCD7OtxNx/AAAB>
Aug 25 12:44:10 dutyhosts dovecot: imap(support#dutyhosts.tk): Logged out in=120 out=766
Aug 25 12:44:12 dutyhosts postfix/qmgr[10368]: 941C0A5586: from=<dave#dutyhosts.tk>, size=542, nrcpt=1 (queue active)
Aug 25 12:44:12 dutyhosts postfix/trivial-rewrite[11099]: warning: do not list domain dutyhosts.tk in BOTH mydestination and virtual_mailbox_domains
Aug 25 12:44:12 dutyhosts postfix/qmgr[10368]: 79F61A5585: from=<dave#dutyhosts.tk>, size=541, nrcpt=1 (queue active)
Aug 25 12:44:12 dutyhosts postfix/qmgr[10368]: 1459AA5550: from=<dave#dutyhosts.tk>, size=539, nrcpt=1 (queue active)
Aug 25 12:44:12 dutyhosts postfix/smtp[11115]: fatal: valid hostname or network address required in server description: admin#dutyhosts.tk
Aug 25 12:44:12 dutyhosts postfix/smtp[11116]: fatal: valid hostname or network address required in server description: admin#dutyhosts.tk
Aug 25 12:44:12 dutyhosts postfix/smtp[11117]: fatal: valid hostname or network address required in server description: admin#dutyhosts.tk
Aug 25 12:44:12 dutyhosts postfix/smtp[11100]: A6C04A558D: to=<silv3r.sc0rpion#gmail.com>, relay=gmail-smtp-in.l.google.com[172.217.197.26]:25, delay=5.9, delays=0.26/0.04/0.32/5.3, dsn=5.7.26, status=bounced (host gmail-smtp-in.l.google.com[172.217.197.26] said: 550-5.7.26 This message does not have authentication information or fails to 550-5.7.26 pass authentication checks. To best protect our users from spam, the 550-5.7.26 message has been blocked. Please visit 550-5.7.26 https://support.google.com/mail/answer/81126#authentication for more 550 5.7.26 information. r1si9530921qvm.98 - gsmtp (in reply to end of DATA command))
Aug 25 12:44:12 dutyhosts postfix/cleanup[11095]: 7E798A558E: message-id=<20200825124412.7E798A558E#dutyhosts.tk>
Aug 25 12:44:12 dutyhosts postfix/bounce[11118]: A6C04A558D: sender non-delivery notification: 7E798A558E
Aug 25 12:44:12 dutyhosts postfix/qmgr[10368]: 7E798A558E: from=<>, size=3210, nrcpt=1 (queue active)
Aug 25 12:44:12 dutyhosts postfix/trivial-rewrite[11099]: warning: do not list domain dutyhosts.tk in BOTH mydestination and virtual_mailbox_domains
Aug 25 12:44:12 dutyhosts postfix/qmgr[10368]: A6C04A558D: removed
Aug 25 12:44:12 dutyhosts postfix/smtp[11100]: fatal: valid hostname or network address required in server description: admin#dutyhosts.tk
Aug 25 12:44:13 dutyhosts postfix/master[10365]: warning: process /usr/lib/postfix/sbin/smtp pid 11115 exit status 1
Aug 25 12:44:13 dutyhosts postfix/master[10365]: warning: /usr/lib/postfix/sbin/smtp: bad command startup -- throttling
Aug 25 12:44:13 dutyhosts postfix/qmgr[10368]: warning: private/smtp socket: malformed response
Aug 25 12:44:13 dutyhosts postfix/qmgr[10368]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description
Aug 25 12:44:13 dutyhosts postfix/qmgr[10368]: warning: private/smtp socket: malformed response
Aug 25 12:44:13 dutyhosts postfix/qmgr[10368]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description
Aug 25 12:44:13 dutyhosts postfix/qmgr[10368]: warning: private/smtp socket: malformed response
Aug 25 12:44:13 dutyhosts postfix/qmgr[10368]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description
Aug 25 12:44:13 dutyhosts postfix/master[10365]: warning: process /usr/lib/postfix/sbin/smtp pid 11116 exit status 1
Aug 25 12:44:13 dutyhosts postfix/master[10365]: warning: process /usr/lib/postfix/sbin/smtp pid 11117 exit status 1
Aug 25 12:44:13 dutyhosts postfix/error[11121]: 941C0A5586: to=<dave#dutyhosts.tk>, relay=none, delay=938, delays=937/1.2/0/0.03, dsn=4.3.0, status=deferred (unknown mail transport error)
Aug 25 12:44:13 dutyhosts postfix/error[11122]: 79F61A5585: to=<dave#dutyhosts.tk>, relay=none, delay=999, delays=998/1.2/0/0.01, dsn=4.3.0, status=deferred (unknown mail transport error)
Aug 25 12:44:13 dutyhosts postfix/qmgr[10368]: warning: private/smtp socket: malformed response
Aug 25 12:44:13 dutyhosts postfix/qmgr[10368]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description
Aug 25 12:44:13 dutyhosts postfix/master[10365]: warning: process /usr/lib/postfix/sbin/smtp pid 11100 exit status 1
Aug 25 12:44:13 dutyhosts postfix/error[11121]: 1459AA5550: to=<dave#dutyhosts.tk>, relay=none, delay=571, delays=569/1.4/0/0.01, dsn=4.3.0, status=deferred (unknown mail transport error)
Aug 25 12:44:13 dutyhosts postfix/error[11124]: 7E798A558E: to=<support#dutyhosts.tk>, relay=none, delay=1.1, delays=0.02/1.1/0/0.01, dsn=4.3.0, status=deferred (unknown mail transport error)
Did you set your server up according to the Perfect Server tutorial?
I'm a newbie to spring integration and I'm using the following code,
package services.api;
public interface GreetingService {
public void greetUsers(String userName);
}
package services.impl;
import services.api.GreetingService;
public class GreetServiceImpl implements GreetingService {
#Override
public void greetUsers(String userName) {
if (userName != null && userName.trim().length() > 0) {
System.out.println("Hello " + userName);
}
}
}
package main;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.integration.Message;
import org.springframework.integration.MessageChannel;
import org.springframework.integration.support.MessageBuilder;
public class Main {
public static void main(String[] args)
{
ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
MessageChannel messageChannel = applicationContext.getBean(MessageChannel.class);
Message<String> message = MessageBuilder.withPayload("World").build();
messageChannel.send(message);
}
}
<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://springframework.org/schema/integration"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://springframework.org/schema/integration http://springframework.org/schema/integration/spring-integration.xsd">
<channel id="pushChannel" />
<service-activator input-channel="pushChannel" ref="service"
method="greetUsers" />
<beans:bean id="service" class="services.impl.GreetServiceImpl" />
</beans:beans>
I'm getting the following error, eventhough I've declared only one message channel
Mar 04, 2014 4:46:23 PM org.springframework.context.support.ClassPathXmlApplicationContext prepareRefresh
INFO: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext#34d0cdd0: startup date [Tue Mar 04 16:46:23 IST 2014]; root of context hierarchy
Mar 04, 2014 4:46:23 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [applicationContext.xml]
Mar 04, 2014 4:46:23 PM org.springframework.beans.factory.config.PropertiesFactoryBean loadProperties
INFO: Loading properties file from URL [jar:file:/D:/Personal%20Data/Softwares/spring-framework-4.0.0.RELEASE-dist/SpringIntegration/spring-integration-3.0.0.RELEASE-dist/spring-integration-3.0.0.RELEASE/libs/spring-integration-core-3.0.0.RELEASE.jar!/META-INF/spring.integration.default.properties]
Mar 04, 2014 4:46:23 PM org.springframework.integration.config.xml.IntegrationNamespaceHandler registerHeaderChannelRegistry
INFO: No bean named 'integrationHeaderChannelRegistry' has been explicitly defined. Therefore, a default DefaultHeaderChannelRegistry will be created.
Mar 04, 2014 4:46:23 PM org.springframework.integration.config.xml.DefaultConfiguringBeanFactoryPostProcessor registerErrorChannel
INFO: No bean named 'errorChannel' has been explicitly defined. Therefore, a default PublishSubscribeChannel will be created.
Mar 04, 2014 4:46:23 PM org.springframework.integration.config.xml.DefaultConfiguringBeanFactoryPostProcessor registerTaskScheduler
INFO: No bean named 'taskScheduler' has been explicitly defined. Therefore, a default ThreadPoolTaskScheduler will be created.
Mar 04, 2014 4:46:23 PM org.springframework.beans.factory.config.PropertiesFactoryBean loadProperties
INFO: Loading properties file from URL [jar:file:/D:/Personal%20Data/Softwares/spring-framework-4.0.0.RELEASE-dist/SpringIntegration/spring-integration-3.0.0.RELEASE-dist/spring-integration-3.0.0.RELEASE/libs/spring-integration-core-3.0.0.RELEASE.jar!/META-INF/spring.integration.default.properties]
Mar 04, 2014 4:46:23 PM org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler initialize
INFO: Initializing ExecutorService 'taskScheduler'
Mar 04, 2014 4:46:23 PM org.springframework.context.support.DefaultLifecycleProcessor start
INFO: Starting beans in phase -2147483648
Mar 04, 2014 4:46:23 PM org.springframework.integration.endpoint.EventDrivenConsumer logComponentSubscriptionEvent
INFO: Adding {logging-channel-adapter:_org.springframework.integration.errorLogger} as a subscriber to the 'errorChannel' channel
Mar 04, 2014 4:46:23 PM org.springframework.integration.channel.PublishSubscribeChannel adjustCounterIfNecessary
INFO: Channel 'org.springframework.context.support.ClassPathXmlApplicationContext#34d0cdd0.errorChannel' has 1 subscriber(s).
Mar 04, 2014 4:46:23 PM org.springframework.integration.endpoint.EventDrivenConsumer start
INFO: started _org.springframework.integration.errorLogger
Mar 04, 2014 4:46:23 PM org.springframework.context.support.DefaultLifecycleProcessor start
INFO: Starting beans in phase 0
Mar 04, 2014 4:46:23 PM org.springframework.integration.endpoint.EventDrivenConsumer logComponentSubscriptionEvent
INFO: Adding {service-activator} as a subscriber to the 'pushChannel' channel
Mar 04, 2014 4:46:23 PM org.springframework.integration.channel.DirectChannel adjustCounterIfNecessary
INFO: Channel 'org.springframework.context.support.ClassPathXmlApplicationContext#34d0cdd0.pushChannel' has 1 subscriber(s).
Mar 04, 2014 4:46:23 PM org.springframework.integration.endpoint.EventDrivenConsumer start
INFO: started org.springframework.integration.config.ConsumerEndpointFactoryBean#0
Exception in thread "main" org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [org.springframework.integration.MessageChannel] is defined: expected single matching bean but found 3: pushChannel,nullChannel,errorChannel
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:312)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:985)
at main.Main.main(Main.java:17)
I suggest you to read more Docs:
http://docs.spring.io/spring-integration/docs/3.0.1.RELEASE/reference/html
http://www.manning.com/fisher
As you see the framework provides two explicit channels: nullChannel, errorChannel.
And they aren't the last beans which are populated by framework.
To fix your issue just provide the id of your channel to applicationContext.getBean
I am new to Spring. I have been trying to follow the code samples in the book Spring in Action. The chapter on security is poorly written and I have found numerous errors in the sample code. Most I have figured out with the help of this awsome site, or by rtfm. In this case, however, I am stuck.
I am using Spring 4.0, Hibernate 4.0, Spring Security 3.2 and Tomcat 7.0.47. My Spring MVC example works fine with an in memory user repository (user-service tag), but when I try to switch over to a simple ldap service, I get the following error (copy and pasted from the Tomcat console output) when my application is loaded by Tomcat:
1311 [localhost-startStop-1] ERROR org.springframework.web.context.ContextLoader - Context initialization failed
org.springframework.context.ApplicationContextException: No BaseLdapPathContextSource instances found. Have you added an <ldap-server /> element to your application context? If you have declared an explicit bean, do not use lazy-init
at org.springframework.security.config.ldap.ContextSourceSettingPostProcessor.postProcessBeanFactory(ContextSourceSettingPostProcessor.java:42)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:265)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:170)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:609)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:381)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:293)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:663)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1642)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
Nice output as it tells me I am missing the ldap-server tag. Well I am not. It is in a file called spitter-security.xml (starting on line 11):
<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns:beans="http://www.springframework.org/schema/beans"
xmlns="http://www.springframework.org/schema/security"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
http://www.springframework.org/schema/security
http://www.springframework.org/schema/security/spring-security-3.2.xsd">
<ldap-server root="dc=habuma,dc=com"
ldif="classpath:users.ldif" />
<authentication-manager alias="authenticationManager">
<ldap-authentication-provider
user-search-base="ou=people"
user-search-filter="(uid=0})"
group-search-base="ou=groups"
group-search-filter="member={0}" />
</authentication-manager>
<!--
Automatically registers a login form, BASIC authentication, anonymous authentication,
logout services, remember-me and servlet-api-integration.
-->
<http request-matcher="regex" pattern="\A/spitters\?new\Z"
security="none" >
</http>
<http auto-config="true" use-expressions="true">
<intercept-url pattern="/resources/css/**"
access="permitAll" />
<intercept-url pattern="/resources/images/**"
access="permitAll" />
<intercept-url pattern="/login"
access="isAnonymous()" />
<intercept-url pattern="/home"
access="isAnonymous() or hasAnyRole('ROLE_USER','ROLE_ADMIN')" />
<intercept-url pattern="/admin/**"
access="isAuthenticated() and hasRole('ROLE_ADMIN')"/>
<intercept-url pattern="/**"
access="hasRole('ROLE_USER')" />
<form-login login-page="/login"
login-processing-url="/static/j_spring_security_check"
authentication-failure-url="/login?login_error=1"
default-target-url="/home"
always-use-default-target="true"/>
<logout logout-url="/static/j_spring_security_logout"/>
<!--remember-me key="spitterKey"
token-validity-seconds="2419200" /-->
</http>
</beans:beans>
Here is my web.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
version="2.5"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd">
<servlet>
<servlet-name>spitter</servlet-name>
<servlet-class>
org.springframework.web.servlet.DispatcherServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>spitter</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
<listener>
<listener-class>
org.springframework.web.util.Log4jConfigListener
</listener-class>
</listener>
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>
<listener>
<listener-class>
org.springframework.web.context.request.RequestContextListener
</listener-class>
</listener>
<listener>
<listener-class>
org.springframework.security.web.session.HttpSessionEventPublisher
</listener-class>
</listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
/WEB-INF/spitter-security.xml
classpath:dataSource-context.xml
classpath:persistence-context.xml
classpath:service-context.xml
</param-value>
</context-param>
<filter>
<filter-name>springSecurityFilterChain</filter-name>
<filter-class>
org.springframework.web.filter.DelegatingFilterProxy
</filter-class>
</filter>
<filter-mapping>
<filter-name>springSecurityFilterChain</filter-name>
<url-pattern>/*</url-pattern>
<servlet-name>spitter</servlet-name>
</filter-mapping>
</web-app>
Here is my spitter-servlet.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:util="http://www.springframework.org/schema/util"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:p="http://www.springframework.org/schema/p"
xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd">
<mvc:resources mapping="/resources/**" location="/resources/" />
<mvc:annotation-driven/>
<context:component-scan base-package="com.habuma.spitter.mvc" />
<bean class="org.springframework.web.servlet.view.tiles3.TilesViewResolver">
</bean>
<bean class="org.springframework.web.servlet.view.tiles3.TilesConfigurer">
<property name="definitions">
<list>
<value>/WEB-INF/views/**/views.xml</value>
</list>
</property>
</bean>
<bean id="multipartResolver"
class=
"org.springframework.web.multipart.commons.CommonsMultipartResolver"
p:maxUploadSize="500000" />
<bean id="messageSource"
class="org.springframework.context.support.ResourceBundleMessageSource">
<property name="basenames">
<list>
<value>/resources/ui</value>
</list>
</property>
</bean>
</beans>
Here are the jars I have loaded in WEB-INF/lib:
01/15/2014 10:04 AM 2,000,557 ant-1.9.2.jar
01/15/2014 10:04 AM 18,333 ant-launcher-1.9.2.jar
01/15/2014 10:04 AM 445,288 antlr-2.7.7.jar
01/15/2014 10:04 AM 4,467 aopalliance-1.0.jar
01/16/2014 04:20 PM 325,112 apacheds-core-1.5.7.jar
01/16/2014 04:20 PM 186,034 apacheds-core-api-1.5.7.jar
01/16/2014 04:20 PM 11,467 apacheds-core-constants-1.5.7.jar
01/16/2014 04:20 PM 33,434 apacheds-core-entry-1.5.7.jar
01/16/2014 04:20 PM 38,741 apacheds-i18n-1.5.7.jar
01/16/2014 04:20 PM 12,406 apacheds-utils-1.5.7.jar
01/15/2014 09:54 PM 60,282 classmate-1.0.0.jar
01/15/2014 10:04 AM 231,320 commons-beanutils-1.8.0.jar
01/15/2014 10:04 AM 175,426 commons-collections-2.1.1.jar
01/16/2014 04:20 PM 575,389 commons-collections-3.2.1.jar
01/15/2014 10:04 AM 148,783 commons-digester-2.0.jar
01/15/2014 10:04 AM 68,622 commons-fileupload-1.3.jar
01/15/2014 07:11 PM 185,140 commons-io-2.4.jar
01/15/2014 10:04 AM 52,915 commons-logging-1.1.jar
01/15/2014 10:04 AM 26,202 commons-logging-api-1.0.4.jar
01/15/2014 10:04 AM 313,898 dom4j-1.6.1.jar
01/15/2014 10:04 AM 15,649 geronimo-jta_1.1_spec-1.1.jar
01/15/2014 10:04 AM 75,311 hibernate-commons-annotations-4.0.4.Final.jar
01/15/2014 10:04 AM 5,208,917 hibernate-core-4.3.0.Final.jar
01/15/2014 10:04 AM 645,015 hibernate-entitymanager-4.3.0.Final.jar
01/15/2014 10:04 AM 113,371 hibernate-jpa-2.1-api-1.0.0.Final.jar
01/15/2014 10:04 AM 377,562 hibernate-tools-4.0.0-CR1.jar
01/15/2014 09:49 PM 574,341 hibernate-validator-5.0.2.Final.jar
01/15/2014 09:04 PM 1,467,326 hsqldb-2.3.1.jar
01/15/2014 10:04 AM 76,551 jandex-1.1.0.Final.jar
01/15/2014 10:04 AM 714,194 javassist-3.18.1-GA.jar
01/15/2014 10:04 AM 2,497 javax.inject-1.jar
01/15/2014 10:04 AM 57,183 jboss-logging-3.1.3.GA.jar
01/15/2014 10:04 AM 11,558 jboss-logging-annotations-1.2.0.Beta1.jar
01/15/2014 10:04 AM 27,717 jboss-transaction-api_1.2_spec-1.0.0.Final.jar
01/15/2014 10:04 AM 17,097 jcl-over-slf4j-1.5.8.jar
01/15/2014 10:04 AM 414,240 jstl-1.2.jar
01/15/2014 10:04 AM 15,071 jta-1.1.jar
01/15/2014 10:04 AM 249,028 jtidy-r8-20060801.jar
01/15/2014 01:10 PM 489,884 log4j-1.2.17.jar
01/16/2014 04:20 PM 638,294 mina-core-2.0.0-RC1.jar
01/15/2014 10:04 AM 52,150 persistence-api-1.0.jar
01/16/2014 04:20 PM 96,747 shared-asn1-0.9.19.jar
01/16/2014 04:20 PM 12,769 shared-asn1-codec-0.9.19.jar
01/16/2014 04:20 PM 19,647 shared-cursor-0.9.19.jar
01/16/2014 04:20 PM 183,195 shared-dsml-parser-0.9.19.jar
01/16/2014 04:20 PM 26,078 shared-i18n-0.9.19.jar
01/16/2014 04:20 PM 1,404,206 shared-ldap-0.9.19.jar
01/16/2014 04:20 PM 23,568 shared-ldap-constants-0.9.19.jar
01/16/2014 04:20 PM 32,976 shared-ldap-converter-0.9.19.jar
01/16/2014 04:20 PM 13,196 shared-ldap-jndi-0.9.19.jar
01/16/2014 04:20 PM 590,303 shared-ldap-schema-0.9.19.jar
01/16/2014 04:20 PM 6,928 shared-ldap-schema-dao-0.9.19.jar
01/16/2014 04:20 PM 27,319 shared-ldap-schema-loader-0.9.19.jar
01/16/2014 04:20 PM 20,108 shared-ldap-schema-manager-0.9.19.jar
01/16/2014 04:20 PM 44,343 shared-ldif-0.9.19.jar
01/15/2014 10:04 AM 25,689 slf4j-api-1.6.2.jar
01/15/2014 10:04 AM 7,668 slf4j-simple-1.6.2.jar
01/15/2014 10:04 AM 351,240 spring-aop-4.0.0.RELEASE.jar
01/15/2014 10:04 AM 669,267 spring-beans-4.0.0.RELEASE.jar
01/15/2014 10:04 AM 148,444 spring-binding-2.3.2.RELEASE.jar
01/15/2014 10:04 AM 950,606 spring-context-4.0.0.RELEASE.jar
01/15/2014 10:04 AM 955,328 spring-core-4.0.0.RELEASE.jar
01/15/2014 10:04 AM 206,507 spring-expression-4.0.0.RELEASE.jar
01/15/2014 10:04 AM 419,872 spring-jdbc-4.0.0.RELEASE.jar
01/15/2014 10:04 AM 17,381 spring-js-2.3.2.RELEASE.jar
01/15/2014 10:04 AM 4,412,472 spring-js-resources-2.3.2.RELEASE.jar
01/16/2014 01:51 PM 231,729 spring-ldap-core-1.3.1.RELEASE.jar
01/15/2014 10:04 AM 316,834 spring-orm-4.0.0.RELEASE.jar
01/15/2014 11:49 AM 81,373 spring-security-acl-3.2.0.RELEASE.jar
01/15/2014 10:04 AM 399,068 spring-security-config-3.2.0.RELEASE.jar
01/15/2014 10:04 AM 359,510 spring-security-core-3.2.0.RELEASE.jar
01/15/2014 11:49 AM 20,992 spring-security-taglibs-3.2.0.RELEASE.jar
01/15/2014 10:04 AM 342,227 spring-security-web-3.2.0.RELEASE.jar
01/15/2014 10:04 AM 441,609 spring-test-4.0.0.RELEASE.jar
01/15/2014 10:04 AM 248,001 spring-tx-4.0.0.RELEASE.jar
01/15/2014 10:04 AM 661,567 spring-web-4.0.0.RELEASE.jar
01/15/2014 10:04 AM 522,586 spring-webflow-2.3.2.RELEASE.jar
01/15/2014 10:04 AM 660,682 spring-webmvc-4.0.0.RELEASE.jar
01/15/2014 10:04 AM 30,143 tiles-api-3.0.3.jar
01/15/2014 10:04 AM 11,773 tiles-autotag-core-runtime-1.1.0.jar
01/15/2014 10:04 AM 81,289 tiles-core-3.0.3.jar
01/15/2014 10:04 AM 35,366 tiles-jsp-3.0.3.jar
01/15/2014 10:04 AM 71,616 tiles-request-api-1.0.3.jar
01/15/2014 10:04 AM 17,026 tiles-request-jsp-1.0.3.jar
01/15/2014 10:04 AM 20,035 tiles-request-servlet-1.0.3.jar
01/15/2014 10:04 AM 25,059 tiles-servlet-3.0.3.jar
01/15/2014 10:04 AM 31,772 tiles-template-3.0.3.jar
01/15/2014 09:49 PM 63,777 validation-api-1.1.0.Final.jar
Any idea why getting a simple example (as stated in the manuals and this book) is apparently not so simple? How do I get it to recognize what is there in the file (the file worked until I tried changing it to use LDAP)?
After much digging I discovered I had two versions of the commons-collections jar. When I deleted the 2.1.1 version so that I only had 3.2.1 version, this error went away.
Then I ran into the problem that the current version of Spring Security is not compatible with the current version of ApacheDS (there are classes missing in the latest version), so you really can't use an embedded LDAP server for testing with the latest and greatest releases of everything. So much for the examples in the book and the manual.
I am beginner in MongoDB and I have a problem with the execution of this in the server.
My project is hosted in servers of hostmonster.com but they don't give me support for MongoDB data bases, although they say that I can install it under my own responsability.
Then, I installed MongoDB 2.4.1 without problems into Linux 64, after, in the MongoDB bin folder (with: mongo, mongod, mongodump ... ) I created a folder called 'data' and 'data/db' for doing some tests.
from console, I connect to the server across the SSH protocol and I run
./mongod --dbpath 'data/db'
and it works.
But, I need that it run automatically forever.
I followed the steps of Mongodb can't start and run the next line:
./mongod --fork --dbpath 'data/db' --smallfiles --logpath 'data/mongodb.log' --logappend
It also worked, It started the process and I closed the console, this process continued running and I could view my data across my domain.
The problem is that the process takes a day to close, ie, I can't see my data across domain, then, I need run mongod again. with:
./mongod --fork --dbpath 'data/db' --smallfiles --logpath 'data/mongodb.log' --logappend
I don't want do it everyday, my question is:
What may be the problem?, why the mongod process dies each day?
how can I run the process forever?
Sorry for my English.
Edit: Add the last error log. I don't understand it.
Fri Apr 12 03:19:34.577 [TTLMonitor] query local.system.indexes query: { expireAfterSeconds: { $exists: true } } ntoreturn:0 ntoskip:0 nscanned:0 keyUpdates:0 locks(micros) r:141663 nreturned:0 reslen:20 141ms
Fri Apr 12 03:19:34.789 [TTLMonitor] query users.system.indexes query: { expireAfterSeconds: { $exists: true } } ntoreturn:0 ntoskip:0 nscanned:3 keyUpdates:0 locks(micros) r:211595 nreturned:0 reslen:20 211ms
Fri Apr 12 03:20:57.869 [PeriodicTask::Runner] task: DBConnectionPool-cleaner took: 18215ms
Fri Apr 12 03:20:57.931 [PeriodicTask::Runner] task: WriteBackManager::cleaner took: 8ms
Fri Apr 12 03:22:14.155 [PeriodicTask::Runner] task: DBConnectionPool-cleaner took: 32ms
Fri Apr 12 03:22:14.215 [PeriodicTask::Runner] task: WriteBackManager::cleaner took: 14ms
Fri Apr 12 03:22:30.670 [TTLMonitor] query actarium.system.indexes query: { expireAfterSeconds: { $exists: true } } ntoreturn:0 ntoskip:0 nscanned:2 keyUpdates:0 locks(micros) r:430204 nreturned:0 reslen:20 430ms
Fri Apr 12 03:23:14.825 [PeriodicTask::Runner] task: DBConnectionPool-cleaner took: 7ms
Fri Apr 12 03:23:31.133 [TTLMonitor] query actarium.system.indexes query: { expireAfterSeconds: { $exists: true } } ntoreturn:0 ntoskip:0 nscanned:2 keyUpdates:0 locks(micros) r:179175 nreturned:0 reslen:20 168ms
Fri Apr 12 03:25:19.201 [PeriodicTask::Runner] task: WriteBackManager::cleaner took: 505ms
Fri Apr 12 03:25:23.370 [TTLMonitor] query local.system.indexes query: { expireAfterSeconds: { $exists: true } } ntoreturn:0 ntoskip:0 nscanned:0 keyUpdates:0 locks(micros) r:3604735 nreturned:0 reslen:20 3604ms
Fri Apr 12 03:25:25.294 [TTLMonitor] query users.system.indexes query: { expireAfterSeconds: { $exists: true } } ntoreturn:0 ntoskip:0 nscanned:3 keyUpdates:0 numYields: 1 locks(micros) r:3479328 nreturned:0 reslen:20 1882ms
Fri Apr 12 03:26:26.647 [TTLMonitor] query actarium.system.indexes query: { expireAfterSeconds: { $exists: true } } ntoreturn:0 ntoskip:0 nscanned:2 keyUpdates:0 numYields: 1 locks(micros) r:1764712 nreturned:0 reslen:20 1044ms
Fri Apr 12 04:09:27.804 [TTLMonitor] query actarium.system.indexes query: { expireAfterSeconds: { $exists: true } } ntoreturn:0 ntoskip:0 nscanned:2 keyUpdates:0 locks(micros) r:200919 nreturned:0 reslen:20 200ms
Fri Apr 12 04:43:54.002 got signal 15 (Terminated), will terminate after current cmd ends
Fri Apr 12 04:43:54.151 [interruptThread] now exiting
Fri Apr 12 04:43:54.151 dbexit:
Fri Apr 12 04:43:54.157 [interruptThread] shutdown: going to close listening sockets...
Fri Apr 12 04:43:54.160 [interruptThread] closing listening socket: 9
Fri Apr 12 04:43:54.160 [interruptThread] closing listening socket: 10
Fri Apr 12 04:43:54.160 [interruptThread] closing listening socket: 11
Fri Apr 12 04:43:54.160 [interruptThread] removing socket file: /tmp/mongodb-27017.sock
Fri Apr 12 04:43:54.160 [interruptThread] shutdown: going to flush diaglog...
Fri Apr 12 04:43:54.160 [interruptThread] shutdown: going to close sockets...
Fri Apr 12 04:43:54.176 [interruptThread] shutdown: waiting for fs preallocator...
Fri Apr 12 04:43:54.176 [interruptThread] shutdown: lock for final commit...
Fri Apr 12 04:43:54.176 [interruptThread] shutdown: final commit...
Fri Apr 12 04:43:54.176 [interruptThread] shutdown: closing all files...
Fri Apr 12 04:43:54.212 [interruptThread] closeAllFiles() finished
Fri Apr 12 04:43:54.220 [interruptThread] journalCleanup...
Fri Apr 12 04:43:54.246 [interruptThread] removeJournalFiles
Fri Apr 12 04:43:54.280 [interruptThread] error removing journal files
boost::filesystem::directory_iterator::construct: No such file or directory: "/home2/anuncio3/bin/mongodb-linux-x86_64-2.4.1/bin/data/db/journal"
Fri Apr 12 04:43:54.280 [interruptThread] error couldn't remove journal file during shutdown boost::filesystem::directory_iterator::construct: No such file or directory: "/home2/anuncio3/bin/mongodb-linux-x86_64-2.4.1/bin/data/db/journal"
Fri Apr 12 04:43:54.285 shutdown failed with exception
Fri Apr 12 04:43:54.285 dbexit: really exiting now
Your answer is here:
Fri Apr 12 04:43:54.002 got signal 15 (Terminated), will terminate after current cmd ends
Fri Apr 12 04:43:54.151 [interruptThread] now exiting
Your process is receiving signal 15, which is the default kill signal. It's possible that their systems are automatically killing long-running processes or something similar. If that is indeed what's happening, then your host would have to resolve that.
Additionally, these errors:
Fri Apr 12 04:43:54.280 [interruptThread] error removing journal files
boost::filesystem::directory_iterator::construct: No such file or directory: "/home2/anuncio3/bin/mongodb-linux-x86_64-2.4.1/bin/data/db/journal"
Fri Apr 12 04:43:54.280 [interruptThread] error couldn't remove journal file during shutdown boost::filesystem::directory_iterator::construct: No such file or directory: "/home2/anuncio3/bin/mongodb-linux-x86_64-2.4.1/bin/data/db/journal"
indicate that something is wrong with your install's data directory. The journal files either don't exist, or are going missing; if some process on the system is trying to clean things up, then it wouldn't surprise me if something is nuking your journal files.
I know this is old question but my experience might be helpful for other reviewers.
Based on my tests, They only let you run a program for 5 minutes (sometimes more than this) before killing it, so it’s fairly useless to install MongoDB unless you have a dedicated IP.