Return-Path: Delivered-To: apmail-avalon-dev-archive@www.apache.org Received: (qmail 60742 invoked from network); 1 Apr 2004 21:00:58 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 1 Apr 2004 21:00:58 -0000 Received: (qmail 95320 invoked by uid 500); 1 Apr 2004 21:00:46 -0000 Delivered-To: apmail-avalon-dev-archive@avalon.apache.org Received: (qmail 95264 invoked by uid 500); 1 Apr 2004 21:00:45 -0000 Mailing-List: contact dev-help@avalon.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Avalon Developers List" Reply-To: "Avalon Developers List" Delivered-To: mailing list dev@avalon.apache.org Received: (qmail 95246 invoked from network); 1 Apr 2004 21:00:45 -0000 Received: from unknown (HELO smtp.noos.fr) (212.198.2.122) by daedalus.apache.org with SMTP; 1 Apr 2004 21:00:45 -0000 Received: (qmail 31144 invoked by uid 0); 1 Apr 2004 21:00:48 -0000 Received: from unknown (HELO apache.org) ([212.198.17.4]) (envelope-sender ) by 212.198.2.122 (qmail-ldap-1.03) with SMTP for ; 1 Apr 2004 21:00:48 -0000 Message-ID: <406C83E3.2050706@apache.org> Date: Thu, 01 Apr 2004 23:04:35 +0200 From: Stephen McConnell User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.6b) Gecko/20031208 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Avalon Developers List Subject: Re: Configuration TLSServerSocketFactory References: <406AC6EA.2090802@apache.org> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Svyatoslav Shymkiv wrote: > Stephen McConnell wrote: > >> Svyatoslav Shymkiv wrote: >> >>> Hello. >>> >>> I have a problem configuring TLSServerSocketFactory in my Avalon >>> application. When I try to configure it inside SocketManager block I >>> get verification configuration error. >> >> >> >> A couple of questions: >> >> 1. can you post the stack trace your getting? >> 2. have you tried to do this using merlin? >> >> BTW your configuration looks ok to me. > > > 1. Stack trace and phoenix.log: I just took a quick look at the DefaultSocketManager-schema.xml and it seems to me that it is saying that no child elements are allowed in the factory reference. I.e. according to the schema the following is ok: But content inside the factory is not. So its seems to me that either (a) the schema needs to be updated, or (b) schema validation needs to be disabled. I would suggest you disable schema validation as this will at least get you past this point. Unfortunately I don't know the details re. switching validation on/off - but it is there if I remember correctly. > WARN 2004-04-01 12:31:08.120 [Phoenix.] (): element "ssl-factory" was > found where no element may occur at -1 > > 2. I haven't tried it using merlin/maven because I don't quite > anderstand how it works. But I tried to compile OpenIM and it works > confusing me. Compared to Phoenix its drop dead simple. Take a look at the tutorial (which includes dozens of working examples). You don;t even have to update you component xinfo files - merlin recognizes and deals with these automatically. http://avalon.apache.org/merlin/starting/tutorial/index.html From there - just create an xml file containing a root (e.g. my-demo.block). Add a definition, and add the elements you want using . Then: $ merlin my-demo.block If you need some help just post a note to the users list. Cheers, Stephen. -- |------------------------------------------------| | Magic by Merlin | | Production by Avalon | | | | http://avalon.apache.org/merlin | | http://dpml.net/merlin/distributions/latest | |------------------------------------------------| --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org For additional commands, e-mail: dev-help@avalon.apache.org