Default-charset in oc4j 10.1.3

Hi,
We are planning on migrating to OC4J 10.1.3.
It seems default-charset in global-web-application.xml is not recognized by OC4J 10.1.3 as it was in 9.0.3.
I can see lot of discussions about default-charset in this forum, could not find any answer to my problem.
Here is the header of my global-web-application.xml
<orion-web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/orion-web-10_0.xsd"
jsp-cache-directory="./persistence"
servlet-webdir="/servlet"
development="false"
jsp-timeout="0"
jsp-cache-tlds="standard"
schema-major-version="10"
schema-minor-version="0"
default-charset="UTF-8"
>
Please note I also have the jsp page directive as it was used in 9.0.3.
<%@page language ="java" contentType="text/html; charset=UTF-8" %>
Any help will be appreciated. Please try testing on German umlaut character ü (ms keyboard entry ALT+129).
Thanks,
ddas

In previous OC4J versions, the "servlet-webdir"
attribute was used as the default servlet path
whenever there was no "servlet-mapping" element
defined in the "web.xml" file of the Web application.
The above excerpt indicates that this is no longer
true for OC4J 10.1.3 -- unless you set the java
[System] property "http.webdir.enable" to 'true'. In
fact, without a "servlet-mapping" element you cannot
activate your servlet at all!
My point is that after reading the above, that I must
forget everything I knew about OC4J (in versions
prior to 10.1.3). 10.1.3 is a totally
different product to its predecessors. I must now
start learning OC4J from scratch. So pardon me while
I throw the last four years of my work experience
with OC4J down the toilet.I can see your point and share your sentiment. However, your last exaggeration sounds funny. That was just a minor change needed for security requirement. In case you use Jdeveloper, servlet declaration and mapping will be done automatically for you. After all, if it does not work, this forum and formal oracle support will help you.
Apart from usnig this post to vent my anger and
frustration with the Oracle OC4J development team
(yes you, messrs Debu Panda, Steve Button, Qiang Lin,
Deepak Arora and others), I wish to inform you,
Matic, that if the behaviour of the "servlet-webdir"
attribute has changed, most probably that of the
"default-charset" attribute has also changed.
So please Oracle OC4J people, inform us where we can
find information/documentation explaining the
behaviour changes of OC4J 10.1.3.0.0 stand-alone as
compared with previous versions.Thanks for the suggestion, Avi. I will ask the documentation writer to see if they have documented that change of behavior of the "servlet-webdir" and if not, document them in an appropriate book such as upgrade guide.
By the way, I do not think the semantic of "default-charset" attribute has changed from 10.1.2 to 10.1.3. If you know it otherwise, please provide a test case for me. Thanks.

Similar Messages

  • JDev 1013 EA1 : embeded OC4J default-charset problem

    Hi
    I'm a web-application programmer interesting in JDeveloper.
    I had tried development using JDeveloper 10.1.2
    When I used 10.1.2, I add [default-charset="EUC-KR"] to [JDEV_HOME/systemXX/config/global-application.xml]
    - or [deployment-application/XXX/XXX/orion-web.xml] -
    Because I don't use alphabet.
    Anyway, it have effect.
    But I encountered problem, after use JDeveloper 10.1.3 EA1.
    I set default-charset in embeded-OC4J.
    But it had no effect.
    If that is a bug, please tell me how to use a installed OC4J in JDeveloper.
    Please help me.
    Thanks for read this message
    Message was edited by:
    user453010

    This looks like a bug in OC4J
    Can you try this and let us know if it works?
    Set the charset in the application level orion-web.xml and deploy it to the Stand alone OC4J and see if it works.
    1. Add a new OC4J Deployment Descriptor to your project
    2. Choose orion-web.xml
    3. Open the file in editor
    4. Set the default-charset setting
    <orion-web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/orion-web-10_0.xsd"
    schema-major-version="10" schema-minor-version="0"
    servlet-webdir="/servlet/" default-charset="EUC-KR"></orion-web-app>
    (Make sure all the other settings are set right. Similar to what you see in [deployment-application/XXX/XXX/orion-web.xml] )
    5. Create a WAR deployment profile
    6. Deploy the application to Standalone OC4J connection

  • Why is the default charset is GBK , not utf-8 or GB18030  for Chinese OS???

    Why is the default charset is GBK , not UTF-8 or GB18030 for Chinese OS???
    GBK is obsolete in China.
    UTF-8 is reasonable for modern computer.

    user12833994 wrote:
    And It is none business of translating .Strings in java are UTF8. Period. Nothing else. Not ever.
    Thus input into java always becomes UTF8.
    And output starts as UTF8 and then is translated into whatever the target is.

  • Getting the default charset.

    Hi,
    I need to get the default charset of the platform that I am using. I found a workaround by using an InputStreamReader with the required parameters and calling getEncoding() method. After this, I can user Charset.forName(...). On Windows platform, I get "Windows-1252". That's ok.
    This solution works but, maybe someone knows a simpler way to get the same information. This is what I would like to know.
    Thanks !

    Just been looking for exactly the same thing, so Google led me here. It also lead me to this:
    http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/Charset.html
    In Java 1.5 ( but not in earlier versions), the Charset class contains a defaultCharset() static method, defined when the JVM starts up.
    Hope this helps.

  • Default charset

    I'd like to stop my Xserve serving pages with a default charset of UTF-8. Instead I want my web pages to specify the charset to be used in the <head> section.
    How can I do this? I cannot see where to make the change in Server Admin.

    Was your user (session) language set to English US as well? OUI will use the Java locale, which is set based on the Windows user language (language, not location). The easiest way to check the user language is usually to look at the clock in the Taskbar. Weekdays and month names will be in the selected language.
    -- Sergiusz

  • What is the default Charset?

    Quick questions: What is the default charset used in the String class?
    Thanks.
    Herong

    On my system, I am getting file.encoding=Cp1252. Here is some of
    the properties on my system:
    java.vm.version=1.4.1_01-b01
    java.vm.name=Java HotSpot(TM) Client VM
    java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
    os.arch=x86
    os.name=Windows 2000
    file.encoding=Cp1252
    My question was really:
    What is the Charset the JVM will use on the following statement?
    byte[] b = str.getBytes();
    Is it the same as the file.encoding?
    The API Specification only says using the platform's default charset.
    It does not tell me how to find out what is the platform's default charset.
    Thanks.
    Herong

  • Default Charset with Non-English

    I thought it might be the old FAQ. But I tried find out the answer from google or others. That's all the old answer.
    OS: Leopard,
    Application: Apple Mail
    Environment: Chinese, Big5
    Problem desc,
    Due to I need to write the chnese mail to the other people who use the Outlook or other mail client not Mac.
    The problem happened, They always get the mess mail content from me.
    I know I can adjust the charset before I send out the mail.
    But sometimes, I can not change the charset, the Mail will tell me my content include different something which can not send by BIG5.
    Then that force me to change to Thunderbird.
    I also tried to change the default "NSPreferredMailCharset" to "BIG5". But it seems not work in Leopard.
    So please tell me what can I do to avoid this situation. I want to use the Apple Mail instead of TB.

    You can also try UTF-8 if Big5 does not fit what you need to send. Also always send Plain Text instead of Rich Text if possible, to avoid various bugs in Outlook. Sometimes the only fix is to use another mail client.
    Also you can ask on the chinese-mac mailing list:
    http://groups.google.com/group/chinesemac/

  • Default.env ignored (OC4J / Windows)

    I am using OC4J on Windows to run forms, and I cannot override environment variables specified in a file.
    By default, the file default.env is specified in formsweb.cfg, and whilst the file is obviously being found (servlet refuses to start if it doesn't exist), it seems to ignore all of the values (I am particularly keen to set FORMS90_PATH).
    I can successfully set the environment variable in the session which invokes the OC4J server, or the value set in the registry is used, but neither of these seems to be over-ridden by the value in default.env, which it should be, according to the documentation.
    I get the same behaviour in 9.0.2 and 9.0.4

    I think in windows 32 bit the max length possible is 255 and in 64 bit it is 520
    There is no limit on number of entries and the limit is the total length.
    Basically whether in windows or unix what ever is the env variable size/length limit the same is applicable to classpath.
    You can test with length of 255 or more characters with classpath
    Rajesh

  • How to define default charset

    Hi.
    I want to make the app server add "charset=windows-1251" into Content-Type: header line for server1 virtual server.
    Content-Type: text/html;charset=windows-1251I tried to set Character set variable on Virtual Servers->server1->Doc Handling->International Characters page to windows-1251, apply changes and restart the instance but that did not help. I still receive just
    Content-Type: text/htmlHow to make app server to send a proper charset?

    How can i set an portuguese (pt_PT) charset so i
    don't get this problem?What does question have to do with java?
    Kaj

  • Unable to set Default charset to UTF-8

    So I've added the following to /etc/httpd/conf/httpd.conf:
    AddDefaultCharset utf-8
    Still firefox reports that my phpfiles are using ISO-8859-1 even though defaulcharset and the files encoding is utf-8.
    What am I doing wrong? I converted the file to UTF-8 with notepad++.
    Problem is that Å Ä Ö don't work properly. They never work when echoed from mysql.
    Last edited by XAM (2010-07-02 11:49:19)

    Banton wrote:Have you set <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> in html header?
    Yes, but I've created a phpfile with the following code, nothing else is in the file.
    <?php echo'Å Ä Ö'; ?>
    Does not work, it echoes out wierd characters.
    karol wrote:> They never work when echoed from mysql.
    Are the files generated dynamically? If so, you should check the mysql part.
    mysql is set to utf-8.

  • Changing default xmlparser in OC4J

    Hi to all,
    in the past few days I patched STXX (stxx.sourceforge.net) to work with BC4J (BC4JStruts) because we need to produce PDF document.
    I rebuild the oc4j.jar deleting form the manifest.mf the reference to xmlparserv2 and leaving the ones to crimson, xalan and jaxp. This because using xmlparser I obtain this exception:
    java.lang.NullPointerException
    void oracle.xml.parser.v2.DocumentBuilder.startDocument()
         DocumentBuilder.java:393
    void oracle.xml.jaxp.JXTransformerHandler.startDocument()
    JXTransformerHandler.java:119
    void com.oroad.stxx.transform.CachedFOPTransformer.transform(com.oroad.stxx.action.ActionTransform, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
    CachedFOPTransformer.java:226
    The application now works and produce fine pdfs.
    Is there a way to modify the oc4j's classpath without repackge the jar file?
    Thanks,
    Roberto

    I am getting the following error when trying to perform XML transformation with Stxx on top of Struts:
    java.lang.NullPointerException
         at oracle.xml.parser.v2.DocumentBuilder.startDocument(DocumentBuilder.java:414)
    Under $OC4J_HOME (/usr/local/oc4j/j2ee/home) I start OC4J as follows:
    java -Xbootclasspath/a:/usr/local/lib/xerces.jar -jar oc4j.jar
    I still get the NullPointer and I get this error in my log4j log file: XSL-1108: (Error) Invalid Source - URL format is incorrect.
    I am running OC4J 9.0.4 on Linux (Redhat). I do not seem to have this problem when I run the same version of OC4J with the same code base on Mac OSX.
    Mike

  • Renaming default report server OC4J container

    Hi all,
    I have recently had to re-install my 2 app servers from scratch ( dont ask please !!) they are Oracle 10g App Server ver 9.0.4.1.0 and both look at the same underlining DB.
    Before "everything went wrong......." the Report Server container was named to repserver1. Which meant switching between app servers was a bit easier. now after the default installations on both App servers are called rep_ap-1 or rep_ap-2.....does anyone know how to switch these back or even rename them ?
    Thanks in advance,
    Jason

    hi
    u have to start the report sever before displaying report.
    and its better if you start your report server something like this.
    rwserver  server=server_name startbecause if you use batch=yes sometime cause of using batch=yes you will get error.So better to use the above command.
    hope it helps you.
    sarah

  • Oc4j and Charset

    Hi,
    we have little problem with national characters.
    Problem is when I use:
    java 1.4, oc4j 903 '020927' (or AS 903 with embeded oc4j).
    - "Our app doesn't show some national characters well."
    I tried set param default-charset="windows-1250" in the file orion-web.xml (I also tried set it in the ..home/config/global-web-application.xml )
    (If I use java 1.4, oc4j 904, and set param as I described above everything is well.)
    Thanks for any advice.
    Zajo

    Well, in our case the difference between oc4j 903 & 904 is in the jsp.
    Our jsp start:
    <%@ page contentType="text/html;windows-1250" language="java" %>
    If you are using oc4j 904 everything is ok.
    But if you are using oc4j 903 you have to use this syntax:
    <%@ page contentType="text/html;charset=windows-1250" language="java" %>
    Also you have to setup global-web-application.xml /or orion-web-app.xml/ for your default charset.
    example...<orion-web-app
    default-charset="windows-1250"
    >
    >>>
    Zajo

  • How to create a ClobDomain object with a default's different charset.

    Hi,
    I'm developing a 10.1.3. ADF Faces application that need to upload a File to a CLOB column. The user will usually upload a text file CP1252 charset, but in samples like this:
    // read data into a character array
    char[] data = {'0','1','2','3','4','5','6','7','8','9'};
    // write the array of character data to a CLOB
    writer = ((CLOB)my_clob).getCharacterOutputStream();
    writer.write(data);
    writer.flush();
    writer.close();
    The writer object is always a defaults charset writer.
    Does anybody knows how to do this?
    Thanks,
    Edited by: Samuel Fisch on 05/01/2010 02:06

    Samuel,
    My understanding is that unicode should be able to hold all possible characters codes. So you upload something in unicode, store it in the db and later on view it from the db you should see the contents of the clob (in the default encoding of your pc).
    The question for me is if the db can store all character codes. this is not the case if you use an oracle db and have not set the db character code to unicode (i.e. utf-8). In this case all characters of the input stream which are not part of the db character set are mapped to <b>one</b> special character code which you can't read. When you read the clob back you see some strange characters.
    This is not the problem of writing/reading the clob but a problem with the db character set.
    If you load data to the clob from a system using windows-1252 character set and this data contains some special characters like 'öäü', the db character set is set to utf-8, you should be able to read the clob data on a system using iso-8859-1 character set (or any other which have 'äöü') and see the special characters. That's the reason the reader/writer uses the system default character set.
    If you see a different behavior, describe where you see the error or wrong characters.
    Timo

  • What is the oc4j's default port?

    What is the oc4j's default port? I want to type the address in browser's address bar and see the default page of oc4j (ex.: http://localhost:8080)
    Thanks
    sávio

    hi,
    in the local machine it is 8889
    and the default in the aPP SERVER IS 7778
    you can change them but i dont know how,for the app server its easy,but I had never try to change it in the local.
    good luck

Maybe you are looking for

  • Please help - I need to find a compatable UK ISP provider

    I recently bought a MAc Mini and my ISP doesn't work on it. I was told by my current ISP that I need to buy a wireless connection, so went to John Lewis and bought a Airport (the guy in the shop said this would work on my Mac Mini). I have not been a

  • Is there any way (API ?) to access the UDS repository directly ...?

    This is probably reviving some older thread from way back in 1998 when similar questions where asked ... I am working on a program of my own (writing it in Borland Delphi), and I would like to have access to the Repository. One way I could think of i

  • Utl_file help!!!

    Hey people :) Below is my code it is produces a list of names address for a mail merge, an example of an outputted file: 32-36 GREAT VICTORIA STREET BELFAST BT2 7BA 08448920902 0026936 000001 MRS FRAME 51 HOUSE DRIVE HOUSETOWN COUNTY ANTRIM BT36 7JY

  • Extractors in ECC 6.0

    Hello,   Is there any diffrence in extraction between ECC 6.0 to BW and R3 4.7 you BW.   We are planning to upgrade R3 4.6 to ECC 6.0 , could some experts put some light on this. Thank you Shan

  • Error in BAPI_SALESORDER_CHANGE -- Enter The Profit Center

    Hi All, Am Creating Sales Order using BDC and getting Sales order number and uploading it's  Item text using BAPI_SALESORDER_CHANGE , But am getting error as please enter profit center for last record in Bapireturn and text is not getting updated. Ev