Access Resource Adaptar outside the EAR

Hi,
I have created a resource adapter and bundled it in a EAR file. This EAR also has a Facade EJB which looks up the resource adapter and provides the required functionalities. This part of my application works perfectly fine. I am able to look up the Facade EJB from outside the EAR and call the required methods.
Right now we have a new requirement to call the resource adapter from an application which is deployed outside this EAR. I tried adding the following tags to the weblogic-ra.xml
<enable-access-outside-app>true</enable-access-outside-app>
<enable-global-access-to-classes>true</enable-global-access-to-classes>
But when i try to look up the res adapter, it says Null object bound to the JNDI name. Can someone help me on this?
Regards
Parthi

The following is the exception:
javax.naming.NameNotFoundException: No Object found: StaffwareProcessSuite|null
     at weblogic.connector.deploy.JNDIHandler.lookupObject(JNDIHandler.java:888)
     at weblogic.connector.deploy.JNDIHandler.getObjectInstance(JNDIHandler.java:850)
     at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
     at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:375)
     at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:362)
     at javax.naming.InitialContext.lookup(Unknown Source)
     at TestRAR.main(TestRAR.java:29)

Similar Messages

  • Can not access CRM from outside the office network - Access denied You do not have sufficient access rights or privileges to perform this action.

    Hi,
    I can not access CRM from outside the office network - Access denied You do not have sufficient access rights or privileges to perform this action.  I can access CRM with same user id and password from our office inside the network.  I can get
    the page to give login details once I have login details I got below error. Please help me to solve this issue.  It was working before.
    Access denied You do not have sufficient access rights or privileges to perform this action. 
    Regards,
    Noushad
    [email protected]

    On Premise system Configured with AD FS server for claims-based authentication you need to update your host file with server url to access it from outside office network.
    Refer
    this on how to update host file.
    Regards, Saad

  • How to access images files outside an ear file

    I tried accessing images that are not part of the ear file which i deployed. And
    which created on a fly during the execution of applicaiton. I get URL not found
    error, can any one let me know if is there any way where in i could access the
    files not part of deployed ear. I am uisnig Weblogic 6.1 Awaiting for a reply
    ASAP.
    Thanks
    Anastasia

    Generally, accessing files that are not within your
              war hierarchy is not allowed. Everything the webapp
              needs should be contained within the webapp.
              WebLogic does have an extension known as "virtual
              directories" which does allow you to access content
              outside the war. There is information on it at:
              http://e-docs.bea.com/wls/docs70/ConsoleHelp/war_webappext_virtualdirectorymapping_config.html
              mark
              > "Ajit Mukka" <[email protected]> wrote in message
              > news:[email protected]..
              >
              > Hi
              >
              > I tried accessing files that are part of my Default WebApp directory.
              > These files are not part of the ear file which i deployed. I create
              > few runtime files and make dynamic calls to access those files.
              > I get URL not found error, can any one let me know if is there any
              > way wherein i could access the files not part of deployed ear.
              > awaiting for a reply asap.
              >
              > Thanks
              > Ajit
              >
              

  • Accessing PDF files outside the web application

    Hi,
    I have deployed a web application Tomcat / webapps/ Moto.
    The Tomcat / webapps / Moto / resource.jsp file has links
    to a pdf file located outside the Moto web app.
    The pdf file is in Tomcat / webapps / doc / BAServerConfig.pdf.
    Now, I'm unable to access this pdf from the resource.jsp page.
    Is there any way i can do this?
    I'm not supposed to move this pdf file to any location.
    Please suggest.
    Thanks in advance,
    Phani

    I havent tested, but if it doesn't work, it should give you the idea:
    <%@ page contentType="application/pdf;charset=TIS-620" %><% response.setHeader("Content-Disposition","attachment; filename="+request.getParameter("id").substring(request.getParameter("id").lastIndexOf("/")+1));
      try{
        FileInputStream fis=new FileInputStream(request.getParameter("id"));
        ByteArrayOutputStream baos=new ByteArrayOutputStream();
        byte buffer[]=new byte[1024];
        int length;
        while((length=fis.read(buffer))>=0) baos.write(buffer, 0, length);
        baos.writeTo(response.getOutputStream());
      catch(Exception e){
        throw new ServletException(e);
    %>Be aware to not to broke ... %><%..... with spaces or return characters.
    And if this work, you can convert it to a servlet and enter corresponding entries in web.xml file.
    Hope this help,
    OO

  • Problem if trying to invoke a EJB from outside the .ear in which its deploy

    Hi,
    I have deployed an ear containing an EJB and a sample JSP to invoke it. Its working fine.
    But when i m trying to invoke this same EJB from a standalone java program it is able to identify home and remote interface but its not entering into the bean class.
         Hashtable myEnv = new Hashtable();
              myEnv.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
              myEnv.put(Context.PROVIDER_URL,"t3://localhost:7001");
              try{
              Context ctx = new InitialContext(myEnv);
              SampleHome home = (SampleHome)ctx.lookup("com.beanfolder.SampleHome");
              System.out.println("Home: " + home.getClass().getName());
              Sample sample = home.create();
              System.out.println("Remote: "+sample.getClass().getName());
              sampleResponse = sample.getMessage(sampleRequest);
              String result = sampleResponse.getAirportName().toString();
              }catch(Exception ex){
    where sampleRequest and SampleResponse are the jaxb interfaces of this EJB.
    Its successfully printing the SOPs ie home and the remote class but not entering in the bean.
    Any clues???

    Hi,
    I wud suggest you to make a jar of ur java class and include it in the project libraries of BPEL and make use of java embedded activity this way it works.
    have a luk at below link:
    http://niallcblogs.blogspot.com/search/label/embedded%20Java

  • How can I access PDF-Reports outside the appliance?

    If I know the URL
    https://1.2.3.4/monitor/reports/system_statusto the HTML-Information, is it possible to get the same informations as a PDF "directly" without pressing the "Printable PDF"-Link to the commandjavascript:PrintReport()
    Or do you know another way to schedule such PDF-reports and mail it to my account?

    You can have scheduled reports that will send you the report in pdf.
    The http access you are talking about is the xml reports, these are very restricted in what you can see.
    However we do have a Reporting API that your local SE should be able to provide which means you can customise reports and get the information in .csv format.

  • Accessing other values outside the UITypeEditor.

    I was wondering if anyone could help me. I have created a custom UITypeEditor which uses a WebBrower. This is is all working fine with out any problems. The problem I have is accessing other information out side my editor.
    Is there a way of passing values to the UITypeEditor at runtime. I'm using a Custom attribute but this will not work as the value is based on another property in the application. This is how I am adding the editor.
    [EditorAttribute(typeof(MyEditor), typeof(System.Drawing.Design.UITypeEditor))]
    [MyEditor.MyAttribute("MySetting")]
    Thanks

    I was wondering if anyone could help me. I have created a custom UITypeEditor which uses a WebBrower. This is is all working fine with out any problems. The problem I have is accessing other information out side my editor.
    Is there a way of passing values to the UITypeEditor at runtime. I'm using a Custom attribute but this will not work as the value is based on another property in the application. This is how I am adding the editor.
    [EditorAttribute(typeof(MyEditor), typeof(System.Drawing.Design.UITypeEditor))]
    [MyEditor.MyAttribute("MySetting")]
    Thanks
    Hello,
    It is hard to tell why that happend, if possible, would you mind sharing us a simple sample which could reproduce this issue?
    We will based on that sample to help you.
    Regards,
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Shot in the dark - Accessing page records outside the component buffer

    I know this is a shot in the dark, but I'm hoping there is some trick someone has found that allows an iScript to make use of or imitate the function 'GetRecord'. I understand the limitations of an iScript and the reasons why it has no access to things like 'GetRecord', but I'm trying to manipulate field display options from code executing in an iScript. Has anyone found a way to interact with fields on a page through peoplecode in an iScript?
    thanks,
    Paul

    Folks,
    This question has been solved by myself. Thanks.

  • Accessing a class outside the package

    Hi friends !
    Suppose I have a class called InsidePackageClass which is placed under C:\Package and other called OutsidePackageClass that is placed directly under C:
    Suppose my classpath points to C:\ and I want to declare a OutsidePackageClass member variable in the class InsidePackageClass. This leads me to an error. The compiler complains that it can't find the OutsidePackageClass class.
    What's wrong ?
    C:\
    |-Package
    | |---------InsidePackageClass
    |-OutsidePackageClass
    Thanks in advance
    Cleverson

    Like this?
    File: C:\OutsidePackageClass.java
    [code]class OutsidePackageClass {
         static String attribute = "first";
         public OutsidePackageClass() {
    }[/code]
    File: C:\Package\InsidePackageClass.java
    [code]class InsidePackageClass {
         public InsidePackageClass() {
              OutsidePackageClass o;
    }[/code]
    To compileset CLASSPATH=C:\
    cd \Package
    javac ../OutsidePackageClass.java
    javac InsidePackageClass.javaNote, javac will not run with current directory C:\

  • How to access a Matrix cell value outside the matrix in textbox?

    Hi
    I have created a matrix in SSRS. Columns are grouped by Channel Type. I want to access indicated cells value outside the matrix. 
    After Running the report the report shows
    How can I access cell values outside the matrix? Please help

    Hi Aladin92,
    According to your description, there is a matrix in the report, you want to reference the first value of total outside the matrix, right?
    In fact, Report item expressions can only refer to other report items within the same grouping scope or a containing grouping scope. Are the both textboxes in the same group. To workaround the issue, please refer to the following steps:
      1. Click and select the matrix, copy it and paste it in the report above the original matrix.
      2. Right-click handle of the first row in the upper matrix, click Insert Rows, then click Inside Group-Above.
      3. Right-click second cell of the first row, then click Expression.
      4. In the Expression text box, type the expression like below:
    ="A total of "& ReportItems!Textbox5.Value & "out of 258 BC CCRs have been evaluated"
      5. Set the text boxes and rows visibility to be hidden except for the text box with expression.
    The following screenshots are for your reference:
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    Wendy Fu
    TechNet Community Support

  • Accessing html pages outside tomcat server

    Hi
    I have my images and html pages stored in a directory outside the server. This is because of the WAR file. Other people are developing the html pages and uploading them. The name of the html file is in a mysql table.
    With the name I have to show that page.
    I have figured out how to display the images that are out side the server on my jsp pages .
    how do I do the
    <a href="????????<=%fileName%> ">View me</a>
    if they are on c:/thedata/pages/stories/fileName.html for example to use the local host place they are.
    Lena

    The client cannot access local files outside the web container by a simple request. Better way is to create a FileServlet or so which streams the requested file from the local path to the client.
    The ImageServlet snippet provided here might be useful to get some insights in streaming local files to the client: http://balusc.xs4all.nl/srv/dev-jep-img.html
    Then let the FileServlet listen on /file and change the request to<a href="file?name=<%=fileName%>">View me</a>Be careful with this. Also see the comments in the code and the "Security considerations" at the bottom of the ImageServlet article.

  • The requested resource does not exist - EAR - Jsp

    Hy!
    Following a tutorial I'm trying to create a small application in the Developer Studio.
    I created a Table, an EJB-Project with an Entity Bean and a Stateless Session Bean, a Web-Project with a JSP-File and an EAR which I deployed. Now the JSP form should be available at http://[server-name]:50000/employee/view.
    But I get:
    404   Not Found - SAP J2EE Engine/6.40
    The requested resource does not exist.
    Details:     Go to main page of this application!
    "main page" is a link which refers to http://localhost:50000/index.html which is the SAP Engine Start Page.
    This is my first experience with sap netweaver. So I don't know where I should start to search for the problem or how to solve it.
    In the web.xml of the WebProject there is the following code for the servlet mapping:
    <servlet>
         <servlet-name>NewEmployee.jsp</servlet-name>
         <jsp-file>/NewEmployee.jsp</jsp-file>
    </servlet>
    <servlet-mapping>
         <servlet-name>NewEmployee.jsp</servlet-name>
         <url-pattern>/view</url-pattern>
    </servlet-mapping>
    This is the code in the application.xml of the ear which should make it possible to access the webproject under .../employee.
    <module>
         <web>
              <web-uri>EmployeeWeb.war</web-uri>
              <context-root>employee</context-root>
         </web>
    </module>
    Best Regards,
    Carina

    Hy!
    I tried several changes and found out, I just had to remove the ' / ' bevor NewEmployee.jsp in the jsp-file - tag.
    <servlet>
         <servlet-name>NewEmployee.jsp</servlet-name>
         <jsp-file>NewEmployee.jsp</jsp-file>
    </servlet>
    Now it works and I'm able to test the jsp. There's a form and after a submit a jndi-lookup is performed.
    Object ref=jndiContext.lookup("java:comp/ev/ejb/EmployeeService");
    It seems the EJB reference in the web.xml:
             <ejb-ref>
              <ejb-ref-name>ejb/EmployeeService</ejb-ref-name>
              <ejb-ref-type>Session</ejb-ref-type>
              <home>com.sap.bsp.EmployeeServicesHome</home>
              <remote>com.sap.bsp.EmployeeServices</remote>
              <ejb-link>EmployeeEjb.jar#EmployeeServicesBean</ejb-link>
         </ejb-ref>
    doesn't work, because I get:
    com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Path to object does not exist at java:comp, the whole lookup name is java:comp/ev/ejb/EmployeeService.
    Looking forward to a hint
    Best regards,
    Carina

  • How to access a class file outside the package?

    created a two java files Counter.java and TestCounter.java as shown below:
    public class Counter
         public void print()
              System.out.println("counter");
    package foo;
    public class TestCounter
         public static void main(String args[])
              Counter c = new Counter();
              c.print();
    Both these files are stored under "D:\Test". I first compiled Counter.java and got Counter.class which resides in folder "D:\Test"
    when i compile TestCounter.java i got the following error message:
    D:\Test>javac -classpath "d:\Test" -d "d:\Test" TestCounter.java
    TestCounter.java:6: cannot find symbol
    symbol : class Counter
    location: class foo.TestCounter
    Counter c = new Counter();
    ^
    TestCounter.java:6: cannot find symbol
    symbol : class Counter
    location: class foo.TestCounter
    Counter c = new Counter();
    ^
    2 errors
    what could be the problem. Is it possible to access a class file outside the package?

    ya that's fine..if we have two java files where both resides in the same package works fine or two java files which donot have a package statement also works fine. But my doubt is, i have a Counter.class which does not reside in a package and i have a TestCounter.class which resides in a package "foo", in such a scenario, how do i tell to the compiler that "Counter.class resides in such a path, please look at that and give me TestCounter.class". i cannot use import statement to import Counter.class in TestCounter.java because i donot have a package for Counter.java.

  • Windows server anywhere access not working from outside the lan

    ok so heres what i have done so far i installed windows server 2012 essential on a computer followed the wizard to add a couple of users and gave them anywhere access followed the wizard and ran the anywhere access to completion setup the ports 80 and 443
    on router manually to forward to my router ip 10.0.1.20 
    my server is still on dynamic ip
    then i go to a windows 7 ultimate computer whent to the connect url downloaded the connect tool ran to completion and restarted the computer so far everything working inside my lan i can connect to the server see shared files and open the dash management
    now i go outside connect to a wired or wireless network of a friend and try to connect to http://xxxxxxx.remotewebaccess.com
    but am unsuccessfull then i check on my network adapter page and see that there is a new adapter that is called as my remotewebaccess.com so i click on it and try to connect but still fails........
    please help what am i doing wrong?
    i checked everywhere and cant find a solution.
    Thank you

    It is probably better to assign a static IP to your server, but OTH it may not change.  But you really hate to go off on vacation and have the ip change and everything break.
    Now you said you forwarded ports 80 and 443 to your router, I bet you meant your server?
    Do www.whatismyip.com and from outside ping xxxx.remotewebaccess.com and make sure they are true same ip
    From a PC or the server on your network go to grc.com and do shields up and make sure it reports 80 and 443 as open
    Grey

  • Accessing page items in the document but outside the page bounds

    I'm as new to indesign as I am to indesign scripting so bear with me and my lack of termonology. I have page items that are in the whitespace that is in the document but outside the page bounds. I have access to all the page items that are even partially on the page using the myPage.pageItems. However this collection doesn't include those page items that aren't touching that page. So is there anyway to access those page items in the whitespace outside the page?

    OK, so where are you stuck?
    If you have a variable, say, page, that is a particular page, where page.pageItems is all the items on that page, then page.parent.pageItems will be all the items on the spread, which includes the pasteboard surrounding it.
    Good?

Maybe you are looking for