-
Help me out -- java.lang.RuntimeException: Unknown/unsupported charset:
Hi,
Previously our application is running fine in
iPlanet web server 4 and some times in Tomcat. Now we
are migrating this application to weblogic 8.1 due to
some load.
After migrating to weblogic 8.1 we are getting some
exception.
The exception is:
Servlet failed with Exception
java.lang.RuntimeException: Unknown/unsupported
charset: - java.io.UnsupportedEncodingException:
Charset: '' not recognized, and there is no alias for
it in the WebServerMBean
at
weblogic.servlet.jsp.JspParser.parse(JspParser.java:288)
at
weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:125)
......................................
........................
In my Jsp page we have top declarations like in the
below:
<%@ include file="header.jsp" %>
<%@ page import="com.customer.customercare.servlet.*"
%>
<%@ page import="com.customer.customercare.types.*" %>
<%@ page import="com.customer.customercare.search.*"
%>
<%@ page import="com.customer.customercare.utils.*" %>
<%@ page import="com.customer.customercare.log.*"%>
<%@ page import="java.util.Date" %>
<%@ page import="com.customer.customercare.utils.*" %>
<%@ page
import="com.customer.customercare.servlet.handler.*"
%>
<%@ page import="java.sql.Timestamp"%>
<%@ page import="java.text.SimpleDateFormat"%>
<%@ page import="java.util.StringTokenizer"%>
<%@ page import="java.util.Calendar"%>
We are not using any charter sets in the above page
directory but we are using that in a meta tag:
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
This might cause any problem?
I tried charset=UTF-8, windows-1252 and UTF-16. But i
am getting the same error.
The thing is i am not getting this error from the JSP
page. This jsp page calls a java class, that java
class has a prepared statement. When the prepared
statement is executed or before execution, this error is thrown on weblogic console. That
error is not related to SQL.
I think "charset" exception means it should come in JSP only. But i don't know why it is
coming in the java class? i am confused?
I don't know why exactly that error is coming...?
My application is compiled in JDK1.3.1_08 and running
in weblogic 8.1 which internally uses JDK1.4. Is this
because of version problem?
I am creating the .war file from the command prompt
which path is set to JDK1.3.1_08...
Can anybody help me out in this problem?
Thanks and Regards,
Chandu.
-
Haven't used weblogic for ages but....
My application is compiled in JDK1.3.1_08 and running
in weblogic 8.1 which internally uses JDK1.4.
Chances are that the 8.1 weblogic is utilizing java1.4 specific code so, in
this state of confusion, the first thing I would have done was to upgrade
to 1.4, at least just to rule that possibility out.
eschew obfuscation
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks