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

Ask Your Question

Failed to deploy my war

Dear All, I just try to put a simple website into the cloud, but I got error when deploying it:

GSC SEVERE [com.gigaspaces.grid.gsc] - Failed to instantiate ASLQuestionnaire [2]; Caused by: org.jini.rio.core.JSBInstantiationException: org.openspaces.pu.container.CannotCreateContainerException: No explicit config location, tried [classpath*:/META-INF/spring/pu.xml], [META-INF/spring/pu.xml] (relative to working director), [pu.config], and no configuration found

  I have already include the sla.xml,pu.propertiese under /META-INF/spring/
  Do I really need an pu.xml? as I can't find it in the example website,but that sample works.



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

asked 2011-01-05 06:39:13 -0600

wbc gravatar image

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

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

You don't need pu.xml to deploy a war file.
Can you deploy this without having the sla.xml?
Can you provide the full stack trace?

answered 2011-01-05 07:12:10 -0600

shay hassidim gravatar image
edit flag offensive delete link more


Thanks for your reply Shay.

It's the same when I remove the sla.xml.
here is the full trace log

2011-01-05 21:42:45,206 GSC INFO com.gigaspaces.grid.gsc - Instantiating MyWeb 1
2011-01-05 21:42:45,297 MyWeb 1 INFO org.openspaces.pu.container.servicegrid.PUServiceBeanImpl - ClusterInfo name[MyWeb schemanull numberOfInstances1 numberOfBackups0 instanceId1 backupIdnull]
2011-01-05 21:42:45,298 MyWeb 1 INFO org.openspaces.pu.container.servicegrid.PUServiceBeanImpl - BeanLevelProperties Context {web.threadPool.minThreads=15, web.sslPort=9443, web.threadPool.maxThreads=100, web.port=8081} Beans {}
2011-01-05 21:42:45,368 MyWeb 1 INFO org.openspaces.pu.container.servicegrid.PUServiceBeanImpl - Downloading from GSM to 1">/home/bill/Public/gigaspaces-xap-premium-7.1.3-ga/work/processing-units/MyWeb1 ...
2011-01-05 21:42:46,057 MyWeb 1 INFO org.openspaces.pu.container.servicegrid.PUServiceBeanImpl - Downloaded 1.94mb to 1">/home/bill/Public/gigaspaces-xap-premium-7.1.3-ga/work/processing-units/MyWeb1
2011-01-05 21:42:46,106 GSC SEVERE com.gigaspaces.grid.gsc - Failed to instantiate MyWeb 1; Caused by: org.jini.rio.core.JSBInstantiationException: org.openspaces.pu.container.CannotCreateContainerException: No explicit config location, tried classpath:/META-INF/spring/pu.xml, META-INF/spring/pu.xml (relative to working director), pu.config, and no configuration found
    at org.openspaces.pu.container.integrated.IntegratedProcessingUnitContainerProvider.createContainer(IntegratedProcessingUnitContainerProvider.java:201)
    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:463)
    at org.jini.rio.cybernode.JSBDelegate.load(JSBDelegate.java:318)
    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)

wbc gravatar imagewbc ( 2011-01-05 07:45:46 -0600 )edit

I think there might be some problem in your build script. Can you validate if the web.xml file is in this <WARFileRoot>/WEB-INF folder?

Only if web.xml file is not found in the above location it will try to find a pu.xml file.


seankumar gravatar imageseankumar ( 2011-01-05 10:53:17 -0600 )edit

Sean, you are right!
Thanks Sean!
Thanks Shay!

wbc gravatar imagewbc ( 2011-01-05 11:07:25 -0600 )edit


I've just ran into the exactly same issue, although my web.xml exists in the WEB-INF folder. There's also a pu.properties file within the META-INF/spring folder.

Does anyone have a suggestion on what I could be missing?


mikenikles gravatar imagemikenikles ( 2011-01-27 15:22:30 -0600 )edit

Can you provide the exact steps you have executed to deploy the web app?
Can you post the war file?

shay hassidim gravatar imageshay hassidim ( 2011-01-30 00:35:13 -0600 )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


Asked: 2011-01-05 06:39:13 -0600

Seen: 1,274 times

Last updated: Jan 05 '11