JIRA

  • Log In Access more options
    • Online Help
    • GreenHopper Help
    • Agile Answers
    • Use Agile By Default
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Agile Access more options (Alt+g)
  • Create Issue
  • Mule
  • MULE-5917

Component class is not a required attribute in mule schema while it is

  • Agile Board
  • More Actions
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Minor 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.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
  • Transitions
  • Commits
  • Source
  • Builds
Hide
Permalink
Mike Schilling added a comment - 18/Nov/11 06:22 PM

Please add the relevant snippet from the configuration that cause the problem.

Show
Mike Schilling added a comment - 18/Nov/11 06:22 PM Please add the relevant snippet from the configuration that cause the problem.
Hide
Permalink
Daniel Feist added a comment - 19/Jan/12 07:59 AM

Eugenia, To look at this we need the config snippet as Mike requested

Show
Daniel Feist added a comment - 19/Jan/12 07:59 AM Eugenia, To look at this we need the config snippet as Mike requested
Hide
Permalink
Pablo Kraan added a comment - 28/Mar/12 05:05 PM

Eugenia, can you add the requested information?

Show
Pablo Kraan added a comment - 28/Mar/12 05:05 PM Eugenia, can you add the requested information?
Hide
Permalink
Ryan Hoegg added a comment - 21/Aug/12 10:32 AM

I am not sure if this is the same error, but this gives me an error in Mule Studio:

...
{{<jersey-resources doc:name="Service using spring beans as resources">
<component>
<spring-object bean="something" />
</component>
</jersey-resources>}}

Show
Ryan Hoegg added a comment - 21/Aug/12 10:32 AM I am not sure if this is the same error, but this gives me an error in Mule Studio: ... {{<jersey-resources doc:name="Service using spring beans as resources"> <component> <spring-object bean="something" /> </component> </jersey-resources>}}

People

  • Assignee:
    Unassigned
    Reporter:
    María Eugenia Aldinio
Vote (1)
Watch (0)

Dates

  • Created:
    18/Nov/11 02:34 PM
    Updated:
    17/May/13 03:42 PM

Agile

  • View on Board
  • Atlassian JIRA (v5.0.7#734-sha1:8ad78a6)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for MuleForge. Try JIRA - bug tracking software for your team.