Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 3.2.0
-
Fix Version/s: None
-
Component/s: Schema
-
Labels:None
-
User impact:Medium
-
Similar Issues:None
Description
Component class is not a required attribute in mule schema but when adding REST and not configuring the class, it throws this error:
The content of element 'jersey:resources' is not complete. One of '{"http://www.mulesoft.org/schema/mule/core":annotations, "http://www.mulesoft.org/schema/mule/core":abstract-interceptor, "http://www.mulesoft.org/schema/mule/core":interceptor-stack, "http://www.mulesoft.org/schema/mule/core":abstract-component}' is expected.
This issue has an impact on Mule Studio since it is based in the schemas.
<xsd:element name="component" type="defaultJavaComponentType" substitutionGroup="abstract-component"> <xsd:annotation> <xsd:documentation> A simple POJO (Plain Old Java Object) component that will be invoked by Mule when a message is received. The class or object instance to be used can be specified using a child object factory element, or via the 'class' attribute. If the 'class' attribute is used, an object factory cannot be configured as well. Using the 'class' attribute is equivilant to using the propotype object factory ('prototype-object' child element). </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:complexType name="defaultJavaComponentType"> <xsd:complexContent> <xsd:extension base="abstractComponentType"> <xsd:sequence> <xsd:group ref="entryPointResolvers"> <xsd:annotation> <xsd:documentation> Entry point resolvers that are used to determine how a message is passed to a component. </xsd:documentation> </xsd:annotation> </xsd:group> <xsd:element ref="abstract-object-factory" minOccurs="0"> <xsd:annotation> <xsd:documentation> Object factory used to obtain the object instance that will be used for the component implementation. The object factory is responsible for object creation and may implement different patterns, such as singleton or prototype, or look up an instance from other object containers. </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element ref="abstract-lifecycle-adapter-factory" minOccurs="0"/> <xsd:element name="binding" type="pojoBindingType" minOccurs="0" maxOccurs="unbounded"> <xsd:annotation> <xsd:documentation> A binding associates a Mule endpoint with an injected Java interface. This is like using Spring to inject a bean, but instead of calling a method on the bean, a message is sent to an endpoint. </xsd:documentation> </xsd:annotation> </xsd:element> </xsd:sequence> <xsd:attribute name="class" type="substitutableClass"> <xsd:annotation> <xsd:documentation> Specifies a component class. This is a shortcut that is equivalent to providing a 'prototype-object' element. </xsd:documentation> </xsd:annotation> </xsd:attribute> </xsd:extension> </xsd:complexContent> </xsd:complexType>
Please, feel free to close this issue if you see that this is not a valid issue.
Please add the relevant snippet from the configuration that cause the problem.