"XML-20201" Trying to Start the OC4J Instance after Setting Global-Jndi-Lookup-Enabled (Doc ID 457340.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle Containers for J2EE - Version 10.1.3.2.0 and later
Information in this document applies to any platform.
This problem can occur on any platform.
***Checked for relevance on 25-Feb-2013***

Symptoms

Trying to use the global-jndi-lookup-enabled flag to enable the global lookups based on the following document :

Chapter 2 Using JNDI

Oracle® Containers for J2EE Services Guide
10g Release 3 (10.1.3)


After adding global-jndi-lookup-enabled attribute and setting it to true, the OC4J container does not start up and fails with:

07/09/04 11:08:11 Error initializing server: /C:/JavaTools/OC4J10132/j2ee/home/config/server.xml,
Fatal error at line 38 offset 29 in file:/C:/JavaTools/OC4J10132/j2ee/home/config/server.xml:
.<Line 38, Column 29>: XML-20201: (Fatal Error) Expected name instead of =.



Server.xml configuration file: 

<?xml version="1.0"?>

<application-server xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/application-server-10_1.xsd" application-directory="../applications"
check-for-updates="adminClientOnly"
deployment-directory="../application-deployments"
connector-directory="../connectors"
schema-major-version="10" schema-minor-version="0" >
<shared-library name="global.libraries" version="1.0" library-compatible="true">
<code-source path="../applib"/>
</shared-library>
<shared-library name="global.tag.libraries" version="1.0" library-compatible="true">
<code-source path="../../home/jsp/lib/taglib/"/>
<code-source path="../../../j2ee/home/jsp/lib/taglib/"/>
<code-source path="../../../lib/dsv2.jar"/>
<import-shared-library name="oracle.xml"/>
<import-shared-library name="oracle.jdbc"/>
<import-shared-library name="oracle.cache"/>
<import-shared-library name="soap"/>
</shared-library>
<shared-library name="oracle.persistence" version="1.0" library-compatible="true">
<code-source path="../../../toplink/jlib/toplink-essentials.jar"/>
<import-shared-library name="oracle.jdbc"/>
</shared-library>
<rmi-config path="./rmi.xml" />
<jms-config path="./jms.xml" />
<javacache-config path="../../../javacache/admin/javacache.xml" />
<j2ee-logging-config path="./j2ee-logging.xml" />
<log>
<file path="../log/server.log" />
</log>
<java-compiler name="javac" in-process="false" options="-J-Xmx1024m -encoding UTF8" extdirs="C:\Java\jdk1.5.0_12\jre\lib\ext" />
<global-application name="default" path="application.xml" parent="system" start="true" />
<application name="javasso" path="../../home/applications/javasso.ear" parent="default" start="false" />
<application name="ascontrol" path="../../home/applications/ascontrol.ear" parent="system" start="true" />
<application name="demandforecasting" path="../applications\demandforecasting.ear" parent="default" start="true" />
<application name="df270" path="../applications\df270.ear" parent="default" start="true" />
<global-web-app-config path="global-web-application.xml" />
<global-jndi-lookup-enabled="true" />
<transaction-manager-config path="transaction-manager.xml" />
<web-site default="true" path="./default-web-site.xml" />
<cluster id="62243314144428" />
</application-server>



Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms