AndroMDA plugin installation

AndroMDA plugin installation

Postby Guest » Wed Jun 23, 2004 4:41 pm

Hello,


I have problems with this plugin.

I have seen the other topics but they not resolve my trouble.

I have a SE licence and the AndroMDA licence. I have install all but i can't see changement in my Pos?idon. I have an installation for Windows. The readme install for AndroMDA it is for Linux

What appear with this plugin?
Can you give me more explication for the AndroMDA plugin installation?
Guest
 

Re: AndroMDA plugin installation

Postby [gw] Andreas Kanzlers » Tue Jun 29, 2004 12:40 pm

Hi,
For running the AndroMDA plugin you need to install
the AndroMDA framework. Please follow the instructions
on http://www.andromda.org

Kind regards,
Andreas Kanzlers
Andreas Kanzlers
[gw] Andreas Kanzlers
 
Posts: 195
Joined: Fri Jan 24, 2003 9:18 am

Re: AndroMDA plugin installation

Postby Guest » Fri Jul 30, 2004 11:12 am

I have always my trouble with this plug in.

I have an AndroMDA framework. It is Ok with the examples.

I have install the plugin but i don't see any changement on Poseidon.

What is the changement with the plugin on Pos?idon?
Would you like to help me?

The read me it is not sufficient, especially for windows.

With a licence that we pay 99?, we want a little help please.
Guest
 

Re: AndroMDA plugin installation

Postby [gw] Matthias Köster » Thu Aug 05, 2004 5:37 pm

Hi,

Please add ant.jar and AndroMDA.jar to Poseidons classpath. If you are using the installer version, you can do that by adding these jars to the lax.class.path in your Poseidon_for_UML.lax file. Otherwise you can set it by modifying your poseidon.bat file. And you have to copy the androMDA.xml and androMDA.dtd file to your users Document and Settings folder. After starting Poseidon you should now see a new property tab "AndroMDA" and a new AndroMDA menu entry in the generation menu.

Regards,
Matthias K?ster, Gentleware AG


Message was edited by: [gw] Matthias K?ster
Matthias Köster [Gentleware]
[gw] Matthias Köster
 
Posts: 196
Joined: Sat Jan 18, 2003 10:00 am

Re: AndroMDA plugin installation

Postby Guest » Thu Aug 12, 2004 6:10 pm

Hi,

I did all this but I cannot generate anything.. ant doesn't seem to run (at least there's no output in the ant tab of andromda).
I took the .zargo model generated by the andromda sample for hibernate.
I can manually build it from the command line, but nothing happens from poseidon. I modified the build.xml file as set in the readme, and nothing changes.

I'm using poseidon PE 2.5, ant 1.6.2 and andromda 2.1.2

a tutorial or a help file (or at least some doc going further than the readme) on this plugin would be very useful

thanks in advance!

regards,

Raul
Guest
 

Re: AndroMDA plugin installation

Postby Guest » Thu Aug 12, 2004 7:27 pm

Hi again,

