Hi Johannes,

I have run into the same problem during the security descriptor validation 
process when developing my own services.  Unfortunately, I cannot explain why 
it happens and furthermore it only seems to happen under certain non-default 
conditions.  

A workaround for me has always been to bypass validation by adding the 
following to your service's build.xml file:

<property name="doValidation" value="false"/>

You need to restore the securityDescriptor option in the wsdd file.  Also put 
the your original security-config.xml back.  Everything should work normally 
again.

Hope this helps.

Mike

> -----Original Message-----
> From: [email protected] [mailto:gt-user-
> [email protected]] On Behalf Of Johannes Duschl
> Sent: Monday, March 22, 2010 6:41 AM
> To: [email protected]
> Subject: Re: [gt-user] Cannot find the declaration of element
> 'securityConfig'
> 
> Ok, I have figured it out now. After I removed the securityDescriptor
> option completely from the wsdd file, the error still occurred. I had to
> remove the xml file.
> Globus now detects the file correctly and I can deploy the service.
> Nevertheless, I get this error now:
> 
>         2010-03-22T16:40:52.559+01:00 ERROR handler.AddressingHandler
>         [ServiceThread-56,invoke:142] Exception in AddressingHandler
>         AxisFault
>         faultCode:
>         {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
>         faultSubcode:
>         faultString: org.globus.wsrf.ResourceContextException: ; nested
>         exception is:
>         javax.naming.NamingException: [JWSCORE-203] Bean security
>         initialization failed [Root exception is
>         org.globus.wsrf.config.ConfigException: [JWSSEC-245] Error
>         parsing file: &quot;etc/com_service/security-config.xml&quot;
>         [Caused by: cvc-elt.1: Cannot find the declaration of element
>         'securityConfig'.]]
> 
> Again, I have tried different files, as well as the very basic
> security-conf.xml already posted. Does this mean it actually cannot find
> the element or could this also point to a more general problem?
> 
> Greetings,
> Johannes
> 
> 
> On Mon, 2010-03-22 at 11:18 +0100, Johannes Duschl wrote:
> > Hi there,
> >
> > I'm running GT 4.2.1 and developing some services for it. Today I have
> > changed some settings in the security descriptor of one service and now
> > I keep getting these messages, when trying to deploy it:
> >
> >         Deploying gar file...
> >
> >         ...
> >
> >         Validating /usr/local/globus-
> 4.2.1.1/share/globus_wsrf_common/tmp/gar/etc/security-config.xml...
> >           cvc-elt.1: Cannot find the declaration of element
> >         'securityConfig'.
> >
> >         Deploy failed.: The following error occurred while executing
> >         this line:
> >         /usr/local/globus-4.2.1.1/share/globus_wsrf_common/build-
> packages.xml:466: The following error occurred while executing this line:
> >         /usr/local/globus-4.2.1.1/share/globus_wsrf_common/build-
> packages.xml:734: /usr/local/globus-
> 4.2.1.1/share/globus_wsrf_common/tmp/gar/etc/security-config.xml is not a
> valid XML document.
> >
> >
> > This now happens for every possible security-config.xml I define. If I
> > leave it empty I get this error, as well as when I copy an example from
> > the documentation.
> >
> > At the moment I just have
> >
> >         <securityConfig xmlns="http://www.globus.org";>
> >             <authz value="none"/>
> >         </securityConfig>
> >
> > and it fails with the mentioned error. Obviously the element
> > securityConfig *is* there and it *is* a valid XML file.
> >
> > Maybe somebody can give me a hint :)
> >
> > Greetings,
> > Johannes
> >
> >
> >
> >
> 

Reply via email to