mabroukONnet wrote:
>
> Hi
>
> responding to one GetResourceProperty request, i get this exception:
> Can't find resource for bundle
> org.apache.axis2.i18n.ProjectResourceBundle, key
> spec.FAULT_ACTION_NOT_SUPPORTED_REASON
>
> details below
>
>
That error seems to be a bug in Axis2 related to not finding the key for the
fault. You can look at
http://java2.5341.com/msg/206148.html
for a bit more info relating to that. What language are your clients running
under (this should be the system's default language I believe).
However that is not the problem you have with your Muse system. Normally
that fault points out that the entry is missing in service.xml under
WEB-INF/services/muse/META-INF. For your resource, in services.xml make sure
you the following action-mapping
<actionMapping>http://docs.oasis-open.org/wsrf/rpw-2/GetResourceProperty/GetResourcePropertyRequest</actionMapping>
> Details:
> * i didn't implement all methods on capability resource java file (some of
> them contains an throw new RuntimeException) [i think that it haven't
> relation with the exception]
>
That should not be a problem as long as you don't call them.
> * i modified the router entry xml file with:
> <?xml version="1.0" encoding="UTF-8"?>
> <wsa:ReferenceParameters xmlns:wsa="http://www.w3.org/2005/08/addressing">
> <muse-wsa:ResourceId
> xmlns:muse-wsa="http://ws.apache.org/muse/addressing">MuseResource-1</muse-wsa:ResourceId>
> </wsa:ReferenceParameters>
>
That looks ok, although I am unsure why you had to modify it. If you want
your EPRs to be generated with that, you should modify your muse.xml file to
use the CounterResourceIdFactory like so:
<java-id-factory-class>org.apache.muse.core.routing.CounterResourceIdFactory</java-id-factory-class>
> * and i starts my client with:
> ... my endpoint eference is "epr" ....
> ResourceIdFactory factory = new CounterResourceIdFactory();
> QName name = factory.getIdentifierName();
> String value = factory.getNextIdentifier();
> epr.addParameter(name, value);
>
I am unsure as to what you are trying to do here. The
CounterResourceIdFactory should be working on the server to generate
incremental values for the EPRs of the resources. It is very possible that
the values you will generate on the client are different than what you have
on the server. Probably right now you were lucky as they were both generated
with 1, but there is no guarantee of that happening.
If you have multiple resources of the same type, distinguished by
resourceIDs, you will need a way to retrieve those from the server and then
pick the one you want. (Muse might have one to do that, I have not looked
into it) Normally you do not do this though unless you use some form of
factory to generate resources on the server.
In terms of your project requirements - do you have multiple resources of
the same type? Or do you have one resource that does something.
--
View this message in context:
http://www.nabble.com/MissingResourceException-tf3927432.html#a11138892
Sent from the Muse User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]