Deployment of JDeveloper EJBs

Hi,
I raised this issue earlier as well. However I did not get a proper reply.
Can EJBs created through JDeveloper (currently available versions) be deployed in non-Oracle Application Servers or EJB Servers ?

Hi Eelco
If you're using previous versions of JDeveloper, you can still deploy your EJB as a JAR to non-oracle servers. However, the JAR might not be compliant with the EJB 1.1 specification if that is a concern. This simple JAR option will be available in the 3.2 Deployment Wizard and will bundle everything for you.
You'll also need to make sure that you are deploying the right type of descriptor file with your JAR; 1.0 EJB uses a text file whereas EJB 1.1 uses an XML file.
JDeveloper 3.2 will allow you to create 1.1 compliant EJB as well as bring 1.0 projects to 1.1 compliance. This information will be contained in the Release Notes.
orlando

Similar Messages

  • Strange exception when deploying BC4J as EJB in 8i CORBA.BAD_PARAM: null Strings are

    I am trying to deploy BC4J as Ejb to 8i (8.1.6). I use the following deployment method with j: my Jdev root.
    setjboenv j: ejb8i
    loadjava - u user/passwd@host:port:sid - thin -v - r grant "SYS,PUBLIC" j:lib\xmlparserv2.jar
    loadjava - u user/passwd@host:port:sid - thin -v - r grant "SYS,PUBLIC" j:lib\jbomt.zip
    loadjava - u user/passwd@host:port:sid - thin -v - r grant "SYS,PUBLIC" j:lib\jboejb.jarI then create a deployment profile for ejb 8i with the ide. (Without deploying)
    I then use loadjava outside the IDE to deploy the 2 jar files created
    MyProject1CommonEJB.jar
    and
    Myproject1.jar
    I then use the ide again to deploy the bean profile
    Package1ModuleServerEJB.prf
    The last step fails with the error :
    Publishing EJBHome...org.omg.CORBA.BAD_PARAM: null Strings are illegal in IIOP. Please correct your application or run the ORB in backward compatibility mode. minor code: 0 completed: No
    void oracle.aurora.ejb.deployment.GenerateEjb.invoke()
    void oracle.aurora.server.tools.sess_iiop.ToolImpl.invoke(java.lang.String[], java.io.InputStream, java.io.PrintStream, java.io.PrintStream)
    void oracle.aurora.ejb.deployment.GenerateEjb.main(java.lang.String[])
    Exception in thread main
    Strangely, when I test this EJB with the tester (middle tier = remote ejb) it works, but from JSP's I get an application error : "Unknown Exception"
    I am using Jdev 3.1
    Also using the deploy option when creating the deployment profile fails apparantly due to the missing grant "SYS,PUBLIC" when loading classes to the database before deploying the bean.
    What can be done ?
    null

    Hi Blaise
    Thanks for the reply. I have tried to do the complete deployment from within Jdev, but now I get the following error right at the end of the deployment.
    /BC4J1AppModuleEjb/EjbObject_RemoteBC4J1AppModuleEjb:ORA-29535: source requires recompilationjava.lang.NullPointerException at sun.tools.java.Environment.error(Environment.java) at sun.tools.java.Environment.error(Environment.java) at sun.tools.java.Environment.error(Environment.java) ..... etc.
    I have tried to deploy to a clean schema with the java privilages granted as described in the Jdev release notes.
    I included the following libraries in my project :
    JBO JDBC816 PATCH
    JBO OSQL Domains
    JDeveloper Runtime
    Oracle 8.1.6 JDBC
    Connection Manager
    JBO Runtime
    JBO VB Runtime
    JBO 8i Runtime
    SQLJ Runtime
    JBO 8i Client
    JBO Vanilla Domains
    JBO EJB Runtime
    JServer
    Oracle XML SQL Utility
    ORACLE XML Parser 2.0
    Then I just used the deployment wizzard
    null

  • Deployment of VisualAge EJBs into iAS

    I want to deploy EJBs (1.1) developed using IBM VisualAge 3.5.3 into ORACLE iAS (the one you can download from ORACLE's web site at the moment). My experiences in a former project were that due some incompatibilites between IBM's and ORACLE's EJB specifications I had to use JDeveloper when I want to deploy EJBs into ORACLE software. Has anyone out there some experiences with the deployment of EJBs developed with VisualAge 3.5.3 into the newest ORACLE iAS, and can you give some tips on what to do (Stay away from deployment, or: you can do this or that to get around the tricky things etc etc) ???

    We actually deployed moost of the samples from IBM websphere/VisualAge to OC4J. We also have customers who smoothly migrated from Websphere/VisualAge to OC4J.
    However in some cases you need to change code if are using any custom features.
    There are a few issues you need to consider while migrating EJB code developed on VAJ3.5.3 to OC4J:
    1. Aceess Beans: If you code is using Visual ages/websphere specific access beans you need to copy ivjejb35.jar file to $OC4J_HOME\j2ee\home\lib directory
    2. Client Code changes:
    In the client applications if you are using IBM specific JNDI server and RMI over IIOP to look up EJBs you need change you code to use OC4J ORMI and OC4J JNDI contextFactory.
    3. Changes to EJB code :
    The main thing you have to keep in mind is VAJ3.5.3 is not fully EJB 1.1 compliant and it uses 'finderhelper' classes to define custom finder methods. Most of the cases OC4J generates these finder. In case if you have custom finders defined in finderhelper classes you can easily customzie the OC4J generated deployment descriptors: orion-ejb-jar.xml to define your custom finders.
    4.Finally you need to generate ejb-jar.xml and ejb.jar files since WebSphere/Visual age only supports serialized deployment descriptors. You can use Jdeveloper or Ant tool to do that.
    Otherwise it is fairly straight forward.If you still till have any specific migration issue you can contact me:[email protected]. Note: We are in the process of releasing websphere 3.5.3 migration guide soon, which will give a step by step migration path from websphere 3.5.x to OC4J.
    thanks
    V
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by hdcordes2:
    I want to deploy EJBs (1.1) developed using IBM VisualAge 3.5.3 into ORACLE iAS (the one you can download from ORACLE's web site at the moment). My experiences in a former project were that due some incompatibilites between IBM's and ORACLE's EJB specifications I had to use JDeveloper when I want to deploy EJBs into ORACLE software. Has anyone out there some experiences with the deployment of EJBs developed with VisualAge 3.5.3 into the newest ORACLE iAS, and can you give some tips on what to do (Stay away from deployment, or: you can do this or that to get around the tricky things etc etc) ???<HR></BLOCKQUOTE>
    null

  • Error in deploying a simple EJB 3.0

    Hi ,
    I am getting the following error while deploying my simple ejb of version 3.0 in Weblogic 9.2.
    Exception preparing module: EJBModule(build) [EJB:011023]An error occurred while reading the deployment descriptor. The error was: Error processing annotations: java.lang.NullPointerException.
    During my evaluation of Weblogic 9.2 for EJB 3.0 , I have got the following questions.
    EJB Specification states that EJB's in EJB 3.0 can be developed and deployed without the need of deployment descriptors. I have created a simple EJB with two file Env.java and EnvBean.java and the source code is given below.
    a) I just complied these class files and when I was trying to deploy without ejb-jar.xml and weblogic-ejb-jar.xml, the console was not at all allowing me to deploy.Why is this so?
    b) After I created a META-INF file under root of classes directory by placing ejb-jar.xml with empty <enterprise-beans> element, console was allowing me to deploy with errors in parsing ejb-jar.xml. The error was either session/entity/mdb is a required under <enterprise-beans> element. Why is this required when there are several examples stating <enterprise-beans> element can be empty.
    c) Later I updated ejb-jar.xml with <session> element under <enterprise-beans> with the following values. I got the above error when deployed with this change.
    I had been struggling to deploy this simple bean for almost a day.Pleas point me if there is any documentation that solves my stated problem or if there is a solution.Thanks in advance.
    regards
    Karim
    ejb-jar.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <ejb-jar xmlns="http://java.sun.com/xml/ns/javaee" version="3.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd">
    <enterprise-beans>
    <session>
    <description>This is the stateless ejb</description>
    <display-name>Env Bean</display-name>
    <ejb-name>EnvBean</ejb-name>
    </session>
    </enterprise-beans>
    </ejb-jar>
    Env.java
    package examples ;
    public interface Env {
    public void display();
    EnvBean.java
    package examples;
    import javax.ejb.Remote;
    import javax.ejb.Stateless;
    @Stateless
    @Remote(Env.class)
    public class EnvBean implements Env {
    public void display() {
    System.out.println("Welcome to EJB 3.0");
    }

    Presumably you're using the EJB3 tech preview, and not a vanilla WebLogic 9.2 install, right?
    Can you post the full stack trace?
    -Patrick

  • Please need Help with web application deployment in Jdeveloper 12c

    Hi,
    I am desperate for help guys. am trying to deploy a web application in weblogic server, but nothing works!!
    I created a project in jdeveloper and created a jsp page inside the project, all what i want is to run that page!
    I followed the instruction here: Deploying Fusion Web Applications , I don't really know if i did it right or wrong, the document is too detailed and not understood clearly.
    I am a newbie oracle user, and trying to build jsp web application connected to oracle database. application deployment fails it says: cannot run application error deploying IntegratedWeblogic..
    please could you tell me the steps of application deployment in Jdeveloper 12c?
    what deployment profiles I need to create (ear, war , mar)?
    what deployment descriptor I need for my app to work?
    please guys I am newbie to oracle, if you could give me simplified answers and straight instructions it will be appreciated .
    thank you

    hi Timo,
    I am building a local web application, meaning the server is internal and will not connect to the web, only to local pcs via network. the application will insert/select data from the database server. My company wants to embed oracle technology on the datatabse and that what am trying to. I am not that expert in java and oracle in general, my main knowledge are in php, html and mysql programming. through my long internet research a lot has recommended jsp with html to be a good choice.
    At beginning I played around with ADF faces, I found it annoying because I prefer coding than using drag and drop interfaces, which always create unwanted results.
    Also am not that professional java programmer, i started learning jsp and found it easier.
    What I am thinking of is to make a web based application that works in browsers (like php), this application has forms to insert data, and also has forms to output data for printing. that's all. I tried to make it in php, but through my little knowledge and internet researches it seems php does not work with oracle and java is the recommended choice (or it works with php but too complicated to make it)
    any recommendation will be much appreciated
    thank you

  • Problems deploying a simple EJB

    I am trying to deploy a simple EJB on the 8.1.5. The bean only owns a single method that needs a unique parameter.
    No problems with compilation of source bean, home and remote interfaces, whatever the type of this parameter is.
    But when I try to deploy the jar on the server, I only succeed if the parameter of my method is a simple type (int, String ...).
    If I try the same passing a complex type (here a oracle.xml.parser.v2.XMLDocument type), I encounter this message from the deployejb tool :
    Generating EJBHome and EJBObject on the server...
    Compilation errors in oracle/aurora/ejb/gen/test_myFluxInsert/EjbObject_FluxInsert:ORA-29535: source requires recompilationjava/lang/Object: Authorization error for referenced class Oracle/xml/parser/v2/XMLDocument.java/lang/Object: Authorization error for referenced class oracle/xml/parser/v2/XMLDocument.oracle/aurora/ejb/gen/test_myFluxInsert/EjbObject_FluxInsert:50: Class oracle.xml.parser.v2.XMLDocument not found in type declaration.
    public java.lang.String insereFlux (oracle.xml.parser.v2.XMLDocument arg0)
    ^ Info: 3 errors
    And if I use an int instead of the XMLDocument parameter, everithing's right.
    Can anybody submit a no-paranormal solution ?
    Thanks.
    GH

    Parameter passing in EJB must implement Serializable. One way to solve this is:
    1. Define a new class which implements
    Serializable.
    2. Place whatever you want to pass inside
    this class.
    3. Now use the new class as your parameter.
    eg.
    public class Params implements java.io.Serializable {
    String p1;
    XmlDocmuent xdoc;,
    etc, etc
    Your program now have to use the class Params for parameter passing.
    Hope this helps.
    Tam
    null

  • Deploying a JDeveloper 10.1.3 app to 10.1.2 Server

    I am deploying a 10.1.3 JDev app to a 10.1.2 Oracle Application Server on Unix.
    I have changed the J2EE version to 1.3 and the JDK version to 1.4, setup my data source on the server and unchecked bundle data sources, setup a connection to the server, setup a new OC4J instance, commented out the following libraries in the application.xml, and included libraries in my deploy. I am not using ADF only JSF. But I cannot get the page to come up.
    Libraries commented out in application.xml for this OC4J instance:
    <!--library path="../../../BC4J/lib"/-->
    <!--library path="../../../jlib/ojmisc.jar"/-->
    <!--library path="../../../ord/jlib/ordim.jar"/-->
    <!--library path="../../../ord/jlib/ordhttp.jar"/-->
    <!--library path="../../../jlib/jdev-cm.jar"/-->
    <!--library path="../../../uix/taglib"/-->
    Libraries included in the deploy:
    Checked and greyed:
    JSF
    JSTL 1.1
    JSTL 1.1 Tags
    Commons Logging 1.0.3
    Commons Beanutils 1.6.1
    Commons Collections 2.1
    Commons Digester 1.5
    Libraries available and checked:
    Oracle JDBC
    JSP Runtime
    BC4J Oracle Domains
    SQLJ Runtime
    The message on Enterprise Manager for the application under Servlets/JSPs is:
    Name: Faces Servlet
    Status: Not Loaded
    Type: Servlet
    Source: javax.faces.webapp.FacesServlet
    Active Requests: 0
    Req Client Time: 0
    Req per Sec: 0
    Startup Priority: 1
    Name: jsp
    Status: Loaded
    Type: Servlet
    Source:
    Active Requests: 0
    Req Client Time: Not Yet Available
    Req per Sec: Not Yet Available
    Startup Priority:
    The Logs show the following:
    Application.log shows
    06/10/12 16:46:07 consult-list: JspServlet: unable to dispatch to requested page: Exception:java.lang.NullPointerException
    This runs fine though on the embedded OC4J with JDK 1.5.
    Redirected Output/Error (I don't normally restart the app)
    06/10/12 16:44:40 Notification ==> Application Deployer for consultlist COMPLETES [ 2006-10-12T16:44:40.097PDT ]
    06/10/12 16:44:41 Error: null
    06/10/12 16:44:41 Errors parsing jar:file:/home/oracle/as102/j2ee/cisjsf/applications/consultlist/consult-list/WEB-INF/lib/standard.jar!/META-INF/fn.tld
    06/10/12 16:44:41 Error: null
    06/10/12 16:44:41 Errors parsing jar:file:/home/oracle/as102/j2ee/cisjsf/applications/consultlist/consult-list/WEB-INF/lib/standard.jar!/META-INF/permittedTaglibs.tld
    06/10/12 16:44:41 Error: null
    06/10/12 16:44:41 Errors parsing jar:file:/home/oracle/as102/j2ee/cisjsf/applications/consultlist/consult-list/WEB-INF/lib/standard.jar!/META-INF/scriptfree.tld
    06/10/12 16:45:16 Stop process
    06/10/12 16:45:18 Shutting down...
    06/10/12 16:45:20 Start process
    06/10/12 16:45:28 Oracle Application Server Containers for J2EE 10g (10.1.2.0.2) initialized
    06/10/12 16:46:06 Error: null
    06/10/12 16:46:06 Error: null
    06/10/12 16:46:06 Error: null
    06/10/12 16:46:07 Error: loading Tld's into cachedConfigTable: null
    06/10/12 16:46:07 Error: loading Tld's into cachedConfigTable: null
    06/10/12 16:46:07 Error: loading Tld's into cachedConfigTable: null
    Default Web Access log
    addy - - [12/Oct/2006:16:46:06 -0800] "GET /consultlist/Consult_Search.jsp HTTP/1.1" 500 346
    I have tried removing the Standard.jar from the Project Dependancies in the deployment profile and it still gives me the same errors on parsing the 3 files in Standard.jar.
    I have ran other non-JSF applications prior to trying to deploy this application.
    Any help is very much appreciated
    Thanx
    Pam

    Hi,
    do you deploy from JDeveloper ? In this case all datasources will be created for you and the libraries are copied as well. If using ADF, make sure the ADF runtime libraries are deployed
    Frank

  • How to deploy and run  EJB in eclipse without XDoclet

    Hi Friends
    I am new in j2ee.In my academic project i want to do some ejb programming.
    For that purpose i want to write some ejb's.I have written all required class for ejb,created ejb-jar.xml file manually,weblogic .xml file manually. I am using weblogic8 as an server for deployment.
    I know deployment with xdoclet but i want to know hoe to deploy ejb without xdoclet.
    If u have saple code or useful link regarding this please send it as soon as possible.
    Thanks in advance
    How to deploy and run EJB in eclipse without XDoclet

    HI Welcome to J2ee...
    I am also new to this...But i ll share my ideas with you...
    In EJB 3.0 No need of any Deployment Descriptors....
    And If you are using Eclipse You can Deploy(as jar) using Export in File tab...
    XDoclet is not mandatory...
    Gopal V

  • Re-deploying replica aware EJBs

              How does one update an app server with a new EJB when the app server
              is running in a cluster? Doing a re-deploy on the EJB in a single instance
              can even be a problem. First, you can have beans that are cached and
              in use. locking the server and waiting until the last client has completed
              it's operation until you do the redeploy should work. With clustered SLSBs
              the replica aware stubs get distributed by JNDI so until all the servers
              in the cluster have the update the classes are out of sync.
              It seems like you have to bounce all the app servers in the cluster. Not
              a very amicable solution.
              

    In article <[email protected]>, [email protected] says...
              >
              > How does one update an app server with a new EJB when the app server
              > is running in a cluster? Doing a re-deploy on the EJB in a single instance
              > can even be a problem. First, you can have beans that are cached and
              > in use. locking the server and waiting until the last client has completed
              > it's operation until you do the redeploy should work. With clustered SLSBs
              > the replica aware stubs get distributed by JNDI so until all the servers
              > in the cluster have the update the classes are out of sync.
              >
              > It seems like you have to bounce all the app servers in the cluster. Not
              > a very amicable solution.
              >
              >
              >
              Mike,
              This is a toughy and something I've been trying to figure out for a
              while. Maybe together we'll devise a strategy so here's what I've come
              up with so far:
              Maintain a set of "upgrade servers" on another network line (using a
              switch). When upgrading, bring them online into the main cluster and
              then start kiling the main machines. When they're all dead, unplug them
              from the network and begin the upgrade. Test the upgrade after bringing
              the new main cluster back up. Once confirmed, start locking out
              transactions, etc from the backup cluster and have the web front end
              give a "down for X minutes message to all new requests". Once the
              backup app servers have no more requests, unplug them from the network
              and plug the new app servers in. Reopen the flood gates at the front
              end. You'll still lose some sessions, but this should be in a service
              level agreement and be understood by customers.
              Some variations, in case the switch isn't manageable and being
              physically there is not on option would be to bring various interfaces
              up and down to meet the needs described above.
              It's not perfect; uptime is still purposely limited, but these are thing
              that should be defined in any agreement you make with customers. Even
              NASDAQ goes down. I'm currently working on a strategy for WebLogic 6.0
              JT
              

  • Deployment from JDeveloper

    Hi,
    I am trying to deploy using JDeveloper i created public_html folder under my project directory and created deployment descriptor, now when i click on the deployment descriptor and select deploy to an ear file i get many deployment errors saying
    Error(7,1): method releaseTagHandler(javax.servlet.jsp.PageContext, org.apache.struts.taglib.tiles.InsertTag, int) not found in class oracle.jsp.runtime.OracleJspRuntime
    I tried to play with the libraries but i still have these errors does any one have an idea how to solve this issue???

    Hello,
    Why are you creating your own public_html folder under your project folder ?
    Couldn't you create the deployment descriptor without it ? Any error ?
    Have you tried to see if you can successfully deploy and run one of the following tutorials?
    - Deploying a J2EE Application from JDeveloper 10g
    http://www.oracle.com/technology/obe/obe_as_1012/j2ee/deploy/deploytoappserver/lesson_deployment.htm
    - Deploying J2EE and ADF Applications
    http://www.oracle.com/technology/obe/obe9051jdev/deployToAppServer/lesson_Deployment.htm
    Hope this will help/guide you .
    Regards,
    Steff

  • Problems deployment servlet and ejb

    Hello,
              I'm Having the following problem hopefully someone can help me.
              I'm working in a visualcafe 4.5 project and I have to external jar
              files
              one containing an EJB the other cotaining some classes.
              testservlet.war : deployed by VC
              ejb.jar
              xxx.jar
              Deploying from VC is no problem but when I want to start the
              server it can not find some classes which are in the xxx.jar file
              containing the classes. But when I open the xxx.jar I see that they
              are located in WEB-INF/classes.
              My first Idea is that it could be a classloader problem
              In the startweblogic.cmd I add the testservlet.war to the classpath
              (Project options)
              In the ejbc additional classpath entrys of the testservlet.jar I add
              the xxx.jar.
              In the server additional classpath I added both ejb.jar and the
              xxx.jar
              can someone tell me where it is going wrong???
              Thanks
              Oskar
              

    Depoly them both in an EAR file. You will have to edit the Class-Path: property in each of the MANIFEST.MF files to make the proper path to the Singleton visible to all three, as well.

  • "JSP-compiling" on deployment from JDeveloper

    Hi
    Can i remove compilation for JSP-files on deployment from JDeveloper 903?
    When I'm compiling and deploying a project from JDev it tries to compile my *.jsp source files.
    - Why?
    And JDevs jsp-error-checking has BIG holes. (The pages runs well then OC4J-compiles them...) Some projects don't get trough while other projects with the same code style works fine for some reason.
    I'm using JDeveloper version 9.0.3.10.35
    Thanks,
    -Erik

    Yes you can.
    Go into the "Settings..." of your deployment profile for your project. --> <yourprofile>.deploy
    Under the "WAR File" click on WEB-INF/classes.
    On the bottom right you'll see the option:
    "How should the selected source files be deployed?"
    Here you can select: "As source files only" and it won't
    compile and deploy your class files.
    Hope this helps,
    -Chris

  • Deploy Websphere built ejb on 9ias (r2)

    Anyone had any experience of deploying WebSphere built EJB's to OC4J. The .xml files differ and I would like to know if there are any tools/utilities/experiences out there. The development environment is WASAD, the Server is Oracle9iAS release 2 (+patches) on Solaris (64bit).

    You deploy BC4J as EJB on iAS exactly the same as deploying it on database, same iiop connection,etc... You are really deploying BC4J as EJB to database 8.1.7, named databse cache.

  • Remote Deployment from JDeveloper using "Parent Application"

    Hi,
    I am newbie in remote deployment (from JDeveloper). I would like to deploy my application in the OAS 10g, but I want to set the "Parent Application" in a different value than default.
    Is it possible?
    Where could I find documentation of remote deployment alternatives (I cannot use the "dcmctl" command directly for security reasons)...
    Best regards and thank you in advance for your help.

    Check out this thread.
    Deploy Exception with new Jdeveloper 11.1.1.1.0

  • Proble with deployment of simple ejb, help me please

    Hi there wnat to deploy a simple ejb bean is there any step by step process how to deploy a bean in weblogic server6.0 version please help me, I could able to create ejb-jar file but dont know how to deploy it on to the server, please help me, with regards and thanks in advance Raasi

    set STARMODE=false in config/mydomain/startWebLogic script file to start WebLogic server in development mode.
    Copy Ejb jar file to config/mydomain/applications directory.

Maybe you are looking for