• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem after Weblogic 8.1 SP2 upgradation to SP4

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please refer the link below :

http://edocs.bea.com/wls/docs81/notes/new.html#1203188

It seems the JDBC drivers were updated with this service pack release of weblogic. This may have caused the change.

-Pankaj
 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Just replace the Jar file "ojdbc14.jar(1332kb)" in the lib folder (Drive:\bea\weblogic81\server\lib)
with the jar file available in the following directory
D:\bea\weblogic81\server\ext\jdbc\oracle\920\ojdbc14.jar(1632kb) for 9i
this is specific to the 91 database
hope it may help u if jdbc performances

Regards
Sudhakar
 
My name is Inigo Montoya, you killed my father, prepare to read a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic