Hi Gerry,

about the xml schema, I like the idea but we need to wait till its
stable for 3.0.

The posted Exception of you is a bug which I just fixed.. Thanks for
all your feedback..

https://issues.apache.org/jira/browse/JAMES-1113

Bye,
Norman

2010/11/4 Gerry Matte <[email protected]>:
> Thanks for catching my invalid tag in the domainlist.  I believe I copied a
> block from my 2.3.2 config file ......
> I know it's a lot of work but perhaps your team should consider publishing
> schema for each of these control files - my XML editor would have caught the
> invalid tags.
> (I'd be happy to help with this if you like)
>
> Anyway, it looks to me like I would still have a problem using the JPA
> Domain List, so I changed the JPA log level to TRACE and tried again.
> The verbose results are attached.
>
> I'll switch back to using a properly formatted XMLDomainList for further
> testing.
>
> Gerry
> From: Gerry Matte
> Sent: Thursday, November 04, 2010 1:25 PM
> To: James Users List
> Subject: Re: James 3.0-M2 fails to startup on Windows server 2003
> I tried commenting the XML Domain List and activating JPADomainList in the
> attached domainlist.xml
> Still no domain names are loaded but now I also see new errors related to
> JPA (I think).
> Gerry
> ------------------- excerpt from run2 log
> 47  James  WARN   [main] openjpa.Runtime - An error occurred while
> registering a ClassTransformer with PersistenceUnitInfo: name 'James', root
> URL [file:/C:/s/james-3/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  13:45:06,406 | james.domainlist | Bean
> org.apache.james.domainlist.jpa.JPADomainList started.
> INFO  13:45:06,406 | james.mailserver | JAMES init...
> WARN  13:45:09,390 | james.mailserver | Configured defaultDomain not exist
> in DomainList, please add it ASAP!
> -------------------
> From: Gerry Matte
> Sent: Thursday, November 04, 2010 12:22 PM
> To: James Users List
> Subject: James 3.0-M2 fails to startup on Windows server 2003
> Hi Guys.
> I downloaded the M2 SNAPSHOT (build 41) and carefully changed all conf files
> while watching for files that have been modified since the snapshot was
> created.
> I noticed that many of the files included in this build are actually older
> than the files included in the M1 build (Oct 21 instead of Oct 26).
> Presumably this isn't important.
>
> I am still unable to start the server using an XML Domain List.  It appears
> as if the XML Domain list is loaded empty and other modules fail to find any
> domains defined.
> I've attached the run log and my config files - I've also duplicated the run
> log below.
> Let me know if there's anything else I can do.
>
> Gerry Matte
> 250-383-2466      http://www.gerrymatte.ca
>
> Nov 4/10 12:02 PDT Server DMS1
>
> Microsoft Windows [Version 5.2.3790]
> (C) Copyright 1985-2003 Microsoft Corp.
>
> C:\s\james-3\bin>run
> --------------------
> EXTRA_JVM_ARGUMENTS: -Xms128m -Xmx512m
> -Djava.system.class.loader=org.apache.james.container.spring.JamesClassLoader
> -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.ssl=false
> -Dcom.
> sun.management.jmxremote.access.file=../conf/jmx.access
> -Dcom.sun.management.jmxremote.password.file=../conf/jmx.password
> -Dcom.sun.management.jmxremote.port=9999
> -Dmail.mime.multipart.ignoremissingen
> dboundary=true -Dmail.mime.multipart.ignoremissingboundaryparameter=true
> -Dmail.mime.ignoreunknownencoding=true
> -Dmail.mime.uudecode.ignoreerrors=true
> -Dmail.mime.uudecode.ignoremissingbeginend=true -
> Dmail.mime.multipart.allowempty=true -Dmail.mime.base64.ignoreerrors=true
> -Dmail.mime.encodeparameters=true -Dmail.mime.decodeparameters=true
> -Dmail.mime.address.strict=false -Djames.message.usememory
> copy=false
> --------------------
> Error: Password file read access must be restricted: ../conf/jmx.password
>
> C:\s\james-3\bin>run [after adding to line 73 the java option to disable
> jmxremote authentication  -Dcom.sun.management.jmxremote.authenticate=false]
> --------------------
> EXTRA_JVM_ARGUMENTS: -Xms128m -Xmx512m
> -Djava.system.class.loader=org.apache.james.container.spring.JamesClassLoader
> -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.ssl=false
> -Dcom.
> sun.management.jmxremote.access.file=../conf/jmx.access
> -Dcom.sun.management.jmxremote.password.file=../conf/jmx.password
> -Dcom.sun.management.jmxremote.port=9999
> -Dmail.mime.multipart.ignoremissingen
> dboundary=true -Dmail.mime.multipart.ignoremissingboundaryparameter=true
> -Dmail.mime.ignoreunknownencoding=true
> -Dmail.mime.uudecode.ignoreerrors=true
> -Dmail.mime.uudecode.ignoremissingbeginend=true -
> Dmail.mime.multipart.allowempty=true -Dmail.mime.base64.ignoreerrors=true
> -Dmail.mime.encodeparameters=true -Dmail.mime.decodeparameters=true
> -Dmail.mime.address.strict=false -Djames.message.usememory
> copy=false -Dcom.sun.management.jmxremote.authenticate=false
> --------------------
> INFO  13:00:40,859 |
> org.apache.james.container.spring.JamesServerApplicationContext | Refreshing
> org.apache.james.container.spring.jamesserverapplicationcont...@1db4f6f:
> startup date [Thu Nov 04 13:00:40 GMT-06:00 2010]; root of context hierarchy
> log4j:WARN No appenders could be found for logger
> (org.apache.commons.configuration.ConfigurationUtils).
> log4j:WARN Please initialize the log4j system properly.
> INFO  13:00:44,953 |
> org.apache.james.container.spring.JamesServerApplicationContext | Bean
> 'configurationProvider' of type [class
> org.apache.james.container.spring.lifecycle.SpringConfigurationProvider] is
> not eligible for getting processed by all BeanPostProcessors (for example:
> not eligible for auto-proxying)
> INFO  13:00:44,968 |
> org.apache.james.container.spring.JamesServerApplicationContext | Bean
> 'logProvider' of type [class
> org.apache.james.container.spring.lifecycle.SpringLogProvider] is not
> eligiblefor getting processed by all BeanPostProcessors (for example: not
> eligible for auto-proxying)
> INFO  13:00:46,296 | james.domainlist | Set autodetect to: false
> INFO  13:00:46,296 | james.domainlist | Set autodetectIP to: true
> INFO  13:00:46,296 | james.domainlist | Bean
> org.apache.james.domainlist.xml.XMLDomainList started.
> INFO  13:00:46,312 | james.mailserver | JAMES init...
> INFO  13:00:46,515 | james.domainlist | Local host is: 192.168.12.10
> WARN  13:00:46,515 | james.mailserver | Configured defaultDomain not exist
> in DomainList, please add it ASAP!
> INFO  13:00:46,515 | james.domainlist | Local host is: 192.168.12.10
> Exception in thread "main"
> org.springframework.beans.factory.BeanCreationException: Error creating bean
> with name 'exporter' defined in class path resource [spring-beans.xml]:
> Cannot resolve reference
>  to bean 'smtpserver' while setting bean property 'beans' with key
> [TypedStringValue: value [org.apache.james:type=server,name=smtpserver],
> target type [null]]; nested exception is org.springframework
> .beans.factory.BeanCreationException: Error creating bean with name
> 'smtpserver': Injection of resource dependencies failed; nested exception is
> org.springframework.beans.factory.BeanCreationException
> : Error creating bean with name 'mailserver': Invocation of init method
> failed; nested exception is
> org.apache.commons.configuration.ConfigurationException: No domainnames
> configured
>         at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
>         at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
>         at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedMap(BeanDefinitionValueResolver.java:378)
>         at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:161)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
>         at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
>         at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
>         at
> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
>         at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
>         at
> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
>         at
> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
>         at
> org.apache.james.container.spring.JamesServerApplicationContext.<init>(JamesServerApplicationContext.java:37)
>         at org.apache.james.container.spring.Main.main(Main.java:27)
> Caused by: org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'smtpserver': Injection of resource dependencies
> failed; nested exception is org.springframework.beans
> .factory.BeanCreationException: Error creating bean with name 'mailserver':
> Invocation of init method failed; nested exception is
> org.apache.commons.configuration.ConfigurationException: No domainname
> s configured
>         at
> org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:300)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1074)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
>         at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
>         at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
>         ... 18 more
> Caused by: org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'mailserver': Invocation of init method failed;
> nested exception is org.apache.commons.configuration.C
> onfigurationException: No domainnames configured
>         at
> org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1413)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
>         at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
>         at
> org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:435)
>         at
> org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:409)
>         at
> org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:541)
>         at
> org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:156)
>         at
> org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:84)
>         at
> org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:297)
>         ... 26 more
> Caused by: org.apache.commons.configuration.ConfigurationException: No
> domainnames configured
>         at
> org.apache.james.JamesMailServer.initializeServernames(JamesMailServer.java:169)
>         at org.apache.james.JamesMailServer.init(JamesMailServer.java:124)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at
> org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:340)
>         at
> org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:293)
>         at
> org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:130)
>         ... 40 more
>
> C:\s\james-3\bin>
>
> ________________________________
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
> ________________________________
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to