How to change Open Liberty runtime language? - open-liberty

I want to change the language of Open Liberty runtime to en_US from within Eclipse IDE but I don't know how.
Tried to set it with preferences for the JVM arguments too but it didn't work.
-Duser.language=en -Duser.country=US -Duser.variant=US
This is the boot log, as you can see it is grabbing it from my local environment "pt_BR".
Ativando liberty (Open Liberty 19.0.0.3/wlp-1.0.26.cl190320190321-1636) em OpenJDK 64-Bit Server VM, versão 11.0.2+9 (pt_BR)
[AUDITORIA] CWWKE0001I: O servidor liberty foi ativado.
[AUDITORIA] CWWKZ0058I: Monitorando dropins para aplicativos.
[AUDITORIA] CWWKI0001I: O servidor de nome CORBA está agora disponível em corbaloc:iiop:localhost:2809/NameService.
[AUDITORIA] J2CA7001I: Adaptador de recursos wmqjmsra instalado em 7,108 segundos.
[WARNING ] CNTR4015W: O terminal de mensagens para o bean acionado por mensagens PedidoListener não pode ser ativado porque a especificação de ativação filemanager/PedidoListener não está disponível. O terminal de mensagens não receberá mensagens até que a especificação de ativação fique disponível.
[AUDITORIA] CWWKT0016I: Aplicativo da Web disponível (default_host): http://localhost:9080/filemanager/
[AUDITORIA] CWWKZ0001I: O aplicativo filemanager foi iniciado em 3,343 segundos.
[AUDITORIA] CWWKF0012I: O servidor instalou os recursos a seguir: [appClientSupport-1.0, appSecurity-2.0, appSecurity-3.0, batch-1.0, beanValidation-2.0, cdi-2.0, concurrent-1.0, distributedMap-1.0, ejb-3.2, ejbHome-3.2, ejbLite-3.2, ejbPersistentTimer-3.2, ejbRemote-3.2, el-3.0, j2eeManagement-1.1, jacc-1.5, jaspic-1.1, javaMail-1.6, javaee-8.0, jaxb-2.2, jaxrs-2.1, jaxrsClient-2.1, jaxws-2.2, jca-1.7, jcaInboundSecurity-1.0, jdbc-4.2, jms-2.0, jndi-1.0, jpa-2.2, jpaContainer-2.2, jsf-2.3, jsonb-1.0, jsonp-1.1, jsp-2.3, localConnector-1.0, managedBeans-1.0, mdb-3.2, servlet-4.0, ssl-1.0, wasJmsClient-2.0, wasJmsSecurity-1.0, wasJmsServer-1.0, webProfile-8.0, websocket-1.1].
[AUDITORIA] CWWKF0011I: O servidor liberty está pronto para executar um planeta mais inteligente.

The user language can be set using system properties for the JVM that runs the Liberty server. There are two main ways of setting system properties for a Liberty JVM:
1 - Use a jvm.options file
You can create a plain file at ${server.config.dir}/jvm.options (right next to your server.xml) with 1 JVM option per line in the file. In this case, -Duser.language=en would do the trick
2 - On the server start command
Normally a Liberty server is started with the bin/server start myServer command. You can also add JVM options to the end of this command, and they will be applied to server when it starts. For example:
$ bin/server start myServer -Duser.language=en
More details can be found on the official documentation at: Customizing the Liberty environment

Related

Error in external call of authentication service in Genexus15

I am trying to execute a war created in Genexus 15, in a CentOs 7 server with an Apache tomcat 9, the version of jdk is 1.8, I am having an error when I call to an external authentication service of certificates for server and trustore keystore client.
The error is the folowing:
java.lang.IllegalArgumentException: object is not an instance of declaring class
Fin de Ejecucion servicio sin errores
MsgRetornoSOAP: NRO: ERROR -10001error decoding server
certificate: java.lang.ClassCastException:
org.bouncycastle.asn1.DERUnknownTag cannot be cast to
org.bouncycastle.asn1.DERString
Cod retorno
Mensaje Retorno
Error GXSOAP
java.lang.IllegalArgumentException: object is not an
instance of declaring class
gmid: 271431
It seems that is a problem with decodification.

Is IBM MQ8 compatible with JBoss EAP 7.0?

I am getting following error while trying to use the IBM 8.0 all client jar with Jboss 7.0 EAP. So wondering if JBoss EAP 7.0 supports IBM MQ 8 or not.
stack
Exception Details:
Location:
com/ibm/mq/ese/jmqi/ESEJMQI.spiConnect(Ljava/lang/String;Lcom/ibm/mq/jmqi/system/SpiConnectOptions;Lcom/ibm/mq/jmqi/MQCNO;Lcom/ibm/mq/jmqi/handles/Phconn;Lcom/ibm/mq/jmqi/handles/Pint;Lcom/ibm/mq/jmqi/handles/Pint;)V #63: invokespecial
Reason:
Type 'com/ibm/mq/jmqi/system/SpiConnectOptions' (current frame, stack[2]) is not assignable to 'com/ibm/mq/jmqi/system/LpiPrivConnStruct'
Current Frame:
bci: #63
flags: { }
locals: { 'com/ibm/mq/ese/jmqi/ESEJMQI', 'java/lang/String', 'com/ibm/mq/jmqi/system/SpiConnectOptions', 'com/ibm/mq/jmqi/MQCNO', 'com/ibm/mq/jmqi/handles/Phconn', 'com/ibm/mq/jmqi/handles/Pint', 'com/ibm/mq/jmqi/handles/Pint' }
stack: { 'com/ibm/mq/ese/jmqi/ESEJMQI', 'java/lang/String', 'com/ibm/mq/jmqi/system/SpiConnectOptions', 'com/ibm/mq/jmqi/MQCNO', 'com/ibm/mq/jmqi/handles/Phconn', 'com/ibm/mq/jmqi/handles/Pint', 'com/ibm/mq/jmqi/handles/Pint' }
Bytecode:
0x0000000: b200 0399 002b 2a12 0412 5010 06bd 0006
0x0000010: 5903 2b53 5904 2c53 5905 2d53 5906 1904
0x0000020: 5359 0719 0553 5908 1906 53b8 0008 2ab4
0x0000030: 0002 9a00 1f2a 2b2c 2d19 0419 0519 06b7
0x0000040: 0051 b200 0
On the IBM page in Summary section they specifically mentions 7.1 however in Detail section both 7,0 and 7.1
https://www.ibm.com/support/pages/which-are-versions-mq-support-jboss-and-weblogic
Summary -
JBoss EAP 7.1 uses Java EE 7.0: it is supported by MQ 8.0 or later
Details -
1.b.1) JBoss EAP 7.0 and 7.1 support Java EE 7.0.
These versions of JBoss are supported for MQ 8.0 and later.
I noticed that your jar names include 'ese' in them which I don't think is usual.
According to this IBM Support Doc, one cause of this could be that "MQ jars are corrupted, containing some fragments of MQ ESE (extended security edition)."
It suggests uninstalling the MQ jars and reinstalling from a fresh and certain starting point.
If this is not your cause, could you please update your question to show your Extended Security Edition (ESE) setup? Are you attempting to use ESE?

Oracle database 10g express

I've just installed Oracle 10g Express on my home computer but when I try to go to the database Home Page,
I get this error:
This site is inaccessible 127.0.0.1 does not allow the connection
I'm using Windows 10.
I've run lsnrctl status and here is the lsnrctl output:
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 11-NOV. -2017 17:57:18
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connexion Ó (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUT du PROCESSUS D'ECOUTE
------------------------
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
Date de dÚpart 11-NOV. -2017 16:03:51
DurÚe d'activitÚ 0 jours 2 heures 1 min. 52 sec
Niveau de trace off
SÚcuritÚ ON: Local OS Authentication
SNMP OFF
Fichier de paramÞtres du processus d'Úcoute C:\app\USER\product\11.2.0\dbhome_1\NETWORK\ADMIN\listener.ora
Fichier journal du processus d'Úcoute C:\oraclexe\app\oracle\product\10.2.0\server\network\log\listener.log
RÚcapitulatif d'Úcoute des points d'extrÚmitÚ...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
RÚcapitulatif services...
Le service "CLRExtProc" comporte 1 instance(s).
L'instance "CLRExtProc", statut UNKNOWN, comporte 1 gestionnaire(s) pour ce service...
Le service "orcl" comporte 1 instance(s).
L'instance "orcl", statut READY, comporte 1 gestionnaire(s) pour ce service...
Le service "orclXDB" comporte 1 instance(s).
L'instance "orcl", statut READY, comporte 1 gestionnaire(s) pour ce service...
La commande a rÚussi
Does anyone know what might be wrong here?

oracle client installation 12c 64 bit for Visual Studio

I tried several times installing the 64 bit client from oracle for my Visual studio program.
But I always get this error:
Démarrage de "Préparer les étapes de configuration"
Démarrage de "Préparer les étapes de configuration"
'Préparer les étapes de configuration' terminé
Démarrage de "Services Oracle pour Microsoft Transaction Server"
Echec de l'élément Services Oracle pour Microsoft Transaction Server.
Configuration terminée avec le statut global Echec

Exception when deploying a JSR 286 portlet into WebLogic+WebCenter 11g

I get the following exception when deploying a JSR 286 portlet into Oracle WebLogic Server 11g (to deploy it later in Oracle WebCenter 11g):
<19-ene-2010 13H32' CET> <Error> <oracle.portlet.server.containerimpl.PortletApplicationImpl> <BEA-000000> <Error al procesar el archivo "/WEB-INF/portlet.xml" en la lÝnea 6 columna 68.
org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'portlet-app'
The error message is in spanish. It means:
"Error processing the file "/WEB-INF/portlet.xml at line 6 column 68"
The portlet.xml of my portlet seems to be correct and I've deployed it in other portal servers. So I don't understand the error message.
This is the portlet.xml of my portlet (eclipse XML validator said it was a valid XML)
<?xml version="1.0" encoding="UTF-8"?>
<portlet-app version="2.0"
xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd
http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
xmlns:dnd="http://www.denodo.com/widget/portlet/portletjsr286">
<portlet>
<description>Test Inter Portlet Communication (JSR286)</description>
<portlet-name>Test IPC</portlet-name>
<display-name>Test IPC</display-name>
<portlet-class>com.denodo.ipc.TestIPCPortlet</portlet-class>
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>VIEW</portlet-mode>
</supports>
<supported-locale>en</supported-locale>
<resource-bundle>PortletMessages</resource-bundle>
<portlet-info>
<title>Test IPC</title>
<short-title>Test IPC</short-title>
<keywords>Test IPC,Denodo</keywords>
</portlet-info>
</portlet>
</portlet-app>
How do I deploy my portlet
I convert my portlet into to a WSRP portlet by executing
java -jar wsrp-predeploy.jar source EAR target EAR
as explained in http://download.oracle.com/docs/cd/E12839_01/webcenter.1111/e12405/wcadm_portlet_prod.htm#CHDECJHI)
I try to deploy it into WebLogic with the WebLogic Console and I get this exception.
My Environment
WebCenter Suite (11.1.1.2.0) + WebLogic Server (10.3.2) downloaded from the oracle.com. Default configuration
S.O: Windows XP SP3
Thanks in advance for your time.
Have you tried using the openPortal portlet-container? The doc says it will install onto weblogic: https://portlet-container.dev.java.net/public/Download.html
Update: I just installed the portlet-container into the weblogic container and successfully deployed one of the sample portlets from this page: \http://portlet-container.dev.java.net/public/Samples.html

Resources