aspose file tools*
The moose likes BEA/Weblogic and the fly likes Error while running jsp in weblogic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Error while running jsp in weblogic" Watch "Error while running jsp in weblogic" New topic
Author

Error while running jsp in weblogic

Kavitha Kamalanathan
Greenhorn

Joined: Apr 21, 2006
Posts: 10
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

Joined: Jun 27, 2005
Posts: 464

whats the location of your deployment files?
[ April 21, 2006: Message edited by: Venkatesh Sai ]
Kavitha Kamalanathan
Greenhorn

Joined: Apr 21, 2006
Posts: 10
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

Joined: Jul 18, 2001
Posts: 2712
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

Joined: Apr 21, 2006
Posts: 10
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...
 
wood burning stoves
 
subject: Error while running jsp in weblogic