Jenkins - Error when deploying EAR to IBM WebSphere Application Server - java

(Updated as of 8 May 2018)
This is about an issue experienced during the connection phase when deploying EAR to WebSphere Application Server in Jenkins using the "WebSphere Deployer Plugin".
System information:
[Jenkins]
Jenkins version: 2.107.2
java.runtime.version (as seen from Jenkins Admin UI): 1.8.0_144-b01
[Jenkins - WebSphere Deployer Plugin]
Version: 1.6.1
Copied the relevant JAR files (from C:\IBM\WebSphere\AppServer\runtimes and C:\IBM\WebSphere\AppServer\plugins) to C:\Program Files (x86)\Jenkins\plugins\websphere-deployer\WEB-INF\lib.
Cell/Node/Server info is specified in the plugin configuration (same as what is shown in "Show Available Targets").
[IBM WebSphere Application Server]
WAS version: 9.0.0.7
Java version: 1.8.0_151
Administrative security: Enabled
Application security: Disabled
SOAP connection port: 8880 (checked to be not being blocked by firewall)
Telnet to port 8880 is successful
Command line login to wsadmin via port 8880 is successful
The "Test Connection" is successful. Unfortunately, in the actual job run the deploy phase still fails at connection.
The relevant log information is as follows
[Jenkins console log / job log (displayed in the Jenkins Admin UI "Console Output")]
12:48:31 Connecting to IBM WebSphere Application Server... 12:48:31
The following artifacts will be deployed in this order... 12:48:31
------------------------------------------- 12:48:36 [EAR file path]
Last modified on May 08, 2018 12:47:56 12:48:36
------------------------------------------- 12:48:59 Artifact is being deployed to virtual host: default_host 12:49:08 Error deploying to IBM
WebSphere Application Server: Could not determine if artifact
'[App name]' is installed: AdminException: 12:49:08 Performing
rollback of '[App name]' 12:49:08 WARNING: Artifact doesn't exist
rollback repository 12:49:08 Build step 'Deploy To IBM WebSphere
Application Server' changed build result to FAILURE 12:49:12 Finished:
FAILURE
[Jenkins error log (C:\Program Files (x86)\Jenkins\jenkins.err.log)]
May 08, 2018 12:43:47 PM hudson.WebAppMain$3 run INFO: Jenkins is
fully up and running May 08, 2018 12:43:53 PM
javax.jmdns.impl.DNSStatefulObject$DefaultImplementation
waitForAnnounced WARNING: Wait for announced timed out: DNS:
[Host name]. state: announcing 2 task: Announcer([Host name])
state: announcing 2 May 08, 2018 12:45:52 PM
com.ibm.websphere.management.AdminClientFactory WARNING: ADMC0046W:
The system failed to load properties from com.ibm.SOAP.configURL:
file:null/properties/soap.client.props May 08, 2018 12:45:54 PM
com.ibm.ws.ssl.config.SSLConfigManager INFO: CWPKI0051I: The process
has the java security property jdk.certpath.disabledAlgorithms set to
[MD2, MD5, SHA1 jdkCA & usage TLSServer, RSA keySize < 1024, DSA
keySize < 1024, EC keySize < 224]. The WebSphere Application server
is setting the java security property jdk.certpath.disabledAlgorithms
to [MD2, RSA keySize < 1024, MD5]. May 08, 2018 12:45:54 PM
com.ibm.ws.ssl.config.SSLConfigManager INFO: CWPKI0051I: The process
has the java security property jdk.tls.disabledAlgorithms set to
[SSLv3, RC4, MD5withRSA, DH keySize < 768, EC keySize < 224]. The
WebSphere Application server is setting the java security property
jdk.tls.disabledAlgorithms to [SSLv3, RC4, DH keySize < 768,
MD5withRSA]. May 08, 2018 12:45:54 PM
com.ibm.ws.ssl.config.SSLConfigManager INFO: CWPKI0027I: Disabling
default hostname verification for HTTPS URL connections. May 08, 2018
12:45:54 PM com.ibm.ws.security.config.SecurityObjectLocator INFO:
CWSCF0002I: The client code is attempting to load the security
configuration the server and this operation is not allowed. May 08,
2018 12:45:56 PM com.ibm.ws.security.config.SecurityObjectLocator
INFO: CWSCF0002I: The client code is attempting to load the security
configuration the server and this operation is not allowed. May 08,
2018 12:46:06 PM com.ibm.websphere.management.AdminClientFactory
WARNING: ADMC0046W: The system failed to load properties from
com.ibm.SOAP.configURL: file:null/properties/soap.client.props May 08,
2018 12:46:32 PM org.jenkinsci.plugins.github.webhook.WebhookManager$1
run INFO: GitHub webhooks activated for job [Jenkins Job name] with
[GitHubRepositoryName[host=github.com,username=[GitHub user name],repository=[GitHub repository]]]
(events: [PUSH]) May 08, 2018 12:46:37 PM
com.squareup.okhttp.internal.Platform$JdkWithJettyBootPlatform
getSelectedProtocol INFO: ALPN callback dropped: SPDY and HTTP/2 are
disabled. Is alpn-boot on the boot class path? May 08, 2018 12:48:31
PM hudson.model.Run execute INFO: [Jenkins Job name] #38 main build action completed: SUCCESS May
08, 2018 12:48:31 PM com.ibm.websphere.management.AdminClientFactory
WARNING: ADMC0046W: The system failed to load properties from
com.ibm.SOAP.configURL: file:null/properties/soap.client.props May 08,
2018 12:48:50 PM
com.squareup.okhttp.internal.Platform$JdkWithJettyBootPlatform
getSelectedProtocol INFO: ALPN callback dropped: SPDY and HTTP/2 are
disabled. Is alpn-boot on the boot class path?
com.ibm.websphere.management.exception.AdminException: at
com.ibm.websphere.management.application.AppManagementProxy.proxyInvoke(AppManagementProxy.java:192)
at
com.ibm.websphere.management.application.AppManagementProxy.checkIfAppExists(AppManagementProxy.java:269)
at
org.jenkinsci.plugins.websphere.services.deployment.WebSphereDeploymentService.isArtifactInstalled(WebSphereDeploymentService.java:468)
at
org.jenkinsci.plugins.websphere_deployer.WebSphereDeployerPlugin.stopArtifact(WebSphereDeployerPlugin.java:409)
at
org.jenkinsci.plugins.websphere_deployer.WebSphereDeployerPlugin.perform(WebSphereDeployerPlugin.java:245)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
at
hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
at
hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
at
hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1073)
at
hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
at hudson.model.Run.execute(Run.java:1752) at
hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543) at
hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429) Caused by:
java.lang.reflect.UndeclaredThrowableException at
com.sun.proxy.$Proxy67.invoke(Unknown Source) at
com.ibm.ws.management.AdminClientImpl.invoke(AdminClientImpl.java:224)
at
com.ibm.websphere.management.application.AppManagementProxy.proxyInvoke(AppManagementProxy.java:186)
... 13 more Caused by: [SOAPException:
faultCode=SOAP-ENV:ServerException; msg=The Soap RPC call can&apos;t
be unmarshalled.] at
com.ibm.ws.management.connector.soap.SOAPConnectorClient.handleAdminFault(SOAPConnectorClient.java:959)
at
com.ibm.ws.management.connector.soap.SOAPConnectorClient.invokeTemplateOnce(SOAPConnectorClient.java:924)
at
com.ibm.ws.management.connector.soap.SOAPConnectorClient.invokeTemplate(SOAPConnectorClient.java:689)
at
com.ibm.ws.management.connector.soap.SOAPConnectorClient.invokeTemplate(SOAPConnectorClient.java:679)
at
com.ibm.ws.management.connector.soap.SOAPConnectorClient.invoke(SOAPConnectorClient.java:665)
at
com.ibm.ws.management.connector.soap.SOAPConnectorClient.invoke(SOAPConnectorClient.java:487)
... 16 more
[WAS console log (SystemOut.log) (C:\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\server1\SystemOut.log)]
[5/8/18 12:49:00:183 CST] 000000f7 LTPAServerObj E SECJ0369E:
Authentication failed when using LTPA. The exception is
com.ibm.websphere.wim.exception.PasswordCheckFailedException:
CWWIM4513E The password match failed for the 'WASadmin' principal
name.. [5/8/18 12:49:00:332 CST] 000000f6 LTPAServerObj E SECJ0369E:
Authentication failed when using LTPA. The exception is
com.ibm.websphere.wim.exception.PasswordCheckFailedException:
CWWIM4513E The password match failed for the 'WASadmin' principal
name.. [5/8/18 12:49:04:291 CST] 000000f7 LTPAServerObj E SECJ0369E:
Authentication failed when using LTPA. The exception is
com.ibm.websphere.wim.exception.PasswordCheckFailedException:
CWWIM4513E The password match failed for the 'WASadmin' principal
name.. [5/8/18 12:49:07:221 CST] 000000f7 FFDCJanitor I
com.ibm.ws.ffdc.impl.FFDCJanitor doCleanupIfNeeded FFDC0004I: FFDC log
file management removed 20 of 20 files that have reached their
configured maximum age [5/8/18 12:49:07:486 CST] 000000f7 FfdcProvider
W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC
Incident emitted on
C:\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\ffdc\server1_f7987cd2_18.05.08_12.49.07.2212966399582449208005.txt
Unable to authenticate incoming request 534 [5/8/18 12:49:07:489 CST]
000000f7 FfdcProvider W com.ibm.ws.ffdc.impl.FfdcProvider logIncident
FFDC1003I: FFDC Incident emitted on
C:\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\ffdc\server1_f7987cd2_18.05.08_12.49.07.4884954440341702141044.txt
com.ibm.ws.management.connector.soap.SOAPUtils.extractSoapCall 157
[5/8/18 12:49:07:716 CST] 000000f7 FfdcProvider W
com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident
emitted on
C:\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\ffdc\server1_f7987cd2_18.05.08_12.49.07.4909017290418303421157.txt
com.ibm.ws.management.connector.soap.SOAPConnector.service 212

