How to specify OAS instance in deployment descriptor

Hi
I've got OAS 10.1.3.1.0, where exist home, home1, home2... instances. In JDev I've developed web app. and deployment descriptor for it. How to specify correct instance in depl. descriptor?
Thank you

Sorry, it's still not clear. You have a deployment profile. Now:
Are you right-clicking that profile and saying "deploy to <app server>?" If so, you define the instance when you created the app server connection.
Otherwise, if you're using some other way of deploying (e.g., AS control), you explicitly navigate to the instance and deploy the app from there.
John

Similar Messages

  • How to reference sapjco from EAR deployment descriptors

    Hello techies,
    I´ve set up an EJB to use the JCo RFC Provider Service of the J2EE engine. Connection from R3 to EJB works but as soon as the EJB gets invoked, I get the error 'incompatible bean type - no processFunction found' from the RFCDefaultRequestHandler.invokeBean(..., JCO.Function) method.
    The reason is clear to me - the JCO.Function class is loaded by different class loaders and thus the method parameters don´t match.
    I´ve read in earlier postings that it is neccessary to reference the JCO in the module project and the ear deployment descriptor. That´s where my question begins.
    How do I reference the JCO in the module project (what´s that?)? I think it has to do with the EJB jar, doesn´t it?
    In the DeployTool I found a way how to set a reference to a library in the menu deploy-->libraries. But I am not sure what to specify here. I entered 'sapjco', since I saw an entry in the managers/library.txt file. Is that correct?
    Any hints are welcome!
    Regards,
    Jan

    Jan,
    you can set the reference to the EAR project using the reference.txt file that exists in the /managers folder.
    In the library.txt file set a path which is reference to sapjco.jar files..like
    library JCO sapjco.jar
    in the refernce.txt add the JCO referece to the EAR project...like
    reference Project library:JCO
    where Project here is the name of your EAR file..
    Ravi

  • How To Define Security in the deployment descriptor for an ejb

    Hi All
    Pls help!
    I am trying to call a remote ejb running on JBOSS in a remote server. Typically inside my code I would include a System.setSecurityManager() = new RMISecurityManager () etc. and specify a security policy file to use when running my client.
    But since I am running inside the application server where many other applications are running, I cannot use system.abc() it breaks everyone's application.
    Can someone please refer me to how to specify security manager policy inside the ejb-jar.xml deployment descriptor or how I can resolve the above issue. O am using OC4J to run my ejbs.
    Thanks
    Yours in Java

    Hi All
    Pls help!
    I am trying to call a remote ejb running on JBOSS in a remote server. Typically inside my code I would include a System.setSecurityManager() = new RMISecurityManager () etc. and specify a security policy file to use when running my client.
    But since I am running inside the application server where many other applications are running, I cannot use system.abc() it breaks everyone's application.
    Can someone please refer me to how to specify security manager policy inside the ejb-jar.xml deployment descriptor or how I can resolve the above issue. O am using OC4J to run my ejbs.
    Thanks
    Yours in Java

  • How to do JAAS and J2EE Deployment Descriptor ACL in WLS

    The examples on this website and shipped with WLS stink. Does there exist a GOOD
    example of how to
    Log in with a form
    authenticate (I guess using j_security_check to hook into the web.xml security)
    then pull a user from a database and use the roles defined there for authorization
    in the rest of the system?
    The weblogic examples are from java clients to RMI (ya, thats handy). They also
    sit alone. They dont say how to hook them into weblogic. They say to use JAAS
    but they have just JAAS examples! No hooking of it into an EJB, servlet, etc!
    They also dont show how to hook that code into WLS to use it as your security
    module!
    Help, I'm at a loss.
    They recommend using JAAS but their documentation and examples of doing so suck
    or are non existant. We have a complex real world product and need examples of
    the same. Stupid, stand alone examples that teach nothing do no help.
    frustrated at BEA for their poor documentation and support,
    Mike

    Also, I use struts....
    In struts you have to extend the Action class which then calls the perform()
    method on your servlet.
    So to call an EJB I have to have my servlet implement PrivilegedAction?
    If so, then this wants a run() method. Struts calls perform so that means
    I'm going to have to make another class to call from my servlet with a run
    method()? Or I'm going to have my servlet implement PrivledgedAction and
    call Security.runAs()?
    What if I just want to call the EJB from my servlet and put my security
    credentials in the JNDI lookup? I want the container to use the roles of the
    user in the JNDI lookup to authorize methods based on the deployment
    descriptors.
    thanks,
    Mike
    "Vimala Ranganathan" <[email protected]> wrote in message
    news:[email protected]...
    Hi Micheal,
    Attached is an exmaple of JAAS login and invoking an EJB.
    Let me know if this turns out to be useful.
    Regarding the form based authentication, Could you be more clear on whatissue you are
    facing?
    Just as note, when you use form based login, WLS would authenticate theuser against
    the realm
    WLS is setup for, which could be a file Realm, or a RDBMS realm (in whichcase users
    and groups are from database)
    Roles cannot be defined at the database level. This needs to be atapplication level
    which you can define in web.xml or
    console(in 7.0)
    If you need any specific help or more information please let me know.
    Vimala
    Michael Lee wrote:
    The examples on this website and shipped with WLS stink. Does there
    exist a GOOD
    example of how to
    Log in with a form
    authenticate (I guess using j_security_check to hook into the web.xmlsecurity)
    then pull a user from a database and use the roles defined there forauthorization
    in the rest of the system?
    The weblogic examples are from java clients to RMI (ya, thats handy).They also
    sit alone. They dont say how to hook them into weblogic. They say to useJAAS
    but they have just JAAS examples! No hooking of it into an EJB, servlet,etc!
    They also dont show how to hook that code into WLS to use it as yoursecurity
    module!
    Help, I'm at a loss.
    They recommend using JAAS but their documentation and examples of doingso suck
    or are non existant. We have a complex real world product and needexamples of
    the same. Stupid, stand alone examples that teach nothing do no help.
    frustrated at BEA for their poor documentation and support,
    Mike

  • How to do JAAS and J2EE Deployment Descriptor ACL : Please help

    I am trying to develop a Single sign on application using EJB's, JAAS,
    ACL, struts and JSP to Log in with a form authenticate (using
    j_security_check to hook into the web.xml security) then pull a user
    from a database and use the roles defined there for authorization in
    the rest of the system?
    The examples on the web are from java clients to RMI, they also sit
    alone. They dont say how to hook them into weblogic. They say to use
    JAAS but they have just JAAS examples! No hooking of it into an EJB,
    servlet, etc! They also dont show how to hook that code into web
    server to use it as your security module!
    What Settings/configuration I need to make in the web server for JAAS
    to work. How the logic proceeds to authorization after form is
    submitted using j_security_check. and to further logic in the
    application. How is it then integrated with the Struts action forms.
    Help, I'm at a loss. They recommend using JAAS but their documentation
    and examples do not explain how. We have a complex real world product
    and need examples of
    the same. Can somebody provide me a working real-life example which
    really work and give me some pointers to proceeds that will be really
    helpful.
    Thanks in advance for the help.

    I am trying to develop a Single sign on application using EJB's, JAAS,
    ACL, struts and JSP to Log in with a form authenticate (using
    j_security_check to hook into the web.xml security) then pull a user
    from a database and use the roles defined there for authorization in
    the rest of the system?
    The examples on the web are from java clients to RMI, they also sit
    alone. They dont say how to hook them into weblogic. They say to use
    JAAS but they have just JAAS examples! No hooking of it into an EJB,
    servlet, etc! They also dont show how to hook that code into web
    server to use it as your security module!
    What Settings/configuration I need to make in the web server for JAAS
    to work. How the logic proceeds to authorization after form is
    submitted using j_security_check. and to further logic in the
    application. How is it then integrated with the Struts action forms.
    Help, I'm at a loss. They recommend using JAAS but their documentation
    and examples do not explain how. We have a complex real world product
    and need examples of
    the same. Can somebody provide me a working real-life example which
    really work and give me some pointers to proceeds that will be really
    helpful.
    Thanks in advance for the help.

  • Custom deployment descriptor

    Hi there
    We are in the process of deploying our standard J2EE EAR file to
    WebLogic 9.2 MP2. The EAR file does not contain weblogic custom
    deployment descriptors (e.g.: weblogic.xml) but only standard DDs (e.g.:
    web.xml)
    I have some doubts about resources mapping and I'd like to get some help
    from experienced WL users.
    Basically our EAR file is composed of an EJB module and a WEB module.
    Each module declares some references such as:
    WEB.XML snippet
    <resource-ref>
    <description>DataSource for partition 'default'</description>
    <res-ref-name>jdbc/Datasource</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    Now the questions:
    1) Is there a way to map the resources during the deployment, using the
    console? This is the way followed by WebSphere and Oracle AS, for
    example. If this is not possible, should I provide a Deployment Plan for
    that EAR file? I tried to provide the xml Deployment Plan generated by
    weblogic.PlanGenerator utility together with the EAR file while
    deploying the app, but no luck. It seems the Deployment Plan should be
    provided in a jar file. Is that correct?
    2) If the previous options are not possible, how can I create the custom
    deployment descriptor? Is there an "Assembly Tool" that imports the
    standard EAR and then export the custom EAR file with the custom
    deployment descriptors correctly generated?
    Thank you a lot in advance.

    A deployment plan is external to the ear/jar file.
    It is probably easiest to deploy the application with the console, and then
    use the console to change the values you want. It will automatically
    generate a deployment plan for you.
    "Quasar" <[email protected]> wrote in message
    news:[email protected]..
    Hi there
    We are in the process of deploying our standard J2EE EAR file to
    WebLogic 9.2 MP2. The EAR file does not contain weblogic custom
    deployment descriptors (e.g.: weblogic.xml) but only standard DDs (e.g.:
    web.xml)
    I have some doubts about resources mapping and I'd like to get some help
    from experienced WL users.
    Basically our EAR file is composed of an EJB module and a WEB module.
    Each module declares some references such as:
    WEB.XML snippet
    <resource-ref>
    <description>DataSource for partition 'default'</description>
    <res-ref-name>jdbc/Datasource</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    Now the questions:
    1) Is there a way to map the resources during the deployment, using the
    console? This is the way followed by WebSphere and Oracle AS, for
    example. If this is not possible, should I provide a Deployment Plan for
    that EAR file? I tried to provide the xml Deployment Plan generated by
    weblogic.PlanGenerator utility together with the EAR file while
    deploying the app, but no luck. It seems the Deployment Plan should be
    provided in a jar file. Is that correct?
    2) If the previous options are not possible, how can I create the custom
    deployment descriptor? Is there an "Assembly Tool" that imports the
    standard EAR and then export the custom EAR file with the custom
    deployment descriptors correctly generated?
    Thank you a lot in advance.

  • Oracle-specific deployment descriptor

    Hi all
    does anybody know how i can edit the oracle deployment descriptor while using JDeveloper 3.2 to deploy. I need to add an ejb-reference, wich has to be mapped in the oracle specific descriptor. I tried to do it manually but everytime when i depoly, jdeveloper overwrites my changes during the deployment.
    thanks for help...

    Hello!
    I4m just trying to do the same thing: including ejb references in the oracle descriptor, but it erases any line I include as soon as I start deploying.
    Have you solved the problem?.If so, could you give me a clue?.
    By the way, I imagine that the references have to be included in the EJB which is calling, and not in the one that is to be called.But I don4t really understand how is the name of the ejb to be called introduced in that enviroment directory.
    Thanks in advance!!!
    Pepa.

  • Deployment Descriptors-Configuration management

    How do we version control the deployment descriptors in a team development?

    Fine. But the difference here is the same file say, ejb-jar.xml is likely to be modified by more than one developer at a time? Also during project start-up all developers are required to create their own enterprise beans. Agreed that we can do all these the way we normally control our sources. But here you see we need to put in some extra effort of co-ordination and integration. I am interested in alternatives to this approach.

  • Custom Deployment Descriptors?

    Hey all! I'm coming from Eclipse and am loving all the features JDeveloper brings!
    This is a really stupid question, but where does JDeveloper store it's deployment descriptors, and how can you create a custom deployment descriptor such as "persistence.xml" which JBoss uses for customizing it's EJB3 entity handling?
    One thing I've noticed, is that JDeveloper does NOT give me the ability to create folders, to create my J2EE structure.
    Normally, in Eclipse, I build my project with a folder called 'dd' to house all my deployment descriptors such as:
    dd/web/web.xml
    dd/web/faces-config.xml
    dd/web/jboss-web.xml
    dd/ear/application.xml
    dd/ear/jboss.xml
    dd/par/persistence.xml
    etc.........
    Then, I just configure ant to include the deployment descriptor, depending on what portion of the project I'm building. Then, I create a 'build' folder, to house my compiled jars, war, and ear files.
    How do you all create your project structure when you can't create folders?
    I've moved to JDeveloper because it is the only IDE that allows me to build drag-and-drop Faces projects while still allowing me to compile against EJB3.0 libraries.
    I'd really like to be able to make this work. Obviously there is a better way, so I'm asking for everyone's expertise on how YOU create your J2EE structures with JDeveloper.
    Thanks in advance!! Great product. I just need to get over my initial Eclipse-mode of thinking.
    ~~Aaron

    Hmmmmm.
    I'm building my ant build.xml files now. But I've run into a hitch, and am curious on how the other JDevelopers get around it.
    JDeveloper splits my application up into Projects. So, I now have two projects: My Model project and my ViewController project for my entity/session beans and my web files respectively.
    I can create a build.xml file for my entity (jar files) and a build.xml file for my web (war files), but normally, most people put a build.xml file in the root of the project to merge the web and J2EE files into an EAR.
    JDeveloper won't allow me to put a build.xml file in the root of my Application to jar up all my project files into an EAR.
    I found a really good article on Oracle's website, but it mainly dealt with Maven, and not Ant.
    Could someone give me their experience on how you create your Ant structure? Granted, I could just add everything into a single build.xml file in my model project, but then, that could get confusing to other developers using my code, as well as, in a team environment, where each developer has their own build.xml file for the project they are responsible for.
    Thanks!
    Message was edited by:
    Neelixx

  • How to specify the security policy "Allow access to everyone" for security role in Deployment descriptor

    Hi,
    I am migrating a web application from Websphere to Weblogic. The web application has a security role defined in web.xml (Use LDAP for authentication).
    security-role>
            <description>Authenticated</description>
            <role-name>Authenticated</role-name>
        </security-role>
    This role is mapped to a special subject "All authenticated user in appliation realm" in WAS.
    In weblogic, I have the following setting in weblogic.xml
    <wls:security-role-assignment>
            <wls:role-name>Authenticated</wls:role-name>
            <wls:externally-defined />
        </wls:security-role-assignment>
    And after deploy the application, have to manually add a security role and add the security policy "Allow access to everyone" to this role.
    I am wondering if this setting can be specified in  for example weblogic.xml so just deploy web applicaiton using deployment descriptor, and I don't need write script to do that .
    Thanks

    Hi,
    You need to have Back End support to achieve this. In Back End you need to create two groups . You need to know what joins has to be made for which group (which is more important) and also make session variable for the userrole (with SQL supporting it). In the BMM layer, we need to put the security join conditions in the 'where clause'.
    And make a common report. User loggin in with the respective userid will have userrole and joins assigned in the Back end. And they will be viewing the report according to their access.
    Hope this will solve your problem.
    Regards
    MuRam

  • How to edit deployment descriptor in weblogic 9.0?

    Hi ,
    I need to edit the values of certain environment variables mentioned in the deployment descriptor of a ejb module.
    In weblogic 7,its a straight forward method in which we have the option to edit the deployment descriptor in weblogic console.
    But I'm not sure how the same can be done in weblogic 9.0.
    Please guide me..!!! its urgent...
    Thanks,
    Smita

    If you want to edit the actual deployment descriptor (ie as a developer) than using any text editor or using an IDE like WebLogic Workshop/Eclipse etc would be the way to go.
    If you're trying to change values in an already deployed application, then configuration and tunables can be changed in the admin console. These write the changes to a separate file called a deployment plan. It allows you to change performance and environment settings without disturbing the original EAR file.
    -- Rob
    WLS Blog http://dev2dev.bea.com/blog/rwoollen/

  • How to specify JDBC Oracle url using deployment tool - Entity Bean

    Hello I'am new to EJB.
    When creating a entity bean-managed persistence and you need to specify the jdbc url with user name
    and password to establish a connection object, how does one specify that in the deployment
    tool?
    Heres an example of what has in the J2EE tutorial has in AccountEJB to get an connection object
    private String dbName = "java:comp/env/jdbc/AccountDB";
    private void makeConnection() throws NamingException, SQLException {
    InitialContext ic = new InitialContext();
    DataSource ds = (DataSource) ic.lookup(dbName);
    con = ds.getConnection();
    Now if my oracle jdbc url is to be jdbc:oracle:thin:@Abe:1521:dev
    ie My host is Abe, port number 1521 and database name of dev and username/password will be system/manager.
    what would my dbName be at the top?
    Would my JNDI lookup of a DataSource resource "java:comp/env/jdbc/AccountDB" become "java:comp/env/jdbc/dev" for starters?
    In the Resource Factories Reference Code I've add a reference of
    Coded Name: jdbc/dev
    Type: javax.sql.DataSource
    Authentication: Container
    and down the bottom of the I've put JNDI Name: MyAccount
    according to the AccountClient code of:
    Context initial = new InitialContext();
    Object objref = initial.lookup("MyAccount");
    and put User Name of "system" and Password of "manager"
    I'am sure in the source code I have to put
    Class.forName("oracle.jdbc.driver.OracleDriver")
    else you would get that no sutitable driver error, maybe you don't have to if ejb server is smart enough?
    What I'am confuse about is where to specify the jdbc url of "jdbc:oracle:thin:@Abe:1521:dev" ??
    Know it won't work because of this vital part. Do you have to put that somewhere else in the deployment tool or properties file, or some other tool??
    Please help
    Thanks
    Abraham Khalil

    When running the client after successful deployment with jdbc, I'am getting
    javax.naming.CommunicationException: java.rmi.MarshalException: CORBA MARSHAL 1398079699 Maybe; nested exception is:
    org.omg.CORBA.MARSHAL: Unable to read value from underlying bridge : minor code: 1398079699 completed: Maybe
    org.omg.CORBA.MARSHAL: Unable to read value from underlying bridge : minor code: 1398079699 completed: Maybe
    at com.sun.corba.ee.internal.iiop.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:923)
    at com.sun.corba.ee.internal.iiop.CDRInputStream.read_value(CDRInputStream.java:281)
    at com.sun.corba.ee.internal.corba.TCUtility.unmarshalIn(TCUtility.java:274)
    at com.sun.corba.ee.internal.corba.AnyImpl.read_value(AnyImpl.java:554)
    at com.sun.corba.ee.internal.iiop.CDRInputStream_1_0.read_any(CDRInputStream_1_0.java:605)
    at com.sun.corba.ee.internal.iiop.CDRInputStream.read_any(CDRInputStream.java:252)
    at com.sun.corba.ee.internal.javax.rmi.CORBA.Util.readAny(Util.java:203)
    at javax.rmi.CORBA.Util.readAny(Unknown Source)
    at org.omg.stub.com.sun.enterprise.naming._SerialContextProvider_Stub.lookup(Unknown Source)
    at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:133)
    at javax.naming.InitialContext.lookup(Unknown Source)
    at AccountClient.main(AccountClient.java:21)
    at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:151)
    at javax.naming.InitialContext.lookup(Unknown Source)
    at AccountClient.main(AccountClient.java:21)
    One thing I don't like about EJB is that everything is transparent which is good! But its much
    harder to debug! :( Tried to see if I can figure it out. Hope someone has seen this problem before?

  • How to specify the target name while deploying a code in OSB-- Plz Help

    Hi all,
    Am working in creating a cluster environment. For my testing i created a new managed server(OSB_Server) in 9001 port in the admin console itself and that server started running. The default managed server(Admin_Server) is in 7001 port. So when i deploy a code in 7001 sb console the WSDL gets exposed in 7001 because the default admin server port is 7001. While deploying a code in service bus admin console we are not specifying the target name. So how to specify the target name while deploying the code in service bus admin console. Plz help me.
    Regards
    Prabhu

    Hi Prabhu,
    There are three kind of server architecture possible for OSB -
    1. Single server - Everything gets deployed on Admin server itself
    2. Admin Server + Single Managed Server for OSB -- OSB configuration gets deployed on OSB managed server. OSB resources (proxy service, WSDL, Schema) will remain available on OSB managed server port only and NOT on admin server port
    3. Admin Server + OSB cluster -- OSB configuration gets deployed on OSB cluster. OSB resources (proxy service, WSDL, Schema) will remain available on OSB Cluster port(s) only and NOT on admin server port
    Converting one type of server architecture to any other type, requires a manual tedious process, so it is suggested that you create domain accordingly i.e. if you need clusters then while creating domain itself, create OSB cluster, so that all OSB applications gets deployed to OSB cluster. I will suggest you to create a clustered domain from scratch and import the configuration from your existing domian to this new clustered domain.
    You may refer-
    http://download.oracle.com/docs/cd/E17904_01/doc.1111/e15022/toc.htm
    Regards,
    Anuj

  • How to specify Single in memory instance of a jar in an ear

    i have an ear, containing 3 wars and 2 jars. these jar files are utility jar. and one of them has business logic lets say it application.jar. All the three wars use this jar. When ever a war file uses this jar, it gets its seperate memory instance. i want to make all the three wars use same single in memory instance of application.jar. but i dont know how to specify it. i am using websphere6.1. it will be great if someone can help me. thnx
    Ehtsham

    It's a pity !
    My problem is I tryed to save a FXG file containing images into a swf that will be able to change images sources dynamically.
    To do that, I create an empty FLA document (using JSFL), I import the FXG file into the scene.
    If I export my file into SWF in which I have injected this ActionSctipt :
    for (var x = 0; x < numChildren; x++)
      var e = getChildAt(x);
      trace(e + " " + e.name +" is "+getQualifiedClassName(e));
    I have this trace : [object MovieClip] _IMG_ is flash.display::MovieClip
    I think I cannot change the source of a MovieClip using ActionScript. Maybe I'm wrong ?
    So I would like to replace these objects (using JSFL) with UILoaders and setting the same x,y,width,height,source and then I will be able to change their sources using ActionScript.

  • How to use weblogic.DDconverter Tool to upgrade Deployment Descriptors.

    Hi,
    I want to know how to use weblogic.DDconverter Tool to upgrade Deployment Descriptors using EAR of previous verisons(JDK and weblogic).
    Regards,
    Neeraj

    Looks like the protocol is not correct (Unable to connect to 'http://localhost:7001': Destination unreachable)
    Could you try the t3 protocol, for example,
    java weblogic.Deployer -adminurl t3://localhost:7001 -username weblogic -password welcome1 -listapps

Maybe you are looking for