Hi All,
Our application was working fine on weblogic 8.1 SP2 but it stopped working after we upgraded it to SP4. It started giving ClassCastException everywhere.
Our application is using JSP/JDBC/Java classes. In database, we are using Oracle 9i. In our
JDBC bean we are using getObject() method of ResultSet. In database, We are having the column with datatype "Date".
Now in JDBC, We are fetching our "Date" column using getObect() method of resultset and in
JSP we are typecasting it to Timestamp class.
Something like:
Timestamp ts=(Timestamp)resultset.getObject("DateOfJoining");
The above casting code was working fine with Weblogic 8.1(SP2) and oracle 91. But it stopped working after we upgrade it to Weblogic 8.1(SP4). It started giving ClassCastException. Is it a weblogic problem OR something else.
The other thing is that our application is in a jar file which is in WEB-INF/lib folder. Before upgradation it was picking path upto lib folder but after upgradation it started giving following error:
<Mar 1, 2006 8:49:51 PM PST> <Error> <HTTP> <BEA-101017> <[ServletContext(id=285
24703,name=web,context-path=/web)] Root cause of ServletException.
java.lang.NoClassDefFoundError
at com.mindspeed.incentiverpt.BAPI_IncentiveReport.getAeCodeNames(BAPI_I
ncentiveReport.java:101)
at jsp_servlet._incentiverpt.__incrpthome._jspService(__incrpthome.java:
193)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:1006)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:419)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:463)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:315)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispat
cherImpl.java:322)
at com.mindspeed.incentiverpt.IncRedirectServlet.doPost(IncRedirectServl
et.java:40)
at com.mindspeed.incentiverpt.IncRedirectServlet.doGet(IncRedirectServle
t.java:21)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:1006)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:419)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:315)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:6718)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
121)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:3764)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2644)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
>
Please reply ASAP. Thanks in Advance.