You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Gerry Matte <Ge...@shaw.ca> on 2010/11/02 18:50:02 UTC
James 3.0-M1 fails to startup on Windows server 2003
Hi there.
I've been trying to start the M1 james 3 without success on MS Windows server 2003 with java 1.6u22 jdk.
------------------------------------------------
When I install the windows service with no changes to any CONF files the startup fails with no log output either to the james log files or to the windows event log (other than the useless message "service failed to start"]
My dos window is:
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.
C:\s\james-3\bin>james install
wrapper | Apache James Server Container Spring installed.
C:\s\james-3\bin>james start
wrapper | Starting the Apache James Server Container Spring service...
wrapper | Waiting to start...
wrapper | Waiting to start...
wrapper | Waiting to start...
wrapper | Waiting to start...
wrapper | The Apache James Server Container Spring service was launched,
but failed to start.
Press any key to continue . . .
Are we supposed to be able to start james 3 without making any changes ?
-----------------------------------------------
My first attempt was after making changes to the collection of XML files in CONF and attempting to start with those files.
When I tried to start james with those files, the windows event log showed one error "Error: Password file read access must be restricted: ../conf/jmx.password" which surprised me.
That's when I decided to try starting james with no configuration changes - just as released in the binary zip file.
I have not attempted to carry over any of my james 2.3.2 data to version 3. I've made sure that the james 2 service is stopped before trying to start james 3.
I'm stuck for ideas now.
Gerry Matte
250-383-2466 http://www.gerrymatte.ca
Re: James 3.0-M1 fails to startup on Windows server 2003
Posted by Gerry Matte <Ge...@shaw.ca>.
I followed this process for both james files CONF/jmx.access and
jmx.password but the same message occurs when I try to start james using
run.bat
Do I restrict access to my userid only (for when I start with run.bat) ?
Will that work ok when the james service attempts to start ?
Are these the only files that need permissions set ?
I see that there seems to be jmx access control files in
[JRE_HOME}/lib/management - are there any changes needed here ?
I'm tempted to try disabling username/password for jmx but I could not find
any info on that on the Oracle website ......
Thanks
Gerry
--------------------------------------------------
From: "Norman Maurer" <no...@apache.org>
Sent: Tuesday, November 02, 2010 10:56 AM
To: "James Users List" <se...@james.apache.org>
Subject: Re: James 3.0-M1 fails to startup on Windows server 2003
> Hi Gerry,
>
> see:
> http://james.apache.org/server/3/configuration.html
>
> You need to restrict the file access on the jmx access/pass files on
> windows or disable username/password stuff for jmx.
>
> Bye,
> Norman
>
> 2010/11/2 Gerry Matte <Ge...@shaw.ca>:
>> Hi there.
>> I've been trying to start the M1 james 3 without success on MS Windows
>> server 2003 with java 1.6u22 jdk.
>> ------------------------------------------------
>> When I install the windows service with no changes to any CONF files the
>> startup fails with no log output either to the james log files or to the
>> windows event log (other than the useless message "service failed to
>> start"]
>> My dos window is:
>> Microsoft Windows [Version 5.2.3790]
>> (C) Copyright 1985-2003 Microsoft Corp.
>>
>> C:\s\james-3\bin>james install
>> wrapper | Apache James Server Container Spring installed.
>>
>> C:\s\james-3\bin>james start
>> wrapper | Starting the Apache James Server Container Spring service...
>> wrapper | Waiting to start...
>> wrapper | Waiting to start...
>> wrapper | Waiting to start...
>> wrapper | Waiting to start...
>> wrapper | The Apache James Server Container Spring service was launched,
>> but failed to start.
>> Press any key to continue . . .
>>
>> Are we supposed to be able to start james 3 without making any changes ?
>>
>> -----------------------------------------------
>> My first attempt was after making changes to the collection of XML files
>> in CONF and attempting to start with those files.
>> When I tried to start james with those files, the windows event log
>> showed one error "Error: Password file read access must be restricted:
>> ../conf/jmx.password" which surprised me.
>> That's when I decided to try starting james with no configuration
>> changes - just as released in the binary zip file.
>>
>> I have not attempted to carry over any of my james 2.3.2 data to version
>> 3. I've made sure that the james 2 service is stopped before trying to
>> start james 3.
>> I'm stuck for ideas now.
>>
>> Gerry Matte
>> 250-383-2466 http://www.gerrymatte.ca
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: James 3.0-M1 fails to startup on Windows server 2003
Posted by Gerry Matte <Ge...@shaw.ca>.
Hi Eric.
Thanks for the tips.
I did set enable VirtualHosting to true and my mailserver defaultDomain is
specified as gerrymatte.ca which also appears in the list of domain names in
domainlist.xml.
Do you see any other problems ?
Thx
<mailserver>
<!-- CHECKME! -->
<!-- This is the postmaster email address for this mail server. -->
<!-- Set this to the appropriate email address for error reports -->
<!-- If this is set to a non-local email address, the mail server -->
<!-- will still function, but will generate a warning on startup. -->
<postmaster>gerry.matte@shaw.ca</postmaster>
<!-- Set to true to support virtualHosting. If virtualHosting support is
enabled the server will accept thread every user independ on -->
<!-- domain level. -->
<enableVirtualHosting>true</enableVirtualHosting>
<!-- Set the default domain which will be used if an email is send to a
recipient without a domain part -->
<!-- If not defaultdomain is set the first domain of the DomainList get
used -->
<defaultDomain>gerrymatte.ca</defaultDomain>
<!-- This is the name used by the server to identify itself in the
RemoteManager -->
<!-- protocol. If autodetect is TRUE, the server will discover its -->
<!-- own host name and use that in the protocol. If discovery
fails, -->
<!-- the value of 'localhost' is used. If autodetect is FALSE,
James -->
<!-- will use the specified value. -->
<!-- Set the default helloName which is used in all services if not
overridden in the specific service-->
<helloName autodetect="false">www.dmsservices.ca</helloName>
</mailserver>
<!-- XML based DomainList implementation -->
<domainlist class="org.apache.james.domainlist.xml.XMLDomainList">
<domainnames>
<servername>gerrymatte.ca</servername>
<servername>gerrymatte.com</servername>
<servername>dmsservices.ca</servername>
<servername>candnoilfield.com</servername>
<servername>localhost</servername>
<servername>69.11.121.248</servername>
<servername>127.0.0.1</servername>
<servername>192.168.12.10</servername>
</domainnames>
<autodetect>false</autodetect>
<autodetectIP>true</autodetectIP>
</domainlist>
--------------------------------------------------
From: "Eric Charles" <er...@apache.org>
Sent: Tuesday, November 02, 2010 11:36 PM
To: "James Users List" <se...@james.apache.org>
Subject: Re: James 3.0-M1 fails to startup on Windows server 2003
>
>>> I also see multiple uncaught exceptions complaining that the configured
>>> defaultDomain does not exist in the DomainList.
>>> Does anyone know how I can determine what the defaultDomain is ?
>>> I suspect I have to add something to the domainlist.xml but I have no
>>> idea
>>> what that might be - possibly the machine name for the server ?The list
>>> of domains I have configured is quite lengthy because I plan to
>>> support multiple email domains.
>> The defaultDomain is configured in the mailserver.xml and is localhost
>> by default.
>>
> For multiple domains, check that you enableVirtualHosting is true in
> mailserver.xml.
> Also the defaulitDomain in mailserver.xml should be in the list of
> domainnames in domanilist.xml (if defaultDomain is localhost, you should
> have it in domainnames)
>
> Fore more dynamic domain management (add/remove/list vai the
> remotemanager - telnet localhost 4555), you can comment in domainlist.xml
> the XML section and
> uncomment the JPA section (the domains will be persisted in the database).
>
> Tks,
>
> Eric
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: James 3.0-M1 fails to startup on Windows server 2003
Posted by Eric Charles <er...@apache.org>.
>> I also see multiple uncaught exceptions complaining that the configured
>> defaultDomain does not exist in the DomainList.
>> Does anyone know how I can determine what the defaultDomain is ?
>> I suspect I have to add something to the domainlist.xml but I have no idea
>> what that might be - possibly the machine name for the server ?The list of domains I have configured is quite lengthy because I plan to
>> support multiple email domains.
> The defaultDomain is configured in the mailserver.xml and is localhost
> by default.
>
For multiple domains, check that you enableVirtualHosting is true in
mailserver.xml.
Also the defaulitDomain in mailserver.xml should be in the list of
domainnames in domanilist.xml (if defaultDomain is localhost, you should
have it in domainnames)
Fore more dynamic domain management (add/remove/list vai the
remotemanager - telnet localhost 4555), you can comment in
domainlist.xml the XML section and
uncomment the JPA section (the domains will be persisted in the database).
Tks,
Eric
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: James 3.0-M1 fails to startup on Windows server 2003
Posted by Norman Maurer <no...@apache.org>.
Sorry I missed this before .... The source of the snapshot can be
found in James-server/
Bye
Norman
2010/11/4, Norman Maurer <no...@apache.org>:
> You need to grab the -M2 bin stuff
>
> Bye
> Norman
>
> 2010/11/4, Gerry Matte <Ge...@shaw.ca>:
>> Thanks Norman.
>> I just grabbed the files for Build 41.
>> I see there's only the M1 source files (I assume - dated 20101028).
>> Are the snapshot sources available that correspond with the binaries ?
>> Thanks
>> Gerry
>> --------------------------------------------------
>> From: "Norman Maurer" <no...@apache.org>
>> Sent: Wednesday, November 03, 2010 12:49 PM
>> To: "James Users List" <se...@james.apache.org>
>> Subject: Re: James 3.0-M1 fails to startup on Windows server 2003
>>
>>> Hi Gerry,
>>>
>>> we will release once activemq-5.4.2 is out. In the meantime you can
>>> download the snapshot and test with it.
>>>
>>> https://repository.apache.org/content/groups/snapshots/org/apache/james/james-server-container-spring/3.0-M2-SNAPSHOT/
>>>
>>> Just wait till tomorrow to be sure it has all the fixes..
>>>
>>> Bye,
>>> Norman
>>>
>>> 2010/11/3 Gerry Matte <Ge...@shaw.ca>:
>>>> Thanks Norman for your quick response.
>>>> I was able to prevent the jmx error by executing run.bat with my jboss
>>>> server service stopped.
>>>> When port 9999 is used by james, I won't have a port conflict any more
>>>> since
>>>> none of my java apps seem to use that port.
>>>> I still have to track down why setting file permissions for jmx.access
>>>> and
>>>> jmx.remote was ineffective for me ....
>>>>
>>>> Since I can't go any further with my M1 testing, when will M2 be
>>>> released
>>>>
>>>> ?
>>>> (Ballpark estimate)
>>>> Thanks
>>>> Gerry
>>>>
>>>> --------------------------------------------------
>>>> From: "Norman Maurer" <no...@apache.org>
>>>> Sent: Wednesday, November 03, 2010 11:17 AM
>>>> To: "James Users List" <se...@james.apache.org>
>>>> Subject: Re: James 3.0-M1 fails to startup on Windows server 2003
>>>>
>>>>> Hi Gerry,
>>>>>
>>>>> the other should be fixed too:
>>>>>
>>>>> https://issues.apache.org/jira/browse/JAMES-1112
>>>>>
>>>>> Thx for the feedback,
>>>>> Norman
>>>>>
>>>>> 2010/11/3 Norman Maurer <no...@apache.org>:
>>>>>>
>>>>>> First one is fixed:
>>>>>>
>>>>>> https://issues.apache.org/jira/browse/JAMES-1111
>>>>>>
>>>>>> Now the jmx stuff ;)
>>>>>>
>>>>>> Bye,
>>>>>> Norman
>>>>>>
>>>>>> 2010/11/3 Norman Maurer <no...@apache.org>:
>>>>>>>
>>>>>>> Hi Gerry,
>>>>>>>
>>>>>>> thats another problem.. I will open a jira issue to keep track.
>>>>>>>
>>>>>>> Thx,
>>>>>>> Norman
>>>>>>>
>>>>>>> 2010/11/3 Gerry Matte <Ge...@shaw.ca>:
>>>>>>>>
>>>>>>>> Thanks very much for your comments Norman (and Eric).
>>>>>>>> I'm back to testing mode now.
>>>>>>>> Norman asked for the error info that illustrates that james is
>>>>>>>> using
>>>>>>>> port
>>>>>>>> 1099.
>>>>>>>> I see that line 73 of the run.bat that I executed appears to
>>>>>>>> establish
>>>>>>>> port
>>>>>>>> 9999 as the jmx port but the command window illustrates that
>>>>>>>> parameter
>>>>>>>> was
>>>>>>>> ineffective for me.
>>>>>>>> Rin.bat line 73
>>>>>>>> set EXTRA_JVM_ARGUMENTS=-Xms128m -Xmx512m
>>>>>>>>
>>>>>>>> -Djava.system.class.loader=org.apache.james.container.spring.JamesClassLoader
>>>>>>>> -Dcom.sun.management.jmxremote=true
>>>>>>>> -Dcom.sun.management.jmxremote.authenticate=false
>>>>>>>> -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.ignoremissingendboundary=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
>>>>>>>>
>>>>>>>> Execution window (also attached for readability):
>>>>>>>> Microsoft Windows [Version 5.2.3790]
>>>>>>>> (C) Copyright 1985-2003 Microsoft Corp.
>>>>>>>>
>>>>>>>> C:\s\james-3\bin>run
>>>>>>>> INFO 16:52:15,562 |
>>>>>>>> org.apache.james.container.spring.JamesServerApplicationContext |
>>>>>>>> Refreshing
>>>>>>>> org.apache.james.container.spring.JamesServerApplicationContext@d6c16c:
>>>>>>>> startup date [Tue Nov 02 16:52:15 GMT-06:00 2010]; root of context
>>>>>>>> hierarchylog4j:WARN No appenders could be found for logger
>>>>>>>> (org.apache.commons.configuration.ConfigurationUtils).log4j:WARN
>>>>>>>> Please
>>>>>>>> initialize the log4j system properly.
>>>>>>>> INFO 16:52:17,906 |
>>>>>>>> org.apache.james.container.spring.JamesServerApplicationContext |
>>>>>>>> Bean
>>>>>>>> 'configurationProvider' is not eligible for getting processed by
>>>>>>>> all
>>>>>>>> BeanPostProcessors (for example: not eligible for auto-proxying)
>>>>>>>> INFO 16:52:17,906 |
>>>>>>>> org.apache.james.container.spring.JamesServerApplicationContext |
>>>>>>>> Bean
>>>>>>>> 'logProvider' is not eligible for getting processed by all
>>>>>>>> BeanPostProcessors (for example: not eligible for auto-proxying)
>>>>>>>> INFO 16:52:18,093 | james.domainlist | Set autodetect to: false
>>>>>>>> INFO 16:52:18,093 | james.domainlist | Set autodetectIP to: true
>>>>>>>> INFO 16:52:18,093 | james.domainlist | Bean
>>>>>>>> org.apache.james.domainlist.xml.XMLDomainList started.
>>>>>>>> WARN 16:52:18,171 |
>>>>>>>> org.apache.activemq.broker.jmx.ManagementContext
>>>>>>>>
>>>>>>>> |
>>>>>>>> Failed to start jmx connector: Cannot bind to URL
>>>>>>>> [rmi://localhost:1099/jmxrmi]: javax.naming.CommunicationException
>>>>>>>> [Root
>>>>>>>> exception is java.rmi.ConnectIOException: non-JRMP server at remote
>>>>>>>> endpoint]
>>>>>>>> WARN 16:52:18,453 |
>>>>>>>> org.apache.activemq.broker.jmx.ManagementContext
>>>>>>>>
>>>>>>>> |
>>>>>>>> Failed to start jmx connector: Cannot bind to URL
>>>>>>>> [rmi://localhost:1099/jmxrmi]: javax.naming.CommunicationException
>>>>>>>> [Root
>>>>>>>> exception is java.rmi.ConnectIOException: non-JRMP server at remote
>>>>>>>> endpoint]
>>>>>>>> INFO 16:52:18,484 | james.mailserver | JAMES init...
>>>>>>>> INFO 16:52:18,562 | 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:
>>>>>>>> Configured
>>>>>>>> defaultDomain not exist in DomainList
>>>>>>>> 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:
>>>>>>>> Configured
>>>>>>>> defaultDomain not exist in DomainList
>>>>>>>> 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.ConfigurationException:
>>>>>>>> Configured defaultDomain not exist in DomainList
>>>>>>>> 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:159)
>>>>>>>> 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:
>>>>>>>> Configured defaultDomain not exist in DomainList
>>>>>>>> at
>>>>>>>>
>>>>>>>> org.apache.james.JamesMailServer.initializeServernames(JamesMailServer.java:180)
>>>>>>>> at
>>>>>>>> org.apache.james.JamesMailServer.init(JamesMailServer.java:140)
>>>>>>>> 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>
>>>>>>>>
>>>>>>>> --------------------------------------------------
>>>>>>>> From: "Norman Maurer" <no...@apache.org>
>>>>>>>> Sent: Tuesday, November 02, 2010 11:16 PM
>>>>>>>> To: "James Users List" <se...@james.apache.org>
>>>>>>>> Subject: Re: James 3.0-M1 fails to startup on Windows server 2003
>>>>>>>>
>>>>>>>>> Hi Gerry,
>>>>>>>>>
>>>>>>>>> comments inside..
>>>>>>>>>
>>>>>>>>> 2010/11/3 Gerry Matte <Ge...@shaw.ca>:
>>>>>>>>>>
>>>>>>>>>> As I indicated , following the recommended procedure to restrict
>>>>>>>>>> file
>>>>>>>>>> access
>>>>>>>>>> for CONF/jmx.access and jmx.password was not effective for me.
>>>>>>>>>> Either I missed a subtle step or it doesn't work on my Windows
>>>>>>>>>> platform
>>>>>>>>>> because I am running other java products that use jmx ......
>>>>>>>>>> By cruising the ActiveMQ web pages, I was able to determine how
>>>>>>>>>> to
>>>>>>>>>> disable
>>>>>>>>>> jmx password security by adding a java option to run.bat
>>>>>>>>>>
>>>>>>>>>> I no longer encounter the same error message (that the
>>>>>>>>>> jmx.password
>>>>>>>>>> file
>>>>>>>>>> is
>>>>>>>>>> unprotected) but I now see a connection error attempting to
>>>>>>>>>> connect
>>>>>>>>>> to
>>>>>>>>>> localhost:1099/jmxrmi
>>>>>>>>>> Port 1099 is already in use on my machine - either by JBoss 5.1
>>>>>>>>>> or
>>>>>>>>>> by
>>>>>>>>>> Apache
>>>>>>>>>> ftp or OpenDS I suspect.
>>>>>>>>>> Tomorrow (Nov 3) I'll try to identify the application that is
>>>>>>>>>> currently
>>>>>>>>>> using port 1099 or maybe I'll try to use an alternative port by
>>>>>>>>>> modifying
>>>>>>>>>> the james run.bat java options.
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Normally JMX of James should bind to port 9999. Could you post the
>>>>>>>>> error ?
>>>>>>>>>
>>>>>>>>>> I'm not sure it matters but two info messages occur after the
>>>>>>>>>> connection
>>>>>>>>>> error:
>>>>>>>>>> Bean 'configurationProvider' is not eligible for getting
>>>>>>>>>> processed
>>>>>>>>>> by
>>>>>>>>>> all
>>>>>>>>>> BeanPostProcessors (for example: not eligible for auto-proxying)
>>>>>>>>>> The same message occurs for Bean 'logProvider'
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Nothing to worry about, it will get fixed in spring 3.0.5:
>>>>>>>>> https://jira.springframework.org/browse/SPR-7524
>>>>>>>>>
>>>>>>>>>> I also see multiple uncaught exceptions complaining that the
>>>>>>>>>> configured
>>>>>>>>>> defaultDomain does not exist in the DomainList.
>>>>>>>>>> Does anyone know how I can determine what the defaultDomain is ?
>>>>>>>>>> I suspect I have to add something to the domainlist.xml but I
>>>>>>>>>> have
>>>>>>>>>> no
>>>>>>>>>> idea
>>>>>>>>>> what that might be - possibly the machine name for the server ?
>>>>>>>>>> The list of domains I have configured is quite lengthy because I
>>>>>>>>>> plan
>>>>>>>>>> to
>>>>>>>>>> support multiple email domains.
>>>>>>>>>
>>>>>>>>> The defaultDomain is configured in the mailserver.xml and is
>>>>>>>>> localhost
>>>>>>>>> by default.
>>>>>>>>>>
>>>>>>>>>> Thanks in advance for any help.
>>>>>>>>>> Gerry
>>>>>>>>>>
>>>>>>>>>> --------------------------------------------------
>>>>>>>>>> From: "Norman Maurer" <no...@apache.org>
>>>>>>>>>> Sent: Tuesday, November 02, 2010 10:56 AM
>>>>>>>>>> To: "James Users List" <se...@james.apache.org>
>>>>>>>>>> Subject: Re: James 3.0-M1 fails to startup on Windows server 2003
>>>>>>>>>>>
>>>>>>>>>>> Hi Gerry,
>>>>>>>>>>>
>>>>>>>>>>> see:
>>>>>>>>>>> http://james.apache.org/server/3/configuration.html
>>>>>>>>>>>
>>>>>>>>>>> You need to restrict the file access on the jmx access/pass
>>>>>>>>>>> files
>>>>>>>>>>> on
>>>>>>>>>>> windows or disable username/password stuff for jmx.
>>>>>>>>>>>
>>>>>>>>>>> Bye,
>>>>>>>>>>> Norman
>>>>>>>>>>>
>>>>>>>>>>> 2010/11/2 Gerry Matte <Ge...@shaw.ca>:
>>>>>>>>>>>>
>>>>>>>>>>>> Hi there.
>>>>>>>>>>>> I've been trying to start the M1 james 3 without success on MS
>>>>>>>>>>>> Windows
>>>>>>>>>>>> server 2003 with java 1.6u22 jdk.
>>>>>>>>>>>> ------------------------------------------------
>>>>>>>>>>>> When I install the windows service with no changes to any CONF
>>>>>>>>>>>> files
>>>>>>>>>>>> the
>>>>>>>>>>>> startup fails with no log output either to the james log files
>>>>>>>>>>>> or
>>>>>>>>>>>> to
>>>>>>>>>>>> the
>>>>>>>>>>>> windows event log (other than the useless message "service
>>>>>>>>>>>> failed
>>>>>>>>>>>> to
>>>>>>>>>>>> start"]
>>>>>>>>>>>> My dos window is:
>>>>>>>>>>>> Microsoft Windows [Version 5.2.3790]
>>>>>>>>>>>> (C) Copyright 1985-2003 Microsoft Corp.
>>>>>>>>>>>>
>>>>>>>>>>>> C:\s\james-3\bin>james install
>>>>>>>>>>>> wrapper | Apache James Server Container Spring installed.
>>>>>>>>>>>>
>>>>>>>>>>>> C:\s\james-3\bin>james start
>>>>>>>>>>>> wrapper | Starting the Apache James Server Container Spring
>>>>>>>>>>>> service...
>>>>>>>>>>>> wrapper | Waiting to start...
>>>>>>>>>>>> wrapper | Waiting to start...
>>>>>>>>>>>> wrapper | Waiting to start...
>>>>>>>>>>>> wrapper | Waiting to start...
>>>>>>>>>>>> wrapper | The Apache James Server Container Spring service was
>>>>>>>>>>>> launched,
>>>>>>>>>>>> but failed to start.
>>>>>>>>>>>> Press any key to continue . . .
>>>>>>>>>>>>
>>>>>>>>>>>> Are we supposed to be able to start james 3 without making any
>>>>>>>>>>>> changes
>>>>>>>>>>>> ?
>>>>>>>>>>>>
>>>>>>>>>>>> -----------------------------------------------
>>>>>>>>>>>> My first attempt was after making changes to the collection of
>>>>>>>>>>>> XML
>>>>>>>>>>>> files
>>>>>>>>>>>> in CONF and attempting to start with those files.
>>>>>>>>>>>> When I tried to start james with those files, the windows event
>>>>>>>>>>>> log
>>>>>>>>>>>> showed one error "Error: Password file read access must be
>>>>>>>>>>>> restricted:
>>>>>>>>>>>> ../conf/jmx.password" which surprised me.
>>>>>>>>>>>> That's when I decided to try starting james with no
>>>>>>>>>>>> configuration
>>>>>>>>>>>> changes
>>>>>>>>>>>> - just as released in the binary zip file.
>>>>>>>>>>>>
>>>>>>>>>>>> I have not attempted to carry over any of my james 2.3.2 data
>>>>>>>>>>>> to
>>>>>>>>>>>> version
>>>>>>>>>>>> 3. I've made sure that the james 2 service is stopped before
>>>>>>>>>>>> trying to
>>>>>>>>>>>> start james 3.
>>>>>>>>>>>> I'm stuck for ideas now.
>>>>>>>>>>>>
>>>>>>>>>>>> Gerry Matte
>>>>>>>>>>>> 250-383-2466 http://www.gerrymatte.ca
>>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Thx for the feedback,
>>>>>>>>> Norman
>>>>>>>>>
>>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>>>>>>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>>>>>>
>>>>>>>>
>>>>>>>> ---------------------------------------------------------------------
>>>>>>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>>>>>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-user-help@james.apache.org
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: James 3.0-M1 fails to startup on Windows server 2003
Posted by Norman Maurer <no...@apache.org>.
You need to grab the -M2 bin stuff
Bye
Norman
2010/11/4, Gerry Matte <Ge...@shaw.ca>:
> Thanks Norman.
> I just grabbed the files for Build 41.
> I see there's only the M1 source files (I assume - dated 20101028).
> Are the snapshot sources available that correspond with the binaries ?
> Thanks
> Gerry
> --------------------------------------------------
> From: "Norman Maurer" <no...@apache.org>
> Sent: Wednesday, November 03, 2010 12:49 PM
> To: "James Users List" <se...@james.apache.org>
> Subject: Re: James 3.0-M1 fails to startup on Windows server 2003
>
>> Hi Gerry,
>>
>> we will release once activemq-5.4.2 is out. In the meantime you can
>> download the snapshot and test with it.
>>
>> https://repository.apache.org/content/groups/snapshots/org/apache/james/james-server-container-spring/3.0-M2-SNAPSHOT/
>>
>> Just wait till tomorrow to be sure it has all the fixes..
>>
>> Bye,
>> Norman
>>
>> 2010/11/3 Gerry Matte <Ge...@shaw.ca>:
>>> Thanks Norman for your quick response.
>>> I was able to prevent the jmx error by executing run.bat with my jboss
>>> server service stopped.
>>> When port 9999 is used by james, I won't have a port conflict any more
>>> since
>>> none of my java apps seem to use that port.
>>> I still have to track down why setting file permissions for jmx.access
>>> and
>>> jmx.remote was ineffective for me ....
>>>
>>> Since I can't go any further with my M1 testing, when will M2 be released
>>>
>>> ?
>>> (Ballpark estimate)
>>> Thanks
>>> Gerry
>>>
>>> --------------------------------------------------
>>> From: "Norman Maurer" <no...@apache.org>
>>> Sent: Wednesday, November 03, 2010 11:17 AM
>>> To: "James Users List" <se...@james.apache.org>
>>> Subject: Re: James 3.0-M1 fails to startup on Windows server 2003
>>>
>>>> Hi Gerry,
>>>>
>>>> the other should be fixed too:
>>>>
>>>> https://issues.apache.org/jira/browse/JAMES-1112
>>>>
>>>> Thx for the feedback,
>>>> Norman
>>>>
>>>> 2010/11/3 Norman Maurer <no...@apache.org>:
>>>>>
>>>>> First one is fixed:
>>>>>
>>>>> https://issues.apache.org/jira/browse/JAMES-1111
>>>>>
>>>>> Now the jmx stuff ;)
>>>>>
>>>>> Bye,
>>>>> Norman
>>>>>
>>>>> 2010/11/3 Norman Maurer <no...@apache.org>:
>>>>>>
>>>>>> Hi Gerry,
>>>>>>
>>>>>> thats another problem.. I will open a jira issue to keep track.
>>>>>>
>>>>>> Thx,
>>>>>> Norman
>>>>>>
>>>>>> 2010/11/3 Gerry Matte <Ge...@shaw.ca>:
>>>>>>>
>>>>>>> Thanks very much for your comments Norman (and Eric).
>>>>>>> I'm back to testing mode now.
>>>>>>> Norman asked for the error info that illustrates that james is using
>>>>>>> port
>>>>>>> 1099.
>>>>>>> I see that line 73 of the run.bat that I executed appears to
>>>>>>> establish
>>>>>>> port
>>>>>>> 9999 as the jmx port but the command window illustrates that
>>>>>>> parameter
>>>>>>> was
>>>>>>> ineffective for me.
>>>>>>> Rin.bat line 73
>>>>>>> set EXTRA_JVM_ARGUMENTS=-Xms128m -Xmx512m
>>>>>>>
>>>>>>> -Djava.system.class.loader=org.apache.james.container.spring.JamesClassLoader
>>>>>>> -Dcom.sun.management.jmxremote=true
>>>>>>> -Dcom.sun.management.jmxremote.authenticate=false
>>>>>>> -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.ignoremissingendboundary=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
>>>>>>>
>>>>>>> Execution window (also attached for readability):
>>>>>>> Microsoft Windows [Version 5.2.3790]
>>>>>>> (C) Copyright 1985-2003 Microsoft Corp.
>>>>>>>
>>>>>>> C:\s\james-3\bin>run
>>>>>>> INFO 16:52:15,562 |
>>>>>>> org.apache.james.container.spring.JamesServerApplicationContext |
>>>>>>> Refreshing
>>>>>>> org.apache.james.container.spring.JamesServerApplicationContext@d6c16c:
>>>>>>> startup date [Tue Nov 02 16:52:15 GMT-06:00 2010]; root of context
>>>>>>> hierarchylog4j:WARN No appenders could be found for logger
>>>>>>> (org.apache.commons.configuration.ConfigurationUtils).log4j:WARN
>>>>>>> Please
>>>>>>> initialize the log4j system properly.
>>>>>>> INFO 16:52:17,906 |
>>>>>>> org.apache.james.container.spring.JamesServerApplicationContext |
>>>>>>> Bean
>>>>>>> 'configurationProvider' is not eligible for getting processed by all
>>>>>>> BeanPostProcessors (for example: not eligible for auto-proxying)
>>>>>>> INFO 16:52:17,906 |
>>>>>>> org.apache.james.container.spring.JamesServerApplicationContext |
>>>>>>> Bean
>>>>>>> 'logProvider' is not eligible for getting processed by all
>>>>>>> BeanPostProcessors (for example: not eligible for auto-proxying)
>>>>>>> INFO 16:52:18,093 | james.domainlist | Set autodetect to: false
>>>>>>> INFO 16:52:18,093 | james.domainlist | Set autodetectIP to: true
>>>>>>> INFO 16:52:18,093 | james.domainlist | Bean
>>>>>>> org.apache.james.domainlist.xml.XMLDomainList started.
>>>>>>> WARN 16:52:18,171 | org.apache.activemq.broker.jmx.ManagementContext
>>>>>>>
>>>>>>> |
>>>>>>> Failed to start jmx connector: Cannot bind to URL
>>>>>>> [rmi://localhost:1099/jmxrmi]: javax.naming.CommunicationException
>>>>>>> [Root
>>>>>>> exception is java.rmi.ConnectIOException: non-JRMP server at remote
>>>>>>> endpoint]
>>>>>>> WARN 16:52:18,453 | org.apache.activemq.broker.jmx.ManagementContext
>>>>>>>
>>>>>>> |
>>>>>>> Failed to start jmx connector: Cannot bind to URL
>>>>>>> [rmi://localhost:1099/jmxrmi]: javax.naming.CommunicationException
>>>>>>> [Root
>>>>>>> exception is java.rmi.ConnectIOException: non-JRMP server at remote
>>>>>>> endpoint]
>>>>>>> INFO 16:52:18,484 | james.mailserver | JAMES init...
>>>>>>> INFO 16:52:18,562 | 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:
>>>>>>> Configured
>>>>>>> defaultDomain not exist in DomainList
>>>>>>> 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:
>>>>>>> Configured
>>>>>>> defaultDomain not exist in DomainList
>>>>>>> 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.ConfigurationException:
>>>>>>> Configured defaultDomain not exist in DomainList
>>>>>>> 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:159)
>>>>>>> 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:
>>>>>>> Configured defaultDomain not exist in DomainList
>>>>>>> at
>>>>>>>
>>>>>>> org.apache.james.JamesMailServer.initializeServernames(JamesMailServer.java:180)
>>>>>>> at
>>>>>>> org.apache.james.JamesMailServer.init(JamesMailServer.java:140)
>>>>>>> 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>
>>>>>>>
>>>>>>> --------------------------------------------------
>>>>>>> From: "Norman Maurer" <no...@apache.org>
>>>>>>> Sent: Tuesday, November 02, 2010 11:16 PM
>>>>>>> To: "James Users List" <se...@james.apache.org>
>>>>>>> Subject: Re: James 3.0-M1 fails to startup on Windows server 2003
>>>>>>>
>>>>>>>> Hi Gerry,
>>>>>>>>
>>>>>>>> comments inside..
>>>>>>>>
>>>>>>>> 2010/11/3 Gerry Matte <Ge...@shaw.ca>:
>>>>>>>>>
>>>>>>>>> As I indicated , following the recommended procedure to restrict
>>>>>>>>> file
>>>>>>>>> access
>>>>>>>>> for CONF/jmx.access and jmx.password was not effective for me.
>>>>>>>>> Either I missed a subtle step or it doesn't work on my Windows
>>>>>>>>> platform
>>>>>>>>> because I am running other java products that use jmx ......
>>>>>>>>> By cruising the ActiveMQ web pages, I was able to determine how to
>>>>>>>>> disable
>>>>>>>>> jmx password security by adding a java option to run.bat
>>>>>>>>>
>>>>>>>>> I no longer encounter the same error message (that the jmx.password
>>>>>>>>> file
>>>>>>>>> is
>>>>>>>>> unprotected) but I now see a connection error attempting to connect
>>>>>>>>> to
>>>>>>>>> localhost:1099/jmxrmi
>>>>>>>>> Port 1099 is already in use on my machine - either by JBoss 5.1 or
>>>>>>>>> by
>>>>>>>>> Apache
>>>>>>>>> ftp or OpenDS I suspect.
>>>>>>>>> Tomorrow (Nov 3) I'll try to identify the application that is
>>>>>>>>> currently
>>>>>>>>> using port 1099 or maybe I'll try to use an alternative port by
>>>>>>>>> modifying
>>>>>>>>> the james run.bat java options.
>>>>>>>>>
>>>>>>>>
>>>>>>>> Normally JMX of James should bind to port 9999. Could you post the
>>>>>>>> error ?
>>>>>>>>
>>>>>>>>> I'm not sure it matters but two info messages occur after the
>>>>>>>>> connection
>>>>>>>>> error:
>>>>>>>>> Bean 'configurationProvider' is not eligible for getting processed
>>>>>>>>> by
>>>>>>>>> all
>>>>>>>>> BeanPostProcessors (for example: not eligible for auto-proxying)
>>>>>>>>> The same message occurs for Bean 'logProvider'
>>>>>>>>>
>>>>>>>>
>>>>>>>> Nothing to worry about, it will get fixed in spring 3.0.5:
>>>>>>>> https://jira.springframework.org/browse/SPR-7524
>>>>>>>>
>>>>>>>>> I also see multiple uncaught exceptions complaining that the
>>>>>>>>> configured
>>>>>>>>> defaultDomain does not exist in the DomainList.
>>>>>>>>> Does anyone know how I can determine what the defaultDomain is ?
>>>>>>>>> I suspect I have to add something to the domainlist.xml but I have
>>>>>>>>> no
>>>>>>>>> idea
>>>>>>>>> what that might be - possibly the machine name for the server ?
>>>>>>>>> The list of domains I have configured is quite lengthy because I
>>>>>>>>> plan
>>>>>>>>> to
>>>>>>>>> support multiple email domains.
>>>>>>>>
>>>>>>>> The defaultDomain is configured in the mailserver.xml and is
>>>>>>>> localhost
>>>>>>>> by default.
>>>>>>>>>
>>>>>>>>> Thanks in advance for any help.
>>>>>>>>> Gerry
>>>>>>>>>
>>>>>>>>> --------------------------------------------------
>>>>>>>>> From: "Norman Maurer" <no...@apache.org>
>>>>>>>>> Sent: Tuesday, November 02, 2010 10:56 AM
>>>>>>>>> To: "James Users List" <se...@james.apache.org>
>>>>>>>>> Subject: Re: James 3.0-M1 fails to startup on Windows server 2003
>>>>>>>>>>
>>>>>>>>>> Hi Gerry,
>>>>>>>>>>
>>>>>>>>>> see:
>>>>>>>>>> http://james.apache.org/server/3/configuration.html
>>>>>>>>>>
>>>>>>>>>> You need to restrict the file access on the jmx access/pass files
>>>>>>>>>> on
>>>>>>>>>> windows or disable username/password stuff for jmx.
>>>>>>>>>>
>>>>>>>>>> Bye,
>>>>>>>>>> Norman
>>>>>>>>>>
>>>>>>>>>> 2010/11/2 Gerry Matte <Ge...@shaw.ca>:
>>>>>>>>>>>
>>>>>>>>>>> Hi there.
>>>>>>>>>>> I've been trying to start the M1 james 3 without success on MS
>>>>>>>>>>> Windows
>>>>>>>>>>> server 2003 with java 1.6u22 jdk.
>>>>>>>>>>> ------------------------------------------------
>>>>>>>>>>> When I install the windows service with no changes to any CONF
>>>>>>>>>>> files
>>>>>>>>>>> the
>>>>>>>>>>> startup fails with no log output either to the james log files or
>>>>>>>>>>> to
>>>>>>>>>>> the
>>>>>>>>>>> windows event log (other than the useless message "service failed
>>>>>>>>>>> to
>>>>>>>>>>> start"]
>>>>>>>>>>> My dos window is:
>>>>>>>>>>> Microsoft Windows [Version 5.2.3790]
>>>>>>>>>>> (C) Copyright 1985-2003 Microsoft Corp.
>>>>>>>>>>>
>>>>>>>>>>> C:\s\james-3\bin>james install
>>>>>>>>>>> wrapper | Apache James Server Container Spring installed.
>>>>>>>>>>>
>>>>>>>>>>> C:\s\james-3\bin>james start
>>>>>>>>>>> wrapper | Starting the Apache James Server Container Spring
>>>>>>>>>>> service...
>>>>>>>>>>> wrapper | Waiting to start...
>>>>>>>>>>> wrapper | Waiting to start...
>>>>>>>>>>> wrapper | Waiting to start...
>>>>>>>>>>> wrapper | Waiting to start...
>>>>>>>>>>> wrapper | The Apache James Server Container Spring service was
>>>>>>>>>>> launched,
>>>>>>>>>>> but failed to start.
>>>>>>>>>>> Press any key to continue . . .
>>>>>>>>>>>
>>>>>>>>>>> Are we supposed to be able to start james 3 without making any
>>>>>>>>>>> changes
>>>>>>>>>>> ?
>>>>>>>>>>>
>>>>>>>>>>> -----------------------------------------------
>>>>>>>>>>> My first attempt was after making changes to the collection of
>>>>>>>>>>> XML
>>>>>>>>>>> files
>>>>>>>>>>> in CONF and attempting to start with those files.
>>>>>>>>>>> When I tried to start james with those files, the windows event
>>>>>>>>>>> log
>>>>>>>>>>> showed one error "Error: Password file read access must be
>>>>>>>>>>> restricted:
>>>>>>>>>>> ../conf/jmx.password" which surprised me.
>>>>>>>>>>> That's when I decided to try starting james with no configuration
>>>>>>>>>>> changes
>>>>>>>>>>> - just as released in the binary zip file.
>>>>>>>>>>>
>>>>>>>>>>> I have not attempted to carry over any of my james 2.3.2 data to
>>>>>>>>>>> version
>>>>>>>>>>> 3. I've made sure that the james 2 service is stopped before
>>>>>>>>>>> trying to
>>>>>>>>>>> start james 3.
>>>>>>>>>>> I'm stuck for ideas now.
>>>>>>>>>>>
>>>>>>>>>>> Gerry Matte
>>>>>>>>>>> 250-383-2466 http://www.gerrymatte.ca
>>>>>>>>>>
>>>>>>>>
>>>>>>>> Thx for the feedback,
>>>>>>>> Norman
>>>>>>>>
>>>>>>>> ---------------------------------------------------------------------
>>>>>>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>>>>>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>>>>>
>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>>>>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-user-help@james.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: James 3.0-M1 fails to startup on Windows server 2003
Posted by Gerry Matte <Ge...@shaw.ca>.
Thanks Norman.
I just grabbed the files for Build 41.
I see there's only the M1 source files (I assume - dated 20101028).
Are the snapshot sources available that correspond with the binaries ?
Thanks
Gerry
--------------------------------------------------
From: "Norman Maurer" <no...@apache.org>
Sent: Wednesday, November 03, 2010 12:49 PM
To: "James Users List" <se...@james.apache.org>
Subject: Re: James 3.0-M1 fails to startup on Windows server 2003
> Hi Gerry,
>
> we will release once activemq-5.4.2 is out. In the meantime you can
> download the snapshot and test with it.
>
> https://repository.apache.org/content/groups/snapshots/org/apache/james/james-server-container-spring/3.0-M2-SNAPSHOT/
>
> Just wait till tomorrow to be sure it has all the fixes..
>
> Bye,
> Norman
>
> 2010/11/3 Gerry Matte <Ge...@shaw.ca>:
>> Thanks Norman for your quick response.
>> I was able to prevent the jmx error by executing run.bat with my jboss
>> server service stopped.
>> When port 9999 is used by james, I won't have a port conflict any more
>> since
>> none of my java apps seem to use that port.
>> I still have to track down why setting file permissions for jmx.access
>> and
>> jmx.remote was ineffective for me ....
>>
>> Since I can't go any further with my M1 testing, when will M2 be released
>> ?
>> (Ballpark estimate)
>> Thanks
>> Gerry
>>
>> --------------------------------------------------
>> From: "Norman Maurer" <no...@apache.org>
>> Sent: Wednesday, November 03, 2010 11:17 AM
>> To: "James Users List" <se...@james.apache.org>
>> Subject: Re: James 3.0-M1 fails to startup on Windows server 2003
>>
>>> Hi Gerry,
>>>
>>> the other should be fixed too:
>>>
>>> https://issues.apache.org/jira/browse/JAMES-1112
>>>
>>> Thx for the feedback,
>>> Norman
>>>
>>> 2010/11/3 Norman Maurer <no...@apache.org>:
>>>>
>>>> First one is fixed:
>>>>
>>>> https://issues.apache.org/jira/browse/JAMES-1111
>>>>
>>>> Now the jmx stuff ;)
>>>>
>>>> Bye,
>>>> Norman
>>>>
>>>> 2010/11/3 Norman Maurer <no...@apache.org>:
>>>>>
>>>>> Hi Gerry,
>>>>>
>>>>> thats another problem.. I will open a jira issue to keep track.
>>>>>
>>>>> Thx,
>>>>> Norman
>>>>>
>>>>> 2010/11/3 Gerry Matte <Ge...@shaw.ca>:
>>>>>>
>>>>>> Thanks very much for your comments Norman (and Eric).
>>>>>> I'm back to testing mode now.
>>>>>> Norman asked for the error info that illustrates that james is using
>>>>>> port
>>>>>> 1099.
>>>>>> I see that line 73 of the run.bat that I executed appears to
>>>>>> establish
>>>>>> port
>>>>>> 9999 as the jmx port but the command window illustrates that
>>>>>> parameter
>>>>>> was
>>>>>> ineffective for me.
>>>>>> Rin.bat line 73
>>>>>> set EXTRA_JVM_ARGUMENTS=-Xms128m -Xmx512m
>>>>>>
>>>>>> -Djava.system.class.loader=org.apache.james.container.spring.JamesClassLoader
>>>>>> -Dcom.sun.management.jmxremote=true
>>>>>> -Dcom.sun.management.jmxremote.authenticate=false
>>>>>> -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.ignoremissingendboundary=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
>>>>>>
>>>>>> Execution window (also attached for readability):
>>>>>> Microsoft Windows [Version 5.2.3790]
>>>>>> (C) Copyright 1985-2003 Microsoft Corp.
>>>>>>
>>>>>> C:\s\james-3\bin>run
>>>>>> INFO 16:52:15,562 |
>>>>>> org.apache.james.container.spring.JamesServerApplicationContext |
>>>>>> Refreshing
>>>>>> org.apache.james.container.spring.JamesServerApplicationContext@d6c16c:
>>>>>> startup date [Tue Nov 02 16:52:15 GMT-06:00 2010]; root of context
>>>>>> hierarchylog4j:WARN No appenders could be found for logger
>>>>>> (org.apache.commons.configuration.ConfigurationUtils).log4j:WARN
>>>>>> Please
>>>>>> initialize the log4j system properly.
>>>>>> INFO 16:52:17,906 |
>>>>>> org.apache.james.container.spring.JamesServerApplicationContext |
>>>>>> Bean
>>>>>> 'configurationProvider' is not eligible for getting processed by all
>>>>>> BeanPostProcessors (for example: not eligible for auto-proxying)
>>>>>> INFO 16:52:17,906 |
>>>>>> org.apache.james.container.spring.JamesServerApplicationContext |
>>>>>> Bean
>>>>>> 'logProvider' is not eligible for getting processed by all
>>>>>> BeanPostProcessors (for example: not eligible for auto-proxying)
>>>>>> INFO 16:52:18,093 | james.domainlist | Set autodetect to: false
>>>>>> INFO 16:52:18,093 | james.domainlist | Set autodetectIP to: true
>>>>>> INFO 16:52:18,093 | james.domainlist | Bean
>>>>>> org.apache.james.domainlist.xml.XMLDomainList started.
>>>>>> WARN 16:52:18,171 | org.apache.activemq.broker.jmx.ManagementContext
>>>>>> |
>>>>>> Failed to start jmx connector: Cannot bind to URL
>>>>>> [rmi://localhost:1099/jmxrmi]: javax.naming.CommunicationException
>>>>>> [Root
>>>>>> exception is java.rmi.ConnectIOException: non-JRMP server at remote
>>>>>> endpoint]
>>>>>> WARN 16:52:18,453 | org.apache.activemq.broker.jmx.ManagementContext
>>>>>> |
>>>>>> Failed to start jmx connector: Cannot bind to URL
>>>>>> [rmi://localhost:1099/jmxrmi]: javax.naming.CommunicationException
>>>>>> [Root
>>>>>> exception is java.rmi.ConnectIOException: non-JRMP server at remote
>>>>>> endpoint]
>>>>>> INFO 16:52:18,484 | james.mailserver | JAMES init...
>>>>>> INFO 16:52:18,562 | 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:
>>>>>> Configured
>>>>>> defaultDomain not exist in DomainList
>>>>>> 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:
>>>>>> Configured
>>>>>> defaultDomain not exist in DomainList
>>>>>> 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.ConfigurationException:
>>>>>> Configured defaultDomain not exist in DomainList
>>>>>> 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:159)
>>>>>> 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:
>>>>>> Configured defaultDomain not exist in DomainList
>>>>>> at
>>>>>>
>>>>>> org.apache.james.JamesMailServer.initializeServernames(JamesMailServer.java:180)
>>>>>> at
>>>>>> org.apache.james.JamesMailServer.init(JamesMailServer.java:140)
>>>>>> 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>
>>>>>>
>>>>>> --------------------------------------------------
>>>>>> From: "Norman Maurer" <no...@apache.org>
>>>>>> Sent: Tuesday, November 02, 2010 11:16 PM
>>>>>> To: "James Users List" <se...@james.apache.org>
>>>>>> Subject: Re: James 3.0-M1 fails to startup on Windows server 2003
>>>>>>
>>>>>>> Hi Gerry,
>>>>>>>
>>>>>>> comments inside..
>>>>>>>
>>>>>>> 2010/11/3 Gerry Matte <Ge...@shaw.ca>:
>>>>>>>>
>>>>>>>> As I indicated , following the recommended procedure to restrict
>>>>>>>> file
>>>>>>>> access
>>>>>>>> for CONF/jmx.access and jmx.password was not effective for me.
>>>>>>>> Either I missed a subtle step or it doesn't work on my Windows
>>>>>>>> platform
>>>>>>>> because I am running other java products that use jmx ......
>>>>>>>> By cruising the ActiveMQ web pages, I was able to determine how to
>>>>>>>> disable
>>>>>>>> jmx password security by adding a java option to run.bat
>>>>>>>>
>>>>>>>> I no longer encounter the same error message (that the jmx.password
>>>>>>>> file
>>>>>>>> is
>>>>>>>> unprotected) but I now see a connection error attempting to connect
>>>>>>>> to
>>>>>>>> localhost:1099/jmxrmi
>>>>>>>> Port 1099 is already in use on my machine - either by JBoss 5.1 or
>>>>>>>> by
>>>>>>>> Apache
>>>>>>>> ftp or OpenDS I suspect.
>>>>>>>> Tomorrow (Nov 3) I'll try to identify the application that is
>>>>>>>> currently
>>>>>>>> using port 1099 or maybe I'll try to use an alternative port by
>>>>>>>> modifying
>>>>>>>> the james run.bat java options.
>>>>>>>>
>>>>>>>
>>>>>>> Normally JMX of James should bind to port 9999. Could you post the
>>>>>>> error ?
>>>>>>>
>>>>>>>> I'm not sure it matters but two info messages occur after the
>>>>>>>> connection
>>>>>>>> error:
>>>>>>>> Bean 'configurationProvider' is not eligible for getting processed
>>>>>>>> by
>>>>>>>> all
>>>>>>>> BeanPostProcessors (for example: not eligible for auto-proxying)
>>>>>>>> The same message occurs for Bean 'logProvider'
>>>>>>>>
>>>>>>>
>>>>>>> Nothing to worry about, it will get fixed in spring 3.0.5:
>>>>>>> https://jira.springframework.org/browse/SPR-7524
>>>>>>>
>>>>>>>> I also see multiple uncaught exceptions complaining that the
>>>>>>>> configured
>>>>>>>> defaultDomain does not exist in the DomainList.
>>>>>>>> Does anyone know how I can determine what the defaultDomain is ?
>>>>>>>> I suspect I have to add something to the domainlist.xml but I have
>>>>>>>> no
>>>>>>>> idea
>>>>>>>> what that might be - possibly the machine name for the server ?
>>>>>>>> The list of domains I have configured is quite lengthy because I
>>>>>>>> plan
>>>>>>>> to
>>>>>>>> support multiple email domains.
>>>>>>>
>>>>>>> The defaultDomain is configured in the mailserver.xml and is
>>>>>>> localhost
>>>>>>> by default.
>>>>>>>>
>>>>>>>> Thanks in advance for any help.
>>>>>>>> Gerry
>>>>>>>>
>>>>>>>> --------------------------------------------------
>>>>>>>> From: "Norman Maurer" <no...@apache.org>
>>>>>>>> Sent: Tuesday, November 02, 2010 10:56 AM
>>>>>>>> To: "James Users List" <se...@james.apache.org>
>>>>>>>> Subject: Re: James 3.0-M1 fails to startup on Windows server 2003
>>>>>>>>>
>>>>>>>>> Hi Gerry,
>>>>>>>>>
>>>>>>>>> see:
>>>>>>>>> http://james.apache.org/server/3/configuration.html
>>>>>>>>>
>>>>>>>>> You need to restrict the file access on the jmx access/pass files
>>>>>>>>> on
>>>>>>>>> windows or disable username/password stuff for jmx.
>>>>>>>>>
>>>>>>>>> Bye,
>>>>>>>>> Norman
>>>>>>>>>
>>>>>>>>> 2010/11/2 Gerry Matte <Ge...@shaw.ca>:
>>>>>>>>>>
>>>>>>>>>> Hi there.
>>>>>>>>>> I've been trying to start the M1 james 3 without success on MS
>>>>>>>>>> Windows
>>>>>>>>>> server 2003 with java 1.6u22 jdk.
>>>>>>>>>> ------------------------------------------------
>>>>>>>>>> When I install the windows service with no changes to any CONF
>>>>>>>>>> files
>>>>>>>>>> the
>>>>>>>>>> startup fails with no log output either to the james log files or
>>>>>>>>>> to
>>>>>>>>>> the
>>>>>>>>>> windows event log (other than the useless message "service failed
>>>>>>>>>> to
>>>>>>>>>> start"]
>>>>>>>>>> My dos window is:
>>>>>>>>>> Microsoft Windows [Version 5.2.3790]
>>>>>>>>>> (C) Copyright 1985-2003 Microsoft Corp.
>>>>>>>>>>
>>>>>>>>>> C:\s\james-3\bin>james install
>>>>>>>>>> wrapper | Apache James Server Container Spring installed.
>>>>>>>>>>
>>>>>>>>>> C:\s\james-3\bin>james start
>>>>>>>>>> wrapper | Starting the Apache James Server Container Spring
>>>>>>>>>> service...
>>>>>>>>>> wrapper | Waiting to start...
>>>>>>>>>> wrapper | Waiting to start...
>>>>>>>>>> wrapper | Waiting to start...
>>>>>>>>>> wrapper | Waiting to start...
>>>>>>>>>> wrapper | The Apache James Server Container Spring service was
>>>>>>>>>> launched,
>>>>>>>>>> but failed to start.
>>>>>>>>>> Press any key to continue . . .
>>>>>>>>>>
>>>>>>>>>> Are we supposed to be able to start james 3 without making any
>>>>>>>>>> changes
>>>>>>>>>> ?
>>>>>>>>>>
>>>>>>>>>> -----------------------------------------------
>>>>>>>>>> My first attempt was after making changes to the collection of
>>>>>>>>>> XML
>>>>>>>>>> files
>>>>>>>>>> in CONF and attempting to start with those files.
>>>>>>>>>> When I tried to start james with those files, the windows event
>>>>>>>>>> log
>>>>>>>>>> showed one error "Error: Password file read access must be
>>>>>>>>>> restricted:
>>>>>>>>>> ../conf/jmx.password" which surprised me.
>>>>>>>>>> That's when I decided to try starting james with no configuration
>>>>>>>>>> changes
>>>>>>>>>> - just as released in the binary zip file.
>>>>>>>>>>
>>>>>>>>>> I have not attempted to carry over any of my james 2.3.2 data to
>>>>>>>>>> version
>>>>>>>>>> 3. I've made sure that the james 2 service is stopped before
>>>>>>>>>> trying to
>>>>>>>>>> start james 3.
>>>>>>>>>> I'm stuck for ideas now.
>>>>>>>>>>
>>>>>>>>>> Gerry Matte
>>>>>>>>>> 250-383-2466 http://www.gerrymatte.ca
>>>>>>>>>
>>>>>>>
>>>>>>> Thx for the feedback,
>>>>>>> Norman
>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>>>>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>>>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>>>>
>>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-user-help@james.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: James 3.0-M1 fails to startup on Windows server 2003
Posted by Gerry Matte <Ge...@shaw.ca>.
Thanks Norman.
I'll do that.
I managed to fix the file permissions problem by changing the jmx.password
owner (this time the owner is just my userid not the administrators group).
This requirement was not triggered by my jboss server install procedure.
Jboss uses jmx extensively but access is only from within their included web
app jmxconsole.
In your final release candidate will you be able to work around the need to
manually change the file permission for those of us constrained to work in a
Windows environment ?
Gerry
--------------------------------------------------
From: "Norman Maurer" <no...@apache.org>
Sent: Wednesday, November 03, 2010 12:49 PM
To: "James Users List" <se...@james.apache.org>
Subject: Re: James 3.0-M1 fails to startup on Windows server 2003
> Hi Gerry,
>
> we will release once activemq-5.4.2 is out. In the meantime you can
> download the snapshot and test with it.
>
> https://repository.apache.org/content/groups/snapshots/org/apache/james/james-server-container-spring/3.0-M2-SNAPSHOT/
>
> Just wait till tomorrow to be sure it has all the fixes..
>
> Bye,
> Norman
>
> 2010/11/3 Gerry Matte <Ge...@shaw.ca>:
>> Thanks Norman for your quick response.
>> I was able to prevent the jmx error by executing run.bat with my jboss
>> server service stopped.
>> When port 9999 is used by james, I won't have a port conflict any more
>> since
>> none of my java apps seem to use that port.
>> I still have to track down why setting file permissions for jmx.access
>> and
>> jmx.remote was ineffective for me ....
>>
>> Since I can't go any further with my M1 testing, when will M2 be released
>> ?
>> (Ballpark estimate)
>> Thanks
>> Gerry
>>
>> --------------------------------------------------
>> From: "Norman Maurer" <no...@apache.org>
>> Sent: Wednesday, November 03, 2010 11:17 AM
>> To: "James Users List" <se...@james.apache.org>
>> Subject: Re: James 3.0-M1 fails to startup on Windows server 2003
>>
>>> Hi Gerry,
>>>
>>> the other should be fixed too:
>>>
>>> https://issues.apache.org/jira/browse/JAMES-1112
>>>
>>> Thx for the feedback,
>>> Norman
>>>
>>> 2010/11/3 Norman Maurer <no...@apache.org>:
>>>>
>>>> First one is fixed:
>>>>
>>>> https://issues.apache.org/jira/browse/JAMES-1111
>>>>
>>>> Now the jmx stuff ;)
>>>>
>>>> Bye,
>>>> Norman
>>>>
>>>> 2010/11/3 Norman Maurer <no...@apache.org>:
>>>>>
>>>>> Hi Gerry,
>>>>>
>>>>> thats another problem.. I will open a jira issue to keep track.
>>>>>
>>>>> Thx,
>>>>> Norman
>>>>>
>>>>> 2010/11/3 Gerry Matte <Ge...@shaw.ca>:
>>>>>>
>>>>>> Thanks very much for your comments Norman (and Eric).
>>>>>> I'm back to testing mode now.
>>>>>> Norman asked for the error info that illustrates that james is using
>>>>>> port
>>>>>> 1099.
>>>>>> I see that line 73 of the run.bat that I executed appears to
>>>>>> establish
>>>>>> port
>>>>>> 9999 as the jmx port but the command window illustrates that
>>>>>> parameter
>>>>>> was
>>>>>> ineffective for me.
>>>>>> Rin.bat line 73
>>>>>> set EXTRA_JVM_ARGUMENTS=-Xms128m -Xmx512m
>>>>>>
>>>>>> -Djava.system.class.loader=org.apache.james.container.spring.JamesClassLoader
>>>>>> -Dcom.sun.management.jmxremote=true
>>>>>> -Dcom.sun.management.jmxremote.authenticate=false
>>>>>> -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.ignoremissingendboundary=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
>>>>>>
>>>>>> Execution window (also attached for readability):
>>>>>> Microsoft Windows [Version 5.2.3790]
>>>>>> (C) Copyright 1985-2003 Microsoft Corp.
>>>>>>
>>>>>> C:\s\james-3\bin>run
>>>>>> INFO 16:52:15,562 |
>>>>>> org.apache.james.container.spring.JamesServerApplicationContext |
>>>>>> Refreshing
>>>>>> org.apache.james.container.spring.JamesServerApplicationContext@d6c16c:
>>>>>> startup date [Tue Nov 02 16:52:15 GMT-06:00 2010]; root of context
>>>>>> hierarchylog4j:WARN No appenders could be found for logger
>>>>>> (org.apache.commons.configuration.ConfigurationUtils).log4j:WARN
>>>>>> Please
>>>>>> initialize the log4j system properly.
>>>>>> INFO 16:52:17,906 |
>>>>>> org.apache.james.container.spring.JamesServerApplicationContext |
>>>>>> Bean
>>>>>> 'configurationProvider' is not eligible for getting processed by all
>>>>>> BeanPostProcessors (for example: not eligible for auto-proxying)
>>>>>> INFO 16:52:17,906 |
>>>>>> org.apache.james.container.spring.JamesServerApplicationContext |
>>>>>> Bean
>>>>>> 'logProvider' is not eligible for getting processed by all
>>>>>> BeanPostProcessors (for example: not eligible for auto-proxying)
>>>>>> INFO 16:52:18,093 | james.domainlist | Set autodetect to: false
>>>>>> INFO 16:52:18,093 | james.domainlist | Set autodetectIP to: true
>>>>>> INFO 16:52:18,093 | james.domainlist | Bean
>>>>>> org.apache.james.domainlist.xml.XMLDomainList started.
>>>>>> WARN 16:52:18,171 | org.apache.activemq.broker.jmx.ManagementContext
>>>>>> |
>>>>>> Failed to start jmx connector: Cannot bind to URL
>>>>>> [rmi://localhost:1099/jmxrmi]: javax.naming.CommunicationException
>>>>>> [Root
>>>>>> exception is java.rmi.ConnectIOException: non-JRMP server at remote
>>>>>> endpoint]
>>>>>> WARN 16:52:18,453 | org.apache.activemq.broker.jmx.ManagementContext
>>>>>> |
>>>>>> Failed to start jmx connector: Cannot bind to URL
>>>>>> [rmi://localhost:1099/jmxrmi]: javax.naming.CommunicationException
>>>>>> [Root
>>>>>> exception is java.rmi.ConnectIOException: non-JRMP server at remote
>>>>>> endpoint]
>>>>>> INFO 16:52:18,484 | james.mailserver | JAMES init...
>>>>>> INFO 16:52:18,562 | 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:
>>>>>> Configured
>>>>>> defaultDomain not exist in DomainList
>>>>>> 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:
>>>>>> Configured
>>>>>> defaultDomain not exist in DomainList
>>>>>> 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.ConfigurationException:
>>>>>> Configured defaultDomain not exist in DomainList
>>>>>> 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:159)
>>>>>> 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:
>>>>>> Configured defaultDomain not exist in DomainList
>>>>>> at
>>>>>>
>>>>>> org.apache.james.JamesMailServer.initializeServernames(JamesMailServer.java:180)
>>>>>> at
>>>>>> org.apache.james.JamesMailServer.init(JamesMailServer.java:140)
>>>>>> 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>
>>>>>>
>>>>>> --------------------------------------------------
>>>>>> From: "Norman Maurer" <no...@apache.org>
>>>>>> Sent: Tuesday, November 02, 2010 11:16 PM
>>>>>> To: "James Users List" <se...@james.apache.org>
>>>>>> Subject: Re: James 3.0-M1 fails to startup on Windows server 2003
>>>>>>
>>>>>>> Hi Gerry,
>>>>>>>
>>>>>>> comments inside..
>>>>>>>
>>>>>>> 2010/11/3 Gerry Matte <Ge...@shaw.ca>:
>>>>>>>>
>>>>>>>> As I indicated , following the recommended procedure to restrict
>>>>>>>> file
>>>>>>>> access
>>>>>>>> for CONF/jmx.access and jmx.password was not effective for me.
>>>>>>>> Either I missed a subtle step or it doesn't work on my Windows
>>>>>>>> platform
>>>>>>>> because I am running other java products that use jmx ......
>>>>>>>> By cruising the ActiveMQ web pages, I was able to determine how to
>>>>>>>> disable
>>>>>>>> jmx password security by adding a java option to run.bat
>>>>>>>>
>>>>>>>> I no longer encounter the same error message (that the jmx.password
>>>>>>>> file
>>>>>>>> is
>>>>>>>> unprotected) but I now see a connection error attempting to connect
>>>>>>>> to
>>>>>>>> localhost:1099/jmxrmi
>>>>>>>> Port 1099 is already in use on my machine - either by JBoss 5.1 or
>>>>>>>> by
>>>>>>>> Apache
>>>>>>>> ftp or OpenDS I suspect.
>>>>>>>> Tomorrow (Nov 3) I'll try to identify the application that is
>>>>>>>> currently
>>>>>>>> using port 1099 or maybe I'll try to use an alternative port by
>>>>>>>> modifying
>>>>>>>> the james run.bat java options.
>>>>>>>>
>>>>>>>
>>>>>>> Normally JMX of James should bind to port 9999. Could you post the
>>>>>>> error ?
>>>>>>>
>>>>>>>> I'm not sure it matters but two info messages occur after the
>>>>>>>> connection
>>>>>>>> error:
>>>>>>>> Bean 'configurationProvider' is not eligible for getting processed
>>>>>>>> by
>>>>>>>> all
>>>>>>>> BeanPostProcessors (for example: not eligible for auto-proxying)
>>>>>>>> The same message occurs for Bean 'logProvider'
>>>>>>>>
>>>>>>>
>>>>>>> Nothing to worry about, it will get fixed in spring 3.0.5:
>>>>>>> https://jira.springframework.org/browse/SPR-7524
>>>>>>>
>>>>>>>> I also see multiple uncaught exceptions complaining that the
>>>>>>>> configured
>>>>>>>> defaultDomain does not exist in the DomainList.
>>>>>>>> Does anyone know how I can determine what the defaultDomain is ?
>>>>>>>> I suspect I have to add something to the domainlist.xml but I have
>>>>>>>> no
>>>>>>>> idea
>>>>>>>> what that might be - possibly the machine name for the server ?
>>>>>>>> The list of domains I have configured is quite lengthy because I
>>>>>>>> plan
>>>>>>>> to
>>>>>>>> support multiple email domains.
>>>>>>>
>>>>>>> The defaultDomain is configured in the mailserver.xml and is
>>>>>>> localhost
>>>>>>> by default.
>>>>>>>>
>>>>>>>> Thanks in advance for any help.
>>>>>>>> Gerry
>>>>>>>>
>>>>>>>> --------------------------------------------------
>>>>>>>> From: "Norman Maurer" <no...@apache.org>
>>>>>>>> Sent: Tuesday, November 02, 2010 10:56 AM
>>>>>>>> To: "James Users List" <se...@james.apache.org>
>>>>>>>> Subject: Re: James 3.0-M1 fails to startup on Windows server 2003
>>>>>>>>>
>>>>>>>>> Hi Gerry,
>>>>>>>>>
>>>>>>>>> see:
>>>>>>>>> http://james.apache.org/server/3/configuration.html
>>>>>>>>>
>>>>>>>>> You need to restrict the file access on the jmx access/pass files
>>>>>>>>> on
>>>>>>>>> windows or disable username/password stuff for jmx.
>>>>>>>>>
>>>>>>>>> Bye,
>>>>>>>>> Norman
>>>>>>>>>
>>>>>>>>> 2010/11/2 Gerry Matte <Ge...@shaw.ca>:
>>>>>>>>>>
>>>>>>>>>> Hi there.
>>>>>>>>>> I've been trying to start the M1 james 3 without success on MS
>>>>>>>>>> Windows
>>>>>>>>>> server 2003 with java 1.6u22 jdk.
>>>>>>>>>> ------------------------------------------------
>>>>>>>>>> When I install the windows service with no changes to any CONF
>>>>>>>>>> files
>>>>>>>>>> the
>>>>>>>>>> startup fails with no log output either to the james log files or
>>>>>>>>>> to
>>>>>>>>>> the
>>>>>>>>>> windows event log (other than the useless message "service failed
>>>>>>>>>> to
>>>>>>>>>> start"]
>>>>>>>>>> My dos window is:
>>>>>>>>>> Microsoft Windows [Version 5.2.3790]
>>>>>>>>>> (C) Copyright 1985-2003 Microsoft Corp.
>>>>>>>>>>
>>>>>>>>>> C:\s\james-3\bin>james install
>>>>>>>>>> wrapper | Apache James Server Container Spring installed.
>>>>>>>>>>
>>>>>>>>>> C:\s\james-3\bin>james start
>>>>>>>>>> wrapper | Starting the Apache James Server Container Spring
>>>>>>>>>> service...
>>>>>>>>>> wrapper | Waiting to start...
>>>>>>>>>> wrapper | Waiting to start...
>>>>>>>>>> wrapper | Waiting to start...
>>>>>>>>>> wrapper | Waiting to start...
>>>>>>>>>> wrapper | The Apache James Server Container Spring service was
>>>>>>>>>> launched,
>>>>>>>>>> but failed to start.
>>>>>>>>>> Press any key to continue . . .
>>>>>>>>>>
>>>>>>>>>> Are we supposed to be able to start james 3 without making any
>>>>>>>>>> changes
>>>>>>>>>> ?
>>>>>>>>>>
>>>>>>>>>> -----------------------------------------------
>>>>>>>>>> My first attempt was after making changes to the collection of
>>>>>>>>>> XML
>>>>>>>>>> files
>>>>>>>>>> in CONF and attempting to start with those files.
>>>>>>>>>> When I tried to start james with those files, the windows event
>>>>>>>>>> log
>>>>>>>>>> showed one error "Error: Password file read access must be
>>>>>>>>>> restricted:
>>>>>>>>>> ../conf/jmx.password" which surprised me.
>>>>>>>>>> That's when I decided to try starting james with no configuration
>>>>>>>>>> changes
>>>>>>>>>> - just as released in the binary zip file.
>>>>>>>>>>
>>>>>>>>>> I have not attempted to carry over any of my james 2.3.2 data to
>>>>>>>>>> version
>>>>>>>>>> 3. I've made sure that the james 2 service is stopped before
>>>>>>>>>> trying to
>>>>>>>>>> start james 3.
>>>>>>>>>> I'm stuck for ideas now.
>>>>>>>>>>
>>>>>>>>>> Gerry Matte
>>>>>>>>>> 250-383-2466 http://www.gerrymatte.ca
>>>>>>>>>
>>>>>>>
>>>>>>> Thx for the feedback,
>>>>>>> Norman
>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>>>>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>>>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>>>>
>>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-user-help@james.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: James 3.0-M1 fails to startup on Windows server 2003
Posted by Norman Maurer <no...@apache.org>.
Hi Gerry,
we will release once activemq-5.4.2 is out. In the meantime you can
download the snapshot and test with it.
https://repository.apache.org/content/groups/snapshots/org/apache/james/james-server-container-spring/3.0-M2-SNAPSHOT/
Just wait till tomorrow to be sure it has all the fixes..
Bye,
Norman
2010/11/3 Gerry Matte <Ge...@shaw.ca>:
> Thanks Norman for your quick response.
> I was able to prevent the jmx error by executing run.bat with my jboss
> server service stopped.
> When port 9999 is used by james, I won't have a port conflict any more since
> none of my java apps seem to use that port.
> I still have to track down why setting file permissions for jmx.access and
> jmx.remote was ineffective for me ....
>
> Since I can't go any further with my M1 testing, when will M2 be released ?
> (Ballpark estimate)
> Thanks
> Gerry
>
> --------------------------------------------------
> From: "Norman Maurer" <no...@apache.org>
> Sent: Wednesday, November 03, 2010 11:17 AM
> To: "James Users List" <se...@james.apache.org>
> Subject: Re: James 3.0-M1 fails to startup on Windows server 2003
>
>> Hi Gerry,
>>
>> the other should be fixed too:
>>
>> https://issues.apache.org/jira/browse/JAMES-1112
>>
>> Thx for the feedback,
>> Norman
>>
>> 2010/11/3 Norman Maurer <no...@apache.org>:
>>>
>>> First one is fixed:
>>>
>>> https://issues.apache.org/jira/browse/JAMES-1111
>>>
>>> Now the jmx stuff ;)
>>>
>>> Bye,
>>> Norman
>>>
>>> 2010/11/3 Norman Maurer <no...@apache.org>:
>>>>
>>>> Hi Gerry,
>>>>
>>>> thats another problem.. I will open a jira issue to keep track.
>>>>
>>>> Thx,
>>>> Norman
>>>>
>>>> 2010/11/3 Gerry Matte <Ge...@shaw.ca>:
>>>>>
>>>>> Thanks very much for your comments Norman (and Eric).
>>>>> I'm back to testing mode now.
>>>>> Norman asked for the error info that illustrates that james is using
>>>>> port
>>>>> 1099.
>>>>> I see that line 73 of the run.bat that I executed appears to establish
>>>>> port
>>>>> 9999 as the jmx port but the command window illustrates that parameter
>>>>> was
>>>>> ineffective for me.
>>>>> Rin.bat line 73
>>>>> set EXTRA_JVM_ARGUMENTS=-Xms128m -Xmx512m
>>>>>
>>>>> -Djava.system.class.loader=org.apache.james.container.spring.JamesClassLoader
>>>>> -Dcom.sun.management.jmxremote=true
>>>>> -Dcom.sun.management.jmxremote.authenticate=false
>>>>> -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.ignoremissingendboundary=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
>>>>>
>>>>> Execution window (also attached for readability):
>>>>> Microsoft Windows [Version 5.2.3790]
>>>>> (C) Copyright 1985-2003 Microsoft Corp.
>>>>>
>>>>> C:\s\james-3\bin>run
>>>>> INFO 16:52:15,562 |
>>>>> org.apache.james.container.spring.JamesServerApplicationContext |
>>>>> Refreshing
>>>>> org.apache.james.container.spring.JamesServerApplicationContext@d6c16c:
>>>>> startup date [Tue Nov 02 16:52:15 GMT-06:00 2010]; root of context
>>>>> hierarchylog4j:WARN No appenders could be found for logger
>>>>> (org.apache.commons.configuration.ConfigurationUtils).log4j:WARN Please
>>>>> initialize the log4j system properly.
>>>>> INFO 16:52:17,906 |
>>>>> org.apache.james.container.spring.JamesServerApplicationContext | Bean
>>>>> 'configurationProvider' is not eligible for getting processed by all
>>>>> BeanPostProcessors (for example: not eligible for auto-proxying)
>>>>> INFO 16:52:17,906 |
>>>>> org.apache.james.container.spring.JamesServerApplicationContext | Bean
>>>>> 'logProvider' is not eligible for getting processed by all
>>>>> BeanPostProcessors (for example: not eligible for auto-proxying)
>>>>> INFO 16:52:18,093 | james.domainlist | Set autodetect to: false
>>>>> INFO 16:52:18,093 | james.domainlist | Set autodetectIP to: true
>>>>> INFO 16:52:18,093 | james.domainlist | Bean
>>>>> org.apache.james.domainlist.xml.XMLDomainList started.
>>>>> WARN 16:52:18,171 | org.apache.activemq.broker.jmx.ManagementContext |
>>>>> Failed to start jmx connector: Cannot bind to URL
>>>>> [rmi://localhost:1099/jmxrmi]: javax.naming.CommunicationException
>>>>> [Root
>>>>> exception is java.rmi.ConnectIOException: non-JRMP server at remote
>>>>> endpoint]
>>>>> WARN 16:52:18,453 | org.apache.activemq.broker.jmx.ManagementContext |
>>>>> Failed to start jmx connector: Cannot bind to URL
>>>>> [rmi://localhost:1099/jmxrmi]: javax.naming.CommunicationException
>>>>> [Root
>>>>> exception is java.rmi.ConnectIOException: non-JRMP server at remote
>>>>> endpoint]
>>>>> INFO 16:52:18,484 | james.mailserver | JAMES init...
>>>>> INFO 16:52:18,562 | 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: Configured
>>>>> defaultDomain not exist in DomainList
>>>>> 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: Configured
>>>>> defaultDomain not exist in DomainList
>>>>> 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.ConfigurationException:
>>>>> Configured defaultDomain not exist in DomainList
>>>>> 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:159)
>>>>> 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:
>>>>> Configured defaultDomain not exist in DomainList
>>>>> at
>>>>>
>>>>> org.apache.james.JamesMailServer.initializeServernames(JamesMailServer.java:180)
>>>>> at org.apache.james.JamesMailServer.init(JamesMailServer.java:140)
>>>>> 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>
>>>>>
>>>>> --------------------------------------------------
>>>>> From: "Norman Maurer" <no...@apache.org>
>>>>> Sent: Tuesday, November 02, 2010 11:16 PM
>>>>> To: "James Users List" <se...@james.apache.org>
>>>>> Subject: Re: James 3.0-M1 fails to startup on Windows server 2003
>>>>>
>>>>>> Hi Gerry,
>>>>>>
>>>>>> comments inside..
>>>>>>
>>>>>> 2010/11/3 Gerry Matte <Ge...@shaw.ca>:
>>>>>>>
>>>>>>> As I indicated , following the recommended procedure to restrict file
>>>>>>> access
>>>>>>> for CONF/jmx.access and jmx.password was not effective for me.
>>>>>>> Either I missed a subtle step or it doesn't work on my Windows
>>>>>>> platform
>>>>>>> because I am running other java products that use jmx ......
>>>>>>> By cruising the ActiveMQ web pages, I was able to determine how to
>>>>>>> disable
>>>>>>> jmx password security by adding a java option to run.bat
>>>>>>>
>>>>>>> I no longer encounter the same error message (that the jmx.password
>>>>>>> file
>>>>>>> is
>>>>>>> unprotected) but I now see a connection error attempting to connect
>>>>>>> to
>>>>>>> localhost:1099/jmxrmi
>>>>>>> Port 1099 is already in use on my machine - either by JBoss 5.1 or by
>>>>>>> Apache
>>>>>>> ftp or OpenDS I suspect.
>>>>>>> Tomorrow (Nov 3) I'll try to identify the application that is
>>>>>>> currently
>>>>>>> using port 1099 or maybe I'll try to use an alternative port by
>>>>>>> modifying
>>>>>>> the james run.bat java options.
>>>>>>>
>>>>>>
>>>>>> Normally JMX of James should bind to port 9999. Could you post the
>>>>>> error ?
>>>>>>
>>>>>>> I'm not sure it matters but two info messages occur after the
>>>>>>> connection
>>>>>>> error:
>>>>>>> Bean 'configurationProvider' is not eligible for getting processed by
>>>>>>> all
>>>>>>> BeanPostProcessors (for example: not eligible for auto-proxying)
>>>>>>> The same message occurs for Bean 'logProvider'
>>>>>>>
>>>>>>
>>>>>> Nothing to worry about, it will get fixed in spring 3.0.5:
>>>>>> https://jira.springframework.org/browse/SPR-7524
>>>>>>
>>>>>>> I also see multiple uncaught exceptions complaining that the
>>>>>>> configured
>>>>>>> defaultDomain does not exist in the DomainList.
>>>>>>> Does anyone know how I can determine what the defaultDomain is ?
>>>>>>> I suspect I have to add something to the domainlist.xml but I have no
>>>>>>> idea
>>>>>>> what that might be - possibly the machine name for the server ?
>>>>>>> The list of domains I have configured is quite lengthy because I plan
>>>>>>> to
>>>>>>> support multiple email domains.
>>>>>>
>>>>>> The defaultDomain is configured in the mailserver.xml and is localhost
>>>>>> by default.
>>>>>>>
>>>>>>> Thanks in advance for any help.
>>>>>>> Gerry
>>>>>>>
>>>>>>> --------------------------------------------------
>>>>>>> From: "Norman Maurer" <no...@apache.org>
>>>>>>> Sent: Tuesday, November 02, 2010 10:56 AM
>>>>>>> To: "James Users List" <se...@james.apache.org>
>>>>>>> Subject: Re: James 3.0-M1 fails to startup on Windows server 2003
>>>>>>>>
>>>>>>>> Hi Gerry,
>>>>>>>>
>>>>>>>> see:
>>>>>>>> http://james.apache.org/server/3/configuration.html
>>>>>>>>
>>>>>>>> You need to restrict the file access on the jmx access/pass files on
>>>>>>>> windows or disable username/password stuff for jmx.
>>>>>>>>
>>>>>>>> Bye,
>>>>>>>> Norman
>>>>>>>>
>>>>>>>> 2010/11/2 Gerry Matte <Ge...@shaw.ca>:
>>>>>>>>>
>>>>>>>>> Hi there.
>>>>>>>>> I've been trying to start the M1 james 3 without success on MS
>>>>>>>>> Windows
>>>>>>>>> server 2003 with java 1.6u22 jdk.
>>>>>>>>> ------------------------------------------------
>>>>>>>>> When I install the windows service with no changes to any CONF
>>>>>>>>> files
>>>>>>>>> the
>>>>>>>>> startup fails with no log output either to the james log files or
>>>>>>>>> to
>>>>>>>>> the
>>>>>>>>> windows event log (other than the useless message "service failed
>>>>>>>>> to
>>>>>>>>> start"]
>>>>>>>>> My dos window is:
>>>>>>>>> Microsoft Windows [Version 5.2.3790]
>>>>>>>>> (C) Copyright 1985-2003 Microsoft Corp.
>>>>>>>>>
>>>>>>>>> C:\s\james-3\bin>james install
>>>>>>>>> wrapper | Apache James Server Container Spring installed.
>>>>>>>>>
>>>>>>>>> C:\s\james-3\bin>james start
>>>>>>>>> wrapper | Starting the Apache James Server Container Spring
>>>>>>>>> service...
>>>>>>>>> wrapper | Waiting to start...
>>>>>>>>> wrapper | Waiting to start...
>>>>>>>>> wrapper | Waiting to start...
>>>>>>>>> wrapper | Waiting to start...
>>>>>>>>> wrapper | The Apache James Server Container Spring service was
>>>>>>>>> launched,
>>>>>>>>> but failed to start.
>>>>>>>>> Press any key to continue . . .
>>>>>>>>>
>>>>>>>>> Are we supposed to be able to start james 3 without making any
>>>>>>>>> changes
>>>>>>>>> ?
>>>>>>>>>
>>>>>>>>> -----------------------------------------------
>>>>>>>>> My first attempt was after making changes to the collection of XML
>>>>>>>>> files
>>>>>>>>> in CONF and attempting to start with those files.
>>>>>>>>> When I tried to start james with those files, the windows event log
>>>>>>>>> showed one error "Error: Password file read access must be
>>>>>>>>> restricted:
>>>>>>>>> ../conf/jmx.password" which surprised me.
>>>>>>>>> That's when I decided to try starting james with no configuration
>>>>>>>>> changes
>>>>>>>>> - just as released in the binary zip file.
>>>>>>>>>
>>>>>>>>> I have not attempted to carry over any of my james 2.3.2 data to
>>>>>>>>> version
>>>>>>>>> 3. I've made sure that the james 2 service is stopped before
>>>>>>>>> trying to
>>>>>>>>> start james 3.
>>>>>>>>> I'm stuck for ideas now.
>>>>>>>>>
>>>>>>>>> Gerry Matte
>>>>>>>>> 250-383-2466 http://www.gerrymatte.ca
>>>>>>>>
>>>>>>
>>>>>> Thx for the feedback,
>>>>>> Norman
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>>>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>>>
>>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-user-help@james.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: James 3.0-M1 fails to startup on Windows server 2003
Posted by Gerry Matte <Ge...@shaw.ca>.
Thanks Norman for your quick response.
I was able to prevent the jmx error by executing run.bat with my jboss
server service stopped.
When port 9999 is used by james, I won't have a port conflict any more since
none of my java apps seem to use that port.
I still have to track down why setting file permissions for jmx.access and
jmx.remote was ineffective for me ....
Since I can't go any further with my M1 testing, when will M2 be released ?
(Ballpark estimate)
Thanks
Gerry
--------------------------------------------------
From: "Norman Maurer" <no...@apache.org>
Sent: Wednesday, November 03, 2010 11:17 AM
To: "James Users List" <se...@james.apache.org>
Subject: Re: James 3.0-M1 fails to startup on Windows server 2003
> Hi Gerry,
>
> the other should be fixed too:
>
> https://issues.apache.org/jira/browse/JAMES-1112
>
> Thx for the feedback,
> Norman
>
> 2010/11/3 Norman Maurer <no...@apache.org>:
>> First one is fixed:
>>
>> https://issues.apache.org/jira/browse/JAMES-1111
>>
>> Now the jmx stuff ;)
>>
>> Bye,
>> Norman
>>
>> 2010/11/3 Norman Maurer <no...@apache.org>:
>>> Hi Gerry,
>>>
>>> thats another problem.. I will open a jira issue to keep track.
>>>
>>> Thx,
>>> Norman
>>>
>>> 2010/11/3 Gerry Matte <Ge...@shaw.ca>:
>>>> Thanks very much for your comments Norman (and Eric).
>>>> I'm back to testing mode now.
>>>> Norman asked for the error info that illustrates that james is using
>>>> port
>>>> 1099.
>>>> I see that line 73 of the run.bat that I executed appears to establish
>>>> port
>>>> 9999 as the jmx port but the command window illustrates that parameter
>>>> was
>>>> ineffective for me.
>>>> Rin.bat line 73
>>>> set EXTRA_JVM_ARGUMENTS=-Xms128m -Xmx512m
>>>> -Djava.system.class.loader=org.apache.james.container.spring.JamesClassLoader
>>>> -Dcom.sun.management.jmxremote=true
>>>> -Dcom.sun.management.jmxremote.authenticate=false
>>>> -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.ignoremissingendboundary=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
>>>>
>>>> Execution window (also attached for readability):
>>>> Microsoft Windows [Version 5.2.3790]
>>>> (C) Copyright 1985-2003 Microsoft Corp.
>>>>
>>>> C:\s\james-3\bin>run
>>>> INFO 16:52:15,562 |
>>>> org.apache.james.container.spring.JamesServerApplicationContext |
>>>> Refreshing
>>>> org.apache.james.container.spring.JamesServerApplicationContext@d6c16c:
>>>> startup date [Tue Nov 02 16:52:15 GMT-06:00 2010]; root of context
>>>> hierarchylog4j:WARN No appenders could be found for logger
>>>> (org.apache.commons.configuration.ConfigurationUtils).log4j:WARN Please
>>>> initialize the log4j system properly.
>>>> INFO 16:52:17,906 |
>>>> org.apache.james.container.spring.JamesServerApplicationContext | Bean
>>>> 'configurationProvider' is not eligible for getting processed by all
>>>> BeanPostProcessors (for example: not eligible for auto-proxying)
>>>> INFO 16:52:17,906 |
>>>> org.apache.james.container.spring.JamesServerApplicationContext | Bean
>>>> 'logProvider' is not eligible for getting processed by all
>>>> BeanPostProcessors (for example: not eligible for auto-proxying)
>>>> INFO 16:52:18,093 | james.domainlist | Set autodetect to: false
>>>> INFO 16:52:18,093 | james.domainlist | Set autodetectIP to: true
>>>> INFO 16:52:18,093 | james.domainlist | Bean
>>>> org.apache.james.domainlist.xml.XMLDomainList started.
>>>> WARN 16:52:18,171 | org.apache.activemq.broker.jmx.ManagementContext |
>>>> Failed to start jmx connector: Cannot bind to URL
>>>> [rmi://localhost:1099/jmxrmi]: javax.naming.CommunicationException
>>>> [Root
>>>> exception is java.rmi.ConnectIOException: non-JRMP server at remote
>>>> endpoint]
>>>> WARN 16:52:18,453 | org.apache.activemq.broker.jmx.ManagementContext |
>>>> Failed to start jmx connector: Cannot bind to URL
>>>> [rmi://localhost:1099/jmxrmi]: javax.naming.CommunicationException
>>>> [Root
>>>> exception is java.rmi.ConnectIOException: non-JRMP server at remote
>>>> endpoint]
>>>> INFO 16:52:18,484 | james.mailserver | JAMES init...
>>>> INFO 16:52:18,562 | 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: Configured
>>>> defaultDomain not exist in DomainList
>>>> 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: Configured
>>>> defaultDomain not exist in DomainList
>>>> 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.ConfigurationException:
>>>> Configured defaultDomain not exist in DomainList
>>>> 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:159)
>>>> 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:
>>>> Configured defaultDomain not exist in DomainList
>>>> at
>>>> org.apache.james.JamesMailServer.initializeServernames(JamesMailServer.java:180)
>>>> at
>>>> org.apache.james.JamesMailServer.init(JamesMailServer.java:140)
>>>> 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>
>>>>
>>>> --------------------------------------------------
>>>> From: "Norman Maurer" <no...@apache.org>
>>>> Sent: Tuesday, November 02, 2010 11:16 PM
>>>> To: "James Users List" <se...@james.apache.org>
>>>> Subject: Re: James 3.0-M1 fails to startup on Windows server 2003
>>>>
>>>>> Hi Gerry,
>>>>>
>>>>> comments inside..
>>>>>
>>>>> 2010/11/3 Gerry Matte <Ge...@shaw.ca>:
>>>>>>
>>>>>> As I indicated , following the recommended procedure to restrict file
>>>>>> access
>>>>>> for CONF/jmx.access and jmx.password was not effective for me.
>>>>>> Either I missed a subtle step or it doesn't work on my Windows
>>>>>> platform
>>>>>> because I am running other java products that use jmx ......
>>>>>> By cruising the ActiveMQ web pages, I was able to determine how to
>>>>>> disable
>>>>>> jmx password security by adding a java option to run.bat
>>>>>>
>>>>>> I no longer encounter the same error message (that the jmx.password
>>>>>> file
>>>>>> is
>>>>>> unprotected) but I now see a connection error attempting to connect
>>>>>> to
>>>>>> localhost:1099/jmxrmi
>>>>>> Port 1099 is already in use on my machine - either by JBoss 5.1 or by
>>>>>> Apache
>>>>>> ftp or OpenDS I suspect.
>>>>>> Tomorrow (Nov 3) I'll try to identify the application that is
>>>>>> currently
>>>>>> using port 1099 or maybe I'll try to use an alternative port by
>>>>>> modifying
>>>>>> the james run.bat java options.
>>>>>>
>>>>>
>>>>> Normally JMX of James should bind to port 9999. Could you post the
>>>>> error ?
>>>>>
>>>>>> I'm not sure it matters but two info messages occur after the
>>>>>> connection
>>>>>> error:
>>>>>> Bean 'configurationProvider' is not eligible for getting processed by
>>>>>> all
>>>>>> BeanPostProcessors (for example: not eligible for auto-proxying)
>>>>>> The same message occurs for Bean 'logProvider'
>>>>>>
>>>>>
>>>>> Nothing to worry about, it will get fixed in spring 3.0.5:
>>>>> https://jira.springframework.org/browse/SPR-7524
>>>>>
>>>>>> I also see multiple uncaught exceptions complaining that the
>>>>>> configured
>>>>>> defaultDomain does not exist in the DomainList.
>>>>>> Does anyone know how I can determine what the defaultDomain is ?
>>>>>> I suspect I have to add something to the domainlist.xml but I have no
>>>>>> idea
>>>>>> what that might be - possibly the machine name for the server ?
>>>>>> The list of domains I have configured is quite lengthy because I plan
>>>>>> to
>>>>>> support multiple email domains.
>>>>>
>>>>> The defaultDomain is configured in the mailserver.xml and is localhost
>>>>> by default.
>>>>>>
>>>>>> Thanks in advance for any help.
>>>>>> Gerry
>>>>>>
>>>>>> --------------------------------------------------
>>>>>> From: "Norman Maurer" <no...@apache.org>
>>>>>> Sent: Tuesday, November 02, 2010 10:56 AM
>>>>>> To: "James Users List" <se...@james.apache.org>
>>>>>> Subject: Re: James 3.0-M1 fails to startup on Windows server 2003
>>>>>>>
>>>>>>> Hi Gerry,
>>>>>>>
>>>>>>> see:
>>>>>>> http://james.apache.org/server/3/configuration.html
>>>>>>>
>>>>>>> You need to restrict the file access on the jmx access/pass files on
>>>>>>> windows or disable username/password stuff for jmx.
>>>>>>>
>>>>>>> Bye,
>>>>>>> Norman
>>>>>>>
>>>>>>> 2010/11/2 Gerry Matte <Ge...@shaw.ca>:
>>>>>>>>
>>>>>>>> Hi there.
>>>>>>>> I've been trying to start the M1 james 3 without success on MS
>>>>>>>> Windows
>>>>>>>> server 2003 with java 1.6u22 jdk.
>>>>>>>> ------------------------------------------------
>>>>>>>> When I install the windows service with no changes to any CONF
>>>>>>>> files
>>>>>>>> the
>>>>>>>> startup fails with no log output either to the james log files or
>>>>>>>> to
>>>>>>>> the
>>>>>>>> windows event log (other than the useless message "service failed
>>>>>>>> to
>>>>>>>> start"]
>>>>>>>> My dos window is:
>>>>>>>> Microsoft Windows [Version 5.2.3790]
>>>>>>>> (C) Copyright 1985-2003 Microsoft Corp.
>>>>>>>>
>>>>>>>> C:\s\james-3\bin>james install
>>>>>>>> wrapper | Apache James Server Container Spring installed.
>>>>>>>>
>>>>>>>> C:\s\james-3\bin>james start
>>>>>>>> wrapper | Starting the Apache James Server Container Spring
>>>>>>>> service...
>>>>>>>> wrapper | Waiting to start...
>>>>>>>> wrapper | Waiting to start...
>>>>>>>> wrapper | Waiting to start...
>>>>>>>> wrapper | Waiting to start...
>>>>>>>> wrapper | The Apache James Server Container Spring service was
>>>>>>>> launched,
>>>>>>>> but failed to start.
>>>>>>>> Press any key to continue . . .
>>>>>>>>
>>>>>>>> Are we supposed to be able to start james 3 without making any
>>>>>>>> changes
>>>>>>>> ?
>>>>>>>>
>>>>>>>> -----------------------------------------------
>>>>>>>> My first attempt was after making changes to the collection of XML
>>>>>>>> files
>>>>>>>> in CONF and attempting to start with those files.
>>>>>>>> When I tried to start james with those files, the windows event log
>>>>>>>> showed one error "Error: Password file read access must be
>>>>>>>> restricted:
>>>>>>>> ../conf/jmx.password" which surprised me.
>>>>>>>> That's when I decided to try starting james with no configuration
>>>>>>>> changes
>>>>>>>> - just as released in the binary zip file.
>>>>>>>>
>>>>>>>> I have not attempted to carry over any of my james 2.3.2 data to
>>>>>>>> version
>>>>>>>> 3. I've made sure that the james 2 service is stopped before
>>>>>>>> trying to
>>>>>>>> start james 3.
>>>>>>>> I'm stuck for ideas now.
>>>>>>>>
>>>>>>>> Gerry Matte
>>>>>>>> 250-383-2466 http://www.gerrymatte.ca
>>>>>>>
>>>>>
>>>>> Thx for the feedback,
>>>>> Norman
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>>
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: James 3.0-M1 fails to startup on Windows server 2003
Posted by Norman Maurer <no...@apache.org>.
Hi Gerry,
the other should be fixed too:
https://issues.apache.org/jira/browse/JAMES-1112
Thx for the feedback,
Norman
2010/11/3 Norman Maurer <no...@apache.org>:
> First one is fixed:
>
> https://issues.apache.org/jira/browse/JAMES-1111
>
> Now the jmx stuff ;)
>
> Bye,
> Norman
>
> 2010/11/3 Norman Maurer <no...@apache.org>:
>> Hi Gerry,
>>
>> thats another problem.. I will open a jira issue to keep track.
>>
>> Thx,
>> Norman
>>
>> 2010/11/3 Gerry Matte <Ge...@shaw.ca>:
>>> Thanks very much for your comments Norman (and Eric).
>>> I'm back to testing mode now.
>>> Norman asked for the error info that illustrates that james is using port
>>> 1099.
>>> I see that line 73 of the run.bat that I executed appears to establish port
>>> 9999 as the jmx port but the command window illustrates that parameter was
>>> ineffective for me.
>>> Rin.bat line 73
>>> set EXTRA_JVM_ARGUMENTS=-Xms128m -Xmx512m
>>> -Djava.system.class.loader=org.apache.james.container.spring.JamesClassLoader
>>> -Dcom.sun.management.jmxremote=true
>>> -Dcom.sun.management.jmxremote.authenticate=false
>>> -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.ignoremissingendboundary=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
>>>
>>> Execution window (also attached for readability):
>>> Microsoft Windows [Version 5.2.3790]
>>> (C) Copyright 1985-2003 Microsoft Corp.
>>>
>>> C:\s\james-3\bin>run
>>> INFO 16:52:15,562 |
>>> org.apache.james.container.spring.JamesServerApplicationContext | Refreshing
>>> org.apache.james.container.spring.JamesServerApplicationContext@d6c16c:
>>> startup date [Tue Nov 02 16:52:15 GMT-06:00 2010]; root of context
>>> hierarchylog4j:WARN No appenders could be found for logger
>>> (org.apache.commons.configuration.ConfigurationUtils).log4j:WARN Please
>>> initialize the log4j system properly.
>>> INFO 16:52:17,906 |
>>> org.apache.james.container.spring.JamesServerApplicationContext | Bean
>>> 'configurationProvider' is not eligible for getting processed by all
>>> BeanPostProcessors (for example: not eligible for auto-proxying)
>>> INFO 16:52:17,906 |
>>> org.apache.james.container.spring.JamesServerApplicationContext | Bean
>>> 'logProvider' is not eligible for getting processed by all
>>> BeanPostProcessors (for example: not eligible for auto-proxying)
>>> INFO 16:52:18,093 | james.domainlist | Set autodetect to: false
>>> INFO 16:52:18,093 | james.domainlist | Set autodetectIP to: true
>>> INFO 16:52:18,093 | james.domainlist | Bean
>>> org.apache.james.domainlist.xml.XMLDomainList started.
>>> WARN 16:52:18,171 | org.apache.activemq.broker.jmx.ManagementContext |
>>> Failed to start jmx connector: Cannot bind to URL
>>> [rmi://localhost:1099/jmxrmi]: javax.naming.CommunicationException [Root
>>> exception is java.rmi.ConnectIOException: non-JRMP server at remote
>>> endpoint]
>>> WARN 16:52:18,453 | org.apache.activemq.broker.jmx.ManagementContext |
>>> Failed to start jmx connector: Cannot bind to URL
>>> [rmi://localhost:1099/jmxrmi]: javax.naming.CommunicationException [Root
>>> exception is java.rmi.ConnectIOException: non-JRMP server at remote
>>> endpoint]
>>> INFO 16:52:18,484 | james.mailserver | JAMES init...
>>> INFO 16:52:18,562 | 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: Configured
>>> defaultDomain not exist in DomainList
>>> 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: Configured
>>> defaultDomain not exist in DomainList
>>> 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.ConfigurationException:
>>> Configured defaultDomain not exist in DomainList
>>> 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:159)
>>> 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:
>>> Configured defaultDomain not exist in DomainList
>>> at
>>> org.apache.james.JamesMailServer.initializeServernames(JamesMailServer.java:180)
>>> at org.apache.james.JamesMailServer.init(JamesMailServer.java:140)
>>> 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>
>>>
>>> --------------------------------------------------
>>> From: "Norman Maurer" <no...@apache.org>
>>> Sent: Tuesday, November 02, 2010 11:16 PM
>>> To: "James Users List" <se...@james.apache.org>
>>> Subject: Re: James 3.0-M1 fails to startup on Windows server 2003
>>>
>>>> Hi Gerry,
>>>>
>>>> comments inside..
>>>>
>>>> 2010/11/3 Gerry Matte <Ge...@shaw.ca>:
>>>>>
>>>>> As I indicated , following the recommended procedure to restrict file
>>>>> access
>>>>> for CONF/jmx.access and jmx.password was not effective for me.
>>>>> Either I missed a subtle step or it doesn't work on my Windows platform
>>>>> because I am running other java products that use jmx ......
>>>>> By cruising the ActiveMQ web pages, I was able to determine how to
>>>>> disable
>>>>> jmx password security by adding a java option to run.bat
>>>>>
>>>>> I no longer encounter the same error message (that the jmx.password file
>>>>> is
>>>>> unprotected) but I now see a connection error attempting to connect to
>>>>> localhost:1099/jmxrmi
>>>>> Port 1099 is already in use on my machine - either by JBoss 5.1 or by
>>>>> Apache
>>>>> ftp or OpenDS I suspect.
>>>>> Tomorrow (Nov 3) I'll try to identify the application that is currently
>>>>> using port 1099 or maybe I'll try to use an alternative port by modifying
>>>>> the james run.bat java options.
>>>>>
>>>>
>>>> Normally JMX of James should bind to port 9999. Could you post the error ?
>>>>
>>>>> I'm not sure it matters but two info messages occur after the connection
>>>>> error:
>>>>> Bean 'configurationProvider' is not eligible for getting processed by all
>>>>> BeanPostProcessors (for example: not eligible for auto-proxying)
>>>>> The same message occurs for Bean 'logProvider'
>>>>>
>>>>
>>>> Nothing to worry about, it will get fixed in spring 3.0.5:
>>>> https://jira.springframework.org/browse/SPR-7524
>>>>
>>>>> I also see multiple uncaught exceptions complaining that the configured
>>>>> defaultDomain does not exist in the DomainList.
>>>>> Does anyone know how I can determine what the defaultDomain is ?
>>>>> I suspect I have to add something to the domainlist.xml but I have no
>>>>> idea
>>>>> what that might be - possibly the machine name for the server ?
>>>>> The list of domains I have configured is quite lengthy because I plan to
>>>>> support multiple email domains.
>>>>
>>>> The defaultDomain is configured in the mailserver.xml and is localhost
>>>> by default.
>>>>>
>>>>> Thanks in advance for any help.
>>>>> Gerry
>>>>>
>>>>> --------------------------------------------------
>>>>> From: "Norman Maurer" <no...@apache.org>
>>>>> Sent: Tuesday, November 02, 2010 10:56 AM
>>>>> To: "James Users List" <se...@james.apache.org>
>>>>> Subject: Re: James 3.0-M1 fails to startup on Windows server 2003
>>>>>>
>>>>>> Hi Gerry,
>>>>>>
>>>>>> see:
>>>>>> http://james.apache.org/server/3/configuration.html
>>>>>>
>>>>>> You need to restrict the file access on the jmx access/pass files on
>>>>>> windows or disable username/password stuff for jmx.
>>>>>>
>>>>>> Bye,
>>>>>> Norman
>>>>>>
>>>>>> 2010/11/2 Gerry Matte <Ge...@shaw.ca>:
>>>>>>>
>>>>>>> Hi there.
>>>>>>> I've been trying to start the M1 james 3 without success on MS Windows
>>>>>>> server 2003 with java 1.6u22 jdk.
>>>>>>> ------------------------------------------------
>>>>>>> When I install the windows service with no changes to any CONF files
>>>>>>> the
>>>>>>> startup fails with no log output either to the james log files or to
>>>>>>> the
>>>>>>> windows event log (other than the useless message "service failed to
>>>>>>> start"]
>>>>>>> My dos window is:
>>>>>>> Microsoft Windows [Version 5.2.3790]
>>>>>>> (C) Copyright 1985-2003 Microsoft Corp.
>>>>>>>
>>>>>>> C:\s\james-3\bin>james install
>>>>>>> wrapper | Apache James Server Container Spring installed.
>>>>>>>
>>>>>>> C:\s\james-3\bin>james start
>>>>>>> wrapper | Starting the Apache James Server Container Spring service...
>>>>>>> wrapper | Waiting to start...
>>>>>>> wrapper | Waiting to start...
>>>>>>> wrapper | Waiting to start...
>>>>>>> wrapper | Waiting to start...
>>>>>>> wrapper | The Apache James Server Container Spring service was
>>>>>>> launched,
>>>>>>> but failed to start.
>>>>>>> Press any key to continue . . .
>>>>>>>
>>>>>>> Are we supposed to be able to start james 3 without making any changes
>>>>>>> ?
>>>>>>>
>>>>>>> -----------------------------------------------
>>>>>>> My first attempt was after making changes to the collection of XML
>>>>>>> files
>>>>>>> in CONF and attempting to start with those files.
>>>>>>> When I tried to start james with those files, the windows event log
>>>>>>> showed one error "Error: Password file read access must be restricted:
>>>>>>> ../conf/jmx.password" which surprised me.
>>>>>>> That's when I decided to try starting james with no configuration
>>>>>>> changes
>>>>>>> - just as released in the binary zip file.
>>>>>>>
>>>>>>> I have not attempted to carry over any of my james 2.3.2 data to
>>>>>>> version
>>>>>>> 3. I've made sure that the james 2 service is stopped before trying to
>>>>>>> start james 3.
>>>>>>> I'm stuck for ideas now.
>>>>>>>
>>>>>>> Gerry Matte
>>>>>>> 250-383-2466 http://www.gerrymatte.ca
>>>>>>
>>>>
>>>> Thx for the feedback,
>>>> Norman
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: James 3.0-M1 fails to startup on Windows server 2003
Posted by Norman Maurer <no...@apache.org>.
First one is fixed:
https://issues.apache.org/jira/browse/JAMES-1111
Now the jmx stuff ;)
Bye,
Norman
2010/11/3 Norman Maurer <no...@apache.org>:
> Hi Gerry,
>
> thats another problem.. I will open a jira issue to keep track.
>
> Thx,
> Norman
>
> 2010/11/3 Gerry Matte <Ge...@shaw.ca>:
>> Thanks very much for your comments Norman (and Eric).
>> I'm back to testing mode now.
>> Norman asked for the error info that illustrates that james is using port
>> 1099.
>> I see that line 73 of the run.bat that I executed appears to establish port
>> 9999 as the jmx port but the command window illustrates that parameter was
>> ineffective for me.
>> Rin.bat line 73
>> set EXTRA_JVM_ARGUMENTS=-Xms128m -Xmx512m
>> -Djava.system.class.loader=org.apache.james.container.spring.JamesClassLoader
>> -Dcom.sun.management.jmxremote=true
>> -Dcom.sun.management.jmxremote.authenticate=false
>> -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.ignoremissingendboundary=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
>>
>> Execution window (also attached for readability):
>> Microsoft Windows [Version 5.2.3790]
>> (C) Copyright 1985-2003 Microsoft Corp.
>>
>> C:\s\james-3\bin>run
>> INFO 16:52:15,562 |
>> org.apache.james.container.spring.JamesServerApplicationContext | Refreshing
>> org.apache.james.container.spring.JamesServerApplicationContext@d6c16c:
>> startup date [Tue Nov 02 16:52:15 GMT-06:00 2010]; root of context
>> hierarchylog4j:WARN No appenders could be found for logger
>> (org.apache.commons.configuration.ConfigurationUtils).log4j:WARN Please
>> initialize the log4j system properly.
>> INFO 16:52:17,906 |
>> org.apache.james.container.spring.JamesServerApplicationContext | Bean
>> 'configurationProvider' is not eligible for getting processed by all
>> BeanPostProcessors (for example: not eligible for auto-proxying)
>> INFO 16:52:17,906 |
>> org.apache.james.container.spring.JamesServerApplicationContext | Bean
>> 'logProvider' is not eligible for getting processed by all
>> BeanPostProcessors (for example: not eligible for auto-proxying)
>> INFO 16:52:18,093 | james.domainlist | Set autodetect to: false
>> INFO 16:52:18,093 | james.domainlist | Set autodetectIP to: true
>> INFO 16:52:18,093 | james.domainlist | Bean
>> org.apache.james.domainlist.xml.XMLDomainList started.
>> WARN 16:52:18,171 | org.apache.activemq.broker.jmx.ManagementContext |
>> Failed to start jmx connector: Cannot bind to URL
>> [rmi://localhost:1099/jmxrmi]: javax.naming.CommunicationException [Root
>> exception is java.rmi.ConnectIOException: non-JRMP server at remote
>> endpoint]
>> WARN 16:52:18,453 | org.apache.activemq.broker.jmx.ManagementContext |
>> Failed to start jmx connector: Cannot bind to URL
>> [rmi://localhost:1099/jmxrmi]: javax.naming.CommunicationException [Root
>> exception is java.rmi.ConnectIOException: non-JRMP server at remote
>> endpoint]
>> INFO 16:52:18,484 | james.mailserver | JAMES init...
>> INFO 16:52:18,562 | 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: Configured
>> defaultDomain not exist in DomainList
>> 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: Configured
>> defaultDomain not exist in DomainList
>> 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.ConfigurationException:
>> Configured defaultDomain not exist in DomainList
>> 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:159)
>> 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:
>> Configured defaultDomain not exist in DomainList
>> at
>> org.apache.james.JamesMailServer.initializeServernames(JamesMailServer.java:180)
>> at org.apache.james.JamesMailServer.init(JamesMailServer.java:140)
>> 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>
>>
>> --------------------------------------------------
>> From: "Norman Maurer" <no...@apache.org>
>> Sent: Tuesday, November 02, 2010 11:16 PM
>> To: "James Users List" <se...@james.apache.org>
>> Subject: Re: James 3.0-M1 fails to startup on Windows server 2003
>>
>>> Hi Gerry,
>>>
>>> comments inside..
>>>
>>> 2010/11/3 Gerry Matte <Ge...@shaw.ca>:
>>>>
>>>> As I indicated , following the recommended procedure to restrict file
>>>> access
>>>> for CONF/jmx.access and jmx.password was not effective for me.
>>>> Either I missed a subtle step or it doesn't work on my Windows platform
>>>> because I am running other java products that use jmx ......
>>>> By cruising the ActiveMQ web pages, I was able to determine how to
>>>> disable
>>>> jmx password security by adding a java option to run.bat
>>>>
>>>> I no longer encounter the same error message (that the jmx.password file
>>>> is
>>>> unprotected) but I now see a connection error attempting to connect to
>>>> localhost:1099/jmxrmi
>>>> Port 1099 is already in use on my machine - either by JBoss 5.1 or by
>>>> Apache
>>>> ftp or OpenDS I suspect.
>>>> Tomorrow (Nov 3) I'll try to identify the application that is currently
>>>> using port 1099 or maybe I'll try to use an alternative port by modifying
>>>> the james run.bat java options.
>>>>
>>>
>>> Normally JMX of James should bind to port 9999. Could you post the error ?
>>>
>>>> I'm not sure it matters but two info messages occur after the connection
>>>> error:
>>>> Bean 'configurationProvider' is not eligible for getting processed by all
>>>> BeanPostProcessors (for example: not eligible for auto-proxying)
>>>> The same message occurs for Bean 'logProvider'
>>>>
>>>
>>> Nothing to worry about, it will get fixed in spring 3.0.5:
>>> https://jira.springframework.org/browse/SPR-7524
>>>
>>>> I also see multiple uncaught exceptions complaining that the configured
>>>> defaultDomain does not exist in the DomainList.
>>>> Does anyone know how I can determine what the defaultDomain is ?
>>>> I suspect I have to add something to the domainlist.xml but I have no
>>>> idea
>>>> what that might be - possibly the machine name for the server ?
>>>> The list of domains I have configured is quite lengthy because I plan to
>>>> support multiple email domains.
>>>
>>> The defaultDomain is configured in the mailserver.xml and is localhost
>>> by default.
>>>>
>>>> Thanks in advance for any help.
>>>> Gerry
>>>>
>>>> --------------------------------------------------
>>>> From: "Norman Maurer" <no...@apache.org>
>>>> Sent: Tuesday, November 02, 2010 10:56 AM
>>>> To: "James Users List" <se...@james.apache.org>
>>>> Subject: Re: James 3.0-M1 fails to startup on Windows server 2003
>>>>>
>>>>> Hi Gerry,
>>>>>
>>>>> see:
>>>>> http://james.apache.org/server/3/configuration.html
>>>>>
>>>>> You need to restrict the file access on the jmx access/pass files on
>>>>> windows or disable username/password stuff for jmx.
>>>>>
>>>>> Bye,
>>>>> Norman
>>>>>
>>>>> 2010/11/2 Gerry Matte <Ge...@shaw.ca>:
>>>>>>
>>>>>> Hi there.
>>>>>> I've been trying to start the M1 james 3 without success on MS Windows
>>>>>> server 2003 with java 1.6u22 jdk.
>>>>>> ------------------------------------------------
>>>>>> When I install the windows service with no changes to any CONF files
>>>>>> the
>>>>>> startup fails with no log output either to the james log files or to
>>>>>> the
>>>>>> windows event log (other than the useless message "service failed to
>>>>>> start"]
>>>>>> My dos window is:
>>>>>> Microsoft Windows [Version 5.2.3790]
>>>>>> (C) Copyright 1985-2003 Microsoft Corp.
>>>>>>
>>>>>> C:\s\james-3\bin>james install
>>>>>> wrapper | Apache James Server Container Spring installed.
>>>>>>
>>>>>> C:\s\james-3\bin>james start
>>>>>> wrapper | Starting the Apache James Server Container Spring service...
>>>>>> wrapper | Waiting to start...
>>>>>> wrapper | Waiting to start...
>>>>>> wrapper | Waiting to start...
>>>>>> wrapper | Waiting to start...
>>>>>> wrapper | The Apache James Server Container Spring service was
>>>>>> launched,
>>>>>> but failed to start.
>>>>>> Press any key to continue . . .
>>>>>>
>>>>>> Are we supposed to be able to start james 3 without making any changes
>>>>>> ?
>>>>>>
>>>>>> -----------------------------------------------
>>>>>> My first attempt was after making changes to the collection of XML
>>>>>> files
>>>>>> in CONF and attempting to start with those files.
>>>>>> When I tried to start james with those files, the windows event log
>>>>>> showed one error "Error: Password file read access must be restricted:
>>>>>> ../conf/jmx.password" which surprised me.
>>>>>> That's when I decided to try starting james with no configuration
>>>>>> changes
>>>>>> - just as released in the binary zip file.
>>>>>>
>>>>>> I have not attempted to carry over any of my james 2.3.2 data to
>>>>>> version
>>>>>> 3. I've made sure that the james 2 service is stopped before trying to
>>>>>> start james 3.
>>>>>> I'm stuck for ideas now.
>>>>>>
>>>>>> Gerry Matte
>>>>>> 250-383-2466 http://www.gerrymatte.ca
>>>>>
>>>
>>> Thx for the feedback,
>>> Norman
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>> For additional commands, e-mail: server-user-help@james.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-user-help@james.apache.org
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: James 3.0-M1 fails to startup on Windows server 2003
Posted by Norman Maurer <no...@apache.org>.
Hi Gerry,
thats another problem.. I will open a jira issue to keep track.
Thx,
Norman
2010/11/3 Gerry Matte <Ge...@shaw.ca>:
> Thanks very much for your comments Norman (and Eric).
> I'm back to testing mode now.
> Norman asked for the error info that illustrates that james is using port
> 1099.
> I see that line 73 of the run.bat that I executed appears to establish port
> 9999 as the jmx port but the command window illustrates that parameter was
> ineffective for me.
> Rin.bat line 73
> set EXTRA_JVM_ARGUMENTS=-Xms128m -Xmx512m
> -Djava.system.class.loader=org.apache.james.container.spring.JamesClassLoader
> -Dcom.sun.management.jmxremote=true
> -Dcom.sun.management.jmxremote.authenticate=false
> -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.ignoremissingendboundary=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
>
> Execution window (also attached for readability):
> Microsoft Windows [Version 5.2.3790]
> (C) Copyright 1985-2003 Microsoft Corp.
>
> C:\s\james-3\bin>run
> INFO 16:52:15,562 |
> org.apache.james.container.spring.JamesServerApplicationContext | Refreshing
> org.apache.james.container.spring.JamesServerApplicationContext@d6c16c:
> startup date [Tue Nov 02 16:52:15 GMT-06:00 2010]; root of context
> hierarchylog4j:WARN No appenders could be found for logger
> (org.apache.commons.configuration.ConfigurationUtils).log4j:WARN Please
> initialize the log4j system properly.
> INFO 16:52:17,906 |
> org.apache.james.container.spring.JamesServerApplicationContext | Bean
> 'configurationProvider' is not eligible for getting processed by all
> BeanPostProcessors (for example: not eligible for auto-proxying)
> INFO 16:52:17,906 |
> org.apache.james.container.spring.JamesServerApplicationContext | Bean
> 'logProvider' is not eligible for getting processed by all
> BeanPostProcessors (for example: not eligible for auto-proxying)
> INFO 16:52:18,093 | james.domainlist | Set autodetect to: false
> INFO 16:52:18,093 | james.domainlist | Set autodetectIP to: true
> INFO 16:52:18,093 | james.domainlist | Bean
> org.apache.james.domainlist.xml.XMLDomainList started.
> WARN 16:52:18,171 | org.apache.activemq.broker.jmx.ManagementContext |
> Failed to start jmx connector: Cannot bind to URL
> [rmi://localhost:1099/jmxrmi]: javax.naming.CommunicationException [Root
> exception is java.rmi.ConnectIOException: non-JRMP server at remote
> endpoint]
> WARN 16:52:18,453 | org.apache.activemq.broker.jmx.ManagementContext |
> Failed to start jmx connector: Cannot bind to URL
> [rmi://localhost:1099/jmxrmi]: javax.naming.CommunicationException [Root
> exception is java.rmi.ConnectIOException: non-JRMP server at remote
> endpoint]
> INFO 16:52:18,484 | james.mailserver | JAMES init...
> INFO 16:52:18,562 | 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: Configured
> defaultDomain not exist in DomainList
> 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: Configured
> defaultDomain not exist in DomainList
> 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.ConfigurationException:
> Configured defaultDomain not exist in DomainList
> 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:159)
> 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:
> Configured defaultDomain not exist in DomainList
> at
> org.apache.james.JamesMailServer.initializeServernames(JamesMailServer.java:180)
> at org.apache.james.JamesMailServer.init(JamesMailServer.java:140)
> 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>
>
> --------------------------------------------------
> From: "Norman Maurer" <no...@apache.org>
> Sent: Tuesday, November 02, 2010 11:16 PM
> To: "James Users List" <se...@james.apache.org>
> Subject: Re: James 3.0-M1 fails to startup on Windows server 2003
>
>> Hi Gerry,
>>
>> comments inside..
>>
>> 2010/11/3 Gerry Matte <Ge...@shaw.ca>:
>>>
>>> As I indicated , following the recommended procedure to restrict file
>>> access
>>> for CONF/jmx.access and jmx.password was not effective for me.
>>> Either I missed a subtle step or it doesn't work on my Windows platform
>>> because I am running other java products that use jmx ......
>>> By cruising the ActiveMQ web pages, I was able to determine how to
>>> disable
>>> jmx password security by adding a java option to run.bat
>>>
>>> I no longer encounter the same error message (that the jmx.password file
>>> is
>>> unprotected) but I now see a connection error attempting to connect to
>>> localhost:1099/jmxrmi
>>> Port 1099 is already in use on my machine - either by JBoss 5.1 or by
>>> Apache
>>> ftp or OpenDS I suspect.
>>> Tomorrow (Nov 3) I'll try to identify the application that is currently
>>> using port 1099 or maybe I'll try to use an alternative port by modifying
>>> the james run.bat java options.
>>>
>>
>> Normally JMX of James should bind to port 9999. Could you post the error ?
>>
>>> I'm not sure it matters but two info messages occur after the connection
>>> error:
>>> Bean 'configurationProvider' is not eligible for getting processed by all
>>> BeanPostProcessors (for example: not eligible for auto-proxying)
>>> The same message occurs for Bean 'logProvider'
>>>
>>
>> Nothing to worry about, it will get fixed in spring 3.0.5:
>> https://jira.springframework.org/browse/SPR-7524
>>
>>> I also see multiple uncaught exceptions complaining that the configured
>>> defaultDomain does not exist in the DomainList.
>>> Does anyone know how I can determine what the defaultDomain is ?
>>> I suspect I have to add something to the domainlist.xml but I have no
>>> idea
>>> what that might be - possibly the machine name for the server ?
>>> The list of domains I have configured is quite lengthy because I plan to
>>> support multiple email domains.
>>
>> The defaultDomain is configured in the mailserver.xml and is localhost
>> by default.
>>>
>>> Thanks in advance for any help.
>>> Gerry
>>>
>>> --------------------------------------------------
>>> From: "Norman Maurer" <no...@apache.org>
>>> Sent: Tuesday, November 02, 2010 10:56 AM
>>> To: "James Users List" <se...@james.apache.org>
>>> Subject: Re: James 3.0-M1 fails to startup on Windows server 2003
>>>>
>>>> Hi Gerry,
>>>>
>>>> see:
>>>> http://james.apache.org/server/3/configuration.html
>>>>
>>>> You need to restrict the file access on the jmx access/pass files on
>>>> windows or disable username/password stuff for jmx.
>>>>
>>>> Bye,
>>>> Norman
>>>>
>>>> 2010/11/2 Gerry Matte <Ge...@shaw.ca>:
>>>>>
>>>>> Hi there.
>>>>> I've been trying to start the M1 james 3 without success on MS Windows
>>>>> server 2003 with java 1.6u22 jdk.
>>>>> ------------------------------------------------
>>>>> When I install the windows service with no changes to any CONF files
>>>>> the
>>>>> startup fails with no log output either to the james log files or to
>>>>> the
>>>>> windows event log (other than the useless message "service failed to
>>>>> start"]
>>>>> My dos window is:
>>>>> Microsoft Windows [Version 5.2.3790]
>>>>> (C) Copyright 1985-2003 Microsoft Corp.
>>>>>
>>>>> C:\s\james-3\bin>james install
>>>>> wrapper | Apache James Server Container Spring installed.
>>>>>
>>>>> C:\s\james-3\bin>james start
>>>>> wrapper | Starting the Apache James Server Container Spring service...
>>>>> wrapper | Waiting to start...
>>>>> wrapper | Waiting to start...
>>>>> wrapper | Waiting to start...
>>>>> wrapper | Waiting to start...
>>>>> wrapper | The Apache James Server Container Spring service was
>>>>> launched,
>>>>> but failed to start.
>>>>> Press any key to continue . . .
>>>>>
>>>>> Are we supposed to be able to start james 3 without making any changes
>>>>> ?
>>>>>
>>>>> -----------------------------------------------
>>>>> My first attempt was after making changes to the collection of XML
>>>>> files
>>>>> in CONF and attempting to start with those files.
>>>>> When I tried to start james with those files, the windows event log
>>>>> showed one error "Error: Password file read access must be restricted:
>>>>> ../conf/jmx.password" which surprised me.
>>>>> That's when I decided to try starting james with no configuration
>>>>> changes
>>>>> - just as released in the binary zip file.
>>>>>
>>>>> I have not attempted to carry over any of my james 2.3.2 data to
>>>>> version
>>>>> 3. I've made sure that the james 2 service is stopped before trying to
>>>>> start james 3.
>>>>> I'm stuck for ideas now.
>>>>>
>>>>> Gerry Matte
>>>>> 250-383-2466 http://www.gerrymatte.ca
>>>>
>>
>> Thx for the feedback,
>> Norman
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-user-help@james.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: James 3.0-M1 fails to startup on Windows server 2003
Posted by Gerry Matte <Ge...@shaw.ca>.
Thanks very much for your comments Norman (and Eric).
I'm back to testing mode now.
Norman asked for the error info that illustrates that james is using port
1099.
I see that line 73 of the run.bat that I executed appears to establish port
9999 as the jmx port but the command window illustrates that parameter was
ineffective for me.
Rin.bat line 73
set
EXTRA_JVM_ARGUMENTS=-Xms128m -Xmx512m -Djava.system.class.loader=org.apache.james.container.spring.JamesClassLoader
-Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.authenticate=false
-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.ignoremissingendboundary=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
Execution window (also attached for readability):
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.
C:\s\james-3\bin>run
INFO 16:52:15,562 |
org.apache.james.container.spring.JamesServerApplicationContext | Refreshing
org.apache.james.container.spring.JamesServerApplicationContext@d6c16c:
startup date [Tue Nov 02 16:52:15 GMT-06:00 2010]; root of context
hierarchylog4j:WARN No appenders could be found for logger
(org.apache.commons.configuration.ConfigurationUtils).log4j:WARN Please
initialize the log4j system properly.
INFO 16:52:17,906 |
org.apache.james.container.spring.JamesServerApplicationContext | Bean
'configurationProvider' is not eligible for getting processed by all
BeanPostProcessors (for example: not eligible for auto-proxying)
INFO 16:52:17,906 |
org.apache.james.container.spring.JamesServerApplicationContext | Bean
'logProvider' is not eligible for getting processed by all
BeanPostProcessors (for example: not eligible for auto-proxying)
INFO 16:52:18,093 | james.domainlist | Set autodetect to: false
INFO 16:52:18,093 | james.domainlist | Set autodetectIP to: true
INFO 16:52:18,093 | james.domainlist | Bean
org.apache.james.domainlist.xml.XMLDomainList started.
WARN 16:52:18,171 | org.apache.activemq.broker.jmx.ManagementContext |
Failed to start jmx connector: Cannot bind to URL
[rmi://localhost:1099/jmxrmi]: javax.naming.CommunicationException [Root
exception is java.rmi.ConnectIOException: non-JRMP server at remote
endpoint]
WARN 16:52:18,453 | org.apache.activemq.broker.jmx.ManagementContext |
Failed to start jmx connector: Cannot bind to URL
[rmi://localhost:1099/jmxrmi]: javax.naming.CommunicationException [Root
exception is java.rmi.ConnectIOException: non-JRMP server at remote
endpoint]
INFO 16:52:18,484 | james.mailserver | JAMES init...
INFO 16:52:18,562 | 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: Configured
defaultDomain not exist in DomainList
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: Configured
defaultDomain not exist in DomainList
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.ConfigurationException:
Configured defaultDomain not exist in DomainList
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:159)
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:
Configured defaultDomain not exist in DomainList
at
org.apache.james.JamesMailServer.initializeServernames(JamesMailServer.java:180)
at org.apache.james.JamesMailServer.init(JamesMailServer.java:140)
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>
--------------------------------------------------
From: "Norman Maurer" <no...@apache.org>
Sent: Tuesday, November 02, 2010 11:16 PM
To: "James Users List" <se...@james.apache.org>
Subject: Re: James 3.0-M1 fails to startup on Windows server 2003
> Hi Gerry,
>
> comments inside..
>
> 2010/11/3 Gerry Matte <Ge...@shaw.ca>:
>> As I indicated , following the recommended procedure to restrict file
>> access
>> for CONF/jmx.access and jmx.password was not effective for me.
>> Either I missed a subtle step or it doesn't work on my Windows platform
>> because I am running other java products that use jmx ......
>> By cruising the ActiveMQ web pages, I was able to determine how to
>> disable
>> jmx password security by adding a java option to run.bat
>>
>> I no longer encounter the same error message (that the jmx.password file
>> is
>> unprotected) but I now see a connection error attempting to connect to
>> localhost:1099/jmxrmi
>> Port 1099 is already in use on my machine - either by JBoss 5.1 or by
>> Apache
>> ftp or OpenDS I suspect.
>> Tomorrow (Nov 3) I'll try to identify the application that is currently
>> using port 1099 or maybe I'll try to use an alternative port by modifying
>> the james run.bat java options.
>>
>
> Normally JMX of James should bind to port 9999. Could you post the error ?
>
>> I'm not sure it matters but two info messages occur after the connection
>> error:
>> Bean 'configurationProvider' is not eligible for getting processed by all
>> BeanPostProcessors (for example: not eligible for auto-proxying)
>> The same message occurs for Bean 'logProvider'
>>
>
> Nothing to worry about, it will get fixed in spring 3.0.5:
> https://jira.springframework.org/browse/SPR-7524
>
>> I also see multiple uncaught exceptions complaining that the configured
>> defaultDomain does not exist in the DomainList.
>> Does anyone know how I can determine what the defaultDomain is ?
>> I suspect I have to add something to the domainlist.xml but I have no
>> idea
>> what that might be - possibly the machine name for the server ?
>> The list of domains I have configured is quite lengthy because I plan to
>> support multiple email domains.
>
> The defaultDomain is configured in the mailserver.xml and is localhost
> by default.
>>
>> Thanks in advance for any help.
>> Gerry
>>
>> --------------------------------------------------
>> From: "Norman Maurer" <no...@apache.org>
>> Sent: Tuesday, November 02, 2010 10:56 AM
>> To: "James Users List" <se...@james.apache.org>
>> Subject: Re: James 3.0-M1 fails to startup on Windows server 2003
>>>
>>> Hi Gerry,
>>>
>>> see:
>>> http://james.apache.org/server/3/configuration.html
>>>
>>> You need to restrict the file access on the jmx access/pass files on
>>> windows or disable username/password stuff for jmx.
>>>
>>> Bye,
>>> Norman
>>>
>>> 2010/11/2 Gerry Matte <Ge...@shaw.ca>:
>>>>
>>>> Hi there.
>>>> I've been trying to start the M1 james 3 without success on MS Windows
>>>> server 2003 with java 1.6u22 jdk.
>>>> ------------------------------------------------
>>>> When I install the windows service with no changes to any CONF files
>>>> the
>>>> startup fails with no log output either to the james log files or to
>>>> the
>>>> windows event log (other than the useless message "service failed to
>>>> start"]
>>>> My dos window is:
>>>> Microsoft Windows [Version 5.2.3790]
>>>> (C) Copyright 1985-2003 Microsoft Corp.
>>>>
>>>> C:\s\james-3\bin>james install
>>>> wrapper | Apache James Server Container Spring installed.
>>>>
>>>> C:\s\james-3\bin>james start
>>>> wrapper | Starting the Apache James Server Container Spring service...
>>>> wrapper | Waiting to start...
>>>> wrapper | Waiting to start...
>>>> wrapper | Waiting to start...
>>>> wrapper | Waiting to start...
>>>> wrapper | The Apache James Server Container Spring service was
>>>> launched,
>>>> but failed to start.
>>>> Press any key to continue . . .
>>>>
>>>> Are we supposed to be able to start james 3 without making any changes
>>>> ?
>>>>
>>>> -----------------------------------------------
>>>> My first attempt was after making changes to the collection of XML
>>>> files
>>>> in CONF and attempting to start with those files.
>>>> When I tried to start james with those files, the windows event log
>>>> showed one error "Error: Password file read access must be restricted:
>>>> ../conf/jmx.password" which surprised me.
>>>> That's when I decided to try starting james with no configuration
>>>> changes
>>>> - just as released in the binary zip file.
>>>>
>>>> I have not attempted to carry over any of my james 2.3.2 data to
>>>> version
>>>> 3. I've made sure that the james 2 service is stopped before trying to
>>>> start james 3.
>>>> I'm stuck for ideas now.
>>>>
>>>> Gerry Matte
>>>> 250-383-2466 http://www.gerrymatte.ca
>>>
>
> Thx for the feedback,
> Norman
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
Re: James 3.0-M1 fails to startup on Windows server 2003
Posted by Norman Maurer <no...@apache.org>.
Hi Gerry,
comments inside..
2010/11/3 Gerry Matte <Ge...@shaw.ca>:
> As I indicated , following the recommended procedure to restrict file access
> for CONF/jmx.access and jmx.password was not effective for me.
> Either I missed a subtle step or it doesn't work on my Windows platform
> because I am running other java products that use jmx ......
> By cruising the ActiveMQ web pages, I was able to determine how to disable
> jmx password security by adding a java option to run.bat
>
> I no longer encounter the same error message (that the jmx.password file is
> unprotected) but I now see a connection error attempting to connect to
> localhost:1099/jmxrmi
> Port 1099 is already in use on my machine - either by JBoss 5.1 or by Apache
> ftp or OpenDS I suspect.
> Tomorrow (Nov 3) I'll try to identify the application that is currently
> using port 1099 or maybe I'll try to use an alternative port by modifying
> the james run.bat java options.
>
Normally JMX of James should bind to port 9999. Could you post the error ?
> I'm not sure it matters but two info messages occur after the connection
> error:
> Bean 'configurationProvider' is not eligible for getting processed by all
> BeanPostProcessors (for example: not eligible for auto-proxying)
> The same message occurs for Bean 'logProvider'
>
Nothing to worry about, it will get fixed in spring 3.0.5:
https://jira.springframework.org/browse/SPR-7524
> I also see multiple uncaught exceptions complaining that the configured
> defaultDomain does not exist in the DomainList.
> Does anyone know how I can determine what the defaultDomain is ?
> I suspect I have to add something to the domainlist.xml but I have no idea
> what that might be - possibly the machine name for the server ?
> The list of domains I have configured is quite lengthy because I plan to
> support multiple email domains.
The defaultDomain is configured in the mailserver.xml and is localhost
by default.
>
> Thanks in advance for any help.
> Gerry
>
> --------------------------------------------------
> From: "Norman Maurer" <no...@apache.org>
> Sent: Tuesday, November 02, 2010 10:56 AM
> To: "James Users List" <se...@james.apache.org>
> Subject: Re: James 3.0-M1 fails to startup on Windows server 2003
>>
>> Hi Gerry,
>>
>> see:
>> http://james.apache.org/server/3/configuration.html
>>
>> You need to restrict the file access on the jmx access/pass files on
>> windows or disable username/password stuff for jmx.
>>
>> Bye,
>> Norman
>>
>> 2010/11/2 Gerry Matte <Ge...@shaw.ca>:
>>>
>>> Hi there.
>>> I've been trying to start the M1 james 3 without success on MS Windows
>>> server 2003 with java 1.6u22 jdk.
>>> ------------------------------------------------
>>> When I install the windows service with no changes to any CONF files the
>>> startup fails with no log output either to the james log files or to the
>>> windows event log (other than the useless message "service failed to start"]
>>> My dos window is:
>>> Microsoft Windows [Version 5.2.3790]
>>> (C) Copyright 1985-2003 Microsoft Corp.
>>>
>>> C:\s\james-3\bin>james install
>>> wrapper | Apache James Server Container Spring installed.
>>>
>>> C:\s\james-3\bin>james start
>>> wrapper | Starting the Apache James Server Container Spring service...
>>> wrapper | Waiting to start...
>>> wrapper | Waiting to start...
>>> wrapper | Waiting to start...
>>> wrapper | Waiting to start...
>>> wrapper | The Apache James Server Container Spring service was launched,
>>> but failed to start.
>>> Press any key to continue . . .
>>>
>>> Are we supposed to be able to start james 3 without making any changes ?
>>>
>>> -----------------------------------------------
>>> My first attempt was after making changes to the collection of XML files
>>> in CONF and attempting to start with those files.
>>> When I tried to start james with those files, the windows event log
>>> showed one error "Error: Password file read access must be restricted:
>>> ../conf/jmx.password" which surprised me.
>>> That's when I decided to try starting james with no configuration changes
>>> - just as released in the binary zip file.
>>>
>>> I have not attempted to carry over any of my james 2.3.2 data to version
>>> 3. I've made sure that the james 2 service is stopped before trying to
>>> start james 3.
>>> I'm stuck for ideas now.
>>>
>>> Gerry Matte
>>> 250-383-2466 http://www.gerrymatte.ca
>>
Thx for the feedback,
Norman
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: James 3.0-M1 fails to startup on Windows server 2003
Posted by Gerry Matte <Ge...@shaw.ca>.
As I indicated , following the recommended procedure to restrict file access
for CONF/jmx.access and jmx.password was not effective for me.
Either I missed a subtle step or it doesn't work on my Windows platform
because I am running other java products that use jmx ......
By cruising the ActiveMQ web pages, I was able to determine how to disable
jmx password security by adding a java option to run.bat
I no longer encounter the same error message (that the jmx.password file is
unprotected) but I now see a connection error attempting to connect to
localhost:1099/jmxrmi
Port 1099 is already in use on my machine - either by JBoss 5.1 or by Apache
ftp or OpenDS I suspect.
Tomorrow (Nov 3) I'll try to identify the application that is currently
using port 1099 or maybe I'll try to use an alternative port by modifying
the james run.bat java options.
I'm not sure it matters but two info messages occur after the connection
error:
Bean 'configurationProvider' is not eligible for getting processed by all
BeanPostProcessors (for example: not eligible for auto-proxying)
The same message occurs for Bean 'logProvider'
I also see multiple uncaught exceptions complaining that the configured
defaultDomain does not exist in the DomainList.
Does anyone know how I can determine what the defaultDomain is ?
I suspect I have to add something to the domainlist.xml but I have no idea
what that might be - possibly the machine name for the server ?
The list of domains I have configured is quite lengthy because I plan to
support multiple email domains.
Thanks in advance for any help.
Gerry
--------------------------------------------------
From: "Norman Maurer" <no...@apache.org>
Sent: Tuesday, November 02, 2010 10:56 AM
To: "James Users List" <se...@james.apache.org>
Subject: Re: James 3.0-M1 fails to startup on Windows server 2003
> Hi Gerry,
>
> see:
> http://james.apache.org/server/3/configuration.html
>
> You need to restrict the file access on the jmx access/pass files on
> windows or disable username/password stuff for jmx.
>
> Bye,
> Norman
>
> 2010/11/2 Gerry Matte <Ge...@shaw.ca>:
>> Hi there.
>> I've been trying to start the M1 james 3 without success on MS Windows
>> server 2003 with java 1.6u22 jdk.
>> ------------------------------------------------
>> When I install the windows service with no changes to any CONF files the
>> startup fails with no log output either to the james log files or to the
>> windows event log (other than the useless message "service failed to
>> start"]
>> My dos window is:
>> Microsoft Windows [Version 5.2.3790]
>> (C) Copyright 1985-2003 Microsoft Corp.
>>
>> C:\s\james-3\bin>james install
>> wrapper | Apache James Server Container Spring installed.
>>
>> C:\s\james-3\bin>james start
>> wrapper | Starting the Apache James Server Container Spring service...
>> wrapper | Waiting to start...
>> wrapper | Waiting to start...
>> wrapper | Waiting to start...
>> wrapper | Waiting to start...
>> wrapper | The Apache James Server Container Spring service was launched,
>> but failed to start.
>> Press any key to continue . . .
>>
>> Are we supposed to be able to start james 3 without making any changes ?
>>
>> -----------------------------------------------
>> My first attempt was after making changes to the collection of XML files
>> in CONF and attempting to start with those files.
>> When I tried to start james with those files, the windows event log
>> showed one error "Error: Password file read access must be restricted:
>> ../conf/jmx.password" which surprised me.
>> That's when I decided to try starting james with no configuration
>> changes - just as released in the binary zip file.
>>
>> I have not attempted to carry over any of my james 2.3.2 data to version
>> 3. I've made sure that the james 2 service is stopped before trying to
>> start james 3.
>> I'm stuck for ideas now.
>>
>> Gerry Matte
>> 250-383-2466 http://www.gerrymatte.ca
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: James 3.0-M1 fails to startup on Windows server 2003
Posted by Norman Maurer <no...@apache.org>.
Hi Gerry,
see:
http://james.apache.org/server/3/configuration.html
You need to restrict the file access on the jmx access/pass files on
windows or disable username/password stuff for jmx.
Bye,
Norman
2010/11/2 Gerry Matte <Ge...@shaw.ca>:
> Hi there.
> I've been trying to start the M1 james 3 without success on MS Windows server 2003 with java 1.6u22 jdk.
> ------------------------------------------------
> When I install the windows service with no changes to any CONF files the startup fails with no log output either to the james log files or to the windows event log (other than the useless message "service failed to start"]
> My dos window is:
> Microsoft Windows [Version 5.2.3790]
> (C) Copyright 1985-2003 Microsoft Corp.
>
> C:\s\james-3\bin>james install
> wrapper | Apache James Server Container Spring installed.
>
> C:\s\james-3\bin>james start
> wrapper | Starting the Apache James Server Container Spring service...
> wrapper | Waiting to start...
> wrapper | Waiting to start...
> wrapper | Waiting to start...
> wrapper | Waiting to start...
> wrapper | The Apache James Server Container Spring service was launched,
> but failed to start.
> Press any key to continue . . .
>
> Are we supposed to be able to start james 3 without making any changes ?
>
> -----------------------------------------------
> My first attempt was after making changes to the collection of XML files in CONF and attempting to start with those files.
> When I tried to start james with those files, the windows event log showed one error "Error: Password file read access must be restricted: ../conf/jmx.password" which surprised me.
> That's when I decided to try starting james with no configuration changes - just as released in the binary zip file.
>
> I have not attempted to carry over any of my james 2.3.2 data to version 3. I've made sure that the james 2 service is stopped before trying to start james 3.
> I'm stuck for ideas now.
>
> Gerry Matte
> 250-383-2466 http://www.gerrymatte.ca
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org