Jboss4/ejb

hi experts,
i did not know about ejb and jboss server. my question somewhat sounding silly. and somewhat blind.
kindly help me.
but my client requirement,
by using jboss 4 with ejb3.0, can we send sms(messaging) ?. in jdeveloper 11g r1
if yes please guide me with douments and sample demos. and some links.
see let us watch an example make it some more clear..
eg1: if my client, make any service request for customization of my product. he will make (Service request No.) SR no against me n my product. and that SR no and details. sent to my mobile no.
eg2: take an another real time example.if your salary is created means. you got a message. you salary is credited. and its amount.
eg3: take another real time example.if you lost ur gmail account password means. you simply give lost password options.
redirect to the page, in that enter our mobile number. immdeitaly we got some code. with that we can get into account.
ok. with all these example. u had watch out.
our look. our point is same. sending sms.
see my eg1 is my exact requiement.
i hope u all understud.
sorry : for the late editing.
Edited by: Erp on Oct 19, 2011 6:23 AM
Edited by: Erp on Oct 19, 2011 6:39 AM

thanks for response,
don't mix all and resolve one by one
just am leav out just an example. note: not all the example are not my requirement.
my need
by using jboss 4 with ejb3.0, can we send sms(messaging) ?. in jdeveloper 11g r1
eg1: if my client, make any service request for customization of my product. he will make (Service request No.) SR no against me n my product. and that SR no and details. sent to my mobile no.
that statement which i highlighted. i did not get you.
where am wrong. i did know about these ejb/jboss environment. so please correct.
which is the correct way.
Edited by: Erp on Oct 19, 2011 6:39 AM

