• 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

Error while running jsp in weblogic

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I m getting the following error when i tried to view the jsp file after deploying the .war file in weblogic.. The error is as follows,
C:\DOCUME~1\KAVITH~1.SIV\LOCALS~1\Temp\jsp_servlet\__sample.java:17: cannot access samples.vo.ManualBalanceVO
bad class file:

C:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_Samples_Samples\jarfiles\_wl_cls_gen.jar(samples/vo/ManualBalanceVO.class)
class file has wrong version 49.0, should be 48.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
import samples.vo.ManualBalanceVO; //[ /Sample.jsp; Line: 1]
^
1 error

I m referring to this ManualBalanceVO which is in the package "samples.vo"

Help me out.. Thanx in advance...
 
Ranch Hand
Posts: 464
Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
whats the location of your deployment files?
[ April 21, 2006: Message edited by: Venkatesh Sai ]
 
Kavitha Kamalanathan
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have got it solved.. I jus compiled the ManualBalanceVO.java using the option "-source 1.4" . This creates the class files with version 48.0

Background information:
Java 1.4 creates class files labeled with version 48.0
Java 1.5 creates class files labeled with version 49.0

Java 1.4 can't run class files labeled with version 49.0

Thanx ....
 
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It can... there are just certain scenarios that will produce code that if compiled as 1.5 will not run on 1.4/1.3. Likewise, some code compiled as 1.4 will not run on 1.3.
 
Kavitha Kamalanathan
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I Still have a doubt , Actual scenario goes like this ,

I have a jsp file "JSP1.jsp", servlet "FILE1.class" and a class file "FILE2.class". JSP and servlet is referring to "FILE2.class" class file. I transfer the control from jsp to servlet and then back to the same jsp with certain values set to display in the client side.Control will be transferred to servlet when the form is submitted..
Why isnt the same problem coming with servlet class files. I m facing this problem only with "FILE2.class" i.e ordinary class and not with "FILE1.class" which is a servlet.I compile both files in the same manner.

Hope I m clear...
 
My first bit of advice is that if you are going to be a mime, you shouldn't talk. Even the tiny ad is nodding:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic