augustinejk
asked on
getting Internal error: Unexpected error condition thrown - from iPlanet
Hi,
I am getting the following error while trying to access a jsp file from iPlanet. Could anyone please help
Internal error: Unexpected error condition thrown (java.lang.NoClassDefFound Error: sun/tools/javac/Main,sun/t ools/javac /Main), stack: java.lang.NoClassDefFoundE rror: sun/tools/javac/Main at com.iplanet.server.http.se rvlet.IWSJ avaC.compi le(Compile d Code) at com.iplanet.server.http.se rvlet.JSPC ompiler.co mpileJSP(J SPCompiler .java:110) at com.iplanet.server.http.se rvlet.JSPC ompiler.co mpileInsta nce(JSPCom piler.java :125) at com.iplanet.server.http.se rvlet.NSSe rvletEntit y.load(NSS ervletEnti ty.java:31 1) at com.iplanet.server.http.se rvlet.NSSe rvletEntit y.update(N SServletEn tity.java: 173) at com.iplanet.server.http.se rvlet.NSSe rvletRunne r.Service( NSServletR unner.java :416)
I am getting the following error while trying to access a jsp file from iPlanet. Could anyone please help
Internal error: Unexpected error condition thrown (java.lang.NoClassDefFound
ASKER
Thanks for the help.
now I am getting the version mismatch error. I using iPlanet 6.0 and j2sdk 1.4.0
Internal error: Unexpected error condition thrown (java.lang.UnsupportedClas sVersionEr ror: sun/tools/javac/Main (Unsupported major.minor version 48.0),sun/tools/javac/Main (Unsupported major.minor version 48.0)), stack: java.lang.UnsupportedClass VersionErr or: sun/tools/javac/Main (Unsupported major.minor version 48.0)
now I am getting the version mismatch error. I using iPlanet 6.0 and j2sdk 1.4.0
Internal error: Unexpected error condition thrown (java.lang.UnsupportedClas
you need tools.jar from the JDK you are running iPlanet with...
ASKER
The jsp files are working fine now. But when I use a bean in jsp it throws the following error. could anyone please help.
JSP compilation error: java.lang.Exception: msg_badTagEnding, stack: java.lang.Exception: msg_badTagEnding at java.lang.Throwable.fillIn StackTrace (Native Method) at java.lang.Throwable.fillIn StackTrace (Compiled Code) at java.lang.Throwable.<init> (Compiled Code) at java.lang.Exception.<init> (Compiled Code) at com.iplanet.server.http.js p.jsp092.J SP.parseBl ock(Compil ed Code) at com.iplanet.server.http.js p.jsp092.J SP.parseTa g(Compiled Code) at com.iplanet.server.http.js p.jsp092.J SP.parseNe xt(Compile d Code) at com.iplanet.server.http.js p.jsp092.J SP.parseBl ock(Compil ed Code) at com.iplanet.server.http.js p.jsp092.J SP.parse(J SP.java:60 8) at com.iplanet.server.http.js p.jsp092.J SP.compile (JSP.java: 728) at com.iplanet.server.http.se rvlet.JSPC ompiler.JS PtoJava(JS PCompiler. java:67) at com.iplanet.server.http.se rvlet.JSPC ompiler.co mpileJSP(J SPCompiler .java:84) at com.iplanet.server.http.se rvlet.JSPC ompiler.co mpileInsta nce(JSPCom piler.java :125) at com.iplanet.server.http.se rvlet.NSSe rvletEntit y.load(NSS ervletEnti ty.java:31 1) at com.iplanet.server.http.se rvlet.NSSe rvletEntit y.update(N SServletEn tity.java: 173) at com.iplanet.server.http.se rvlet.NSSe rvletRunne r.Service( NSServletR unner.java :416)
JSP compilation error: java.lang.Exception: msg_badTagEnding, stack: java.lang.Exception: msg_badTagEnding at java.lang.Throwable.fillIn
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
index.jsp file
-------------------------- ---------- ---------- ---------- -
<%@ page import="java.util.*" %>
<%@ page import="java.io.*" %>
<%@ page import="com.admin.*"%>
<jsp:useBean id="admin" scope="page" class="com.admin.AdminTool " />
<html>
<head><title>Admin Tool</title></head>
<body>
<%=admin.getHtmlContent()% >
</body>
</html>
AdminTool.java
-------------------------- ---------- ---------
package com.admin;
import java.io.*;
import java.util.*;
public class AdminTool{
public String getHtmlData(){
--some code ----
return HtmlString;
}
}
--------------------------
<%@ page import="java.util.*" %>
<%@ page import="java.io.*" %>
<%@ page import="com.admin.*"%>
<jsp:useBean id="admin" scope="page" class="com.admin.AdminTool
<html>
<head><title>Admin Tool</title></head>
<body>
<%=admin.getHtmlContent()%
</body>
</html>
AdminTool.java
--------------------------
package com.admin;
import java.io.*;
import java.util.*;
public class AdminTool{
public String getHtmlData(){
--some code ----
return HtmlString;
}
}
ASKER
I am migrating the code from jrun to iplanet. in jrun I have placed the AdminTool.claas under WEB-INF/classes/com/admin, same way I have also done in iplanet. Is there any specific way fro deploying class files.
since I am deviating from the original question i am increasing the points to 400
since I am deviating from the original question i am increasing the points to 400
Tim