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

error when opening index.jsp file

Started by pawan, January 24, 2012, 11:23:25 am

Previous topic - Next topic

pawan

dear sir,
             i imported  konakart module with open cms and tried to open index.jsp but it shows error.


   
Error javax.servlet.jsp.JspException: org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: 32 in the jsp file: /WEB-INF/jsp/offline/system/modules/com.konakart/elements/NewProductsBody.jsp
The type javax.xml.rpc.ServiceException cannot be resolved. It is indirectly referenced from required .class files
29: String kkImgPath = "../resources/images/";
30:
31: // Get the products from the KonaKart engine using a SOAP call
32: KKWSEngIf eng = new KKWSEngIfServiceLocator().getKKWebServiceEng();
33: DataDescriptor dataDesc = new DataDescriptor();
34: dataDesc.setOffset(0); // Offset = 0
35: dataDesc.setLimit(9); // We only want to get back 9 products


An error occurred at line: 33 in the jsp file: /WEB-INF/jsp/offline/system/modules/com.konakart/elements/NewProductsBody.jsp
The type DataDescriptor is ambiguous
30:
31: // Get the products from the KonaKart engine using a SOAP call
32: KKWSEngIf eng = new KKWSEngIfServiceLocator().getKKWebServiceEng();
33: DataDescriptor dataDesc = new DataDescriptor();
34: dataDesc.setOffset(0); // Offset = 0
35: dataDesc.setLimit(9); // We only want to get back 9 products
36: dataDesc.setOrderBy(DataDescConstants.ORDER_BY_DATE_ADDED);


An error occurred at line: 33 in the jsp file: /WEB-INF/jsp/offline/system/modules/com.konakart/elements/NewProductsBody.jsp
The type DataDescriptor is ambiguous
30:
31: // Get the products from the KonaKart engine using a SOAP call
32: KKWSEngIf eng = new KKWSEngIfServiceLocator().getKKWebServiceEng();
33: DataDescriptor dataDesc = new DataDescriptor();
34: dataDesc.setOffset(0); // Offset = 0
35: dataDesc.setLimit(9); // We only want to get back 9 products
36: dataDesc.setOrderBy(DataDescConstants.ORDER_BY_DATE_ADDED);


An error occurred at line: 37 in the jsp file: /WEB-INF/jsp/offline/system/modules/com.konakart/elements/NewProductsBody.jsp
The type Products is ambiguous
34: dataDesc.setOffset(0); // Offset = 0
35: dataDesc.setLimit(9); // We only want to get back 9 products
36: dataDesc.setOrderBy(DataDescConstants.ORDER_BY_DATE_ADDED);
37: Products products = eng.getAllProducts( /* sessionId which can be null since the user hasn't logged in to KK */ null,
38: /* Data Descriptor defining how many products, the offset and the sort order */ dataDesc,
39: /* The language id. -1 for the default store language */ -1);
40: Product[] prods = products.getProductArray();


An error occurred at line: 40 in the jsp file: /WEB-INF/jsp/offline/system/modules/com.konakart/elements/NewProductsBody.jsp
The type Product is ambiguous
37: Products products = eng.getAllProducts( /* sessionId which can be null since the user hasn't logged in to KK */ null,
38: /* Data Descriptor defining how many products, the offset and the sort order */ dataDesc,
39: /* The language id. -1 for the default store language */ -1);
40: Product[] prods = products.getProductArray();
41: %>
42:
43:


