Starting OC4J 10.1.3 gives the following error

 ERROR Failed to set the internal configuration of the OC
4J JMS Server with: XMLJMSServerConfig[file:/C:/xml_publisher/oc4j/j2ee/home/con
fig/jms.xml]

 

The complete error is

 

C:\xml_publisher\xmlpserver>"C:\xml_publisher\jdk\bin\java" -Xms256M -Xmx256M -
jar "C:\xml_publisher\oc4j\j2ee\home\oc4j.jar" -config "C:\xml_publisher\oc4j\j2
ee\home\config\server.xml"
2006-07-07 20:07:54.573 ERROR Failed to set the internal configuration of the OC
4J JMS Server with: XMLJMSServerConfig[file:/C:/xml_publisher/oc4j/j2ee/home/con
fig/jms.xml]
06/07/07 20:07:54 *** (SEVERE) Failed to set the internal configuration of the O
C4J JMS Server with: XMLJMSServerConfig[file:/C:/xml_publisher/oc4j/j2ee/home/co
nfig/jms.xml]
2006-07-07 20:07:54.583 ERROR J2EE OJR0011 Exception starting JMS server: Failed
to set the internal configuration of the OC4J JMS Server with: XMLJMSServerConf
ig[file:/C:/xml_publisher/oc4j/j2ee/home/config/jms.xml]
2006-07-07 20:08:00.341 WARNING J2EE JNDI0001 Resource Environment reference jms
/store not found. Allowing J2EEContext creation to continue anyway.
2006-07-07 20:08:00.341 WARNING J2EE JNDI0001 Resource Environment reference jms
/eventQueue not found. Allowing J2EEContext creation to continue anyway.
2006-07-07 20:08:00.351 WARNING J2EE JNDI0001 Resource Environment reference jms
/notificationQueue not found. Allowing J2EEContext creation to continue anyway.

2006-07-07 20:08:00.421 WARNING J2EE JNDI0001 Resource Environment reference jms
/eventQueue not found. Allowing J2EEContext creation to continue anyway.
2006-07-07 20:08:00.421 WARNING J2EE JNDI0001 Resource Environment reference jms
/notificationQueue not found. Allowing J2EEContext creation to continue anyway.

2006-07-07 20:08:00.421 ERROR J2EE EJB3027 [default] An error occured deploying
EJB module: java.lang.InstantiationException: Resource exception(OracleASjms) fo
r MessageDrivenBean event during endpoint activation: failure looking up Connect
ionFactoryJndiName:jms/XAQueueConnectionFactory: javax.resource.spi.ResourceAdap
terInternalException: Looking up jms/XAQueueConnectionFactory: javax.naming.Name
NotFoundException: jms/XAQueueConnectionFactory not found
06/07/07 20:08:00 WARNING: Application.setConfig Application: default is in fail
ed state as initialization failedjava.lang.InstantiationException: Error initial
izing ejb-modules: Resource exception(OracleASjms) for MessageDrivenBean event d
uring endpoint activation: failure looking up ConnectionFactoryJndiName:jms/XAQu
eueConnectionFactory: javax.resource.spi.ResourceAdapterInternalException: Looki
ng up jms/XAQueueConnectionFactory: javax.naming.NameNotFoundException: jms/XAQu
eueConnectionFactory not found
Jul 7, 2006 8:08:00 PM com.evermind.server.Application setConfig
WARNING: Application: default is in failed state as initialization failedjava.la
ng.InstantiationException: Error initializing ejb-modules: Resource exception(Or
acleASjms) for MessageDrivenBean event during endpoint activation: failure looki
ng up ConnectionFactoryJndiName:jms/XAQueueConnectionFactory: javax.resource.spi
.ResourceAdapterInternalException: Looking up jms/XAQueueConnectionFactory: java
x.naming.NameNotFoundException: jms/XAQueueConnectionFactory not found
2006-07-07 20:08:00.522 WARNING DEBUG GJRA-1100, oracle.j2ee.connector.messagein
flow.MessageEndpointFactoryImpl@167f4bf.
06/07/07 20:08:00 Error initializing server: Error initializing ejb-modules: Res
ource exception(OracleASjms) for MessageDrivenBean event during endpoint activat
ion: failure looking up ConnectionFactoryJndiName:jms/XAQueueConnectionFactory:
javax.resource.spi.ResourceAdapterInternalException: Looking up jms/XAQueueConne
ctionFactory: javax.naming.NameNotFoundException: jms/XAQueueConnectionFactory n
ot found
2006-07-07 20:08:01.934 WARNING J2EE JTA RecoveryManager is null during shut
down

The resolutions is

go to OC4J/J2ee/home/persistence directory

and delete all file with .lock extension

then start the oc4j service again

this error is caused by improper shutdown coupled with getting a new IP during startup (if you use DHCP, VPN or what ever operation that can get you different IP's)