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

Similar Messages

  • How to extract XML from EAR file?

    how to Extract weblogic-application.xml file from StellentPortlets.ear file ???

    http://en.wikipedia.org/wiki/EAR_(file_format)
    An EAR file is a standard JAR file (and therefore a Zip file) with a .ear extension, with one or more entries representing the modules of the application, and a metadata directory called META-INF which contains one or more deployment descriptors.
    7zip is a nice tool for me but most any should be usable.

  • 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

  • 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 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 reference images from CSS for a portal component

    how can I reference an image stored in the standard "/images" folder in a .PAR file from a CSS file?
    I tried
    .myHTMLelement {
       background-image: url('/images/TAB.bmp ') }
    but it does not work (the image can't be found).
    I don't want to use the API
    request.getWebResourcePath() + "/images/saplogo.gif
    in my JSP because this needs to get into a CSS file.

    Hmmm,
    When project is deployed, the JSP's are usually located in private section:
    <i>\usr\sap\EED\JC00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\portalapps\projectname\pagelet\someJSP.jsp</i>
    but the CSS is in public section:
    <i>Z:\usr\sap\EED\JC00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\portalapps\projectname\css\someCSS.css</i>
    Now if you want to include the CSS in JSP I think you HAVE TO use the <i>getWebResourcePath</i> method:
    <link rel="stylesheet" href='<%=componentRequest.getWebResourcePath()+"/css/someCSS.css"%>' type="text/css" />
    or directly define the style:
    <style type="text/css">
    <!--
    .dtn-node {
          background-image: url(<%=componentRequest.getWebResourcePath()+"/mimes/normal.css"%>/images/arrow15x10.gif);
          background-repeat: no-repeat;
          padding-left: 11px;
          padding-bottom: 7px;
          text-align: left;
    -->
    </style>
    Just check your deployment and fit it to your needs...
    Hope this helps,
    Romano
    PS: for example look at this:
    <i>\usr\sap\EED\JC00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\portalapps\com.sap.pct.pdk.htmlbcontrols\pagelet\all_examples.jsp</i>

  • 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.

  • 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

  • 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.

  • How to edit web.xml deployment descriptor from console in weblogic 8.1?

    In weblogic 7.0, deployment descriptor such as web.xml can be edited from the admin
    console, but on weblogic 8.1 I can't find a way to do so.
    Is this function taken out? Why is it taken out? Do I have an alternative to edit
    it without unpacking and packing the EAR or WAR?
    Thanks in advance.
    Bill

    In weblogic 7.0, deployment descriptor such as web.xml can be edited from the admin
    console, but on weblogic 8.1 I can't find a way to do so.
    Is this function taken out? Why is it taken out? Do I have an alternative to edit
    it without unpacking and packing the EAR or WAR?
    Thanks in advance.
    Bill

  • NWDI - How to control EAR deployment order

    We are developing a custom application in NWDI. We have created a software component for the this and have created all required DCs under this software component.
    All the J2EE DCs are deployed through separate EAR DCs and there are references from one to another ear DC where ever required.
    Deployment of a EAR DC fails if the dependent EARs are missing at that time as it looks for some classes at the time of deployment. We could resolve this in development env as we have the control over individual EAR deployment.
    But for deployment in QA through NWDI, where the whole software component is deployed as one SCA file, deployment is failing due to wrong order of deployment for the EARs. We are not able to figure out how to control the order of EAR deployments contained in a single SCA.
    Please let me know for any further info.
    Points will be awarded for helpful answers
    Regards, Chandra

    Hi  Chandra,
    It defines runtime-reference. And should automatically add references to application-j2ee-engine.xml
    But as far as I remember it is done only in NW7.1
    Regards,
    Andrei.

  • How to create a PAR file from EAR file

    Hi,
       I have created an Web Dynpro Application . When i deploy it in Remote J2EE Engine, it will deploy as EAR file. It then runs as normal Web Application in Web browser. My requirement is to create an iView for my Web dynpro appn in EP. That is possible only by creating a PAR file. so How to create an PAR file from EAR in NWDS(NetWeaver Developer Studio).
    How to access the EAR file in NWDS or J2EE ?
    Thanks in Advance ,
    By
    Saravanan

    Hi,
    To create a iview,
    log on to portal, New iView and select SAP webdynpro iview.
    It will ask for namespace which is usually , local/Project Name
    and application name is the name of the application.
    We dont have to create par file for this requirement

  • 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/

Maybe you are looking for

  • IPhone sends jpg, Mac demands jpeg

    If I email myself photo from my iPhone, why do I get: You cannot save this document with extension ".jpg" at the end of the name. The required extension is ".jpeg" [Why oh why did I switch to the Mac?]

  • Airport Memory Leak? (same thing as the kernel panic issue?)

    This is what I got on my activity monitor after installing the software update for iTunes, Quicktime and Server Admin Tools. http://img502.imageshack.us/img502/2959/screenshot1bw7.png I use to get this problem every now and then but a reboot would fi

  • Texting...feel dumb asking, but how do I text with my Palm Pre?

    Sorry my first post on this great forum has to be such a newbie one, but no one in this area at the various Verizon offices know anything at all about the Palm Pre. All Blackberry brain-washed it seems. Anyway, I can't seem to find simple steps to te

  • Deleting backups

    I deleted manually my time machine back up files stored in an external hard drive. Now I cannot empty this HD's trashes. I have tried several solutions found in forums, etc, such as typing: sudo rm -rf /Volumes/yourdiskname/.Trashes/501/* in Terminal

  • I need help changing my answers to the security questions or changing the security questions? please help

    I got a new macbook pro a couple days ago and didnt realize you needed to answer security questions to make purchases on a new computer, i need anyone who can help me asap.