2013-07-24 3 views
-1

방금 ​​프로젝트를 Maven 프로젝트로 바꿨으므로 로깅에 문제가 있습니다. 그 전에 모든 로그 파일 (System.in/err 등) 및 심지어 netbeans glassfish 탭에서 그들을 볼 수 있었다. 하지만 지금 초기화 부분에서 배포 "stucks"더 server.log에 로그 나 NetBeans는glassfish가 배포 후 로깅되지 않음

Undeploying ... 
Distributing D:\ExtMonTool\trunk\src\target\extmon-1.0-SNAPSHOT.war to [GlassFish Server 3+] 
Initializing... 

이 응용 프로그램 배포 및 작동되지만이없는

내가 어디 보여야 변경해야합니다 어떤 생각 문제 때문에?

+0

전쟁은 내가 그것을 pom.xml 파일 – mebada

+0

도움이 될 것입니다 전쟁에서 온 콘텐츠 –

+0

내가 u는 특정 폴더 필요하면 말해, 나는 또한 전쟁의 내용을 포함하여 전쟁 – mebada

답변

1

문제는 로그에이 라인 이후에 발생 :

INFO: HHH000227: Running hbm2ddl schema export 
INFO: HHH000230: Schema export complete 
INFO: HHH000030: Cleaning up connection pool [jdbc:hsqldb:mem:richfaces_showcase] 

그래서, 내가 문제가 richfaces-showcase에 의한 추측, Hibernate가 연결 풀을 정리하기 위해 시도 할 때.

어쨌든 richfaces-showcase을 사용하지 않는 경우 (아마도 그렇지 않을 수도 있음) 종속성에서 제외하여 아무런 문제가 발생할 수 없습니다.를 빼고 포함 된 종속

<dependency> 
    <groupId>org.richfaces</groupId> 
    <artifactId>richfaces-distribution</artifactId> 
    <version>4.3.2.Final</version> 
    <type>zip</type> 
</dependency> 

, :

+- 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 

는 그냥 richfaces-distribution 의존성을 대체하십시오 dependency:tree 목표를 실행하여

, 당신은 richfaces-distribution는 다음이 포함되어 있는지 볼 수 있습니다 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> 

문제를 해결하는 또 다른 식으로 richfaces-showcase에 대한 최대 절전 모드 설정을하는 것 (을하지만이의 확실하지 않다, 그것은 단지 가정이다). (GlassFish 서버 때문에 이것이 필요하다고 생각합니다. richfaces 배포의 기본 구성은 Tomcat 용입니다 : org.richfaces.examples:richfaces-showcase:war:tomcat6:4.3.2.Final:compile). 포장 트리를 보여

관련 문제