• Welcome to KonaKart Community Forum. Please login or sign up.
 

Konakart app not being deployed

Started by jp, June 05, 2013, 08:38:31 pm

Previous topic - Next topic

jp

Hello!

I've been trying to install Konakart 6.5.1.0 on both Linux and Windows environments (using the installers). Whenever we run the startup script the Konakart webapp fails to deploy.

However, the Konakart Admin site is up and running. Only have problems with Konakart app itself.

Tried different JRE versions (1.6_20 and 1.6_45) and both 32bit - 64bit installers.

On both environments I get the following errors in catalina logs:

INFO: Deploying web application directory konakart
May 31, 2013 10:55:56 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
May 31, 2013 10:55:56 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/konakart] startup failed due to previous errors


In localhost logs:

May 31, 2013 10:55:56 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.apache.struts2.tiles.StrutsTilesListener
java.lang.IllegalStateException: Unable to instantiate container.
   at org.apache.tiles.web.startup.TilesListener.contextInitialized(TilesListener.java:60)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723)
   at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)
   at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)
   at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
   at java.util.concurrent.FutureTask.run(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.tiles.definition.DefinitionsFactoryException: I/O Error reading definitions.
   at org.apache.tiles.definition.digester.DigesterDefinitionsReader.read(DigesterDefinitionsReader.java:273)
   at org.apache.tiles.definition.UrlDefinitionsFactory.readDefinitions(UrlDefinitionsFactory.java:286)
   at org.apache.tiles.definition.UrlDefinitionsFactory.init(UrlDefinitionsFactory.java:130)
   at org.apache.tiles.impl.BasicTilesContainer.initializeDefinitionsFactory(BasicTilesContainer.java:406)
   at org.apache.tiles.impl.BasicTilesContainer.init(BasicTilesContainer.java:130)
   at org.apache.tiles.factory.TilesContainerFactory.initializeContainer(TilesContainerFactory.java:232)
   at org.apache.tiles.factory.TilesContainerFactory.createTilesContainer(TilesContainerFactory.java:198)
   at org.apache.tiles.factory.TilesContainerFactory.createContainer(TilesContainerFactory.java:163)
   at org.apache.tiles.web.startup.TilesListener.createContainer(TilesListener.java:90)
   at org.apache.struts2.tiles.StrutsTilesListener.createContainer(StrutsTilesListener.java:70)
   at org.apache.tiles.web.startup.TilesListener.contextInitialized(TilesListener.java:57)
   ... 8 more



Maybe we're missing a component in the configuration? We're using all components as installed, only have the JRE and database in each box. No other installation of Tomcat.

Thanks for any hints.
JP



trevor

QuoteWhenever we run the startup script


Is that startkonakart.bat ?

jp


ming

Do your machines have Internet access?  If not can you try that?

jp

Thanks for your reply. I've enabled Internet access and tried again. It is still failing with the same error.

I ran a sniffer and noticed that whenever the app (konakart) starts to deploy it is trying to go to 192.87.106.229 through HTTP. I opened a browser and veryfied I have access to that address (which appears to belong to Apache Foundation) so don't think there's something blocking the communication.


ryan


jp

 ;D

You got it...  I tried to change the definition file previoulsy and did not work; however, I had no access to Internet. Now I changed the definition file with Internet access and got it working.

Thanks!

ming

You shouldn't need to change that file if your Internet lookup at start-up works.   We start up 1000s of times per week and don't see the error.

It makes me think that somehow your Internet lookup is actually not working.

But, so long as you have a solution that's the most important thing... :-)

cedroy

Hello,

I'm facing exactly the same problem. But no chance to find a solution.
Konakartadmin app is ok but Konakart app won't deploy.
I'm running Win7 x64 and tried a lot of jdk / jre. Same problem everywhere.
Changing the tiles-config.dtd doesn't help either.
Acces to Internet ok too.

Any idea ?

Here the log file
déc. 06, 2013 10:04:24 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception lors de l'envoi de l'évènement contexte initialisé (context initialized) à l'instance de classe d'écoute (listener) org.apache.struts2.tiles.StrutsTilesListener
java.lang.IllegalStateException: Unable to instantiate container.
   at org.apache.tiles.web.startup.TilesListener.contextInitialized(TilesListener.java:60)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723)
   at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)
   at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)
   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:722)
Caused by: org.apache.tiles.definition.DefinitionsFactoryException: I/O Error reading definitions.
   at org.apache.tiles.definition.digester.DigesterDefinitionsReader.read(DigesterDefinitionsReader.java:273)
   at org.apache.tiles.definition.UrlDefinitionsFactory.readDefinitions(UrlDefinitionsFactory.java:286)
   at org.apache.tiles.definition.UrlDefinitionsFactory.init(UrlDefinitionsFactory.java:130)
   at org.apache.tiles.impl.BasicTilesContainer.initializeDefinitionsFactory(BasicTilesContainer.java:406)
   at org.apache.tiles.impl.BasicTilesContainer.init(BasicTilesContainer.java:130)
   at org.apache.tiles.factory.TilesContainerFactory.initializeContainer(TilesContainerFactory.java:232)
   at org.apache.tiles.factory.TilesContainerFactory.createTilesContainer(TilesContainerFactory.java:198)
   at org.apache.tiles.factory.TilesContainerFactory.createContainer(TilesContainerFactory.java:163)
   at org.apache.tiles.web.startup.TilesListener.createContainer(TilesListener.java:90)
   at org.apache.struts2.tiles.StrutsTilesListener.createContainer(StrutsTilesListener.java:70)
   at org.apache.tiles.web.startup.TilesListener.contextInitialized(TilesListener.java:57)
   ... 8 more
Caused by: java.net.ConnectException: Connection timed out: connect
   at java.net.DualStackPlainSocketImpl.connect0(Native Method)
   at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:69)
   at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
   at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
   at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
   at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:157)
   at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
   at java.net.Socket.connect(Socket.java:579)
   at java.net.Socket.connect(Socket.java:528)
   at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
   at sun.net.www.http.HttpClient.openServer(HttpClient.java:378)
   at sun.net.www.http.HttpClient.openServer(HttpClient.java:473)
   at sun.net.www.http.HttpClient.<init>(HttpClient.java:203)
   at sun.net.www.http.HttpClient.New(HttpClient.java:290)
   at sun.net.www.http.HttpClient.New(HttpClient.java:306)
   at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:995)
   at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:931)
   at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:849)
   at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1299)
   at org.apache.commons.digester.Digester.createInputSourceFromURL(Digester.java:2072)
   at org.apache.commons.digester.Digester.resolveEntity(Digester.java:1725)
   at org.apache.xerces.util.EntityResolverWrapper.resolveEntity(Unknown Source)
   at org.apache.xerces.impl.XMLEntityManager.resolveEntity(Unknown Source)
   at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
   at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
   at org.apache.commons.digester.Digester.parse(Digester.java:1887)
   at org.apache.tiles.definition.digester.DigesterDefinitionsReader.read(DigesterDefinitionsReader.java:267)
   ... 18 more


Thx for your help.

Cédric

cedroy

Hello,

problem found !

I've installed KonaKart locally for test purpose. But our proxy blocks Tomcat. I've configured it  correctly and it works !

Best regards.

Cédric