- This topic has 1 reply, 2 voices, and was last updated 18 years, 4 months ago by Riyad Kalla.
-
AuthorPosts
-
prashantkaushikMemberHi Guys,
I’m facing a problem of facing “weblogic.servlet.jsp.CompilationException” at runtime when i try to run a struts application in myEclipse 5.0.
Actually what is happening, is that i’ve accessed a Java file in JSP and it is causing exception at runtime, though there are no compile time exception.
Weblogic Server 8 has been used for the application with JDK 1.4.2 . (previously i’m having j2Se 5.0 updates also on PC, but when i face this i delete all except 1.4.2 SDK and JRE).
User Variables of system are :
JAVA_HOME : C:\j2sdk1.4.2_12
PATH : C:\j2sdk1.4.2_12;C:\Sun\jwsdp-2.0\jwsdp-shared\bin;C:\Sun\AppServer\binSystem variable PATH doesn’t have any information about JDK.
Please help me out of this. 🙁
Further detailed stack trace is shown below :
C:\bea\user_projects\domains\mydomainForEclipse\serverForEclipse\.wlnotdelete\extract\serverForEclipse__appsdir_BasicDB_dir_BasicDB\jsp_servlet\_jsp\__addcountry.java:221: cannot access com.pkk.hibernate.VipService
bad class file: C:\bea\user_projects\domains\mydomainForEclipse\applications\BasicDB\WEB-INF\classes\com\pkk\hibernate\VipService.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.
VipService vipService = new VipService(); //[ /jsp/AddCountry.jsp; Line: 24]
^
1 errorat weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:478)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:246)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:196)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:598)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:406)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:526)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:348)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6981)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3892)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2766)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
Caused by: java.io.IOException: Compiler failed executable.exec
at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:470)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:328)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:336)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:321)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:451)
… 13 more
>
.
Riyad KallaMemberbad class file: C:\bea\user_projects\domains\mydomainForEclipse\applications\BasicDB\WEB-INF\classes\com\pkk\hibernate\VipService.class
class file has wrong version 49.0, should be 48.0Luckily the problem is straight forward. You compiled the VipService (and I’m assuming the rest of the BasicDB project) using Java 5,now you are trying to run it under Java 1.4 and it’s crashing because the 1.4 VM doesn’t understand how to load the 1.5 class files. You either need to recompile your project with the JDK compliance level set to 1.4, or go back to running weblogic with JDK 5.0.
-
AuthorPosts