Erro ao Iniciar o GlassFish no Netbeans - Java EE

27/06/2017

0

Olá, tudo bem ?

Estou com grande problema, estou fazendo um curso de Java EE no site DevMedia, porém ao configurar meu ambiente seguindo os passos dessa aula: https://www.devmedia.com.br/articles/viewaula.asp?idcomp=32671&topico=3901 ... não consigo de jeito nenhum configurar meu ambiente, baixei tudo certo, como mostrado no video mas quando vou iniciar o GlassFish ele aparece alguns erros, e no http://localhost:4848 também não consigo criar fazer a configuração JDBC Connection Pools, preciso de ajuda urgente.

Segue Relatório de erros do Netbeans ao iniciar o GlassFish:

Launching GlassFish on Felix platform
jun 26, 2017 8:40:25 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner createBundleProvisioner
INFORMAÇÕES: Create bundle provisioner class = class com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.
jun 26, 2017 8:40:26 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner$DefaultCustomizer getLocations
ADVERTÊNCIA: Skipping entry because it is not an absolute URI.
jun 26, 2017 8:40:26 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner$DefaultCustomizer getLocations
ADVERTÊNCIA: Skipping entry because it is not an absolute URI.
jun 26, 2017 8:41:03 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner startBundles
ADVERTÊNCIA: Can not start bundle file:/C:/Program%20Files/glassfish-4.1.1/glassfish/modules/core.jar because it is not contained in the list of installed bundles.
Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishRuntime@793fd2a8 in service registry.

