cancel
Showing results for 
Search instead for 
Did you mean: 

Urgrent!! Cannot Run Carculator J2EE Application

Former Member
0 Kudos

I am having a problem when I try and run the Calculator Application. The deployment finished successful. I am receiving the following error in my browser.

Application error occurs during processing the request.

Details: java.lang.InstantiationException: ID018236: Cannot instantiate bean. java.lang.ClassNotFoundException: class com.sap.examples.calculator.beans.CalcProxy : java.lang.Exception: Error instantiating Calculator EJBcom.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Path to object does not exist at : java:comp

at jsp_Calculator1083898774134._jspService(jsp_Calculator1083898774134.java:6)

at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:469)

at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:181)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:373)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:250)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:319)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:297)

at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:696)

at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:221)

at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)

at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:146)

at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)

at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)

at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)

at java.security.AccessController.doPrivileged(Native Method)

at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)

at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:140)

Any suggestions??

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Steps:

1)go to drive(C or D):\WINDOWS\system32\drivers\etc

2)add your server name and IP address to hosts file.

Former Member
0 Kudos

I am having exactly the same problem with the Calculator tutorial.

Could you advise how you got it working?

regards,

Tom

Former Member
0 Kudos

search this and other forums for the caculator sample app. there were a few postings early on regarding the same problem. it is caused by errors in the jsp code given in the example. if i recall correctly, the erroneous source code contains extra spaces.

Former Member
0 Kudos

HI Steve,

Are you using the Sneak Preview? If yes, please, check the EJB reference that you have set in the web.xml for the web part of the application. This should be the reason for the error you get.

Regards,

Ivo

iavor_petkov
Explorer
0 Kudos

Hi Steve,

Please specify version of the Engine (alone/managers/version.txt).

Also you can try upgrading to the latest version of the Engine - maybe there was a problem with the examples fixed later.

Best Regards: Iavor