j2ee App. Server Not running

Hi,

I tired starting up my application server and it's been giving me the following error messages:

//- START --

C:\JDeveloper\j2ee\home>set JAVA_HOME=c:\jdeveloper\jdk

C:\JDeveloper\j2ee\home>set path=c:\jdeveloper\jdk\bin;

C:\JDeveloper\j2ee\home>java -jar oc4j.jar

2006-02-12 12:13:35.968 ERROR Failed to set the internal configuration of the OC

4J JMS Server with: XMLJMSServerConfig[file:/C:/JDeveloper/j2ee/home/config/jms.

xml]

06/02/12 12:13:35 *** (SEVERE) Failed to set the internal configuration of the O

C4J JMS Server with: XMLJMSServerConfig[file:/C:/JDeveloper/j2ee/home/config/jms

.xml]

2006-02-12 12:13:35.984 ERROR J2EE OJR0011 Exception starting JMS server: Failed

to set the internal configuration of the OC4J JMS Server with: XMLJMSServerConf

ig[file:/C:/JDeveloper/j2ee/home/config/jms.xml]

2006-02-12 12:13:39.031 WARNING J2EE JNDI0001 Resource Environment reference jms

/store not found. Allowing J2EEContext creation to continue anyway.

2006-02-12 12:13:39.031 WARNING J2EE JNDI0001 Resource Environment reference jms

/eventQueue not found. Allowing J2EEContext creation to continue anyway.

2006-02-12 12:13:39.046 WARNING J2EE JNDI0001 Resource Environment reference jms

/notificationQueue not found. Allowing J2EEContext creation to continue anyway.

2006-02-12 12:13:39.109 WARNING J2EE JNDI0001 Resource Environment reference jms

/eventQueue not found. Allowing J2EEContext creation to continue anyway.

2006-02-12 12:13:39.109 WARNING J2EE JNDI0001 Resource Environment reference jms

/notificationQueue not found. Allowing J2EEContext creation to continue anyway.

2006-02-12 12:13:39.109 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/02/12 12:13:39 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

Feb 12, 2006 12:13:39 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-02-12 12:13:39.140 WARNING DEBUG GJRA-1100, oracle.j2ee.connector.messagein

flow.MessageEndpointFactoryImpl@1f0d7f5.

06/02/12 12:13:39 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-02-12 12:13:40.171 WARNING J2EE JTARecoveryManager is null during shut

down

06/02/12 12:13:40 Fatal error: server exiting

//- END --

Can anyone assist me with this problem. I tried uninstalling both the JDK and JDeveloper and re-installing them and I still get the same error. Please Help.

- nEmEsIs1980

[4323 byte] By [nEmEsIs1980a] at [2007-10-2 12:07:02]
# 1
Since this is an Oracle product that you're starting, why post the question here rather than at an Oracle site?If you Google "oc4j" you see many topics regarding it's use.
ChuckBinga at 2007-7-13 8:38:34 > top of Java-index,Archived Forums,Java 2 Software Development Kit (J2SE SDK)...
# 2

This is caused by unclean shutdown of OC4J service (coupled with ip change).

Please delete lock files (*.lock) in the following directory

C:\xml_publisher\oc4j\j2ee\home\persistence

then restart the OC4J service and it will work

Ammar Sajdi

Amman Jordan

www.e-ammar.com

Sajdi_jordana at 2007-7-13 8:38:34 > top of Java-index,Archived Forums,Java 2 Software Development Kit (J2SE SDK)...
# 3
Thanks for your help. I wondered what does mean that message.
cowaa at 2007-7-13 8:38:34 > top of Java-index,Archived Forums,Java 2 Software Development Kit (J2SE SDK)...
# 4
Thanks - I needed this solution too and it saved me a lot of time
uoapsdba at 2007-7-13 8:38:34 > top of Java-index,Archived Forums,Java 2 Software Development Kit (J2SE SDK)...
# 5

I erased the files but I`ll still have problems now it throws:

2006-11-09 11:51:22.867 NOTIFICATION JMSServer[]: OC4J JMS server recovering tra

nsactions (commit 1) (rollback 0) (prepared 0).

2006-11-09 11:51:22.877 NOTIFICATION JMSServer[]: OC4J JMS server recovering loc

al transactions Queue[jms/Oc4jJmsExceptionQueue].

2006-11-09 11:51:22.887 NOTIFICATION JMSServer[]: OC4J JMS server recovering loc

al transactions Queue[jms/jobstore].

2006-11-09 11:51:22.887 NOTIFICATION JMSServer[]: OC4J JMS server recovering loc

al transactions Queue[jms/events].

2006-11-09 11:51:22.907 NOTIFICATION JMSServer[]: OC4J JMS server recovering loc

al transactions Queue[jms/notifications].

2006-11-09 11:51:22.907 ERROR Failed to set the internal configuration of the OC

4J JMS Server with: XMLJMSServerConfig[file:/C:/proyectos/oc4j/j2ee/home/config/

jms.xml]

06/11/09 11:51:22 *** (SEVERE) Failed to set the internal configuration of the O

C4J JMS Server with: XMLJMSServerConfig[file:/C:/proyectos/oc4j/j2ee/home/config

/jms.xml]

2006-11-09 11:51:22.917 ERROR J2EE OJR0011 Exception starting JMS server: Failed

to set the internal configuration of the OC4J JMS Server with: XMLJMSServerConf

ig[file:/C:/proyectos/oc4j/j2ee/home/config/jms.xml]

2006-11-09 11:51:29.226 WARNING J2EE JNDI0001 Resource Environment reference jms

/store not found. Allowing J2EEContext creation to continue anyway.

2006-11-09 11:51:29.226 WARNING J2EE JNDI0001 Resource Environment reference jms

/eventQueue not found. Allowing J2EEContext creation to continue anyway.

2006-11-09 11:51:29.226 WARNING J2EE JNDI0001 Resource Environment reference jms

/notificationQueue not found. Allowing J2EEContext creation to continue anyway.

2006-11-09 11:51:29.276 WARNING J2EE JNDI0001 Resource Environment reference jms

/eventQueue not found. Allowing J2EEContext creation to continue anyway.

2006-11-09 11:51:29.276 WARNING J2EE JNDI0001 Resource Environment reference jms

/notificationQueue not found. Allowing J2EEContext creation to continue anyway.

2006-11-09 11:51:29.276 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/11/09 11:51:29 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

Nov 9, 2006 11:51:29 AM 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-11-09 11:51:29.306 WARNING DEBUG GJRA-1100, oracle.j2ee.connector.messagein

flow.MessageEndpointFactoryImpl@cfaf6e.

06/11/09 11:51:29 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-11-09 11:51:31.309 WARNING J2EE JTARecoveryManager is null during shut

down

06/11/09 11:51:31 Fatal error: server exiting

C:\proyectos\oc4j\j2ee\home>

Any ideas?

mariagta at 2007-7-13 8:38:34 > top of Java-index,Archived Forums,Java 2 Software Development Kit (J2SE SDK)...
# 6
You have to delete ALL files *.lock in that directory
AlekZandrea at 2007-7-13 8:38:34 > top of Java-index,Archived Forums,Java 2 Software Development Kit (J2SE SDK)...
# 7
Thanks Ammar, this was very helpful.
ericSBSa at 2007-7-13 8:38:34 > top of Java-index,Archived Forums,Java 2 Software Development Kit (J2SE SDK)...
# 8
Deleting lock files totally did it for me and saved me a bunch of time. Thanks you Ammar.
artgemsa at 2007-7-13 8:38:34 > top of Java-index,Archived Forums,Java 2 Software Development Kit (J2SE SDK)...