!## LogManagerService.postConstruct : rootFolder=C:\\Program Files\\glassfish-4.1.1\\glassfish
!## LogManagerService.postConstruct : templateDir=C:\\Program Files\\glassfish-4.1.1\\glassfish\\lib\\templates
!## LogManagerService.postConstruct : src=C:\\Program Files\\glassfish-4.1.1\\glassfish\\lib\\templates\\logging.properties
!## LogManagerService.postConstruct : dest=C:\\Users\\caiqu\\AppData\\Roaming\\NetBeans\\8.2\\config\\GF_4.1.1\\domain1\\config\\logging.properties
Informações: Running GlassFish Version: GlassFish Server Open Source Edition 4.1.1 (build 1)
Informações: Server log file is using Formatter class: com.sun.enterprise.server.logging.ODLLogFormatter
Informações: Realm [admin-realm] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
Informações: Realm [file] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
Informações: Realm [certificate] of classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm] successfully created.
Informações: HV000001: Hibernate Validator 5.1.2.Final
Informações: Authorization Service has successfully initialized.
Informações: Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry
Advertência: Instance could not be initialized. Class=interface org.glassfish.grizzly.http.server.AddOn, name=http-listener-1, realClassName=org.glassfish.grizzly.http2.Http2AddOn
Informações: Grizzly Framework 2.3.23 started in: 477ms - bound to [/0.0.0.0:8080]
Advertência: Instance could not be initialized. Class=interface org.glassfish.grizzly.http.server.AddOn, name=http-listener-2, realClassName=org.glassfish.grizzly.http2.Http2AddOn
Informações: Grizzly Framework 2.3.23 started in: 148ms - bound to [/0.0.0.0:8181]
Advertência: Instance could not be initialized. Class=interface org.glassfish.grizzly.http.server.AddOn, name=admin-listener, realClassName=org.glassfish.grizzly.http2.Http2AddOn
Informações: Grizzly Framework 2.3.23 started in: 468ms - bound to [/0.0.0.0:4848]
Informações: Grizzly Framework 2.3.23 started in: 111ms - bound to [/0.0.0.0:3700]
Informações: GlassFish Server Open Source Edition 4.1.1 (1) startup time : Felix (49.458ms), startup services(11.200ms), total(60.658ms)
Informações: JTS5014: Recoverable JTS instance, serverId = [100]
Advertência: Instance could not be initialized. Class=interface org.glassfish.grizzly.http.server.AddOn, name=http-listener-2, realClassName=org.glassfish.grizzly.http2.Http2AddOn
Informações: Grizzly Framework 2.3.23 started in: 69ms - bound to [/0.0.0.0:8181]
Informações: Grizzly Framework 2.3.23 started in: 138ms - bound to [/0.0.0.0:7676]
Informações: JMXStartupService has started JMXConnector on JMXService URL service:jmx:rmi://DESKTOP-6VA2EKF:8686/jndi/rmi://DESKTOP-6VA2EKF:8686/jmxrmi
Informações: Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl@2e7bf7b7 as OSGi service registration: org.apache.felix.framework.ServiceRegistrationImpl@568750b7.
Advertência: Instance could not be initialized. Class=interface org.glassfish.grizzly.http.server.AddOn, name=http-listener-1, realClassName=org.glassfish.grizzly.http2.Http2AddOn
Informações: Grizzly Framework 2.3.23 started in: 541ms - bound to [/0.0.0.0:8080]
Advertência: Instance could not be initialized. Class=interface org.glassfish.grizzly.http.server.AddOn, name=http-listener-1, realClassName=org.glassfish.grizzly.http2.Http2AddOn
Informações: Grizzly Framework 2.3.23 started in: 82ms - bound to [/0.0.0.0:8080]
Advertência: Instance could not be initialized. Class=interface org.glassfish.grizzly.http.server.AddOn, name=http-listener-2, realClassName=org.glassfish.grizzly.http2.Http2AddOn
Informações: Grizzly Framework 2.3.23 started in: 522ms - bound to [/0.0.0.0:8181]
Informações: visiting unvisited references
Informações: Created HTTP listener http-listener-1 on host/port 0.0.0.0:8080
Informações: Created HTTP listener http-listener-2 on host/port 0.0.0.0:8181
Informações: Created HTTP listener admin-listener on host/port 0.0.0.0:4848
Informações: Created virtual server server
Informações: Created virtual server __asadmin
Informações: Setting JAAS app name glassfish-web
Informações: Virtual server server loaded default web module
Informações: Java security manager is disabled.
Informações: Entering Security Startup Service.
Informações: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.
Informações: Security Service(s) started successfully.
Informações: visiting unvisited references
Informações: visiting unvisited references
Informações: visiting unvisited references
Informações: Listening to REST requests at context: /management/domain.
Informações: Inicializando Mojarra 2.2.12 ( 20150720-0848 https://svn.java.net/svn/mojarra~svn/tags/2.2.12@14885) para o contexto ''
Informações: Loading application [__admingui] at [/]
Informações: Loading application __admingui done in 43.741 ms
Advertência: Context path from ServletContext: differs from path from bundle: /
Informações: Redirecting to /index.jsf
Informações: Admin Console: Initializing Session Attributes...
Advertência: Could not open/create prefs root node Software\\JavaSoft\\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
Advertência: Cannot create update center Image for C:\\Program Files\\glassfish-4.1.1; Update Center functionality will not be available in Admin Console
Informações: Exception Occurred :null
Advertência: StandardWrapperValve[FacesServlet]: Servlet.service() for servlet FacesServlet threw exception
java.lang.IllegalStateException: getOutputStream() has already been called for this response
at org.apache.catalina.connector.Response.getWriter(Response.java:777)
at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:224)
at com.sun.faces.context.ExternalContextImpl.getResponseOutputWriter(ExternalContextImpl.java:851)
at com.sun.faces.context.PartialViewContextImpl.createPartialResponseWriter(PartialViewContextImpl.java:504)
at com.sun.faces.context.PartialViewContextImpl.access$300(PartialViewContextImpl.java:79)
at com.sun.faces.context.PartialViewContextImpl$DelayedInitPartialResponseWriter.getWrapped(PartialViewContextImpl.java:642)
at javax.faces.context.PartialResponseWriter.startDocument(PartialResponseWriter.java:120)
at com.sun.faces.
Caique Souza

Caique Souza

Responder

Assista grátis a nossa aula inaugural

Assitir aula

Saiba por que programar é uma questão de
sobrevivência e como aprender sem riscos

Assistir agora

Utilizamos cookies para fornecer uma melhor experiência para nossos usuários, consulte nossa política de privacidade.

Aceitar