I tried changing the Ant version to 1.5.4 and now it does something more.. When I click on "run ant" in the generation menu I get a popup screen with the available targets. I click on and the output gives me a classnotdeffounderror and poseidon hangs
This happens when using the "basic" build.xml (reading the .zargo file from the src/uml folder). I attach the build.xml file as build.xml and a screenshot of the exception (I cannot copy and paste the text=

If I change the build.xml file to read the model from poseidon (as recomended in the AndroMDA plugin readme) I get a different error, but poseidon doesn't hang. here is the ant output:

file:C:/TEMP/test/build.xml:76: java.lang.NoClassDefFoundError: org/andromda/core/mdr/MDRepositoryFacade
at org.apache.tools.ant.IntrospectionHelper.setAttribute(IntrospectionHelper.java:435)
at org.apache.tools.ant.ProjectHelper.configure(ProjectHelper.java:306)
at org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:242)
at org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:211)
at org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:262)
at org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:211)
at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:124)
at org.apache.tools.ant.Task.perform(Task.java:340)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
at com.gentleware.andromda.ant.do.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: org/andromda/core/mdr/MDRepositoryFacade
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.apache.tools.ant.AntClassLoader.findBaseClass(AntClassLoader.java:1104)
at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:921)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.andromda.core.anttasks.RepositoryConfiguration.setClassname(RepositoryConfiguration.java:51)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tools.ant.IntrospectionHelper$5.set(IntrospectionHelper.java:711)
at org.apache.tools.ant.IntrospectionHelper.setAttribute(IntrospectionHelper.java:426)
... 13 more
--- Nested Exception ---
java.lang.NoClassDefFoundError: org/andromda/core/mdr/MDRepositoryFacade
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.apache.tools.ant.AntClassLoader.findBaseClass(AntClassLoader.java:1104)
at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:921)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.andromda.core.anttasks.RepositoryConfiguration.setClassname(RepositoryConfiguration.java:51)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tools.ant.IntrospectionHelper$5.set(IntrospectionHelper.java:711)
at org.apache.tools.ant.IntrospectionHelper.setAttribute(IntrospectionHelper.java:426)
at org.apache.tools.ant.ProjectHelper.configure(ProjectHelper.java:306)
at org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:242)
at org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:211)
at org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:262)
at org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:211)
at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:124)
at org.apache.tools.ant.Task.perform(Task.java:340)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
at com.gentleware.andromda.ant.do.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

BUILD FINISHED
Total time: 0 seconds


I attach this build.xml file as build2.xml

Once again, from the command line I can build the project perfectly.


I hope this extra information will help.

Regards,

Raul


PS: the attach files option doesn't work... I'll copy and paste the build.xml files here:

build.xml

<project name="andromda-hibernate-project-template" default="build">

<!-- Load user environment parameters -->
<!-- This should define the properties andromda-core.home and build.classpath -->
<property file="build.properties" />
<property name="andromda-core.home" location="${andromda.home}/andromda-core"/>
<property name="andromda-hibernate.home" location="${andromda.home}/cartridges/andromda-hibernate"/>
<property name="andromda-java.home" location="${andromda.home}/cartridges/andromda-java"/>

<property file="${andromda-core.home}/andromda-core.properties"/>
<property file="${andromda-core.home}/xdoclet.properties"/>
<property file="${andromda-hibernate.home}/andromda-hibernate.properties"/>
<property file="${andromda-java.home}/andromda-java.properties"/>

<!-- classpath for using AndroMDA to compile UML -->
<path id="andromda.classpath">
<pathelement location="${andromda-core.home}/andromda.jar"/>
<pathelement path="${andromda-core.classpath}"/>
<pathelement path="${andromda-hibernate.classpath}"/>
<pathelement path="${andromda-java.classpath}"/>
</path>

<!-- classpath for J2EE classes -->
<path id="j2ee.classpath">
<pathelement location="${jboss.home}/server/default/lib/jboss-j2ee.jar"/>
<pathelement location="${jboss.home}/server/default/lib/javax.servlet.jar"/>
</path>

<!-- Define our build class path -->
<path id="build.class.path">
<path refid="andromda.classpath"/>
<pathelement path="${xdoclet.classpath}"/>
<path refid="j2ee.classpath"/>
</path>


<!-- ============================================================= -->
<!-- Directory settings -->
<!-- ============================================================= -->


<!-- Physical source directories -->
<property name="src.appconfig.dir" value="src/xml" />
<property name="src.dir" value="src" />

<!-- Output directories for generators -->
<property name="andromda.generated.dir" value="${src.dir}/generated" />
<property name="andromda.manual.dir" value="${src.dir}/manual" />

<!-- Setup directory structure -->
<target name="init">
<tstamp/>
<mkdir dir="dist"/>
<mkdir dir="dist/predist"/>
<mkdir dir="dist/predist/source"/>

<mkdir dir="build"/>
<mkdir dir="build/earstage"/>
<mkdir dir="build/hibernatestage"/>
<mkdir dir="build/hibernateservice"/>
</target>

<!-- Remove directory structure structure -->
<target name="clean" description="Removes all generated files">
<delete includeEmptyDirs="true" quiet="true">
<fileset dir="dist"/>
<fileset dir="build"/>
<fileset dir="${andromda.generated.dir}"/>
</delete>
</target>

