hibernate-tools plugin
by Max Schwaab
Hey there,
I'm new to forge and want to try the database reverse engineering.
When I try to use the hibernate-tools plugin, I get log4J errors like:
log4j:ERROR A "org.apache.log4j.xml.DOMConfigurator" object is not
assignable to
a "org.apache.log4j.spi.Configurator" variable.
log4j:ERROR The class "org.apache.log4j.spi.Configurator" was loaded by
log4j:ERROR [ModuleClassLoader for Module "org.jboss.forge:main" from
local modu
le loader @510e39 (roots:
C:\forge\forge-1.0.0.Beta3\modules,C:\Users\Max\.forge
\plugins)] whereas object of type
log4j:ERROR "org.apache.log4j.xml.DOMConfigurator" was loaded by
[ModuleClassLoa
der for Module
"org.jboss.hibernate.forge.hibernate-tools-plugin.dependencies:1.
0.0-SNAPSHOT-d4f52737-8c8e-47d5-9113-97edf57516c4" from local module
loader @510
e39 (roots:
C:\forge\forge-1.0.0.Beta3\modules,C:\Users\Max\.forge\plugins)].
log4j:ERROR Could not instantiate configurator
[org.apache.log4j.xml.DOMConfigur
ator].
log4j:WARN No appenders could be found for logger (org.jboss.weld.Version).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
more in
fo.
When I try to use the generate-entities command I get errors too.
Sometimes a slf4J error like:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
further detail
s.
***ERROR*** [generate-entities] org/slf4j/impl/StaticLoggerBinder
And sometimes a JDBCMetaDataConfguration error like:
***ERROR*** [generate-entities] Could not initialize class
org.hibernate.cfg.JDB
CMetaDataConfiguration
I looked around on the internet and found a remark from Jethro with the
same problem.
(http://lists.jboss.org/pipermail/forge-users/2011-October/000079.html)
I'm using the latest beta3 version of forge and the
hibernate-tools-plugin from github (guess its the latest version).
Is there some work in progress or did I something wrong with the
configuration or something?
Would be nice to get this feature working..
Best regards
Max
12 years, 11 months
(no subject)
by Abdullah Shaikh
forge creates html status code files as .xhtml (e.g. 404.xhtml) but
creates a .jsf (e.g. /404.jsf) entry in web.xml
-Abdullah
12 years, 11 months
Testing A new plugin that depends on ServletFacet
by Rudy De Busscher
Hi all,
I'm trying to develop a new Forge plugin. I created a new facet and used
the @RequiresFacet annotation and would like to test it.
But since the implementation of those java EE facets are in the jar
javaee-impl, it doesn't seems to get picked up by Arquillian.
Anyone an idea how I can proceed?
Thx
@Alias("xxx")
@RequiresFacet({DependencyFacet.class, ServletFacet.class,
WebResourceFacet.class})
public class XxxFacet extends BaseFacet {
}
public class XxxPluginTest extends AbstractShellTest {
@Deployment
public static JavaArchive getDeployment() {
JavaArchive archive =
AbstractShellTest.getDeployment().addPackages(true,
PrimefacesPlugin.class.getPackage());
return archive;
}
@Test
public void testCheckXxxFacet() throws Exception {
Project p = getProject();
Assert.assertNotNull(p);
}
}
Results in the following stacktrace
org.jboss.forge.project.facets.FacetNotFoundException: The requested Facet
of type [org.jboss.forge.spec.javaee.ServletFacet] could not be loaded.
at
org.jboss.forge.project.services.FacetFactory.getFacet(FacetFactory.java:87)
at
org.jboss.forge.project.services.ProjectFactory.registerSingleFacet(ProjectFactory.java:208)
at
org.jboss.forge.project.services.ProjectFactory.registerFacets(ProjectFactory.java:188)
at
org.jboss.forge.project.services.ProjectFactory.findProjectRecursively(ProjectFactory.java:129)
--
Rudy De Busscher
http://www.c4j.be
12 years, 11 months
Looking for plugin samples
by nino martinez wael
Hi
Saw Lincoln <http://twitter.com/lincolnthree>'s forge presentation on
java2days. At our company we use Wicket as web framework. So I want to
participate and see how far I can take this..
So im looking for plugin samples, especially the jsf ones? On howto get
going,
In short I need to know howto do these things:
- Write files (need to write one .html and one .java per page / panel)
- Parse domain objects
- parse existing wicket files
I think some of the things have been done in the jsf plugin?
regards Nino
13 years