Problem with Stateful EJB in JBOSS

Hi,
J have a problem with invoking stateful EJB methods from my web application deployed in Jboss 4.0.5.GA both. The same EJB with WebLogic functions perfectly, instead with Jboss it often throws the following exception:
ERROR [org.jboss.ejb.plugins.LogInterceptor]
EJBException in method: public abstract java.lang.String
infrastruttura.server.ejb.sessionproxy.SessionProxy.getCodiceGruppo() throws
java.rmi.RemoteException:
javax.ejb.EJBException: Application Error: tried to enter Stateful bean with
different tx context, contextTx: TransactionImpl:XidImpl[FormatId=257,
GlobalId=pitjb01/305, BranchQual=, localId=305], methodTx:
TransactionImpl:XidImpl[FormatId=257, GlobalId=pitjb01/306, BranchQual=,
localId=306]
at
org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSessionInstanceInterceptor.java:283)
at
org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
at
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:136)
at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
at org.jboss.ejb.Container.invoke(Container.java:954)
at sun.reflect.GeneratedMethodAccessor79.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at
org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)
at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
at
org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSessionInterceptor.java:121)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
at $Proxy83.getCodiceGruppo(Unknown Source)
at org.apache.jsp.jsp.main_jsp._jspService(main_jsp.java:117)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
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:96)
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.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
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.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
at
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
2008-02-27 20:19:54,458 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[PitagoraOlo].[jsp]]
Servlet.service() for servlet jsp threw exception
java.rmi.ServerException: EJBException:; nested exception is:
javax.ejb.EJBException: Application Error: tried to enter Stateful bean with
different tx context, contextTx: TransactionImpl:XidImpl[FormatId=257,
GlobalId=pitjb01/305, BranchQual=, localId=305], methodTx:
TransactionImpl:XidImpl[FormatId=257, GlobalId=pitjb01/306, BranchQual=,
localId=306]
at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:365)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:209)
at
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:136)
at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
at org.jboss.ejb.Container.invoke(Container.java:954)
at sun.reflect.GeneratedMethodAccessor79.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at
org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)
at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
at
org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSessionInterceptor.java:121)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
at $Proxy83.getCodiceGruppo(Unknown Source)
at org.apache.jsp.jsp.main_jsp._jspService(main_jsp.java:117)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
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:96)
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.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
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.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
at
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Caused by: javax.ejb.EJBException: Application Error: tried to enter Stateful
bean with different tx context, contextTx: TransactionImpl:XidImpl[FormatId=257,
GlobalId=pitjb01/305, BranchQual=, localId=305], methodTx:
TransactionImpl:XidImpl[FormatId=257, GlobalId=pitjb01/306, BranchQual=,
localId=306]
at
org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSessionInstanceInterceptor.java:283)
at
org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
... 47 more
Is there someone can help me?
thanks forward.

          We got resolved it through bea. This is a know problem of WLS6.1 Sp4. Bea has provided
          us with a patch, after which every thing seems to be working fine.
          Please open a case with bea mentioning the CR092146. You can read the description
          of this CR on internet.
          This will certainly solve your problem.
          Bob Butkus <[email protected]> wrote:
          >We are experiencing the same issue. Did you ever get this resolved?
          

Similar Messages

  • Is there a problem with Entity EJBs on 8.1.7?

    Oracle 8.1.7 on Solaris 7:
    Bean Managed persistence:
    TX Attribute - Required:
    UserTransaction bound into JNDI:
    I have tried numerous times and numerous ways to get my Entity beans working. Ejbs that represent tables with 3 columns work fine, but another EJB with 15 columns doesn't - ejbCreate, ejbFindByPrimaryKey work fine, but whenever make some changes and subsequently commit, ejbStore doesn't execute, I even had my client sleep for 15 secs, but still nothing. I know there is a problem with deploying EJBs using JDeveloper 3.2, but I have deployed all these EJBs using deployejb command line tool on the server itself!
    We are right now trying to find out whether Oracle is our right choice for EJBs, any input is highly appreciated.
    Thanks in Advance.
    Ashish.

    Upon further investigation this is what I have found:
    1. Created another EJB for the 15 column table, but this time represented just 3 of its columns - so I have 3 instance variables in the Bean, and a getter/setter method for each except a setter for the primary key.
    2. Undoubtedly it worked fine.
    3. Increased the number of columns to 4 and GUESS WHAT, upon calling setXXX for the newly added setter method and committing, it started failing, the value just wouldn't change in the DB. But when I call all the setXXX methods, it works just fine, I finally narrowed it down to just 1 setXXX method, if I use this method with any other setXXX methods, all the values get updated, otherwise none of them get updated.
    CLEARER PICTURE:
    Supposing I have the following instance variables in the Bean:
    String id;
    String dt;
    String vol;
    String price;
    String beg_day;
    String end_day;
    and the following get/set methods
    String getId()
    String getDt()
    String setDt()
    String getVol()
    String setVol()
    String getPrice()
    String setPrice()
    String getBeg_day()
    String setBeg_day()
    String getEnd_day()
    String setEnd_day()
    Now if I do the following:
    HomeInterface hm = ...JNDI lookup
    UserTransaction ut = ...JNDI lookup
    ut.begin();
    RemoteInterface rm = hm.findByPrimaryKey("1");
    rm.setBeg_day("01-DEC-00");
    ut.commit();
    nothing happens, the date in the underlying table is still the same, BUT.....
    if I do this:
    ut.begin();
    rm = hm.findByPrimaryKey("1");
    rm.setDt("01-DEC-00");
    rm.setBeg_day("01-DEC-00");
    ut.commit();
    IT WORKS..... using setDt() with any other method works for that setXXX method also...
    Anybody experience this at all.....
    Thanks in advance for your help.
    Ashish.
    PS: setDt() is the last method in the stBean.java file with the maximum __method_index, does that make any difference??

  • A problem with annotation @EJB

    Hi,
    My application uses servlet+JSP+EJB+JBOSS. I want to use a pure java object that is a singleton and within this singleton call an EJB.
    I have a servlet that call a singleton:
    My servlet
    public class FindAdministratorForumServlet extends HttpServlet {
         private static final long serialVersionUID = 1L;
         // ======================================
         // = Entry point method =
         // ======================================
         @Override
         protected void service(final HttpServletRequest request,
                   final HttpServletResponse response) throws ServletException,
                   IOException {
              final int rows=3;
              int page = Integer.parseInt(request.getParameter("page"));
              List<Topic> discussionList = ListHandlerService.getForumTopics(page); My singleton :
    package service;
    import java.util.LinkedList;
    import java.util.List;
    import java.util.ListIterator;
    import javax.ejb.EJB;
    import sessionbean.TopicService;
    import entitybean.Topic;
    public class ListHandlerService {
         private final static int rows=3;
        /** L'instance statique */
        private static ListHandlerService instance;
        /** objet pour la synchronisation.
         * j'ajoute deux "soulignés" (__) au nom de l'attribut car il n'a
         * qu'un intérêt purement technique.
        private static Object objetSynchrone__;
        private static List<Topic> listTopic;
         @EJB
         private static TopicService discussionService;
        /** Récupère l'instance unique de la class Singleton.
        * Remarque : le constructeur est rendu inaccessible
        public static ListHandlerService getInstance() {
            if (null == instance) { // Premier appel
                synchronized(objetSynchrone__) {
                    if (null == instance) {
                        instance = new ListHandlerService();
            return instance;
        /** Constructeur redéfini comme étant privé pour interdire
        * son appel et forcer à passer par la méthode
        private ListHandlerService() {
        public static List<Topic> getForumTopics(int page) {
             int i = 0;
              Topic topic;
              LinkedList<Topic> result = new LinkedList<Topic>();
             if (page==1) {
                  listTopic = discussionService.getForumTopics();
                  ListIterator<Topic> listIterator = listTopic.listIterator();
                  while (listIterator.hasNext() && (i< rows)) {
                       topic = listIterator.next();
                       result.add(topic);
                       i++;
             } else {
                  ListIterator<Topic> listIterator = listTopic.listIterator();
                  while (listIterator.hasNext() && (i< rows*(page-1))) {
                       listIterator.hasNext();
                       i++;
                  while (listIterator.hasNext() && (i< rows*page)) {
                       topic = listIterator.next();
                       result.add(topic);
                       i++;
             return result;
        public static int getSize() {
             return listTopic.size();
    } In my singleton that is a pure JAVA object, the injection of my EJB with annotation @EJB doesn't seem to work. Indeed when executing, "discussionService" that should be injected and initialized, is null. Isn't it possible to inject an EJB in a pure java object which is a singleton ?
    Thank you for your answers.

    Is it deployed in the same application?
    In they are not in the same application you need to use some other techniques. See the following thread for info:
    http://forums.sun.com/thread.jspa?threadID=5332558

  • Problem with JMX Remote Port - JBoss & Apache on same machine

    Hi,
    I have a server which hosts Apache that uses mod_jk to pass requests to three Tomcat instances. Apache listens to port 80.
    I want to install a different application on the same machine that runs on JBoss. Foreseeing the problem with port numbers, I got a different IP address (Let's say IP2, and original IP for Apache is IP1) on the same machine to run JBoss application. I changed HTTP Connector configuration in server.xml to add "address=IP1:8080" for Tomcat, "address=IP2:8080" for JBoss. I also modified Apache Listen directive in httpd.conf from "Listen 80" to "Listen IP1:80".
    Now when I try to start JBoss server by running run.bat, I get below error.
    Can any one please suggest how can I resolve this port conflict? Is there even a way to resolve it? As JAVA_HOME can point to a single location and both JBoss & Apache use it?
    Thanks.
    ===============================================================================
      JBoss Bootstrap Environment
      JBOSS_HOME: C:\jboss
      JAVA: C:\Java\jdk1.6.0_01\bin\java
      JAVA_OPTS: -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=
    9004 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.aut
    henticate=false  -Dprogram.name=run.bat -server -Xms128m -Xmx512m -Dsun.rmi.dgc.
    client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
      CLASSPATH: C:\Java\jdk1.6.0_01\lib\tools.jar;E:\jboss\bin\run.jar
    ===============================================================================
    Error: Exception thrown by the agent : java.rmi.server.ExportException: Port alr
    eady in use: 9004; nested exception is:
            java.net.BindException: Address already in use: JVM_Bind
    Press any key to continue . . .

    What's running on JMX port without the Jboss running ?
    Seems that u have something it.
    Btw, try to discover how to bind JMX of portal to IP2, not to IP1 or to global Ip.

  • Problems with JDev 11g using JBOSS and ANT

    Hi,
    I'm trying to migrate to JDev 11g with JBoss ( version 7.X ) as the AppServer
    With JDev 10g all works fine with JBoss, even the Remote Debug, all OK
    here is the problems I have :
    1) ANT
    JDev doesn't save my ANT settings
    every time I launch ANT : Run Ant Target - I must set the Advance settings
    JDev 10g I only need to do that once, the settings are saved but not in the 11g, why ?
    2) persistence
    I get this error when deploying to JBoss
    16:34:50,967 INFO [org.jboss.as.server] (HttpManagementService-threads - 1) JBA
    S015870: Deploy of deployment "prod_v0.0.1_iDigital.menu.ear" was rolled back wi
    th failure message {"JBAS014771: Services with missing/unavailable dependencies"
    => ["jboss.persistenceunit.\"prod_v0.0.1_iDigital.menu.ear/iDigital.menu-WebApp
    .war#InfraModel\"jboss.naming.context.java.jdbc.stdDSMissing[jboss.persistenceun
    it.\"prod_v0.0.1_iDigital.menu.ear/iDigital.menu-WebApp.war#InfraModel\"jboss.na
    ming.context.java.jdbc.stdDS]","jboss.persistenceunit.\"prod_v0.0.1_iDigital.men
    u.ear#InfraModel\"jboss.naming.context.java.jdbc.stdDSMissing[jboss.persistenceu
    nit.\"prod_v0.0.1_iDigital.menu.ear#InfraModel\"jboss.naming.context.java.jdbc.s
    tdDS]"]}
    it seems that is something related to dependencies not well configured during build stage of the EAR, but with 10g works fine
    BTW, I can't run my project with WebLogic either, gives this error :
    <5/Abr/2013 18H27m BST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1365182860563' for task '0'. Error is: 'weblogic.management.DeploymentException: [J2EE:160149]Error while processing library references. Unresolved application library references, defined in weblogic-application.xml: [Extension-Name: adf.oracle.domain, exact-match: false].'
    weblogic.management.DeploymentException: [J2EE:160149]Error while processing library references. Unresolved application library references, defined in weblogic-application.xml: [Extension-Name: adf.oracle.domain, exact-match: false].
         at weblogic.application.internal.flow.CheckLibraryReferenceFlow.prepare(CheckLibraryReferenceFlow.java:26)
         at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:613)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:184)
         at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:58)
         Truncated. see log file for complete stacktrace
    >
    <5/Abr/2013 18H27m BST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'iDigital.menu'.>
    <5/Abr/2013 18H27m BST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.management.DeploymentException: [J2EE:160149]Error while processing library references. Unresolved application library references, defined in weblogic-application.xml: [Extension-Name: adf.oracle.domain, exact-match: false].
         at weblogic.application.internal.flow.CheckLibraryReferenceFlow.prepare(CheckLibraryReferenceFlow.java:26)
         at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:613)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:184)
         at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:58)
         Truncated. see log file for complete stacktrace
    can someone give me a clue ?
    thanks
    Edited by: FernandoLeite on Apr 5, 2013 10:31 AM

    I can't say many about the ant stuff, but have you tried to put the parameters in a property file and use this to get the parameters to ant?
    The reason you can't run the application on WLS is that you have not installed the adf runtime on your wls. The error 'application.xml: [Extension-Name: adf.oracle.domain, exact-match: false].' points to this.
    Timo

  • Problem with downloading EJBs to JDeveloper

    Hi,
    Upon downloading EJBs to JDeveloper905, I am able to see the bean class, remote and local classes for an entity bean. However, I cannot see the Entity Bean icon (represent the entity) in the respective package in the Model.jpr. Thus, could not access to the EJB Module Editor which previously(before using SCM) can be accessed through the entity bean icon by double clicking it. Is there any other way to access the EJB Module Editor? or it's dependant on the Entity Bean icon? Same problems with the session bean downloaded from SCM.
    Hope to get replies from you guys soon.
    Regards,
    Jo

    @ondrahu
    Sorry for the time you have spent assuming that the problem is at your end by re-installing software; there seems to be no issue accessing via "Update" feature in Ovi Maps application at time of this post.
    As farby points out from past experience it is not uncommon that at times maps server is not available if any maintenance being carried out, so always sensible to try a few hours later before assuming the worst.
    Please let us know if you still have issues in this respect.
    Happy to have helped forum with a Support Ratio = 42.5

  • Trying to build a web application with stateful ejb clustering

    Hi to everyone,
    I'd like to know if someone gets to work a stateful ejb clustering. The stateful ejbs are called from a servlet so i'm not using RMI.
    The ejb clustering sample works! but It is using RMI and this is not use for me.
    My application already works but not in a cluster. Is this possible? I supose yes AND HOW???
    Thanks in advanced.

    Might look at: https://jsfportletbridge.dev.java.net to get started.

  • Transaction problem with stateless EJB and DAO

    Hi,
    I'm using a stateless session bean with container managed transaction and I have a method, which updates a row via CMP entity bean and then calls stored procedure, using a DAO object, which has to use the updated data. Both calls must be done in one transaction. The problem is that the stored procedure doesn't see the changes made from the update via CMP EJB, but after the method exits the changes are in the database. I'm using WebSphere 4.0.3 and DB2 7.2. Method code example in the stateless bean:
    public doIt(ValueObject vo) throws ... {
    OrderPosRemote opr = getOrderPosRemote();
    opr.update(vo);
    getDAO().recalc(vo);
    } catch (DAOException daoex) {
    getSessionContext().setRollbackOnly();
    And in the DAO:
    public boolean recalc(...) throws DAOException {
    Connection conn = getConnFromDataSource();
    CallableStatement cstmt = conn.prepareCall("call ...(?,?)");
    cstmt.execute();
    ... // close cstmt and release connection to the pool
    Any help will be highly appreciated !

    Hi meadandale,
    this was my first guess too and I set this attribute in the session bean method, then into the update method of the CMP bean and "manually" to the connection object in the DAO like this:
    conn.setTransactionIsolation(Connection.TRANSACTION_READ_UNCOMMITTED);
    The isolation level is set correctly (IMHO), because when I comment the line above in the DAO, an exception is thrown stating that the isolation level can't be changed within a transaction.
    Unfortenully this didn't help too. Should I set some special attribute to the database or connection pool additionally ?
    I don't understand what is the problem actually - it is definitely one transaction and why this doesn't work is not very clear to me ...

  • Problem with jikes & EJB

    I've been experiencing a problem using jikes to compile EJBs. Has anyone
    has this type of problem and is there a known fix?
    The beans seem to compile fine, but I get an error when trying to deploy
    them. Here's the error:
    weblogic.ejb.common.DeploymentException: Unexpected I/O exception during
    deployment:
    weblogic.ejb.common.DeploymentException: Problem deploying a bean:
    java.lang.VerifyError: (class:
    com/criatech/contractstation/party/provider/PartyManagerBeanEOImpl_ServiceSt
    ub, method: ensureInitialized signature: ()V) Illegal target of jump or
    branch
    at java.lang.Class.getConstructor0(Native Method)
    at java.lang.Class.getConstructor(Class.java:886)
    Thoughts?
    - Doug

    That seems to be the problem. It only happens on one bean which is a very
    large one. It appears to work ok with the javac 1.3 compiler, but no luck
    with jikes. It's unfortunate, because jikes is SO much faster.
    At least I know someone else is seeing this problem. Thanks for the info.
    - Doug
    "Toby Allsopp" <[email protected]> wrote in message
    news:[email protected]..
    Hi.
    This sounds a bit like a problem we were having when compiling one of the
    generated classes for a bean with a huge number of methods (~400). The
    ensureInitialised method (I think, it might be a different method now -the
    name of the class changes in every WLS version) got so big that some ofthe
    jump instructions needed to become wide jump instructions but both javacand
    jikes got it wrong.
    For us, the workaround was (and still is) to use kjc(http://www.dms.at/kopi/)
    to compile the generated classes.
    This may or may not be your problem, however.
    Toby.
    Doug Cunningham wrote:
    I've been experiencing a problem using jikes to compile EJBs. Has
    anyone
    has this type of problem and is there a known fix?
    The beans seem to compile fine, but I get an error when trying to deploy
    them. Here's the error:
    weblogic.ejb.common.DeploymentException: Unexpected I/O exception during
    deployment:
    weblogic.ejb.common.DeploymentException: Problem deploying a bean:
    java.lang.VerifyError: (class:
    com/criatech/contractstation/party/provider/PartyManagerBeanEOImpl_ServiceSt
    ub, method: ensureInitialized signature: ()V) Illegal target of jump or
    branch
    at java.lang.Class.getConstructor0(Native Method)
    at java.lang.Class.getConstructor(Class.java:886)
    Thoughts?
    - Doug

  • Problem with JAAS authentication using jboss client

    I'm trying to make a little compiled application works. It has two parts: a little client(one class) and a server part which runs on a jboss server, and comunicates between them using JAAS + SSL. It works perfectly alone if I run it in a java project, without the messing sap JAAS implementation.
    I followed all the steps in:
    https://websmp101.sap-ag.de/~sapidb/011000358700003517632004E.PDF
    and managed to apply the configuration into the security service of WAS, using <b>jboss-client.jar</b> as the library with the login module, and <b>org.jboss.security.ClientLoginModule</b> as the login module.
    I included the client class into a web service developed for my WAS, packing the class and its library plus jboss-client.jar into my EAR.
    But when it tries to do the authentication, sometimes it uses:
    <b>org.jboss.security.ClientLoginModule</b> (that's the correct class) but throws a "<b>User is locked</b>" exception.
    Have I need to create the user who I use to connect to jboss in my WAS UME ? This has no much sense. Anyway doesn't work either, and the user is not locked.
    Other times (withouth changing anything) it uses:
    <b>com.sap.engine.system.SystemLoginModule</b> and throws this exception:
    <b>com.sap.engine.services.security.exceptions.BaseLoginException</b>: Call logout before login
    I have nightmares trying to integrate things which works in every application server but WAS. Why couldn't they simply follow the standard!?
    I'm thinking in installing a tomcat with the client, and use axis to wrap it with a web service I can consume from my WAS. Not very elegant solution.
    I think it maybe has something to do with specific callback classes from sap implementation.
    Any idea? I can't go forward.

    Did you resolve this problem? Please let me know. I have the same issue now and don;t know what I should be doing next

  • JDeveloper 2.0 - problem with Deploying EJB

    Hi,
    I have a problem when trying to deply the ACME example EJB's to the Oracle 8i DB. While creating the deployment profile, I've given all the details and even tested the connection with success. When I press finish in the deployment wizard, I get a blank error message-box with just the OK button. Could you help me please.
    Thanks,
    Chandika

    I seem to have sorted this problem. Now I get the following error message when trying to deply to Oracle 8i.
    *** Invoking the Oracle8i deployment utility ***
    java.lang.NullPointerException java.lang.Object java.util.Hashtable.put(java.lang.Object, java.lang.Object)
    void oracle.aurora.server.tools.sess_iiop.WindowsFSContext.<init>(java.util.Hashtable)
    void oracle.aurora.server.tools.sess_iiop.LocalWorkingDirectory.<init>(java.util.Properties)
    void oracle.aurora.server.tools.sess_iiop.ToolImpl.initializeLocal()
    java.lang.String[] oracle.aurora.server.tools.sess_iiop.ToolImpl.parseStdArgs(java.lang.String[])
    void oracle.aurora.server.tools.sess_iiop.ToolImpl.invoke(java.lang.String[], java.io.InputStream, java.io.PrintStream, java.io.PrintStream)
    void oracle.jdeveloper.wizard.deployment.EJBDeployMonitor.run()
    void oracle.jdeveloper.wizard.common.ProgressDialog.run()
    void java.lang.Thread.run()
    null

  • Strange problem with Eclipse, JAXB and JBoss

    Hello,
    I've been confronted to a very strange problem for the last week, and I still can't manage to fix it. I'm working on a J2EE application, using JBOSS. One of its functionality require the use of XML parsing. For this task, I've used JAXB since everyone in my company use this library. So I've written a small test class, that read my XML file, unmarshal it to java beans, and then write it back to another file (just for testing purpose only, I'm not trying to make the worst "copy" implementation ever done :) .)
    jaxbContext = JAXBContext.newInstance(ObjectFactory.class.getPackage().getName());
    Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();
    //Unmarshal from XML to Bean
    XMLResult result = (XMLResult)unmarshaller.unmarshal(new File("path/to/file/myTestFile.xml"));
    //[Test] marshal back to XML
    Marshaller marshaller = jaxbContext.createMarshaller();
    marshaller.marshal(result, new File("path/to/file/output.xml"));When I run this file, I first get an error about namespaces...
    unexpected element (uri:"http://myNamespace.com", local:"XMLResult"). Expected elements are <{http://myNamespace.com/}Patient>,<{}Episode>, ..... <{}XMLResult>, etc...
    (Result is the root, patient and episode are sub elements)
    I have absolutely no idea why my root (XMLResult) should have no namespace, but some other elements should, and some shouldn't... but that's not the real problem. I've tried to fix this for days, changing namespaces, removing them.. but it didn't work. And then, I once chose to clean my project in Eclipse, and re-run my test. and it worked... !
    After some changes to the XSD, I re-run XJC, then recompile my project, and re-deploy it to JBOSS. I ran my test once more and... same error as before. Then, again, I clean the project.. and the test worked.
    So when I use the basic compiler for eclipse, everything works, but if I choose to use ant to build and deploy, it won't... even if they are supposed to be the same (run configuration / jre / use same as workspace). Here is an example of XML file I'm trying to read, and the related XSD :
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
    elementFormDefault="qualified"
    targetNamespace="http://myNamespace.com"
    xmlns:ar="http://myNamespace.com">
    <xs:element name="XMLResult">
         <xs:complexType>
              <xs:sequence>               
                   <xs:element ref="ar:Patient"/>
                   <xs:element ref="ar:Episode"/>
              </xs:sequence>          
         </xs:complexType>
    </xs:element>
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <XMLResult xmlns="http://myNamespace.com">
      <Patient >
      </Patient>
      <Episode >
      </Episode>
    </XMLResult>Any idea of what I'm doing wrong? I think I've tried everything.... and looked everywhere, but had no success :/ I still don't know why it work with the basic compilation, or why my namespaces are wrong... (if they are).

    I don?t know if its a bug of the lomboz, if it is,
    please tell me what to do.It is a bug in Lomboz. It has a forum here: http://forge.objectweb.org/forum/forum.php?forum_id=360.

  • Problem with selectNodes() in dom4j & jboss

    Hi,
    Iam facing some problem in parsing an xml file.
    The xml file is parsed perfectly and iam able to display the data inside it also using the rootelement.
    when iam calling selectNodes(Xpath expression), iam getting a ClassNotFoundException. i pasted Dom4j1.6.8.jar and jaxen-full.jar in JBoss server lib.
    Then also the problem is not solved. Here is my java file method, XML file and Exception.
    public static HashMap getDBConfigurtion() throws DAOException{
                XMLConfig xmlMain = new XMLConfig();
             String str = "../../../xml/config/config.xml";
            Document document = null;
            try {
              System.out.println("Inside GetDBConfiguration Try .. Before parse");
                document = xmlMain.parse(str);
                  System.out.println("INSIDE TRY AFTR DOC.. Nodes no.."+ document.nodeCount()+"Node Type is.."+document.getNodeType());
                //HashMap hash=new HashMap();
                //hash=document.
                return xmlMain.getConfig(document);
             } catch (Exception e) {
                 throw new DAOException("Excepiton in getDBConfiguration",e,false);
    public Document parse(String url) throws DocumentException {
            SAXReader reader = new SAXReader();
            Document document = reader.read(url);
            return document;
        public HashMap getConfig(Document document) throws DocumentException {
          //read the datasources
             System.out.println("XML CONFIG:: getConfig");/////////////////this is printed
            List lisNodes =  (List) document.selectNodes("//dbconfig/dbparams/datasources/datasource");//////////////ERROR HERE -NOT EXECUTED
            System.out.println("After selectNodes..size is"+lisNodes);
            for(int i=0;i<lisNodes.size();i++)
                 System.out.println("In for"+lisNodes.get(i));
            HashMap hmDataSources = new HashMap();
            for (Iterator iter = lisNodes.iterator(); iter.hasNext(); ) {
               Node n = (Node)iter.next();
               System.out.println("Node is.."+n.getName());
               hmDataSources.put(n.valueOf("@id"), n.getText());
               System.out.println("Datasources id:"+ n.valueOf("@id")+": Text :" + n.getText());
    /* begin config.xml*/
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE dbconfig SYSTEM "dbconfig.dtd">
    <dbconfig>
         <dbparams>
              <datasources>
                   <datasource Id="dsmysql">java:/MySQLDB</datasource>
              </datasources>
              <sqlproperties>
                   <sqlproperty id="maxfetchsize">10</sqlproperty>
                   <sqlproperty id="restrictchars">x</sqlproperty>
                   <sqlproperty id="deleteAllowed">false</sqlproperty>
              </sqlproperties>
         </dbparams>
         <!-- specifies the sqlrepositories locations -->
         <sqlrepositorypath>
              <sqlrepository Id="id1">../../../xml/module1/selectsql.xml</sqlrepository>
         </sqlrepositorypath>
    </dbconfig>
    /*end of file config.xml */
    Exception:-
    java.lang.NoClassDefFoundError: org/dom4j/xpath/DefaultXPath
    org.dom4j.DocumentFactory.createXPath(DocumentFactory.java:230)
    org.dom4j.tree.AbstractNode.createXPath(AbstractNode.java:207)
    org.dom4j.tree.AbstractNode.valueOf(AbstractNode.java:189)
    com.tsd.common.XMLConfig.getDBConfigurtion(Unknown Source)
    com.tsd.dao.DBDelegator.getSqlContext(Unknown Source)
    com.tsd.dao.DBDelegator.invoke(Unknown Source)
    BackingClass.display(Unknown Source)
    UserBean.display(Unknown Source)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    please give me some idea to resolve this.

    JBoss is using Dom4J for their own stuff: it probably supersedes your version. So you have to either:
    * forget Dom4J and use JAXP, which is standard and offer all you need,
    * replace Dom4J that ships with JBoss with yours (in JBOSS_ROOT/lib), but this might have adverse consequences

  • Problems with storing EJB Remote in session and retrieving.

    We store EJB remote object in session and differnt clients retrieve it from session
    before making a business method call. This seems to work in most cases but some
    times it gives the exception attached. This happens only in a clustered environment.
    What has been observed is that if we put the remote object inside a hashtable
    which in-turn is stored in session retrieval from hashtable does not give this
    problem.
    Any suggestion / solution would be greatly appreciated.
    regards,
    Rajesh
    The exception Stack trace is attached
    java.rmi.NoSuchObjectException: Unable to locate EJBHome: 'BalconHome' on server:
    't3://176.19.183.6,176.19.183.15:9616
    at weblogic.ejb20.internal.HomeHandleImpl.getEJBHome(HomeHandleImpl.java:80)
    at weblogic.ejb20.internal.HandleImpl.getEJBObject(HandleImpl.java:184)
    at weblogic.servlet.internal.session.SessionData.getAttribute(SessionData.java:395)
    at com.chase.ccs.util.AccountInfoAccessor.setCurrentAccountAttributeBalcon(AccountInfoAccessor.java:362)
    at com.chase.ccs.util.ModelAccessor.initBlaconOfferModel(ModelAccessor.java:311)
    at com.chase.ccs.balancetransfer.OfferPortlet.service(OfferPortlet.java:88)
    at com.chase.ccs.balancetransfer.OfferView.pageStart(OfferView.java:65)
    at com.chase.ccs.util.ModuleStarter.doAllPageStart(ModuleStarter.java:236)
    at jsp_servlet._templates._template0005._UXaQVaXTUaSYaWaSRZfdXbWSfYXbTRQb.__ccs_mm_tgl_pfp_grid._jspService(__ccs_mm_tgl_pfp_grid.java:316)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
    at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:482)
    at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:308)
    at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:116)
    at com.epicentric.servlets.ServletUtils.include(ServletUtils.java:150)
    at com.epicentric.template.Style.execute(Style.java:538)
    at com.epicentric.taglib.html.IncludeGridTag.doStartTag(IncludeGridTag.java:57)
    at jsp_servlet.__index._jspService(__index.java:560)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
    at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:242)
    at com.epicentric.servlets.stackable.SiteDispatcherServlet.service(SiteDispatcherServlet.java:195)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2546)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2260)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    [ejb exception.txt]

    Hello Rajesh,
    Thanks for your sugggestion. Rajesh Karuvat and myself are working on the same
    project.
    I want to know if there is any specific patch for this problem for weblogic 6.1
    sp3.
    The reason we can not just try Weblogic sp4 is that we are using epicentric 4.0
    that is cvertified with weblogic 6.1 sp3 and not sp4.
    I have also opened a case with bea about it. I would reaaly appretiate if you
    can check the detials about it. The case number is 376228.
    Please do revert back.
    Thanks,
    Shilpa
    Rajesh Mirchandani <[email protected]> wrote:
    Try SP4.
    Rajesh Karuvat wrote:
    we are running Weblogic 6.1 SP3
    "Rajesh Karuvat" <[email protected]> wrote:
    We store EJB remote object in session and differnt clients retrieve
    it
    from session
    before making a business method call. This seems to work in mostcases
    but some
    times it gives the exception attached. This happens only in a clustered
    environment.
    What has been observed is that if we put the remote object insidea hashtable
    which in-turn is stored in session retrieval from hashtable does not
    give this
    problem.
    Any suggestion / solution would be greatly appreciated.
    regards,
    Rajesh
    The exception Stack trace is attached
    java.rmi.NoSuchObjectException: Unable to locate EJBHome: 'BalconHome'
    on server:
    't3://176.19.183.6,176.19.183.15:9616
    at weblogic.ejb20.internal.HomeHandleImpl.getEJBHome(HomeHandleImpl.java:80)
    at weblogic.ejb20.internal.HandleImpl.getEJBObject(HandleImpl.java:184)
    at weblogic.servlet.internal.session.SessionData.getAttribute(SessionData.java:395)
    at com.chase.ccs.util.AccountInfoAccessor.setCurrentAccountAttributeBalcon(AccountInfoAccessor.java:362)
    at com.chase.ccs.util.ModelAccessor.initBlaconOfferModel(ModelAccessor.java:311)
    at com.chase.ccs.balancetransfer.OfferPortlet.service(OfferPortlet.java:88)
    at com.chase.ccs.balancetransfer.OfferView.pageStart(OfferView.java:65)
    at com.chase.ccs.util.ModuleStarter.doAllPageStart(ModuleStarter.java:236)
    at jsp_servlet._templates._template0005._UXaQVaXTUaSYaWaSRZfdXbWSfYXbTRQb.__ccs_mm_tgl_pfp_grid._jspService(__ccs_mm_tgl_pfp_grid.java:316)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
    at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:482)
    at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:308)
    at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:116)
    at com.epicentric.servlets.ServletUtils.include(ServletUtils.java:150)
    at com.epicentric.template.Style.execute(Style.java:538)
    at com.epicentric.taglib.html.IncludeGridTag.doStartTag(IncludeGridTag.java:57)
    at jsp_servlet.__index._jspService(__index.java:560)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
    at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:242)
    at com.epicentric.servlets.stackable.SiteDispatcherServlet.service(SiteDispatcherServlet.java:195)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2546)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2260)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    Rajesh Mirchandani
    Developer Relations Engineer
    BEA Support

  • Problem with an ejb Reference

    Hi all,
    So I get an ejb3 stateful reference and I put it in a distributed cache (Coherence)...Then after if I get it from cache in the same JVM where it was created then it is ok...If I get it from cache from another JVM then I have an error message
    Exception in thread "main" (Wrapped: CacheName=repl-ejb, Key=ProxyEjb) java.io.IOException: readObject failed: java.lang.IllegalArgumentException: ReferenceHelper not set
    at weblogic.rmi.extensions.server.ReferenceHelper.getReferenceHelper(ReferenceHelper.java:35)
    at weblogic.rmi.extensions.PortableRemoteObject.narrow(PortableRemoteObject.java:88)
    at weblogic.iiop.PortableRemoteObjectDelegateImpl.narrow(PortableRemoteObjectDelegateImpl.java:32)
    An idea ?
    Thank you for all..
    Christophe.

    The error apperead, because the 'release semaphore reference' was executed before the 'release semaphore'. You should force execution order in a way that 'rsr' is always executed after both 'rs'. I would suggest to use Merge Errors on both loops and pass the merged error in the 'rsr'.
    Felix
    www.aescusoft.de
    My latest community nugget on producer/consumer design
    My current blog: A journey through uml

Maybe you are looking for