<!-- ============================================================= -->
<!-- Highlevel user tasks -->
<!-- ============================================================= -->

<target name="build" depends="init,buildjars,hibernate-schema"
description="Builds all jars and the database schema"/>

<target name="dist" depends="clean,build"
description="Builds distribution ZIP">
<copy todir="dist/predist" >
<fileset dir="build/" includes="*.ear" />
<fileset dir="build/" includes="hibernate-schema.txt" />
</copy>
<copy todir="dist/predist/source" >
<fileset dir=".">
<exclude name="**/generated/**" />
<exclude name="**/hibernate/**" /> <!-- FIXME: when hibernate runs! -->
<exclude name="**/build/**" />
<exclude name="**/dist/**" />
<exclude name="*.log" />
<exclude name="build.properties" />
</fileset>
</copy>
<zip zipfile="dist/andromda-hibernate-template.zip">
<fileset dir="dist/predist" includes="**/*" />
</zip>
</target>

<!--
"ant deploy" will deploy the *.ear file into JBoss's
default server configuration.
-->
<target name="deploy" depends="dist"
description="Deploys generated application ear in JBoss">
<copy todir="${jboss.home}/server/default/deploy" >
<fileset dir="build/" includes="andromda-hibernate-template.ear" />
</copy>
</target>

<!-- ============================================================= -->
<!-- Internal subtasks -->
<!-- ============================================================= -->

<target name="genjava" depends="init">
<taskdef name="andromda"
classname="org.andromda.core.anttasks.AndroMDAGenTask"
classpathref="andromda.classpath"
/>

<property name="model" value="jar:file:${basedir}/src/uml/blank-model.zargo!/blank-model.xmi"/>
<andromda basedir="."
modelURL="${model}"
lastModifiedCheck="true"
typeMappings="${andromda-core.home}/src/xml/TypeMapping.xml">

<userProperty name="foreignKeySuffix" value="_FK" />

<outlet cartridge="java" outlet="value-objects" dir="${andromda.generated.dir}" />

<outlet cartridge="hibernate" outlet="entities" dir="${andromda.generated.dir}" />
<outlet cartridge="hibernate" outlet="entity-impls" dir="${andromda.manual.dir}" />
<outlet cartridge="hibernate" outlet="session-beans" dir="${andromda.generated.dir}" />
<outlet cartridge="hibernate" outlet="session-impls" dir="${andromda.manual.dir}" />

</andromda>
</target>

<target name="rundoclets" depends="init,genjava">
<delete>
<fileset dir="build/hibernateservice" includes="**/*.hbm.xml" />
</delete>

<taskdef
name="hibernatedoclet"
classname="xdoclet.modules.hibernate.HibernateDocletTask"
classpathref="build.class.path"
/>

<hibernatedoclet destdir="build/hibernateservice">
<fileset dir="${andromda.generated.dir}">
<include name="**/*.java" />
</fileset>
<fileset dir="${andromda.manual.dir}">
<include name="**/*.java" />
</fileset>

<hibernate />

<jbossservice
destdir="build/hibernateservice/META-INF"
jndiname="java:/hibernate/SessionFactory"
servicename="AndroMDAHibernateSessionFactory"
dialect="cirrus.hibernate.sql.HSQLDialect"
datasource="java:/DefaultDS"
showSql="true"
/>
</hibernatedoclet>
<!--
hibernatedoclet has a bug under Windows: It generates
resource references in jboss-service.xml, using "\\"
instead of "/" as a package path separator.

Let's compensate for this using the following "replace" task.
-->
<replace file="build/hibernateservice/META-INF/jboss-service.xml" >
<replacetoken><![CDATA[\]]></replacetoken>
<replacevalue><![CDATA[/]]></replacevalue>
</replace>


<taskdef name="ejbdoclet"
classname="xdoclet.modules.ejb.EjbDocletTask"
classpathref="build.class.path"
/>

<ejbdoclet destdir="${andromda.generated.dir}"
ejbspec="2.0"
force="false">

<fileset dir="${andromda.generated.dir}">
<include name="**/*Bean.java" />
</fileset>

<utilobject/>

<remoteinterface/>
<homeinterface/>
<localinterface/>
<localhomeinterface/>

