Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

How to deploy the Web Console (gs-webui.war application) in the same GSC

Hi.

I'm trying to automatically deploy the web console GigaSpaces monitoring in the same GSC where the instanacias are running my application. I tried to do it through the console desktop and I've also tried to do with the native commands of GigaSpaces.

Looking on google and forums I found that I must create a file called pu.xml, and I put it inside the route META-INF/spring / the application I want to deploy. Appreciate any comments and input on the matter. Then ponge GigaSpaces error generated when I try to deploy the application:

2013-03-26 11:10:48,300 GSC INFO [com.gigaspaces.grid.gsc] - Instantiating gs-webui [1] 2013-03-26 11:11:14,546 INFO [org.eclipse.jetty.util.log] - jetty-7.1.4.v20100610 2013-03-26 11:11:14,573 INFO [org.eclipse.jetty.util.log] - Started SelectChannelConnector@0.0.0.0:8080 2013-03-26 11:11:15,153 WARNING [org.eclipse.jetty.util.log] - Failed startup of context WebAppContext@f4e574@f4e574/gs-webui,file:/D:/pol/gigaspaces-xap-premium-7.1.2-ga/work/processing-units/gs-webui_1/,D:\pol\gigaspaces-xap-premium-7.1.2-ga\work\processing-units\gs-webui_1; Caused by: javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory [Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory] 2013-03-26 11:11:15,162 gs-webui [1] WARNING [org.eclipse.jetty.util.log] - FAILED WebAppContext@f4e574@f4e574/gs-webui,file:/D:/pol/gigaspaces-xap-premium-7.1.2-ga/work/processing-units/gs-webui_1/,D:\pol\gigaspaces-xap-premium-7.1.2-ga\work\processing-units\gs-webui_1: javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory [Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory] 2013-03-26 11:11:15,162 gs-webui [1] WARNING [org.eclipse.jetty.util.log] - FAILED ContextHandlerCollection@101ced9: javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory [Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory] 2013-03-26 11:11:15,162 gs-webui [1] WARNING [org.eclipse.jetty.util.log] - FAILED HandlerCollection@1b327d9: javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory [Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory] 2013-03-26 11:11:15,226 gs-webui [1] WARNING [org.eclipse.jetty.util.log] - FAILED org.eclipse.jetty.server.Server@1fdc648: javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory [Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory] 2013-03-26 11:11:15,808 GSC SEVERE [com.gigaspaces.grid.gsc] - Failed to instantiate gs-webui [1]; Caused by: org.jini.rio.core.JSBInstantiationException: java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:369) at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:322) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:46) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:654) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288) at javax.naming.InitialContext.init(InitialContext.java:223) at javax.naming.InitialContext.<init>(InitialContext.java:175) at org.eclipse.jetty.plus.webapp.EnvConfiguration.createEnvContext(EnvConfiguration.java:201) at org.eclipse.jetty.plus.webapp.EnvConfiguration.preConfigure(EnvConfiguration.java:62) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:379) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) at org.openspaces.pu.container.jee.jetty.JettyJeeProcessingUnitContainerProvider.createContainer(JettyJeeProcessingUnitContainerProvider.java:532) at org.openspaces.pu.container.servicegrid.PUServiceBeanImpl.startPU(PUServiceBeanImpl.java:583) at org.openspaces.pu.container.servicegrid.PUServiceBeanImpl.doStart(PUServiceBeanImpl.java:204) at org.jini.rio.jsb.ServiceBeanAdapter$1.run(ServiceBeanAdapter.java:291) at org.jini.rio.jsb.ServiceBeanAdapter.start(ServiceBeanAdapter.java:304) at org.jini.rio.jsb.JSBLoader.create(JSBLoader.java:106) at org.jini.rio.cybernode.ServiceBeanLoader.load(ServiceBeanLoader.java:276) at org.jini.rio.cybernode.JSBDelegate.startServiceBean(JSBDelegate.java:461) at org.jini.rio.cybernode.JSBDelegate.load(JSBDelegate.java:316) at org.jini.rio.cybernode.JSBContainer.activate(JSBContainer.java:213) at org.jini.rio.cybernode.CybernodeImpl.instantiate(CybernodeImpl.java:1034) at org.jini.rio.core.provision.ServiceBeanInstantiatorGigaspacesMethodinternalInvoke3.internalInvoke(Unknown Source) at com.gigaspaces.internal.reflection.fast.AbstractMethod.invoke(AbstractMethod.java:34) at com.gigaspaces.lrmi.LRMIRuntime.invoked(LRMIRuntime.java:372) at com.gigaspaces.lrmi.nio.Pivot.consumeAndHandleRequest(Pivot.java:462) at com.gigaspaces.lrmi.nio.Pivot.handleRequest(Pivot.java:551) at com.gigaspaces.lrmi.nio.Pivot$ChannelEntryTask.run(Pivot.java:161) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619)