Just released v1.5.6, please try upgrading to this version. You won't have to deal with certificates anymore if you select the following option.

Related

"The module has not been deployed. See the server log for details"

I have created Enterprise application in netbeans but whenever i run am receiving this error i uninstalled and then install the application so many times even i pointed glassfish server but i have failed. please help an new to java and netbeans. below i attached my server log and the error.
In-place deployment at \Mac\Home\Downloads\EPDAssignment\EPDAssignment-war\build\web
GlassFish Server 4.1, deploy, null, false
\\Mac\Home\Downloads\EPDAssignment\EPDAssignment-war\nbproject\build-impl.xml:1051: The module has not been deployed.
See the server log for details.
BUILD FAILED (total time: 0 seconds)
Server Log screenshot
Info: Server shutdown initiated
Info: Unregistered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl#6014a9ba from service registry.
Info: FileMonitoring shutdown
Info: JMXStartupService: Stopped JMXConnectorServer: null
Info: JMXStartupService and JMXConnectors have been shut down.
Info: JdbcRuntimeExtension, getAllSystemRAResourcesAndPools = [GlassFishConfigBean.org.glassfish.jdbc.config.JdbcResource, GlassFishConfigBean.org.glassfish.jdbc.config.JdbcResource, GlassFishConfigBean.org.glassfish.jdbc.config.JdbcResource, GlassFishConfigBean.org.glassfish.jdbc.config.JdbcConnectionPool, GlassFishConfigBean.org.glassfish.jdbc.config.JdbcConnectionPool, GlassFishConfigBean.org.glassfish.jdbc.config.JdbcConnectionPool]
Completed shutdown of Log manager service
Info: Shutdown procedure finished
Completed shutdown of GlassFish runtime
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=192m; support was removed in 8.0
Listening for transport dt_socket at address: 9009
Launching GlassFish on Felix platform
Dec 18, 2018 9:32:43 AM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner createBundleProvisioner
INFO: Create bundle provisioner class = class com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.
Dec 18, 2018 9:32:43 AM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner$DefaultCustomizer getLocations
WARNING: Skipping entry because it is not an absolute URI.
Dec 18, 2018 9:32:43 AM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner$DefaultCustomizer getLocations
WARNING: Skipping entry because it is not an absolute URI.
Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishRuntime#1943da0 in service registry.
Found populator: com.sun.enterprise.v3.server.GFDomainXml
#!## LogManagerService.postConstruct : rootFolder=C:\Program Files\glassfish-4.1\glassfish
#!## LogManagerService.postConstruct : templateDir=C:\Program Files\glassfish-4.1\glassfish\lib\templates
#!## LogManagerService.postConstruct : src=C:\Program Files\glassfish-4.1\glassfish\lib\templates\logging.properties
#!## LogManagerService.postConstruct : dest=C:\Users\nurasahardid\AppData\Roaming\NetBeans\8.0.2\config\GF_4.1\domain1\config\logging.properties
Info: Running GlassFish Version: GlassFish Server Open Source Edition 4.1 (build 13)
Info: Server log file is using Formatter class: com.sun.enterprise.server.logging.ODLLogFormatter
Info: Realm [admin-realm] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
Info: Realm [file] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
Info: Realm [certificate] of classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm] successfully created.
Info: Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry
Info: Authorization Service has successfully initialized.
Info: Grizzly Framework 2.3.15 started in: 31ms - bound to [/0.0.0.0:8080]
Info: Grizzly Framework 2.3.15 started in: 0ms - bound to [/0.0.0.0:8181]
Info: Grizzly Framework 2.3.15 started in: 0ms - bound to [/0.0.0.0:4848]
Info: Grizzly Framework 2.3.15 started in: 15ms - bound to [/0.0.0.0:3700]
Info: GlassFish Server Open Source Edition 4.1 (13) startup time : Felix (2,138ms), startup services(1,059ms), total(3,197ms)
Info: Grizzly Framework 2.3.15 started in: 78ms - bound to [/0.0.0.0:7676]
Info: Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl#6014a9ba as OSGi service registration: org.apache.felix.framework.ServiceRegistrationImpl#107f4980.
Info: JMXStartupService has started JMXConnector on JMXService URL service:jmx:rmi://10.211.55.3:8686/jndi/rmi://10.211.55.3:8686/jmxrmi
Info: HV000001: Hibernate Validator 5.0.0.Final
Info: Grizzly Framework 2.3.15 started in: 31ms - bound to [/0.0.0.0:8181]
Info: Grizzly Framework 2.3.15 started in: 0ms - bound to [/0.0.0.0:8080]

GlassFish server not running netbeans

I'm not able to start my GlassFish server in netbeans to view my JSP and HTML files. I keep getting this error. I tried to delete and create the server but no point.
GlassFish Server
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=192m; support was removed in 8.0
objc[87677]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk/Contents/Home/bin/java (0x10b9314c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x10d9bb4e0). One of the two will be used. Which one is undefined.
Launching GlassFish on Felix platform
Mar 24, 2017 12:19:31 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner createBundleProvisioner
INFO: Create bundle provisioner class = class com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.
Mar 24, 2017 12:19:31 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner$DefaultCustomizer getLocations
WARNING: Skipping entry because it is not an absolute URI.
Mar 24, 2017 12:19:31 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner$DefaultCustomizer getLocations
WARNING: Skipping entry because it is not an absolute URI.
Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishRuntime#7a5428ab in service registry.
Found populator: com.sun.enterprise.v3.server.GFDomainXml
#!## LogManagerService.postConstruct : rootFolder=/Users/apple/GlassFish_Server/glassfish
#!## LogManagerService.postConstruct : templateDir=/Users/apple/GlassFish_Server/glassfish/lib/templates
#!## LogManagerService.postConstruct : src=/Users/apple/GlassFish_Server/glassfish/lib/templates/logging.properties
#!## LogManagerService.postConstruct : dest=/Users/apple/GlassFish_Server/glassfish/domains/dd/config/logging.properties
Info: Running GlassFish Version: GlassFish Server Open Source Edition 4.1 (build 13)
Info: Server log file is using Formatter class: com.sun.enterprise.server.logging.ODLLogFormatter
Info: Realm [admin-realm] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
Info: Realm [file] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
Info: Realm [certificate] of classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm] successfully created.
Info: Authorization Service has successfully initialized.
Info: Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry
Info: GlassFish Server Open Source Edition 4.1 (13) startup time : Felix (32,095ms), startup services(741ms), total(32,836ms)
Severe: Shutting down server due to startup exception
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:433)
at sun.nio.ch.Net.bind(Net.java:425)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at org.glassfish.grizzly.nio.transport.TCPNIOBindingHandler.bindToChannelAndAddress(TCPNIOBindingHandler.java:132)
at org.glassfish.grizzly.nio.transport.TCPNIOBindingHandler.bind(TCPNIOBindingHandler.java:88)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(TCPNIOTransport.java:236)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(TCPNIOTransport.java:225)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(TCPNIOTransport.java:85)
at org.glassfish.grizzly.config.GenericGrizzlyListener.start(GenericGrizzlyListener.java:180)
at com.sun.enterprise.v3.services.impl.GlassfishNetworkListener.start(GlassfishNetworkListener.java:109)
at com.sun.enterprise.v3.services.impl.GrizzlyProxy.start0(GrizzlyProxy.java:267)
at com.sun.enterprise.v3.services.impl.GrizzlyProxy.start(GrizzlyProxy.java:241)
at com.sun.enterprise.v3.services.impl.GrizzlyService.createNetworkProxy(GrizzlyService.java:567)
at com.sun.enterprise.v3.services.impl.GrizzlyService.postConstruct(GrizzlyService.java:490)
at org.jvnet.hk2.internal.ClazzCreator.postConstructMe(ClazzCreator.java:329)
at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:377)
at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:461)
at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:227)
at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:84)
at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2258)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:105)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:87)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1162)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1147)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Info: HV000001: Hibernate Validator 5.0.0.Final
Info: Server shutdown initiated
Info: Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl#629adce as OSGi service registration: org.apache.felix.framework.ServiceRegistrationImpl#30c0d731.
Info: Unregistered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl#629adce from service registry.
Info: FileMonitoring shutdown
Completed shutdown of Log manager service
Info: Shutdown procedure finished
Console:
ant -f /Users/apple/NetBeansProjects/MYLAB6 -Dnb.internal.action.name=run -Ddirectory.deployment.supported=true -DforceRedeploy=false -Dnb.wait.for.caches=true -Dbrowser.context=/Users/apple/NetBeansProjects/MYLAB6 run
init:
deps-module-jar:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive:
library-inclusion-in-manifest:
compile:
compile-jsps:
Starting GlassFish Server
GlassFish Server is running.
In-place deployment at /Users/apple/NetBeansProjects/MYLAB6/build/web
GlassFish Server, deploy, null, false
/Users/apple/NetBeansProjects/MYLAB6/nbproject/build-impl.xml:1045: The module has not been deployed.
See the server log for details.
BUILD FAILED (total time: 36 seconds)
The console is pointing at this line:
<nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
please help
it causes due to MaxPermSize Java 8 removes MaxPermSize from configuration and take care itself. Please remove MaxPermSize from configuration.

