ERROR J2EE EJB-03027 with OC4J 10.1.3.3

Hi,
we have an application that works fine in iAS 9i (9.0.3).
Now, we have to migrate the platform to 10G and we are testing with OC4J 10.1.3.3.
But when the OC4J works... we see this message:
2008-03-06 16:10:12.737 ERROR J2EE EJB-03027 [prueba] Se ha producido un error al desplegar el módulo EJB: java.lang.InstantiationException: Internal server error: oracle.classloader.util.AnnotatedClassFormatError (Bad version number in .class file
     Clase no válida: UPHome_EntityHomeWrapper1
     Cargador: prueba.root:0.0.0
     Origen de Código: /C:/OC4J 10.1.3.3/j2ee/home/application-deployments/prueba/MGU-1.0/deployment-cache.jar
     Configuración: <ejb> in wrappers
     Clase Dependiente: com.evermind.server.ejb.deployment.EntityBeanDescriptor
     Cargador: oc4j:10.1.3
     Origen de Código: /C:/OC4J 10.1.3.3/j2ee/home/lib/oc4j-internal.jar
     Configuración: <code-source> in META-INF/boot.xml in C:\OC4J 10.1.3.3\j2ee\home\oc4j.jar
08/03/06 16:10:12 ADVERTENCIA: Application.setConfig Application: prueba is in failed state as initialization failed.
java.lang.InstantiationException: Error initializing ejb-modules: Internal server error: oracle.classloader.util.AnnotatedClassFormatError (Bad version number in .class file
     Clase no válida: UPHome_EntityHomeWrapper1
     Cargador: prueba.root:0.0.0
     Origen de Código: /C:/OC4J 10.1.3.3/j2ee/home/application-deployments/prueba/MGU-1.0/deployment-cache.jar
     Configuración: <ejb> in wrappers
     Clase Dependiente: com.evermind.server.ejb.deployment.EntityBeanDescriptor
     Cargador: oc4j:10.1.3
     Origen de Código: /C:/OC4J 10.1.3.3/j2ee/home/lib/oc4j-internal.jar
     Configuración: <code-source> in META-INF/boot.xml in C:\OC4J 10.1.3.3\j2ee\home\oc4j.jar
We have looked for information about the 'Bad version number' error, and we have recompile all our code with the JDK 1.5 (the same JDK for the OC4J). But we still have the error...
Which may be the problem?...
Thanks.

The only thing you can do is to make sure that you recompile everything you're using.
--olaf                                                                                                                                                                                           

Similar Messages

  • Deploying j2ee sun .ear with OC4J

    Debu Panda wrote:
    Looks like deployment of an EJB is causing this problem. Can you please paste the deployment descriptor of the EJB causing this problem.
    What version of OC4J are you using ?
    regards
    Debu Panda
    Oracle
    Thank you Debu!
    I'm using OC4J version 1.0.2.2.1.
    I don't know wich EJB can cause the problem.
    This is the ejb-jar.xml contained in the jar file.
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
    <ejb-jar>
    <display-name>EJBContainer</display-name>
    <enterprise-beans>
    <entity>
    <display-name>SPMSessionFactoryEJB</display-name>
    <ejb-name>SPMSessionFactoryEJB</ejb-name>
    <home>spm.infrastruttura.session.SPMSessionFactoryHome</home>
    <remote>spm.infrastruttura.session.SPMSessionFactory</remote>
    <ejb-class>spm.infrastruttura.session.SPMSessionFactoryEJB</ejb-class>
    <persistence-type>Bean</persistence-type>
    <prim-key-class>java.lang.Object</prim-key-class>
    <reentrant>False</reentrant>
    <ejb-ref>
    <ejb-ref-name>SPMSessionEJB</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <home>SPMSessionHome</home>
    <remote></remote>
    </ejb-ref>
    <security-identity>
    <description></description>
    <use-caller-identity></use-caller-identity>
    </security-identity>
    <resource-ref>
    <res-ref-name>DBORA</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    </entity>
    <session>
    <display-name>SPMSessionEJB</display-name>
    <ejb-name>SPMSessionEJB</ejb-name>
    <home>spm.infrastruttura.session.SPMSessionHome</home>
    <remote>spm.infrastruttura.session.SPMSession</remote>
    <ejb-class>spm.infrastruttura.session.SPMSessionEJB</ejb-class>
    <session-type>Stateful</session-type>
    <transaction-type>Bean</transaction-type>
    <security-identity>
    <description></description>
    <use-caller-identity></use-caller-identity>
    </security-identity>
    <resource-ref>
    <res-ref-name>DBORA</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    </session>
    </enterprise-beans>
    <assembly-descriptor>
    <method-permission>
    <unchecked />
    <method>
    <ejb-name>SPMSessionFactoryEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getSessionList</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionFactoryEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getHandle</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionFactoryEJB</ejb-name>
    <method-intf>Home</method-intf>
    <method-name>remove</method-name>
    <method-params>
    <method-param>javax.ejb.Handle</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>SPMSessionFactoryEJB</ejb-name>
    <method-intf>Home</method-intf>
    <method-name>getHomeHandle</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionFactoryEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getSession</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>SPMSessionFactoryEJB</ejb-name>
    <method-intf>Home</method-intf>
    <method-name>create</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionFactoryEJB</ejb-name>
    <method-intf>Home</method-intf>
    <method-name>findByPrimaryKey</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>SPMSessionFactoryEJB</ejb-name>
    <method-intf>Home</method-intf>
    <method-name>getEJBMetaData</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionFactoryEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>isIdentical</method-name>
    <method-params>
    <method-param>javax.ejb.EJBObject</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>SPMSessionFactoryEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getEJBHome</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionFactoryEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>removeSession</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    <method-param>java.lang.String</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>SPMSessionFactoryEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>remove</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionFactoryEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getPrimaryKey</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionFactoryEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getSession</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    <method-param>java.lang.String</method-param>
    <method-param>java.lang.String</method-param>
    <method-param>java.lang.String</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>SPMSessionFactoryEJB</ejb-name>
    <method-intf>Home</method-intf>
    <method-name>remove</method-name>
    <method-params>
    <method-param>java.lang.Object</method-param>
    </method-params>
    </method>
    </method-permission>
    <method-permission>
    <unchecked />
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getLastAccessTime</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>refreshSession</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>SessionScaduta</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>maketree</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getLingua</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getEmailAddr</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getRs</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getLastName</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>Validate</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getPrimaryKey</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>setLastName</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Home</method-intf>
    <method-name>create</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    <method-param>java.lang.String</method-param>
    <method-param>java.lang.String</method-param>
    <method-param>java.lang.String</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getUserName</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>addEjb</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getEJBHome</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>removeEjb</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>close</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>setUserName</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getFirstName</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Home</method-intf>
    <method-name>remove</method-name>
    <method-params>
    <method-param>java.lang.Object</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>setProfilo</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getHandle</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Home</method-intf>
    <method-name>getHomeHandle</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Home</method-intf>
    <method-name>remove</method-name>
    <method-params>
    <method-param>javax.ejb.Handle</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getSubSystem</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>setEmailAddr</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getCodeCliente</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>isIdentical</method-name>
    <method-params>
    <method-param>javax.ejb.EJBObject</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Home</method-intf>
    <method-name>getEJBMetaData</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getEjb</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getId</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getPassword</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>setPassword</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getIpClient</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>getSessionEspireTime</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>setFirstName</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    </method-params>
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>remove</method-name>
    <method-params />
    </method>
    <method>
    <ejb-name>SPMSessionEJB</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>setSubSystem</method-name>
    <method-params>
    <method-param>spm.infrastruttura.SubSystem</method-param>
    </method-params>
    </method>
    </method-permission>
    </assembly-descriptor>
    </ejb-jar>
    Stefano wrote:
    I'm trying to deploy under OC4Jan ear file packed with j2ee.
    I've the following problems:
    Command line:
    C:\OC4J\j2ee\home>java -jar admin.jar ormi://localhost/ admin spm -deploy -file
    ./applications/myApp/myApp.ear -deploymentName myApp
    Result:
    Auto-unpacking C:\OC4J\j2ee\home\applications\myApp.ear... done.
    Auto-unpacking C:\OC4J\j2ee\home\applications\myApp\war-ic.war... done.
    Auto-deploying myApp (New server version detected)...
    java.lang.InstantiationException: Illegal use-caller-identity value, legal value
    s are True and False.
    at com.evermind.server.deployment.SecurityIdentity.<init>(SecurityIdenti
    ty.java:52)
    at com.evermind.server.ejb.deployment.BeanDescriptor.parseAssemblyNode(B
    eanDescriptor.java:704)
    at com.evermind.server.ejb.deployment.EntityBeanDescriptor.<init>(Entity
    BeanDescriptor.java:107)
    at com.evermind.server.ejb.deployment.EJBPackage.parseEnterpriseBeans(EJ
    BPackage.java:475)
    at com.evermind.server.ejb.deployment.EJBPackage.parseMainNode(EJBPackag
    e.java:369)
    at com.evermind.xml.XMLConfig.parseRootNode(XMLConfig.java:256)
    at com.evermind.xml.XMLConfig.init(XMLConfig.java:142)
    at com.evermind.server.ServerComponent.init(ServerComponent.java:178)
    at com.evermind.server.ejb.EJBPackageDeployment.getPackage(EJBPackageDep
    loyment.java:534)
    at com.evermind.server.administration.ServerApplicationInstallation.fini
    sh(ServerApplicationInstallation.java:397)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:66)
    at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:62)
    What can i do?
    Tahnks.

    Stefano,
    Can you please the following line in the ejb-jar.xml from
    <use-caller-identity></use-caller-identity>
    <use-caller-identity>true</use-caller-identity>
    and redeploy the application ?
    regards
    Debu

  • How do I use the J2EE EJB container with the FULL version of Tomcat

    The version of Tomcat integrated in J2EE is really cut-down. I want to be able to run the standard Tomcat 4.0.1 to give the full JSP facilities, but I also want to be able to use EJBs from the J2EE.
    If I copy the j2ee.jar, j2ee-ri-svc.jar and home interface to the "lib" directory they do not appear to be loaded, as I cannot resolve the javax.ejb.EJBHome.class.
    If I copy the same library into the application's WEB-INF/lib directory then the naming jaxax.naming.InitialContext gives a context without the java:/comp/env entries.
    I do not want to use another EJB contrainer after having got used to deploying apps with J2EE.
    If anyone can help I would be greatful, and post a thanks message with duke dollars!
    Chris
    10 Duke Dollars available

    I have done it before and basically it is not that difficult, but in practice not that easy ;-)
    All you need to do is see Tomcat as a client to the EJBs. This means deploying the application in two parts: the webapp as a WAR to Tomcat 4.0.1, and the EJBs to J2EE. Both running and started independantly.
    This ofcourse means that the WAR file must have the stubs of the EJBs to be able to communicate and access to j2ee.jar to get the InitialContext.
    So:
    - compile the EJBs
    - create the EAR (containing only EJBs)
    - deploy the EAR
    - copy the stubs to the libs directory of the webapp
    - compile the webapp
    - create the WAR
    - deploy the WAR
    Off you go.
    Tom

  • Error running forms 10g with OC4J

    Hi everyone,
    I installed Oracle DB 10g and Developer Suite 10g (did not install Ap. Server) at the same machine (different homes), everything seemed to be OK, I use sqlplus with no problems, then I did this:
    1) Created a table with just one field
    2) Created a test form with Forms 10g using wizard with just that table and that field (I connect to oracle with no problems on forms builder)
    3) Started OC4J Instance
    4) When I run the form, it opens Internet explorer then shows Oracle application server forms service, but with this message ORA-12560 TNS: Protocol Adapter error, I click OK and ask me for a user and password, but the same error!!
    IS there any configuration that I have to do on OC4J?? Why I can connect to oracle from sqlplus, enterprise manager and so, but it fails running forms, specifically when open OC4J???
    Thanks in advance

    Did you save the form before running it, in the context of the builder? there is a known bug in this area.
    Patrick.

  • Error running A Simple MDB example with oc4j

    Hi All,
    I am new to OC4J, I am trying the example for MDB from OTN's site, A Simple MDB example with OC4J. When I start my OC4J on the command line > java -jar oc4j.jar
    I get the following exception:
    Error deploying file:/C:/unzipped/mdb_hello_world/build/mdb/mdb.jar homes: No lo
    cation set for Topic resource MessageDrivenBean MDB
    Error in application mdb: Error loading package at file:/C:/unzipped/mdb_hello_w
    orld/build/mdb/mdb.jar, Error deploying file:/C:/unzipped/mdb_hello_world/build/
    mdb/mdb.jar homes: No location set for Topic resource MessageDrivenBean MDB
    04/07/09 15:21:40 Error instantiating application 'mdb' at file:/C:/unzipped/mdb
    helloworld/build/mdb.ear: Error initializing ejb-module; Exception Error in ap
    plication mdb: Error loading package at file:/C:/unzipped/mdb_hello_world/build/
    mdb/mdb.jar, Error deploying file:/C:/unzipped/mdb_hello_world/build/mdb/mdb.jar
    homes: No location set for Topic resource MessageDrivenBean MDB
    04/07/09 15:21:41 Error starting HTTP-Server: Address already in use: JVM_Bind
    04/07/09 15:21:41 Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)
    initialized
    I have just followed all the steps provided to run the example exactly as given.
    I did add my Topic and TopicConnectionFatory entries in my jms.xml -
    <topic name="The Topic" location="jms/theTopic">
    <description>A MDB topic</description>
    </topic>
    <topic-connection-factory location="jms/theTopicConnectionFactory" />
    Here is the ejb-jar.xml given in the example:
    <?xml version="1.0"?>
    <!DOCTYPE ejb-jar>
    <ejb-jar>
    <enterprise-beans>
    <message-driven>
    <description>My message driven bean</description>
    <ejb-name>MDB</ejb-name>
    <ejb-class>MDB</ejb-class>
    <transaction-type>Container</transaction-type>
    <message-driven-destination>
    <destination-type>javax.jms.Topic</destination-type>
    <subscription-durability>NonDurable</subscription-durability>
    </message-driven-destination>
    <resource-ref>
    <description>The log topic where log events are broadcasted...</description>
    <res-ref-name>jms/theTopic</res-ref-name>
    <res-type>javax.jms.Topic</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    <resource-ref>
    <description>The Factory used to produce connections to the log topic...</description>
    <res-ref-name>jms/theTopicConnectionFactory</res-ref-name>
    <res-type>javax.jms.TopicConnectionFactory</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    </message-driven>
    </enterprise-beans>
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name>MDB</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Supports</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>
    Here is my orion-ejb-jar.xml:
    <?xml version="1.0"?>
    <!DOCTYPE orion-ejb-jar PUBLIC "-//Evermind//DTD Enterprise JavaBeans 1.1 runtime//EN" "http://xmlns.oracle.com/ias/dtds/orion-ejb-jar.dtd">
    <orion-ejb-jar deployment-version="1.0.2.2" deployment-time="e7f5a3f42d">
    <enterprise-beans>
    <message-driven-deployment name="MDB" destination-location="jms/theTopic" connection-factory-location="jms/theTopicConnectionFactory">
    <resource-ref-mapping name="jms/theTopic" />
    <resource-ref-mapping name="jms/theTopicConnectionFactory" />
    </message-driven-deployment>
    </enterprise-beans>
    <assembly-descriptor>
    <default-method-access>
    <security-role-mapping name="&lt;default-ejb-caller-role&gt;" impliesAll="true" />
    </default-method-access>
    </assembly-descriptor>
    </orion-ejb-jar>
    I don't know what is wrong. Please help me.
    Rohini

    Hello,
    I guess that you didn't define the Topic and/or TopicConnectionFactory on your OC4J
    Inside $J2EE_HOME/config (see: subfolders .../j2ee/home/config e.g.)folder are several xml files appropriate for OC4J configuration. There's also jms.xml. Please, verify this one, it should have some entries for your settings.
    Just like in an example below:
    <topic-connection-factory name="TopicConnectionFactory" location="jms/TopicConnectionFactory"/>
    <topic name="theTopic" location="jms/theTopic"/>
    The names should be the same like in your MDB deployment descriptors. It works of course after next OC4J server restart.
    I hope helped you
    Krzysztof

  • Errors when deploy a simple entity ejb module to oc4j 10g?

    I work as following steps:
    1. new project
    2. new Digram-->EJB Diagram
    3. Drag a Entity bean ico to Diagram and name it with Student, then add a id&name column to it.
    4 set the entity-ejb Student's Resource Reference's property: name(MysqlPool),ResourceType(com.mysql.jdbc.Driver),Authentification(Container)
    (in oc4j, I have set the pool connection--MysqlPool)
    5 use command to start oc4j 10.1.3 in jdev10.1.3
    6 In Jdeveloper IDE, select ejb-jar.xml and use right mouse button to call out the menu and then select "Cretae ejb or jar deploy profile", set the deploy platform to my oc4j connection.
    7 select the deploy profile and deploy to my oc4j connection, then errors were reported as following:
    Target platform is Standalone OC4J 10.1.3 (AppServerConnection1).
    Wrote EJB JAR file to D:\jdevj2ee1013\jdev\mywork\Application1\Project1\deploy\ejb1.jar
    Wrote EAR file to D:\jdevj2ee1013\jdev\mywork\Application1\Project1\deploy\ejb1.ear
    Uploading file ...
    Application Deployer for ejb1 STARTS.
    Do not undeploy previous deployment
    Copy the archive to D:\jdevj2ee1013\j2ee\home\applications\ejb1.ear
    Initialize D:\jdevj2ee1013\j2ee\home\applications\ejb1.ear begins...
    Unpacking ejb1.ear
    Done unpacking ejb1.ear
    Initialize D:\jdevj2ee1013\j2ee\home\applications\ejb1.ear ends...
    Starting application : ejb1
    Initializing ClassLoader(s)
    Initializing EJB container
    Loading connector(s)
    Starting up resource adapters
    Processing EJB module: ejb1.jar
    Compiling EJB generated code
    Error while compiling EJB component: D:\jdevj2ee1013\j2ee\home\applications\ejb1\ejb1.jar
    com.evermind.compiler.CompilationException: Error finding a suitable DataSource: Error looking up cmt-datasource at jdbc/OracleDS (name not found)
         at com.evermind.server.ejb.compilation.EntityBeanCompilation.createTable(EntityBeanCompilation.java:257)
         at com.evermind.server.ejb.compilation.EntityBeanCompilation.preCompile(EntityBeanCompilation.java:318)
         at com.evermind.server.ejb.compilation.Compilation.generateAnyOldStyle(Compilation.java:1728)
         at com.evermind.server.ejb.compilation.Compilation.compile(Compilation.java:162)
         at com.evermind.server.ejb.compilation.Compilation.doGenerateCode(Compilation.java:216)
         at com.evermind.server.ejb.EJBContainer.postInitBatch(EJBContainer.java:1197)
         at com.evermind.server.ejb.EJBContainer.postInit(EJBContainer.java:1118)
         at com.evermind.server.ApplicationStateRunning.initializeApplication(ApplicationStateRunning.java:200)
         at com.evermind.server.Application.setConfig(Application.java:299)
         at com.evermind.server.Application.setConfig(Application.java:226)
         at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1740)
         at oracle.oc4j.admin.internal.ApplicationDeployer.addApplication(ApplicationDeployer.java:403)
         at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:144)
         at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:95)
         at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnable.java:53)
         at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:68)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:299)
         at java.lang.Thread.run(Thread.java:534)
    application : ejb1 is in failed state
    java.lang.InstantiationException: Error initializing ejb-module; Exception
    Error compiling D:\jdevj2ee1013\j2ee\home\applications\ejb1\ejb1.jar: Error finding a suitable DataSource: Error looking up cmt-datasource at jdbc/OracleDS (name not found)
         at com.evermind.server.ejb.EJBContainer.throwInstantiationException(EJBContainer.java:2285)
         at com.evermind.server.ejb.EJBContainer.postInitBatch(EJBContainer.java:1422)
         at com.evermind.server.ejb.EJBContainer.postInit(EJBContainer.java:1118)
         at com.evermind.server.ApplicationStateRunning.initializeApplication(ApplicationStateRunning.java:200)
         at com.evermind.server.Application.setConfig(Application.java:299)
         at com.evermind.server.Application.setConfig(Application.java:226)
         at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1740)
         at oracle.oc4j.admin.internal.ApplicationDeployer.addApplication(ApplicationDeployer.java:403)
         at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:144)
         at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:95)
         at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnable.java:53)
         at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:68)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:299)
         at java.lang.Thread.run(Thread.java:534)
    Caused by: java.lang.InstantiationException:
    Error compiling D:\jdevj2ee1013\j2ee\home\applications\ejb1\ejb1.jar: Error finding a suitable DataSource: Error looking up cmt-datasource at jdbc/OracleDS (name not found)
         at com.evermind.server.ejb.EJBContainer.postInitBatch(EJBContainer.java:1226)
         ... 12 more
    Operation failed with error:
    java.lang.InstantiationException: Error initializing ejb-module; Exception
    Error compiling D:\jdevj2ee1013\j2ee\home\applications\ejb1\ejb1.jar: Error finding a suitable DataSource: Error looking up cmt-datasource at jdbc/OracleDS (name not found)
    Deployment failed
    Elapsed time for deployment: 41 seconds
    #### Deployment incomplete. #### 2005-2-15 10:46:02
    what's the meaning about Error finding a suitable DataSource: Error looking up cmt-datasource at jdbc/OracleDS (name not found)?
    I didn't use jdbc/OracleDS Datasource, and I deleted it from config\data-source.xml.
    Is it cause those errors or my operation rong?
    Who can tell me the entity ejb's deploy method&step?

    Yes, now I added a connection pool and a datasource in oc4j, and set the datasource's jndi name to "jdbc/OracleDS".For The connection pool,I use the mysql database.
    Followed the above operation, I repeat the deployment and it deployed successfully.
    Viewed by web-control-for-oc4j, I found jdeveloper automaticly created a datasource and pool for the ejb module.However, the datasource's parameter(connection-factory factory-class="oracle.jdbc.pool.OracleDataSource") is wrong.
    So I open Tools Menu->Preferences menu and setted the Deploy property to "unbundle datasource...".Then I Created a file named data-sources.xml in project and filled out the correct properties.
    After I deploied the ejb-module, I openned the deploied .ear file with winrar to view its contents.I found the factory-class property's value is still wrong which included in data-sources.xml file in Mata-Inf directory,but the property of the data-sources.xml file in .jar file is correct.So, the class factory value of the deploied ejb-application's connection pool still is "oracle.jdbc.pool.OracleDataSource".It couldn't work surely.
    Of course, I can modity the data-sources.xml in .ear file.
    But has some more better method to settle this problem while not manuelly?

  • Error creating table on MS SQL Server with OC4J standalone

    Hi there,
    I'm trying to deploy an EJB application to OC4J standalone using a MS SQL Server 2000 database, MS SQL Server JDBC Drivers and OC4J 9.0.3 standalone but i keep getting this error:
    Auto-creating table: create table Functieprofiel_competentieNiveau_CompetentieNiveau_functieprofiel_LBOS_Ear_LBOS_Ejb (Functieprofiel_FUNCTIE_ID bigint identity not null, COMP_ID bigint identity null, NIVEAU_ID sql_variant(255) null)
    Error creating table: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Could not create IDENTITY attribute on nullable column 'COMP_ID', table 'Functieprofiel_competentieNiveau_CompetentieNiveau_functieprofiel_LBOS_Ear_LBOS_Ejb'.
    Deployment succeeds after this but the application does not run properly. Can anyone help me with this? I have no idea what to do.
    Rob Heikoop

    Rb -
    if you want to stop the auto-creation of tables, try going to the j2ee/home/config directory of your OC4J installation. Open the application.xml file and modify the attribute autocreate-tables to be set to false.
    That should stop the default table creation as a global property, unless you specifically override it at the specific deployed application level.
    You can then manually create the tables on the sql-server database instance. If you keep the column names the same as the field names in the bean, then you shouldn't need to do any manual mapping. To be sure of the column names to use, take a look in the orion-ejb-jar.xml which gets generated in the j2ee/home/application-deployments/<app-name>/<ejb-module-name> to see what table/column names the generator defaulted to
    -steve-
    -steve-

  • Error Deploying EJB on OC4J

    I am trying to deploy through 9iJDeveloper(Release 2) which has been loaded on the same machine on which 9ias server is running. The deployment is successful in the embedded OC4J(JDevloper) but the same is not happening in 9ias OC4J and the errors are mentioned hereunder.
    Wrote EJB .jar file to C:\jdev9i\jdev\mywork\om\ejb1\MySessionEJB.jar
    Wrote EAR file to C:\jdev9i\jdev\mywork\om\ejb1\MySessionEJB.ear
    Invoking Oracle9iAS admin tool...
    C:\jdev9i\jdk\jre\bin\javaw.exe -jar C:\Oracle\iSuites\j2ee\home\admin.jar ormi://9ias:23791 admin **** -deploy -file C:\jdev9i\jdev\mywork\om\ejb1\MySessionEJB.ear -deploymentName MySessionEJB
    Fatal Error: Syntax error in source
    Auto-unpacking C:\Oracle\iSuites\j2ee\home\applications\MySessionEJB.ear... done.
    Copying default deployment descriptor from archive at C:\Oracle\iSuites\j2ee\home\applications\MySessionEJB/META-INF/orion-application.xml to deployment directory C:\Oracle\iSuites\j2ee\home\application-deployments\MySessionEJB...
    Auto-deploying MySessionEJB (New server version detected)...
    Copying default deployment descriptor from archive at C:\Oracle\iSuites\j2ee\home\applications\MySessionEJB/MySessionEJB.jar/META-INF/orion-ejb-jar.xml to deployment directory C:\Oracle\iSuites\j2ee\home\application-deployments\MySessionEJB\MySessionEJB.jar...
    error: Invalid class file format in C:\Program Files\Java\j2re1.4.0-rc\lib\rt.jar(java/lang/Object.class). The major.minor version '48.0' is too recent for this tool to understand.
    error: Class java.lang.Object not found in class com.evermind.server.ejb.AbstractEJBHome.
    2 errors
    com.evermind.compiler.CompilationException: Syntax error in source
         at com.evermind.compiler.FileLinkedCompilation.run(FileLinkedCompilation.java:95)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.evermind.compiler.FileLinkedCompiler.compile(FileLinkedCompiler.java:20)
         at com.evermind.compiler.Javac.compile(Javac.java:38)
         at com.evermind.server.ejb.compilation.Compilation.compileClasses(Compilation.java:349)
         at com.evermind.server.ejb.compilation.Compilation.compile(Compilation.java:233)
         at com.evermind.server.administration.ServerApplicationInstallation.finish(ServerApplicationInstallation.java:460)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:80)
         at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    Exit status of Oracle9iAS admin tool (-deploy): 0
    ---- Deployment finished. ---- Sep 14, 2002 11:01:58 AM
    Can anybody please help me out.
    Suvransu Kumar Mohanty
    [email protected]

    Hi Ram,
    You need to use JDk 1.3.1 (and not JDK 1.4.0) with OC4J.
    This issue has been discussed on this forum many times previously.
    Did you try searching the forum archives before posting your question?
    Several of those postings describe possible work-arounds.
    Good Luck,
    Avi.

  • Error deploying ejb with jdev 9.0.3 to 9ias 9.0.3

    Hi:
    I am trying to deploy a simple ejb created with jdev 9.0.3. I have used local dcm connection type for deploying . I have already installed the dcm servlet, but when I try to deploy my ejb i get the following error:
    ---- Deployment started. ---- Nov 12, 2002 5:52:12 PM
    Wrote EJB JAR file to C:\jdev\jdev\mywork\employee\Project1\deploy\employee.jar
    Wrote EAR file to C:\jdev\jdev\mywork\employee\Project1\deploy\employee.ear
    Invoking dcmctl...
    C:\ora9ias\dcm\bin\dcmctl.bat redeployApplication -file C:\jdev\jdev\mywork\employee\Project1\deploy\employee.ear -application employee
    ADMN-300075
    Exit status of dcmctl: 0
    Elapsed time for deployment: 21 seconds
    ---- Deployment finished. ---- Nov 12, 2002 5:52:33 PM
    The oracle 9ias and the jdev have been installed on Windows 2000 server.
    Does anybody know what is it?
    Thanks
    Sergio

    I have discovered a strange thing. I created a new OC4J instance which I called it: Intelap
    When I deploy to the recently created instance Intelap, jdeveloper success. But when I set OC4J_home in the optional instance field, I got the previous error.
    Sergio

  • Unable to deploy simple EJB example with J2EE Ref. Impl.

    Hi there,
    I'm new to EJB development so please bare with me. I've written a simple EJB, taken from Enterprise JavaBeans by Richard Monson-Haefel (O'Reilly). I can compile the code without problems, load it into the J2EE deployment tool (I'm using version 1.3.1 of the J2EE Reference Implementation), and have succesfully set up the data source and SQL commands for each persistent field.
    When it comes to deployment, I'm stumped with the following error:
    java.rmi.RemoteException: Error processing ejb jar: Compilation failed.
    Here's the stacktrace in the error logs:
    Compilation failed.
         at com.sun.ejb.codegen.GeneratorDriver.compileClasses(GeneratorDriver.java:232)
         at com.sun.ejb.codegen.GeneratorDriver.preDeploy(GeneratorDriver.java:610)
         at com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.deployEjbs(JarInstallerImpl.java:707)
         at com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.deployApplication(JarInstallerImpl.java:221)
         at org.omg.stub.com.sun.enterprise.tools.deployment.backend._JarInstallerImpl_Tie._invoke(Unknown Source)
         at com.sun.corba.ee.internal.corba.ServerDelegate.dispatch(ServerDelegate.java:350)
         at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:250)
         at com.sun.corba.ee.internal.iiop.RequestProcessor.process(RequestProcessor.java:79)
         at com.sun.corba.ee.internal.orbutil.ThreadPool$PooledThread.run(ThreadPool.java:104)Here's the source:
    ==============================CabinHome.java=========================
    package com.titan.cabin;
    import java.rmi.RemoteException;
    import javax.ejb.CreateException;
    import javax.ejb.FinderException;
    public interface CabinHome extends javax.ejb.EJBHome {
      public Cabin create (int d) throws CreateException, RemoteException;
      public Cabin findByPrimaryKey (CabinPK pk) throws FinderException;
    }================================CabinBean.java========================
    package com.titan.cabin;
    import javax.ejb.EntityContext;
    public class CabinBean implements javax.ejb.EntityBean {
      public int id;
      public String name;
      public int deckLevel;
      public int ship;
      public int bedCount;
      public CabinPK ejbCreate (int id) {
        this.id = id;
        return null;
      public void ejbPostCreate (int id) {
      public String getName () {
        return name;
      public int getShip () {
        return ship;
      public int getDeckLevel () {
        return deckLevel;
      public int getBedCount () {
        return bedCount;
      public void setName (String str) {
        this.name = str;
      public void setShip (int s) {
        this.ship = s; 
      public void setDeckLevel (int d) {
        this.deckLevel = d;
      public void setBedCount (int c) {
        this.bedCount = c;
      public void setEntityContext (EntityContext ctx) {}
      public void unsetEntityContext () {}
      public void ejbActivate() {}
      public void ejbPassivate () {}
      public void ejbLoad () {}
      public void ejbStore () {}
      public void ejbRemove () {}
    }===============================Cabin.java============================
    package com.titan.cabin;
    import java.rmi.RemoteException;
    public interface Cabin extends javax.ejb.EJBObject {
      public String getName() throws RemoteException;
      public void setName(String str) throws RemoteException;
      public int getDeckLevel() throws RemoteException;
      public void setDeckLevel (int level) throws RemoteException;
      public int getShip() throws RemoteException;
      public void setShip (int sp) throws RemoteException;
      public int getBedCount() throws RemoteException;
      public void setBedCount() throws RemoteException;
    }============================CabinPK.java=============================
    package com.titan.cabin;
    public class CabinPK implements java.io.Serializable {
      public int id;
      public int hashCode() {
        return id;
      public boolean equals (Object obj) {
        if (obj instanceof CabinPK) {
          return (id == ((CabinPK) obj).id);
        return false;
    }Has anyone else experienced anything similar, or is there something I'm obviously doing wrong?
    Thanks for your help.
    Matt

    Here's the ejb-jar.xml:
    <?xml version="1.0" encoding="UTF-8" ?>
    <!-- Created by matt on 10 September 2002, 14:32 -->
    <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN"
        "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd">
    <ejb-jar>
        <enterprise-beans>
            <entity>
                <description>
                    This Cabin enterprise bean entity represents a cabin on a cruise ship.
                </description>
                <ejb-name>CabinBean</ejb-name>
                <home>com.titan.cabin.CabinHome</home>
                <remote>com.titan.cabin.Cabin</remote>
                <ejb-class>com.titan.cabin.CabinBean</ejb-class>
                <persistence-type>Container</persistence-type>
                <prim-key-class>com.titan.cabin.CabinPK</prim-key-class>
                <reentrant>False</reentrant>
                <cmp-field><field-name>id</field-name></cmp-field>
                <cmp-field><field-name>name</field-name></cmp-field>
                <cmp-field><field-name>deckLevel</field-name></cmp-field>
                <cmp-field><field-name>ship</field-name></cmp-field>
                <cmp-field><field-name>bedCount</field-name></cmp-field>
            </entity>
        </enterprise-beans>
        <assembly-descriptor>
            <security-role>
                <description>
                    This role represents everyone who is allowed
                    full access to the cabin bean.
                </description>
                <role-name>everyone</role-name>
            </security-role>
            <method-permission>
                <role-name>everyone</role-name>
                <method>
                    <ejb-name>CabinBean</ejb-name>
                    <method-name>*</method-name>
                </method>
            </method-permission>
            <container-transaction>
                <method>
                    <ejb-name>CabinBean</ejb-name>
                    <method-name>*</method-name>
                </method>
                <trans-attribute>Required</trans-attribute>
            </container-transaction>
        </assembly-descriptor>
    </ejb-jar>Thanks...

  • Error in using Hibernate with EJB

    I have generated my Hibernate related configurtion file,POJO Classes & hbm files using MyEclipse 5.0. And Iam using JBuilder 10.0.176.0
    to develop the EJB module. When i try to compile my module it is saying POJO class is bad.
    "Bean2InsertBean.java": cannot access ejb_hibernate.Testsql,bad class file: D:\MyJava\bea\OurClasses\ejb_hibernate\Testsql.class,class file has wrong version 49.0, should be 48.0,Please remove or make sure it appears in the correct subdirectory of the classpath.
    But the classes are in correct directory.

    It looks like you have compiled the POJO class with Java 5 version whereas you are compiling the EJB module with Java1.x (i.e. a lower version). Compile the POJO class with Java 1.x and then try compiling the EJB module with the same version

  • Error deploying EJBs

    Every time i run my EJB-Project i get the following error-message:
    **** WARNING: The following J2EE projects each have an output directory named 'classes':
    C:\Dokumente und Einstellungen\Manuel\Eigene Dateien\Programmieren\RDV4M-Projekt\RDV4M\RDV4M.jpr
    C:\Dokumente und Einstellungen\Manuel\Eigene Dateien\Programmieren\RDV4M-Projekt\Server\Server.jpr
    **** WARNING: The collision in output directory names may cause problems in the current version of OC4J.
    **** WARNING: Please see the JDeveloper release notes for details (2591173).
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    C:\Programme\JDeveloper\jdev\system\oracle.j2ee.10.1.3.3.51\oc4j-config>
    C:\Programme\JDeveloper\jdk\bin\javaw.exe -ojvm -classpath C:\Programme\JDeveloper\j2ee\home\oc4j.jar;C:\Programme\JDeveloper\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -DcheckForUpdates=adminClientOnly -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doracle.dms.sensors=NONE -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config C:\Programme\JDeveloper\jdev\system\oracle.j2ee.10.1.3.3.51\oc4j-config\server.xml
    [waiting for the server to complete its initialization...]
    05/07/25 10:27:01 Node started with id=127765687050882
    25.07.2005 10:27:05 com.evermind.server.ejb.EJBPackageDeployment isIIOPConfigured
    INFO: Beans associated with application default will not be available via RMI/IIOP: GenerateIIOP system property=false, enableIIOP application setting=false, server.xml configured for IIOP=false
    25.07.2005 10:27:05 com.evermind.server.ejb.EJBPackageDeployment isIIOPConfigured
    INFO: Beans associated with application default will not be available via RMI/IIOP: GenerateIIOP system property=false, enableIIOP application setting=false, server.xml configured for IIOP=false
    05/07/25 10:27:06 done.
    05/07/25 10:27:07 Copying default deployment descriptor from archive at C:\Programme\JDeveloper\jdev\system\oracle.j2ee.10.1.3.3.51\oc4j-config\connectors\datasources\datasources/META-INF/oc4j-ra.xml to deployment directory C:\Programme\JDeveloper\jdev\system\oracle.j2ee.10.1.3.3.51\oc4j-config\application-deployments\current-workspace-app\datasources...
    05/07/25 10:27:07 Copying default deployment descriptor from archive at C:\Dokumente und Einstellungen\Manuel\Eigene Dateien\Programmieren\RDV4M-Projekt\Server\classes/META-INF/orion-ejb-jar.xml to deployment directory C:\Programme\JDeveloper\jdev\system\oracle.j2ee.10.1.3.3.51\oc4j-config\application-deployments\current-workspace-app\classes...
    05/07/25 10:27:07 Auto-deploying - file:/C:/Dokumente und Einstellungen/Manuel/Eigene Dateien/Programmieren/RDV4M-Projekt/Server/classes/ (orion-ejb-jar.xml had been updated since the previous deployment)...
    25.07.2005 10:27:07 com.evermind.server.Application getDatabaseSchema
    WARNUNG: Warning: Exception occurred getting database schema. Exception: java.lang.InstantiationException: Error looking up cmt-datasource at jdbc/OracleDS (name not found)
    05/07/25 10:27:10 Auto-deploying - compiling and loading...
    05/07/25 10:27:12 done.
    05/07/25 10:27:12 Error instantiating application 'current-workspace-app' at file:/C:/Dokumente und Einstellungen/Manuel/Eigene Dateien/Programmieren/RDV4M-Projekt/RDV4M-Projekt-oc4j-app.xml: Error initializing ejb-module; Exception null
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 18703 ms.
    05/07/25 10:27:14 Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview 3 initialized
    Could anybody help me please??!!

    java.lang.InstantiationException: Error looking up cmt-datasource at jdbc/OracleDS
    Is the jdbc/OracleDS defined in the data-sources.xml?

  • Error deploying ejb

    Please, help, I get an #225 error when running an ejb app in the jdeveloper app server.
    I have created an entity bean from a database table. Then created a session bean. The remote interface gets automatically generated "finders" like in:
    @Remote
    public interface SessionEJB
    List<Alarms> findAllAlarms()
    throws NamingException;
    Alarms createAlarms(String ackSignature, String actionOnAck,
    Long alarmConf, String alarmlevel,
    String closeSignature, String comments, Long id,
    String parameter, String repairDone, String state,
    Long train, String trainname, Long value, Long wheel,
    String wheelname, Timestamp when)
    throws NamingException;
    void updateEntity(Object entity)
    throws NamingException;
    void deleteEntity(Object entity)
    throws NamingException;
    void refreshEntity(Object entity)
    throws NamingException;
    However, when I try to run the SessionEJBBean I get the error below. I don't understand what went wrong??
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    **** Unable to obtain password from principals.xml. Using default.
    G:\jdeveloper\jdevstudiobase1013\jdev\system\oracle.j2ee.10.1.3.34.12\embedded-oc4j\config>
    "M:\Program Files\Java\jdk1.5.0_05\bin\javaw.exe" -client -classpath G:\jdeveloper\jdevstudiobase1013\j2ee\home\oc4j.jar;G:\jdeveloper\jdevstudiobase1013\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -DcheckForUpdates=adminClientOnly -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 G:\jdeveloper\jdevstudiobase1013\jdev\system\oracle.j2ee.10.1.3.34.12\embedded-oc4j\config\server.xml
    [waiting for the server to complete its initialization...]
    [TopLink Config]: 2005.11.09 11:04:34.562--ServerSession(26967138)--Thread(Thread[OC4J Launcher,5,main])--The alias name for the entity class [class mypackage.Alarms] is being defaulted to: Alarms.
    [TopLink Info]: 2005.11.09 11:04:36.078--ServerSession(14218588)--Thread(Thread[OC4J Launcher,5,main])--TopLink, version: Oracle TopLink - 10g release 3 (10.1.3.0.0) (Build 050912)
    [TopLink Info]: 2005.11.09 11:04:36.093--ServerSession(14218588)--Thread(Thread[OC4J Launcher,5,main])--Server: Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview
    [TopLink Config]: 2005.11.09 11:04:36.093--ServerSession(14218588)--Connection(29187880)--Thread(Thread[OC4J Launcher,5,main])--connecting(DatabaseLogin(
         platform=>Oracle9Platform
         user name=> ""
         connector=>JNDIConnector datasource name=>jdbc/wmsdbDS
    [TopLink Config]: 2005.11.09 11:04:36.781--ServerSession(14218588)--Connection(28823870)--Thread(Thread[OC4J Launcher,5,main])--Connected: jdbc:oracle:thin:@//mirakulos:1521/COMPIERE
         User: WMSDB
         Database: Oracle Version: Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
         Driver: Oracle JDBC driver Version: 10.1.0.4.2
    [TopLink Config]: 2005.11.09 11:04:36.781--ServerSession(14218588)--Connection(19328210)--Thread(Thread[OC4J Launcher,5,main])--connecting(DatabaseLogin(
         platform=>Oracle9Platform
         user name=> ""
         connector=>JNDIConnector datasource name=>jdbc/wmsdbDS
    [TopLink Config]: 2005.11.09 11:04:36.796--ServerSession(14218588)--Connection(12827479)--Thread(Thread[OC4J Launcher,5,main])--Connected: jdbc:oracle:thin:@//mirakulos:1521/COMPIERE
         User: WMSDB
         Database: Oracle Version: Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
         Driver: Oracle JDBC driver Version: 10.1.0.4.2
    [TopLink Info]: 2005.11.09 11:04:36.796--ServerSession(14218588)--Thread(Thread[OC4J Launcher,5,main])--current-workspace-app_Application1_Project7_0 login successful
    G:\jdeveloper\jdevstudiobase1013\jdev\system\oracle.j2ee.10.1.3.34.12\embedded-oc4j\application-deployments\current-workspace-app\Application1_Project7_0\generated\SessionEJB_StatelessSessionBeanWrapper0.java:1: error #225: too many type parameters for interface java.util.List<mypackage.Alarms>
    1 error
    05/11/09 23:04:39 Application: current-workspace-app is in state FAILED
    05/11/09 23:04:39 Error instantiating application 'current-workspace-app' at file:/G:/jdeveloper/jdevstudiobase1013/jdev/mywork/Application1/Application1-oc4j-app.xml: Error initializing ejb-modules: Error loading module file:/G:/jdeveloper/jdevstudiobase1013/jdev/mywork/Application1/Project7/classes/: Syntax error in source or compilation failed in: G:\jdeveloper\jdevstudiobase1013\jdev\system\oracle.j2ee.10.1.3.34.12\embedded-oc4j\application-deployments\current-workspace-app\Application1_Project7_0\generated\SessionEJB_StatelessSessionBeanWrapper0.java
    G:\jdeveloper\jdevstudiobase1013\jdev\system\oracle.j2ee.10.1.3.34.12\embedded-oc4j\application-deployments\current-workspace-app\Application1_Project7_0\generated\SessionEJB_StatelessSessionBeanWrapper0.java:1: error #225: too many type parameters for interface java.util.List<mypackage.Alarms>
    1 error
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 12859 ms.
    05/11/09 23:04:40 Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview initialized
    2005-11-09 23:04:45.000 NOTIFICATION Industrial Telnet Server version: Version 10.1.3.0.0 started-up successfully.

    It seems to be related to the "Use JDK 1.5 Generic Collection Types".

  • Can I use DBTableOraDataSourceLoginModule with OC4J/OAS 10.1.3.0  ?

    Hi,
    I am implementing security as described in Frank's docs :
    http://www.oracle.com/technology/products/jdev/howtos/1013/oc4jjaas/oc4j_jaas_login_module.htm
    I am using JDeveloper 10.1.3.1 and OC4J 10.1.3.0 / OAS 10.1.3.0.
    The question is :
    1) Will DBTableOraDataSourceLoginModule work with OC4J/OAS 10.1.3.0 ?
    2) The docs above ONLY describe about deploying to OC4J Stand Alone, what about deploying to OAS 10.1.3.0 (Red Hat Linux) ??
    Thank you,
    xtanto

    Hi John,
    I am using DBTableOraDataSourceLoginModule that is included in jazncore.jar.
    I have overridden the original jazncore.jar in <oracle_home>\j2ee\home of my OAS 10.1.3.0 with jazncore.jar that comes with JDeveloper 10.1.3.1.
    When I deploy to OAS with its enterprise manager, I have done this :
    - Select Security Provider, Security Provider = Custom
    Add Login Module, JAAS Login Module Class = oracle.security.jazn.login.module.db.DBTableOraDataSourceLoginModule
    - When I press Deploy, I get this error message :
    [Jun 11, 2007 6:15:39 PM] Initializing ClassLoader(s)
    [Jun 11, 2007 6:15:39 PM] Initializing EJB container
    [Jun 11, 2007 6:15:39 PM] Loading connector(s)
    [Jun 11, 2007 6:15:40 PM] application : XPajakApp is in failed state
    [Jun 11, 2007 6:15:40 PM] Operation failed with error: java.lang.InstantiationException
    Is this related to class path ?
    Since the LoginModule class is located in : <oracle_home>\j2ee\home\jazncore.jar, isn't it already in classpath ?
    If no, how can I set it ?
    Thank you,
    xtanto

  • Error sending method invocation request(oc4j 10g(10.1.3.1))

    Dear,
    I have two applications a.ear and b.ear. They both are deployed on same oc4j container (10g(10.1.3.1))
    Both applications use each others session beans. In order to make communications between these two applications possible I set global-jndi-lookup-enabled attribute in <application-server> element in server.xml file, to be true.
    One of the applications use hibernate 3.1. According to some of posts from your forum, I replaced antlr.jar from toplink\jlib folder with one form with the one provided by the Hibernate 3 distribution.
    In order to integrate Hibernate with Container managed transactions, I set in hibernate.cfg.xml:
    hibernate.transaction.factory_class parameter to: org.hibernate.transaction.CMTTransactionFactory and
    hibernate.transaction.manager_lookup_class to: org.hibernate.transaction.OC4JTransactionManagerLookup.
    Everything works well since I save/update data in database. I save or update data, calling method from remote session bean.
    I am getting java.lang.NullPointerException. Here is my error log:
    2007-02-23 13:03:32.687 WARNING J2EE EJB-08002 [WorkflowManager] thread HTTPThreadGroup-12 encountered an exception while trying to end the transaction: oracle.oc4j.rmi.OracleRemoteException: An exception occurred during transaction completion: ; nested exception is:
    javax.transaction.RollbackException
    WARN processException, Unhandled Exception thrown: class com.ed.ecomm.edcore.exception.RepException
    2007-02-23 13:03:32.750 ERROR ServletException cause
    mermig > 13:03:32.765 ERROR SecurityFilter - EXCEPTION:
    Error sending method invocation request; nested exception is:
    java.lang.NullPointerException
    javax.servlet.ServletException: Error sending method invocation request; nested exception is:
    java.lang.NullPointerException
    at org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:516)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:423)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
    at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
    at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:50)
    at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
    at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
    at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
    at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056)
    at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:261)
    at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:388)
    at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:316)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:231)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at com.ed.mermig2plus.web.filters.AuthorizationFilter.doFilter(AuthorizationFilter.java:115)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    at com.ed.ecomm.edcore.web.filters.MonitoringFilter.doFilter(MonitoringFilter.java:180)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
    at com.ed.ecomm.edcore.web.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:93)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
    at com.ed.ecomm.edcore.web.filters.DoFilterPrivilegedAction.run(DoFilterPrivilegedAction.java:65)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:320)
    at com.ed.ecomm.edcore.web.filters.jaas.OracleJAASProvider.performAction(OracleJAASProvider.java:166)
    at com.ed.ecomm.edcore.web.filters.SecurityFilter.performAction(SecurityFilter.java:595)
    at com.ed.ecomm.edcore.web.filters.SecurityFilter.doFilter(SecurityFilter.java:292)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
    at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:619)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
    at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
    at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
    at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
    at java.lang.Thread.run(Thread.java:534)
    Can you help me? I can not find anything about this exception
    The same works for me in 10.1.2.0.2
    Thanks and regards,
    -- Smiljka

    OC4J can work with many different DataSources implementations to work against many different databases. We have not hardcoded it work only against an Oracle database. We have reworked the Data Source area in 10.1.3 to make it simpler and more consistent.
    I'd recommend having a read of the the J2EE Services Guide for 10.1.3 (http://download-west.oracle.com/otn/java/oc4j/1013/doc/web.1013/b14427.pdf)
    and have a look at chapter 4 where our new and improved DataSource implementation s discussed.
    -steve-

Maybe you are looking for

  • Photoshop CS5 and CS6 does not start. Windows 7

    I am using Photoshop CS5 as well as CS6, 64-bit on Windows 7. Since the last few days, I noticed that Photoshop would take a very long time to start (earlier it used to start within few seconds). Today, I found that both the Photoshop versions do not

  • Po.migo,miro report issue

    i need a t code to run a report showing the purchase order, migo and miro according to date

  • Updating to original ios 6.0.

    I want to update from ios 5.1.1 to 6.0 to get the new features but I was to lazy (and too little memory) at the time to do it. Now I can only update to 6.1.3. which only has bug fixes while 6.0. has hunreds of new features. Is there anyway I can upda

  • Links won't work properly in Firefox.

    Hi there, So whenever I open a link to my grocer (Loblaws), or certain links from my Outlook (formerly Hotmail) inbox (I've included a link from Match.com as an example), I get a grey tab. http://www.loblaws.ca/LCLOnline/store_selector.jsp?_DARGS=/LC

  • IMovie Timing Issues

    I recently received a new hard drive in my MacBook Pro and was upgraded to iMovie '11. Since then, the clip duration will not change; I am able to change the transition duration. Also, I am unable to upload videos to any event or create a new event.