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: "etc/com_service/security-config.xml"
[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
>
>
>
>