java.lang.NoClassDefFoundError

5 pts.
Tags:
Java development
JDeveloper
Oracle 10
Oracle Application Server
Oracle development
Oracle JDeveloper
Web development
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?.

Answer Wiki

Thanks. We'll let you know when a new response is added.

I feel there is some problem in your container class. Just check the container class once.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following