hi Alexander,
this is very strange indeed, the form should implement that interface like
you said
please file an issue in jira, attach the model to the issue, make it a
blocker priority so I'll take a look at it this evening and make sure you
can continue without compilation problems
-- Wouter
> Hi all!
>
> Sorry for repeating this question, but I still couldn't handle it to model
> a very simple example.
> I got the following activity diagram:
>
>
> -> Inital Node
> -> FrontEndView: Show Login Screen
> -> Transition with call-trigger(named: "check user credentials"), pointing
> to the controller operation "checkCredentials"; the call-trigger has two
> parameters for the arguments required by the operation.
> -> Decision...
>
> The controller has an operation "checkCredentials(username:String,
> password: String): String".
>
>
> Generated source codes:
>
> ############## Controller - checkCredentials operation ################
>
> public abstract java.lang.String checkCredentials(ActionMapping mapping,
> de.objectivepartner.mda.strutshibernate.login.CheckCredentialsForm form,
> HttpServletRequest request, HttpServletResponse response) throws
> Exception;
>
>
>
> ############## FormBean with attributes for the parameters, but it
> doesn't implement the CheckCredentialsForm interface ################
>
> public class ShowLoginScreenCheckUserCredentialsForm
> extends org.apache.struts.validator.ValidatorForm
> implements java.io.Serializable
> {
>
>
> ############## Action Class ################
>
> public final class ShowLoginScreenCheckUserCredentials extends Action
>
> [...]
>
> private ActionForward checkCredentials(ActionMapping mapping,
> ActionForm form, HttpServletRequest request, HttpServletResponse response)
> throws Exception
> {
> final String value =
> String.valueOf(LoginControllerFactory.getLoginControllerInstance().checkCredentials(mapping,
> (ShowLoginScreenCheckUserCredentialsForm)form, request, response));
>
> if (value.equals("valid credentials"))
> {
> return mapping.findForward("login.succesful");
> }
> if (value.equals("invalid credentials"))
> {
> return mapping.findForward("login.failed");
> }
>
> // we take the last action in case we have an invalid return value
> from the controller
> return mapping.findForward("login.failed");
> }
>
>
> ############## Error generating the project... ################
>
> [javac] [VERBOSE] Files to be compiled:
>
> C:\MDASeminar\Projekte\strutshibernate\web\src\java\de\objectivepartner\mda\strutshibernate\login\LoginControllerImpl.java
>
> C:\MDASeminar\Projekte\strutshibernate\web\target\src\de\objectivepartner\mda\strutshibernate\login\CheckCredentialsForm.java
>
> C:\MDASeminar\Projekte\strutshibernate\web\target\src\de\objectivepartner\mda\strutshibernate\login\Login.java
>
> C:\MDASeminar\Projekte\strutshibernate\web\target\src\de\objectivepartner\mda\strutshibernate\login\LoginController.java
>
> C:\MDASeminar\Projekte\strutshibernate\web\target\src\de\objectivepartner\mda\strutshibernate\login\LoginControllerFactory.java
>
> C:\MDASeminar\Projekte\strutshibernate\web\target\src\de\objectivepartner\mda\strutshibernate\login\LoginForm.java
>
> C:\MDASeminar\Projekte\strutshibernate\web\target\src\de\objectivepartner\mda\strutshibernate\login\ShowLoginScreenCheckUserCredentials.java
>
> C:\MDASeminar\Projekte\strutshibernate\web\target\src\de\objectivepartner\mda\strutshibernate\login\ShowLoginScreenCheckUserCredentialsForm.java
>
> C:\MDASeminar\Projekte\strutshibernate\web\target\src\de\objectivepartner\mda\strutshibernate\login\ShowWelcomeScreenRestart.java
>
> C:\MDASeminar\Projekte\strutshibernate\web\target\src\de\objectivepartner\mda\strutshibernate\login\ShowWelcomeScreenRestartForm.java
>
> C:\MDASeminar\Projekte\strutshibernate\web\target\src\org\andromda\presentation\bpm4struts\PatternMatchingExceptionHandler.java
>
> C:\MDASeminar\Projekte\strutshibernate\web\target\src\org\andromda\presentation\bpm4struts\StrutsValidator.java
>
> C:\MDASeminar\Projekte\strutshibernate\web\target\src\de\objectivepartner\mda\strutshibernate\login\ShowLoginScreenCheckUserCredentials.java:38:
> checkCredentials(org.apache.struts.action.ActionMapping,de.objectivepartner.mda.strutshibernate.login.CheckCredentialsForm,javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
> in de.objectivepartner.mda.strutshibernate.login.LoginController cannot be
> applied to
> (org.apache.struts.action.ActionMapping,de.objectivepartner.mda.strutshibernate.login.ShowLoginScreenCheckUserCredentialsForm,javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
> final String value =
> String.valueOf(LoginControllerFactory.getLoginControllerInstance().checkCredentials(mapping,
> (ShowLoginScreenCheckUserCredentialsForm)form, request, response));
> ^
> 1 error
>
> BUILD FAILED
> File...... C:\Dokumente und
> Einstellungen\agordt\.maven\cache\maven-multiproject-plugin-1.3.1\plugin.jelly
> Element... maven:reactor
> Line...... 217
> Column.... 9
>
>
> Thanks for any help,
>
> Alex
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Andromda-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-user