An Error Occured Deploying Ejb Module Java.lang.instantiationexception
E-mail to friend Error: Java home /opt/SUNWappserver/jdk/jre/bin/java is not a J2SE SDK. [message #164926] Mon, 27 March 2006 11:43 placa1783 Messages: 1Registered: March 2006 Junior Member this is an error when i try to run this JSP in jdeveloper [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.] **** Unable to obtain password from principals.xml. Using default. /root/jdevhome/system/oracle.j2ee.10.1.3.36.73/embedded-oc4j/config> /usr/lib/SunJava2-1.4.2/jre/bin/java -server -classpath /root/Desktop/to-instal/ide/JDeveloper/j2ee/home/oc4j.jar:/root/Desktop/to-instal/ide/JDeveloper/jdev/lib/jdev-oc4j-embedded.jar -Xverify:none -DcheckForUpdates=adminClientOnly -Xrs -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config /root/jdevhome/system/oracle.j2ee.10.1.3.36.73/embedded-oc4j/config/server.xml [waiting for the server to complete its initialization...] Error: Java home /opt/SUNWappserver/jdk/jre/bin/java is not a J2SE SDK. Running Oracle JDeveloper 10g under a JRE is not supported. If the Java VM specified by the SetJavaHome is actually a full J2SDK installation then add 'SetSkipJ2SDKCheck true' to the jdev.conf configuration file 2006-03-27 13:01:53.754 ERROR J2EE EJB3027 [system] An error occured deploying EJB module: java.lang.InstantiationException: Error loading module file:/root/jdevhome/system/oracle.j2ee.10.1.3.36.73/embedded-oc4j/applications/admin_ejb.jar: Syntax error in source or compilation failed in: /root/jdevhome/system/oracle.j2ee.10.1.3.36.73/embedded-oc4j/application-deployments/admin_ejb/generated/MBeanServerEjbRemote_Statefu lSessionBeanWrapper0.java 06/03/27 13:01:53 ADVERTENCIA: Application.setConfig Application: system is in failed state as initialization failedjava.lang.InstantiationException: Error initializing ejb-modules: Error loading module file:/root/jdevhome/system/oracle.j2ee.10.1.3.36.73/embedded-oc4j/applications/admin_ejb.jar: Syntax error in source or compilation failed in: /root/jdevhome/system/oracle.j2ee.10.1.3.36.73/embedded-oc4j/application-deployments/admin_ejb/generated/MBeanServerEjbRemote_Statefu lSessionBeanWrapper0.java 27-mar-2006 13:01:53 com.evermind.server.Application setConfig ADVERTENCIA: Application: system is in failed state as initializ
MDB in EJB3. Even though this I feel is more an OC4J settings related problem I am posting it here because I dont see this question 'answered' before in any forums even though many people raised it. Also please excuse my http://www.orafaq.com/forum/t/60979/ ignorance if this is a basic question. Unfortunately i have already spent lot of time on this issue. The problem is in getting my MDB(JMS) working in OC4J and JDeveloper environment. I have the following entry in my j2ee/home/config/jms.xml as https://forums.manning.com/posts/list/15866.page
-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 http://www.e-ammar.net/Oracle_TIPS/starting_oc4j_10.htm to set the internal configuration of the OC http://www.xinotes.net/notes/note/696/ 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 an error 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 an error occured 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-mod
using PersistenceProvider class org.hibernate.ejb.HibernatePersistence for persistence unit DefaultPU Dr. Xi Joined:04/09/2007 Posts:784 March 02, 2010 00:07:48 Last update: March 02, 2010 00:07:48 OC4J didn't offer much help in the console. This is all it displayed: 2010-03-01 15:48:21.372 ERROR J2EE EJB-03027 [FabulousApp] An error occured deploying EJB module: com.evermind.server.ejb.exception.DeploymentException: [FabulousApp:TheEJBModule] - Exception creating EntityManagerFactory using PersistenceProvider class org.hibernate.ejb.HibernatePersistence for persistence unit DefaultPU. 10/03/01 15:48:21 WARNING: Application.setConfig Application: FabulousApp is in failed state as initialization failed. java.lang.InstantiationException: Error initializing ejb-modules: [FabulousApp:TheEJBModule] - Exception creating EntityManagerFactory using PersistenceProvider class org.hibernate.ejb.HibernatePersistence for persistence unit DefaultPU. 2010-03-01 15:48:21.403 WARNING J2EE OJR-00013 Exception initializing deployed application: FabulousApp. Application: FabulousApp is in failed state as initialization failed However, in the em console, Logs -> Diagnostic Logs gives more details: Message Text [FabulousApp] An error occured deploying EJB module: com.evermind.server.ejb.exception.DeploymentException: [FabulousApp:TheEJBModule] - Exception creating EntityManagerFactory using PersistenceProvider class org.hibernate.ejb.HibernatePersistence for persistence unit DefaultPU. Supplemental Text com.evermind.server.ejb.exception.DeploymentException: [FabulousApp:TheEJBModule] - Exception creating EntityManagerFactory using PersistenceProvider class org.hibernate.ejb.HibernatePersistence for persistence unit DefaultPU. at com.evermind.server.ejb.exception.DeploymentException.exceptionCreatingEntityManagerFactory(DeploymentException.java:130) at com.evermind.server.e