-
15. Re: Method not found: isJndiName
hurzeler Feb 17, 2006 4:57 AM (in response to mtuckah)Thanks Thomas and smirgl1. I will get the nightly builds first and see how I go. If this works I will let you know.
I also noticed that when you create the app for postgres the persistence.properties do not get changed appropriatelly i.e.
hibernate.connection.datasource=java:/mhlDS
hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
I do not know if that is an issue yet. I can of course change it manually. -
16. Re: Method not found: isJndiName
maxandersen Feb 17, 2006 5:03 AM (in response to mtuckah)report the dialect issue in jira
-
17. Re: Method not found: isJndiName
smirgla1 Feb 17, 2006 6:18 AM (in response to mtuckah)"thomas.heute@jboss.com" wrote:
"hurzeler" wrote:
Hibernate 3.1.0 beta4
You need the nightly build of Hibernate Tools or Eclipse IDE, same for smirgla1
http://download.jboss.org/jbosside/builds/nightly/
As I already said:
*** I do have a HBTools nightly from 10.Feb.
And I just installed JBossIDE-200602131029-nightly-ALL.zip
The same problem occurs. seam.properties is correct.
I mean, you can just try the same think on the clean install and follow the direction "as is" in wiki's
SeamHBTools.swf.
I don't think there is a point in dl any other nightly's, hb, ide, whatever because it just does not "seam" to work as described without what I have previously said.
Thanks for the effort and help. -
18. Re: Method not found: isJndiName
theute Feb 17, 2006 7:02 AM (in response to mtuckah)"smirgla1" wrote:
I use 4.04RC1, JBossIDE 1.5, Seam nightly 10.Feb.2006.
[...]
# seam.properties
org.jboss.seam.core.init.managedPersistenceContexts entityManager
entityManager.jndiName java:/EntityManager
#org.jboss.seam.core.manager.conversationTimeout 30000
org.jboss.seam.core.init.jndiPattern seamapp/#{ejbName}/local
Could you just trust me ? JBossIDE 1.5 does not have the latest Hibernate Tools.
With the latest HB Tools from CVS you would not have: "entityManager.jndiName java:/EntityManager"
Since i need to prove it, here is diff of the template that generates seam.properties:
http://cvs.sourceforge.net/viewcvs.py/hibernate/HibernateExt/tools/src/templates/seam/seam.properties.ftl?r1=text&tr1=1.2&r2=text&tr2=1.3&diff_format=h
It did not change since Feb 7
I just spend even more time and downloaded HibernateTools-3.1.0.200602100930-nightly.zip
Extracted hibernate-tools.jar, searched for seam.properties.ftl no magical stuff, the expected template is there.
Obviously you are doing something wrong, i am willing to help you but please check what you are doing -
19. Re: Method not found: isJndiName
hurzeler Feb 17, 2006 7:13 AM (in response to mtuckah)Hello again,
I followed Thomas's suggestion and was successful with JBossIDE-200602131029-nightly-ALL.
Of course I still encountered:
Missing value() for @DataModelSelection with multiple @DataModels
But at was easily fixed (see other threads)
I had also to edit the presistence.properties manually to get the right dialect for Postgres.
Otherwise I am impressed. I have never seen any other tool to create a CRUD that fast. Very, very useful.
Thanks for all your efforts!!
Cheers Bernie -
20. Re: Method not found: isJndiName
theute Feb 17, 2006 7:27 AM (in response to mtuckah)Thank you Bernie and thanks Max for building the tool :)
-
21. Re: Method not found: isJndiName
smirgla1 Feb 17, 2006 9:03 AM (in response to mtuckah)I'll try reinstalling a clean eclipse and plugins.
-
22. Re: Method not found: isJndiName
smirgla1 Feb 17, 2006 9:22 AM (in response to mtuckah)yeah, that solved that part, so i managed to start the app w/o any changes, just following the instructions.
okay, now one thing does not work though for whatever the reason, but i'll try fixing this myself before I open a new thread:
ERROR [SchemaExport] Unsuccessful: create table seam1.seam1 (id integer not null, name varchar(20), primary key (id), unique (id))
15:16:40,796schema name: SEAM1 in statement [create table seam1.seam1]
Thank you all once again, and wish you best with Seam - seams promising. -
23. Re: Method not found: isJndiName
scotttam Mar 8, 2006 7:00 PM (in response to mtuckah)Should the JBoss IDE 1.5.1.GA solve the problem or will only the nightly builds?
-
24. Re: Method not found: isJndiName
max522over Mar 10, 2006 6:24 PM (in response to mtuckah)I'm getting this problem, so i downloaded 1.5.1 GA and it did not fix my problem. I'm downloading the nightly build of the hibernate tools. I hope that fixes it.
-
25. Re: Method not found: isJndiName
max522over Mar 13, 2006 3:43 AM (in response to mtuckah)I did finally get this to work with the nightly build.
I finally discovered that I had to go in eclipse under help->software updates -> manage configuration and change each jboss product to use the nightly build by hand. that got me building, deploying and running. -
26. Re: Method not found: isJndiName
simonxx Apr 7, 2006 7:31 AM (in response to mtuckah)I have the same problem
when I use HB 3.1.0 beta4 code generating is ok but when I try to deploy I
have "Method not found: isJndiName exception"
when I use HB nightly version i heve
exception while generating code org.hibernate.console.HibernateConsoleRuntimeException: Could not create or find with one argument delegate constructor
java.lang.ClassNotFoundException:
java.lang.ClassNotFoundException:
Has anybody this problem and could help me?, I try four'th day to do this tutorial. -
27. Re: Method not found: isJndiName
simonxx Apr 7, 2006 11:02 AM (in response to mtuckah)ok I've solved this problem. Solution is to use corect nightly version of tools it means JBossIDE-200604061020-nightly-ALL.zip
-
28. Re: Method not found: isJndiName
mirko27 Apr 7, 2006 11:56 AM (in response to mtuckah)Why do you update all JbossIDE?
I took just nightly hibernate tools and mine works correctly. -
29. Re: Method not found: isJndiName
bujordan Apr 14, 2006 6:57 PM (in response to mtuckah)Ok, maybe I'm just not getting something here- I'm trying to do a simple reverse engineer/code generate as shown in the flash demo like others on this post. I originally got the Method not found: isJndiName error, so I tried updating to the nightly builds as suggested. Now, I get the following error when trying to generate the code:
org.hibernate.tool.hbm2x.ExporterException: Error while processing template seam/find.jsp.ftl freemarker.core.InvalidReferenceException: Expression field.value.typeName is undefined on line 35, column 6 in seam/find.jsp.ftl. freemarker.core.InvalidReferenceException: Expression field.value.typeName is undefined on line 35, column 6 in seam/find.jsp.ftl.
Here's what I've tried (I downloaded, installed, deactivated old and activated new for each nightly listed below in eclipse 3.1.2 using the Help > Manage Configuration tool then doing a "Replace with Another Version")
HibernateTools-3.1.0.200603231613-nightly.zip
HibernateTools-3.1.0.200604061020-nightly.zip
HibernateTools-3.1.0.200604141131-nightly.zip
Figuring maybe I had some sort of conflict or Eclipse wasn't updating properly (the above described method should work for this purpose, no?), I finally unzipped a brand spanking new version of eclipse 3.1.2, and installed *ONLY* JBossIDE-200604061020-nightly-ALL.zip as suggested and which several others had previously posted they had gotten working. Still get the same error, and I'm pretty sure I'm following the flash demo exactly.
I also tried generating code with and without the "Generate EJB3 Annotations" checked, and same result either way.
Not that it should make a difference, but I'm using PostgreSQL- it seems there might be an issue with incorrect values in the persistence.properties file, but now I can't even get that far...
Any help or pointers would be appreciated, thanks in advance