2013-03-14 2 views
0

NetBeans 7.3, Glassfish 3.1.2.2 및 Maven을 사용하고 있습니다. 내가 글래스 피시 내 응용 프로그램을 배포 할 때 나는 다음과 같은 로그를 얻을 : GlassFish에서 웹 응용 프로그램을 두 번 연속 배포하는 이유는 무엇입니까?

Launching GlassFish on Felix platform 
INFO: Running GlassFish Version: GlassFish Server Open Source Edition 3.1.2.2 (build 5) 
INFO: Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry 
INFO: Grizzly Framework 1.9.50 started in: 3ms - bound to [0.0.0.0:3700] 
INFO: Grizzly Framework 1.9.50 started in: 15ms - bound to [0.0.0.0:8181] 
INFO: Grizzly Framework 1.9.50 started in: 27ms - bound to [0.0.0.0:8080] 
INFO: Grizzly Framework 1.9.50 started in: 8ms - bound to [0.0.0.0:4848] 
INFO: Grizzly Framework 1.9.50 started in: 1ms - bound to [0.0.0.0:7676] 
INFO: The Admin Console is already installed, but not yet loaded. 
INFO: WEB0169: Created HTTP listener [http-listener-1] on host/port [0.0.0.0:8080] 
INFO: WEB0169: Created HTTP listener [http-listener-2] on host/port [0.0.0.0:8181] 
INFO: WEB0169: Created HTTP listener [admin-listener] on host/port [0.0.0.0:4848] 
INFO: WEB0171: Created virtual server [server] 
INFO: WEB0171: Created virtual server [__asadmin] 
INFO: WEB0172: Virtual server [server] loaded default web module [] 
INFO: core.start_container_done 
INFO: SEC1002: Security Manager is OFF. 
INFO: SEC1010: Entering Security Startup Service 
INFO: SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper. 
INFO: SEC1115: Realm [admin-realm] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created. 
INFO: SEC1115: Realm [file] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created. 
INFO: SEC1115: Realm [certificate] of classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm] successfully created. 
INFO: SEC1011: Security Service(s) Started Successfully 
WARNING: DPL8027: Ignore WEB-INF/sun-web.xml in archive /C:/Users/Tiago Peres/Documents/NetBeansProjects/playground-websockets/target/playground-websockets-1.0-SNAPSHOT/, as GlassFish counterpart runtime xml WEB-INF/glassfish-web.xml is present in the same archive. 
INFO: WELD-000900 1.1.8 (Final) 
INFO: HV000001: Hibernate Validator 4.3.0.Final 
INFO: Activating CDI extension for Spring Data JPA repositories. 
INFO: PWC1412: WebModule[null] ServletContext.log():No Spring WebApplicationInitializer types detected on classpath 
INFO: Inicializando Mojarra 2.1.6 (SNAPSHOT 20111206) para o contexto '/playground-websockets' 
INFO: Monitoring jndi:/server/playground-websockets/WEB-INF/faces-config.xml for modifications 
INFO: Refreshing org[email protected]1a4ffb5b: startup date [Thu Mar 14 14:11:17 BRT 2013]; root of context hierarchy 
INFO: Loading XML bean definitions from URL [jndi:/server/playground-websockets/WEB-INF/beans.xml] 
INFO: JSR-250 'javax.annotation.ManagedBean' found and supported for component scanning 
INFO: JSR-330 'javax.inject.Named' annotation found and supported for component scanning 
INFO: Overriding bean definition for bean 'loginService': replacing [Generic bean: class [com.playground.core.service.impl.LoginServiceImpl]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in URL [jar:file:/C:/Users/Tiago%20Peres/Documents/NetBeansProjects/playground-websockets/target/playground-websockets-1.0-SNAPSHOT/WEB-INF/lib/playground-core-1.0-SNAPSHOT.jar!/com/playground/core/service/impl/LoginServiceImpl.class]] with [Generic bean: class [com.playground.core.service.impl.LoginServiceImpl]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in URL [jndi:/server/playground-websockets/WEB-INF/beans.xml]] 
INFO: JSR-330 'javax.inject.Inject' annotation found and supported for autowiring 
INFO: Loaded JDBC driver: com.mysql.jdbc.Driver 
INFO: Bean 'dataSource' of type [class org.springframework.jdbc.datasource.DriverManagerDataSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 
INFO: Bean 'persistenceProvider' of type [class org.hibernate.ejb.HibernatePersistence] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 
INFO: Bean 'jpaVendorAdapter' of type [class org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 
INFO: Bean 'jpaDialect' of type [class org.springframework.orm.jpa.vendor.HibernateJpaDialect] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 
INFO: persistence-websockets.xml should be located inside META-INF directory; cannot determine persistence unit root URL for class path resource [persistence-websockets.xml] 
INFO: Building JPA container EntityManagerFactory for persistence unit 'playground-websockets' 
INFO: HCANN000001: Hibernate Commons Annotations {4.0.1.Final} 
INFO: HHH000412: Hibernate Core {4.1.6.Final} 
INFO: HHH000206: hibernate.properties not found 
INFO: HHH000021: Bytecode provider name : javassist 
INFO: HHH000204: Processing PersistenceUnitInfo [ 
    name: playground-websockets 
    ...] 
INFO: HHH000130: Instantiating explicit connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider 
INFO: HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect 
INFO: HHH000268: Transaction strategy: org.hibernate.engine.transaction.internal.jta.CMTTransactionFactory 
INFO: HHH000397: Using ASTQueryTranslatorFactory 
INFO: HHH000229: Running schema validator 
INFO: HHH000102: Fetching database metadata 
INFO: HHH000261: Table found: playground.gametitle 
INFO: HHH000037: Columns: [id, playedtimes, name, maximumnumberofplayers, rating, launchdate] 
INFO: HHH000261: Table found: playground.player 
INFO: HHH000037: Columns: [id, nickname, facebookid] 
INFO: HHH000261: Table found: playground.score 
INFO: HHH000037: Columns: [id, playedtimes, gametitle_id, victories, losses, player_id, points] 
INFO: HHH000261: Table found: playground.hibernate_sequence 
INFO: HHH000037: Columns: [next_val] 
INFO: Bean 'entityManagerFactory' of type [class org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 
INFO: Pre-instantiating singletons in org.s[email protected]56983a92: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,scoreRepositoryImpl,scoreRepository,gameTitleRepositoryImpl,gameTitleRepository,playerRepositoryImpl,playerRepository,org.springframework.data.repository.core.support.RepositoryInterfaceAwareBeanPostProcessor#0,org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0,org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor#0,invitationRepositoryImpl,loggedPlayerRepository,queueRepositoryImpl,roomRepositoryImpl,invitationServiceImpl,loginService,queueServiceImpl,roomServiceImpl,dataSource,entityManagerFactory,persistenceProvider,jpaDialect,jpaVendorAdapter,org.springframework.transaction.config.internalTransactionAspect,transactionManager,org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor#1,org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#1,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor]; root of factory hierarchy 
INFO: Using JTA UserTransaction: [email protected] 
INFO: Using JTA TransactionManager: [email protected] 
INFO: Using JTA TransactionSynchronizationRegistry: com.su[email protected]c91aca4 
INFO: ***MyWebSocketApplication registered successfully in the Servlet*** 
INFO: ***LoginApplication registered successfully in the Servlet*** 
INFO: WEB0671: Loading application [playground-websockets] at [/playground-websockets] 
INFO: CORE10010: Loading application playground-websockets done in 21.807 ms 
INFO: GlassFish Server Open Source Edition 3.1.2.2 (5) hora de inicialização : Felix (1.296ms), serviços de inicialização(23.324ms), total(24.620ms) 
INFO: Created EjbThreadPoolExecutor with thread-core-pool-size 16 thread-max-pool-size 32 thread-keep-alive-seconds 60 thread-queue-capacity 2147483647 allow-core-thread-timeout false 

는 그런 다음 "저지 응용 프로그램"다시 모든 것을 시작합니다. 응용 프로그램은 또한 뉴저지에 배포해야하는 이유

INFO: Initiating Jersey application, version 'Jersey: 1.11.1 03/31/2012 06:49 PM' 
INFO: WEB0169: Created HTTP listener [http-listener-1] on host/port [0.0.0.0:8080] 
INFO: Grizzly Framework 1.9.50 started in: 2ms - bound to [0.0.0.0:8080] 
INFO: REST00001: Listening to REST requests at context: /management/domain 
INFO: The Admin Console is already installed, but not yet loaded. 
INFO: The Admin Console is starting. Please wait. 
INFO: JMX005: JMXStartupService had Started JMXConnector on JMXService URL service:jmx:rmi://Tiago-PC:8686/jndi/rmi://Tiago-PC:8686/jmxrmi 
INFO: Inicializando Mojarra 2.1.6 (SNAPSHOT 20111206) para o contexto '' 
WARNING: DPL8027: Ignore WEB-INF/sun-web.xml in archive /C:/Users/Tiago Peres/Documents/NetBeansProjects/playground-websockets/target/playground-websockets-1.0-SNAPSHOT/, as GlassFish counterpart runtime xml WEB-INF/glassfish-web.xml is present in the same archive. 
INFO: WEB0671: Loading application [__admingui] at [/] 
INFO: CORE10010: Loading application __admingui done in 2.489 ms 
INFO: The Admin Console application is loaded. 
INFO: Activating CDI extension for Spring Data JPA repositories. 
INFO: PWC1412: WebModule[null] ServletContext.log():No Spring WebApplicationInitializer types detected on classpath 
INFO: Inicializando Mojarra 2.1.6 (SNAPSHOT 20111206) para o contexto '/playground-websockets' 
INFO: Monitoring jndi:/server/playground-websockets/WEB-INF/faces-config.xml for modifications 
INFO: Refreshing org[email protected]2b58140c: startup date [Thu Mar 14 14:11:40 BRT 2013]; root of context hierarchy 
INFO: Loading XML bean definitions from URL [jndi:/server/playground-websockets/WEB-INF/beans.xml] 
INFO: JSR-250 'javax.annotation.ManagedBean' found and supported for component scanning 
INFO: JSR-330 'javax.inject.Named' annotation found and supported for component scanning 
INFO: Overriding bean definition for bean 'loginService': replacing [Generic bean: class [com.playground.core.service.impl.LoginServiceImpl]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in URL [jar:file:/C:/Users/Tiago%20Peres/Documents/NetBeansProjects/playground-websockets/target/playground-websockets-1.0-SNAPSHOT/WEB-INF/lib/playground-core-1.0-SNAPSHOT.jar!/com/playground/core/service/impl/LoginServiceImpl.class]] with [Generic bean: class [com.playground.core.service.impl.LoginServiceImpl]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in URL [jndi:/server/playground-websockets/WEB-INF/beans.xml]] 
INFO: JSR-330 'javax.inject.Inject' annotation found and supported for autowiring 
INFO: Loaded JDBC driver: com.mysql.jdbc.Driver 
INFO: Bean 'dataSource' of type [class org.springframework.jdbc.datasource.DriverManagerDataSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 
INFO: Bean 'persistenceProvider' of type [class org.hibernate.ejb.HibernatePersistence] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 
INFO: Bean 'jpaVendorAdapter' of type [class org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 
INFO: Bean 'jpaDialect' of type [class org.springframework.orm.jpa.vendor.HibernateJpaDialect] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 
INFO: persistence-websockets.xml should be located inside META-INF directory; cannot determine persistence unit root URL for class path resource [persistence-websockets.xml] 
INFO: Building JPA container EntityManagerFactory for persistence unit 'playground-websockets' 
INFO: HCANN000001: Hibernate Commons Annotations {4.0.1.Final} 
INFO: HHH000412: Hibernate Core {4.1.6.Final} 
INFO: HHH000206: hibernate.properties not found 
INFO: HHH000021: Bytecode provider name : javassist 
INFO: HHH000204: Processing PersistenceUnitInfo [ 
    name: playground-websockets 
    ...] 
INFO: HHH000130: Instantiating explicit connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider 
INFO: HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect 
INFO: HHH000268: Transaction strategy: org.hibernate.engine.transaction.internal.jta.CMTTransactionFactory 
INFO: HHH000397: Using ASTQueryTranslatorFactory 
INFO: HHH000229: Running schema validator 
INFO: HHH000102: Fetching database metadata 
INFO: HHH000261: Table found: playground.gametitle 
INFO: HHH000037: Columns: [id, playedtimes, name, maximumnumberofplayers, rating, launchdate] 
INFO: HHH000261: Table found: playground.player 
INFO: HHH000037: Columns: [id, nickname, facebookid] 
INFO: HHH000261: Table found: playground.score 
INFO: HHH000037: Columns: [id, playedtimes, gametitle_id, victories, losses, player_id, points] 
INFO: HHH000261: Table found: playground.hibernate_sequence 
INFO: HHH000037: Columns: [next_val] 
INFO: Bean 'entityManagerFactory' of type [class org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 
INFO: Pre-instantiating singletons in org.s[email protected]6bbeacbf: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,playerRepositoryImpl,playerRepository,gameTitleRepositoryImpl,gameTitleRepository,scoreRepositoryImpl,scoreRepository,org.springframework.data.repository.core.support.RepositoryInterfaceAwareBeanPostProcessor#0,org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0,org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor#0,invitationRepositoryImpl,loggedPlayerRepository,queueRepositoryImpl,roomRepositoryImpl,invitationServiceImpl,loginService,queueServiceImpl,roomServiceImpl,dataSource,entityManagerFactory,persistenceProvider,jpaDialect,jpaVendorAdapter,org.springframework.transaction.config.internalTransactionAspect,transactionManager,org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor#1,org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#1,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor]; root of factory hierarchy 
INFO: Using JTA UserTransaction: [email protected] 
INFO: Using JTA TransactionManager: [email protected] 
INFO: Using JTA TransactionSynchronizationRegistry: com.su[email protected]c91aca4 
INFO: ***MyWebSocketApplication registered successfully in the Servlet*** 
INFO: ***LoginApplication registered successfully in the Servlet*** 
INFO: WEB0671: Loading application [playground-websockets] at [/playground-websockets] 
INFO: playground-websockets foi implantado com sucesso em 19.620 milissegundos. 
INFO: WEB0169: Created HTTP listener [http-listener-2] on host/port [0.0.0.0:8181] 
INFO: Grizzly Framework 1.9.50 started in: 2ms - bound to [0.0.0.0:8181] 

는 이해가 안 돼요. Restfull 서비스가 없으므로 왜 필요합니까? 그것을 제거 할 수 있습니까? 방법?

미리 답변 해 주셔서 감사합니다.

+0

다음 런타임 오류가 발생합니다.이 이중 배치가 원인 일 수 있습니다. WebappClassLoader가 아직 시작되지 않았기 때문에 [org.springframework.aop.framework.AdvisedSupport $ MethodCacheKey] 리소스를로드 할 수 없습니다. 또는 이미 중단되었습니다. –

답변

2

첫 번째 로그에서 추출한 글래스 피쉬가 시작됩니다. 응용 프로그램이 이전에 배포 된 경우 Glassfish는 시작할 때 응용 프로그램을로드합니다.

두 번째 시퀀스는 Oracle Glassfish 플러그인으로 구동되는 IDE에서 Glassfish로 응용 프로그램의 현재 버전을 배포하는 것입니다. Glassfish stop/start에서 배포 된 웹 응용 프로그램의 버전을 추적하지 않으므로 다시 게시됩니다.

업데이트를 게시 할 때 Glassfish가 실행 중이면 한 번만 게시해야합니다.

+1

답변 해 주셔서 감사합니다! 어제 내가 찾은 해결책은 글래스 피를 저지하기 전에 항상 내 응용 프로그램의 배포를 취소하는 것이었지만 그 이유는 알지 못했습니다. 내가 집에 도착했을 때 서버를 종료하지 않고 프로젝트를 실행하려고하면 "실행, 테스트, 배포 해제, 중지, 컴파일, 실행 ..."보다 훨씬 쉬워 보입니다. 작동한다면 나는 답을 정확하게 표시 할 것입니다. 고맙습니다. :) –

+1

내 응용 프로그램을 다시 게시하려고하면 Spring Data JPA에서 오류가 발생하지만 재배포 할 때 일반적으로 발생하는 문제가 발생하지 않았으므로이 대답을 올바른 것으로 표시합니다. –

관련 문제