Clarified that both the GSM with GSC I'm starting work well. I'm working with GigaSpaces version 7.1 and is a mission-critical application that runs on this environment.

Thank you.

{quote}This thread was imported from the previous forum. For your reference, the original is [available here|http://forum.openspaces.org/thread.jspa?threadID=4054]{quote}

asked 2013-03-26 11:14:01 -0500

andresgiraldo gravatar image

updated 2013-08-08 09:52:00 -0500

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

There is no need to place any pu.xml into the war file.
You should deploy the war file as is as explained here.
See:

answered 2013-03-26 11:34:15 -0500

shay hassidim gravatar image
edit flag offensive delete link more

Comments

Hi, thanks for your quick response.

Following the documentation suggests, try to deploy the application on the console as follows:

gs> deploy -properties embed://web.port=80;web.context=/ D:\pol\gigaspaces-xap-premium-7.1.2-ga\tools\gs-webui\gs-webui.war
Found 1 GSMs
Deploying gs-webui.war with name gs-webui under groups gigaspaces-7.1.2-XAPPremium-ga and locators jini://domain:7102/
Uploading gs-webui to http://127.0.0.1:7111/
Waiting for 1 processing unit instances to be deployed...
gs-webui1 failed to deploy, resubmitted true
Finished deploying 1 processing unit instances
gs>

The GSM log file say:

2013-03-26 12:03:39,175 GSM INFO com.gigaspaces.grid.gsm - Deploying gs-webui
2013-03-26 12:03:39,216 GSM INFO com.gigaspaces.grid.gsm.provision - Requesting allocation of processing unit instance gs-webui [1] on GSC pid[5212 hostdomain/127.0.0.1]
2013-03-26 12:04:04,768 GSM SEVERE com.gigaspaces.grid.gsm.provision - Failed to instantiate service gs-webui [1] on GSC pid[5212 hostdomain/127.0.0.1],
    GSC reported: org.jini.rio.core.JSBInstantiationException: Processing Unit gs-webui [1] instantiation failed.
2013-03-26 12:04:04,769 GSM SEVERE com.gigaspaces.grid.gsm.provision - Provision attempt failed for gs-webui [1] on GSC pid[5212 hostdomain/127.0.0.1]
2013-03-26 12:04:04,770 GSM INFO com.gigaspaces.grid.gsm.provision - Re-submitted failed allocation of gs-webui [1]

The GSC log file say:

2013-03-26 12:03:39,246 GSC INFO com.gigaspaces.grid.gsc - Instantiating gs-webui 1
2013-03-26 12:04:03,532 INFO org.eclipse.jetty.util.log - jetty-7.1.4.v20100610
2013-03-26 12:04:03,559 INFO org.eclipse.jetty.util.log - Started SelectChannelConnector@0.0.0.0:81
2013-03-26 12:04:04,188 WARNING org.eclipse.jetty.util.log - Failed startup of context WebAppContext@1f6f3dc@1f6f3dc/,file:/D:/pol/gigaspaces-xap-premium-7.1.2-ga/work/processing-units/gs-webui1/,D:\pol\gigaspaces-xap-premium-7.1.2-ga\work\processing-units\gs-webui1; Caused by: javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory
2013-03-26 12:04:04,192 gs-webui 1 WARNING org.eclipse.jetty.util.log - FAILED WebAppContext@1f6f3dc@1f6f3dc/,file:/D:/pol/gigaspaces-xap-premium-7.1.2-ga/work/processing-units/gs-webui1/,D:\pol\gigaspaces-xap-premium-7.1.2-ga\work\processing-units\gs-webui1: javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory
2013-03-26 12:04:04,192 gs-webui 1 WARNING org.eclipse.jetty.util.log - FAILED ContextHandlerCollection@20b722: javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory
2013-03-26 12:04:04,193 gs-webui 1 WARNING org.eclipse.jetty.util.log - FAILED HandlerCollection@1d753b7: javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory
2013-03-26 12:04:04,245 gs-webui 1 WARNING org.eclipse.jetty.util.log - FAILED org.eclipse.jetty.server.Server@1735602: javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory Root exception is java.lang.ClassNotFoundException: org ...






(more)

andresgiraldo gravatar imageandresgiraldo ( 2013-03-26 12:09:46 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-03-26 11:14:01 -0500

Seen: 789 times

Last updated: Mar 26 '13