Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error while running jsp in weblogic

 
Kavitha Kamalanathan
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • 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...
 
S Venkatesh
Ranch Hand
Posts: 464
Ubuntu
  • Mark post as helpful
  • send pies
  • 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
  • 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 ....
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • 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
  • 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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic