Solved

getting Internal error: Unexpected error condition thrown - from iPlanet

Posted on 2003-11-02
8
1,132 Views
Last Modified: 2008-06-19
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.NoClassDefFoundError: sun/tools/javac/Main,sun/tools/javac/Main), stack: java.lang.NoClassDefFoundError: sun/tools/javac/Main   at com.iplanet.server.http.servlet.IWSJavaC.compile(Compiled Code)   at com.iplanet.server.http.servlet.JSPCompiler.compileJSP(JSPCompiler.java:110)   at com.iplanet.server.http.servlet.JSPCompiler.compileInstance(JSPCompiler.java:125)   at com.iplanet.server.http.servlet.NSServletEntity.load(NSServletEntity.java:311)   at com.iplanet.server.http.servlet.NSServletEntity.update(NSServletEntity.java:173)   at com.iplanet.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:416)  
0
Comment
Question by:augustinejk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 35

Expert Comment

by:TimYates
ID: 9669711
you need to make sure that tools.jar is on the classpath...

Tim
0
 
LVL 35

Expert Comment

by:TimYates
ID: 9669723
0
 
LVL 2

Author Comment

by:augustinejk
ID: 9670466
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.UnsupportedClassVersionError: sun/tools/javac/Main (Unsupported major.minor version 48.0),sun/tools/javac/Main (Unsupported major.minor version 48.0)), stack: java.lang.UnsupportedClassVersionError: sun/tools/javac/Main (Unsupported major.minor version 48.0)
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 35

Expert Comment

by:TimYates
ID: 9670479
you need tools.jar from the JDK you are running iPlanet with...
0
 
LVL 2

Author Comment

by:augustinejk
ID: 9676481
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.fillInStackTrace(Native Method)   at java.lang.Throwable.fillInStackTrace(Compiled Code)   at java.lang.Throwable.<init>(Compiled Code)   at java.lang.Exception.<init>(Compiled Code)   at com.iplanet.server.http.jsp.jsp092.JSP.parseBlock(Compiled Code)   at com.iplanet.server.http.jsp.jsp092.JSP.parseTag(Compiled Code)   at com.iplanet.server.http.jsp.jsp092.JSP.parseNext(Compiled Code)   at com.iplanet.server.http.jsp.jsp092.JSP.parseBlock(Compiled Code)   at com.iplanet.server.http.jsp.jsp092.JSP.parse(JSP.java:608)   at com.iplanet.server.http.jsp.jsp092.JSP.compile(JSP.java:728)   at com.iplanet.server.http.servlet.JSPCompiler.JSPtoJava(JSPCompiler.java:67)   at com.iplanet.server.http.servlet.JSPCompiler.compileJSP(JSPCompiler.java:84)   at com.iplanet.server.http.servlet.JSPCompiler.compileInstance(JSPCompiler.java:125)   at com.iplanet.server.http.servlet.NSServletEntity.load(NSServletEntity.java:311)   at com.iplanet.server.http.servlet.NSServletEntity.update(NSServletEntity.java:173)   at com.iplanet.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:416)  
0
 
LVL 35

Accepted Solution

by:
TimYates earned 400 total points
ID: 9677090
Can you post the JSP code?
0
 
LVL 2

Author Comment

by:augustinejk
ID: 9678694
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;
      }
}
0
 
LVL 2

Author Comment

by:augustinejk
ID: 9678812
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
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
servlet concurrency 13 132
Reading data  from excel sheet and displaying 1 97
love6 challenge java 31 133
difference between sorce folder and folder in eclipise 3 64
A hard and fast method for reducing Active Directory Administrators members.
Check out this step-by-step guide for asking an anonymous question on Experts Exchange.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question