Hi Max<br><br>Another attempt to generate a seam application from existing entities is made today.<br><br>Status:<br> - OS: Mac os x: 10.4.10<br> - Installed eclipse:<br>Version: 3.3.0<br>Build id: M20070921-1145<br> - Added nightly build of the JBoss Tools plugins and features by downloading and copying files from plugins and features folders under eclipse
<br> - Did set up the database connection and managed to be able to:<br> - Create a new seam web project<br> - Generate entities from database (With same result as usual where no relationships between entities are discovered)
<br> - create a new seam web project<br> - copied existing set of entities (Pojo's) with @Entity annotations from running application.<br> - Tryed the Generate Entities from existing entities wizard. - Nothing happens when I select that.
<br><br>Now it's time to generate the CRUD interface from existing entities, but when I select that choice nothing happens.<br><br>Is there a way to see what is going on behind the scenes? Some kind of logging mechanism.
<br><br>Am I doing something wrong?<br>Should I register the entities added to the project?<br><br>Thanks<br><br>Morten Matras<br><a href="http://mortenmatras.blogspot.com">http://mortenmatras.blogspot.com</a><br><br><br>
<br><div><span class="gmail_quote">2007/11/12, Morten Matras <<a href="mailto:morten.matras@gmail.com">morten.matras@gmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I removed the provided mysql connection and managed to create a seam-project.<div><span class="e" id="q_11633d992ba83a7d_1"><br><br><div><span class="gmail_quote">2007/11/12, Max Rydahl Andersen <<a href="mailto:max.andersen@redhat.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
max.andersen@redhat.com</a>>:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Mon, 12 Nov 2007 13:15:10 +0100, Morten Matras<br><<a href="mailto:morten.matras@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
morten.matras@gmail.com</a>> wrote:<br><br>> Hi Max<br>><br>> I can't set up a database connection using the wizard:<br>><br>> "Unable to locate jar/zip in file system as specified by the driver
<br>> definition: mysql-connector-java-5.1.0-bin.jar"<br><br>eh - yes, that is just a default value. You are free to edit the jar<br>name/location to whatever you have on your drive.<br>><br>> I can't download any
mysql-connector-java-5.1.0-bin.jar. What I can find<br>> is:<br>> mysql-connector-java-5.1.5-bin.jar and<br>> mysql-connector-java-5.0.8-bin.jar.<br><br>> When I select one of the above on my machine I get the error above.
<br><br>Did you remove the 5.1.0-bin.jar entry in the dialog ?<br><br>/max<br><br>> Thanks<br>><br>> Morten<br>><br>><br>> 2007/11/12, Max Rydahl Andersen <<a href="mailto:max.andersen@redhat.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
max.andersen@redhat.com
</a>>:<br>>><br>>> On Mon, 12 Nov 2007 12:45:18 +0100, Morten Matras<br>>> <<a href="mailto:morten.matras@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">morten.matras@gmail.com
</a>> wrote:<br>>><br>>> > I found it in > File > New ...
<br>>> ><br>>> > Reached the select seam runtime and selected my Seam 2.0, where it<br>>> seams<br>>> > like I have to select the lib folder of the seam folder.<br>>><br>>> No, you should select the root of Seam 2...
<br>>><br>>> /max<br>>><br>>> > But I'm getting closer... :-)<br>>> ><br>>> > Morten<br>>> ><br>>> > 2007/11/12, Max Rydahl Andersen <<a href="mailto:max.andersen@redhat.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
max.andersen@redhat.com</a>>:<br>>> >><br>>> >> > So I do the following:<br>>> >> ><br>>> >> > - Download JBoss Tools:<br>>> >> ><br>>> >>
<br>>> <a href="http://download.jboss.org/jbosstools/builds/nightly/200711111612-nightly/all/JBossTools-200711111612-nightly-ALL-macosx-carbon.zip" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://download.jboss.org/jbosstools/builds/nightly/200711111612-nightly/all/JBossTools-200711111612-nightly-ALL-macosx-carbon.zip
</a><br>>> >> > - unzip it<br>>> >> > - copy the content of /plugins to the /plugins folder of the<br>>> running<br>>> >> > eclipse<br>>> >> > - copy the content of /features to the /features folder of the
<br>>> >> running<br>>> >> > eclipse<br>>> >><br>>> >> yes.<br>>> >><br>>> >> > Start eclipse from a shell with ./eclipse -clean<br>>> >> > Go to > Run > Seam > Generate Entities wizard that should a new
<br>>> option<br>>> >> > once<br>>> >> > the new features and plugins have been installed?<br>>> >><br>>> >> No - the Run option is<br>>> depcrecated/removed/dead/obsolete/useless/etc...
<br>>> >><br>>> >> You go to the wizards, Ctrl+N or File > New and selected Seam<br>>> Generate<br>>> >> Entities<br>>> >><br>>> >> /max<br>>> >>
<br>>> >> > Thanks<br>>> >> ><br>>> >> > Venlig hilsen<br>>> >> ><br>>> >> > Morten<br>>> >> ><br>>> >> > 2007/11/12, Max Rydahl Andersen <
<a href="mailto:max.andersen@redhat.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">max.andersen@redhat.com</a>>:<br>>> >> >><br>>> >> >> Hej Morten,<br>
>> >> >><br>>> >> >> Not many post to this mailinglist - the forums are the preferred
<br>>> >> >> location<br>>> >> >> ;)<br>>> >> >><br>>> >> >> anyhow...<br>>> >> >><br>>> >> >><br>>> >> >> > I've installed JBoss tools on top of Eclipse Europa for J22
<br>>> >> developers<br>>> >> >> > on my<br>>> >> >> > mac os x. (See how on <a href="http://mortenmatras.blogspot.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://mortenmatras.blogspot.com</a>), it was<br>
>> >> quite<br>>> >> >> > easy.<br>>> >> >><br>>> >> >> Yes, that is how you install the latest releases.<br>>> >> >><br>>> >> >> > Now I would like to generate the seam based CRUD for existing
<br>>> EJB's<br>>> >> >> using<br>>> >> >> > this toolset and was told that this could be done in eclipse by<br>>> >> going<br>>> >> >> to:<br>
>> >> >> ><br>>> >> >> >> run > Seam gen > generate entities<br>>> >> >><br>>> >> >> Nah, I don't think I said that - I said run the Seam Generate
<br>>> >> Entities<br>>> >> >> *wizard*.<br>>> >> >><br>>> >> >> The Run option is our old hack to use the seam-gen ant tasks<br>>> directly<br>>> >> >> until we could redo these things properly in eclipse.
<br>>> >> >><br>>> >> >> > But I don't get the chance of setting the EJB's to get the CRUD<br>>> >> >> > generated.<br>>> >> >><br>>> >> >> No, because this is just the ant scripts.
<br>>> >> >><br>>> >> >> > It simply runs the ant script installed to generate the CRUD for<br>>> >> the<br>>> >> >> > tables<br>>> >> >> > in the underlying database.
<br>>> >> >><br>>> >> >> yup.<br>>> >> >><br>>> >> >> > Please point me where to start if I would like to get the<br>>> >> >> "generate-ui"
<br>>> >> >> > for<br>>> >> >> > existing EJB entities working in this toolset.<br>>> >> >><br>>> >> >> Run Seam Generate Entities *wizard*, not sure if that is part of
<br>>> >> beta2,<br>>> >> >> but otherwise the best thing you can do is to use the nightly<br>>> builds:<br>>> >> >><br>>> >><br>>> <a href="http://wiki.jboss.org/wiki/Wiki.jsp?page=InstallingJBossToolsNightlyBuilds" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://wiki.jboss.org/wiki/Wiki.jsp?page=InstallingJBossToolsNightlyBuilds</a><br>>> >> >><br>>> >> >> > As I understood it a patch to the ant-script has been made but<br>>> >> never
<br>>> >> >> > really<br>>> >> >> > implemented in the releases of seam-gen. How do I add this patch<br>>> so<br>>> >> >> that<br>>> >> >> > I
<br>>> >> >> > can start using the tool?<br>>> >> >><br>>> >> >> It is not a patch to the ant tasks since we call hibernate tools<br>>> >> >> directly
<br>>> >> >> to avoid the overhead of Ant and to allow better customization in<br>>> the<br>>> >> >> IDE.<br>>> >> >> We use the same templates though!<br>>> >> >>
<br>>> >> >> > Or is it implemented in JBoss Tools but requires a special<br>>> >> jboss-seam<br>>> >> >> > release underneeth?<br>>> >> >><br>>> >> >> For Seam
1.2 you need the EAP release to get it working with JBoss<br>>> >> 4.2<br>>> >> >> For Seam 2 you can just use the community release.<br>>> >> >><br>>> >> >> > Or is it just me who can't find it?
<br>>> >> >><br>>> >> >> See above ;)<br>>> >> >><br>>> >> >> /max<br>>> >> >><br>>> >> ><br>>> >> >
<br>
>> >> ><br>>> >><br>>> >><br>>> >><br>>> >> --<br>>> >> --<br>>> >> Max Rydahl Andersen<br>>> >> callto://max.rydahl.andersen
<br>>> >><br>>> >> Hibernate<br>>> >> <a href="mailto:max@hibernate.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">max@hibernate.org</a><br>>> >>
<a href="http://hibernate.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://hibernate.org</a><br>>> >>
<br>>> >> JBoss a division of Red Hat<br>>> >> <a href="mailto:max.andersen@jboss.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">max.andersen@jboss.com</a><br>>> >>
<br>>> ><br>>> ><br>>> ><br>>>
<br>>><br>>><br>>> --<br>>> --<br>>> Max Rydahl Andersen<br>>> callto://max.rydahl.andersen<br>>><br>>> Hibernate<br>>> <a href="mailto:max@hibernate.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
max@hibernate.org
</a><br>>> <a href="http://hibernate.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://hibernate.org</a><br>>><br>>> JBoss a division of Red Hat<br>>> <a href="mailto:max.andersen@jboss.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
max.andersen@jboss.com</a><br>>><br>>
<br>><br>><br><br><br><br>--<br>--<br>Max Rydahl Andersen<br>callto://max.rydahl.andersen<br><br>Hibernate<br><a href="mailto:max@hibernate.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
max@hibernate.org</a><br><a href="http://hibernate.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://hibernate.org
</a><br><br>JBoss a division of Red Hat<br><a href="mailto:max.andersen@jboss.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">max.andersen@jboss.com</a><br></blockquote></div><br><br clear="all">
<br></span></div><div><span class="e" id="q_11633d992ba83a7d_2">-- <br> Morten Matras<br> Udviklingschef<br> GAMP media og Blob Communication ApS
<br> Vindegade 99-103<br> 5000 Odense C<br> Tlf: 61711103<br> E: <a href="mailto:morten@gampmedia.dk" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">morten@gampmedia.dk</a><br><br> T: 76 654321
<br> W: <a href="http://www.blobcom.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">www.blobcom.com</a><br> E:
<a href="mailto:morten@blobcom.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">morten@blobcom.com</a>
</span></div></blockquote></div><br><br clear="all"><br>-- <br> Morten Matras<br> Udviklingschef<br> GAMP media og Blob Communication ApS<br> Vindegade 99-103<br> 5000 Odense C<br> Tlf: 61711103<br> E: <a href="mailto:morten@gampmedia.dk">
morten@gampmedia.dk</a><br><br> T: 76 654321<br> W: <a href="http://www.blobcom.com">www.blobcom.com</a><br> E: <a href="mailto:morten@blobcom.com">morten@blobcom.com</a>