Sort order in Java application (oc4j container) -- ear file deployment

I have a Java application deploy in Oracle OC4J container (EAR file).
In my Java application (jsp), I have a SQL statement who return data but the
sort order is wrong. The letters "é" and all characters with accents
appears at the end of the result.
I tried many things to change the sort order (NLS parameters in database
and OAS10g parameter files).
When I use SQL*plus on database server, that's working.
The sort order is wrong when I use the java application.
Somebody can tell me what and where is the NLS parameters to change ?
Thanks
Robin

Robin,
I'm only guessing, but it could either be related to the java locale or the CHARSET attribute of the HTML header -- and nothing to do with the NLS parameters.
Maybe you should try the Globalization Support forum?
Good Luck,
Avi.

Similar Messages

  • Sort order in Java Application (deploy in Oracle oc4j container)

    I have a Java application deploy in Oracle OC4J container (EAR file).
    In my Java application (jsp), I have a SQL statement who return data but the
    sort order is wrong. The letters "é" and all characters with accents
    appears at the end of the result.
    I tried many things to change the sort order (NLS parameters in database
    and OAS10g parameter files).
    When I use SQL*plus on database server, that's working.
    The sort order is wrong when I use the java application.
    Somebody can tell me what and where is the NLS parameters to change ?
    Thanks
    Robin

    Robin,
    I'm only guessing, but it could either be related to the java locale or the CHARSET attribute of the HTML header -- and nothing to do with the NLS parameters.
    Maybe you should try the Globalization Support forum?
    Good Luck,
    Avi.

  • Pass return code from Java application to a .bat file.

    I have a .bat file which will execute a Java application. I want to pass the return code from the java application to the ".bat" file.
    Could you please let me know, how can I accomplish this.

    I tried that, but it doesn't return the value...
    In my Java app, I had System.exit(returnCode) and in the '.bat' file
    I have
    @echo off
    java <myApp>
    set returnCd=%?%
    echo %returnCd
    and it didn't return any value. What should I specify in set returnCd=%?% instead of ?

  • Incremental Fix - After J2EE EAR File Deployment

    Oracle 9iAS 9.0.3.1 (MiddleTier)
    Oracle 9ias 9.0.2.3 (Infrastructure)
    Hi! We were successful in deploying a full J2EE/Struts based application as an EAR file through Enterprise Manager Web Site.
    After the deployment, if we wanted to fix a issue in the module within the application, we just want to replace that Java Source File, without re-deploying the entire application. Is there an Oracle recommended approach for this?
    I know we could do this with ANT but, Is this Oracle Supported incremental deployment approach..? Are they any other ways of doing this without re-deploying the whole application.
    Your thoughts/help is greatly appreciated.
    Thanks
    RK

    Oracle 9iAS 9.0.3.1 (MiddleTier)
    Oracle 9ias 9.0.2.3 (Infrastructure)
    Hi! We were successful in deploying a full J2EE/Struts based application as an EAR file through Enterprise Manager Web Site.
    After the deployment, if we wanted to fix a issue in the module within the application, we just want to replace that Java Source File, without re-deploying the entire application. Is there an Oracle recommended approach for this?
    I know we could do this with ANT but, Is this Oracle Supported incremental deployment approach..? Are they any other ways of doing this without re-deploying the whole application.
    Your thoughts/help is greatly appreciated.
    Thanks
    RK

  • How to run a pure java application client with ear deployed on 9ias

    Hello all,
    We want to run a pure java application client which is packed with target bean in the same ear file. In the application-client.xml we refer to some EJBs.
    We deployed the ear file which contains ejb jar module and application client module to oracle 9ias 904 through enterprise manager on unix. The jndi.properties we used looks like this
    java.naming.factory.initial=com.evermind.server.rmi.ApplciationClientInitialContextFactory
    java.naming.provider.url=opmn:ormi://opmn_host:opmn_port:oc4j_instance_name/application_name
    java.naming.security.principal=test
    java.naming.security.credentials=test
    Is there anybody knows how to run such an application client? Do we need to provide such a jndi.properties or not at all?
    Thanks,
    9ias user

    Refer OpenEJB User - Oracle ADF Essential and TomEE+
    Also refer Bug in tomee 1.5.2. Fixed in 1.6.
    https://issues.apache.org/jira/browse/TOMEE-756

  • Debugging application/OC4J container

    I have some application running in separate 9iASR2 9.0.2.0.0 OC4J containers that appear to randomly freeze (this happened 7 times in May, 2003). Only restarting the OC4J container fixes the problem. As far as I can tell, there are no obvious problems (db connectivity, OS problems, ...) that could be causing this freezing.
    My question is, how do you go about trouble shooting debugging an application running in a OC4J container. What kind of tools should I be using? Jprobe?
    Any help is appreciated.
    Daniel

    Hi Daniel --
    Tools which act as profilers such as JDeveloper,JProbe, etc. can help assist with the codepath and possible source of a freeze.
    Sounds like you've checked the right items -- I have seen instances where an application was leaking database connections in a side and infrequently executed codepath, which contributed to the system freezing.
    Another option for freezes is to get the running JVM to do a thread-dump to see if there are any locks on objects that are leading to deadlocks -- this can be done on Unix by issuing a "kill -3 <pid>" on the running JVM process.
    cheers
    -steve-

  • Ear file deploys on oc4j standalone, not on ias using the ent.appl.manager

    We added security constraints to our web.xml, and this works when we deploy it on a standalone OC4J. Deploying this ear on the ias with the Enterprise application Manager: after choosing the ear-file, giving it a name and pushing the next button we get a nullpointer-exception.
    After removing the security constraints the deployment works. Any ideas????
    Eelco

    To be complete, here's the web.xml:
    <?xml version="1.0"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    <!-- This file contains the configuration for a web-application.-->
    <web-app>
    <distributable />
    <display-name>Laris Application</display-name>
    <description>Laris Application</description>
    <env-entry>
         <description>Database connection string</description>
         <env-entry-name>dbconnect</env-entry-name>
         <env-entry-value>jdbc:oracle:thin:&lt;user&gt;&lt;pwd&gt;@&lt;host&gt;:&lt;port&gt;:&lt;sid&gt;</env-entry-value>
         <env-entry-type>java.lang.String</env-entry-type>
    </env-entry>
    <env-entry>
         <description>Dtd locatie string</description>
         <env-entry-name>dtd_url</env-entry-name>
         <env-entry-value>http://&lt;host&gt;:&lt;port&gt;/laris/dtd/</env-entry-value>
         <env-entry-type>java.lang.String</env-entry-type>
    </env-entry>
    <servlet>
    <servlet-name>LarisController</servlet-name>
    <servlet-class>oracle.clex.process.controller.HttpServletController</servlet-class>
    <init-param>
    <param-name>cle-service-descriptor</param-name>
    <param-value>StartLarisService.xml</param-value>
    </init-param>
    </servlet>
    <servlet>
    <servlet-name>PortaalController</servlet-name>
    <servlet-class>oracle.clex.process.controller.HttpServletController</servlet-class>
    <init-param>
    <param-name>cle-service-descriptor</param-name>
    <param-value>PortaalService.xml</param-value>
    </init-param>
    </servlet>
    <servlet>
    <servlet-name>InvoerenAanspraakController</servlet-name>
    <servlet-class>oracle.clex.process.controller.HttpServletController</servlet-class>
    <init-param>
    <param-name>cle-service-descriptor</param-name>
    <param-value>InvoerenAanspraakService.xml</param-value>
    </init-param>
    </servlet>
    <servlet>
    <servlet-name>ControlerenAanspraakController</servlet-name>
    <servlet-class>oracle.clex.process.controller.HttpServletController</servlet-class>
    <init-param>
    <param-name>cle-service-descriptor</param-name>
    <param-value>ControlerenAanspraakService.xml</param-value>
    </init-param>
    </servlet>
    <servlet>
    <servlet-name>BeoordelenAanspraakController</servlet-name>
    <servlet-class>oracle.clex.process.controller.HttpServletController</servlet-class>
    <init-param>
    <param-name>cle-service-descriptor</param-name>
    <param-value>BeoordelenAanspraakService.xml</param-value>
    </init-param>
    </servlet>
    <servlet>
    <servlet-name>BeslissenAanspraakController</servlet-name>
    <servlet-class>oracle.clex.process.controller.HttpServletController</servlet-class>
    <init-param>
    <param-name>cle-service-descriptor</param-name>
    <param-value>BeslissenAanspraakService.xml</param-value>
    </init-param>
    </servlet>
    <servlet>
    <servlet-name>BehandelenAanspraakController</servlet-name>
    <servlet-class>oracle.clex.process.controller.HttpServletController</servlet-class>
    <init-param>
    <param-name>cle-service-descriptor</param-name>
    <param-value>BehandelenAanspraakService.xml</param-value>
    </init-param>
    </servlet>
    <servlet>
    <servlet-name>CommunicatieGeneratorController</servlet-name>
    <servlet-class>oracle.clex.process.controller.HttpServletController</servlet-class>
    <init-param>
    <param-name>cle-service-descriptor</param-name>
    <param-value>CommunicatieGeneratorService.xml</param-value>
    </init-param>
    </servlet>
    <servlet>
    <servlet-name>KruisjestabelController</servlet-name>
    <servlet-class>oracle.clex.process.controller.HttpServletController</servlet-class>
    <init-param>
    <param-name>cle-service-descriptor</param-name>
    <param-value>KruisjestabelService.xml</param-value>
    </init-param>
    </servlet>
    <servlet>
    <servlet-name>CitesController</servlet-name>
    <servlet-class>oracle.clex.process.controller.HttpServletController</servlet-class>
    <init-param>
    <param-name>cle-service-descriptor</param-name>
    <param-value>LarisService.xml</param-value>
    </init-param>
    </servlet>
    <servlet>
    <servlet-name>BaBoSSController</servlet-name>
    <servlet-class>oracle.clex.process.controller.HttpServletController</servlet-class>
    <init-param>
    <param-name>cle-service-descriptor</param-name>
    <param-value>LarisService.xml</param-value>
    </init-param>
    </servlet>
    <servlet-mapping>
    <servlet-name>LarisController</servlet-name>
    <url-pattern>Default/StartIt</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>PortaalController</servlet-name>
    <url-pattern>Portaal/StartIt</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>InvoerenAanspraakController</servlet-name>
    <url-pattern>Portaal/InvoerenAanspraak/StartIt</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>ControlerenAanspraakController</servlet-name>
    <url-pattern>Portaal/ControlerenAanspraak/StartIt</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>BeoordelenAanspraakController</servlet-name>
    <url-pattern>BeoordelenAanspraak/Eenvoudig/StartIt</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>BeslissenAanspraakController</servlet-name>
    <url-pattern>Beslissen/VaststellenBeslissing/StartIt</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>BehandelenAanspraakController</servlet-name>
    <url-pattern>Behandelen/AdministratiefControleren/StartIt</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>CommunicatieGeneratorController</servlet-name>
    <url-pattern>Informeren/CommunicatieGenerator/StartIt</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>KruisjestabelController</servlet-name>
    <url-pattern>Kruisjestabel/Kruisjestabel/StartIt</url-pattern>
    </servlet-mapping>
    <!-- security roles -->
    <security-role>
         <role-name>sr_manager</role-name>
    </security-role>
    <security-role>
         <role-name>sr_developer</role-name>
    </security-role>
    <!-- security constraints -->
    <security-constraint>
    <web-resource-collection>
    <url-pattern>cabo/*</url-pattern>
    <url-pattern>jheadstart/*</url-pattern>
    <url-pattern>help/*</url-pattern>
    <url-pattern>laris/*</url-pattern>
    <url-pattern>images/*</url-pattern>
    <url-pattern>uix/*</url-pattern>
    </web-resource-collection>
    <!-- authorization -->
    <!-- <auth-constraint>
    <role-name>sr_developer</role-name>
    </auth-constraint> -->
    </security-constraint>
    <security-constraint>
    <web-resource-collection>
    <url-pattern>Default/*</url-pattern>
    <url-pattern>Portaal/*</url-pattern>
    <url-pattern>Informeren/*</url-pattern>
    <url-pattern>Behandelen/*</url-pattern>
    <url-pattern>Beslissen/*</url-pattern>
    <url-pattern>BeoordelenAanspraak/*</url-pattern>
    <!-- volgende is wel gewenst (in 1 keer alles beveiligen), maar werkt niet
    <url-pattern>*</url-pattern> geeft error bij createmarlinbeanpag
    <url-pattern>*/*</url-pattern> beveiligt gewoon niet
    <url-pattern>./*</url-pattern> beveiligt niet alles
    <url-pattern>./*/*</url-pattern> beveiligt niet(s)
    <url-pattern>../*</url-pattern> beveiligt niets
    -->
    </web-resource-collection>
    <!-- authorization -->
    <auth-constraint>
    <role-name>sr_developer</role-name>
    </auth-constraint>
    </security-constraint>
    <!-- de volgende security constraint is niet zozeer voor de administrator
    maar om er voor te zorgen dat bovenstaande constraint de toegang
    beperkt tot alleen het gedefinieerde -->
    <security-constraint>
    <web-resource-collection>
    <url-pattern>/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
         <role-name>sr_administrator</role-name>
    </auth-constraint>
    </security-constraint>
    <!-- authentication -->
    <login-config>
         <auth-method>BASIC</auth-method>
    </login-config>
    </web-app>

  • How to use application params in .EAR files

    When we build an ear file , Weblogic-application.xml provides application-param
    tag?
    are they similar to env-entry in ejb-jar.xml.
    Can I use application-param tag to define a configurable params
    say myName and value as "Harshad"
    How do i read it in the application say a simple java class that is included in
    a jar inside the ear file.

    application-param tag in weblogic-application.xml may be used to define parameters:
    webapp.encoding.default
    webapp.encoding.usevmdefault
    webapp.getrealpath.accept_context_path
    http://e-docs.bea.com/wls/docs81/programming/app_xml.html#1034632
    "Harshad Nanal" <[email protected]> wrote:
    >
    When we build an ear file , Weblogic-application.xml provides application-param
    tag?
    are they similar to env-entry in ejb-jar.xml.
    Can I use application-param tag to define a configurable params
    say myName and value as "Harshad"
    How do i read it in the application say a simple java class that is included
    in
    a jar inside the ear file.

  • Application.xml in ear file

    Hi
    When we deploy to ear file the application.xml file is created with the following root tag:
    <application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd" version="1.4" xmlns="http://java.sun.com/xml/ns/j2ee">
    Previously (Jdev10.1.2) it was created with only:
    <application>
    We are running on an older app server which does not accept the new tag. Any way to set up 10.1.3 to deploy the same tag as the previous version?
    If I manually edit the ear file and change the application.xml file, it runs fine on the older app server. We do not want this manual intervention.
    Thank you

    Does setting a target platform in the deployment profile that points to a 10.1.2 application server works?
    Also you can create a 1.3 application.xml using New->deployment descriptor->J2EE deployment descriptor wizard

  • Application Ear file deployment on Oracle 9ias(9.0.3)

    Hi,
    I'm trying to deploy an application (JSP + BC4J) under Oracle 9ias using the Enterprise Manager (EM).
    No error occurs during the process but I can not load the application with internet explorer.
    the following message appears : "Not Found
    The requested URL /AgatteWF/index.jsp was not found on this server."
    Deploying the application under OC4J standalone with the same ear file works fine.
    Does anyone got that problem ?
    Any help is welcome
    regards

    Hi
    I already had a look to the log files.
    They don't show any error.
    the webcontext is correct but index.jsp is not placed under the "WEB_INF" directory.
    I don't think that's the reason of the problem 'cause i succeeded once to deploy the same application under the IAS.
    I made the same operations i did before (creating a new oc4j instance under IAS after having dropped the old one, deploying the application, creating the data source...)
    But i don't know why it doesn't work this time.

  • Error exporting application into a ear file

    I'm developing an application with the Sun One 5 IDE,and Application server 8, i'm making CMP entity bean, when i try to export to an ear file an error occur
    Validation failed for entities.CMPAdministradorBean. Verify that all fields are mapped.
    CMP Mapping Error in bean CMPAdministrador:: Warning: The bean pcImpl0.moduleComp0.entities.CMPAdministrador is not mapped.
    Set the primary table for the bean.
    No jndi-name defined for the cmp-resource element of this module.
    Select the SunONE tab for the ejb module and configure the CMP Resource property.
    and they can't make the ear
    somebody can help me with this.
    Thank you

    Figured it out, found similar post that stated changing the HEAP size
    Increase the page size in odiparams.bat in the bin folder and restart Designer.
    For eg:
    set ODI_INIT_HEAP=128m
    set ODI_MAX_HEAP=1024m

  • Java Proxy - Libraries in EAR File

    Hello
    I am developing some Java Proxies with the NWDS. For these mappings i need to reference some jars required by the Java Proxies
    aii_proxy_xirt.jar
    aii_msg_runtime.jar
    aii_utilxi_misc.jar
    guidgenerator.jar
    does anyone know how to include these libraries in NWDS so that they don't appear in the EAR archive, because every time I build the EAR these libraries are also put into the ear (but they should not be there because they are available on the J2EE engine, and if they are left inside the EAR classloading problems appear). And it is exhausting to always 'repair' the EAR before deploying.
    regards
    franz
    Message was edited by:
            Franz Ferner

    Hello
    I also tried using NWDI 7.1 (is this the one based on eclipse 3.x??)
    but i have some problems developing xi java proxies because there is no content assist available for the function 'EJB Candidates' as in previous versions of NWDS
    regards franz

  • How do I specify utility jars that my application needs in EAR file

    I'm using weblogic 7.0 and trying to deploy and application. I would like to add
    any utility classes related to this application with in the .ear file and deploy
    the application. Where should I add these files. Does APP-INF/lib work with 7.0?
    Please suggest some sol...
    Thanks

    You'll need to use manifest class-path entries in 7.0. It's covered in
    the J2EE spec, or if you search this newsgroup, you should see plenty of
    examples.
    -- Rob
    Jaya wrote:
    I'm using weblogic 7.0 and trying to deploy and application. I would like to add
    any utility classes related to this application with in the .ear file and deploy
    the application. Where should I add these files. Does APP-INF/lib work with 7.0?
    Please suggest some sol...
    Thanks

  • How to package Java application in a setup file?

    I wish to package my application in a setup file. On double clicking the icon of setup file, the installation of the application may begin. I like to include modified JVM, Acrobat Reader along with class files of the application (packaged in a JAR file) in the setup file, i.e., I want to spare users from the headach of downloading before installing the JVM or Acrobat Reader, etc.
    Things like this have been done in commercial products such as Dreamweaver.
    I have no idea right now how this can be done, but I have to work on this. Any hint, suggestion, direction, advise would be highly appreciated.

    This is a simple free program which will allow you to package your JVM etc with all your other files and it'll give you a small exe file which will invoke the VM and start your app. It only works on windows btw.
    http://www.rolemaker.dk/nonRoleMaker/javalauncher/marner_java_launcher.htm
    After you've set up the program all you need to do is download one the many shareware install programs from download.com. They're normally really easy to use, you just tell them the dir/s you want to package, which files, usually the exe, to add a shortcut to. It will then build a setup exe file for you.

  • Session sharing across web applications in an EAR File

    Hi,
    I have an ear file which further has 5 war files. I want to share the same session
    object across all these war files in the ear file. Can u pls tell me if this is
    possible in weblogic. If yes how?
    Thanks,
    Akash

    I'm sorry, by the J2EE 1.3 specification this isn't allowed. I have sent it on
    to the servlet team to add as an option but that won't be in time for you. If
    you need to share state between them I would probably try and put it in another
    place like an EJB or a singleton class in the system classpath.
    Sam
    [email protected] wrote:
    Hi,
    I have an ear file which further has 5 war files. I want to share the same session
    object across all these war files in the ear file. Can u pls tell me if this is
    possible in weblogic. If yes how?
    Thanks,
    Akash

Maybe you are looking for

  • After 10.5.2 update, "sleep" takes almost min to act

    I noticed that when I choose "sleep" on the finder, it does not respond quickly like it did before I had updated. It takes almost a minute to go to bed.. Anyone know why or is it just counting sheep?

  • Copy Profile has me stumped with Windows 8.1

    When I deploy my image, everything is fine EXCEPT THE COPY PROFILE. My start screen is fine, I exported via powershell and imported via powershell in the TS. There is no extra profiles on my image or in the registry Here is my task sequence Here is m

  • Downloading files directly from camera to Mac HD using LR 5.2

    I have always been successful downloading directly from my camera to my hard drive using LR5.2. However, today, when i downloaded approximately 60% of my files of over 200 RAW photos by first "unchecking" all and then checking only those i wanted to

  • UCCX After CUCM Upgrade

    Hi All I am running UCCX 8.5.1.11004-25 and upgrading to CUCM 8.6.2.23900. I have completed several CUCM upgrades with various dependencies but never with UCCX as a dependency. I have checked the compatibility matrix and this all seems fine however i

  • CCMS Deleted MTE Classes

    Hi there, i'm on R3 4.6c. I accidently deleted a Part of an Monitor Tree with "Option 4" which not only deletes the MTE Klasses from shared memory, but also from DB. (Hint: 392272) Missing Nodes: RZ20->SAP CCMS Admin Workplace -> Entire System - > --