NoPermissionException when deploying a RAR inside a Shared library EAR.

Hello,
I have a deployment issue concerning a resource adapter in shared library.
I have an EAR containing a RAR. and an EJB jar with a stateless session EJB in charge of invoking the Resource Adapater (by lookup).
If I deploy this EAR as an application, it works.
But If I deploy this EAR as shared library and I link it to another EAR deployed as an application, I have the following deployment issue:
javax.naming.NoPermissionException: A Resource Adapter may only be accessed from within the same application from which it was deployed.
        at weblogic.connector.outbound.RAOutboundManager.getConnectionFactory(RAOutboundManager.java:765)
        at weblogic.connector.deploy.JNDIHandler.getConnectionFactory(JNDIHandler.java:1015)
        at weblogic.connector.deploy.JNDIHandler.lookupObject(JNDIHandler.java:869)
        at weblogic.connector.deploy.JNDIHandler.getObjectInstance(JNDIHandler.java:843)
        at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
        at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:255)
        at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:411)
        at javax.naming.InitialContext.lookup(InitialContext.java:392)
        at com.mycompany.myEJB.initContext(myEJB.java:100)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.bea.core.repackaged.springframework.jee.inject.Jsr250Metadata.invokeLifecycleMethod(Jsr250Metadata.java:332)
        at com.bea.core.repackaged.springframework.jee.inject.Jsr250Metadata.invokeLifecycleMethod(Jsr250Metadata.java:326)What I don't understand is: even if my application name change (in one case, the name of the EAR containing the RAR, in the other case, the classical EAR name) my packaginig is still the same: the myEJB lookup a Resource adapter which is inside the same EAR and the same application.
What is wrong ? Do you think it is a potential weblogic bug related to sharedlib deployment ?
Thank you for helping,
Best Regards,

Hi,
I've defined my Shared lib EAR using its MANFIEST.MF file just like that :
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.8.1
Created-By: 1.6.0_22-b04 (Sun Microsystems Inc.)
Implementation-Version: 1.1.3
Implementation-Vendor: XXXXXXX Software
Specification-Version: 1.1
Specification-Title: xxxx
Copyright: Copyright (c) 2012 XXXXXXX
Weblogic-Application-Version: 1.1.3And I reference it from my plain EAR using deployment plan (for dynamic configuration of my solution)
  <variable-definition>
    <variable>
      <name>xxxxSharedLibStatus</name>
      <value>false</value>
    </variable>
  </variable-definition>
  <module-override>
    <module-name>classicalEAR.ear</module-name>
    <module-type>ear</module-type>
    <module-descriptor external="false">
      <root-element>weblogic-application</root-element>
      <uri>META-INF/weblogic-application.xml</uri>
      <variable-assignment>
        <name>xxxxSharedLibStatus</name>
        <xpath>/weblogic-application/library-ref/[library-name="xxxx.ear"]/exact-match</xpath>
      </variable-assignment>
    </module-descriptor>
  <config-root xsi:nil="true"></config-root>
</deployment-plan>I use this mechanism for more than 20 EAR shared lib linked to my classical EAR. it works well, everything seems to be well deployed but the lookup from EAJ to Adaptor raised this permission Exception...
Thank you if you can help.
Best Regards,

Similar Messages

  • When I try to open the shared library on the 2nd computer (the one I want to xfer music to), the only songs that come up are those that are already in that same library (the library on the 2nd computer).  While I can see computer

    When I try to open the shared library on the 2nd computer (the one I want to xfer music to), the only songs that come up are those that are already in that same library (the library on the 2nd computer).  While I can see computer #1 listed under 'shared,' when I click on it the only songs I can see are those that I already have on the 2nd computer.  Hopefully that makes sense.  Basically, the library from computer #1 isn't loading up.

    What level of OS X is installed on your Mac (your profile is incomplete)?
    Barry

  • When calling a function in a shared library, are parameters copied locally?

    I have a shared library with a function whose header is:
    void __cdecl nextevent(double Input[], int32_t len);
    When called it sends the values in Input[] to the control Input:
    This vi is compiled to a DLL which uses the header above.
    My question now is: Which of these operations is the correct one:
    1. The Input control is a reference to the array Input[], no values are copied.
    2. The values in the array Input[] are copied to the control Input, the local copy is used by the vi, then the values in the local copy are removed/deallocated.
    It seems reasonable to me that 1 is the correct one, but I can't be sure, and I can't think of any way to check it.
    Lars Melander
    Uppsala Database Laboratory, Uppsala University
    Solved!
    Go to Solution.

    For this particular case option 2 is valid. The reason is that LabVIEW arrays are not just pointers to a memory location but handles. And there is no legal way to create valid LabVIEW handles from an C runtime allocated memory pointer. So LabVIEW converts the incoming array pointer into a handle which is basically nothing else than allocating the handle with a size large enough to  hold all array data, and then copies the data from the array pointer into this handle. After the call, the handle is properly deallocated.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • NoClassDefFoundError when deploying ear

    Hello,
    I am deploying an ear using MyEclipse. In the ear under the META-INF dir is the application.xml. The application.xml has a reference to the jar which has the class that is not found when deploying and the jar is in the ear.
    <module>
    <java>cdtpojo.jar</java>
    </module>
    Any ideas what I am doing wrong. This is being deployed to the 8.1 SP4 platform.
    Joel

    Hi werginz ,
    did you copy the jar files under the app/lib dir and add them to ejb manifest file ?
    ----Anilkumar kari

  • Resource bundle in shared library?

    Is it possible to create a resource bundle in a shared library so you can use the same resource bundle in different application?
    We are creating different ADF application and each of them should use the same resource bundle.
    I tried creating a new project that only contains the resource bundle and then add this to my jspx page:
    <c:set var="res"
             value="#{adfBundle['general.resources.generalBundle]}"/>When i do this, he can't find any entries. When i change the project properties and configure to use a single bundle for the entire project, this works.
    How can i share a bundle so each application does not need to create or copy/paste the bundle?
    Is it possible to deploy the bundle as a shared library? Even if their is nothing else, not even a single java class?
    Edited by: Yannick.O on Jul 28, 2010 10:45 AM

    Try to create a JAR with the resource file in it (under /META-INF) and add it as a library in your project.
    If it does not work, try to create a faces-config.xml file inside that directory that declares the resource file.
    I think it gets merged at runtime with the config of your application and resource bundle should be available.

  • Strange Issue  with Logout | Shared Library in WebCenter

    For our customer, we have written a couple of task flows. We deployed this as an ADF Library JAR and included the JAR into our WebCenter Portal project (using IDE Connection -> File System Connection). We then placed the task flows onto a few portal pages and everything works fine.
    Now to avoid redeploying the portal application each time we make a small change to the task flows, we decided to go ahead with the shared library approach. We create a new “Generic application” in ADF, added the ADF Library JAR to this application and created a WAR deployment profile. We then deployed this application as a “shared library” to the Weblogic server.
    We then made the necessary entry to weblogic.xml of our custom WebCenter Portal application and deployed it.
    The task flows were getting consumed properly and all functionality was working fine. Just to test, I even deployed an updated version of the shared library and noticed that the portal application picked up the new task flow code. Everything seemed perfect 
    But now when I click on logout of the Portal application, I am getting a error dialog which indicates a server 404 error.
    To eliminate any issue with our custom code, I repeated the same steps with a very basic task flow application and a new WebCenter portal application.
    1.     I ran the application, and logged in as “weblogic” and saw the task flow was displaying correctly
    2.     Click on Logout. Got an error dialog (A connection to server has failed (Status=404))
    3.     Click on OK in the dialog. Then click on Logout again. Got another error dialog ("Because of inactivity your session has timed out" )
    4.     Click on OK in the dialog. Got logged out (saw the page without the secure content i.e. my task flow)
    Ideally, I would like to get logged out the first time I get logged out (without having to see those two dialogs). The logout was working perfectly fine before we switched to the Shared Library approach.
    Am I missing something? Any pointers?
    Note – My Jdev/ADF/WebCenter versions are 11.1.1.5.0

    Sometimes resetting an Apple ID password can help >  Apple - My Apple ID
    If that doesn't help, from the iTunes menu bar click Store > Sign Out
    Restart the Mac, launch iTunes then sign in again.

  • How can I use a shared library made with the application builder?

    Hi,
    I am using LabVIEW 7.1 running on Slackware 10.1 (kernel 2.4.29) and I am trying to call a graph display from a C program that I use for debugging VME access from a VMIVME controler. So using the application builder I built the VI as a shared library (graph.vi -> graph.so) containing a function called "graph". In my main program the call to the dlopen fails with the error: "graph.so: undefined symbol: UninitLVClient". When I examin graph.so with nm I see that UninitLVClient and other LabVIEW functions are indeed undefined and using ldd shows that graph.so has dependencies only on libc.so.* and *linux*.so.* but not on LabVIEW related stuff. Those functions are defined in the liblv.so that's in the cintools directory but I have no idea if the user is supposed to use that.
    So I think I am missing an important concept here. Can somebody help or direct me to some documentation (I found lots of information about how to link external code to LabVIEW but nothing about how to link LabVIEW code to an external program)?

    Thanks Watermann,
    your message has been very useful so now I am linking to the proper library but I still have problems when trying to load dynamically the shared library produced with LabVIEW. It is strange that I could successfully load the lvrt library at loading time but it does not work when I am loading the library at execution time.
    I made a small LabVIEW program that prints a hello window and I am calling it from a C program. In the first program main.c I am linking to the lvrt library at loading time and it works but in the second one I am linking dynamically at execution time and it does not work. For my work I need to be able to load code done in LabVIEW at execution time. Any help is appreciated!
    Program main.c:
    // small program to call a LabVIEW shared library
    #include
    #include
    #include "hello.h" // got this from the LabVIEW builder, i.e. when I made the hello.so
    int main(void)
    printf("Hello from C!\nLets call LabVIEW now\n");
    hello();
    printf("Bye ... \n");
    return 0;
    The command to compile main.c, i.e. linking shared library lvrt when loading main program:
    gcc -Wall -I /usr/local/lv71/cintools/ -o main main.c hello.so -l lvrt
    The LD_LIBRARY_PATH has been defined and exported:
    $ LD_LIBRARY_PATH=$PWD
    $ export LD_LIBRARY_PATH
    IT WORKS!
    Program main2.c:
    // small program to call a LabVIEW shared library
    #include
    #include
    #include
    int main(void)
    void * h_lvrt;
    void * h_hello;
    void (* hello)(void);
    char * error;
    printf("Hello from C!\nLets call LabVIEW now\n");
    // open LabVIEW RunTime shared library
    // in my computer located at /usr/local/lib/liblvrt.so
    h_lvrt = dlopen("/usr/local/lib/liblvrt.so", RTLD_NOW);
    // check for error
    error = dlerror();
    if (error) {
    printf("error : could not open LabVIEW RunTime library\n");
    printf("%s\n", error);
    return 1;
    // open hello shared library
    // in my computer located at /home/darss/lv_call/hello.so
    h_hello = dlopen("hello.so", RTLD_NOW);
    // check for error
    error = dlerror();
    if (error) {
    // close LabVIEW RunTime shared library
    dlclose(h_lvrt);
    printf("error : could not open hello library\n");
    printf("%s\n", error);
    return 1;
    // get function hello from library hello.so
    hello = dlsym(h_hello, "hello");
    // check for error
    error = dlerror();
    if (error) {
    // close hello shared library
    dlclose(h_hello);
    // close LabVIEW RunTime shared library
    dlclose(h_lvrt);
    printf("error : could not get the hello function\n");
    printf("%s\n", error);
    return 1;
    // call hello function
    hello();
    // close hello shared library
    dlclose(h_hello);
    // close LabVIEW RunTime shared library
    dlclose(h_lvrt);
    printf("Bye ... \n");
    return 0;
    The command to compile main2.c, i.e. dynamically linking library lvrt at execution of main2 program:
    gcc -Wall -o main2 main2.c -l dl
    The LD_LIBRARY_PATH still defined and exported.
    IT DOES NOT WORK!
    Program output:
    Hello from C!
    Lets call LabVIEW now
    error : could not open hello library
    /home/darss/lv_call/hello.so: undefined symbol: WaitLVDLLReady

  • Require entry of metadata when creating a folder in a document library

    Sharepoint Foundation 2010 -
    While users are required to enter metadata when uploading a document, it would be a tremendous help if they were required to enter metadata when creating a folder inside a document library.
    Is there a way to force entry of metadata when creating a folder? And if this is possible, can I create different metadata requirements for documents uploaded inside a folder?
    Thanks.

    Yes, you will need to create a Content Types that inherits the Folder Content Type, and then assign your new Content Type to your library. The following blog post explains how to do this (it was written for 2007 but same applies for 2010),
    http://www.sharepoint-guru.com/2007/06/adding-metadata-to-folder.html
    You can create additional Content Types to reflect the different types of files, each with their own set of metadata columns and requirements.
    Dimitri Ayrapetov (MCSE: SharePoint)

  • Itunes in windows fails to play Shared Library's Video!!!

    Hello, I'm not sure if this is a bug but I have thoroughly tested it in both Vista and XP.
    If I share my Itunes' Library and access it from another PC (vista or XP tested), it can list the tvshows/movies/podcasts just fine, but when I play it, nothing happens. I see some network activity for brief 3-4 seconsd and then it stops.
    The videos were imported into itunes on the macbook pro just fine (meaning the encoding is fine, MP4) and when I copied those videos file manually over to the PCs, the play fine too. Even if I share them over the network through SMB, they play fine streaming. They only fail when I play them through itunes' shared library.
    95% of the videos fail, except for a few that I noticed and have not yet figured out a pattern. Videos that seems to work are 1) the downloaded guided tour video of iLife08 2) the mac tips podcasts from apple 3) a movie I converted using Quicktime into MP4 from divx
    Any ideas?
    Message was edited by: aapl.up
    Message was edited by: aapl.up

    This may indeed be the Windows version of iTunes (and QuickTime) being fussier than the Mac version.
    However I did in Windows XP, take a video that would not work, export it using QuickTime Pro (on Windows) with the Prepare for Streaming option ticked, and the resulting video did then work, also taking the same original video that did not work and in iTunes 7.4.3 (on Windows) and converting it to AppleTV format, also produced a version that then did work for iTunes Sharing.
    A video can be in MPEG4 format (or H.264) and meet the Apple specifications for iPod or Apple TV resolution, but it is quite possible it may not have been 'prepared for streaming'.
    There have been similar reports from FrontRow (in Mac OS X) users accessing videos from an iTunes Share and having problems (typically very poor performance) and when they used the prepare for streaming option the problems went away.

  • Tracing iTunes Shared Library

    Hello Apple People,
    Im managing a large number of apple computers, and have recently noticed that some clients have some questionable material that they are sharing in their iTunes library.
    I was wandering how do you track down the user who is supplying the shared library. I have started scanning Port 3689, which allows iTunes sharing between Macs, but if there is some temporary file being stored somewhere that gives perhaps an MAC address, or even an IP, that would be better.
    Thanks

    macmenno,
    I just read this post and I'm wondering if you can helpme in my problem - I'm completely stumped!
    Below is pasted from my post:
    "Apple techs, I've posted this topic before and no one has been able to solve - I believe it's a bug in the program.......
    All my macs are running 10.4.7, QT 7.1.3, itunes 7 (problem happened with QT 7.1.2, itunes 6.+)
    I'm sharing my itunes songs in my MDD G4(host). I access my g4's shared library from my other mac's either via ethernet or wireless (home LAN).
    I have discovered that I cannot play ANY songs that have been encoded as mp3 joint stereo. My mp3's were encoded this way because this was my previous itunes versions (itunes 3 I think) default encoding setting.
    When I access my hosts itunes shared library from one of my 'client' macs and view my mp3 joint stereo files, I first notice that they have a 'QuickTime movie file(remote)' in the Kind property list.
    They do not list this way on the host - they list on the host as MPEG audio file.
    Then when I try to play a mp3 joint stereo file, I get a short spinning rainbow, the song does not play and the play head just doesn't move.
    All other song files play, non-joint stereo mp3's, AAC, protected(purchased)songs, videos, etc.
    Apple itunes tech's PLEASE CHIME IN HERE - I need an expert to examine this issue, I haven't been able to figure this one out and I cannot share/play my music on to my other macs....
    BIG THANKS!"
    macmenno, I hope you can help - THANKS!!!

  • Using OJDeploy to create an ADF Shared Library

    Hi All,
    I'm trying to get OJDeploy to generate a shared libary ear file from the command line, but it fails to find the project level deployment profile.
    I either get "No Matching Profiles" if I try and specifiy the ADF Library Deployment Profile
    Or if I specify the Application Level Profile I get
    SEVERE: == ERROR: No Java EE modules detected in EAR archive. Deployment aborted. == (oracle.jdevimpl.deploy.ear.WeblogicAssembler)
    This project is my CommonCode project that holds the definition of my base framework classes, as such there is no JEE modules in the project.
    Has anyone got this to work. Do I need to create a WAR file that includes the ADF Shared Library EAR File?
    Regards
    Orlando

    Hi,
    Google found this: http://one-size-doesnt-fit-all.blogspot.com/2010/11/using-ojdeploy-and-ant-for-creating-adf.html
    Frank

  • Shared library doesnt load on ipad

    I have a very large amount of media (mainly audio books and music, including over 2000 music videos) I find that on the whole home sharing works fine with my Apple TV which is hard wired to the network but when I try to access the shared library on my Ipad 2 the little timer goes round to half way and always stops.
    I had this issue some time ago but it seemed to be resolved by an update but it is happening again, which means I cannot access any of the media on my shared library from my Ipad. Both the Ipad and Itunes are running the latest versions and Itunes is running on Windows 7 64bit.
    I have tried restarting the ipad and restarting the home server but neither resolves the problem. The wireless signal is strong so dont understand why it works on the Apple TV but not the Ipad. Could it be the size of the library? my itunes folder currently stands at 508GB.
    Any help in getting this resolved would be appreciated.
    Thanks in advance

    This is not a java problem.
    It is a VM problem.
    So for the VM (vendor and version) that you are using it requires certain things.
    It might be that the VM doesn't load 32 at all. Or that you have to do something different when you compile it.
    A forum that is specific to your VM might be more productive (this site tends to be strongly solaris/linux/windows.)

  • NoClassDefFoundError error when deploying a resource adapter rar file

    Hi,
    Iam trying to deploy a resource adapter(RA) rar file which uses orabpel.jar.
    1. When i dont package the orabpel.jar along with the adapter, i get the following error during deployment
    [Apr 19, 2007 8:05:00 PM] Connector Module Deployer for BRMAdapter STARTS.
    [Apr 19, 2007 8:05:00 PM] Copy the archive to E:\product\10.1.3.1\OracleAS_1\j2ee\home\connectors\BRMAdapter\BRMAdapter.rar
    [Apr 19, 2007 8:05:00 PM] Unpacking BRMAdapter.rar
    [Apr 19, 2007 8:05:00 PM] Done unpacking BRMAdapter.rar
    [Apr 19, 2007 8:05:00 PM] Starting up resource adapter
    [Apr 19, 2007 8:05:00 PM] Exception: NoClassDefFoundError: oracle/tip/adapter/api/exception/PCRetriableResourceException
    [Apr 19, 2007 8:05:00 PM] Operation failed with error: oracle/tip/adapter/api/exception/PCRetriableResourceException
    2. If i package the orabpel.jar file along with the RA, i get ClassCastException.
    3. I tried including the imported-shared-libraries section in the packaged oc4j-ra.xml, but this gets overwritten as part of the deployment.
    4. I removed the above class which gave NoClassDefFoundError and then tried deploying and got the following error
    [Apr 19, 2007 7:49:07 PM] Connector Module Deployer for BRMAdapter STARTS.
    [Apr 19, 2007 7:49:07 PM] Copy the archive to E:\product\10.1.3.1\OracleAS_1\j2ee\home\connectors\BRMAdapter\BRMAdapter.rar
    [Apr 19, 2007 7:49:07 PM] Unpacking BRMAdapter.rar
    [Apr 19, 2007 7:49:07 PM] Done unpacking BRMAdapter.rar
    [Apr 19, 2007 7:49:07 PM] Starting up resource adapter
    [Apr 19, 2007 7:49:07 PM] Exception: NoClassDefFoundError: Missing class: oracle.tip.adapter.api.OracleConnectionFactory Dependent class: oracle.tip.adapter.brm.BRMConnectionFactory Loader: BRMAdapter:0.0.0 Code-Source: /E:/product/10.1.3.1/OracleAS_1/j2ee/home/connectors/BRMAdapter/BRMAdapter/BRMAdapter.jar Configuration: in E:\product\10.1.3.1\OracleAS_1\j2ee\home\connectors\BRMAdapter\BRMAdapter The missing class is available from the following locations: 1. Code-Source: /E:/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel.jar (from in /E:/product/10.1.3.1/OracleAS_1/j2ee/home/config/server.xml) This code-source is available in loader oracle.bpel.common:10.1.3.
    [Apr 19, 2007 7:49:07 PM] Operation failed with error: Missing class: oracle.tip.adapter.api.OracleConnectionFactory Dependent class: oracle.tip.adapter.brm.BRMConnectionFactory Loader: BRMAdapter:0.0.0 Code-Source: /E:/product/10.1.3.1/OracleAS_1/j2ee/home/connectors/BRMAdapter/BRMAdapter/BRMAdapter.jar Configuration: in E:\product\10.1.3.1\OracleAS_1\j2ee\home\connectors\BRMAdapter\BRMAdapter The missing class is available from the following locations: 1. Code-Source: /E:/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel.jar (from in /E:/product/10.1.3.1/OracleAS_1/j2ee/home/config/server.xml) This code-source is available in loader oracle.bpel.common:10.1.3.
    Here is the oc4j-ra.xml i package:
    <?xml version="1.0"?>
    <oc4j-connector-factories xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.oracle.com/technology/oracleas/schema/oc4j-connector-factories-10_0.xsd"
    schema-major-version="10" schema-minor-version="0">
    <imported-shared-libraries>
    <import-shared-library name="oracle.bpel.common"></import-shared-library>
    </imported-shared-libraries>
    <connector-factory location="eis/BRM" connector-name="OracleBRMAdapter">
    <config-property name="ConnectionString" value="ip blrhpdv3 12006"></config-property>
    <config-property name="DBNumber" value="1"></config-property>
    <connection-pooling use="none"/>
    <security-config use="none"/>
    <connectionfactory-interface>
    javax.resource.cci.ConnectionFactory
    </connectionfactory-interface>
    </connector-factory>
    </oc4j-connector-factories>
    Currently i package orabpel.jar file along with the RA rar file, deploy, later go and modify the oc4j-ra.xml from application-deployments/... to include the imported-shared-libraries, remove the orabpel.jar from the connectors/BRMAdapter directory, restart the AS and it works
    Iam using Oracle AS 10.1.3 as part of the SOA Suite.
    Any help would be appreciated.

    Found a soln, add the codesource to the j2ee instance application.xml
    eg adding the following
    <imported-shared-libraries>
    <import-shared-library name="oracle.bpel.common"/>
    </imported-shared-libraries>
    solves the problem. Make sure the shared libraries are installed and is added to the instance server.xml
    This is described in "Oracle® Containers for J2EE Developer’s Guide 10g (10.1.3.1.0)"
    But not sure if the end customers need to be told to edit the configuration file manually.

  • Should deploying a .rar put those classes in the Weblogic Classpath?

    Should deploying a .rar put those classes in the Weblogic Classpath?
              I am deploying an EJB and a RAR, the EJB has no dependencies on the
              RAR b/c the EJB is writing to the Common Client Interface(CCI). The EJB
              client app has
              sends/marshals as parameters classes that are defined in the RAR.
              For some reason the EJB's class loader hierachy cannot find the definition
              of this RAR specific class, even though the RAR is deploying. I receive the
              following error on the EJB client:
              ===========================================================
              java.rmi.UnmarshalException: error unmarshalling arguments; nested exception
              is:
              java.lang.ClassNotFoundException:
              com.myclientcompany.server.eai.InteractionSpecImpl
              java.lang.ClassNotFoundException:
              com.myclientcompany.server.eai.InteractionSpecImpl
              <<no stack trace available>>
              ===========================================================
              Marc T. Calello
              Momentum Software, Inc
              Austin, TX
              [email protected]
              

              When you pass an instance of
              com.myclientcompany.server.eai.InteractionSpecImpl
              as an argument to your EJB, the appServer needs to
              de-serialize(unmarshall)
              the object under the EJB context, and it needs the required class for
              unmarshalling,
              inside the ejb-jar(raTester.jar).
              So if you include the interactionspecimpl class in your ejb-jar file,
              then you dont need
              to include those classes in your server's classpath.
              prasen
              "Marc T. Calello" wrote:
              >
              > Should deploying a .rar put those classes in the Weblogic Classpath?
              > I am deploying an EJB and a RAR, the EJB has no dependencies on the
              > RAR b/c the EJB is writing to the Common Client Interface(CCI). The EJB
              > client app has
              > sends/marshals as parameters classes that are defined in the RAR.
              > For some reason the EJB's class loader hierachy cannot find the definition
              > of this RAR specific class, even though the RAR is deploying. I receive the
              > following error on the EJB client:
              > ===========================================================
              > java.rmi.UnmarshalException: error unmarshalling arguments; nested exception
              > is:
              > java.lang.ClassNotFoundException:
              > com.myclientcompany.server.eai.InteractionSpecImpl
              > java.lang.ClassNotFoundException:
              > com.myclientcompany.server.eai.InteractionSpecImpl
              > <<no stack trace available>>
              > ===========================================================
              >
              > --
              > Marc T. Calello
              > Momentum Software, Inc
              > Austin, TX
              > [email protected]
              

  • Compilation error when deploying EAR file on standalone OC4J...

    Hi All,
    I am getting the following error when trying to deploy an EAR File describing a web service from the Jdeveloper IDE to the stanalone OC4J server instance.
    ==========================================================
    Uploading file JavaWebServiceEmp-GetDates-WS.ear ...
    Application Deployer for JavaWebServiceEmp-GetDates-WS STARTS.
    Copy the archive to C:\Lester\Testing\JDev10.1.3\oc4j\j2ee\home\applications\JavaWebServiceEmp-GetDates-WS.ear
    Initialize C:\Lester\Testing\JDev10.1.3\oc4j\j2ee\home\applications\JavaWebServiceEmp-GetDates-WS.ear begins...
    Unpacking JavaWebServiceEmp-GetDates-WS.ear
    Done unpacking JavaWebServiceEmp-GetDates-WS.ear
    Unpacking WebServices.war
    Done unpacking WebServices.war
    Initialize C:\Lester\Testing\JDev10.1.3\oc4j\j2ee\home\applications\JavaWebServiceEmp-GetDates-WS.ear ends...
    Starting application : JavaWebServiceEmp-GetDates-WS
    Initializing ClassLoader(s)
    Initializing EJB container
    Loading connector(s)
    Starting up resource adapters
    Initializing EJB sessions
    Committing ClassLoader(s)
    Initialize WebServices begins...
    Initialize WebServices ends...
    Started application : JavaWebServiceEmp-GetDates-WS
    Binding web application(s) to site default-web-site begins...
    Binding WebServices web-module for application JavaWebServiceEmp-GetDates-WS to site default-web-site under context root JavaWebServiceEmp-GetDates-context-root
    Operation failed with error:
    Error compiling :C:\Lester\Testing\JDev10.1.3\oc4j\j2ee\home\applications\JavaWebServiceEmp-GetDates-WS\WebServices: compilation error occurred
    Deployment failed
    Elapsed time for deployment: 1 minute, 50 seconds
    ==========================================================
    Please could somebody help me out with this? Basically I am not able to understand how to deploy the EAR file created under the MyWork folder under jdeveloper\jdev to the applications folder of j2ee\home. I am new to both EAR deployment as well as web services and would like to get a good understanding of the working of a web service which includes SOAP components and the like.
    Any help with regards to building and deploying a web service on standalone OC4J would be appreciated. Thanks a lot.

    Initially I followed the following steps to start up OC4J:-
    Settings :-
    1) Jdeveloper is setup under C:\Lester\Testing as Jdev10.1.3 folder
    2) I downloaded the extended oc4j zip folder and unzipped it under a new folder oc4j at the location C:\Lester\Testing\Jdev10.1.3
    Steps followed to run oc4j and deploy application
    1) Setup a standalone oc4j from the jdeveloper ide giving C:\Lester\Testing\Jdev10.1.3\oc4j as the root folder for oc4j.
    2) While doing step 1 added password and deployed it. Changed server.xml under C:\Lester/Testing/JDev10.1.3/oc4j/j2ee/home/config
    to include the following:-
    <shared-library name="global.libraries" version="1.0" library-compatible="true">
    <code-source path="C:\Lester/Testing/JDev10.1.3/oc4j/j2ee/home/applib"/>
    </shared-library>
    AND
    <java-compiler name="javac" in-process="false" options="-J-Xmx1024m -encoding UTF8" bindir="C:\Jdeveloper\jdk" extdirs="C:\Jdeveloper/jdk" />
    3) Opened a command prompt and went to the location C:\Lester\Testing\JDev10.1.3\oc4j\j2ee\home and ran the following command:-
    --> java -jar oc4j.jar
    4) Deployment: Then I deployed my primewebservice application from command prompt at C:\Lester\Smart Cylinder\Example code\prime\PrimeNumberService>
    using:-
    --> java -jar C:\Lester/Testing/JDev10.1.3/oc4j/j2ee/home/admin.jar ormi://172.20.13.164:8888 oc4jadmin welcome -deploy -file PrimeNumberService.ear -deploymentName DocStyleWebService
    5) Web Binding: Then I bound my primewebservice application from command prompt at C:\Lester\Smart Cylinder\Example code\prime\PrimeNumberService>
    using:-
    --> java -jar C:\Lester/Testing/JDev10.1.3/oc4j/j2ee/home/admin.jar ormi://172.20.13.164:8888 oc4jadmin welcome -bindWebApp DocStyleWebService PrimeNumberService_web http-web-site /docws
    6) Steps 4 and 5 went through without error.
    7) However when trying to access the web service using the following link I get the standard HTTP 404 (Page not found) error:-
    http://localhost:8888/docws/prime
    This was before I tried deploying the web service through jdeveloper IDE.
    I had tried the document web service given at the following link:-
    http://www.oracle.com/technology/sample_code/tech/java/codesnippet/webservices/docservice/index.html
    from the web services how to links
    http://www.oracle.com/technology/sample_code/tech/java/codesnippet/webservices/index.html
    Please could somebody help me out? Also periodically I recieve the ojc.exe not found error when trying to deploy an application using jdeveloper ide. There are two conflicting jdeveloper versions one comes with this exe and one without.
    Message was edited by:
    Lester N

Maybe you are looking for

  • Data Guard configuration for RAC database disappeared from Grid control

    Primary Database Environment - Three node cluster RAC Database 10.2.0.1.0 Linux Red Hat 4.0 2.6.9-22 64bit ASM 10.2.0.1.0 Management Agent 10.2.0.2.0 Standby Database Environment - one Node database Oracle Enterprise Edition 10.2.0.1.0 Single standby

  • Looping video or audio slide

    I have been trying to "loop" a video file to play over and over and am having no luck. I thought I could follow instructions, but eveidently I'm retarded or the instructions are not correct. I also would like to loop an entire presentation without fi

  • Mountain lion x...

    I just downloaded yesterday and am having problems Facebook.  I cannot share websites with Facebook directly from the website as the tutorial shows.  Any suggestions?

  • PDF Version 1.7

    Hi there, whenever I use the CreatePDF service, the PDF created always seems to be version 1.5.  I need to create a document that is PDF version 1.7, is there a way to change this using the CreatePDF service?  Thanks in advance.

  • GetTypeInfo incomplete?

    I'm using JDBC's metadata getTypeInfo method to obtain a mapping between database typenames and JDBC types. This in order to be able to create my database tables (and use other DDL commands) in a universal way, using the obtained mapping to finally m