Glassfish connection from Netbeans

Connecting to Glassfish from ASADMIN terminal works fine but whenever I try to connect to Glassfish from Netbeans I get this error
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=192m; support was removed in 8.0
objc[86481]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java (0x107a3f4c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x108aa94e0). One of the two will be used. Which one is undefined.
Launching GlassFish on Felix platform
Feb 15, 2017 12:43:19 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner createBundleProvisioner
INFO: Create bundle provisioner class = class com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.
Feb 15, 2017 12:43:19 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner$DefaultCustomizer getLocations
WARNING: Skipping entry because it is not an absolute URI.
Feb 15, 2017 12:43:19 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner$DefaultCustomizer getLocations
WARNING: Skipping entry because it is not an absolute URI.
Feb 15, 2017 12:43:19 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner startBundles
WARNING: Can not start bundle file:/Applications/NetBeans/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#7ff366d0 in service registry.
#!## LogManagerService.postConstruct : rootFolder=/Applications/NetBeans/glassfish-4.1.1/glassfish
#!## LogManagerService.postConstruct : templateDir=/Applications/NetBeans/glassfish-4.1.1/glassfish/lib/templates
#!## LogManagerService.postConstruct : src=/Applications/NetBeans/glassfish-4.1.1/glassfish/lib/templates/logging.properties
#!## LogManagerService.postConstruct : dest=/Applications/NetBeans/glassfish-4.1.1/glassfish/domains/domain1/config/logging.properties
Info: Running GlassFish Version: GlassFish Server Open Source Edition 4.1.1 (build 1)
Info: Server log file is using Formatter class: com.sun.enterprise.server.logging.ODLLogFormatter
Info: Realm [admin-realm] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
Info: Realm [file] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
Info: Realm [certificate] of classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm] successfully created.
Info: Authorization Service has successfully initialized.
Info: Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry
Warning: Instance could not be initialized. Class=interface org.glassfish.grizzly.http.server.AddOn, name=http-listener-1, realClassName=org.glassfish.grizzly.http2.Http2AddOn
Warning: Instance could not be initialized. Class=interface org.glassfish.grizzly.http.server.AddOn, name=http-listener-2, realClassName=org.glassfish.grizzly.http2.Http2AddOn
Warning: Instance could not be initialized. Class=interface org.glassfish.grizzly.http.server.AddOn, name=admin-listener, realClassName=org.glassfish.grizzly.http2.Http2AddOn
Info: GlassFish Server Open Source Edition 4.1.1 (1) startup time : Felix (31,891ms), startup services(594ms), total(32,485ms)
Severe: Shutting down server due to startup exception
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:433)
at sun.nio.ch.Net.bind(Net.java:425)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at org.glassfish.grizzly.nio.transport.TCPNIOBindingHandler.bindToChannelAndAddress(TCPNIOBindingHandler.java:131)
at org.glassfish.grizzly.nio.transport.TCPNIOBindingHandler.bind(TCPNIOBindingHandler.java:88)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(TCPNIOTransport.java:248)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(TCPNIOTransport.java:237)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(TCPNIOTransport.java:86)
at org.glassfish.grizzly.config.GenericGrizzlyListener.start(GenericGrizzlyListener.java:184)
at com.sun.enterprise.v3.services.impl.GlassfishNetworkListener.start(GlassfishNetworkListener.java:109)
at com.sun.enterprise.v3.services.impl.GrizzlyProxy.start0(GrizzlyProxy.java:267)
at com.sun.enterprise.v3.services.impl.GrizzlyProxy.start(GrizzlyProxy.java:241)
at com.sun.enterprise.v3.services.impl.GrizzlyService.createNetworkProxy(GrizzlyService.java:567)
at com.sun.enterprise.v3.services.impl.GrizzlyService.postConstruct(GrizzlyService.java:490)
at org.jvnet.hk2.internal.ClazzCreator.postConstructMe(ClazzCreator.java:326)
at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:374)
at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:471)
at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:228)
at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:85)
at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2072)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:114)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:88)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1213)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1144)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$UpOneLevel.run(CurrentTaskFuture.java:762)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Info: HV000001: Hibernate Validator 5.1.2.Final
Info: Server shutdown initiated
Info: Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl#30a7c98f as OSGi service registration: org.apache.felix.framework.ServiceRegistrationImpl#7e1f584d.
Info: Unregistered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl#30a7c98f from service registry.
Info: FileMonitoring shutdown
Completed shutdown of Log manager service
Info: Shutdown procedure finished
Sometimes I get this error:
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=192m; support was removed in 8.0
objc[86884]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java (0x10f98b4c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x1119fe4e0). One of the two will be used. Which one is undefined.
Launching GlassFish on Felix platform
Feb 15, 2017 12:49:41 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner createBundleProvisioner
INFO: Create bundle provisioner class = class com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.
Feb 15, 2017 12:49:41 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner$DefaultCustomizer getLocations
WARNING: Skipping entry because it is not an absolute URI.
Feb 15, 2017 12:49:41 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner$DefaultCustomizer getLocations
WARNING: Skipping entry because it is not an absolute URI.
Feb 15, 2017 12:49:41 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner startBundles
WARNING: Can not start bundle file:/Applications/NetBeans/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#583c0b34 in service registry.
#!## LogManagerService.postConstruct : rootFolder=/Applications/NetBeans/glassfish-4.1.1/glassfish
#!## LogManagerService.postConstruct : templateDir=/Applications/NetBeans/glassfish-4.1.1/glassfish/lib/templates
#!## LogManagerService.postConstruct : src=/Applications/NetBeans/glassfish-4.1.1/glassfish/lib/templates/logging.properties
#!## LogManagerService.postConstruct : dest=/Applications/NetBeans/glassfish-4.1.1/glassfish/domains/domain1/config/logging.properties
Info: Running GlassFish Version: GlassFish Server Open Source Edition 4.1.1 (build 1)
Info: Server log file is using Formatter class: com.sun.enterprise.server.logging.ODLLogFormatter
Info: Realm [admin-realm] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
Info: Realm [file] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
Info: Realm [certificate] of classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm] successfully created.
Info: Authorization Service has successfully initialized.
Info: Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry
Warning: Instance could not be initialized. Class=interface org.glassfish.grizzly.http.server.AddOn, name=http-listener-1, realClassName=org.glassfish.grizzly.http2.Http2AddOn
Info: Grizzly Framework 2.3.23 started in: 31ms - bound to [/0.0.0.0:8080]
Warning: Instance could not be initialized. Class=interface org.glassfish.grizzly.http.server.AddOn, name=http-listener-2, realClassName=org.glassfish.grizzly.http2.Http2AddOn
Info: Grizzly Framework 2.3.23 started in: 1ms - bound to [/0.0.0.0:8181]
Warning: Instance could not be initialized. Class=interface org.glassfish.grizzly.http.server.AddOn, name=admin-listener, realClassName=org.glassfish.grizzly.http2.Http2AddOn
Info: Grizzly Framework 2.3.23 started in: 0ms - bound to [/0.0.0.0:4848]
Info: Grizzly Framework 2.3.23 started in: 1ms - bound to [/0.0.0.0:3700]
Info: GlassFish Server Open Source Edition 4.1.1 (1) startup time : Felix (32,118ms), startup services(724ms), total(32,842ms)
Info: JTS5014: Recoverable JTS instance, serverId = [100]
Info: HV000001: Hibernate Validator 5.1.2.Final
Info: Grizzly Framework 2.3.23 started in: 1ms - bound to [/0.0.0.0:7676]
Info: Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl#2822c6ff as OSGi service registration: org.apache.felix.framework.ServiceRegistrationImpl#60d1b21f.
Info: JMXStartupService has started JMXConnector on JMXService URL service:jmx:rmi://172.18.76.116:8686/jndi/rmi://172.18.76.116:8686/jmxrmi
After this phase, it should normally say Grizzly framework started but it gets stuck here for a while and then pops up an error asking me to check Admin username and password or to check server logs. I have tried empty username and password field as well as adding "admin" in username and empty password as well as adding both username and password but it still gives same error.
I am currently using Macbook pro for this and I keep getting this error whenever I try to connect using Netbeans while connecting with ASADMIN works.
I have tried re-installing everything from scratch but it still gives me the same error.
The first exception is a port binding issue. It means that there is already something running (probably another GlassFish instance).
The second issue you're having isn't a problem with GlassFish per se, but almost certainly a problem with the .gfclient which you'll find stored in your user's home directory (on Mac, I believe that's something like /Users/yourName/.gfclient)
Try removing .gfclient totally, so any cached user/password credentials are removed. You may also need to remove and re-add the GlassFish server to Netbeans.

can't start neo4j service after moving directory

I have a windows 7 x64 machine. I installed neo4j which went very smoothly. I then managed to install neo4django and neo4j-embedded and that was fine too.
However I decided to change the directory it was in, so I stopped the neo4j service in powershell and moved it to a different spot. Since then I haven't been able to restart the service, though if I run the console it starts neo4j in a java.exe window (I think) and thus it works (localhost:7474 accessible, able to run the neo4j-embedded example script, etc) until I close that java.exe window.
Here is the output I got in PowerShell:
PS G:\dev files\neo4j\bin> .\neo4j start
[SC] StartService FAILED 1053:
The service did not respond to the start or control request in a timely fashion.
PS G:\dev files\neo4j\bin> .\neo4j console
25/06/13 9:36:57 PM org.neo4j.server.AbstractNeoServer INFO: Setting startup timeout to: 120000ms based on -1
Detected incorrectly shut down database, performing recovery..
25/06/13 9:36:59 PM org.neo4j.server.database.Database INFO: Loaded neo4j tuning properties from conf/neo4j.properties
25/06/13 9:37:01 PM org.neo4j.server.database.Database INFO: Successfully started database
25/06/13 9:37:02 PM org.neo4j.server.AbstractNeoServer INFO: Starting Neo Server on port [7474] with [80] threads available
25/06/13 9:37:02 PM org.neo4j.server.AbstractNeoServer INFO: Enabling HTTPS on port [7473]
25/06/13 9:37:03 PM org.neo4j.server.modules.DiscoveryModule INFO: Mounted discovery module at [/]
25/06/13 9:37:03 PM org.neo4j.server.modules.RESTApiModule INFO: Mounted REST API at [/db/data/]
25/06/13 9:37:03 PM org.neo4j.server.modules.ManagementApiModule INFO: Mounted management API at [/db/manage/]
25/06/13 9:37:03 PM org.neo4j.server.modules.WebAdminModule INFO: Mounted webadmin at [/webadmin]
21:37:03.260 [main] INFO org.mortbay.log - Logging to Logger[org.mortbay.log] via org.mortbay.log.Slf4jLog
25/06/13 9:37:03 PM org.neo4j.server.web.Jetty6WebServer INFO: Mounting static content at [/webadmin] from [webadmin-html]
21:37:03.366 [main] INFO org.mortbay.log - jetty-6.1.25
21:37:03.548 [main] INFO org.mortbay.log - NO JSP Support for /webadmin, did not find org.apache.jasper.servlet.JspServlet
21:37:06.088 [main] INFO org.mortbay.log - Started SelectChannelConnector#localhost:7474
I'd be most appreciative of your help. Cheers.
When you create a service in Windows you typically bind a location for the executable that the operating system can find. Because you moved the directory your Neo4J service is no longer valid. What you must do is delete the old service, recreate the service with the new directory, and then launch it.
Code to get and delete service in PowerShell:
$service = Get-WmiObject -Class Win32_Service -Filter "Name='servicename'"
$service.delete()
taken from here

Oracle Java EE First Cup Tutorial 2.1--GlassFish 3.1.2 Errors

I'm pretty familiar with Java SE and am just starting to learn Java EE and doing the First Cup Tutorial. I followed all of the instructions carefully. I am running this on my work computer (Windows 7) with a work firewall (Windows Firewall).
When I attempt to launch the GlassFish server I get this output in NetBeans:
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: 9ms - bound to [0.0.0.0:3700]
INFO: Grizzly Framework 1.9.50 started in: 19ms - bound to [0.0.0.0:4848]
INFO: Grizzly Framework 1.9.50 started in: 51ms - bound to [0.0.0.0:8080]
INFO: Grizzly Framework 1.9.50 started in: 33ms - bound to [0.0.0.0:8181]
INFO: Grizzly Framework 1.9.50 started in: 2ms - bound to [0.0.0.0:7676]
INFO: The Admin Console is already installed, but not yet loaded.
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
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: Registering the Jersey servlet application, named org.netbeans.rest.application.config.ApplicationConfig, at the servlet mapping, /resources/*, with the Application class of the same name
INFO: WEB0671: Loading application [dukes-age] at [/DukesAgeService]
INFO: CORE10010: Loading application dukes-age done in 2,585 ms
INFO: GlassFish Server Open Source Edition 3.1.2.2 (5) startup time : Felix (1,388ms), startup services(3,239ms), total(4,627ms)
INFO: HV000001: Hibernate Validator 4.3.0.Final
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: WEB0169: Created HTTP listener [http-listener-1] on host/port [0.0.0.0:8080]
INFO: Grizzly Framework 1.9.50 started in: 3ms - bound to [0.0.0.0:8080]
INFO: Initiating Jersey application, version 'Jersey: 1.11.1 03/31/2012 06:49 PM'
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]
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.
**SEVERE: Exception while deploying the app [__admingui]
SEVERE: Failed to start Bundle Id [336] State [INSTALLED] [org.glassfish.main.admingui.glassfish-osgi-console-plugin(Glassfish OSGI Console Plugin):3.1.2.1-SNAPSHOT]
com.sun.enterprise.module.ResolveError: Failed to start Bundle Id [336] State [INSTALLED] [org.glassfish.main.admingui.glassfish-osgi-console-plugin(Glassfish OSGI Console Plugin):3.1.2.1-SNAPSHOT]
at org.jvnet.hk2.osgiadapter.OSGiModuleImpl.start(OSGiModuleImpl.java:177)
at org.jvnet.hk2.osgiadapter.OSGiModuleImpl$2$1$1.loadClass(OSGiModuleImpl.java:344)
at com.sun.hk2.component.LazyInhabitant.loadClass(LazyInhabitant.java:124)
at com.sun.hk2.component.LazyInhabitant.fetch(LazyInhabitant.java:111)
at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:135)
at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:78)
at com.sun.enterprise.v3.server.ClassLoaderHierarchyImpl.createApplicationParentCL(ClassLoaderHierarchyImpl.java:200)
at org.glassfish.deployment.common.DeploymentContextImpl.createClassLoader(DeploymentContextImpl.java:216)
at org.glassfish.deployment.common.DeploymentContextImpl.createDeploymentClassLoader(DeploymentContextImpl.java:199)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:346)
at com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:375)
at com.sun.enterprise.v3.admin.adapter.InstallerThread.load(InstallerThread.java:210)
at com.sun.enterprise.v3.admin.adapter.InstallerThread.run(InstallerThread.java:108)
Caused by: org.osgi.framework.BundleException: Cannot start bundle org.glassfish.main.admingui.glassfish-osgi-console-plugin [336] because its start level is 2, which is greater than the framework's start level of 1.
at org.apache.felix.framework.Felix.startBundle(Felix.java:1807)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:944)
at org.jvnet.hk2.osgiadapter.OSGiModuleImpl.start(OSGiModuleImpl.java:169)
... 12 more
SEVERE: Exception while deploying the app [__admingui]
INFO: The Admin Console application is loaded.
INFO: JMX005: JMXStartupService had Started JMXConnector on JMXService URL service:jmx:rmi://MW7FVCH7MQLSJX.dir.svc.accenture.com:8686/jndi/rmi://MW7FVCH7M**QLSJX.dir.svc.accenture.com:8686/jmxrmi
INFO: Registered org.glassfish.osgi.felixwebconsoleextension.GlassFishBrandingPlugin#591e1b
INFO: defaultVirtualServer = server
INFO: No default web.xml
INFO: standardContext = StandardEngine[glassfish-web].StandardHost[server].StandardContext[/osgi]
INFO: No default web.xml
INFO: standardContext = StandardEngine[glassfish-web].StandardHost[__asadmin].StandardContext[/osgi]
The output lines that begin with "SEVERE:" look pretty bad. But then again, I'm a Java EE newbie.
The ultimate caused by in the stack you posted says:
Cannot start bundle org.glassfish.main.admingui.glassfish-osgi-console-plugin [336] because its start level is 2, which is greater than the framework's start level of 1.
You may want to do some research on the start level of the framework. Check out:
How is the OSGi bundle start level defined? or https://issues.apache.org/jira/browse/FELIX-2942.
There is also a GlassFish JIRA issue on this with a workaround:
http://java.net/jira/browse/GLASSFISH-18880

Categories

Resources