Hi Carlos,

Its because of the fact anon CVS is out of behind developer...(I'd be nice
if they fixed that)...anyway, place this attached file in
andromda-all/cartridges/andromda-bpm4struts/src/META-INF and build
bpm4struts again: maven clean jar:install...and it should get you past that
error.

Chad


----- Original Message ----- 
From: "Carlos Cuenca" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 05, 2004 12:20 PM
Subject: [Andromda-user] Error creating new project


> Hi,
>
> I had downloaded and compiled the today's CVS. I had created a new
> project with "maven andromdapp:generate" and now when I try to compile I
> get these errors, I don't know if they are related with the big jobs
> ;-)    of the weekend...
>
> any ideas:
>
> Parse Error at line 20 column 27: cvc-complex-type.4: Attribute
> 'outputPattern' must appear on element 'resource'.
> org.xml.sax.SAXParseException: cvc-complex-type.4: Attribute
> 'outputPattern' must appear on element 'resource'.
>         at
> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
> Source)
>         at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown
Source)
> .....
>
> VALIDATION FAILED for --> 'jar:file:/C:/Documents and
>
Settings/Carlos/.maven/repository/andromda-cartridges/jars/andromda-bpm4stru
ts-cartridge-3.0M2-S
> NAPSHOT.jar!/META-INF/andromda-cartridge.xml' against SCHEMA -->
> 'jar:file:/C:/Documents and
> Settings/Carlos/.maven/repository/andromda/jars/andromda-
> core-3.0M2-SNAPSHOT.jar!/org/andromda/core/cartridge/Cartridge.xsd' -->
> message: 'cvc-complex-type.4: Attribute 'outputPattern' must appear on
> element
>  'resource'.'
> Error performing PluginDiscoverer.discoverPlugins
> org.andromda.core.common.XmlObjectFactoryException: VALIDATION FAILED
> for --> 'jar:file:/C:/Documents and
> Settings/Carlos/.maven/repository/andromda-c
>
artridges/jars/andromda-bpm4struts-cartridge-3.0M2-SNAPSHOT.jar!/META-INF/an
dromda-cartridge.xml'
> against SCHEMA --> 'jar:file:/C:/Documents and Setti
>
ngs/Carlos/.maven/repository/andromda/jars/andromda-core-3.0M2-SNAPSHOT.jar!
/org/andromda/core/cartridge/Cartridge.xsd'
> --> message: 'cvc-complex-type
> .4: Attribute 'outputPattern' must appear on element 'resource'.'
>         at
>
org.andromda.core.common.XmlObjectFactory.getObject(XmlObjectFactory.java:22
4)
>
> .....
>
> Caused by: org.andromda.core.common.XmlObjectFactoryException:
> VALIDATION FAILED for --> 'jar:file:/C:/Documents and
> Settings/Carlos/.maven/repository
>
/andromda-cartridges/jars/andromda-bpm4struts-cartridge-3.0M2-SNAPSHOT.jar!/
META-INF/andromda-cartridge.xml'
> against SCHEMA --> 'jar:file:/C:/Document
> s and
>
Settings/Carlos/.maven/repository/andromda/jars/andromda-core-3.0M2-SNAPSHOT
.jar!/org/andromda/core/cartridge/Cartridge.xsd'
> --> message: 'cvc-c
> omplex-type.4: Attribute 'outputPattern' must appear on element
'resource'.'
>         at
>
org.andromda.core.common.XmlObjectFactory.getObject(XmlObjectFactory.java:22
4)
>
>
> ...any ideas??
>
> thank you!
>
> Carlos
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by Black Hat Briefings & Training.
> Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
> digital self defense, top technical experts, no vendor pitches,
> unmatched networking opportunities. Visit www.blackhat.com
> _______________________________________________
> Andromda-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/andromda-user
<cartridge name="bpm4struts">

	<templateEngine>
	    <!-- library of macros used in template engine -->
        <macrolibrary name="templates/StrutsJSP.vm" />
        <macrolibrary name="templates/StrutsAction.vm" />
    </templateEngine>

    <!-- define the template objects that are made available to the template -->
    <templateObject name="str" className="org.andromda.core.common.StringUtilsHelper"/>

    <!-- define template external properties -->
    <property reference="securityEnabled" default="false"/>
    <property reference="securityRealm" default="other"/>

    <!-- copy resources -->
    <resource
        path="resources/*.png"
		outputPattern="layout/{0}"
        outlet="pages"
        overwrite="true"/>

    <!-- process templates on model elements -->
    <template
        path="templates/StrutsAction.vsl"
        outputPattern="$generatedFile"
        outlet="actions"
        overwrite="true">
        <modelElements variable="class">
            <modelElement stereotype="FrontEndEvent"/>
        </modelElements>
    </template>

    <template
        path="templates/StrutsActionJsp.vsl"
        outputPattern="$generatedFile"
        outlet="pages"
        overwrite="false"
        generateEmptyFiles="false">
        <modelElements variable="class">
            <modelElement stereotype="FrontEndEvent"/>
        </modelElements>
    </template>

    <template
        path="templates/StrutsForm.vsl"
        outputPattern="$generatedFile"
        outlet="forms"
        overwrite="true">
        <modelElements variable="class">
            <modelElement stereotype="FrontEndEvent"/>
        </modelElements>
    </template>

    <template
        path="templates/StrutsUseCaseForm.vsl"
        outputPattern="$generatedFile"
        outlet="forms"
        overwrite="true">
        <modelElements variable="class">
            <modelElement stereotype="FrontEndUseCase"/>
        </modelElements>
    </template>

    <template
        path="templates/StrutsController.vsl"
        outputPattern="$generatedFile"
        outlet="controller-impls"
        overwrite="false">
        <modelElements variable="class">
            <modelElement stereotype="FrontEndController"/>
        </modelElements>
    </template>

    <template
        path="templates/StrutsControllerInterface.vsl"
        outputPattern="$generatedFile"
        outlet="controllers"
        overwrite="true">
        <modelElements variable="class">
            <modelElement stereotype="FrontEndController"/>
        </modelElements>
    </template>

    <template
        path="templates/StrutsJSP.vsl"
        outputPattern="$generatedFile"
        outlet="pages"
        overwrite="false">
        <modelElements variable="class">
            <modelElement stereotype="FrontEndView"/>
        </modelElements>
    </template>

    <template
        path="templates/StrutsFormValidationStaticJavascript.vsl"
        outputPattern="form-validation.jsp"
        outlet="pages"
        overwrite="true">
        <modelElements variable="class">
            <modelElement stereotype="FrontEndApplication"/>
        </modelElements>
    </template>

    <template
        path="templates/StrutsFormValidationRules.vsl"
        outputPattern="validator-rules.xml"
        outlet="configuration"
        overwrite="true">
        <modelElements variable="class">
            <modelElement stereotype="FrontEndApplication"/>
        </modelElements>
    </template>

    <template
        path="templates/StrutsIndexJsp.vsl"
        outputPattern="index.jsp"
        outlet="pages"
        overwrite="true">
        <modelElements variable="class">
            <modelElement stereotype="FrontEndApplication"/>
        </modelElements>
    </template>

    <template
        path="templates/StrutsMessageResources.vsl"
        outputPattern="application-resources.properties"
        outlet="messages"
        overwrite="true">
        <modelElements variable="class">
            <modelElement stereotype="FrontEndApplication"/>
        </modelElements>
    </template>

    <template
        path="templates/StrutsCustomMessageResources.vsl"
        outputPattern="custom-resources.properties"
        outlet="messages"
        overwrite="false">
        <modelElements variable="class">
            <modelElement stereotype="FrontEndApplication"/>
        </modelElements>
    </template>

    <template
        path="templates/StrutsXDocletMergeMessageResources.vsl"
        outputPattern="struts-message-resources.xml"
        outlet="xdoclet-merge"
        overwrite="true">
        <modelElements variable="class">
            <modelElement stereotype="FrontEndApplication"/>
        </modelElements>
    </template>

    <template
        path="templates/StrutsXDocletMergeGlobalForwards.vsl"
        outputPattern="global-forwards.xml"
        outlet="xdoclet-merge"
        overwrite="true">
        <modelElements variable="class">
            <modelElement stereotype="FrontEndApplication"/>
        </modelElements>
    </template>

    <template
        path="templates/StrutsXDocletMergePlugins.vsl"
        outputPattern="struts-plugins.xml"
        outlet="xdoclet-merge"
        overwrite="true"
        generateEmptyFiles="true">
        <modelElements variable="class">
            <modelElement stereotype="FrontEndApplication"/>
        </modelElements>
    </template>

    <template
        path="templates/StrutsXDocletMergeServletMapping.vsl"
        outputPattern="servlet-mappings.xml"
        outlet="xdoclet-merge"
        overwrite="true">
        <modelElements variable="class">
            <modelElement stereotype="FrontEndApplication"/>
        </modelElements>
    </template>

    <template
        path="templates/StrutsXDocletMergeServlets.vsl"
        outputPattern="servlets.xml"
        outlet="xdoclet-merge"
        overwrite="true">
        <modelElements variable="class">
            <modelElement stereotype="FrontEndApplication"/>
        </modelElements>
    </template>

    <template
        path="templates/StrutsXDocletMergeTagLibs.vsl"
        outputPattern="taglibs.xml"
        outlet="xdoclet-merge"
        overwrite="true"
        generateEmptyFiles="true">
        <modelElements variable="class">
            <modelElement stereotype="FrontEndApplication"/>
        </modelElements>
    </template>

    <template
        path="templates/StrutsXDocletMergeWelcomeFiles.vsl"
        outputPattern="welcomefiles.xml"
        outlet="xdoclet-merge"
        overwrite="true"
        generateEmptyFiles="true">
        <modelElements variable="class">
            <modelElement stereotype="FrontEndApplication"/>
        </modelElements>
    </template>

    <template
        path="templates/StrutsXDocletMergeWebSecurity.vsl"
        outputPattern="web-security.xml"
        outlet="xdoclet-merge"
        overwrite="true"
        generateEmptyFiles="true">
        <modelElements variable="class">
            <modelElement stereotype="FrontEndApplication"/>
        </modelElements>
    </template>

    <template
        path="templates/StrutsXDocletMergeWebSecRoles.vsl"
        outputPattern="web-sec-roles.xml"
        outlet="xdoclet-merge"
        overwrite="true"
        generateEmptyFiles="true">
        <modelElements variable="class">
            <modelElement stereotype="FrontEndApplication"/>
        </modelElements>
    </template>

    <template
        path="templates/StrutsLoginFormJsp.vsl"
        outputPattern="login/login-form.jsp"
        outlet="pages"
        overwrite="false">
        <modelElements variable="class">
            <modelElement stereotype="FrontEndApplication"/>
        </modelElements>
    </template>

    <template
        path="templates/StrutsLoginErrorJsp.vsl"
        outputPattern="login/login-error.jsp"
        outlet="pages"
        overwrite="false">
        <modelElements variable="class">
            <modelElement stereotype="FrontEndApplication"/>
        </modelElements>
    </template>

    <template
        path="templates/StrutsMenuJsp.vsl"
        outputPattern="layout/menu.jsp"
        outlet="pages"
        overwrite="false">
        <modelElements variable="class">
            <modelElement stereotype="FrontEndApplication"/>
        </modelElements>
    </template>

    <template
        path="templates/StrutsMainLayoutJsp.vsl"
        outputPattern="layout/main-layout.jsp"
        outlet="pages"
        overwrite="false">
        <modelElements variable="class">
            <modelElement stereotype="FrontEndApplication"/>
        </modelElements>
    </template>

    <template
        path="templates/StrutsTilesDefs.vsl"
        outputPattern="tiles-defs.xml"
        outlet="configuration"
        overwrite="false">
        <modelElements variable="class">
            <modelElement stereotype="FrontEndApplication"/>
        </modelElements>
    </template>

    <template
        path="templates/StrutsApplicationCss.vsl"
        outputPattern="layout/default-application.css"
        outlet="pages"
        overwrite="false">
        <modelElements variable="class">
            <modelElement stereotype="FrontEndApplication"/>
        </modelElements>
    </template>

    <template
        path="templates/StrutsCss.vsl"
        outputPattern="layout/default.css"
        outlet="pages"
        overwrite="false">
        <modelElements variable="class">
            <modelElement stereotype="FrontEndApplication"/>
        </modelElements>
    </template>

    <template
        path="templates/StrutsMessagesJsp.vsl"
        outputPattern="layout/messages.jsp"
        outlet="pages"
        overwrite="false">
        <modelElements variable="class">
            <modelElement stereotype="FrontEndApplication"/>
        </modelElements>
    </template>

</cartridge>

Reply via email to