Hi all,
I'm currently running James 2.2.0 with pop3-tls and smtp-tls.
Everything works great and I'm very happy with it.
I've tried to install the James 2.3.0a1 snapshot. Everything ok until I
try to enable
the ssl-configuration.
I enable ssl as described at: http://wiki.apache.org/james/UsingSSL
When I use:
---
<factory name="ssl"
class="org.apache.avalon.cornerstone.blocks.sockets.TLSServerSocketFactory">
<ssl-factory>
<keystore>
<file>conf/keystore</file>
<password>secret</password>
<key-password>keysecret</key-password>
<type>JKS</type>
<protocol>TLS</protocol>
<algorithm>SunX509</algorithm>
<authenticate-client>false</authenticate-client>
</keystore>
</ssl-factory>
</factory>
---
- I get "element "ssl-factory" was found where no element may occur" In
Phoenix log (along with a lot of related errors (see below)).
When I use:
---
<factory name="ssl"
class="org.apache.avalon.cornerstone.blocks.sockets.TLSServerSocketFactory">
<keystore>
<file>conf/keystore</file>
<password>secret</password>
<type>JKS</type>
<protocol>TLS</protocol>
<algorithm>SunX509</algorithm>
<authenticate-client>false</authenticate-client>
</keystore>
</factory>
---
(the old model?) I get the same error but with "element "keystore" was
found...
Anyone out there with a working ssl-config for 2.3.0a1?
Please find attached phoenix.log and stack trace from cli starup.
Cheers!
:O) Mikkel Troest
[C:\james-2.3.0a1\bin]run.bat
Using PHOENIX_HOME: C:\james-2.3.0a1
Using PHOENIX_TMPDIR: C:\james-2.3.0a1\temp
Using JAVA_HOME: C:\Program Files\Java\j2re1.4.2_09
Phoenix 4.2
There was an uncaught exception:
---------------------------------------------------------
--- Message ---
Unable to validate configuration of component sockets of type
org.apache.avalon.cornerstone.blocks.sockets.DefaultSocketManager
--- Stack Trace ---
org.apache.avalon.phoenix.interfaces.DeploymentException: Unable to validate
configuration of component sockets of type
org.apache.avalon.cornerstone.blocks.sockets.DefaultSocketManager
at
org.apache.avalon.phoenix.components.deployer.DefaultDeployer.validateConfiguration(DefaultDeployer.java:524)
at
org.apache.avalon.phoenix.components.deployer.DefaultDeployer.validateConfiguration(DefaultDeployer.java:503)
at
org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(DefaultDeployer.java:354)
at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:542)
at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:535)
at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFiles(DefaultEmbeddor.java:520)
at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployDefaultApplications(DefaultEmbeddor.java:509)
at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.execute(DefaultEmbeddor.java:268)
at org.apache.avalon.phoenix.frontends.CLIMain.run(CLIMain.java:198)
at org.apache.avalon.phoenix.frontends.CLIMain.execute(CLIMain.java:184)
at org.apache.avalon.phoenix.frontends.CLIMain.main(CLIMain.java:145)
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.apache.avalon.phoenix.launcher.Main.startup(Main.java:128)
at org.apache.avalon.phoenix.launcher.Main.main(Main.java:83)
---------------------------------------------------------
The log file may contain further details of error.
Please check the configuration files and restart Phoenix.
If the problem persists, contact the Avalon project. See
http://jakarta.apache.org/avalon for more information.
Shutting down Phoenix.
[C:\james-2.3.0a1\bin]INFO 2006-03-22 14:25:40.520 [Phoenix ] (): Logger started
WARN 2006-03-22 14:25:40.550 [Phoenix ] (): Phoenix was not started by the
daemon thus it will not be possible to restart the JVM via the Management
interface.
INFO 2006-03-22 14:25:40.740 [Phoenix.] (): Installing Sar located at
file:/C:/james-2.3.0a1/apps/james.sar.
WARN 2006-03-22 14:25:42.423 [Phoenix.] (): The file conf/sqlResources.xml
can not be extracted from the Sar "file:/C:/james-2.3.0a1/apps/james.sar" into
directory C:\james-2.3.0a1\apps\james\conf\sqlResources.xml because there is a
file in the way.
WARN 2006-03-22 14:25:42.423 [Phoenix.] (): The file
conf/james-fetchmail.xml can not be extracted from the Sar
"file:/C:/james-2.3.0a1/apps/james.sar" into directory
C:\james-2.3.0a1\apps\james\conf\james-fetchmail.xml because there is a file in
the way.
WARN 2006-03-22 14:25:42.423 [Phoenix.] (): The file conf/miResources.xml
can not be extracted from the Sar "file:/C:/james-2.3.0a1/apps/james.sar" into
directory C:\james-2.3.0a1\apps\james\conf\miResources.xml because there is a
file in the way.
WARN 2006-03-22 14:25:42.423 [Phoenix.] (): The file
conf/james-listmanager.xml can not be extracted from the Sar
"file:/C:/james-2.3.0a1/apps/james.sar" into directory
C:\james-2.3.0a1\apps\james\conf\james-listmanager.xml because there is a file
in the way.
WARN 2006-03-22 14:25:42.423 [Phoenix.] (): The file
conf/james-liststores.xml can not be extracted from the Sar
"file:/C:/james-2.3.0a1/apps/james.sar" into directory
C:\james-2.3.0a1\apps\james\conf\james-liststores.xml because there is a file
in the way.
WARN 2006-03-22 14:25:42.423 [Phoenix.] (): The file
conf/samples/fetchmail/oneAccountManyUsersDynamic.xml can not be extracted from
the Sar "file:/C:/james-2.3.0a1/apps/james.sar" into directory
C:\james-2.3.0a1\apps\james\conf\samples\fetchmail\oneAccountManyUsersDynamic.xml
because there is a file in the way.
WARN 2006-03-22 14:25:42.433 [Phoenix.] (): The file
conf/samples/fetchmail/oneAccountPerUserDynamic.xml can not be extracted from
the Sar "file:/C:/james-2.3.0a1/apps/james.sar" into directory
C:\james-2.3.0a1\apps\james\conf\samples\fetchmail\oneAccountPerUserDynamic.xml
because there is a file in the way.
WARN 2006-03-22 14:25:42.433 [Phoenix.] (): The file
conf/samples/fetchmail/remoteReceivedHeader.xml can not be extracted from the
Sar "file:/C:/james-2.3.0a1/apps/james.sar" into directory
C:\james-2.3.0a1\apps\james\conf\samples\fetchmail\remoteReceivedHeader.xml
because there is a file in the way.
WARN 2006-03-22 14:25:42.433 [Phoenix.] (): The file
conf/samples/fetchmail/oneAccountManyUsers.xml can not be extracted from the
Sar "file:/C:/james-2.3.0a1/apps/james.sar" into directory
C:\james-2.3.0a1\apps\james\conf\samples\fetchmail\oneAccountManyUsers.xml
because there is a file in the way.
WARN 2006-03-22 14:25:42.433 [Phoenix.] (): The file
conf/samples/fetchmail/maxMessageSize.xml can not be extracted from the Sar
"file:/C:/james-2.3.0a1/apps/james.sar" into directory
C:\james-2.3.0a1\apps\james\conf\samples\fetchmail\maxMessageSize.xml because
there is a file in the way.
WARN 2006-03-22 14:25:42.433 [Phoenix.] (): The file
conf/samples/fetchmail/oneAccountPerUser.xml can not be extracted from the Sar
"file:/C:/james-2.3.0a1/apps/james.sar" into directory
C:\james-2.3.0a1\apps\james\conf\samples\fetchmail\oneAccountPerUser.xml
because there is a file in the way.
WARN 2006-03-22 14:25:42.433 [Phoenix.] (): The file SAR-INF/config.xml can
not be extracted from the Sar "file:/C:/james-2.3.0a1/apps/james.sar" into
directory C:\james-2.3.0a1\apps\james\SAR-INF\config.xml because there is a
file in the way.
WARN 2006-03-22 14:25:42.433 [Phoenix.] (): The file SAR-INF/assembly.xml
can not be extracted from the Sar "file:/C:/james-2.3.0a1/apps/james.sar" into
directory C:\james-2.3.0a1\apps\james\SAR-INF\assembly.xml because there is a
file in the way.
WARN 2006-03-22 14:25:42.433 [Phoenix.] (): The file SAR-INF/environment.xml
can not be extracted from the Sar "file:/C:/james-2.3.0a1/apps/james.sar" into
directory C:\james-2.3.0a1\apps\james\SAR-INF\environment.xml because there is
a file in the way.
INFO 2006-03-22 14:25:42.773 [Phoenix.] (): Verifying that all key-stores
have valid names.
INFO 2006-03-22 14:25:42.773 [Phoenix.] (): Verify that any keystore names
used by grant or permission reference actual keystores
INFO 2006-03-22 14:25:42.773 [Phoenix.] (): Verify that if target is null
then actions is null.
INFO 2006-03-22 14:25:43.204 [Phoenix.] (): Verifying that the name
specified for Blocks and BlockListeners are valid.
INFO 2006-03-22 14:25:43.204 [Phoenix.] (): Verifying that the names
specified for Component are valid.
INFO 2006-03-22 14:25:43.204 [Phoenix.] (): Verifying that the names
specified for the Components are unique.
INFO 2006-03-22 14:25:43.204 [Phoenix.] (): Verifying that the dependency
mapping is valid according to ComponentInfos.
INFO 2006-03-22 14:25:43.204 [Phoenix.] (): Verifying that the dependency
mapping for every Component is valid with respect to other components.
INFO 2006-03-22 14:25:43.204 [Phoenix.] (): Verifying that there are no
circular dependencies between Components.
INFO 2006-03-22 14:25:43.204 [Phoenix.] (): Verifying that the name
specified for Blocks and BlockListeners are unique.
INFO 2006-03-22 14:25:43.204 [Phoenix.] (): Verifying that the specified
Blocks have valid types.
INFO 2006-03-22 14:25:43.284 [Phoenix.] (): Verifying that the specified
BlockListeners have valid types.
WARN 2006-03-22 14:25:43.384 [Phoenix.] (): element "ssl-factory" was found
where no element may occur at -1
WARN 2006-03-22 14:25:43.384 [Phoenix.] (): sockets failed validation due
to: Unable to validate input according to schema
org.apache.avalon.framework.CascadingException: Unable to validate input
according to schema
at
org.apache.avalon.phoenix.tools.configuration.ConfigurationBuilder.processValidationResults(ConfigurationBuilder.java:165)
at
org.apache.avalon.phoenix.components.validator.DefaultConfigurationValidator.isValid(DefaultConfigurationValidator.java:133)
at
org.apache.avalon.phoenix.components.deployer.DefaultDeployer.validateConfiguration(DefaultDeployer.java:512)
at
org.apache.avalon.phoenix.components.deployer.DefaultDeployer.validateConfiguration(DefaultDeployer.java:503)
at
org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(DefaultDeployer.java:354)
at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:542)
at
org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:535)
rethrown from
org.realityforge.configkit.ValidateException: Unable to validate input
according to schema
at
org.realityforge.configkit.ConfigValidator.doValidate(ConfigValidator.java:296)
at
org.realityforge.configkit.ConfigValidator.doValidate(ConfigValidator.java:249)
at
org.realityforge.configkit.ConfigValidator.validate(ConfigValidator.java:234)
at
org.apache.avalon.phoenix.components.validator.DefaultConfigurationValidator.isValid(DefaultConfigurationValidator.java:132)
at
org.apache.avalon.phoenix.components.deployer.DefaultDeployer.validateConfiguration(DefaultDeployer.java:512)
at
org.apache.avalon.phoenix.components.deployer.DefaultDeployer.validateConfiguration(DefaultDeployer.java:503)
at
org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(DefaultDeployer.java:354)
WARN 2006-03-22 14:25:43.404 [Phoenix.] (): Error deleting Work Directory
"C:\james-2.3.0a1\work\james-1143033940740". (Reason: File
C:\james-2.3.0a1\work\james-1143033940740\SAR-INF\lib\mailet-api-2.3.jar unable
to be deleted.)
java.io.IOException: File
C:\james-2.3.0a1\work\james-1143033940740\SAR-INF\lib\mailet-api-2.3.jar unable
to be deleted.
at
org.apache.avalon.excalibur.io.FileUtil.forceDelete(FileUtil.java:743)
at
org.apache.avalon.excalibur.io.FileUtil.cleanDirectory(FileUtil.java:910)
at
org.apache.avalon.excalibur.io.FileUtil.deleteDirectory(FileUtil.java:866)
at
org.apache.avalon.excalibur.io.FileUtil.forceDelete(FileUtil.java:735)
at
org.apache.avalon.excalibur.io.FileUtil.cleanDirectory(FileUtil.java:910)
at
org.apache.avalon.excalibur.io.FileUtil.deleteDirectory(FileUtil.java:866)
at
org.apache.avalon.excalibur.io.FileUtil.forceDelete(FileUtil.java:735)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]