Transaction & non-EJB objects (helper)

hi i have a question about transactional behavior of non-EJB objects. i'm
          using
          weblogic 6.0 sp1 with ejb 2.0.
          say i have a session bean which starts a container managed transaction. and
          it calls
          out to helper class A(non-EJB), and that helper class A get a connection and
          update
          some tables. after A returns, session bean calls helper class B(non-EJB) in
          the
          same transaction. B is supposed to update some other tables but it throw an
          user
          exception. would the transaction in the session bean be rolled back? would
          it
          also roll back the changes made by helper class A?
          thanks for any help,
          z
          

Thanks Rob!
          "Rob Woollen" <[email protected]> wrote in message
          news:[email protected]...
          > Ziqiang Xu wrote:
          >
          > > hi i have a question about transactional behavior of non-EJB objects.
          i'm
          > > using
          > > weblogic 6.0 sp1 with ejb 2.0.
          > >
          > > say i have a session bean which starts a container managed transaction.
          and
          > > it calls
          > > out to helper class A(non-EJB), and that helper class A get a connection
          and
          > > update
          > > some tables.
          >
          > You must get the JDBC connection from a TxDataSource.
          >
          > > after A returns, session bean calls helper class B(non-EJB) in
          > > the
          > > same transaction. B is supposed to update some other tables but it
          throw an
          > > user
          > > exception. would the transaction in the session bean be rolled back?
          >
          > Merely throwing an exception from a helper class will not rollback the
          > transaction.
          >
          > Within an EJB, the best way to rollback a tx is to use the
          > EJBContext.setRollbackOnly method.
          >
          > So you could do something like this:
          >
          > session_bean_method() {
          >
          > try {
          > B.foo();
          > } catch (MyException e) {
          > ctx.setRollbackOnly();
          > throw e;
          > }
          >
          > }
          >
          > > would
          > > it
          > > also roll back the changes made by helper class A?
          > >
          >
          > If they are all within a single transaction, then yes. As I mentioned
          before,
          > make sure that you use a TxDataSource for all of your JDBC Connections.
          >
          > -- Rob
          >
          > >
          > > thanks for any help,
          > >
          > > z
          >
          

Similar Messages

  • Help me! About look up EJB object.

    I have deployed the ejb object on local PE 9(Sun Java System Application Server Platform Edition 9).
    When I use the following code to have a test, I will get a correct result.
    The classpath include (appserv-rt.jar) ect.
    public static void main(String[] args) {
         try{
              Properties props = System.getProperties();
              Context ctx = new InitialContext(props);
              Hello h = (Hello) ctx.lookup("java:comp/env/ejb/test/Hello");
              Hello h = (Hello) ctx.lookup("ejb/test/Hello");
              System.out.println(h.sayHello());
         }catch(Exception e){
              e.printStackTrace();
    The first question is that the real host ever is the localhost, whether I set the any host (props.put(Context.PROVIDER_URL,"iiop://192.46.57.78:3700");).
    Why?
    When I use the following code to have a test, I will get a incorrect result.
    public static void main(String[] args) {
         try{
              Properties props = System.getProperties();
              props.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.cosnaming.CNCtxFactory");
              props.put(Context.PROVIDER_URL,"iiop://localhost:3700");
              Context ctx = new InitialContext(props);
              Hello h = (Hello) ctx.lookup("java:comp/env/ejb/test/Hello");
              Hello h = (Hello) ctx.lookup("ejb/test/Hello");
              System.out.println(h.sayHello());
         }catch(Exception e){
              e.printStackTrace();
    The exception is :
    javax.naming.NameNotFoundException [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0]
         at com.sun.jndi.cosnaming.ExceptionMapper.mapException(ExceptionMapper.java:44)
         at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:453)
         at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:492)
         at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:470)
         at javax.naming.InitialContext.lookup(InitialContext.java:351)
         at tests.HelloTest.main(HelloTest.java:30)
    Caused by: org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
         at org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(NotFoundHelper.java:72)
         at org.omg.CosNaming._NamingContextExtStub.resolve(_NamingContextExtStub.java:406)
         at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:440)
         ... 4 more
    Why?
    Please help me!
    Thanks!

    Sorry!
    Above:
    Hello h = (Hello) ctx.lookup("java:comp/env/ejb/test/Hello");
    The above (Hello h = (Hello) ctx.lookup("java:comp/env/ejb/test/Hello");) have deleted in right code.

  • Custom Object Persistance (non-EJB)

    Hello friends.
    Could you please give examples, or links to resources, on implementing object persistance where database is the store. EJB is not considered.
    It would be great if you could share your experience.
    So far I found out two desing patterns for implementing object persistance, that can be found on www.javaworld.com (under Persistance).
    The idea expressed in the articles is that every Business Object has a corresponding Data Access Object, that handles all persistance tasks (namely writing, reading from database).
    Has anyone implemented it? What are the alternatives?
    Hope to hear everyone.

    It seems that managing connection is a difficult
    issue. Don't you think that factory has to accomplish
    connection management, and DAOs have to have a
    reference to factory, and call factory's
    getConnection() and closeConnection() methods, and
    factory will either open and close them, or return
    them to pool.You've got a point. Managing connections in a non-EJB environment is the difficult issue. (With EJBs and DataSources this is piece of cake.)
    When performance is not the issue, opening and closing a new connection for each db-operation should suffice. But when performance is the issue, things get a little more complex.
    A naive way of increasing performance is to have DAOs cache connection objects. The only problem with this is that you would then require one database connection for one DAO. For some applications this would not be a problem, but as a generic solution this is really, really bad.
    As for letting the DAOFactory handle connections I am not convinced. I would rather design and implement a separate connection pool (or find an open source / commercial one) than complicate my factories. After all, as the class name states, a UserDAOFactory is a user data access object factory, not a connection pool or a connection manager. Low coupling, high cohesion, eh? ;)
    One way of implementing a connection pool I thought of is to write a ConnectionPool class and a PoolableConnection class (or something like that) that implements java.sql.Connection and acts as a wrapper for the real connection. Closing one of these connection would not actually close the connection, but would just return it to the pool.
    What is cool about this approach is that you do not have to have your clients call some weird getConnectionFromPool() and returnConnectionToPool(...) methods, they would simply call ConnectionPool.getConnection() and when they are done with the connection they close it, just like a normal java.sql.Connection.
    I am oversimplyfying things, of course. But in principle this is precisely what is done in J2EE, just use a "DataSource" for a "ConnectionPool".
    Writing code for getting and closing connections in every dao seems a
    bit of overhead.It definetely is. With EJBs I used an abstract DAO class to implement connection retrieval (and to hide JNDI-code and cache DataSources) and had all my DAOs extended this class.
    Also, from your experience, you never used the generic
    CRUD methods? It seems that all your daos have
    specific methods, such as loadByUsername.
    The article in javaworld get away from this by using
    complicating mapping techniques. Have you ever used
    generic CRUD, or you found it usefull to have specific
    methods?Yep, I have never done anything with CRUD. And all this generic framework stuff and mapping things seems a bit complicated. Perhaps I will have a closer look.

  • How to use UserTransaction in non-EJB code

    This is in a class that is called from within a Stateless Session bean. In this class, I'm trying to use a UserTransaction object that is created as follows (taken from Zuffoletto's book):
    ========================================
    env.put(Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.jndi.WLInitialContextFactory");
    ctx = new InitialContext(env);
    tx = (UserTransaction) ctx.lookup("javax.transaction.UserTransaction");
    ========================================
    However, when I call tx.begin(), it throws an exception as follows:
    ========================================
    javax.transaction.NotSupportedException: Another transaction is associated with this thread. Existing transaction Name=[EJB com.bea.wlw.runtime.core.bean.SyncDispatcherBean.invoke
    (com.bea.wlw.runtime.core.request.Request)],Xid=BEA1-001123C02690(16658514),Status=Ac
    tive,numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=13,seconds left=43187,activeThread=Thread[ExecuteThread: '12' for
    queue: 'weblogic.kernel.Default',5,Thread Group for Queue: 'weblogic.kernel.Default'],SCInfo[workshop+cgServer]=
    (state=active),properties=({weblogic.transaction.name=
    [EJB com.bea.wlw.runtime.core.bean.SyncDispatcherBean.invoke
    (com.bea.wlw.runtime.core.request.Request)]}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=
    (CoordinatorURL=cgServer+192.168.0.73:7001+workshop+t3+, XAResources={},NonXAResources={})])
    ========================================
    Any ideas/suggestions/hints??
    Why would this explicitly created tx, being used by one single call be colliding with an existing transaction?
    Thanks for your comments.

    Hello,
    As I understand, you would like to setup a watch folder which will be getting pdf files in arbitrary intervals. You then want each pdf to be converted to ps in a separate folder.
    You could achieve this with the help of a script by polling for pdf files present in the watch folder. When you find pdf files, convert them to ps, save the ps file in another folder and then move the pdf to another folder.
    In any case, once the process of conversion of pdf to ps is over, acroread will quit.
    There is no way to keep the acroread process running in background and convert pdfs as and when they are available.
    Please let me know if this answers your query.
    Regards,
    Rishi

  • Returning Non Serializable Objects

    Is it possible in anyway to return non serializable objects from the remote method of an EJB, for instance return a result set. Everytime i try, i get a CORBA marshalling exception, i tried to put the resultset in a serilized object such as an enumeration or vector but got the same error when retreiving it from the enumeration or vector. Help is needed and appreciated. Thanx.

    Is it possible in anyway to return non serializable objects from the remote method of an EJB, for instance return a result set. Everytime i try, i get a CORBA marshalling exception, i tried to put the resultset in a serilized object such as an enumeration or vector but got the same error when retreiving it from the enumeration or vector. Help is needed and appreciated. Thanx.

  • JTA/JTS for non-EJB & non-J2EE server used

    I have a standalone java program which calls methods on 2 java classes (c1, c2) These are Non-EJB/non-RMI/non-CORBA plain java classes.
    the method in c1 updates table t1 in database db1
    the method in c2 updates table t2 in database db2
    I would like to use JTA for conducting a 2PC based transaction. I know this can be done in an application/server or a J2EE container environment because they have built-in Transaction Managers (TM). and one just has to use JNDI to look up the UserTransaction object and then define the transaction boundaries. However, how do I all the above if I don't have access to a J2EE server and an EJB server?
    It seems like I would have to use a standalone Transaction Manager (not bundled with the app-server).

    Hi,
    My company has just released a (beta!) version of a generic java transaction manager. Although it offers some lightweight beans as standard development model, this does not have to be the case: the core idea is an extensible and very advanced transaction kernel. JTA comptable.
    This software is server-oriented: the transactional kernel (which also does recovery) startup and shutdown events trigger the start (initialization) and shutdown of your 'extension' classes. This is necessary because otherwise your resources will not be recoverable: if the transaction manager starts up, then it will first do recovery, and therefore your resources need to be available.
    You can ask for a beta version through our website:
    http://www.atomikos.com
    Note, however: we did not yet implement the XA DataSources. Rather, we have a kind of 'external' stored procedures that allow distributed transactions over regular JDBC connections. You would have to implement your solution along this line, or wait for the XA datasources.
    If there proves to be a lot of demand,
    we can of course speed up development on XA. It is not a very big effort.
    Best regards,
    Guy
    Guy Pardon ( [email protected] )
    Atomikos Software Technology: Transactioning the Net
    http://www.atomikos.com/

  • Calling non ejb from ejb using jndi lookup

    Is it possible to call a non ejb java object from an ejb using a jndi lookup?
    For example, we have a java class where main registers itself with our application server (JBoss 3.0.1). We have a test client that can use jndi to look up the object, but we can't get an ejb inside the application server to use the object.
    Are we trying to do the impossible? If my question is not clear, please let me know so I can try to clarify.
    Thanks

    JNDI uses factories to create objects.
    It's possible that JBoss has a Bean Factory which you can use to create your instance.
    Tomcat has a Bean factory in its JNDI implementation. I use it just as you have indicated.
    The JBoss documenation may help?
    Dave

  • Error while using "edit" transaction on Equipment Object - SAP Work manager on Syclo Agentry

    Hello Experts,
    I am trying to execute an edit transaction on Equipment object. I have currently called the edit transaction using a button on Equipment Details screen as follows.
    1) Created a transaction on Equipment object.
    P
    2) Properties have "EquipmentID".
    3) Config. under this property:
    4) the Update step under this transaction.
    5) the action which calls this transaction:
    6) Action steps:
    7) Action step to call the transaction:
    Apart from these settings, I have created the required screen set, required button, navigation, set up fields on the screen referring to the transaction and all other required settings.
    Now, while running the application, I am able to navigate and pass the field values from details screen to custom edit screen.
    While clicking on apply (green check button), it throws the following error:
    What can be missing here? Is it mandatory to create a rule on Key property of the transaction? As of now, no rule exists on the ID as it is an edit transaction.
    Any help will be greatly appreciated.

    Hi Steve,
    Thank you so much for your reply. along with these 3 steps, I also changed the action step to point it to equipment instead of "none" and it stopped throwing the error.
    However, I got an exception while executing the BAPI using stephandler.
    My source code looks as below.
    Steplet:
    public boolean execute() throws AgentryException {
        try{
    EquipmentEditStephandler handler = new EquipmentEditStephandler((com.syclo.sap.User)_user);
    handler.editEquipment();
        return true;
        catch(Throwable exception){
        throwExceptionToClient(exception);
        return false;
    StepHandler:
    public void editEquipment() throws Exception{
            CustEquipment[] array = null;
            CustEquipment custEquipObj = new CustEquipment();
            EquipmentEditBapi bapi = new EquipmentEditBapi(user, new GregorianCalendar());
            bapi.run(custEquipObj);
            bapi.processResults();
    The BAPI code to set parameters:
    public void setParameters(SAPObject obj) throws Exception
    super.setParameters(obj);
    try {
    Logger log = new Logger(_user, "FetchBAPI_Java_Class");
    //Pass Transaction Vales to BAPI_WRAPPER
    JCO.Structure jcoStructure = _imports.getStructure("IS_EQUI_ADDR");
    String City = user.getString("transaction.City");
    setValue(jcoStructure, log, "CITY", City);
    String Country = user.getString("transaction.Country");
    setValue(jcoStructure, log, "COUNTRY", Country);
    String Name2 = user.getString("transaction.Name2");
    setValue(jcoStructure, log, "NAME2", Name2);
    String EquipmentID = user.getString("transaction.EquipmentID");
    setValue(jcoStructure, log, "EQUIPMENTID", EquipmentID);
    catch (Exception e) {
    user.rethrowException(e, true);
    while executing, the data structure that reaches ECC, is blank.
    on the Java front, this exception is thrown:

  • EJB object factory

     

    Declare the factory class as a startup class. In the main() method, create a new initial context and bind a new instance of the factory class into the jndi tree under an agreed on name. Youi client code should look for the factory calss under the agreed on name.
    Hope that helps.
    Narendra Pasuparthy wrote:
    Hi Eduardo,
    Thanks for looking into my problem, I have been trying to do this thing for
    the last 2 weeks and you help comes as a new sign of life to me.
    Anyway i understand the problem better now, but i am still far away from
    having to solve it. you say something about adding the object factory to the
    JNDI tree
    What you can do is add your object factory to the jndi tree. Your >bean
    could look it up, etc.How can i do this, i presume that when you say jndi tree you ae referring to
    the JNDI tree provided by the weblogic server; right?
    If you can shed more light on how i can add my object factory to the JNDI
    tree and how i can look it up i would appreciate your help.
    Looking forward to hearing form you soon.
    Bye,
    Naren
    From: [email protected] (Eduardo Ceballos)
    To: narendra <[email protected]>
    Subject: Re: EJB object factory
    Date: Mon, 21 Aug 2000 08:42:34 -0700
    MIME-Version: 1.0
    Received: from [63.96.160.4] by hotmail.com (3.2) with ESMTP id
    MHotMailBB6A99B0002AD820F39D3F60A0049AF50; Mon Aug 21 08:45:56 2000
    Received: from san-francisco.beasys.com (san-francisco.beasys.com
    [192.168.9.10])by beamail.beasys.com (8.9.1b+Sun/8.9.1) with ESMTP id
    IAA08176for <[email protected]>; Mon, 21 Aug 2000 08:45:54 -0700 (PDT)
    Received: from ashbury.weblogic.com (ashbury.beasys.com [172.17.8.3])by
    san-francisco.beasys.com (8.9.1b+Sun/8.9.1) with ESMTP id IAA13707for
    <[email protected]>; Mon, 21 Aug 2000 08:46:05 -0700 (PDT)
    Received: from weblogic.com ([192.168.11.197]) by ashbury.weblogic.com
    (Post.Office MTA v3.5.3 release 223 ID# 0-53833U200L200S0V35)
    with ESMTP id com for <[email protected]>; Mon, 21 Aug 2000
    09:03:01 -0700
    From [email protected] Mon Aug 21 08:47:42 2000
    Message-ID: <[email protected]>
    X-Mailer: Mozilla 4.73 [en] (WinNT; I)
    X-Accept-Language: en
    Newsgroups: weblogic.developer.interest.rmi-iiop
    References: <[email protected]>
    There is no provision for a generic object factory in the public api, and
    none is supported.
    What you can do is add your object factory to the jndi tree. Your bean
    could look it up, etc. I would urge you to
    make sure that there are appropriate acls on the factory, for obvious
    security reasons.
    narendra wrote:
    My problem is that i want to invoke a service running on another APPserver form an EJB bean,
    the other app server provides some client APIwhich i can use and invokethe service. Due to the
    security restriction in EJB container i was not able to do this, theapproach i am thinking
    about is establishing an object factory to create an object of theother app server client
    class and use that from the bean.
    the weblogic server seems to handle,"javax.sql.DataSource,""javax.jms.QueueConnectionFactory,"
    "javax.jms.TopicConnectionFactory" or "java.net.URL" how can it supportgeneric object factories, since I
    have a obect factory that does not construct any of the objects usingthe weblogic supported object
    factory.
    Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

  • Exporting a PDF so that non-printing objects show but don't print?

    I've just spent a couple hours trying to find an answer to this in the forums, but can't. (The most frustrating was one thread where the original poster said, "I found the answer here," and gave a link that went right back to the main page of the forum. Argh.)
    Okay, anyway ... what I need to do?
    I've got a document with graphics that I want to show up on the pdf when I export it, but that--if a reader prints it--don't print.
    The document looks like a 3-ring binder with "tabs" for each section--just like the real thing. But the rings and tabs go right up to the edge and look terrible when printed, and whose printer can print right at the edge of the paper, anyway? But the tabs work as navigational links while looking a the pdf, and the rings just make it look cool, so I WANT them in the pdf.
    I've tried:
    Turning the entire layer into a non-printing layer (one that "shows" but does not "print"). But when I export it to a pdf, it doesn't show up on the pdf to look at OR to print. So that doesn't work.
    Using the Attribute option to turn each object into a non-printing object, but so far as I can tell, that doesn't do a thing, because they still print from the pdf.
    Exporting with the "create pdf layers" turned on and off. Exporting with the "include non-printing items" turned on and off.
    Basically, I've pretty much tried everything. I gather, from browsing the forums, that this is POSSIBLE, but can't for the life of me figure out what to do to make it happen. (Short of hiding the tabs' layer and creating an entirely separate PDF and calling it "Print version" which is not exactly what I want to do!)
    Is there maybe some magical combination of ons and offs I need to select to make this whole thing work?
    (And, seriously, am I the only person who thinks the supporting documentation is just dreadful? I can't find anything in any of the Help screens that even mentions this, much less explains how to do it.)
    Any help is appreciated!!
    --Deb

    Partial progress...
    The button option (and, I'm using CS3, by the way--I should have said that originally) does work in terms of showing on the pdf but not printing.
    The problem is that it messes up the way the document looks.
    I said it's designed to look like a 3-ring binder with tab-dividers between each section, and each tab has a hyperlink to take you to that section.
    Now, when you've got a paper binder in front of you, the tabs stay in the same sequence, and often overlap a bit (which mine do). The problem I'm having, having turned all of them into buttons, is that when you click on any of them, it "jumps" to the front of the row, so that they don't "flow" in the correct sequence.
    Am I explaining this well? You know, the top-most tab is at the top of the pile, the next one is always below it and above the third one, and so on ... you never see the second tab on TOP of the first one. I'm trying to get the document to act as close to a hard-copy binder as I can, and it did ... except the buttons keep jostling each other for attention...
    I'm going to go play around with this some more now, but ... any suggestions? (Other than restructuring my tabs so that they don't overlap at all?)

  • How to start and finish a transaction using EJB 3.0 in JDeveloper

    Hello everybody!
    Does anybody can explain how to start and finish a transaction using EJB 3.0. I need to start a transaction insert some information in some tables and if everything was fine commit the information.
    I put the annotation @TransactionManagement(TransactionManagementType.BEAN) in my session bean and @Resource SessionContext ejbContext; but I don't what anything else I have to do.
    Any help will be appreciate.

    I tryied to use in the client the statement EntityTransaction transaction = myBean.getTransact(); but I receive the EJBException: Cannot use resource level transactions with a container managed EntityManager
    I just need to start a transaction something like this: transaction.begin(); and finish the transaction, something like this: transaction.commit();
    Does anybody can help?

  • Preflight Report lists Non-Opaque Object in InD CS3?

    In the preflight report there is mention of Non-Opaque objects. Why is this bad, how can I recognize that this is an issue and how do I fix the problem. I researched a bit and found suggestions to make separate layers for the text/lines and images with the text and lines above the image. Then when the page is flattened in the PDF process, the resolution should be better. I still do not know how to recognize that there would be an issue. Please help.

    Best practice is to keep the transparency live for as long as possible, ideally flattening in the RIP at output, but there are still a lot of printers whose equipment is outdated (or their thinking), and for them it will be necessary to provide a flattened PDF for printing.
    If your printer is flagging this as a problem, it could be he's one of the dinosaurs, and you should either go with the flow or find another printer who lives in this century.

  • How to Compress non-image object in Acrobat 9 Pro/Acrobat X Pro

    Hi,
    I am newbie and don't know where to post this question exactly. Forgive me if I am incorrect.
    How can we compress "non-image object" in "Acrobat 9 Pro/Acrobat X Pro"
    Thanks in advance for your suggestion & help.
    Thanks & Regards,
    Raja. S

    Thanks for the reply.
    I want to compress the "non-image" objects (i.e pagragraph contents and not images) for the entire PDF file in the "Acrobat pro X" application manually and not with the tool.
    Please share me if you have any idea on this.
    Thanks,
    Raja. S

  • Weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Cannot export non clusterable object with jndiName ]

    Hi,
    I am trying to deploy an EJB module have 4-5 EJB's on weblogic 8.1 through JBuilder.
    I am getting following error during deployment.
    Exception:weblogic.management.ApplicationException: prepare failed for Sample.jar
         Module: Sample.jar     Error: Exception preparing module: EJBModule(Sample.jar,status=NEW)
    Unable to deploy EJB: SampleBean from Sample.jar:
    weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Cannot export non
    clusterable object with jndiName ]
         at weblogic.utils.Debug.assertion(Debug.java:57)
         at weblogic.rmi.extensions.server.ServerHelper.exportObject(ServerHelper.java:272)
         at weblogic.ejb20.internal.BaseEJBHome.setup(BaseEJBHome.java:95)
         at weblogic.ejb20.internal.StatelessEJBHome.setup(StatelessEJBHome.java:67)
         at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.prepare(ClientDrivenBeanInfoImpl.java:979)
         at weblogic.ejb20.deployer.EJBDeployer.setupBeanInfos(EJBDeployer.java:983)
         at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1283)
         at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:477)
         at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:2962)
         at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1534)
         at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1188)
         at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1031)
         at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2602)
         at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2552)
         at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2474)
         at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:798)
         at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:507)
         at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:465)
         at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    Any clue?, what its talking about?
    Thanks
    Naresh

    Hi,
    I am trying to deploy an EJB module have 4-5 EJB's on weblogic 8.1 through JBuilder.
    I am getting following error during deployment.
    Exception:weblogic.management.ApplicationException: prepare failed for Sample.jar
         Module: Sample.jar     Error: Exception preparing module: EJBModule(Sample.jar,status=NEW)
    Unable to deploy EJB: SampleBean from Sample.jar:
    weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Cannot export non
    clusterable object with jndiName ]
         at weblogic.utils.Debug.assertion(Debug.java:57)
         at weblogic.rmi.extensions.server.ServerHelper.exportObject(ServerHelper.java:272)
         at weblogic.ejb20.internal.BaseEJBHome.setup(BaseEJBHome.java:95)
         at weblogic.ejb20.internal.StatelessEJBHome.setup(StatelessEJBHome.java:67)
         at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.prepare(ClientDrivenBeanInfoImpl.java:979)
         at weblogic.ejb20.deployer.EJBDeployer.setupBeanInfos(EJBDeployer.java:983)
         at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1283)
         at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:477)
         at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:2962)
         at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1534)
         at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1188)
         at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1031)
         at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2602)
         at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2552)
         at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2474)
         at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:798)
         at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:507)
         at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:465)
         at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    Any clue?, what its talking about?
    Thanks
    Naresh

  • Translation of non-ABAP objects

    Hello colleagues,
    I know that SAP provides special Translation Environment for translation of ABAP-objects (TX SE63 etc.). But what about translation of non-ABAP objects? Could be SE63 suitable for this task or it can be performed only via translation xlf files (SAP NW Developer Studion and so on)?
    Regards,
    Arkadiy

    Hi Prakash,
    firstly thank you for you reply.
    Secondly I know about three main categories of non-ABAP objects but I haven't an information about what is it certainly? So there are at least two questions in my opinion:
    1) Could it be suitable to translate Java objects or WebDyn Pro Java objects?
    2) If yes, how it can be suitable for it? Because I know how I can translate Java or WebDynpro via NW Developer Studio, but I don't know how it can be possible via SE63.
    Really I can't find any helpful information about translation non-ABAP objects via SE63.
    Could anyone help me in my questions?
    Regards,
    Arkadiy

Maybe you are looking for