maven - glassfish not logging after deploy -
we turned our project maven project , since have problem logging. before in log files (system.in/err etc) , see them in netbeans glassfish tab. deploy "stucks" @ initializing part:
undeploying ... distributing d:\extmontool\trunk\src\target\extmon-1.0-snapshot.war [glassfish server 3+] initializing...
the app deployed , works there no log in server.log or netbeans
any idea should change should problem?
the problem arises after these lines in log:
info: hhh000227: running hbm2ddl schema export info: hhh000230: schema export complete info: hhh000030: cleaning connection pool [jdbc:hsqldb:mem:richfaces_showcase]
so, guess problem caused richfaces-showcase
, when hibernate trying clean connection pool.
if you're not using richfaces-showcase
anyway (which you're not), exclude dependencies, cannot cause trouble.
by running dependency:tree
goal, can see, richfaces-distribution
contains following:
+- org.richfaces.ui:richfaces-components-api:jar:4.3.2.final:compile +- org.richfaces.ui:richfaces-components-ui:jar:4.3.2.final:compile +- org.richfaces.core:richfaces-core-api:jar:4.3.2.final:compile +- org.richfaces.core:richfaces-core-impl:jar:4.3.2.final:compile +- org.richfaces.examples:richfaces-showcase:war:tomcat6:4.3.2.final:compile +- org.richfaces.archetypes:richfaces-archetype-simpleapp:jar:4.3.2.final:compile
just replace richfaces-distribution
dependency:
<dependency> <groupid>org.richfaces</groupid> <artifactid>richfaces-distribution</artifactid> <version>4.3.2.final</version> <type>zip</type> </dependency>
with contained dependencies, without richfaces-showcase
:
<dependency> <groupid>org.richfaces.core</groupid> <artifactid>richfaces-core-impl</artifactid> <version>4.3.3.final</version> </dependency> <dependency> <groupid>org.richfaces.ui</groupid> <artifactid>richfaces-components-api</artifactid> <version>4.3.3.final</version> </dependency> <dependency> <groupid>org.richfaces.ui</groupid> <artifactid>richfaces-components-ui</artifactid> <version>4.3.3.final</version> </dependency> <dependency> <groupid>org.richfaces.core</groupid> <artifactid>richfaces-core-api</artifactid> <version>4.3.3.final</version> </dependency>
another way solve problem (but i'm not sure of this, it's assumption) make hibernate configuration richfaces-showcase
. (i think needed because of glassfish server, default configuration in richfaces distribution tomcat: org.richfaces.examples:richfaces-showcase:war:tomcat6:4.3.2.final:compile
).
Comments
Post a Comment