java - How to make GlassFish partially stopped -


i using glassfish (glassfish 4) application server java enterprise application.

sometimes,i need restart it, when fames error appeared:

could not find sub module [myapp_webapp.war] defined in application.xml

to resolve error, try delete cache of ear folder application located in domaine folder of glassfish. delete folder,i need stop server before.

of course, stopping of server not let other application running! , not when application in use!

i tried create 2 different domain:

domain1 , domain2 following properties:

domain1: glassfish admin console url= localhost:4848 ,

<network-listeners>               <network-listener port="8080" protocol="http-listener-1" transport="tcp" name="http-listener-1" thread-pool="http-thread-pool"></network-listener>               <network-listener port="8181" protocol="http-listener-2" transport="tcp" name="http-listener-2" thread-pool="http-thread-pool"></network-listener>               <network-listener port="4848" protocol="admin-listener" transport="tcp" name="admin-listener" thread-pool="admin-thread-pool"></network-listener> </network-listeners> 

domain2: url= localhost:4242 ,

 <network-listeners>           <network-listener port="8081" protocol="http-listener-1" transport="tcp" name="http-listener-1" thread-pool="http-thread-pool"></network-listener>           <network-listener port="8182" protocol="http-listener-2" transport="tcp" name="http-listener-2" thread-pool="http-thread-pool"></network-listener>           <network-listener port="4242" protocol="admin-listener" transport="tcp" name="admin-listener" thread-pool="admin-thread-pool"></network-listener>  </network-listeners> 

then tried deploy 2 ears : app1.ear on domain1 , app2.ear on domain2.

the first app1.ear can launched on localhost:8080/app1-web second 1 app2.ear cannot launched on localhost:8081/app2-web , got error on log file:

[2016-01-27t18:09:44.956+0100] [glassfish 4.1] [severe] [as-web-core-00037] [javax.enterprise.web.core] [tid: _threadid=123 _threadname=http-listener-1(5)] [timemillis: 1453914584956] [levelvalue: 1000] [[ exception or error occurred in container during request processing java.lang.classcastexception: org.glassfish.grizzly.config.contextrootinfo cannot cast org.apache.catalina.context @ org.apache.catalina.connector.coyoteadapter.postparserequest(coyoteadapter.java:597) @ org.apache.catalina.connector.coyoteadapter.doservice(coyoteadapter.java:353) @ org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:282) @ com.sun.enterprise.v3.services.impl.containermapper$httphandlercallable.call(containermapper.java:459) @ com.sun.enterprise.v3.services.impl.containermapper.service(containermapper.java:167) @ org.glassfish.grizzly.http.server.httphandler.runservice(httphandler.java:201) @ org.glassfish.grizzly.http.server.httphandler.dohandle(httphandler.java:175) @ org.glassfish.grizzly.http.server.httpserverfilter.handleread(httpserverfilter.java:235) @ org.glassfish.grizzly.filterchain.executorresolver$9.execute(executorresolver.java:119) @ org.glassfish.grizzly.filterchain.defaultfilterchain.executefilter(defaultfilterchain.java:284) @ org.glassfish.grizzly.filterchain.defaultfilterchain.executechainpart(defaultfilterchain.java:201) @ org.glassfish.grizzly.filterchain.defaultfilterchain.execute(defaultfilterchain.java:133) @ org.glassfish.grizzly.filterchain.defaultfilterchain.process(defaultfilterchain.java:112) @ org.glassfish.grizzly.processorexecutor.execute(processorexecutor.java:77) @ org.glassfish.grizzly.nio.transport.tcpniotransport.fireioevent(tcpniotransport.java:561) @ org.glassfish.grizzly.strategies.abstractiostrategy.fireioevent(abstractiostrategy.java:112) @ org.glassfish.grizzly.strategies.workerthreadiostrategy.run0(workerthreadiostrategy.java:117) @ org.glassfish.grizzly.strategies.workerthreadiostrategy.access$100(workerthreadiostrategy.java:56) @ org.glassfish.grizzly.strategies.workerthreadiostrategy$workerthreadrunnable.run(workerthreadiostrategy.java:137) @ org.glassfish.grizzly.threadpool.abstractthreadpool$worker.dowork(abstractthreadpool.java:565) @ org.glassfish.grizzly.threadpool.abstractthreadpool$worker.run(abstractthreadpool.java:545) @ java.lang.thread.run(thread.java:745) ]]

am missing configure on different domains?

thanks lot

i think solution undeploy ear archive. check this: https://docs.oracle.com/cd/e18930_01/html/821-2432/geyvr.html

it's glassfish 3.1 think it's same gf4


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -