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

Konakart web app not loaded

Started by yonia, March 14, 2013, 08:50:19 am

Previous topic - Next topic

yonia

hi,
i just installed (manually) the KK application - version 6.5.1.
downloaded the .zip version and made all steps in "manual installation"
when trying to enter the application i get 404 error.

exception looks like some wrong definition of struts . please help...

14/03/2013 10:33:30 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:4206)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
   at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
   at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
   at org.apache.catalina.core.StandardService.start(StandardService.java:525)
   at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
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)
   ... 24 more
Caused by: java.net.ConnectException: Connection timed out: connect
   at java.net.PlainSocketImpl.socketConnect(Native Method)
   at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
   at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
   at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
   at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
   at java.net.Socket.connect(Socket.java:529)
   at java.net.Socket.connect(Socket.java:478)
   at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
   at sun.net.www.http.HttpClient.openServer(HttpClient.java:388)
   at sun.net.www.http.HttpClient.openServer(HttpClient.java:523)
   at sun.net.www.http.HttpClient.<init>(HttpClient.java:227)
   at sun.net.www.http.HttpClient.New(HttpClient.java:300)
   at sun.net.www.http.HttpClient.New(HttpClient.java:317)
   at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:970)
   at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:911)
   at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:836)
   at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1172)
   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)
   ... 34 more



ming

I would always use the installers rather than the zip installation.   Try that to see if it solves your problem.

yonia

i need the manual install as this would also be installed on unix and not only windows.

anyway this install should be working , no ?

any ideas some one ?

ming

Can't you use the installers for Linux?


yonia

basically i need it both for linux and windows, and with tomcat already installed.
i don't understand what should be the difference .

i saw this exception can be cause due to mismatches in tiles versions, changed DTD from 2.1 to 2.0 and the application deployed successfully .
<!DOCTYPE tiles-definitions PUBLIC
       "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
       "http://tiles.apache.org/dtds/tiles-config_2_0.dtd">;

but now i get another exception on
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.ClassNotFoundException: org.apache.struts.taglib.bean.DefineTag
   at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)

seems like an issue in struts,tiles configuration in this installation.
do i need to define something ? which is not said in the manual installation ?


ming

you won't get conflicts if you use the installers and use the tomcat we provide which is compatible.  Once you have that working you can figure out how to move it to your own tomcat - if you really have to.

yonia

sorry for the late response.

the manual installation has some bug or missing instructions in guide cause when i installed with the windows wizard it worked.

though i don't think this should be the solution.