<deploymentdescriptor
destdir="build/hibernatestage/META-INF/"/>

<jboss version="3.0"
xmlencoding="UTF-8"
typemapping="Hypersonic SQL"
datasource="java:/DefaultDS"
destdir="build/hibernatestage/META-INF/"/>

</ejbdoclet>

<!--
XDoclet stores the *Bean classes into ejb-jar.xml
but the used andromda templates have created
subclasses *BeanImpl. Replace
the names in the deployment descriptor so that
everyone is happy.
-->
<replace file="build/hibernatestage/META-INF/ejb-jar.xml" >
<replacetoken><![CDATA[ServiceBean</ejb-class>]]></replacetoken>
<replacevalue><![CDATA[ServiceBeanImpl</ejb-class>]]></replacevalue>
</replace>

</target>

<!-- Compile all files, generated and hand-written -->
<target name="compile" depends="init,rundoclets">

<!-- Compile hibernate classes -->
<javac destdir="build/hibernatestage" includes="**/*.java"
includeAntRuntime="false">
<src path="${andromda.generated.dir}" />
<src path="${andromda.manual.dir}" />
<classpath refid="build.class.path"/>
</javac>

</target>


<!-- Create the archive structures on disk, first -->
<target name="copystages" depends="init,compile">
<!-- Copy the hibernate libraries -->
<copy todir="build/hibernateservice/lib/">
<fileset dir="${andromda-hibernate.home}/lib/" includes="hibernate.jar"/>
</copy>
<!-- Copy the hibernate libraries -->
<copy todir="build/hibernatestage/lib/">
<fileset dir="${andromda-hibernate.home}/lib/" includes="*.jar"/>
</copy>
</target>


<!-- Create the Hibernate sar, the Hibernate jar and the application EAR -->
<target name="buildjars" depends="copystages">
<delete>
<fileset dir="build/earstage" includes="**/*"/>
</delete>
<jar taskname="hibernate-sar" jarfile="build/earstage/andromda-hibernate-template.sar">
<fileset dir="build/hibernateservice/" includes="**/*"/>
</jar>
<jar taskname="hibernate-jar" jarfile="build/earstage/andromda-hibernate-template.jar">
<fileset dir="build/hibernatestage/" includes="**/*"/>
</jar>
<copy taskname="app-xml"
file="${src.appconfig.dir}/application-hibernate.xml"
tofile="build/earstage/META-INF/application.xml"/>
<!-- Put everything in build/earstage into the ear. -->
<jar taskname="app-ear" jarfile="build/andromda-hibernate-template.ear">
<fileset dir="build/earstage/" includes="**/*"/>
</jar>
</target>

<!-- Generate the SQL database schema from the hibernate mapping files -->
<target name="hibernate-schema" description="Generates database schema" depends="buildjars">
<path id="schema.classpath">
<path refid="build.class.path"/>
<pathelement location="build/earstage/andromda-hibernate-template.jar"/>
</path>

<fileset id="hibernate.mapping.files" dir="build/hibernateservice">
<include name="**/*.hbm.xml"/>
</fileset>

<pathconvert refid="hibernate.mapping.files" property="hibernate.mappings" pathsep=" "/>

<java classname="net.sf.hibernate.tool.hbm2ddl.SchemaExport" fork="true">
<arg value="--output=build/hibernate-schema-initialize.sql"/>
<arg value="--text"/>
<arg value="--quiet"/>
<arg line="${hibernate.mappings}"/>
<jvmarg value="-Dhibernate.dialect=net.sf.hibernate.dialect.HSQLDialect"/>
<classpath refid="schema.classpath" />
</java>

<copy file="build/hibernate-schema-initialize.sql"
tofile="build/hibernate-schema-reinitialize.sql"
/>

<replaceregexp file="build/hibernate-schema-initialize.sql"
match="^(alter table .* drop constraint|drop table)"
replace="-- SKIP \1"
flags="i"
byline="true"/>

<java classname="net.sf.hibernate.tool.hbm2ddl.SchemaExport" fork="true">
<arg value="--output=build/hibernate-schema-remove.sql"/>
<arg value="--text"/>
<arg value="--quiet"/>
<arg value="--drop"/>
<arg line="${hibernate.mappings}"/>
<jvmarg value="-Dhibernate.dialect=net.sf.hibernate.dialect.HSQLDialect"/>
<classpath refid="schema.classpath" />
</java>
</target>

