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

error while running index.jsp of konakart

Started by pawan, February 17, 2012, 09:37:24 am

Previous topic - Next topic

pawan

Dear sir/mam,
                           i integrated konakart with open cms and also make the konakart-opencms jar of local konakart but when i run the index.jsp it shows the following error
javax.servlet.jsp.JspException: java.net.ConnectException: Connection refused
Reason: ; nested exception is:
java.net.ConnectException: Connection refused
Reason: Connection refused

The detailed error is:
javax.servlet.ServletException: javax.servlet.jsp.JspException: java.net.ConnectException: Connection refused
   at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:861)
   at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:794)
   at org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.com_konakart.elements.index_jsp._jspService(index_jsp.java:95)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:386)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
   at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
   at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
   at org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:188)
   at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:163)
   at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:619)
   at org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRequestDispatcher.java:417)
   at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:167)
   at org.opencms.loader.CmsJspLoader.dispatchJsp(CmsJspLoader.java:893)
   at org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:524)
   at org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java:1049)
   at org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1596)
   at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:153)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
   at java.lang.Thread.run(Thread.java:636)
Caused by: java.net.ConnectException: Connection refused
   at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
   at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
   at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
   at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
   at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
   at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
   at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
   at org.apache.axis.client.Call.invoke(Call.java:2767)
   at org.apache.axis.client.Call.invoke(Call.java:2443)
   at org.apache.axis.client.Call.invoke(Call.java:2366)
   at org.apache.axis.client.Call.invoke(Call.java:1812)
   at com.konakart.ws.KKWebServiceEngSoapBindingStub.getAllProducts(Unknown Source)
   at org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.com_konakart.elements.NewProductsBody_jsp._jspService(NewProductsBody_jsp.java:76)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:386)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
   at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
   at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
   at org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:188)
   at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:163)
   at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:619)
   at org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRequestDispatcher.java:417)
   at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:167)
   at org.opencms.jsp.CmsJspTagInclude.includeActionWithCache(CmsJspTagInclude.java:356)
   at org.opencms.jsp.CmsJspTagInclude.includeTagAction(CmsJspTagInclude.java:232)
   at org.opencms.jsp.CmsJspActionElement.include(CmsJspActionElement.java:544)
   at org.opencms.jsp.CmsJspActionElement.include(CmsJspActionElement.java:485)
   at org.opencms.jsp.CmsJspActionElement.include(CmsJspActionElement.java:571)
   at org.opencms.jsp.CmsJspActionElement.include(CmsJspActionElement.java:424)
   at org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.com_konakart.elements.index_jsp._jspService(index_jsp.java:78)
   ... 35 more
Caused by: java.net.ConnectException: Connection refused
   at java.net.PlainSocketImpl.socketConnect(Native Method)
   at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:327)
   at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:193)
   at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:180)
   at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
   at java.net.Socket.connect(Socket.java:546)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:616)
   at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:153)
   at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:120)
   at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
   at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
   at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
   ... 69 more
plse help me whats going wrong
thanks!

ryan


pawan

Thanks ryan,
                          To enable SOAP  API. As mentionioned in user guide I am using the command as
C:\Program Files\KonaKart\custom>.\bin\ant enableWebServices

but this command is not executing successfully getting error as
Buildfile: build.xml does not exist!
Build failed
please give me the solution.

kate

If you are in the custom directory it should find the build.xml file that's there.

pawan

Thanks Kate,
                           yes in the custom directory there is build.xml file but what is the problem when i run the following commond in ubuntu

/usr/local/konakart/custom/bin/ant enableWebServices
Buildfile: build.xml does not exist!
Build failed
why this problem is coming.

Thanks for the help.

kate

first you showed Windows, now *nix... I don't know what you're doing.

you must be in the right (custom) directory for it to find the build.xml


pawan

Thanks Kate,
                    i enabled soap web services and still getting the same error.
error:
javax.servlet.jsp.JspException: java.net.ConnectException: Connection refused: connect
Reason: ; nested exception is:
java.net.ConnectException: Connection refused: connect
Reason: Connection refused: connect
Detail of the error:
javax.servlet.ServletException: javax.servlet.jsp.JspException: java.net.ConnectException: Connection refused: connect
   at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858)
   at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
   at org.apache.jsp.WEB_002dINF.jsp.offline.sites.default_.konakart_002dintegration.index_jsp._jspService(index_jsp.java:95)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
   at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
   at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
   at org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:188)
   at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:163)
   at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:619)
   at org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRequestDispatcher.java:417)
   at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:167)
   at org.opencms.loader.CmsJspLoader.dispatchJsp(CmsJspLoader.java:893)
   at org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:524)
   at org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java:1049)
   at org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1596)
   at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:153)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
   at java.lang.Thread.run(Thread.java:619)
Caused by: java.net.ConnectException: Connection refused: connect
   at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
   at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
   at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
   at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
   at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
   at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
   at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
   at org.apache.axis.client.Call.invoke(Call.java:2767)
   at org.apache.axis.client.Call.invoke(Call.java:2443)
   at org.apache.axis.client.Call.invoke(Call.java:2366)
   at org.apache.axis.client.Call.invoke(Call.java:1812)
   at com.konakart.ws.KKWebServiceEngSoapBindingStub.getAllProducts(Unknown Source)
   at org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.com_konakart.elements.NewProductsBody_jsp._jspService(NewProductsBody_jsp.java:76)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
   at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
   at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
   at org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:188)
   at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:163)
   at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:619)
   at org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRequestDispatcher.java:417)
   at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:167)
   at org.opencms.jsp.CmsJspTagInclude.includeActionWithCache(CmsJspTagInclude.java:356)
   at org.opencms.jsp.CmsJspTagInclude.includeTagAction(CmsJspTagInclude.java:232)
   at org.opencms.jsp.CmsJspActionElement.include(CmsJspActionElement.java:544)
   at org.opencms.jsp.CmsJspActionElement.include(CmsJspActionElement.java:485)
   at org.opencms.jsp.CmsJspActionElement.include(CmsJspActionElement.java:571)
   at org.opencms.jsp.CmsJspActionElement.include(CmsJspActionElement.java:424)
   at org.apache.jsp.WEB_002dINF.jsp.offline.sites.default_.konakart_002dintegration.index_jsp._jspService(index_jsp.java:78)
   ... 35 more
Caused by: java.net.ConnectException: Connection refused: connect
   at java.net.PlainSocketImpl.socketConnect(Native Method)
   at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
   at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
   at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
   at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
   at java.net.Socket.connect(Socket.java:519)
   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.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:153)
   at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:120)
   at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
   at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
   at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
   ... 69 more
But when i start the konakart server and then run the index.jsp then error solved.
please guide me should me start both open cms and konakart server.
Thanks