5 pts.
 java.lang.NoClassDefFoundError
Hi, I need some serious help here..I use OAS 10.1.2.0.2.. I deployed my ear file to the OC4J container. And everytime I access the webpage I get this error. 500 Internal Server Error java.lang.ExceptionInInitializerError at com.experio.common.util.AppUtil.getInitialContext(AppUtil.java:71) at com.experio.common.util.AppUtil.createEJB(AppUtil.java:199) at com.experio.common.util.AppUtil.createEJB(AppUtil.java:156) at com.experio.common.util.Debug.println(Debug.java:64) at com.experio.web.control.Entry.service(Entry.java:67) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:224) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:133) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186) at java.lang.Thread.run(Thread.java:534)Caused by: com.experio.common.exception.GeneralRuntimeException: java.lang.NullPointerException at com.experio.common.util.PropertyUtil.initialize(PropertyUtil.java:116) at com.experio.common.util.PropertyUtil.<clinit>(PropertyUtil.java:86) ... 13 more 500 Internal Server Error java.lang.NoClassDefFoundError at com.experio.common.util.AppUtil.getInitialContext(AppUtil.java:71) at com.experio.common.util.AppUtil.createEJB(AppUtil.java:199) at com.experio.common.util.AppUtil.createEJB(AppUtil.java:156) at com.experio.common.util.Debug.println(Debug.java:64) at com.experio.web.control.Entry.service(Entry.java:67) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:224) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:133) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186) at java.lang.Thread.run(Thread.java:534) It is deploying well without any problems.All the components are up and running. The OC4J log file inside opmn/logs directory' shows this error 09/02/21 16:23:01 Oracle Application Server Containers for J2EE 10g (10.1.2.0.2) initialized 09/02/21 16:23:07 Entry: pre process request 09/02/21 16:23:07 java.lang.NullPointerException 09/02/21 16:23:07 at java.io.File.<init>(File.java:180) 09/02/21 16:23:07 at com.experio.common.util.PropertyUtil.getDocument(PropertyUtil.java:196) 09/02/21 16:23:07 at com.experio.common.util.PropertyUtil.getPropertyValues(PropertyUtil.java:262) 09/02/21 16:23:07 at com.experio.common.util.PropertyUtil.initialize(PropertyUtil.java:103) 09/02/21 16:23:07 at com.experio.common.util.PropertyUtil.<clinit>(PropertyUtil.java:86) 09/02/21 16:23:07 at com.experio.common.util.AppUtil.getInitialContext(AppUtil.java:71) 09/02/21 16:23:07 at com.experio.common.util.AppUtil.createEJB(AppUtil.java:199) 09/02/21 16:23:07 at com.experio.common.util.AppUtil.createEJB(AppUtil.java:156) 09/02/21 16:23:07 at com.experio.common.util.Debug.println(Debug.java:64) 09/02/21 16:23:07 at com.experio.web.control.Entry.service(Entry.java:67) 09/02/21 16:23:07 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) 09/02/21 16:23:07 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824) 09/02/21 16:23:07 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330) 09/02/21 16:23:07 at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830) 09/02/21 16:23:07 at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:224) 09/02/21 16:23:07 at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133) 09/02/21 16:23:07 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186) 09/02/21 16:23:07 at java.lang.Thread.run(Thread.java:534) I understand the container is unable to find the jar file.. But I have necessary jar files in ORACLE_HOME/J2ee/home.../applib directory. I still get the same error.I have the necessary jar files in web-inf/lib directory in the Ear file. I checked java versions and OAS jdk version they are pretty similar..Is it anything to do with system variables, classpath?. I tried them too.. Please advise I am trying this on Windows OS. Am I missing something?.

Software/Hardware used:
ASKED: February 21, 2009  11:40 PM
UPDATED: November 9, 2012  8:14 PM

Answer Wiki:
Last Wiki Answer Submitted:  Be the first to answer this question.
All Answer Wiki Contributors:  Be the first to answer this question. Michael Tidmarsh   14,060 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _