Archiva does not mirror maven central repository - maven

Archiva does not mirror maven central repository.
I have installed stand alone Archiva 2.2.9
All settings are default.
Browse Repository section is empty:
My settings
Maven version:
$ mvn -v
Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T07:58:13Z)
Maven home: /usr/share/apache-maven
Java version: 1.8.0_332, vendor: Red Hat, Inc.
Java home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.332.b09-1.el7_9.x86_64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.4.17-2136.306.1.3.el7uek.x86_64", arch: "amd64", family: "unix"
Log tail -f ~/archiva/logs/*:
==> /home/bob/archiva/logs/wrapper-20230217.log <==
INFO | jvm 1 | 2023/02/17 21:33:35 | 2023-02-17 21:33:35.716:INFO:/:Initializing Spring root WebApplicationContext
INFO | jvm 1 | 2023/02/17 21:33:49 | Feb 17, 2023 9:33:49 PM org.apache.tomcat.jdbc.pool.ConnectionPool init
INFO | jvm 1 | 2023/02/17 21:33:49 | WARNING: maxIdle is larger than maxActive, setting maxIdle to: 20
INFO | jvm 1 | 2023/02/17 21:34:04 | 2023-02-17 21:34:04.881:INFO:oejs.AbstractConnector:Started SelectChannelConnector#0.0.0.0:8082
STATUS | wrapper | 2023/02/17 23:40:54 | TERM trapped. Shutting down.
INFO | jvm 1 | 2023/02/17 23:40:55 | 2023-02-17 23:40:55.488:INFO:oejs.Server:Graceful shutdown SelectChannelConnector#0.0.0.0:8082
INFO | jvm 1 | 2023/02/17 23:40:55 | 2023-02-17 23:40:55.491:INFO:oejs.Server:Graceful shutdown o.e.j.w.WebAppContext{/,file:/home/bob/archiva/apps/archiva/},/home/bob/archiva/apps/archiva
INFO | jvm 1 | 2023/02/17 23:40:56 | 2023-02-17 23:40:56.598:INFO:/:Closing Spring root WebApplicationContext
INFO | jvm 1 | 2023/02/17 23:40:56 | 2023-02-17 23:40:56.600:INFO:oejsh.ContextHandler:stopped o.e.j.w.WebAppContext{/,file:/home/bob/archiva/apps/archiva/},/home/bob/archiva/apps/archiva
STATUS | wrapper | 2023/02/17 23:40:56 | <-- Wrapper Stopped
==> /home/bob/archiva/logs/wrapper-20230218.log <==
INFO | jvm 1 | 2023/02/18 09:42:45 | 2023-02-18 09:42:45.617:WARN:oejd.WebAppDeployer:WebAppDeployer is deprecated. Use WebAppProvider
INFO | jvm 1 | 2023/02/18 09:42:45 | 2023-02-18 09:42:45.752:INFO:oejs.Server:jetty-8.1.14.v20131031
INFO | jvm 1 | 2023/02/18 09:42:45 | 2023-02-18 09:42:45.773:INFO:oejs.NCSARequestLog:Opened /home/bob/archiva/logs/request-20230218.log
INFO | jvm 1 | 2023/02/18 09:42:45 | 2023-02-18 09:42:45.889:INFO:oejd.ContextDeployer:Deploy /home/bob/archiva/contexts/archiva.xml -> o.e.j.w.WebAppContext{/,null},/home/bob/archiva/apps/archiva
INFO | jvm 1 | 2023/02/18 09:42:50 | 2023-02-18 09:42:50.320:INFO:oejpw.PlusConfiguration:No Transaction manager found - if your webapp requires one, please configure one.
INFO | jvm 1 | 2023/02/18 09:42:50 | 2023-02-18 09:42:50.632:INFO:oejw.StandardDescriptorProcessor:NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet
INFO | jvm 1 | 2023/02/18 09:42:52 | 2023-02-18 09:42:52.886:INFO:/:Initializing Spring root WebApplicationContext
INFO | jvm 1 | 2023/02/18 09:43:08 | Feb 18, 2023 9:43:08 AM org.apache.tomcat.jdbc.pool.ConnectionPool init
INFO | jvm 1 | 2023/02/18 09:43:08 | WARNING: maxIdle is larger than maxActive, setting maxIdle to: 20
INFO | jvm 1 | 2023/02/18 09:43:18 | 2023-02-18 09:43:18.727:INFO:oejs.AbstractConnector:Started SelectChannelConnector#0.0.0.0:8082
==> /home/bob/archiva/logs/wrapper-20230219.log <==
INFO | jvm 1 | 2023/02/19 14:46:41 | 2023-02-19 14:46:41.776:WARN:oejd.WebAppDeployer:WebAppDeployer is deprecated. Use WebAppProvider
INFO | jvm 1 | 2023/02/19 14:46:41 | 2023-02-19 14:46:41.853:INFO:oejs.Server:jetty-8.1.14.v20131031
INFO | jvm 1 | 2023/02/19 14:46:41 | 2023-02-19 14:46:41.869:INFO:oejs.NCSARequestLog:Opened /home/bob/archiva/logs/request-20230219.log
INFO | jvm 1 | 2023/02/19 14:46:41 | 2023-02-19 14:46:41.909:INFO:oejd.ContextDeployer:Deploy /home/bob/archiva/contexts/archiva.xml -> o.e.j.w.WebAppContext{/,null},/home/bob/archiva/apps/archiva
INFO | jvm 1 | 2023/02/19 14:46:44 | 2023-02-19 14:46:44.117:INFO:oejpw.PlusConfiguration:No Transaction manager found - if your webapp requires one, please configure one.
INFO | jvm 1 | 2023/02/19 14:46:44 | 2023-02-19 14:46:44.216:INFO:oejw.StandardDescriptorProcessor:NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet
INFO | jvm 1 | 2023/02/19 14:46:45 | 2023-02-19 14:46:45.010:INFO:/:Initializing Spring root WebApplicationContext
INFO | jvm 1 | 2023/02/19 14:46:51 | Feb 19, 2023 2:46:51 PM org.apache.tomcat.jdbc.pool.ConnectionPool init
INFO | jvm 1 | 2023/02/19 14:46:51 | WARNING: maxIdle is larger than maxActive, setting maxIdle to: 20
INFO | jvm 1 | 2023/02/19 14:46:56 | 2023-02-19 14:46:56.124:INFO:oejs.AbstractConnector:Started SelectChannelConnector#0.0.0.0:8082
Check free space:
$ df -h /home/bob/archiva/
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/ol-root 36G 15G 21G 43% /
Was performed Archiva reboot.
Why I cannot Browse/Search the Central repository in Archiva?

Related

Hybris rule engine not invokes promotions

When we want to invoke a promotion in clustered environment, we get an exception. It looks like a maven dependency problem with wrong protobuf-java library version. But we couldn't find a solution to fix.
Similar problem:
http://drools-moved.46999.n3.nabble.com/Upgrade-to-protobuf-2-5-and-how-to-work-with-Protobuf-td4023028.html
INFO | jvm 1 | main | 2018/01/16 22:13:26.793 | ESC[mException in thread "AfterSaveEventPublisher-master" java.lang.VerifyError: class org.drools.compiler.kie.builder.impl.KieModuleCache$KModuleCache overrides final method getUnknownFields.()Lcom/google/protobuf/UnknownFieldSet;
INFO | jvm 1 | main | 2018/01/16 22:13:26.793 | at java.lang.ClassLoader.defineClass1(Native Method)
INFO | jvm 1 | main | 2018/01/16 22:13:26.793 | at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
INFO | jvm 1 | main | 2018/01/16 22:13:26.793 | at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
INFO | jvm 1 | main | 2018/01/16 22:13:26.793 | at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
INFO | jvm 1 | main | 2018/01/16 22:13:26.793 | at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
INFO | jvm 1 | main | 2018/01/16 22:13:26.793 | at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
INFO | jvm 1 | main | 2018/01/16 22:13:26.793 | at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
INFO | jvm 1 | main | 2018/01/16 22:13:26.793 | at java.security.AccessController.doPrivileged(Native Method)
INFO | jvm 1 | main | 2018/01/16 22:13:26.793 | at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
INFO | jvm 1 | main | 2018/01/16 22:13:26.793 | at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
INFO | jvm 1 | main | 2018/01/16 22:13:26.793 | at de.hybris.bootstrap.loader.YURLClassLoader.loadRegisterAndResolveClass(YURLClassLoader.java:85)
INFO | jvm 1 | main | 2018/01/16 22:13:26.793 | at de.hybris.bootstrap.loader.YURLClassLoader.loadClass(YURLClassLoader.java:72)
INFO | jvm 1 | main | 2018/01/16 22:13:26.793 | at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
INFO | jvm 1 | main | 2018/01/16 22:13:26.793 | at org.drools.compiler.kie.builder.impl.KieMetaInfoBuilder.createCacheBuilder(KieMetaInfoBuilder.java:119)
INFO | jvm 1 | main | 2018/01/16 22:13:26.793 | at org.drools.compiler.kie.builder.impl.KieMetaInfoBuilder.generateKieModuleMetaInfo(KieMetaInfoBuilder.java:72)
INFO | jvm 1 | main | 2018/01/16 22:13:26.793 | at org.drools.compiler.kie.builder.impl.KieMetaInfoBuilder.writeKieModuleMetaInfo(KieMetaInfoBuilder.java:54)
INFO | jvm 1 | main | 2018/01/16 22:13:26.793 | at org.drools.compiler.kie.builder.impl.KieBuilderImpl.buildKieProject(KieBuilderImpl.java:233)
INFO | jvm 1 | main | 2018/01/16 22:13:26.793 | at org.drools.compiler.kie.builder.impl.KieBuilderImpl.buildAll(KieBuilderImpl.java:197)
INFO | jvm 1 | main | 2018/01/16 22:13:26.793 | at de.hybris.platform.ruleengine.init.impl.DefaultRuleEngineKieModuleSwapper.createKieModule(DefaultRuleEngineKieModuleSwapper.java:276)
INFO | jvm 1 | main | 2018/01/16 22:13:26.793 | at de.hybris.platform.ruleengine.init.impl.DefaultRuleEngineBootstrap.startup(DefaultRuleEngineBootstrap.java:73)
INFO | jvm 1 | main | 2018/01/16 22:13:26.793 | at de.hybris.platform.ruleengine.event.OnTenantStartupProcessor.lambda$0(OnTenantStartupProcessor.java:103)
INFO | jvm 1 | main | 2018/01/16 22:13:26.793 | at java.util.ArrayList.forEach(ArrayList.java:1255)
INFO | jvm 1 | main | 2018/01/16 22:13:26.793 | at de.hybris.platform.ruleengine.event.OnTenantStartupProcessor.activateRulesModules(OnTenantStartupProcessor.java:103)
INFO | jvm 1 | main | 2018/01/16 22:13:26.793 | at de.hybris.platform.ruleengine.event.OnTenantStartupProcessor.processOnTenantStartup(OnTenantStartupProcessor.java:74)
INFO | jvm 1 | main | 2018/01/16 22:13:26.793 | at de.hybris.platform.ruleengine.event.OnTenantStartupProcessor$DefaultRuleEngineTenantListener.afterTenantStartUp(OnTenantStartupProcessor.java:
When making ant production, the order of extensions is created changing. There are two Protobuf jars, for solr and ruleengine. Solr based protbuf version is 2.5 and there is problem with rule engine.
Possible solution is replace the localextions.xml generated after "ant production" with the original one. Then, start server successfully.

System property stops taking effect when moved to application.properties

I have a Spring Boot application that uses Spring Data and Hibernate for data access. I initially encountered significantly long application start-up times. So, based on this answer, I set 'hibernate.temp.use_jdbc_metadata_defaults' to 'false' as a system property (-D). The application startup time issue was resolved.
Now, I moved that configuration from a system property to application.properties. The delayed application start-up issue has returned.
My application.properties:
hibernate.temp.use_jdbc_metadata_defaults=false
spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect
spring.jpa.show-sql=true
spring.jpa.hibernate.ddl-auto=none
spring.datasource.validation-query=SELECT 1
spring.datasource.testOnBorrow=true
spring.datasource.testWhileIdle=true
After setting "org.springframework.core.env" to "DEBUG" logging, I see that the property is resolved from application.properties (as expected).
INFO | jvm 1 | 2015/07/20 19:47:15 | 19:47:15.211 [WrapperJarAppMain] DEBUG o.s.c.e.PropertySourcesPropertyResolver - Found key 'spring.jpa.database-platform' in [applicationConfig: [classpath:/application.properties]] with type [String] and value 'org.hibernate.dialect.PostgreSQLDialect'
...
INFO | jvm 1 | 2015/07/20 19:47:15 | 19:47:15.226 [WrapperJarAppMain] DEBUG o.s.c.e.PropertySourcesPropertyResolver - Found key 'hibernate.temp.use_jdbc_metadata_defaults' in [applicationConfig: [classpath:/application.properties]] with type [String] and value 'false'
...
INFO | jvm 1 | 2015/07/20 19:47:15 | 19:47:15.229 [WrapperJarAppMain] DEBUG o.s.c.e.PropertySourcesPropertyResolver - Found key 'spring.jpa.hibernate.ddl-auto' in [applicationConfig: [classpath:/application.properties]] with type [String] and value 'none'
During the delayed startup, the app stalls at a particular point and then resumes. When it is stalled, "jstack"ing the JVM gives the following result:
INFO | jvm 1 | 2015/07/20 19:47:58 | "WrapperJarAppMain" #20 prio=5 os_prio=0 tid=0x00007fb1ec02b800 nid=0x1d39 runnable [0x00007fb248257000]
INFO | jvm 1 | 2015/07/20 19:47:58 | java.lang.Thread.State: RUNNABLE
INFO | jvm 1 | 2015/07/20 19:47:58 | at java.net.SocketInputStream.socketRead0(Native Method)
INFO | jvm 1 | 2015/07/20 19:47:58 | at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
INFO | jvm 1 | 2015/07/20 19:47:58 | at java.net.SocketInputStream.read(SocketInputStream.java:170)
INFO | jvm 1 | 2015/07/20 19:47:58 | at java.net.SocketInputStream.read(SocketInputStream.java:141)
INFO | jvm 1 | 2015/07/20 19:47:58 | at org.postgresql.core.VisibleBufferedInputStream.readMore(VisibleBufferedInputStream.java:143)
INFO | jvm 1 | 2015/07/20 19:47:58 | at org.postgresql.core.VisibleBufferedInputStream.ensureBytes(VisibleBufferedInputStream.java:112)
INFO | jvm 1 | 2015/07/20 19:47:58 | at org.postgresql.core.VisibleBufferedInputStream.read(VisibleBufferedInputStream.java:71)
INFO | jvm 1 | 2015/07/20 19:47:58 | at org.postgresql.core.PGStream.ReceiveChar(PGStream.java:282)
INFO | jvm 1 | 2015/07/20 19:47:58 | at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1803)
INFO | jvm 1 | 2015/07/20 19:47:58 | at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:255)
INFO | jvm 1 | 2015/07/20 19:47:58 | - locked <0x000000077a9f8ca0> (a org.postgresql.core.v3.QueryExecutorImpl)
INFO | jvm 1 | 2015/07/20 19:47:58 | at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:570)
INFO | jvm 1 | 2015/07/20 19:47:58 | at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:420)
INFO | jvm 1 | 2015/07/20 19:47:58 | at org.postgresql.jdbc2.TypeInfoCache.getPGType(TypeInfoCache.java:323)
INFO | jvm 1 | 2015/07/20 19:47:58 | - locked <0x000000077aa00ce0> (a org.postgresql.jdbc2.TypeInfoCache)
INFO | jvm 1 | 2015/07/20 19:47:58 | at org.postgresql.jdbc2.TypeInfoCache.getSQLType(TypeInfoCache.java:175)
INFO | jvm 1 | 2015/07/20 19:47:58 | at org.postgresql.jdbc2.TypeInfoCache.requiresQuoting(TypeInfoCache.java:711)
INFO | jvm 1 | 2015/07/20 19:47:58 | at org.postgresql.jdbc2.AbstractJdbc2DatabaseMetaData.getTypeInfo(AbstractJdbc2DatabaseMetaData.java:4002)
INFO | jvm 1 | 2015/07/20 19:47:58 | at org.hibernate.engine.jdbc.spi.TypeInfo.extractTypeInfo(TypeInfo.java:101)
INFO | jvm 1 | 2015/07/20 19:47:58 | at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:163)
INFO | jvm 1 | 2015/07/20 19:47:58 | at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:111)
INFO | jvm 1 | 2015/07/20 19:47:58 | at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:234)
INFO | jvm 1 | 2015/07/20 19:47:58 | at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:206)
INFO | jvm 1 | 2015/07/20 19:47:58 | at org.hibernate.cfg.Configuration.buildTypeRegistrations(Configuration.java:1887)
INFO | jvm 1 | 2015/07/20 19:47:58 | at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1845)
INFO | jvm 1 | 2015/07/20 19:47:58 | at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:852)
INFO | jvm 1 | 2015/07/20 19:47:58 | at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:845)
INFO | jvm 1 | 2015/07/20 19:47:58 | at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.withTccl(ClassLoaderServiceImpl.java:398)
INFO | jvm 1 | 2015/07/20 19:47:58 | at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:844)
INFO | jvm 1 | 2015/07/20 19:47:58 | at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:60)
INFO | jvm 1 | 2015/07/20 19:47:58 | at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:343)
INFO | jvm 1 | 2015/07/20 19:47:58 | at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:318)
INFO | jvm 1 | 2015/07/20 19:47:58 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1633)
INFO | jvm 1 | 2015/07/20 19:47:58 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1570)
INFO | jvm 1 | 2015/07/20 19:47:58 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
INFO | jvm 1 | 2015/07/20 19:47:58 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
INFO | jvm 1 | 2015/07/20 19:47:58 | at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
INFO | jvm 1 | 2015/07/20 19:47:58 | at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
INFO | jvm 1 | 2015/07/20 19:47:58 | - locked <0x00000006dc2676d0> (a java.util.concurrent.ConcurrentHashMap)
INFO | jvm 1 | 2015/07/20 19:47:58 | at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
INFO | jvm 1 | 2015/07/20 19:47:58 | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
INFO | jvm 1 | 2015/07/20 19:47:58 | at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:956)
INFO | jvm 1 | 2015/07/20 19:47:58 | at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:747)
INFO | jvm 1 | 2015/07/20 19:47:58 | at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
INFO | jvm 1 | 2015/07/20 19:47:58 | - locked <0x00000006dbd48650> (a java.lang.Object)
INFO | jvm 1 | 2015/07/20 19:47:58 | at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)
INFO | jvm 1 | 2015/07/20 19:47:58 | at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:686)
INFO | jvm 1 | 2015/07/20 19:47:58 | at org.springframework.boot.SpringApplication.run(SpringApplication.java:320)
INFO | jvm 1 | 2015/07/20 19:47:58 | at org.springframework.boot.SpringApplication.run(SpringApplication.java:957)
INFO | jvm 1 | 2015/07/20 19:47:58 | at org.springframework.boot.SpringApplication.run(SpringApplication.java:946)
INFO | jvm 1 | 2015/07/20 19:47:58 | at xyz.abc.AppApplication.main(AppApplication.java:10)
INFO | jvm 1 | 2015/07/20 19:47:58 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO | jvm 1 | 2015/07/20 19:47:58 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
INFO | jvm 1 | 2015/07/20 19:47:58 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
INFO | jvm 1 | 2015/07/20 19:47:58 | at java.lang.reflect.Method.invoke(Method.java:497)
INFO | jvm 1 | 2015/07/20 19:47:58 | at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:53)
INFO | jvm 1 | 2015/07/20 19:47:58 | at java.lang.Thread.run(Thread.java:745)
INFO | jvm 1 | 2015/07/20 19:47:58 |
From "org.postgresql.jdbc2.TypeInfoCache.getSQLType" (in the above stack), I think Hibernate is still attempting to load metadata. This runs contrary to my configuration.
I would appreciate any pointers on how moving a configuration from a system property to application.properties can cause it to not take effect?
To specify any property that isn't in the default spring.jpa expected properties use spring.jpa.properties.<your-property-name-here>.
So instead of
hibernate.temp.use_jdbc_metadata_defaults=false
Use this instead in your application.properties.
spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults=false
This is explained in this section of the Spring Boot reference guide.
spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults = false
add the above to your application.properties file in your spring project

No session found for current thread. Works in local QA, fails in production

I know there are tons of questions related to this issue in SO. However my problem is different, my code works fine in local and QA, but giving this error in production.
NFO   | jvm 1    | main    org.hibernate.HibernateException: No Session found for
current thread
INFO   | jvm 1    | main       at
org.springframework.orm.hibernate4.SpringSessionContext.currentSession(SpringSessionContext.java:97)
INFO   | jvm 1    | main        at
org.hibernate.internal.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:988)
I can provide further details if needed, however I don't think you guys want to look at the code, when code is working in local and QA. Please help if anyone has encountered this situation.
EDIT1:
INFO | jvm 1 | main | 2014/05/13 07:35:48.065 | [1;31mFATAL [HTTP41] ] [Http500Handler] An Exception has occured in the application
INFO | jvm 1 | main | 2014/05/13 07:35:48.065 | org.hibernate.HibernateException: No Session found for current thread
INFO | jvm 1 | main | 2014/05/13 07:35:48.065 | at org.springframework.orm.hibernate4.SpringSessionContext.currentSession(SpringSessionContext.java:97)
INFO | jvm 1 | main | 2014/05/13 07:35:48.065 | at org.hibernate.internal.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:988)
INFO | jvm 1 | main | 2014/05/13 07:35:48.065 | at com.ppc.myapp.integration.dao.contract.impl.contractDAOImpl.getAccountStatus(contractDAOImpl.java:36)
INFO | jvm 1 | main | 2014/05/13 07:35:48.065 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO | jvm 1 | main | 2014/05/13 07:35:48.065 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
INFO | jvm 1 | main | 2014/05/13 07:35:48.065 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
INFO | jvm 1 | main | 2014/05/13 07:35:48.065 | at java.lang.reflect.Method.invoke(Method.java:606)
INFO | jvm 1 | main | 2014/05/13 07:35:48.065 | at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)
INFO | jvm 1 | main | 2014/05/13 07:35:48.065 | at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
INFO | jvm 1 | main | 2014/05/13 07:35:48.065 | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
INFO | jvm 1 | main | 2014/05/13 07:35:48.065 | at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
INFO | jvm 1 | main | 2014/05/13 07:35:48.065 | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
INFO | jvm 1 | main | 2014/05/13 07:35:48.065 | at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
INFO | jvm 1 | main | 2014/05/13 07:35:48.065 | at com.sun.proxy.$Proxy37.getAccountStatus(Unknown Source)
INFO | jvm 1 | main | 2014/05/13 07:35:48.065 | at com.mycompany.integration.customer.impl.CustomerCreditServiceImpl.isCreditWorthy(CustomerCreditServiceImpl.java:117)
INFO | jvm 1 | main | 2014/05/13 07:35:48.065 | at com.mycompany.integration.eligibility.impl.EligibilityLookupServiceImpl.checkMaxOrderMinCreditWorthiness(EligibilityLookupServiceImpl.java:230)
INFO | jvm 1 | main | 2014/05/13 07:35:48.065 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO | jvm 1 | main | 2014/05/13 07:35:48.065 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
INFO | jvm 1 | main | 2014/05/13 07:35:48.065 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
INFO | jvm 1 | main | 2014/05/13 07:35:48.065 | at java.lang.reflect.Method.invoke(Method.java:606)
INFO | jvm 1 | main | 2014/05/13 07:35:48.065 | at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)
INFO | jvm 1 | main | 2014/05/13 07:35:48.065 | at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
INFO | jvm 1 | main | 2014/05/13 07:35:48.065 | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
INFO | jvm 1 | main | 2014/05/13 07:35:48.065 | at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
INFO | jvm 1 | main | 2014/05/13 07:35:48.065 | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
INFO | jvm 1 | main | 2014/05/13 07:35:48.065 | at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
INFO | jvm 1 | main | 2014/05/13 07:35:48.065 | at com.sun.proxy.$Proxy40.checkMaxOrderMinCreditWorthiness(Unknown Source)
INFO | jvm 1 | main | 2014/05/13 07:35:48.065 | at com.mycompany.facades.order.impl.PPACheckoutFacadeImpl.getMaxOrderMinSalaryCreditWorthyCheck(PPACheckoutFacadeImpl.java:534)
INFO | jvm 1 | main | 2014/05/13 07:35:48.065 | at com.mycompany.storefront.controllers.pages.checkout.CheckoutController.checkout(CheckoutController.java:94)
INFO | jvm 1 | main | 2014/05/13 07:35:48.065 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO | jvm 1 | main | 2014/05/13 07:35:48.065 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
INFO | jvm 1 | main | 2014/05/13 07:35:48.065 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at java.lang.reflect.Method.invoke(Method.java:606)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:213)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:126)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:96)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:617)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:578)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:900)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:827)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:311)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:116)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:182)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at org.springframework.security.web.access.channel.ChannelProcessingFilter.doFilter(ChannelProcessingFilter.java:144)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:173)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at de.hybris.platform.servicelayer.web.PlatformFilterChain$InternalFilterChain.doFilter(PlatformFilterChain.java:203)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at com.mycompany.storefront.filters.NoCacheFilter.doFilterInternal(NoCacheFilter.java:36)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at de.hybris.platform.servicelayer.web.PlatformFilterChain$InternalFilterChain.doFilter(PlatformFilterChain.java:175)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at com.mycompany.storefront.filters.client.PPAOpenEnrollmentFilter.doFilterInternal(PPAOpenEnrollmentFilter.java:82)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at de.hybris.platform.servicelayer.web.PlatformFilterChain$InternalFilterChain.doFilter(PlatformFilterChain.java:175)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at com.mycompany.storefront.filters.client.PPAClientFilter.doFilterInternal(PPAClientFilter.java:52)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
INFO | jvm 1 | main | 2014/05/13 07:35:48.066 | at de.hybris.platform.servicelayer.web.PlatformFilterChain$InternalFilterChain.doFilter(PlatformFilterChain.java:175)
INFO | jvm 1 | main | 2014/05/13 07:35:48.067 | at com.mycompany.storefront.filters.btg.BTGSegmentFilter.doFilterInternal(BTGSegmentFilter.java:47)
INFO | jvm 1 | main | 2014/05/13 07:35:48.067 | at sun.reflect.GeneratedMethodAccessor969.invoke(Unknown Source)
INFO | jvm 1 | main | 2014/05/13 07:35:48.067 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
INFO | jvm 1 | main | 2014/05/13 07:35:48.067 | at java.lang.reflect.Method.invoke(Method.java:606)
INFO | jvm 1 | main | 2014/05/13 07:35:48.067 | at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)
INFO | jvm 1 | main | 2014/05/13 07:35:48.067 | at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
INFO | jvm 1 | main | 2014/05/13 07:35:48.067 | at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:686)
We found the issue. The context initialization failed during server start due to a missing property(from property file) in one of the bean injections.Application was up and most of the things were working but failed in this case.
We had to back out the build to Production because of the issue.
Thanks to all for your help.
EDIT:2
Adding the stacktrace seen in the server startup, we overlooked server startup logs, as We found the application up and running fine.
INFO | jvm 1 | main | 2014/05/13 07:37:25.977 | [m[0;31mERROR [WrapperSimpleAppMain] [Registry] Error while initialization global application context
INFO | jvm 1 | main | 2014/05/13 07:37:25.977 | org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'importPaymentInfoImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'migration.paymentinfo.dir'
INFO | jvm 1 | main | 2014/05/13 07:37:25.977 | at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:287)
INFO | jvm 1 | main | 2014/05/13 07:37:25.977 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1106)
INFO | jvm 1 | main | 2014/05/13 07:37:25.977 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
INFO | jvm 1 | main | 2014/05/13 07:37:25.977 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)

org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (ORA-28001: the password has expired )

I have an app that is using Oracle 11g as the db, and we had neglected to set the password expiration to never and the app itself then failed when the original password expired. We corrected that, and reset the password back to the original, and for some reason, while most of the functionality is working properly, part is not (throws the error in title). Below is the output from the log file. I have tried rebooting the server etc, but still get the same issue. Any thought?
Thanks!!!
INFO | jvm 1 | 2012/11/01 13:13:23 | INFO: webClient: Request attributes: [service=tsapprovals][tb=managedresources][oid=][action=splitpanecontroller][orderBy=][sortBy=] from Host[108.28.145.157]
INFO | jvm 1 | 2012/11/01 13:13:23 | AbandonedObjectPool is used (org.apache.commons.dbcp.AbandonedObjectPool#51f1e39b)
INFO | jvm 1 | 2012/11/01 13:13:23 | LogAbandoned: true
INFO | jvm 1 | 2012/11/01 13:13:23 | RemoveAbandoned: true
INFO | jvm 1 | 2012/11/01 13:13:23 | RemoveAbandonedTimeout: 300
INFO | jvm 1 | 2012/11/01 13:13:24 | org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (ORA-28001: the password has expired
INFO | jvm 1 | 2012/11/01 13:13:24 | )
INFO | jvm 1 | 2012/11/01 13:13:24 | at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1225)
INFO | jvm 1 | 2012/11/01 13:13:24 | at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
INFO | jvm 1 | 2012/11/01 13:13:24 | at isc.thinclient.util.DBConnectionFactory.getPooledConnection(DBConnectionFactory.java:459)
INFO | jvm 1 | 2012/11/01 13:13:24 | at isc.thinclient.util.DBConnectionFactory.getConnection(DBConnectionFactory.java:242)
INFO | jvm 1 | 2012/11/01 13:13:24 | at isc.thinclient.util.DBConnectionFactory.getConnection(DBConnectionFactory.java:221)
INFO | jvm 1 | 2012/11/01 13:13:24 | at isc.thinclient.util.DBConnectionFactory.<init>(DBConnectionFactory.java:157)
INFO | jvm 1 | 2012/11/01 13:13:24 | at isc.thinclient.util.DBConnectionFactory.getInstance(DBConnectionFactory.java:208)
INFO | jvm 1 | 2012/11/01 13:13:24 | at isc.thinclient.report.db.CrossPointDBUtility.<init>(CrossPointDBUtility.java:45)
INFO | jvm 1 | 2012/11/01 13:13:24 | at isc.thinclient.report.queries.DBQuery.initialize(DBQuery.java:64)
INFO | jvm 1 | 2012/11/01 13:13:24 | at isc.thinclient.report.queries.approval.PendingApprovalsQuery.initialize(PendingApprovalsQuery.java:34)
INFO | jvm 1 | 2012/11/01 13:13:24 | at isc.thinclient.web.command.splitpane.services.PendingApprovals.execute(PendingApprovals.java:65)
INFO | jvm 1 | 2012/11/01 13:13:24 | at isc.thinclient.web.command.splitpane.SplitPaneCommand.displayControllerPane(SplitPaneCommand.java:120)
INFO | jvm 1 | 2012/11/01 13:13:24 | at isc.thinclient.web.command.splitpane.SplitPaneCommand.execute(SplitPaneCommand.java:57)
INFO | jvm 1 | 2012/11/01 13:13:24 | at isc.thinclient.web.servlet.CommandProcessor.processAction(CommandProcessor.java:1587)
INFO | jvm 1 | 2012/11/01 13:13:24 | at isc.thinclient.web.servlet.CommandProcessor.process(CommandProcessor.java:1156)
INFO | jvm 1 | 2012/11/01 13:13:24 | at isc.thinclient.web.servlet.Controller.handleRequest(Controller.java:210)
INFO | jvm 1 | 2012/11/01 13:13:24 | at org.apache.velocity.servlet.VelocityServlet.doRequest(VelocityServlet.java:358)
INFO | jvm 1 | 2012/11/01 13:13:24 | at isc.thinclient.web.servlet.Controller.doRequest(Controller.java:838)
INFO | jvm 1 | 2012/11/01 13:13:24 | at org.apache.velocity.servlet.VelocityServlet.doGet(VelocityServlet.java:317)
INFO | jvm 1 | 2012/11/01 13:13:24 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
INFO | jvm 1 | 2012/11/01 13:13:24 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
INFO | jvm 1 | 2012/11/01 13:13:24 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
INFO | jvm 1 | 2012/11/01 13:13:24 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
INFO | jvm 1 | 2012/11/01 13:13:24 | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
INFO | jvm 1 | 2012/11/01 13:13:24 | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
INFO | jvm 1 | 2012/11/01 13:13:24 | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
INFO | jvm 1 | 2012/11/01 13:13:24 | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
INFO | jvm 1 | 2012/11/01 13:13:24 | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
INFO | jvm 1 | 2012/11/01 13:13:24 | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
INFO | jvm 1 | 2012/11/01 13:13:24 | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
INFO | jvm 1 | 2012/11/01 13:13:24 | at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
INFO | jvm 1 | 2012/11/01 13:13:24 | at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
INFO | jvm 1 | 2012/11/01 13:13:24 | at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
INFO | jvm 1 | 2012/11/01 13:13:24 | at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
INFO | jvm 1 | 2012/11/01 13:13:24 | at java.lang.Thread.run(Thread.java:595)
INFO | jvm 1 | 2012/11/01 13:13:24 | Caused by: java.sql.SQLException: ORA-28001: the password has expired
INFO | jvm 1 | 2012/11/01 13:13:24 |
INFO | jvm 1 | 2012/11/01 13:13:24 | at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
INFO | jvm 1 | 2012/11/01 13:13:24 | at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
INFO | jvm 1 | 2012/11/01 13:13:24 | at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:283)
INFO | jvm 1 | 2012/11/01 13:13:24 | at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:278)
INFO | jvm 1 | 2012/11/01 13:13:24 | at oracle.jdbc.driver.T4CTTIoauthenticate.receiveOauth(T4CTTIoauthenticate.java:791)
INFO | jvm 1 | 2012/11/01 13:13:24 | at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:362)
INFO | jvm 1 | 2012/11/01 13:13:24 | at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:439)
INFO | jvm 1 | 2012/11/01 13:13:24 | at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
INFO | jvm 1 | 2012/11/01 13:13:24 | at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
INFO | jvm 1 | 2012/11/01 13:13:24 | at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
INFO | jvm 1 | 2012/11/01 13:13:24 | at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
INFO | jvm 1 | 2012/11/01 13:13:24 | at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294)
INFO | jvm 1 | 2012/11/01 13:13:24 | at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1247)
INFO | jvm 1 | 2012/11/01 13:13:24 | at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1221)
INFO | jvm 1 | 2012/11/01 13:13:24 | ... 34 more
INFO | jvm 1 | 2012/11/01 13:13:24 | loggedInUSer: System Administrator Thu Nov 01 18:13:24 UTC 2012
INFO | jvm 1 | 2012/11/01 13:13:24 | isc.thinclient.api.ThinAPIException: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (ORA-28001: the password has expired
It seems the password for your user profile has been expired, please try to execute the below query which can resolve this issue - for username and password use your values.
ALTER USER username IDENTIFIED BY password;

Load jndi.xml before beans.xml

I have two files beans.xml and jndi.xml. We want to retrieve something in beans.xml that is put into JNDI through jndi.xml. Unfortunately, beans in beans.xml are created before jndi.xml is loaded, so when we try to do the JNDI lookup in beans.xml, nothing is in JNDI. Is there a way to get jndi.xml to be loaded before beans.xml?
beans.xml
...
<bean id="geronimoTransactionManager" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName" value="java:comp/UserTransaction" />
</bean>
...
jndi.xml
<beans>
<bean id="jndi"
class="org.apache.xbean.spring.jndi.SpringInitialContextFactory"
factory-method="makeInitialContext"
singleton="true">
<property name="entries" ref="jndiEntries" />
</bean>
<map id="jndiEntries">
<entry key="java:comp/UserTransaction" value-ref="geronimoTransactionManager" />
</map>
<bean id="jtaTransactionManager" class="org.springframework.transaction.jta.JtaTransactionManager">
<property name="userTransaction" ref="geronimoTransactionManager" />
</bean>
<bean id="geronimoTransactionManager" class="org.apache.geronimo.transaction.manager.TransactionManagerImpl" />
</beans>
Here is the log that makes me believe beans.xml is loaded before jndi.xml.
21:43:26,927 | INFO | l Console Thread | ultOsgiApplicationContextCreator | 72 - org.springframework.osgi.extender - 1.2.0 | Discovered configurations {osgibundle:/META-INF/spring/*.xml} in bundle [SWIM Prototype :: AqMqJDBC Pooling (camel-osgi-aqmq)]
21:43:26,939 | INFO | ExtenderThread-4 | OsgiBundleXmlApplicationContext | 61 - org.springframework.context - 3.0.5.RELEASE | Refreshing OsgiBundleXmlApplicationContext(bundle=camel-osgi-aqmq, config=osgibundle:/META-INF/spring/*.xml): startup date [Wed Apr 20 21:43:26 GMT+00:00 2011]; root of context hierarchy
21:43:26,939 | INFO | ExtenderThread-4 | OsgiBundleXmlApplicationContext | 61 - org.springframework.context - 3.0.5.RELEASE | Unpublishing application context OSGi service for bundle SWIM Prototype :: AqMqJDBC Pooling (camel-osgi-aqmq)
21:43:26,973 | INFO | ExtenderThread-4 | XmlBeanDefinitionReader | 59 - org.springframework.beans - 3.0.5.RELEASE | Loading XML bean definitions from URL [bundleentry://202.fwk22939763/META-INF/spring/beans.xml]
21:43:27,295 | INFO | ExtenderThread-4 | CamelNamespaceHandler | 75 - org.apache.camel.camel-spring - 2.6.0.fuse-01-09 | OSGi environment detected.
21:43:29,167 | INFO | ExtenderThread-4 | WaiterApplicationContextExecutor | 72 - org.springframework.osgi.extender - 1.2.0 | No outstanding OSGi service dependencies, completing initialization for OsgiBundleXmlApplicationContext(bundle=camel-osgi-aqmq, config=osgibundle:/META-INF/spring/*.xml)
21:43:29,283 | INFO | ExtenderThread-5 | DefaultListableBeanFactory | 59 - org.springframework.beans - 3.0.5.RELEASE | Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory#77e77a: defining beans [template,consumerTemplate,camel-1:beanPostProcessor,camel-1,required,jtaTransactionManager,geronimoTransactionManager,activeMQ,jmsConnectionFactory,jmsManagedConnectionFactory,jmsResourceAdapter,jencksConnectionManager,jencksPoolingSupport,requiredBeanForOracleAq,oracleQueue,oracleQueueCredentials,aqConnectionFactoryQueue,aqXADataSource,jdbcXADataSource,managedXADataSource,myTransform,preProps,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0]; root of factory hierarchy
21:43:29,736 | INFO | ExtenderThread-5 | OsgiSpringCamelContext | 68 - org.apache.camel.camel-core - 2.6.0.fuse-01-09 | JMX enabled. Using ManagedManagementStrategy.
21:43:29,839 | INFO | ExtenderThread-5 | JtaTransactionManager | 74 - org.springframework.transaction - 3.0.5.RELEASE | Using JTA UserTransaction: org.apache.geronimo.transaction.manager.TransactionManagerImpl#1f07586
21:43:29,839 | INFO | ExtenderThread-5 | JtaTransactionManager | 74 - org.springframework.transaction - 3.0.5.RELEASE | Using JTA TransactionManager: org.apache.geronimo.transaction.manager.TransactionManagerImpl#1f07586
21:43:29,839 | INFO | ExtenderThread-5 | JtaTransactionManager | 74 - org.springframework.transaction - 3.0.5.RELEASE | Using JTA TransactionSynchronizationRegistry: org.apache.geronimo.transaction.manager.TransactionManagerImpl#1f07586
21:43:30,104 | INFO | ExtenderThread-5 | OsgiSpringCamelContext | 68 - org.apache.camel.camel-core - 2.6.0.fuse-01-09 | Apache Camel 2.6.0-fuse-01-09 (CamelContext: 202-camel-3) is starting21:43:30,430 | INFO | ExtenderThread-5 | Activator | 68 - org.apache.camel.camel-core - 2.6.0.fuse-01-09 | Found 13 #Converter classes to load
21:43:30,469 | INFO | ExtenderThread-5 | Activator | 68 - org.apache.camel.camel-core - 2.6.0.fuse-01-09 | Found 1 #Converter classes to load
21:43:30,473 | INFO | ExtenderThread-5 | Activator | 68 - org.apache.camel.camel-core - 2.6.0.fuse-01-09 | Found 1 #Converter classes to load
21:43:30,477 | INFO | ExtenderThread-5 | Activator | 68 - org.apache.camel.camel-core - 2.6.0.fuse-01-09 | Found 2 #Converter classes to load
21:43:34,173 | INFO | ExtenderThread-5 | OsgiSpringCamelContext | 68 - org.apache.camel.camel-core - 2.6.0.fuse-01-09 | Route: route1 started and consuming from: Endpoint[activeMQ://queue:BROKER2.QUEUE?concurrentConsumers=10]
21:43:34,194 | INFO | ExtenderThread-5 | OsgiSpringCamelContext | 68 - org.apache.camel.camel-core - 2.6.0.fuse-01-09 | Total 1 routes, of which 1 is started.
21:43:34,196 | INFO | ExtenderThread-5 | OsgiSpringCamelContext | 68 - org.apache.camel.camel-core - 2.6.0.fuse-01-09 | Apache Camel 2.6.0-fuse-01-09 (CamelContext: 202-camel-3) started in 4.089 seconds
21:43:34,204 | INFO | ExtenderThread-5 | OsgiBundleXmlApplicationContext | 61 - org.springframework.context - 3.0.5.RELEASE | Publishing application context as OSGi service with properties {org.springframework.context.service.name=camel-osgi-aqmq, Bundle-SymbolicName=camel-osgi-aqmq, Bundle-Version=4.3.0.fuse-03-00}
21:43:34,205 | INFO | ExtenderThread-5 | ContextLoaderListener | 72 - org.springframework.osgi.extender - 1.2.0 | Application context successfully refreshed (OsgiBundleXmlApplicationContext(bundle=camel-osgi-aqmq, config=osgibundle:/META-INF/spring/*.xml))
21:43:41,674 | INFO | tenerContainer-7 | SpringInitialContextFactory | 110 - org.apache.xbean.spring - 3.7 | Loading JNDI context from: class path resource [jndi.xml]
21:43:41,685 | INFO | tenerContainer-7 | XBeanXmlBeanDefinitionReader | 59 - org.springframework.beans - 3.0.5.RELEASE | Loading XML bean definitions from class path resource [jndi.xml]
In jndi.xml, you should try :
<beans>
<import resource="beans.xml"/>
(...)

Resources