</project>



build2.xml

<project name="andromda-hibernate-project-template" default="genjava">

<!-- Load user environment parameters -->
<!-- This should define the properties andromda-core.home and build.classpath -->
<property file="build.properties" />
<property name="andromda-core.home" location="${andromda.home}/andromda-core"/>
<property name="andromda-hibernate.home" location="${andromda.home}/cartridges/andromda-hibernate"/>
<property name="andromda-java.home" location="${andromda.home}/cartridges/andromda-java"/>

<property file="${andromda-core.home}/andromda-core.properties"/>
<property file="${andromda-core.home}/xdoclet.properties"/>
<property file="${andromda-hibernate.home}/andromda-hibernate.properties"/>
<property file="${andromda-java.home}/andromda-java.properties"/>

<!-- classpath for using AndroMDA to compile UML -->
<path id="andromda.classpath">
<pathelement location="${andromda-core.home}/andromda.jar"/>
<pathelement path="${andromda-core.classpath}"/>
<pathelement path="${andromda-hibernate.classpath}"/>
<pathelement path="${andromda-java.classpath}"/>
</path>

<!-- classpath for J2EE classes -->
<path id="j2ee.classpath">
<pathelement location="${jboss.home}/server/default/lib/jboss-j2ee.jar"/>
<pathelement location="${jboss.home}/server/default/lib/javax.servlet.jar"/>
</path>

<!-- Define our build class path -->
<path id="build.class.path">
<path refid="andromda.classpath"/>
<pathelement path="${xdoclet.classpath}"/>
<path refid="j2ee.classpath"/>
</path>


<!-- ============================================================= -->
<!-- Directory settings -->
<!-- ============================================================= -->


<!-- Physical source directories -->
<property name="src.appconfig.dir" value="src/xml" />
<property name="src.dir" value="src" />

<!-- Output directories for generators -->
<property name="andromda.generated.dir" value="${src.dir}/generated" />
<property name="andromda.manual.dir" value="${src.dir}/manual" />

<!-- Setup directory structure -->
<target name="init">
<tstamp/>
<mkdir dir="dist"/>
<mkdir dir="dist/predist"/>
<mkdir dir="dist/predist/source"/>

<mkdir dir="build"/>
<mkdir dir="build/earstage"/>
<mkdir dir="build/hibernatestage"/>
<mkdir dir="build/hibernateservice"/>
</target>


<!-- ============================================================= -->
<!-- Internal subtasks -->
<!-- ============================================================= -->

<target name="genjava" depends="init">
<taskdef name="andromda"
classname="org.andromda.core.anttasks.AndroMDAGenTask"
classpathref="andromda.classpath"
/>
<andromda
modelURL="http://poseidon"
lastModifiedCheck="false"
typeMappings="${andromda-core.home}/src/xml/TypeMapping.xml">
<repository classname="com.gentleware.andromda.ant.AndroMDARepositoryFacade"/>


<userProperty name="foreignKeySuffix" value="_FK" />

<outlet cartridge="java" outlet="value-objects" dir="${andromda.generated.dir}" />

<outlet cartridge="hibernate" outlet="entities" dir="${andromda.generated.dir}" />
<outlet cartridge="hibernate" outlet="entity-impls" dir="${andromda.manual.dir}" />
<outlet cartridge="hibernate" outlet="session-beans" dir="${andromda.generated.dir}" />
<outlet cartridge="hibernate" outlet="session-impls" dir="${andromda.manual.dir}" />

</andromda>
</target>

<target name="rundoclets" depends="init,genjava">
<delete>
<fileset dir="build/hibernateservice" includes="**/*.hbm.xml" />
</delete>

<taskdef
name="hibernatedoclet"
classname="xdoclet.modules.hibernate.HibernateDocletTask"
classpathref="build.class.path"
/>

<hibernatedoclet destdir="build/hibernateservice">
<fileset dir="${andromda.generated.dir}">
<include name="**/*.java" />
</fileset>
<fileset dir="${andromda.manual.dir}">
<include name="**/*.java" />
</fileset>