Similar Messages

  • Deploying jdeveloper's jsf toplink ejb application to jboss4.0.4

    hi java/j2ee developers,
    we developed a application using jdeveloper ide using jsf,toplink and ejb technologies, when we deploying this application to jboss4.0.4 application server we are getting the following exception
    org.jboss.deployment.DeploymentException: Failed to parse WEB-INF/web.xml; - nested throwable: (org.jboss.deployment.DeploymentException: expected one local-home tag)
    at org.jboss.web.AbstractWebContainer.parseMetaData(AbstractWebContainer.java:749)
    at org.jboss.web.AbstractWebContainer.init(AbstractWebContainer.java:356)
    if anybody knows how to solv e this one, please give us the reply as soon as possible,Thanks In Advance.we are waiting for your kind information.Thank you once again.

    Basically I started to develop this system inside Oracle AS and then when it came time to passing a request to a new page, it crapped out on me on the App. Server. So instead of trying to fix the problem there and then I continued to develop outside Portal and inside Jdeveloper. After a week or two once all my stuff worked perfectly I try and take it back into Portal but only the first JSP of all my Portlets would show up, because as soon as I would submit a form and the action directed me to a new page and Portal would be lost/confused. Obviously I shouldn't have done it that way but none the less...
    So now I'm reading through the documentation you pointed me towards and it seems I have to qualify my parameters and then "attach" them to the url which the form will pass to the actioned page. I'm importing numerous classes (...urlUtils, etc) in order to qualify the parameters and then build this url without affecting any parameters currently present that my portlet does not own.
    What I'm rambling towards here is all this separation of logic and presentation and the whole nine, implies different people can develop different parts of a 'system' mostly independant of one another...so in my situation I shouldn't in huge trouble yet, since underlying everything is a working system. My issue is with oracle and the App Server. If I take my code which works great outside of the App. Server and I fully qualify parameters and make sure my form actions are constructed using the UrlUtils in order to fully qualify them as well, and then I make sure page parameters are mapped to the proper portlet parameter values....should my system work on the App Server (assuming everything is done properly)....or am I still missing something.

  • Global env-entry JNDI variables space for same ejb-jar.xml file

    [Software]
    jboss4.0.5
    jdk 1.5
    [Problem]
    Is there any global <env-entry> tag for a Single EJB Module. Is there any way by which the JNDI variable can be accessed by all the modules except by binding the variables in the JNDI explixity in the code
    Thanks in advance
    CSJakharia

    Unfortunately not. The EJB specification has always scoped the component environment
    (java:comp/env) as a private environment for each EJB. The advantage is you can
    assign entries within each bean easily without worrying about clashing with names selected
    for other beans in the ejb-jar. That eases the process of assembling beans developed
    separately into one ejb-jar since there is no possibility that their component environments
    will clash.
    However, the downside is just what you're pointing out, which is that in many cases
    developers prefer to define a single dependency that is shared among all the
    beans in the ejb module. That is the behavior of the component environment in a
    web application.
    We'll be looking into ways to simplify this for ejbs in a future revision of the specification.
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • EJB not bound Exception

    Hi All,
    Any body can help me to Run my first EJB. I am getting Name not bound error. I thing it is JNDI error. I generate the classes and interfaces using Xdoclet.
    I am using eclipse3.1, jboss4
    Please see the entry in ejb-jar.xml
    <entity >
    <description><![CDATA[Description for Simple]]></description>
    <display-name>Name for Simple</display-name>
    <ejb-name>Simple</ejb-name>
    <local-home>com.interfaces.SimpleLocalHome</local-home>
    <local>com.interfaces.SimpleLocal</local>
    <ejb-class>com.ejb.SimpleCMP</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>java.lang.String</prim-key-class>
    <reentrant>False</reentrant>
    <cmp-version>2.x</cmp-version>
    <abstract-schema-name>Simple</abstract-schema-name>
    <cmp-field >
    <description><![CDATA[]]></description>
    <field-name>id</field-name>
    </cmp-field>
    <cmp-field >
    <description><![CDATA[]]></description>
    <field-name>name</field-name>
    </cmp-field>
    <primkey-field>id</primkey-field>
    </entity>
    Please see the entry in jboss.xml file
    <entity>
    <ejb-name>Simple</ejb-name>
    <local-jndi-name>ejb/SimpleLocal</local-jndi-name>
    <method-attributes>
    </method-attributes>
    </entity>
    When i do lookup with "ejb/SimpleLocal" name then It gives me Not Bound error.
    Please help me to solve this problem.
    Thanks in advance
    Message was edited by:
    raviadha

    hi
    Here is my client
    HelloClient
    import javax.naming.*;
    import javax.ejb.*;
    import javax.rmi.*;
    public class HelloClient
    public static void main(String [] args)
    try{
    InitialContext ctx=new InitialContext();
    Object obj=ctx.lookup("HelloEJB");
    HelloHome home=(HelloHome)PortableRemoteObject.narrow(obj, HelloHome.class);
    Integer id=new Integer(Integer.parseInt(args[0]));
    Hello h=home.create(id,args[1]);
    }catch(Exception e)
    System.out.println(e);
    ejb-jar.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
         "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
    <ejb-jar>
    <enterprise-beans>
    <entity>
    <ejb-name>HelloEJB</ejb-name>
    <local-home>HelloHome</local-home>
    <local>Hello</local>
    <ejb-class>HelloBean</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>java.lang.Integer</prim-key-class>
    <reentrant>False</reentrant>
    <abstract-schema-name>HelloAA</abstract-schema-name>
    <cmp-field>
    <field-name>helloId</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>helloName</field-name>
    </cmp-field>
    <primkey-field>helloId</primkey-field>
    </entity>
    </enterprise-beans>
    </ejb-jar>

  • EJB Vs JSP/POJO/Servlets, etc

    I'm familiar with several J2EE technologies and decided to start learning some design patterns. EJB comes up a lot in the business tier, so I've been looking at more info about them.
    What I can't find a clear answer on at the moment is why exactly you would choose to use them over existing features. The ads/disads seem to be about half and half, and the ads are mainly from a development perspective (although they make apps more complicated).
    So, does EJB do anything to improve scalability and performance in a considerable way as compared to JSP, POJO, etc, or is it mainly for increased decoupling of tiers and subsequent better maintenance and reusibility?

    Technically, the answer is that EJB does not add anything that cannot be done with regular business objects...
    The difference is how easy it is to do the things you need.
    With EJB before EJB3 there is a lot more effort that goes into using the technology, this is why people often will use regular business objects... they may only need one or two of the things EJBs bring to the table, so the pain of EJBs is not worth the gain.
    EJB3 is a lot easier to implement (than previous EJB specifications) so we should start to see people using this technology more.
    When you are asking about EJB vs POJO the question you need to ask yourself first is: have we decided how the application will be deployed?
    If that decision has been made, then you will be able to know what flavour of EJB is available (if at all) on your application server.
    e.g. if it will be deployed on Tomcat => no EJBs at all
    if it will be deployed on Websphere => (at the moment) EJBs but not EJB3 are available
    if it will be deployed on Glassfish or JBoss5 (or possibly some versions of JBoss4) => EJB3 is available.
    Where I see EJBs fitting into the MVC application is in the Model layer, i.e. they provide a means of abstracting your model so that it can be expressed in terms of business methods, etc. This can simplify the controller. But again, it is nothing that cannot be done with regular POJOs.

  • Jrockit crash on opteron, centos4, jboss4

    Hi,
    This is my first message in this group and I am not even an active user of JRockit. I have just given JRockit a try for a production application of mine and although running parts of the application correctly, it just gives away Illegal Memory Access error and crushes jvm at my first access to any CMP create or findBy... method.
    I have 2 different platforms with the same jrockit and jboss versions. One is opteron 275, centos4, jboss4; the other is pentium m, win xp 2, jboss4. Jrockit and jboss versions are the same at these two different platforms. JRockit runs my application fine in the latter platform, but fails at some point in the first one. It is also worth noting the application runs fine on both platforms when using corresponding Sun JVMs instead of JRockit R26.4.0. The error also existed in the same manner at version R26.3.0.
    Java stack trace begin (at my proprieraty code) right after a simple and successful LocalHome lookup of a CMP 2.0 entity bean and calling ejbCreate method of the CMP. The java stack goes into JBoss internals afterwards, where, as long as I understood correctly, to a point where internal JBoss entity locking mechanism come into play.
    Here, I attach the produced dump file contents. Sorry, I don't know where to enter a bug report. I hope someone can shed a light on this and I am ready to further investigate the situation on your guidance.
    Best Regards,
    Gokhan Demir.
    Here is the produced dump file:
    ===== BEGIN DUMP =============================================================
    JRockit dump produced after 0 days, 00:01:20 on Fri Jul 7 04:17:57 2006
    Additional information is available in:
    /opt/jboss-4.0.4.GA/bin/jrockit.20624.dump
    No snapshot file (core dump) will be created because core dumps have been
    disabled. To enable core dumping, try "ulimit -c unlimited"
    before starting JRockit again.
    If you see this dump, please open a support case with BEA and
    supply as much information as you can on your system setup and
    the program you were running. You can also search for solutions
    to your problem at http://forums.bea.com in
    the forum jrockit.developer.interest.general.
    Error Message: Illegal memory access. [54]
    Signal info : si_signo=11, si_code=1 si_addr=0x22a9f68500
    Version : BEA JRockit(R) R26.4.0-63-63688-1.5.0_06-20060626-2259-linux-x86_64
    GC : System optimized over throughput (initial strategy singleparpar)
    : GC strategy for GC 0 was singleparpar
    : GC strategy for GC 1 was singleparpar
    : GC strategy for GC 2 was singleparpar
    : GC strategy for GC 3 was singleparpar
    : mmHeap->data = 0x2a959d9000, mmHeap->top = 0x2ad59d9000
    : mmStartCompaction = 0x2ac99d9000, mmEndCompaction = 0x2acd9d9000
    CPU : AMD Opteron/Athlon64 SSE SSE2 EM64T
    Number CPUs : 2
    Tot Phys Mem : 4049395712 (3861 MB)
    OS version : CentOS release 4.3 (Final)
    Linux version 2.6.9-34.ELsmp ([email protected]) (gcc version 3.4.5 20051201 (Red Hat 3.4.5-2)) #1 SMP Thu Mar 9 06:23:23 GMT 2006 (x86_64)
    Thread System: NPTL
    State : JVM is running (Main thread has finished)
    Command Line : -server -Xms1G -Xmx1G -Duser.timezone=UTC -Djava.rmi.server.hostname=satiyoruz.biz -Djava.rmi.server.useLocalHostname=false -Djava.awt.headles
    s=true -Dprogram.name=run.sh -Djava.endorsed.dirs=/opt/jboss/lib/endorsed org.jboss.Main -c default
    java.home : /usr/java/jrockit-R26.4.0-jdk1.5.0_06/jre
    j.class.path : /opt/jboss/bin/run.jar:/usr/java/jdk/lib/tools.jar
    j.lib.path : /usr/java/jrockit-R26.4.0-jdk1.5.0_06/jre/lib/amd64/jrockit:/usr/java/jrockit-R26.4.0-jdk1.5.0_06/jre/lib/amd64:/usr/java/jrockit-R26.4.0-jdk1
    .5.0_06/jre/../lib/amd64:/usr/local/jmagick/lib
    JAVA_HOME : /usr/java/jdk
    JAVAOPTIONS: <not set>
    LD_LIBRARY_PATH: /usr/java/jrockit-R26.4.0-jdk1.5.0_06/jre/lib/amd64/jrockit:/usr/java/jrockit-R26.4.0-jdk1.5.0_06/jre/lib/amd64:/usr/java/jrockit-R26.4.0-jd
    k1.5.0_06/jre/../lib/amd64:/usr/local/jmagick/lib
    LD_ASSUME_KERNEL: <not set>
    C Heap : Good; no memory allocations have failed
    StackOverFlow: 0 StackOverFlowErrors have occured
    OutOfMemory : 0 OutOfMemoryErrors have occured
    Registers (from ThreadContext: 0x409474f0 / OS context: 0x409475b0):
    rax = ffffffff0000000e rcx = 00000000c72a7b98
    rdx = 00000000fe944317 rbx = 00000000c72a7b8a
    rsp = 00000000409479f0 rbp = 0000002a9dc8efe8
    rsi = 0000002aa9f68480 rdi = 000000000000000a
    r8 = 0000000000000002 r9 = 0000000000000001
    r10 = 0000002b1b25c740 r11 = 0000002b1b25c740
    r12 = 00000000409478f0 r13 = 0000000040947928
    r14 = 0000002b1b25cb40 r15 = 0000002b1b25c740
    cs = 0000000000007730 fs = 0000000400000000
    gs = 0004000000000000
    rip = 0000002ad87a9dae flags = 0000000000000212
    Stack:
    (* marks the word pointed to by the stack pointer)
    00000000409479f0: 0000002a9dca18b8* 0000002ad87891c5 0000002a9dc8efe8 0000002ad87a105f
    0000000040947a10: 0000002aa9f666d8 0000002aa9835640 0000002a9dc8efe8 0000002aa9f68360
    0000000040947a30: 0000002a9dc8efe8 0000002a9dc8efe8 0000002a9db90438 0000002ad87a0dc7
    0000000040947a50: 0000002aa019c858 0000002aaa0d6e88 0000002a9dc8fb60 0000002a9e557b80
    0000000040947a70: 0000002aa9f68360 0000002aaa0d5c78 0000002aaa0d5c78 0000002ad872b614
    0000000040947a90: 0000002a9dc8efe8 0000002aaa0d5c78 0000002a9dc8fb60 0000002a9dc8fb60
    0000000040947ab0: 0000002a9dc8efe8 0000002ad872a8f6 0000002aaa0d4180 0000002ad87a02e2
    0000000040947ad0: 0000002a9dc8efe8 0000002aaa0a0f60 0000002a9dc8fb60 0000002aa9f67ee0
    0000000040947af0: 0000000000000000 0000000000000000 0000002a9e557b80 0000002a9dc8efe8
    0000000040947b10: 0000002a9dc8efe8 0000002ad87a01b6 0000002aaa0d1a48 0000002ad87a00de
    0000000040947b30: 0000002aaa0d2778 0000002ad872a826 0000002a00000001 0000002a9dc8efe8
    0000000040947b50: 0000002aaa0d1a48 0000002ad872a7ea 0000002abc874658 0000002a9749ae40
    0000000040947b70: 0000002a9e557b80 0000002ad872a087 0000002aaa0d0c88 0000002ac0f44160
    0000000040947b90: 0000002a9b957578 0000002a00000001 0000002a9749ae40 0000002ad8733b03
    0000000040947bb0: 0000002a9e557b80 0000002a9dc8efe8 0000002a9749ae40 0000002a9749ae40
    0000000040947bd0: 0000002a9e557b80 0000002ad87194c9 0000002abc874b78 0000002aaa0d0c88
    0000000040947bf0: 0000002a9e557b80 0000002a9dc8efe8 0000002a00000003 0000002a9749ae40
    0000000040947c10: 0000002a9e557b80 0000000000000000 0000000000000000 0000002a00000000
    0000000040947c30: 0000000000000000 0000002a9e557b80 0000002a9dc8efe8 0000002aaa0cff90
    0000000040947c50: 0000002a9dc8efe8 0000002ad8719062 0000002aaa0d0c88 0000002a9dc8efe8
    0000000040947c70: 0000002a9e557b80 0000002a00000000 0000002a9dc8efe8 0000002ad8716dae
    0000000040947c90: 0000002aaa0cf2a0 0000002a9dc8efe8 0000002aaa0cf2a0 0000002ad8716c64
    0000000040947cb0: 0000002aaa0cf2a0 0000002a9dc8efe8 0000002a9dc8f178 0000002a00000000
    0000000040947cd0: 0000002ac1090c78 0000000000000000 0000002a00000009 0000002aaa0ce5f0
    0000000040947cf0: 0000002a9dc8efe8 0000002aaa0ce5f0 0000002a9dc8efe8 0000002ad8716666
    0000000040947d10: 0000000000000000 0000000000000000 0000002a9bdd3130 0000002aaa0a0f60
    0000000040947d30: 0000002a9dc8efe8 0000002ad879fed6 0000002aa98246e0 0000002a9dc8efe8
    0000000040947d50: 0000002a9749ae40 0000002ad87158a6 0000002a9ccd4720 0000002aaa0cac78
    0000000040947d70: 0000002a00000000 0000002aaa0a0f60 0000002aa98246e0 0000010c468ffe60
    0000000040947d90: 0000002a9dc8efe8 0000002a9749ae40 0000002a9e557b80 0000002a9dc8efe8
    0000000040947db0: 0000002aaa0a11e8 0000002ad8714f09 0000002a9e557b80 0000002ac04bf448
    0000000040947dd0: 0000002ac063eea0 0000002aa99e9d28 027ee89000000001 0000002ac04bf448
    0000000040947df0: 0000002a9e557b80 0000002aa98246e0 0000002a9dc8efd0 0000002ac0f3c248
    0000000040947e10: 0000002a9dc8e960 0000002aa9817b18 0000002a9dc8efd0 0000002ad8714c4f
    0000000040947e30: 0000002a9dc8efd0 0000002aa9817b18 0000002aa98246e0 0000002a9dc8efd0
    0000000040947e50: 0000002aa9824818 0000002aa9824818 0000002aa9817b18 0000002ad87adc92
    0000000040947e70: 0000002aa98246e0 0000002a9dc8e960 0000002aa9824818 0000002a9dc8e960
    0000000040947e90: 0000002a9e0285f0 0000002ad879fb7f 0000002a9e42c500 0000002a9e4407a0
    0000000040947eb0: 0000002a9e43de48 0000002a95f454a8 0000002a9e4407c0 0000002a9e4407b0
    0000000040947ed0: 0000000040947f20 00000000409481b8 0000000040948148 0000002ad879fd1b
    0000000040947ef0: 0000002a9e4407c0 0000002a95f454a8 0000002a9e4407d0 00000000409481b8
    0000000040947f10: 0000002b1b25c740 0000000040948148 0000000040947ff0 0000002ad879f920
    0000000040947f30: 0000000000000000 0000000000000006 0000000000000001 0000000040947ff0
    0000000040947f50: 0000002b1b25c9d0 0000000040947f70 0000002b1b2bc590 0000002a955e4a03
    0000000040947f70: 0000000040948090 0000002a956cffe4 00000000409480c0 0000000102771690
    0000000040947f90: 0000002b1b3daa68 0000000040948150 00000000409481e0 0000002b1b25fb00
    0000000040947fb0: 0000000002771690 0000002b1b25c9d0 000000000276c8c0 0000000002771690
    0000000040947fd0: 0000000000000000 00000000409480c0 0000000000000001 0000000000000000
    0000000040947ff0: 00000000409481e0 0000002b1b25cb08 0000002b1b25cb10 0000002b1b25cb18
    0000000040948010: 0000002b1b25cb20 0000002b1b25cb28 0000002b1b25cb30 00000000409481e0
    0000000040948030: 0000002b1b3daa68 0000000104000003 0000000700000001 0000000700000000
    0000000040948050: 0000002b00000000 00000000409480c0 0277712000000000 00000000409480c0
    0000000040948070: 0000000002771690 0000002b1b25c9d0 00000000409481e0 0000002a956c1baf
    0000000040948090: 0000000040948110 0000002a956c17ff 0000002a956c1baf 0000000040948148
    00000000409480b0: 0000000000000000 0000000040948150 0000002b1b25fb00 0000000040948ef0
    00000000409480d0: 0000002a00000000 0000002a9b2e4b40 0000002a9e438e90 0000000002771690
    00000000409480f0: 00000000409481e0 0000000000000000 0000000000000001 0000002b1b25c9d0
    0000000040948110: 0000000040948190 0000002a956c1c87 0000002a00000000 0000000040948148
    0000000040948130: 0000002a9e5582b0 0000000002771690 0000002a9e5582b0 0000002b1b25cb38
    0000000040948150: 00000000409481e8 0000002b1b25c9d0 0000002a9e5582f0 0000002a9e557f88
    0000000040948170: 00000000409481b0 00000000409481e8 0000002a9e42c500 0000002b1b25c740
    0000000040948190: 00000000409481a0 0000002a956c9378 0000002a9e42c500 0000002ad81cd881
    00000000409481b0: 0000002a9e5582f0 000000000069ab60 0000002ad81cd87c 0000002b1b25cb08
    00000000409481d0: 00000000409481b0 0000002a9e557f88 0000002a9e42c500 0000002a9e43b898
    Code:
    (* marks the word pointed to by the instruction pointer)
    0000002ad87a9ca8: 273c8b480000002b a256e7e826343948 343948243c8b48ff 3948ffa496cae826
    0000002ad87a9cc8: 48ffa25661e82634 004d8bee8948f789 8948ffa78972e890 4890ffa2878ae8de
    0000002ad87a9ce8: 4828246c8b48f389 250c8b00458bee89 28408b48024d4c64 482050ffc8048b48
    0000002ad87a9d08: 8bee894820247c8b 4d4c64250c8b0045 048b4828408b4802 8bee89485850ffc8
    0000002ad87a9d28: 4d4c64250c8b0045 048b4828408b4802 90de89482850ffc8 cccc90ffa2872be8
    0000002ad87a9d48: cccccccccccccccc 68768b4808ec8348 ccccccccccccc359 b0b68b4808ec8348
    0000002ad87a9d68: ccccccc359000000 8bfe8948f3894853 de8948e851ff270c 666667b8c189c389
    0000002ad87a9d88: 04fac1c889e9f766 89d889c2011fe8c1 c085c82928c96bd1 f74808768b48137f
    0000002ad87a9da8: 8b481776084639d8* 768b48c35b10c674 8b480d7608463908 14c6e8c35b10c674
    0000002ad87a9dc8: ff9f14c0e890ff9f cccccccccccccc90 cccccccccccccccc 894808ec83485553
    0000002ad87a9de8: 18768b48fb8948f5 343948024d1e20b8 8948ffa00832e826 74f68548f38948df
    0000002ad87a9e08: 64250c8b23048b1c c120408b48024d4c e03d08048b4803e1 de89485675024d4b
    0000002ad87a9e28: 4c64250c8b23048b 8b4828408b48024d 28458b0850ffc804 148b230c8bde8948
    0000002ad87a9e48: 498b48024d4c6425 1051ffd10c8b4828 8bde8948107d8b48 4d4c64250c8b2304
    0000002ad87a9e68: 048b4828408b4802 59de89481850ffc8 e0ba23048bc35b5d ff9f1058e8024d4b
    0000002ad87a9e88: cccccccccccccc90 18b808ec83485553 ff9f6a10e8024d8e f58948c35b5d5990
    Loaded modules:
    (* denotes the module causing the exception)
    0000000000400000-00000000004117cb /usr/java/jrockit-R26.4.0-jdk1.5.0_06/bin/java
    0000003592500000-000000359250f339 /lib64/tls/libpthread.so.0
    0000003591d00000-0000003591d844fb /lib64/tls/libm.so.6
    0000003591b00000-0000003591b01c73 /lib64/libdl.so.2
    0000003591800000-0000003591929f39 /lib64/tls/libc.so.6
    0000003591600000-00000035916142ef /lib64/ld-linux-x86-64.so.2
    0000002a95566000-0000002a957afa2f /usr/java/jrockit-R26.4.0-jdk1.5.0_06/jre/lib/amd64/jrockit/libjvm.so
    0000002ad7de7000-0000002ad7df0f03 /lib64/libnss_files.so.2
    0000002ad7f51000-0000002ad7f75473 /usr/java/jrockit-R26.4.0-jdk1.5.0_06/jre/lib/amd64/libjava.so
    0000002ad807b000-0000002ad8087627 /usr/java/jrockit-R26.4.0-jdk1.5.0_06/jre/lib/amd64/libverify.so
    0000003592700000-0000003592712fe3 /lib64/libnsl.so.1
    0000002b181da000-0000002b181e2e3f /usr/java/jrockit-R26.4.0-jdk1.5.0_06/jre/lib/amd64/native_threads/libhpi.so
    0000002b1b43c000-0000002b1b450fef /usr/java/jrockit-R26.4.0-jdk1.5.0_06/jre/lib/amd64/libnet.so
    0000002b1bb8f000-0000002b1bb92883 /lib64/libnss_dns.so.2
    0000003d93100000-0000003d93110d3b /lib64/libresolv.so.2
    0000002b1cd6b000-0000002b1cd71077 /usr/java/jrockit-R26.4.0-jdk1.5.0_06/jre/lib/amd64/libnio.so
    "http-0.0.0.0-8080-1" id=40 idx=0x4c tid=20671 lastJavaFrame=(nil)
    Stack 0: start=0x40908000, end=0x4094a000, guards=0x4090d000 (ok), forbidden=0x4090b000
    Thread Stack Trace:
    -- Java stack --
    at org/jboss/ejb/BeanLockManager.getHashMap(Ljava/lang/Object;)Ljava/util/HashMap;(BeanLockManager.java:101)
    at org/jboss/ejb/BeanLockManager.getLock(Ljava/lang/Object;)Lorg/jboss/ejb/BeanLock;(BeanLockManager.java:118)
    at org/jboss/ejb/plugins/EntitySynchronizationInterceptor.invokeHome(Lorg/jboss/invocation/Invocation;)Ljava/lang/Object;(EntitySynchronizationIntercepto
    r.java:214)
    at org/jboss/resource/connectionmanager/CachedConnectionInterceptor.invokeHome(Lorg/jboss/invocation/Invocation;)Ljava/lang/Object;(CachedConnectionInter
    ceptor.java:189)
    at org/jboss/ejb/plugins/AbstractInterceptor.invokeHome(Lorg/jboss/invocation/Invocation;)Ljava/lang/Object;(AbstractInterceptor.java:105)
    at org/jboss/ejb/plugins/EntityInstanceInterceptor.invokeHome(Lorg/jboss/invocation/Invocation;)Ljava/lang/Object;(EntityInstanceInterceptor.java:134)
    at org/jboss/ejb/plugins/EntityLockInterceptor.invokeHome(Lorg/jboss/invocation/Invocation;)Ljava/lang/Object;(EntityLockInterceptor.java:76)
    at org/jboss/ejb/plugins/EntityCreationInterceptor.invokeHome(Lorg/jboss/invocation/Invocation;)Ljava/lang/Object;(EntityCreationInterceptor.java:43)
    at org/jboss/ejb/plugins/CallValidationInterceptor.invokeHome(Lorg/jboss/invocation/Invocation;)Ljava/lang/Object;(CallValidationInterceptor.java:56)
    at org/jboss/ejb/plugins/AbstractTxInterceptor.invokeNext(Lorg/jboss/invocation/Invocation;Z)Ljava/lang/Object;(AbstractTxInterceptor.java:125)
    at org/jboss/ejb/plugins/TxInterceptorCMT.runWithTransactions(Lorg/jboss/invocation/Invocation;)Ljava/lang/Object;(TxInterceptorCMT.java:350)
    at org/jboss/ejb/plugins/TxInterceptorCMT.invokeHome(Lorg/jboss/invocation/Invocation;)Ljava/lang/Object;(TxInterceptorCMT.java:161)
    at org/jboss/ejb/plugins/SecurityInterceptor.invokeHome(Lorg/jboss/invocation/Invocation;)Ljava/lang/Object;(SecurityInterceptor.java:145)
    at org/jboss/ejb/plugins/LogInterceptor.invokeHome(Lorg/jboss/invocation/Invocation;)Ljava/lang/Object;(LogInterceptor.java:132)
    at org/jboss/ejb/plugins/ProxyFactoryFinderInterceptor.invokeHome(Lorg/jboss/invocation/Invocation;)Ljava/lang/Object;(ProxyFactoryFinderInterceptor.java
    :107)
    at org/jboss/ejb/EntityContainer.internalInvokeHome(Lorg/jboss/invocation/Invocation;)Ljava/lang/Object;(EntityContainer.java:514)
    at org/jboss/ejb/Container.invoke(Lorg/jboss/invocation/Invocation;)Ljava/lang/Object;(Container.java:975)
    at org/jboss/ejb/plugins/local/BaseLocalProxyFactory.invokeHome(Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;(BaseLocalProxyFactory.ja
    va:359)
    at org/jboss/ejb/plugins/local/LocalHomeProxy.invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;(LocalHomeProxy.ja
    va:133)
    at $Proxy246.create(Lcom/igonline/ejb/ValueObject;)Lsb_ad/PADAdCtgrLocal;(Unknown Source)
    at sb_ad/AdUtilBean.persistAdInsStep1(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;)
    Ljava/lang/Integer;(AdUtilBean.java:92)
    at jrockit/vm/RNI.c2java(JJJJ)V(Native Method)
    -- end of trace
    Additional information is available in:
    /opt/jboss-4.0.4.GA/bin/jrockit.20624.dump
    No snapshot file (core dump) will be created because core dumps have been
    disabled. To enable core dumping, try "ulimit -c unlimited"
    before starting JRockit again.
    If you see this dump, please open a support case with BEA and
    supply as much information as you can on your system setup and
    the program you were running. You can also search for solutions
    to your problem at http://forums.bea.com in
    the forum jrockit.developer.interest.general.
    Extended, platform specific info:
    libc release: 2.3.4-stable
    Elf headers:
    libc ehdrs: EI: 7f454c46020101000000000000000000 ET: 3 EM: 62 V: 1 ENTRY: 000000359181c560 PHOFF: 0000000000000040 SHOFF: 000000000013d5a8 EF: 0x0 HS:
    64 PS: 56 PHN; 10 SS: 64 SHN: 69 STIDX: 66
    libpthread ehdrs: EI: 7f454c46020101000000000000000000 ET: 3 EM: 62 V: 1 ENTRY: 0000003592505620 PHOFF: 0000000000000040 SHOFF: 0000000000012980 EF: 0x0 HS:
    64 PS: 56 PHN; 9 SS: 64 SHN: 38 STIDX: 35
    libjvm ehdrs: EI: 7f454c46020101000000000000000000 ET: 3 EM: 62 V: 1 ENTRY: 000000000003be90 PHOFF: 0000000000000040 SHOFF: 000000000034f4f8 EF: 0x0 HS:
    64 PS: 56 PHN; 3 SS: 64 SHN: 22 STIDX: 19
    ===== END DUMP ===============================================================

    Hi back. I have done the experiments:
    1. I have tried the 32-bit Linux/x86 version on:
    a) fedora core 4, pentium 3 800 cpu.
    b) opteron 275, centos 4.3.
    On both platforms, the 32-bit version of JRockit runs ok.
    2. -Xnoopt, does not change anything. Crash at the same point.
    3. Different GC strategies do not change anything. Again, crash at the same point. I have even tried the different GC strategies with or without -Xnoopt without success.
    4. I have produced a "-Xverbose:codegen,opt,memory" nohup output, but instead of pasting the last n lines of it, I decided to include it all at a downloadable location. You can download the file from http://igonline.biz/gdemir/nohup.out.bz2 , it is 523,104 bytes.
    The reason I am insisting on using JRockit is the observable performance gain upon the corresponding Sun JVM. And yes you are right, I don't have a support contract with BEA.
    Best Regards,
    Gokhan Demir.

  • Trying to deploy CMP bean  on JBoss4.0.2 with MySQL

    Hi all I am trying to deploy CMP bean on JBoss4.0.2
    with MySQL db.
    The tables are created but I get the following error when trying to insert data in the db.
    Does anyone have a solution for this.
    I have been trying it for a week now.
    javax.ejb.EJBException: getGeneratedKeys returned an empty ResultSet
    at org.jboss.ejb.plugins.cmp.jdbc.keygen.JDBCMySQLCreateCommand.executeInsert(JDBCMySQLCreateCommand.java:87)
    at org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand.performInsert(JDBCAbstractCreateCommand.java:308)
    at org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand.execute(JDBCAbstractCreateCommand.java:138)
    at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.createEntity(JDBCStoreManager.java:572)
    at org.jboss.ejb.plugins.CMPPersistenceManager.createEntity(CMPPersistenceManager.java:222)
    at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.createEntity(CachedConnectionInterceptor.java:266)
    at org.jboss.ejb.EntityContainer.createHome(EntityContainer.java:766)
    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:324)
    at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
    at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:1113)
    at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:192)
    at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:212)
    at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:90)
    at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:117)
    at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:61)
    at org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:28)
    at org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:41)
    at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:109)
    at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
    at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:146)
    at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:116)
    at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:121)
    at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)
    at org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:508)
    at org.jboss.ejb.Container.invoke(Container.java:894)
    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:324)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
    at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:155)
    at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:104)
    at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:179)
    at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:165)
    at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
    at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
    at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:169)
    at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:86)
    at $Proxy59.create(Unknown Source)
    at com.cygnet.medina.HospitalManager.HospitalManagerEJB.addHospital(HospitalManagerEJB.java:59)
    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:324)
    at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
    at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214)
    at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
    at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:130)
    at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:51)
    at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
    at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:105)
    at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
    at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
    at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:139)
    at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
    at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
    at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
    at org.jboss.ejb.Container.invoke(Container.java:873)
    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:324)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
    at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:155)
    at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:104)
    at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:179)
    at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:165)
    at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
    at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
    at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:97)
    at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:86)
    at $Proxy64.addHospital(Unknown Source)
    at com.cygnet.medina.Hospital.HospitalCreateAction.execute(HospitalCreateAction.java:58)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
    at java.lang.Thread.run(Thread.java:534)
    19:29:12,828 ERROR [LogInterceptor] TransactionRolledbackException in method: public abstract com.cygnet.medina.Hospital.HospitalData com.cygnet.medina.HospitalManager.Hospital
    javax.ejb.EJBException: getGeneratedKeys returned an empty ResultSet
    at org.jboss.ejb.plugins.cmp.jdbc.keygen.JDBCMySQLCreateCommand.executeInsert(JDBCMySQLCreateCommand.java:87)
    at org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand.performInsert(JDBCAbstractCreateCommand.java:308)
    at org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand.execute(JDBCAbstractCreateCommand.java:138)
    at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.createEntity(JDBCStoreManager.java:572)
    at org.jboss.ejb.plugins.CMPPersistenceManager.createEntity(CMPPersistenceManager.java:222)
    at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.createEntity(CachedConnectionInterceptor.java:266)
    at org.jboss.ejb.EntityContainer.createHome(EntityContainer.java:766)
    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:324)
    at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
    at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:1113)
    at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:192)
    at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:212)
    at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:90)
    at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:117)
    at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:61)
    at org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:28)
    at org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:41)
    at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:109)
    at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
    at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:146)
    at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:116)
    at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:121)
    at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)
    at org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:508)
    at org.jboss.ejb.Container.invoke(Container.java:894)
    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:324)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
    at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:155)
    at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:104)
    at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:179)
    at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:165)
    at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
    at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
    at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:169)
    at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:86)
    at $Proxy59.create(Unknown Source)
    at com.cygnet.medina.HospitalManager.HospitalManagerEJB.addHospital(HospitalManagerEJB.java:59)
    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:324)
    at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
    at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214)
    at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
    at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:130)
    at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:51)
    at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
    at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:105)
    at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
    at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
    at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:139)
    at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
    at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
    at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
    at org.jboss.ejb.Container.invoke(Container.java:873)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    opola,
    Hi. it looks like you have run into at least the limitations on HD/IO access, security restrictions and running/viewing native processes - see the whitelist exclusion in the following link.
    Understanding Java Cloud Service Whitelist Criteria
    http://docs.oracle.com/cloud/CSJSU/dev_app.htm#CSJSU7121
    ERROR : 1:Type "java.lang.SecurityManager" not allowed.
    Overriding Java Security Manager
    ERROR : 17:Type "java.lang.Process" not allowed.
    Executing a new Process
    ERROR : 8:Type "java.nio.channels.FileLock" not allowed
    Java non-blocking IO
    Also see the unsupported API list
    http://docs.oracle.com/cloud/CSJSU/dev_app.htm#CEGEADDC
    thank you
    /Michael
    https://forums.oracle.com/forums/profile.jspa?userID=609861
    https://forums.oracle.com/forums/profile.jspa?userID=849227

  • EJB-QL error on deploy

    Hi,
    We are trying to deploy an Ear file on OC4J, but that fails every time with an error in the logs (see below).
    The same application deploys and runs without problems on JBoss4 and 3.
    The oracle message suggests that the query method could not be found but it does exist on the bean class, is abstract, returns a Collection and takes a string as its parameter.
    The XML has been validated and is correct at least in syntax. I have also eliminated the possibility that the path names are wrong (by limiting the query to TRAIN_RUN), and that the parameter is wrong by changing the type a couple of times. Nothing changes, the same message every time.
    Does anybody know what could be the problem?
    Thanks,
    Guy
    oracle.oc4j.admin.internal.DeployerException: Error initializing ejb-module; Exception Failure to initialize EJBQL descriptors: java.lang.RuntimeException: No method found for XML query element:
    java.lang.String
    <query><query-method>
    <method-name>ejbSelectStepByCharPoint
    </method-name>
    <method-params>
    <method-param>
    java.lang.String
    </method-param>
    </method-params>
    </query-method>
    <ejb-ql>
    SELECT OBJECT ( s ) FROM TRAIN_RUN AS t, IN ( t.trajectorySteps ) AS s
    WHERE s.characteristicPoint.name = ?1
    </ejb-ql>
    </query>

    9082,
    Forgive me if I am stating the obvious, but different versions of OC4J have different support for EJB-QL. Since I couldn't find any details (in your post) of the OC4J version you are using, let me ask if you are sure that it supports your EJB-QL?
    Good Luck,
    Avi.

  • Error while calling a method on Bean (EJB 3.0)

    I am getting an error while calling a method on EJB. I am using EJB3.0 and my bean is getting properly deployed(i am sure b'cos i can see the successfullly deployed message). Can any body help me
    Error is -->
    Error while destroying resource :An I/O error has occured while flushing the output - Exception: java.io.IOException: An established connection was aborted by the software in your host machine
    Stack Trace:
    java.io.IOException: An established connection was aborted by the software in your host machine
    at sun.nio.ch.SocketDispatcher.write0(Native Method)
    at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:33)
    at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:104)
    at sun.nio.ch.IOUtil.write(IOUtil.java:75)
    at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:302)
    at com.sun.enterprise.server.ss.provider.ASOutputStream.write(ASOutputStream.java:138)
    at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
    at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
    at org.postgresql.PG_Stream.flush(PG_Stream.java:352)
    at org.postgresql.core.QueryExecutor.sendQuery(QueryExecutor.java:159)
    at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:70)
    at org.postgresql.jdbc1.AbstractJdbc1Connection.ExecSQL(AbstractJdbc1Connection.java:482)
    at org.postgresql.jdbc1.AbstractJdbc1Connection.ExecSQL(AbstractJdbc1Connection.java:461)
    at org.postgresql.jdbc1.AbstractJdbc1Connection.rollback(AbstractJdbc1Connection.java:1031)
    at org.postgresql.jdbc2.optional.PooledConnectionImpl$ConnectionHandler.invoke(PooledConnectionImpl.java:223)
    at $Proxy34.close(Unknown Source)
    at com.sun.gjc.spi.ManagedConnection.destroy(ManagedConnection.java:274)
    at com.sun.enterprise.resource.LocalTxConnectorAllocator.destroyResource(LocalTxConnectorAllocator.java:103)
    at com.sun.enterprise.resource.AbstractResourcePool.destroyResource(AbstractResourcePool.java:603)
    at com.sun.enterprise.resource.AbstractResourcePool.resourceErrorOccurred(AbstractResourcePool.java:713)
    at com.sun.enterprise.resource.PoolManagerImpl.putbackResourceToPool(PoolManagerImpl.java:424)
    at com.sun.enterprise.resource.PoolManagerImpl.resourceClosed(PoolManagerImpl.java:393)
    at com.sun.enterprise.resource.LocalTxConnectionEventListener.connectionClosed(LocalTxConnectionEventListener.java:69)
    at com.sun.gjc.spi.ManagedConnection.connectionClosed(ManagedConnection.java:618)
    at com.sun.gjc.spi.ConnectionHolder.close(ConnectionHolder.java:163)
    at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.closeDatasourceConnection(DatabaseAccessor.java:379)
    at oracle.toplink.essentials.internal.databaseaccess.DatasourceAccessor.closeConnection(DatasourceAccessor.java:367)
    at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.closeConnection(DatabaseAccessor.java:402)
    at oracle.toplink.essentials.internal.databaseaccess.DatasourceAccessor.afterJTSTransaction(DatasourceAccessor.java:100)
    at oracle.toplink.essentials.threetier.ClientSession.afterTransaction(ClientSession.java:104)
    at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.afterTransaction(UnitOfWorkImpl.java:1816)
    at oracle.toplink.essentials.transaction.AbstractSynchronizationListener.afterCompletion(AbstractSynchronizationListener.java:161)
    at oracle.toplink.essentials.transaction.JTASynchronizationListener.afterCompletion(JTASynchronizationListener.java:87)
    at com.sun.ejb.containers.ContainerSynchronization.afterCompletion(ContainerSynchronization.java:174)
    at com.sun.enterprise.distributedtx.J2EETransaction.commit(J2EETransaction.java:467)
    at com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.commit(J2EETransactionManagerOpt.java:357)
    at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:3653)
    at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:3431)
    at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1247)
    at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:197)
    at com.sun.ejb.containers.EJBObjectInvocationHandlerDelegate.invoke(EJBObjectInvocationHandlerDelegate.java:110)
    at $Proxy84.addDepartment(Unknown Source)
    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:585)
    at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:121)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:650)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:193)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1705)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1565)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:947)
    at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:178)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:717)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:473)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConnectionImpl.java:1270)
    at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:479)
    End of Stack Trace
    |#]
    RAR5035:Unexpected exception while destroying resource. To get exception stack, please change log level to FINE.
    EJB5018: An exception was thrown during an ejb invocation on [DepartmentSessionBean]
    javax.ejb.EJBException: Unable to complete container-managed transaction.; nested exception is: javax.transaction.SystemException
    javax.transaction.SystemException
    at com.sun.enterprise.distributedtx.J2EETransaction.commit(J2EETransaction.java:452)
    at com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.commit(J2EETransactionManagerOpt.java:357)
    at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:3653)
    at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:3431)
    at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1247)
    at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:197)
    at com.sun.ejb.containers.EJBObjectInvocationHandlerDelegate.invoke(EJBObjectInvocationHandlerDelegate.java:110)
    at $Proxy84.addDepartment(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    Means theres an error in XML/ABAP conversion probably due a syntax error...
    Regards
    Juan

  • How can connect different ejb server in one client program

    hi , every
    i want to make connect ejb server into one client program.
    for that , but i try to change PROVIDER_URL property , it's not correct
    who solve this problem for novice? :(

    You need to create separate initialContext to each of the different servers
    and lookup up the different ejbs.
    -Sabha
    "inking" <[email protected]> wrote in message
    news:[email protected]..
    hi , every
    i want to make connect ejb server into one client program.
    for that , but i try to change PROVIDER_URL property , it's not correct
    who solve this problem for novice? :(

  • How can i design a EJB application using session Beans?

    Hello,
    I am designing a Find application using EJB. Here a user is prompted a search page, where he can enter the search criteria's. Then on click of submit, the query is formed at the server side depending on what criteria's were selected. Then a jdbc query is performed and the results are returned back to the user. Here no session is maintained for the users. Can anyone suggest me how to design this application using EJB. Should i use entity beans for this or session beans will suffice? Should the jdbc query be performed in the bean itself or should it be outside in a helper class? Please kindlu suggest me the design for this application...
    Regards,
    Subbu

    Hi,
    First of all, I'm unable to figure out why you need to use EJB for this scenario. You can write a helper class to frame and execute the query.
    If you really want to use EJB, then I suggest you use a stateless Session Bean with transaction attribute as TX_NOT_SUPPORTED. From the session bean, you can call the helper class. But, by avoiding the session bean, you can eliminate remote calls, thus improving your performance. Also, check if the database & the db driver you are using supports sql caching.
    Regards,
    Raj.

  • Error connecting to an EJB 3.0 Remote on OC4J 10.1.3.2 from Tomcat

    Hi, I want to connect to a Remote Session Bean running on the OC4J 10.1.3 and it doesn´t work.
    I have connected to it from a java standalone application using:
    public static void main(String [] args) {
    try {
    final Context context = getInitialContext();
    SessionEJB sessionEJB = (SessionEJB)context.lookup("java:comp/env/ejb/SessionEJB");
    System.out.println(sessionEJB.mergeEntity(""));
    System.out.println( "hola" );
    } catch (Exception ex) {
    ex.printStackTrace();
    private static Context getInitialContext() throws NamingException {
    Hashtable env = new Hashtable();
    // Standalone OC4J connection details
    env.put( Context.INITIAL_CONTEXT_FACTORY, "oracle.j2ee.naming.ApplicationClientInitialContextFactory" );
    env.put( Context.SECURITY_PRINCIPAL, "oc4jadmin" );
    env.put( Context.SECURITY_CREDENTIALS, "passw" );
    env.put(Context.PROVIDER_URL, "ormi://localhost:23791/ejb3jar");
    return new InitialContext( env );
    with this application-client.xml file:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <application-client xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application-client_1_4.xsd" version="1.4" xmlns="http://java.sun.com/xml/ns/j2ee">
    <display-name>Model-app-client</display-name>
    <ejb-ref>
    <ejb-ref-name>ejb/SessionEJB</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <remote>ar.com.eds.ejb3.model.SessionEJB</remote>
    <ejb-link>SessionEJB</ejb-link>
    </ejb-ref>
    thats works fine, but when I try to use the same solution from a jsf proyect running on a Tomcat 5.5.20, it fails with this error:
    Caused by: java.lang.RuntimeException: Error while creating home.
         at ar.com.mcd.fawkes.ui.locator.EJB3Locator.get(EJB3Locator.java:32)
         at ar.com.mcd.fawkes.ui.locator.ServiceLocator$1.get(ServiceLocator.java:12)
         at net.sf.opentranquera.web.jsf.locator.ServiceLocatorBean.get(ServiceLocatorBean.java:42)
         at com.sun.faces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:79)
         at com.sun.faces.el.impl.ArraySuffix.evaluate(ArraySuffix.java:187)
         at com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:171)
         at com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263)
         at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:160)
         ... 80 more
    Caused by: javax.naming.NameNotFoundException: Name ejb is not bound in this Context
         at org.apache.naming.NamingContext.lookup(NamingContext.java:769)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:139)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:780)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:139)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:780)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:152)
         at org.apache.naming.SelectorContext.lookup(SelectorContext.java:136)
         at javax.naming.InitialContext.lookup(Unknown Source)
         at ar.com.mcd.fawkes.ui.locator.EJB3Locator.get(EJB3Locator.java:28)
         ... 87 more
    Could you please help me with any tip?
    Mauricio
    Message was edited by:
    Mauricio

    Hi, Rick
    Thanks for your help.
    I deleted de application-client.xml file, added the following lines to the web.xml file:
         <ejb-ref>
              <ejb-ref-name>ejb/SessionEJB</ejb-ref-name>
              <ejb-ref-type>Session</ejb-ref-type>
              <remote>ar.com.eds.ejb3.model.SessionEJB</remote>
         </ejb-ref>
    and now I´m using oracle.j2ee.rmi.RMIInitialContextFactory
    there is no error, and it doesn´t throw any exception but the following line returns null.
    SessionEJB sessionEJB = (SessionEJB)context.lookup("java:comp/env/ejb/SessionEJB");
    Its seems the lookup method finds the remote ejb because it doesn´t fail, but it returns null.
    Any idea what is wrong?
    Mauricio.

  • Error in deploying a simple EJB 3.0

    Hi ,
    I am getting the following error while deploying my simple ejb of version 3.0 in Weblogic 9.2.
    Exception preparing module: EJBModule(build) [EJB:011023]An error occurred while reading the deployment descriptor. The error was: Error processing annotations: java.lang.NullPointerException.
    During my evaluation of Weblogic 9.2 for EJB 3.0 , I have got the following questions.
    EJB Specification states that EJB's in EJB 3.0 can be developed and deployed without the need of deployment descriptors. I have created a simple EJB with two file Env.java and EnvBean.java and the source code is given below.
    a) I just complied these class files and when I was trying to deploy without ejb-jar.xml and weblogic-ejb-jar.xml, the console was not at all allowing me to deploy.Why is this so?
    b) After I created a META-INF file under root of classes directory by placing ejb-jar.xml with empty <enterprise-beans> element, console was allowing me to deploy with errors in parsing ejb-jar.xml. The error was either session/entity/mdb is a required under <enterprise-beans> element. Why is this required when there are several examples stating <enterprise-beans> element can be empty.
    c) Later I updated ejb-jar.xml with <session> element under <enterprise-beans> with the following values. I got the above error when deployed with this change.
    I had been struggling to deploy this simple bean for almost a day.Pleas point me if there is any documentation that solves my stated problem or if there is a solution.Thanks in advance.
    regards
    Karim
    ejb-jar.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <ejb-jar xmlns="http://java.sun.com/xml/ns/javaee" version="3.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd">
    <enterprise-beans>
    <session>
    <description>This is the stateless ejb</description>
    <display-name>Env Bean</display-name>
    <ejb-name>EnvBean</ejb-name>
    </session>
    </enterprise-beans>
    </ejb-jar>
    Env.java
    package examples ;
    public interface Env {
    public void display();
    EnvBean.java
    package examples;
    import javax.ejb.Remote;
    import javax.ejb.Stateless;
    @Stateless
    @Remote(Env.class)
    public class EnvBean implements Env {
    public void display() {
    System.out.println("Welcome to EJB 3.0");
    }

    Presumably you're using the EJB3 tech preview, and not a vanilla WebLogic 9.2 install, right?
    Can you post the full stack trace?
    -Patrick

  • Error while calling ejb service call from BPM service

    Hi,
    We are using the Oracle 11.1.1.5.0
    We are calling ejb service call from BPM service to update the data to Oracle database.
    We are getting the below error when we executing the ejb service call from BPM Service.
    <Error> <EJB> <BEA-010026> <Exception occurred du
    ring commit of transaction Name=[EJB oracle.bpm.bpmn.engine.ejb.impl.BPMNDeliver
    yBean.handleCallback(java.lang.String,java.lang.String,java.lang.String,int,bool
    ean)],Xid=BEA1-45B91984D57960994897(30845116),Status=Rolled back. [Reason=javax.
    transaction.xa.XAException: JDBC driver does not support XA, hence cannot be a p
    articipant in two-phase commit. To force this participation, set the GlobalTrans
    actionsProtocol attribute to LoggingLastResource (recommended) or EmulateTwoPhas
    eCommit for the Data Source = EBSConnection],numRepliesOwedMe=0,numRepliesOwedOt
    hers=0,seconds since begin=1,seconds left=60,XAServerResourceInfo[SOADataSource_
    base_domain]=(ServerResourceInfo[SOADataSource_base_domain]=(state=rolledback,as
    signed=soa_server1),xar=SOADataSource,re-Registered = false),XAServerResourceInf
    o[ArCnTaskForms@EBSConnection@EBSConnection_base_domain]=(ServerResourceInfo[ArC
    nTaskForms@EBSConnection@EBSConnection_base_domain]=(state=rolledback,assigned=s
    oa_server1),xar=weblogic.jdbc.wrapper.JTSEmulateXAResourceImpl@fa5476,re-Registe
    red = false),SCInfo[base_domain+soa_server1]=(state=rolledback),properties=({web
    logic.jdbc.remote.EBSConnection=t3://192.168.10.114:8001, weblogic.transaction.n
    ame=[EJB oracle.bpm.bpmn.engine.ejb.impl.BPMNDeliveryBean.handleCallback(java.la
    ng.String,java.lang.String,java.lang.String,int,boolean)]}),local properties=({w
    eblogic.jdbc.jta.SOADataSource=[ No XAConnection is attached to this TxInfo ]}),
    OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=soa
    server1+192.168.10.114:8001+basedomain+t3+, XAResources={eis/tibjms/Queue, eis
    /activemq/Queue, WLStore_base_domain_BPMJMSFileStore, WLStore_base_domain__WLS_s
    oa_server1, eis/fioranomq/Topic, eis/jbossmq/Queue, eis/Apps/Apps, eis/websphere
    mq/Queue, eis/AQ/aqSample, WLStore_base_domain_SOAJMSFileStore, eis/aqjms/Queue,
    WSATGatewayRM_soa_server1_base_domain, eis/sunmq/Queue, eis/pramati/Queue, SSCo
    nnectionDS_base_domain, eis/tibjms/Topic, eis/tibjmsDirect/Queue, eis/wls/Queue,
    eis/tibjmsDirect/Topic, EDNDataSource_base_domain, eis/wls/Topic, eis/aqjms/Top
    ic, RL3TST_base_domain, ArCnTaskForms@EBSConnection@EBSConnection_base_domain, S
    OADataSource_base_domain, WLStore_base_domain_UMSJMSFileStore_auto_2},NonXAResou
    rces={})],CoordinatorURL=soa_server1+192.168.10.114:8001+base_domain+t3+): weblo
    gic.transaction.RollbackException: Could not prepare resource 'ArCnTaskForms@EBS
    Connection@EBSConnection_base_domain
    JDBC driver does not support XA, hence cannot be a participant in two-phase comm
    it. To force this participation, set the GlobalTransactionsProtocol attribute to
    LoggingLastResource (recommended) or EmulateTwoPhaseCommit for the Data Source
    = EBSConnection
    at weblogic.transaction.internal.TransactionImpl.throwRollbackException(
    TransactionImpl.java:1881)
    at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(Se
    rverTransactionImpl.java:345)
    at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTran
    sactionImpl.java:239)
    at weblogic.ejb.container.internal.BaseLocalObject.postInvoke1(BaseLocal
    Object.java:622)
    at weblogic.ejb.container.internal.BaseLocalObject.__WL_postInvokeTxRetr
    y(BaseLocalObject.java:455)
    at weblogic.ejb.container.internal.SessionLocalMethodInvoker.invoke(Sess
    ionLocalMethodInvoker.java:52)
    at oracle.bpm.bpmn.engine.ejb.impl.BPMNDeliveryBean_of8dk6_ICubeDelivery
    LocalBeanImpl.handleCallback(Unknown Source)
    at com.collaxa.cube.engine.dispatch.message.instance.CallbackDeliveryMes
    sageHandler.handle(CallbackDeliveryMessageHandler.java:47)
    at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(Dispatc
    hHelper.java:140)
    at com.collaxa.cube.engine.dispatch.BaseDispatchTask.process(BaseDispatc
    hTask.java:88)
    at com.collaxa.cube.engine.dispatch.BaseDispatchTask.run(BaseDispatchTas
    k.java:64)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
    utor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
    .java:908)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: javax.transaction.xa.XAException: JDBC driver does not support XA, he
    nce cannot be a participant in two-phase commit. To force this participation, se
    t the GlobalTransactionsProtocol attribute to LoggingLastResource (recommended)
    or EmulateTwoPhaseCommit for the Data Source = EBSConnection
    at weblogic.jdbc.wrapper.JTSXAResourceImpl.prepare(JTSXAResourceImpl.jav
    a:83)
    at weblogic.transaction.internal.XAServerResourceInfo.prepare(XAServerRe
    sourceInfo.java:1327)
    at weblogic.transaction.internal.XAServerResourceInfo.prepare(XAServerRe
    sourceInfo.java:513)
    at weblogic.transaction.internal.ServerSCInfo$1.run(ServerSCInfo.java:36
    8)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTunin
    gWorkManagerImpl.java:528)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    .>
    <12 Oct, 2012 12:34:40 PM IST> <Error> <oracle.soa.bpel.engine.dispatch> <BEA-00
    0000> <failed to handle message
    javax.transaction.xa.XAException: JDBC driver does not support XA, hence cannot
    be a participant in two-phase commit. To force this participation, set the Globa
    lTransactionsProtocol attribute to LoggingLastResource (recommended) or EmulateT
    woPhaseCommit for the Data Source = EBSConnection
    at weblogic.jdbc.wrapper.JTSXAResourceImpl.prepare(JTSXAResourceImpl.jav
    a:83)
    at weblogic.transaction.internal.XAServerResourceInfo.prepare(XAServerRe
    sourceInfo.java:1327)
    at weblogic.transaction.internal.XAServerResourceInfo.prepare(XAServerRe
    sourceInfo.java:513)
    at weblogic.transaction.internal.ServerSCInfo$1.run(ServerSCInfo.java:36
    8)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTunin
    gWorkManagerImpl.java:528)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    >
    <12 Oct, 2012 12:34:40 PM IST> <Error> <oracle.soa.bpel.engine.dispatch> <BEA-00
    0000> <Failed to handle dispatch message ... exception ORABPEL-05002
    Message handle error.
    error while attempting to process the message "com.collaxa.cube.engine.dispatch.
    message.instance.CallbackDeliveryMessage"; the reported exception is: Error comm
    itting transaction:; nested exception is: javax.transaction.xa.XAException: JDBC
    driver does not support XA, hence cannot be a participant in two-phase commit.
    To force this participation, set the GlobalTransactionsProtocol attribute to Log
    gingLastResource (recommended) or EmulateTwoPhaseCommit for the Data Source = EB
    SConnection
    This error contained an exception thrown by the message handler.
    Check the exception trace in the log (with logging level set to debug mode).
    ORABPEL-05002
    Message handle error.
    error while attempting to process the message "com.collaxa.cube.engine.dispatch.
    message.instance.CallbackDeliveryMessage"; the reported exception is: Error comm
    itting transaction:; nested exception is: javax.transaction.xa.XAException: JDBC
    driver does not support XA, hence cannot be a participant in two-phase commit.
    To force this participation, set the GlobalTransactionsProtocol attribute to Log
    gingLastResource (recommended) or EmulateTwoPhaseCommit for the Data Source = EB
    SConnection
    This error contained an exception thrown by the message handler.
    Check the exception trace in the log (with logging level set to debug mode).
    at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(Dispatc
    hHelper.java:207)
    at com.collaxa.cube.engine.dispatch.BaseDispatchTask.process(BaseDispatc
    hTask.java:88)
    at com.collaxa.cube.engine.dispatch.BaseDispatchTask.run(BaseDispatchTas
    k.java:64)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
    utor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
    .java:908)
    at java.lang.Thread.run(Thread.java:662)
    >
    Could any body help on this issue.It is little bit urgent for us to resolve.
    Thanks in advance.

    Thanks Sudipto Desmukh,
    The link is helpful me to resolve this issue.
    Thanks,
    Narasimha E

  • EJB 3.0 Web service fail to deploy when ws result is on a diff lib project

    I'm trying to develop a web service using EJB 3.0 with annotations. I'm using Netbeans 5.5 EE.
    The web service should returns an object declared on another Netbeans project.
    ( a library.jar).
    Netbeans compiles everything alright, although when I deploy the application into Glassfish it complains with an error saying that wsdl file for the web service wasn't found.
    If I move the returning object class into the same ejb project as the web service it works fine.
    So, can anybody explain what is happening ? Is it a bug of Netbeans, Glassfish, EJB 3.0, JAX-WS or newbie programmer ?

    I'm trying to develop a web service using EJB 3.0 with annotations. I'm using Netbeans 5.5 EE.
    The web service should returns an object declared on another Netbeans project.
    ( a library.jar).
    Netbeans compiles everything alright, although when I deploy the application into Glassfish it complains with an error saying that wsdl file for the web service wasn't found.
    If I move the returning object class into the same ejb project as the web service it works fine.
    So, can anybody explain what is happening ? Is it a bug of Netbeans, Glassfish, EJB 3.0, JAX-WS or newbie programmer ?

Maybe you are looking for