An error occurred at line: 57 in the jsp file: /WEB-INF/jsp/offline/system/modules/com.konakart/elements/NewProductsBody.jsp
The type Product is ambiguous
54: <table border="0" width="100%" cellspacing="0" cellpadding="4" class="infoBoxContents">
55: <tr>
56: <%for (int i = 0; i < prods.length; i++){%>
57: <%Product prod = prods;%>
58: <%if ( i% 3 == 0 && i != 0) { %>
59: </tr><tr>
60: <% } %>


Stacktrace:
Reason: Unable to compile class for JSP:

An error occurred at line: 32 in the jsp file: /WEB-INF/jsp/offline/system/modules/com.konakart/elements/NewProductsBody.jsp
The type javax.xml.rpc.ServiceException cannot be resolved. It is indirectly referenced from required .class files
29: String kkImgPath = "../resources/images/";
30:
31: // Get the products from the KonaKart engine using a SOAP call
32: KKWSEngIf eng = new KKWSEngIfServiceLocator().getKKWebServiceEng();
33: DataDescriptor dataDesc = new DataDescriptor();
34: dataDesc.setOffset(0); // Offset = 0
35: dataDesc.setLimit(9); // We only want to get back 9 products


An error occurred at line: 33 in the jsp file: /WEB-INF/jsp/offline/system/modules/com.konakart/elements/NewProductsBody.jsp
The type DataDescriptor is ambiguous
30:
31: // Get the products from the KonaKart engine using a SOAP call
32: KKWSEngIf eng = new KKWSEngIfServiceLocator().getKKWebServiceEng();
33: DataDescriptor dataDesc = new DataDescriptor();
34: dataDesc.setOffset(0); // Offset = 0
35: dataDesc.setLimit(9); // We only want to get back 9 products
36: dataDesc.setOrderBy(DataDescConstants.ORDER_BY_DATE_ADDED);


An error occurred at line: 33 in the jsp file: /WEB-INF/jsp/offline/system/modules/com.konakart/elements/NewProductsBody.jsp
The type DataDescriptor is ambiguous
30:
31: // Get the products from the KonaKart engine using a SOAP call
32: KKWSEngIf eng = new KKWSEngIfServiceLocator().getKKWebServiceEng();
33: DataDescriptor dataDesc = new DataDescriptor();
34: dataDesc.setOffset(0); // Offset = 0
35: dataDesc.setLimit(9); // We only want to get back 9 products
36: dataDesc.setOrderBy(DataDescConstants.ORDER_BY_DATE_ADDED);


An error occurred at line: 37 in the jsp file: /WEB-INF/jsp/offline/system/modules/com.konakart/elements/NewProductsBody.jsp
The type Products is ambiguous
34: dataDesc.setOffset(0); // Offset = 0
35: dataDesc.setLimit(9); // We only want to get back 9 products
36: dataDesc.setOrderBy(DataDescConstants.ORDER_BY_DATE_ADDED);
37: Products products = eng.getAllProducts( /* sessionId which can be null since the user hasn't logged in to KK */ null,
38: /* Data Descriptor defining how many products, the offset and the sort order */ dataDesc,
39: /* The language id. -1 for the default store language */ -1);
40: Product[] prods = products.getProductArray();


An error occurred at line: 40 in the jsp file: /WEB-INF/jsp/offline/system/modules/com.konakart/elements/NewProductsBody.jsp
The type Product is ambiguous
37: Products products = eng.getAllProducts( /* sessionId which can be null since the user hasn't logged in to KK */ null,
38: /* Data Descriptor defining how many products, the offset and the sort order */ dataDesc,
39: /* The language id. -1 for the default store language */ -1);
40: Product[] prods = products.getProductArray();
41: %>
42:
43:


An error occurred at line: 57 in the jsp file: /WEB-INF/jsp/offline/system/modules/com.konakart/elements/NewProductsBody.jsp
The type Product is ambiguous
54: <table border="0" width="100%" cellspacing="0" cellpadding="4" class="infoBoxContents">
55: <tr>
56: <%for (int i = 0; i < prods.length; i++){%>
57: <%Product prod = prods;%>
58: <%if ( i% 3 == 0 && i != 0) { %>
59: </tr><tr>
60: <% } %>


Stacktrace:



please help me and save my life.
thanks!

julie


pawan

Thanks a lot for the quick help,
                Dear Sir/Mam,
                                i restart my open cms and when i open the index.jsp then the following error displayed:


Error javax.servlet.jsp.JspException: org.xml.sax.SAXException: Invalid element in com.konakart.wsapp.Products - categoryFacets
Reason: ; nested exception is:
org.xml.sax.SAXException: Invalid element in com.konakart.wsapp.Products - categoryFacets
Reason: Invalid element in com.konakart.wsapp.Products - categoryFacets

when i click on detail it is showing::
javax.servlet.ServletException: javax.servlet.jsp.JspException: org.xml.sax.SAXException: Invalid element in com.konakart.wsapp.Products - categoryFacets
   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:194)
   at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:169)
   at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:555)
   at org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRequestDispatcher.java:423)
   at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:173)
   at org.opencms.loader.CmsJspLoader.dispatchJsp(CmsJspLoader.java:829)
   at org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:512)
   at org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java:1052)
   at org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1492)
   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: org.xml.sax.SAXException: Invalid element in com.konakart.wsapp.Products - categoryFacets
   at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
   at org.apache.axis.client.Call.invoke(Call.java:2470)
   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:194)
   at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:169)
   at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:555)
   at org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRequestDispatcher.java:423)
   at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:173)
   at org.opencms.jsp.CmsJspTagInclude.includeActionWithCache(CmsJspTagInclude.java:364)
   at org.opencms.jsp.CmsJspTagInclude.includeTagAction(CmsJspTagInclude.java:241)
   at org.opencms.jsp.CmsJspTagInclude.includeTagAction(CmsJspTagInclude.java:166)
   at org.opencms.jsp.CmsJspActionElement.include(CmsJspActionElement.java:510)
   at org.opencms.jsp.CmsJspActionElement.include(CmsJspActionElement.java:534)
   at org.opencms.jsp.CmsJspActionElement.include(CmsJspActionElement.java:422)
   at org.apache.jsp.WEB_002dINF.jsp.offline.sites.default_.konakart_002dintegration.index_jsp._jspService(index_jsp.java:78)
   ... 35 more
Caused by: org.xml.sax.SAXException: Invalid element in com.konakart.wsapp.Products - categoryFacets
   at org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:258)
   at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
   at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
   at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
   at org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerImpl.java:369)
   at org.apache.axis.encoding.ser.BeanDeserializer.startElement(BeanDeserializer.java:154)
   at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048)
   at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
   at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
   at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
   at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
   at org.apache.axis.client.Call.invoke(Call.java:2467)
   ... 62 more

julie

Follow the instructions to point the module to your local version of KonaKart. At the moment the SOAP calls are being sent to our server which has a newer version of KonaKart installed and so the WSDLs don't match.