<hibernate />

<jbossservice
destdir="build/hibernateservice/META-INF"
jndiname="java:/hibernate/SessionFactory"
servicename="AndroMDAHibernateSessionFactory"
dialect="cirrus.hibernate.sql.HSQLDialect"
datasource="java:/DefaultDS"
showSql="true"
/>
</hibernatedoclet>
<!--
hibernatedoclet has a bug under Windows: It generates
resource references in jboss-service.xml, using "\\"
instead of "/" as a package path separator.

Let's compensate for this using the following "replace" task.
-->
<replace file="build/hibernateservice/META-INF/jboss-service.xml" >
<replacetoken><![CDATA[\]]></replacetoken>
<replacevalue><![CDATA[/]]></replacevalue>
</replace>


<taskdef name="ejbdoclet"
classname="xdoclet.modules.ejb.EjbDocletTask"
classpathref="build.class.path"
/>

<ejbdoclet destdir="${andromda.generated.dir}"
ejbspec="2.0"
force="false">

<fileset dir="${andromda.generated.dir}">
<include name="**/*Bean.java" />
</fileset>

<utilobject/>

<remoteinterface/>
<homeinterface/>
<localinterface/>
<localhomeinterface/>

<deploymentdescriptor
destdir="build/hibernatestage/META-INF/"/>

<jboss version="3.0"
xmlencoding="UTF-8"
typemapping="Hypersonic SQL"
datasource="java:/DefaultDS"
destdir="build/hibernatestage/META-INF/"/>

</ejbdoclet>

<!--
XDoclet stores the *Bean classes into ejb-jar.xml
but the used andromda templates have created
subclasses *BeanImpl. Replace
the names in the deployment descriptor so that
everyone is happy.
-->
<replace file="build/hibernatestage/META-INF/ejb-jar.xml" >
<replacetoken><![CDATA[ServiceBean</ejb-class>]]></replacetoken>
<replacevalue><![CDATA[ServiceBeanImpl</ejb-class>]]></replacevalue>
</replace>

</target>

</project>




error:
java.lang.IllegalArgumentException: interface org.andromda.core.simpleuml.UMLClassifier is not visible from class loader
Guest
 

Re: AndroMDA plugin installation

Postby [gw] Matthias Köster » Fri Aug 13, 2004 3:22 pm

Hi Raul,

Currently i don't understand if the exception is the one that is thrown if you are using our AndroMDA plugin or if you run ant from the command line. To me it looks like the latter case. Which version of AndroMDA are you sing?

Regards,
Matthias K?ster, Gentleware AG
Matthias Köster [Gentleware]
[gw] Matthias Köster
 
Posts: 196
Joined: Sat Jan 18, 2003 10:00 am

Re: AndroMDA plugin installation

Postby Guest » Fri Aug 13, 2004 3:34 pm

Hi Matthias,

The exceptions I get them only when running the AndroMDA plugin. When I run ant from the command line the first case (the one reading the .zargo file) works ok.. the second one, as expected doesn't work since it doesn't have access to poseidon's memory.

I'm using AndorMDA 2.1.2 (the latest stable version)

Regards,

Raul
Guest
 

Re: AndroMDA plugin installation

Postby [gw] Matthias Köster » Wed Aug 25, 2004 9:21 am

Hi Raul,

I tried
to reproduce your problem and to me it looks like your startup script
doesn't contain AndroMDA.jar on the CLASSPATH. Can you perhaps send me
your modified poseidon startup script, so that i can try to reproduce
the problem? Which version of Poseidon are you using? I'm using Poseidon
PE 2.5 under linux with the attached startup script. With these
modification i can run your build2.xml file with my own model.

Regards,
Matthias K?ster

Answer from Raul:
Hi Matthias,

I added all the andromda jars to the startup classpath and it did work (I
had to add the cartridges jars, and the ant/optional.jar too)
Matthias Köster [Gentleware]
[gw] Matthias Köster
 
Posts: 196
Joined: Sat Jan 18, 2003 10:00 am


Return to Plug-Ins

Who is online

Users browsing this forum: No registered users and 1 guest

cron