Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: problem with SimpleRemoteStatelessSessionProxyFactoryBean

  1. #11
    Join Date
    Aug 2004
    Posts
    12

    Default I tested your code, it works, you miss a jar

    Quote Originally Posted by ElPapa
    I give up... :oops:

    I've put the code on one of my servers in a ZIP file. The project is done in JBuilder, but should be easily sucked into eclipse. I've stared at this until my eyes are blurring. And I think I need one of the 'higher-powers' here to loan me a set of eyes.

    http://mywebpages.comcast.net/daorri.../springEJB.zip

    So far understanding this part of Spring is really frustrating me. Other parts I've used fine, but this... eeeesh.

    Anyway, I'd appreciate any help you can give. The springEJB.html file in the project as some notes on how to run the test client that's included with it.
    Hi, ElPapa:
    I downloaded your code, and tested, finally I made it works, let me explain:
    1. I deployed your code to weblogic 8.1,
    in MANIFEST.MF add depended reference:
    Class-Path: srping.jar log4j-1.2.8.jar commons-logging.jar commons-collections-2.1.1.jar, and put jars inside EJBModule.jar, and
    weblogic-jar.xml:<weblogic-ejb-jar>

    <weblogic-enterprise-bean>

    <ejb-name>SimpleEJB</ejb-name>
    <jndi-name>SimpleEJB</jndi-name>

    </weblogic-enterprise-bean>

    </weblogic-ejb-jar>

    same as jboss.xml, and then no luck, can not find spring.jar ...., can not deploy,
    2. I put spring.jar,log4j-1.2.8.jar,common-logging.jar in server classpathg, it deployed,
    3. I test you TestRemoteProxy, get Exception......

    4. finnally I figure out, add aopalliance.jar in server classpath. it works.


    Would you mind fixing my problem: why following structure, weblogic can not find the depended jars?

    EJBModule.jar
    |_pring.jar
    |_log4j-1.2.8.jar
    |_commons-logging.jar
    |_aopalliance.jar
    |_com
    _codethought
    _springejb
    _SimpleEJB.class
    _Simple*
    |- META-INF
    |_ ejb-jar.xml
    |_ vendor-ejb-jar.xml
    |_ Manifest.mf

    ping Lu

  2. #12
    Join Date
    Aug 2004
    Location
    Tacoma, WA USA
    Posts
    49

    Default

    pinglu,

    THANKS!! That was perfect.

    About your problem. I remember some odd 'quirks' about WebLogic's classloader. I'll have to do some reading and see what I can find. Have you tried putting everything in an EAR file? Have the EJB Jar contain NONE of the dependencies for the JAR file and instead include them in the EAR file along with the EJB JAR file.

    That's what I do...
    ElPapa

    The delusion that people care about what I think:
    http://www.codethought.com/blog

  3. #13
    Join Date
    Aug 2004
    Posts
    12

    Default deploy as ear works!

    Quote Originally Posted by ElPapa
    pinglu,

    THANKS!! That was perfect.

    About your problem. I remember some odd 'quirks' about WebLogic's classloader. I'll have to do some reading and see what I can find. Have you tried putting everything in an EAR file? Have the EJB Jar contain NONE of the dependencies for the JAR file and instead include them in the EAR file along with the EJB JAR file.

    That's what I do...
    As you suggested I have EJB.jar without depend jar and put in a ear file, all the third party jars in APP-INF/lib
    Simple.ear
    -EJBMOdular.jar
    -META-INF\application.xml
    -APP-INF
    -lib
    spring.jar
    common-logging.jar
    aopanliance.jar
    Thanks!

    Ping

  4. #14
    Join Date
    Aug 2004
    Location
    Tacoma, WA USA
    Posts
    49

    Default

    Yea I've found that EAR files make life a lot easier...
    ElPapa

    The delusion that people care about what I think:
    http://www.codethought.com/blog

Similar Threads

  1. Replies: 1
    Last Post: Jul 5th, 2005, 03:48 AM
  2. pagination and continuation problem in SWF
    By yfmoan in forum Web Flow
    Replies: 6
    Last Post: Jun 29th, 2005, 03:42 AM
  3. Replies: 0
    Last Post: Feb 16th, 2005, 01:45 PM
  4. Oracle Jdbc invalid url problem
    By jfuchs in forum Data
    Replies: 5
    Last Post: Nov 1st, 2004, 11:33 AM
  5. Lazy Load Problem when Doing UnitTest
    By yoshi in forum Data
    Replies: 7
    Last Post: Sep 29th, 2004, 10:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •