Forge Persistence Seam Plugin Problem
by Terson Junior
I followed the steps in the video "Forge Persistence Seam Plugin" but
whenever I put @Inject EntityManager entityManager get this error message.
*org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied
dependencies for type [EntityManager] with qualifiers [@Default] at
injection point [[field] @Inject br.com.agregou.Controlador.entityManager],
**ERROR***
I'm using Forge *1.0.0.CR2* and *org.jboss.seam.persistence:
seam-3.1.0.Final*
I've tried running in Jboss 7.1.0, 7.0.2 and 6.1.0 but in none of the
servers worked;
Using @PersistenceContext always work. I followed step by step the video
and have searched the internet for the solution but could not solve the
problem.
I'm trying to migrate from Seam 2.2.2 to Seam 3.1.0 but stopped with this
problem.
Someone help me?
Thanks in advance
Terson - trigaud(a)gmail.com
Sorry for bad english, google helped me to translate :-)
12 years, 10 months
CR2 and Hibernate plug-in
by Paul Keogh
Hi,
Tried installing the Hibernate plug-in in CR2 and am seeing;
[biller] biller$ generate-entities --url jdbc:hsqldb:localhost:9001
--driver org.hsqldb.jdbcDriver --dialect
org.hibernate.dialect.MySQLDialect
? In which package you'd like to create this @Entity, or enter for
default: [ie.seamlesssoftware.biller.model]
***ERROR*** [generate-entities] org/slf4j/impl/StaticLoggerBinder
[biller] biller$ generate-entities --url jdbc:hsqldb:localhost:9001
--driver org.hsqldb.jdbcDriver --dialect
org.hibernate.dialect.MySQLDialect
? In which package you'd like to create this @Entity, or enter for
default: [ie.seamlesssoftware.biller.model]
***ERROR*** [generate-entities] Could not initialize class
org.hibernate.cfg.JDBCMetaDataConfiguration
[biller] biller$
I recall that this was a problem from a while back ?
I'm happy to try and have a go at resolving this -any pointers in the
right direction gratefully accepted.
Also, I can't find the error messages in the runtime log - should they
be logged here ?
12 years, 10 months
Forge command that create enums
by Ricardo Martinelli Oliveira
Hi guys,
Do we have any command in Forge which creates enums? I'm using persistence
and entity commands and sometimes I need to create an @Enumerated attribute
for my entities, so the same question here.
Regards,
Ricardo
12 years, 10 months
forge and jboss 6
by Kelly Goedert
Hi,
does forge support jboss 6.1.0.final? Reading the docs on the get
started part there is "Assuming you have already completed the steps
to install Forge, the first thing you'll need to do is download and
install JBoss Application Server 6.0 or 7.0. This server will host
your application once it is built.". But in one of my previous posts
on the list, by the answer I got, I get the impression it doesn't.
Thanks
Kelly
12 years, 10 months
support for nested classes.
by Rudy De Busscher
Hi All,
Seems that nested classes aren't handled correctly by forge.
If you have a java source file like this
public class CustomProjectStageHolder implements ProjectStageHolder
{
public static final class CustomProjectStage extends ProjectStage
{
private static final long serialVersionUID = 1029094387976167179L;
}
public static final CustomProjectStage CustomProjectStage = new
CustomProjectStage();
}
And consider then following statements:
JavaResource javaResource = factory.getResourceFrom(new
File("/path/to/file/RudyHolder.java")).reify(JavaResource.class);
javaResource.getJavaSource().getQualifiedName();
The javaResource is indeed pointing to the file, you can verify with
javaResource.getFullyQualifiedName()
But if you ask for the javaSource, as in the second statement, you get
the nested class, CustomProjectStage in our example.
Relation between JavaResource and JavaSource indicates that multiple
classes per java file wasn't considered. And isn't common for entity
classes etc that have to be handled by Forge.
So when there are no plans in supporting this in Forge, isn't it logic
to return the main class, instead of the nested class?
Thx for the clarification.
Regards
Rudy
--
Rudy De Busscher
http://www.c4j.be
12 years, 10 months
Get a list of all classes extending a specific class
by Rudy De Busscher
Hi all,
For a plugin, I could use some functionality that scans the source
directories and report me all the java classes that extend a certain class.
But I couldn't find anything for that in Forge.
Is there some way of getting the parent class ? (or do I have the 'parse'
the source myself (find extend clause and see what come next))
Thx
Best regards
--
Rudy De Busscher
http://www.c4j.be
12 years, 10 months