Error deploying BC4J to OC4J as EJB.

In order to understand better the correct deploying procedure I created a small scott/tiger BC4J project.
Then I created an EJB deploy using the wizard and deployed it to a fresh O4JC install.
During deploy I receive an "error loading class ....DatabaseModuleServer" where DatabaseModule is the name of my ApplicationModule .
I used only wizards, what did I miss ?
TIA
Tullio
P.S. : I'm using 9.0.3.0 but I tried also with 9.0.3.2

do you config the fresh OC4J with BC4J libraries?

Similar Messages

  • How to deploy BC4J application as session EJB  to OC4J manually?

    We have created a BC4J application with JClient as a client server interface. BC4J is to be deloyed as Session EJB to OC4j.
    I need to know how to deploy the BC4J application as session EJB to OC4J manually (at the customer's site without the JDeveloper).
    Thanks.

    If you just have OC4J.
    java -jar admin.jar .....
    You can look at the commandlines when you use JDeveloper to deploy to a standalong OC4J and just use them pretty much.
    Or if they have IAS, use the Enterprise Manager web console to deploy your EAR files.
    Rob

  • ADF in JDeveloper 10.1.3.0.4: Error deploying bc4j.ear in JBoss-4.0.4.CR2

    Hello,
    Using the ADF Runtime Installer for JBoss found in JDeveloper 10.1.3.0.4, i've received deployment error during startup of JBoss. The error message as displayed in the console window as follows:
    09:29:16,325 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
    --- Incompletely deployed packages ---
    org.jboss.deployment.DeploymentInfo@89f00429 { url=file:/C:/Java/JBossAppServers/jboss-4.0.4.CR2/server/default/deploy/bc4j.ear }
      deployer: org.jboss.deployment.EARDeployer@3a835d
      status: Deployment FAILED reason: Could not create deployment: file:/C:/Java/JBossAppServers/jboss-4.0.4.CR2/server/default/tmp/deploy/tmp65518bc4j.ear-contents/webapp.war; - nested throwable: (org.jboss.ws.WSException: java.lang.ClassNot
    FoundException: oracle.jbo.server.emd.EMDServlet)
      state: FAILED
      watch: file:/C:/Java/JBossAppServers/jboss-4.0.4.CR2/server/default/deploy/bc4j.ear
      altDD: null
      lastDeployed: 1146014956309
      lastModified: 1146014950147
      mbeans:Above it there is a lot more lines of stack trace, tell me if you need it to help me with this problem. The file structure deployed is as follows (Based on the log displayed in JDeveloper):
    In deploy directory
    bc4j.ear
    In jlib directory
    bc4jdomgnrc.jar
    In lib directory
    adf-connections.jar
    adfbinding.jar
    adfcm.jar
    adfm.jar
    adfmtl.jar
    adfmweb.jar
    adfshare.jar
    adfui.jar
    antlr.jar
    bc4jct.jar
    bc4jctejb.jar
    bc4jdomgnrc.jar
    bc4jdomorcl.jar
    bc4jhtml.jar
    bc4jimdomains.jar
    bc4jmt.jar
    bc4jmtejb.jar
    cache.jar
    collections.jar
    commons-cli-1.0.jar
    commons-el.jar
    concurrent.jar
    datatags.jar
    dc-adapters.jar
    dms.jar
    http_client.jar
    jazncore.jar
    jdev-cm.jar
    jsp-el-api.jar
    mdds.jar
    mdsrt.jar
    ojdbc14.jar
    ojdbc14dms.jar
    ojdl.jar
    ojpse.jar
    oracle-el.jar
    oraclepki.jar
    orajaxr.jar
    orasaaj.jar
    orawsdl.jar
    orawsrm.jar
    ordhttp.jar
    ordim.jar
    osdt_cert.jar
    osdt_core.jar
    osdt_saml.jar
    osdt_wss.jar
    osdt_xmlsec.jar
    regexp.jar
    runtime12.jar
    share.jar
    toplink.jar
    translator.jar
    wsclient.jar
    wsdl.jar
    wssecurity.jar
    xml.jar
    xmlef.jar
    xmlparserv2.jar
    xsdlib.jar
    xsqlserializers.jar
    xsu12.jar
    And another thing, is there any way to have the ADF Runtime Installer install the ADF Runtime into another JBoss config directory. As far as I noticed, it will only install into the JBoss default config directory.
    TQ in advance.

    Hi Cleber,
    Is it possible that you can send me a copy of your original 10.1.2 project which contains these diagrams so that I can take a look? The diagrams should open fine in 10.1.3.0.4.
    My email address is [email protected], if you could zip up your project and then change the .zip file extension to .zap to get it through the email server.
    Regards,
    Lisa
    JDev QA

  • How deploy BC4J to OC4J

    Hi!
    I have a problem when install my application the which use BC4J to OC4J.
    I have installed in my server:
    Oracle 9iAS 9.0.1
    Oracle Enterprise 9i
    Regards.
    Wil.

    Are you using Oracle9iAS 9.0.2. We don't have a version called 9.0.1 ?
    Oracle9iAS Release 2 is configured to work with BC4J. What problems are you getting and how are you deploying to Oracle9iAS ?
    Please look at http://otn.oracle.com/products/jdev/htdocs/config_oc4j_for_bc4j.html if you are deploying to standalone OC4J.
    regards
    Debu Panda
    Oracle

  • Error deploying BC4J JSP-application to OC4J

    Hi!
    I am trying to deploy a typical default generated jsp - application based on default generated BC4J components (against a simple table in an oracle 8.1.7 database) to an external oc4j - service.
    The application runs without problems in the internal JDeveloper oc4j, but when I deploy it to an external oc4j service, I get the following error:
    ++++++++++++++++++++++++++++++++++++++++++++++++
    Error Message: JBO-30003: The application pool (mypackage1.Mypackage1Module.Mypackage1ModuleLocal) failed to checkout an application module due to the following exception:
    Error Message: JBO-25029: Data class (a domain?) {0} not found
    JBO-30003: The application pool (mypackage1.Mypackage1Module.Mypackage1ModuleLocal) failed to checkout an application module due to the following exception:
    oracle.jbo.domain.DataCreationException: JBO-25029: Data class (a domain?) {0} not found
         at oracle.jbo.common.JBOClass.findDataClass(JBOClass.java:152)
         at oracle.jbo.server.AttributeDefImpl.loadFromXML(AttributeDefImpl.java:1922)
         at oracle.jbo.server.EntityDefImpl.loadAttribute(EntityDefImpl.java:2293)
         at oracle.jbo.server.EntityDefImpl.loadAttributes(EntityDefImpl.java:2236)
    ## Detail 0 ##
    java.lang.ClassNotFoundException: oracle.jbo.domain.RowID
         at com.evermind.naming.ContextClassLoader.findClass(ContextClassLoader.java:185)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at oracle.jbo.common.java2.JDK2ClassLoader.loadClassForName(JDK2ClassLoader.java:30)
         at oracle.jbo.common.JBOClass.forName(JBOClass.java:136)
         at oracle.jbo.common.JBOClass.findDataClass(JBOClass.java:148)
         at oracle.jbo.server.AttributeDefImpl.loadFromXML(AttributeDefImpl.java:1922)
         at oracle.jbo.server.EntityDefImpl.loadAttribute(EntityDefImpl.java:2293)
    I am using JDeveloper 9.0.2 Production
    and oc4j 9.0.2.0.0
    Ketill

    Jump to the following link, read, and understand everything:
    Re: How to use the classes of ott generated in Visual c++
    Also, locate the C:\Jdev9i\BC4J\bin\bc4j2oc4j.bat file, make the necessary changes for the OC4J_HOME, JDEV_HOME, and JDK_HOME and run. This file should setup the BC4J libraries in your OC4J installation. Be sure your OC4J_HOME\j2ee\home\admin.jar is version compatible with the JDEV_HOME\j2ee\home\admin.jar.
    Arnold Angel
    [email protected]

  • Problem in Connection pooling after deploying BC4J App Module as EJB

    Hi,
    We have deployed the application modules on standalone OC4J as stateful EJB session beans.
    The problem is that with each user, the number of database connections seem to increase. This is making the application unscalable, which defeats the purpose of using EJB!
    Can someone please suggest how to limit the number of database conections in this scenario?
    Can this be solved by application module pooling? How can we use the PoolMgr to work with the session beans?
    We have tried to invoke disconnect on the application module after calling methods(using appmodule.disconnect(true)) and reconnect (appmodule.reconnect()) on entering the method. This keeps the number of connections low and works the first time the method is invoked. But subsequently, it gives nullpointerexception when the Row is accessed in the JSP.
    The exception we are getting is :
    java.lang.NullPointerException
         at oracle.jbo.client.remote.ViewUsageImpl.getStructDef(ViewUsageImpl.java:241)
         at oracle.jbo.client.remote.ViewUsageImpl.findAttributeDef(ViewUsageImpl.java:275)
         at oracle.jbo.client.remote.RowImpl.getAttributeIndexOf(RowImpl.java:368)
         at oracle.jbo.client.remote.RowImpl.getAttribute(RowImpl.java:144)
         at Supplier.client.ejb.beanmanaged.SupplierAM_IntPaymtVORowBeanManagedClient.getMdid(SupplierAM_IntPaymtVORowBeanManagedClient.java:63)
         at supplier.sccPayCheq._jspService(_sccPayCheq.java:102)
         [SRC:/Supplier/sccPayCheq.jsp:44]
    The Application module configuration (in bc4j.xcfg) is:
    <AppModuleConfig name="SupplierAM9iAS">
    <AppServerConnectionName>StandaloneOC4JConnection</AppServerConnectionName>
    <AppModuleJndiName>Supplier.SupplierAM</AppModuleJndiName>
    <java.naming.security.credentials>admin</java.naming.security.credentials>
    <DeployPlatform>EjbIas</DeployPlatform>
    <java.naming.security.principal>admin</java.naming.security.principal>
    <DtMiddleTierDeploymentProfile>ProjectMiddleTier.deploy</DtMiddleTierDeploymentProfile>
    <ApplicationName>Supplier.SupplierAM</ApplicationName>
    <DtDeploymentProfile>ProjectEJB.deploy</DtDeploymentProfile>
    <DtCommonDeploymentProfile>ProjectCommon.deploy</DtCommonDeploymentProfile>
    <JDBCDataSource>jdbc/ConnectionCoreDS</JDBCDataSource>
    <jbo.server.internal_connection>jdbc/ConnectionCoreDS</jbo.server.internal_connection>
    <jbo.ejb.txntype>local</jbo.ejb.txntype>
    <jbo.doconnectionpooling>true</jbo.doconnectionpooling>
    <ApplicationPath>ProjectEJB</ApplicationPath>
    </AppModuleConfig>
    The Datasource used (in $ORACLE_HOME/j2ee/home/config/data-sources.xml) is:
    <data-source
              class="oracle.jdbc.pool.OracleConnectionCacheImpl"           connection-driver="oracle.jdbc.driver.OracleDriver"
              ejb-location="jdbc/ConnectionDS"
              inactivity-timeout="30"
              location="jdbc/ConnectionCoreDS"
              name="ConnectionDS"
              password="*******"
              pooled-location="jdbc/ConnectionPooledDS"
              url="jdbc:oracle:thin:@<IPADDESS>:<SID>"
              username="USER"
              xa-location="jdbc/xa/ConnectionXADS"
              max-connections="5"
              min-connections="1"/>

    Can this be solved by application module pooling? How
    can we use the PoolMgr to work with the session
    beans?You can use a stateless checkout/checkin appmodule.
    Take a look at the following help topics which explain this in good detail.
    "About Application Module Pooling"
    "About JSP Pages and Application Module Pooling"
    The pool can help reuse the appmodule instance across requests thus reducing the number of concurrent db sessions.
    Dhiraj

  • Error deploying to standalone OC4J app server

    Hey all,
    I created a web app with jdeveloper 10.1.3.3 using OC4J 10.1.3.3 as well. I'm using EJB and session beans to communicate with a database. nothing particularly fancy about it, i just read tables from the db. however, when i try and deploy through jdev to the standalone OC4J i get an error. here's the last part of the deployment log when it fails:
    Deployment Log:
    Binding ibmswauth web-module for application ibmswauth to site default-web-site under context root ibmswauth
    Operation failed with error:
    [ibmswauth:ibmswauth] - Exception creating EntityManagerFactory using PersistenceProvider class oracle.toplink.essentials.PersistenceProvider for persistence unit WD_WORK.
    The only thing in my Persistence.xml file is the <persistence-unit> tag with name "WD_WORK", and in that a <jta-data-source> tag.
    Also, it runs fine on the local embedded server, it's only when i try and deploy that it gives this error. I even deployed my app to an EAR file and tried uploading it manually to the app server, still same error.
    any ideas?

    If you have a model project that has objects referenced by the view controller/UI project then you need to explicitly include them in the deployment. Unlike in embedded OC4J they wont be automatically included.
    Create an ADF library deployment profile in the model project and include the generated library in your UI project war file. You can add this jar to the project Libraries/Classpath then make sure it is included in the WEB-INF/lib Contributors list.

  • Error: deploy BC4J on 8.1.6 database.

    Hi all,
    I'm trying to deploy of a BC4J project as an Oracle 8i session bean. When I deploy when create the deployment profile, I get ORA-1000: end-of-file on communication chanel. But if I try to make a deploy of an only one file, I get this error:
    Compiling Stubs...done
    Generating Jar File...done
    Loading EJB Jar file and Comm Stubs Jar file...
    -- This is the error --
    Cannot locate the LoadJava server: Unknown reasons
    *** Errors occurred while deploying the EJB to 8i JVM ***
    *** Deployment completed ***
    But loadjava.bat file was in system path (Windows NT 4.0).
    Thanks in advance.

    "Cannot locate the LoadJava server: Unknown reasons" is consistent with a jdev - rdbms mismatch ...
    are you trying to deploy to 816 when using jdev 3.2 ?
    Jdev 3.1 --- 8.1.6
    Jdev 3.2 --- 8.1.7
    so you may need to upgrade to 8.1.7
    that would explain why jdev 3.1.1.2 deploys successfully ...

  • Error deploying Jclient with oc4j using webstart with oracle lite

    I have included almost all the files that I found in any documentation.
    configured data sourses doe oc4j, put the oralite40.jar in lib directory of oc4j but still getting this error when I start the deployed application
    oracle.jbo.common.ampool.ApplicationPoolException) JBO-30003: The application pool (model.AppModuleLocal) failed to checkout an application module due to the following exception:
    (oracle.jbo.common.ampool.ApplicationPoolException) JBO-30003: The application pool (model.AppModuleLocal) failed to checkout an application module due to the following exception:
    ----- LEVEL 1: DETAIL 0 -----
    (oracle.jbo.JboException) JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.DMLException, msg=JBO-26061: Error while opening JDBC connection.
    ----- LEVEL 2: DETAIL 0 -----
    (oracle.jbo.JboException) JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.DMLException, msg=JBO-26061: Error while opening JDBC connection.
    ----- LEVEL 3: DETAIL 0 -----
    (oracle.jbo.JboException) JBO-29000: Unexpected exception caught: oracle.jbo.DMLException, msg=JBO-26061: Error while opening JDBC connection.
    ----- LEVEL 4: DETAIL 0 -----
    (oracle.jbo.DMLException) JBO-26061: Error while opening JDBC connection.
    ----- LEVEL 5: DETAIL 0 -----
    (java.sql.SQLException) No suitable driver
    can any one help me

    I am also getting the same error when trying to test the jspx from JDev. I created an EO, VO and Application Module connecting to MS SQL server 2000 database. I created the Database using JDBC-ODBC bridge and was able to access the tables successfully. When testing the Application Module from the BC browser i am able to navigate between the records of the EO/VO successfully. I included this VO as a Read Only table in one of my jspx page and when trying to test the jspx page i get the same error.
    Please help and let me know what i am missing.

  • Deploying BC4J as a session EJB in JBoss.Help while looking up

    Hello there,
    I have developed a simple bc4j component.I have deployed the
    same in Weblogic server5.1.I have to deploy the same thing in
    JBoss Server.I am using JBoss-Tomcat bundle(Jboss-2.2.2_Tomcat-
    3.2.2).I have deployed the BC4J component as a session bean in
    JBoss server(No erros while deploying)
    But the problem is when to call this session bean.To lookup the
    application module as is done in Weblogic the value for
    JboContext.DEPLOY_PLATFORM is given as JboContext.PLATFORM_WLS.
    This is taken to be specific to weblogic server.What is the
    value for this property for a JBossServer.
    Any help would be appreciated.Thanks a lot

    Hello there,
    I have developed a simple bc4j component.I have deployed the
    same in Weblogic server5.1.I have to deploy the same thing in
    JBoss Server.I am using JBoss-Tomcat bundle(Jboss-2.2.2_Tomcat-
    3.2.2).I have deployed the BC4J component as a session bean in
    JBoss server(No erros while deploying)
    But the problem is when to call this session bean.To lookup the
    application module as is done in Weblogic the value for
    JboContext.DEPLOY_PLATFORM is given as JboContext.PLATFORM_WLS.
    This is taken to be specific to weblogic server.What is the
    value for this property for a JBossServer.
    Any help would be appreciated.Thanks a lot

  • Error deployment to standalone oc4j (jdeve 11g tech prev 3)

    something to do with persistence...
    and entitymanager.. similar to bundleoc4j issue..
    AnnotatedClassNotFoundException
    even though the classes are chosen and checkmarked..
    (as in 10g)
    Caused by: java.lang.InstantiationException: Application: M2miAPplicationDemo is in failed state as initialization failed
         at com.evermind.server.Application.setConfig(Application.java:645)
         at com.evermind.server.Application.setConfig(Application.java:448)
         at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:2114)
         at oracle.oc4j.admin.internal.ApplicationDeployer.addApplication(ApplicationDeployer.java:554)
         ... 7 more
    Caused by: oracle.oc4j.persistence.PersistenceException: [M2miAPplicationDemo] - Exception creating EntityManagerFactory using PersistenceProvider class oracle.toplink.PersistenceProvider for persistence unit Model.
         at oracle.oc4j.persistence.PersistenceException.exceptionCreatingEntityManagerFactory(PersistenceException.java:113)
         at oracle.oc4j.persistence.PersistenceUnitManagerImpl.createContainerEntityManagerFactory(PersistenceUnitManagerImpl.java:177)
         at oracle.oc4j.persistence.PersistenceUnitManagerImpl.createPersistenceUnit(PersistenceUnitManagerImpl.java:139)
         at oracle.oc4j.persistence.PersistenceUnitManagerImpl.initialize(PersistenceUnitManagerImpl.java:79)
         at oracle.oc4j.persistence.ServerPersistenceUnitManagerImpl.initialize(ServerPersistenceUnitManagerImpl.java:17)
         at com.evermind.server.ApplicationStateRunning.initializeApplication(ApplicationStateRunning.java:268)
         at com.evermind.server.Application.setConfig(Application.java:551)
         ... 10 more
    Caused by: javax.persistence.PersistenceException: Exception [TOPLINK-28018] (Oracle TopLink - 11g Technology Preview 3 (11.1.1.0.0) (Build 071207)): oracle.toplink.exceptions.EntityManagerSetupException
    Exception Description: Predeployment of PersistenceUnit [Model] failed.
    Internal Exception: Exception [TOPLINK-30007] (Oracle TopLink - 11g Technology Preview 3 (11.1.1.0.0) (Build 071207)): oracle.toplink.exceptions.PersistenceUnitLoadingException
    Exception Description: An exception was thrown while loading class: m2mi.model.Hoststats to check whether it implements @Entity, @Embeddable, or @MappedSuperclass.
    Internal Exception: oracle.classloader.util.AnnotatedClassNotFoundException:
         Missing class: m2mi.model.Hoststats
         Dependent class: oracle.toplink.internal.ejb.cmp3.persistence.PersistenceUnitProcessor
         Loader: oracle.toplink:11.1.1.0.0
         Code-Source: /C:/jdeveloper/lib/java/shared/oracle.toplink/11.1.1.0.0/toplink-core.jar
         Configuration: <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in C:\jdeveloper\j2ee\home\oc4j.jar

    Hi,
    please try this with the embedded OC4J that you can start as stand alone server. If you use the OC4J isntance you download from OTN then you get one of version TP1, which is probably not working well with the changes in JDeveloper 11 TP3
    Frank

  • Error message when starting OC4J after deploying

    Hi, I hope someone can help me. I've been developing a J2EE project in JBuilder9 and OC4J 9.0.3. The problem occurs when starting OC4J after the application has been deployed. I'm using two MDBs and two Session Beans, one Stateless and the other one stateful. I'm using two topics with OJMS. I can access these topics from a standalone application, but when I try to lookup JNDI names from inside EJBs, I get a NamingException (name not found) Please I need some help
    OC4J error:
    D:\oc4j\j2ee\home>java -jar oc4j.jar
    Node started with id=678845146
    Error deploying file:/D:/oc4j/j2ee/home/applications/LogicaNegocio/LogicaNegocio
    .jar homes: Topic has empty subscription name
    Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
    Error when executing standalone application client using EJBs:
    javax.naming.NameNotFoundException: No resource named 'TopicConnecionFactories/TablaTopics' found in resource provider 'BeanProcesamientoMensajes'
    This error doesn't appear when looking up that topic with a standalone application w/o using EJBs
    Thanks in advance.

    make sure the datasource.xml in the config directory is right
    for example
         <data-source
              class="com.evermind.sql.OrionCMTDataSource"
              name="OracleDS"
              location="jdbc/OracleCoreDS"
              xa-location="jdbc/xa/OracleXADS"
              ejb-location="TopicConnecionFactories/TablaTopics"
              connection-driver="oracle.jdbc.driver.OracleDriver"
              username="xx"
              password="xx"
              url="jdbc:oracle:thin:@172.16.113.2:1521:orcl"
              inactivity-timeout="90"
         />

  • BC4J in OC4J Best Practice

    What is the best way to deploy BC4J to OC4J?
    Option 1:
    Deploy the BC4J libraries either manually or via the bc4j2oc4j.bat script to OC4J root lib
    Option 2:
    Deploy the BC4J runtime libraries with each application deployed under OC4J
    Currently I use Option 1 because I only have to add the BC4J files once, I get consistency across all deployed apps and it uses less memory(?). The drawback is that all the apps will share the library and you MUST have pesistence turned on and functioning. It looks like each time an app hits the BC4J lib, the persistence mechanism persists the current app's data, and then switches to the new app. I presume this happens everytime one app competes with another app for BC4J.
    I have also seen BC4J deployed with every application. This presumably would give every app it's own BC4J runtime and therefore avoid any conflicts. Would it also mean better peformance assuming the box has plenty of memory? Or is is slower than Option 1?
    Anyone else have any comments or additions? I just wnat to understand the best way, if there is one, to deploy BC4J to OC4J.
    Thx,
    Eric

    Can you elobarate on what you mean by
    "The drawback is that all the apps will share the library and you MUST have pesistence turned on and functioning."
    These options control how the the bc4j classes are loaded and have no bearing on application data. Each .ear on oc4j is loaded by a different classloader instance. So beploying bc4j runtime jars in each ear would mean that these classes are loaded multiple times -- which is redundant and would only consume more memory. That's why I think option 1 is the better choice.
    Dhiraj Dhiraj,
    all I meant by that is that you HAVE to have the BC4J persistence collection stuff turned on. We had initially tried to disable this due to some other issues, but running with it off caused errors when trying to run multiple apps. As soon as BC4J persistence collection was turned back on, everything started working correctly.
    I think you are right about the memory thing and I haven't heard any reason not to use Option 1 (a single set of libraries).
    Thx.

  • 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 when deploying EAR in OC4J 10.1.3.0.0 with a deployment plan

    Hello!
    I try to deploy an ear file specifying a deployment plan generated from web interface using command line utilities. I try to use both admin_client.jar and oracle ant task and still get the same error. When i remove deployment plan argument, the application is successfully deployed.... Any Idea?
    My server:
    OC4J 10.1.3.0.0 on an AIX server
    The error raised during deployment:
    [MyServer] 08/04/07 12:46:56 Notification ==>Application Deployer for MyApp STARTS.
    [MyServer] 08/04/07 12:46:56 Notification ==>Copy the archive to /oracle/product/j2ee/home/applications/MyApp.ear
    [MyServer] 08/04/07 12:46:56 Notification ==>Initialize /oracle/product/j2ee/home/applications/MyApp.ear begins...
    [MyServer] 08/04/07 12:46:56 Notification ==>Unpacking MyApp.ear
    [MyServer] 08/04/07 12:46:57 Notification ==>Done unpacking MyApp.ear
    [MyServer] 08/04/07 12:46:57 Notification ==>Unpacking ic.war
    [MyServer] 08/04/07 12:46:59 Notification ==>Done unpacking ic.war
    [MyServer] 08/04/07 12:46:59 Notification ==>Initialize /oracle/product/j2ee/home/applications/MyApp.ear end
    s...
    [MyServer] 08/04/07 12:46:59 Notification ==>Starting application : MyApp
    [MyServer] 08/04/07 12:46:59 Notification ==>Initializing ClassLoader(s)
    [MyServer] 08/04/07 12:46:59 Notification ==>Initializing EJB container
    [MyServer] 08/04/07 12:46:59 Notification ==>Loading connector(s)
    [MyServer] 08/04/07 12:47:00 Notification ==>Starting up resource adapters
    [MyServer] 08/04/07 12:47:00 Notification ==>Initializing EJB sessions
    [MyServer] 08/04/07 12:47:00 Notification ==>Committing ClassLoader(s)
    [MyServer] 08/04/07 12:47:00 Notification ==>Initialize ic begins...
    [MyServer] 08/04/07 12:47:00 Notification ==>Initialize ic ends...
    [MyServer] 08/04/07 12:47:00 Notification ==>Started application : MyApp
    [MyServer] 08/04/07 12:47:00 Notification ==>Binding web application(s) to site default-web-site begins...
    [MyServer] 08/04/07 12:47:00 Notification ==>Binding ic web-module for application MyApp to site default-web-site under context root ic
    [MyServer] 70/01/01 00:00:00 Notification ==>Error deserializing return-value: unexpected reset; nested exception is:
    java.io.StreamCorruptedException: unexpected reset
    [Summary] There are total 1 instances in the operation.
    [Summary] Operation failed on MyServer
    [Summary] Operation on cluster FAILED since 1 instanced failed!
    Here my deployment plan generated by the Application Server Control Console
    moduleType=ear
    applicationID=MyApp
    bindWebApp=default-web-site
    parent=default
    moduleID=.
    doctype=orion-application
    <?xml version="1.0" encoding="UTF-8"?>
    <orion-application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/sch
    ema/orion-application-10_0.xsd">
    </orion-application>
    moduleID=myapp.war
    doctype=orion-web-app
    <?xml version="1.0" encoding="UTF-8"?>
    <orion-web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/
    orion-web-10_0.xsd" context-root="myapp">
    <resource-ref-mapping name="jdbc/ds" location="jdbc/myapp/ds">
    </resource-ref-mapping>
    <web-app-class-loader>
    </web-app-class-loader>
    </orion-web-app>
    My Command line to deploy the application
    java -jar admin_client.jar deployer:cluster:opmn://MyServer/home oc4jadmin XXXXX -deploy -file ~/MyApp.ear -deploymentName MyApp -deploymentPlan ~/myapp_plan.dat
    Ant file used to deploy
    <project name="Deploy EAR in OC4J" default="deploy-ear" basedir="." xmlns:oracle="antlib:oracle">
    <property name="server.host" value="MyServer"/>
    <property name="server.user" value="oc4jadmin"/>
    <property name="server.password" value="XXXXXX"/>
    <property name="deploy.filepath" value="/home/myhome/MyApp.ear"/>
    <property name="deploy.deployname" value="MyApp"/>
    <property name="deploy.logpath" value="${basedir}/deploy-ear.log"/>
    <property name="deploy.planpath" value="/home/myhome/myapp_plan.dat"/>
    <property name="deploy.uri" value="deployer:cluster:opmn://${server.host}/home"/>
    <target name="deploy-ear">
    <oracle:deploy
    deployerUri="${deploy.uri}"
    userId="${server.user}"
    password="${server.password}"
    file="${deploy.filepath}"
    deploymentName="${deploy.deployname}"
    bindAllWebApps="default-web-site"
    deploymentPlan="${deploy.planpath}"
    logFile="${deploy.logpath}"/>
    </target>
    </project>
    Thanks
    Message was edited by:
    Olivier MARTIN

    If you're using OC4J standalone, use the latest available OC4J, 10.1.3.3.
    If you're using a manage OC4J, ie. Application Server, upgrade to the latest available version and upgrade your JDK. The provided JDK might be outdated.
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for