Hello -
I am trying to get the latest beta version of James running on an
openSuSE13.1 x64 system and running into some troubles. Wonder if some
kind guru can translate this into plain English for me. I suspect it may
have something to do with my domainlist.conf file but I have tried all
kinds of permutations with no joy so far... Anywise on startup I am
getting the following messages in the wrapper.log file, and going on the
assumption that the first error message is the best place to start
resolving the problem, I will only include the initial messages and not
the whole file. (unless someone asks me for it...)
My last attempt with domainlist.conf looked like this, and I have tried
using both the JPA and XML segments with no joy -
<!-- JPA implementation for DomainList -->
<domainlist class="org.apache.james.domainlist.jpa.JPADomainList">
<autodetect>true</autodetect>
<autodetectIP>true</autodetectIP>
<!--
<defaultDomain>mydomain.com</defaultDomain>
-->
<defaultDomain>localhost</defaultDomain>
</domainlist>
<!-- XML based implementation for DomainList -->
<!--
<domainlist class="org.apache.james.domainlist.xml.XMLDomainList">
<domainnames>
<domainname>mydomain.com</domainname>
<domainname>HHH-Server.mydomain.com</domainname>
<domainname>localhost</domainname>
</domainnames>
<autodetect>false</autodetect>
<autodetectIP>true</autodetectIP>
<defaultDomain>localhost</defaultDomain>
</domainlist>
My guess is this is the main problem -
INFO | jvm 1 | 2014/06/09 16:14:20 | WrapperSimpleApp: Encountered
an error running main:
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'mailprocessor': Injection of resource dependencies
failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'mailetcontext': Injection of resource dependencies
failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'domainlist': Invocation of init method failed; nested
exception is <openjpa-2.2.0-r422266:1244990 nonfatal general error>
org.apache.openjpa.persistence.PersistenceException: There were errors
initializing your configuration: <openjpa-2.2.0-r422266:1244990 fatal
user error> org.apache.openjpa.util.UserException: A connection could
not be obtained for driver class "null" and URL "null". You may have
specified an invalid URL.
Here is the initial contents of wrapper.log -
STATUS | wrapper | 2014/06/09 16:14:13 | --> Wrapper Started as Daemon
STATUS | wrapper | 2014/06/09 16:14:13 | Launching a JVM...
INFO | jvm 1 | 2014/06/09 16:14:14 | Wrapper (Version 3.2.3)
http://wrapper.tanukisoftware.org
INFO | jvm 1 | 2014/06/09 16:14:14 | Copyright 1999-2006 Tanuki
Software, Inc. All Rights Reserved.
INFO | jvm 1 | 2014/06/09 16:14:14 |
INFO | jvm 1 | 2014/06/09 16:14:14 | INFO 16:14:14,860 |
org.apache.james.container.spring.context.JamesServerApplicationContext
| Refreshing
org.apache.james.container.spring.context.JamesServerApplicationContext@17ef1258:
startup date [Mon Jun 09 16:14:14 PDT 2014]; root of context hierarchy
INFO | jvm 1 | 2014/06/09 16:14:17 | log4j:WARN No appenders could
be found for logger (org.apache.commons.configuration.ConfigurationUtils).
INFO | jvm 1 | 2014/06/09 16:14:17 | log4j:WARN Please initialize
the log4j system properly.
INFO | jvm 1 | 2014/06/09 16:14:17 | log4j:WARN See
http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
INFO | jvm 1 | 2014/06/09 16:14:17 | INFO 16:14:17,732 |
org.apache.james.container.spring.context.JamesServerApplicationContext
| Bean 'logprovider' of type [class
org.apache.james.container.spring.lifecycle.LogProviderImpl] is not
eligible for getting processed by all BeanPostProcessors (for example:
not eligible for auto-proxying)
INFO | jvm 1 | 2014/06/09 16:14:17 | INFO 16:14:17,823 |
james.mailrepositorystore | JamesMailStore init...
INFO | jvm 1 | 2014/06/09 16:14:17 | INFO 16:14:17,836 |
james.mailrepositorystore | Registering Repository instance of class
org.apache.james.mailrepository.file.FileMailRepository to handle file
protocol requests for repositories with key file
INFO | jvm 1 | 2014/06/09 16:14:17 | INFO 16:14:17,836 |
james.mailrepositorystore | Registering Repository instance of class
org.apache.james.mailrepository.jdbc.JDBCMailRepository to handle db
protocol requests for repositories with key db
INFO | jvm 1 | 2014/06/09 16:14:17 | INFO 16:14:17,837 |
james.mailrepositorystore | Registering Repository instance of class
org.apache.james.mailrepository.jdbc.JDBCMailRepository to handle dbfile
protocol requests for repositories with key dbfile
INFO | jvm 1 | 2014/06/09 16:14:17 | INFO 16:14:17,837 |
james.mailrepositorystore | Registering Repository instance of class
org.apache.james.mailrepository.file.MBoxMailRepository to handle mbox
protocol requests for repositories with key mbox
INFO | jvm 1 | 2014/06/09 16:14:18 | INFO 16:14:18,605 |
james.dnsservice | DNS Server is: <url deleted but is correct>
INFO | jvm 1 | 2014/06/09 16:14:18 | INFO 16:14:18,619 |
james.dnsservice | Registered cache, resolver and search paths as
DNSJava defaults
INFO | jvm 1 | 2014/06/09 16:14:19 | 26 James WARN
[WrapperSimpleAppMain] openjpa.Runtime - An error occurred while
registering a ClassTransformer with PersistenceUnitInfo: name 'James',
root URL [file:/srv/james/apache-james-3.0-beta5-SNAPSHOT/conf/]. The
error has been consumed. To see it, set your openjpa.Runtime log level
to TRACE. Load-time class transformation will not be available.
INFO | jvm 1 | 2014/06/09 16:14:19 | INFO 16:14:19,037 |
james.domainlist | Set autodetect to: true
INFO | jvm 1 | 2014/06/09 16:14:19 | INFO 16:14:19,037 |
james.domainlist | Set autodetectIP to: true
INFO | jvm 1 | 2014/06/09 16:14:19 | 65 James INFO
[WrapperSimpleAppMain] openjpa.Runtime - Starting OpenJPA 2.2.0
INFO | jvm 1 | 2014/06/09 16:14:19 | 115 James INFO
[WrapperSimpleAppMain] openjpa.jdbc.JDBC - Using dictionary class
"org.apache.openjpa.jdbc.sql.MySQLDictionary".
INFO | jvm 1 | 2014/06/09 16:14:20 |
INFO | jvm 1 | 2014/06/09 16:14:20 | WrapperSimpleApp: Encountered
an error running main:
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'mailprocessor': Injection of resource dependencies
failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'mailetcontext': Injection of resource dependencies
failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'domainlist': Invocation of init method failed; nested
exception is <openjpa-2.2.0-r422266:1244990 nonfatal general error>
org.apache.openjpa.persistence.PersistenceException: There were errors
initializing your configuration: <openjpa-2.2.0-r422266:1244990 fatal
user error> org.apache.openjpa.util.UserException: A connection could
not be obtained for driver class "null" and URL "null". You may have
specified an invalid URL.
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.apache.openjpa.jdbc.schema.DataSourceFactory.newConnectException(DataSourceFactory.java:255)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.apache.openjpa.jdbc.schema.DataSourceFactory.installDBDictionary(DataSourceFactory.java:241)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.getConnectionFactory(JDBCConfigurationImpl.java:733)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
java.lang.reflect.Method.invoke(Method.java:606)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.apache.openjpa.lib.conf.ConfigurationImpl.instantiateAll(ConfigurationImpl.java:295)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.apache.openjpa.conf.OpenJPAConfigurationImpl.instantiateAll(OpenJPAConfigurationImpl.java:1671)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.apache.openjpa.kernel.AbstractBrokerFactory.makeReadOnly(AbstractBrokerFactory.java:646)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.apache.openjpa.kernel.AbstractBrokerFactory.newBroker(AbstractBrokerFactory.java:203)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.apache.openjpa.kernel.DelegatingBrokerFactory.newBroker(DelegatingBrokerFactory.java:156)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:227)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:154)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
java.lang.reflect.Method.invoke(Method.java:606)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.invokeProxyMethod(AbstractEntityManagerFactoryBean.java:376)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.springframework.orm.jpa.AbstractEntityManagerFactoryBean$ManagedEntityManagerFactoryInvocationHandler.invoke(AbstractEntityManagerFactoryBean.java:517)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
com.sun.proxy.$Proxy34.createEntityManager(Unknown Source)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.apache.james.domainlist.jpa.JPADomainList.createEntityManager(JPADomainList.java:174)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.apache.james.domainlist.jpa.JPADomainList.init(JPADomainList.java:60)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
java.lang.reflect.Method.invoke(Method.java:606)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:346)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:299)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:132)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1448)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:442)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:416)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:549)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:159)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:303)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1106)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:442)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:416)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:549)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:159)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:303)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1106)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.apache.james.container.spring.context.JamesServerApplicationContext.<init>(JamesServerApplicationContext.java:39)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.apache.james.app.spring.JamesAppSpringMain.init(JamesAppSpringMain.java:61)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.apache.james.app.spring.JamesAppSpringMain.main(JamesAppSpringMain.java:42)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
java.lang.reflect.Method.invoke(Method.java:606)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
INFO | jvm 1 | 2014/06/09 16:14:20 | at
java.lang.Thread.run(Thread.java:744)
INFO | jvm 1 | 2014/06/09 16:14:20 | Caused by:
org.apache.commons.dbcp.SQLNestedException: Cannot create
PoolableConnectionFactory (Communications link failure due to underlying
exception:
INFO | jvm 1 | 2014/06/09 16:14:20 |
INFO | jvm 1 | 2014/06/09 16:14:20 | ** BEGIN NESTED EXCEPTION **
INFO | jvm 1 | 2014/06/09 16:14:20 |
INFO | jvm 1 | 2014/06/09 16:14:20 | java.net.SocketException
INFO | jvm 1 | 2014/06/09 16:14:20 | MESSAGE:
java.net.ConnectException: Connection refused
INFO | jvm 1 | 2014/06/09 16:14:20 |
INFO | jvm 1 | 2014/06/09 16:14:20 | STACKTRACE:
INFO | jvm 1 | 2014/06/09 16:14:20 |
INFO | jvm 1 | 2014/06/09 16:14:20 | java.net.SocketException:
java.net.ConnectException: Connection refused
INFO | jvm 1 | 2014/06/09 16:14:20 | at
com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:156)
I
Marc...
--
"The Truth is out there" - Spooky
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org