• RELEVANCY SCORE 4.35

    DB:4.35:Enterprise Java Bean Client Connection To Server m3




    Can EJB client be used over IP for example from other town? Can SSL be used?

    DB:4.35:Enterprise Java Bean Client Connection To Server m3

    JBoss supports EJB over SSL, yes.

    JBoss has Tomcat embedded within it, which supports HTTP over SSL.

  • RELEVANCY SCORE 4.35

    DB:4.35:Enterprise Java Bean Client Connection To Server 9z




    Can EJB client be used over IP for example from other town? Can SSL be used?

    DB:4.35:Enterprise Java Bean Client Connection To Server 9z

    Can EJB client be used over IP for example from other town? Can SSL be used?

  • RELEVANCY SCORE 3.38

    DB:3.38:Java Bean In Forms6i m7




    Hi,

    Can a java bean be called from a form executing in Client server environment.
    If yes how can it b achieved?
    Thanks Regards,
    Abhijeet

    DB:3.38:Java Bean In Forms6i m7

    Not if you need to use any graphical component of it. For this you'll need to run on the Web.
    If you just want to invoke the logic of the bean try using the Java importer.

  • RELEVANCY SCORE 3.38

    DB:3.38:Creating Enterprise Application Client For Weblogic Server 12c 7z


    NetBeans 7.x does not support creating Enterprise application client for WebLogic Server. Looking for a work around for creating a container based session bean client, EJB 3.1 -simiilar to the below code snippet. Not a
    stand alone Java SE client.

    package demo;

    import helloworld.beans.CalenderBeanRemote;
    import javax.ejb.EJB;

    public class Main {
    @EJB
    private static CalenderBeanRemote calenderBean;

    public static void main(String[] args) {
    System.out.println("Main.main: calling CalenderBean");
    int result = CalenderBean.add(5,4);
    System.out.println("Main.main: Sum is " +result);
    }

    }

    DB:3.38:Creating Enterprise Application Client For Weblogic Server 12c 7z

    Maybe this can help: Re: Embedded EJB Container // No EJBContainer provider available

  • RELEVANCY SCORE 3.25

    DB:3.25:J2ee Application Deployment zz


    I have install the Oracle 9iAS and OC4J in Linux OS, how should I deploy my application in this two components. My application consists of JSP, Servlet, Java Bean, and Enterprise Java Bean.

    DB:3.25:J2ee Application Deployment zz

    Pang -- I think that there is some confusion here. OC4J is the J2EE container that comes with Oracle9i
    Application Server. We provide a standalone version of the product for use by the development community. In either
    case OC4J is the container you deploy your J2EE modules to. It may be that the recommendation you are hearing
    is that for your production system you should use Oracle9iAS for other reasons like the high availablity architecture
    and web cache in release 2.

    Thanks -- Jeff

  • RELEVANCY SCORE 3.16

    DB:3.16:Error Connecting To Websphere Mq From Weblogic 10.3.0 :Endpointfinder 1f


    1)We are in process of connection from weblogic 10.3.0 to websphere MQ series . We are trying connecting to the response queues using MQclient binding . I created .binding file using following configuration

    DEFINE QCF(BBNMSRMSConnectionFactory2) QMGR(ESBMBJU2) CHAN(ESBMBJU2_SSL) HOST(bos69872.bst.bls.com) PORT(1414) TEMPMODEL(WEBLOGIC.MODEL.QUEUE) TRAN(CLIENT)
    DEFINE QCF(BBNMSRMSConnectionFactory2) QMGR(ESBMBJU2) CHAN(ESBMBJU2_SSL) HOST(bos69874.bst.bls.com) PORT(1415) TEMPMODEL(WEBLOGIC.MODEL.QUEUE) TRAN(CLIENT)

    DEFINE Q(BBNMSSERESPONSEQUEUE1) QUEUE(FUSIONQL.BBNMSE.BBNMSTORMS.1_0.D.JU.RSP) QMGR(ESBMBJU1) TARGCLIENT(MQ)
    DEFINE Q(BBNMSSERESPONSEQUEUE2) QUEUE(FUSIONQL.BBNMSE.BBNMSTORMS.1_0.D.JU.RSP) QMGR(ESBMBJU2) TARGCLIENT(MQ)
    DEFINE QCF(BBNMSRMSCF1) QMGR(ESBMBJU1) CHAN(ESBMBJU1_SSL) HOST(bos69872.bst.bls.com) PORT(1414) TEMPMODEL(WEBLOGIC.MODEL.QUEUE) TRAN(CLIENT)
    ALTER QCF(BBNMSRMSConnectionFactory1) CHAN(ESBMBJU1_SSL) SSLCIPHERSUITE(SSL_RSA_WITH_NULL_MD5)
    ALTER QCF(BBNMSRMSConnectionFactory2) CHAN(ESBMBJU2_SSL) SSLCIPHERSUITE(SSL_RSA_WITH_NULL_MD5)

    2)The I created the foreign JMS-server as such :

    foreign-server name="ForeignRmsServer-1"
    default-targeting-enabledtrue/default-targeting-enabled
    foreign-destination name="RmsFusionBusRequestQueue1"
    local-jndi-nameRmsResponseQueue1/local-jndi-name
    remote-jndi-nameBBNMSSERESPONSEQUEUE1/remote-jndi-name
    /foreign-destination
    foreign-connection-factory name="RmsFusionBusFactory1"
    local-jndi-nameRmsFusionBusfactory1/local-jndi-name
    remote-jndi-nameBBNMSRMSConnectionFactory1/remote-jndi-name
    usernamem66300d/username
    password-encrypted xsi:nil="true"/
    /foreign-connection-factory
    initial-context-factorycom.sun.jndi.fscontext.RefFSContextFactory/initial-context-factory
    connection-urlfile:/opt/mqm/java/bin/mqjndi/connection-url
    /foreign-server

    3)Subsequently I use the JNDI names configured in foreign server(above) in weblogic-ejb-jar.xml .

    weblogic-ejb-jar xmlns="http://www.bea.com/ns/weblogic/10.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    weblogic-enterprise-bean
    ejb-nameRMSRespMDB/ejb-name
    message-driven-descriptor
    pool
    max-beans-in-free-pool10/max-beans-in-free-pool
    initial-beans-in-free-pool5/initial-beans-in-free-pool
    /pool
    destination-jndi-nameBBNMSSERESPONSEQUEUE1/destination-jndi-name
    initial-context-factorycom.sun.jndi.fscontext.RefFSContextFactory/initial-context-factory
    provider-urlfile:/opt/mqm/java/bin/mqjndi/provider-url
    connection-factory-jndi-nameBBNMSRMSConnectionFactory1/connection-factory-jndi-name
    /message-driven-descriptor
    transaction-descriptor
    trans-timeout-seconds300/trans-timeout-seconds
    /transaction-descriptor
    enable-call-by-referencetrue/enable-call-by-reference
    jndi-namejms.RMSRespMDB/jndi-name
    dispatch-policyJbbosServicesServerXQ/dispatch-policy
    /weblogic-enterprise-bean
    weblogic-compatibility
    entity-always-uses-transactiontrue/entity-always-uses-transaction
    /weblogic-compatibility
    /weblogic-ejb-jar

    4)Now when my MDB comes up its giving following error

    Mar 8, 2011 10:13:16 AM EST Error Deployer BEA-149231 Unable to set the activation state to true for the application
    'RMSRespMDB'.
    weblogic.application.ModuleException: Exception activating module: EJBModule(RMSRespMDB)

    Unable to deploy EJB: RMSRespMDB from RMSRespMDB.jar:

    unable to find EndPointFinder for file:/opt/mqm/java/bin/mqjndi

    at weblogic.ejb.container.deployer.EJBModule.activate(EJBModule.java:493)
    at weblogic.application.internal.flow.ModuleListenerInvoker.activate(ModuleListenerInvoker.java:107)
    at weblogic.application.internal.flow.DeploymentCallbackFlow$2.next(DeploymentCallbackFlow.java:411)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.activate(DeploymentCallbackFlow.java:74)
    Truncated. see log file for complete stacktrace
    java.lang.AssertionError: unable to find EndPointFinder for file:/opt/mqm/java/bin/mqjndi
    at weblogic.rmi.spi.RMIRuntime.getEndPointFinder(RMIRuntime.java:61)
    at weblogic.rmi.spi.RMIRuntime.findOrCreateEndPoint(RMIRuntime.java:42)
    at weblogic.rmi.extensions.server.RemoteDomainSecurityHelper.isRemoteDomain(RemoteDomainSecurityHelper.java:379)
    at weblogic.jms.common.ServerCrossDomainSecurityUtil.isRemoteDomain(ServerCrossDomainSecurityUtil.java:319)
    at weblogic.jms.common.ServerCrossDomainSecurityUtil.getRemoteSubject(ServerCrossDomainSecurityUtil.java:116)
    Truncated. see log file for complete stacktrace

    My binding file is correctly placed on the following location file:/opt/mqm/java/bin/mqjndi with appropriate permissions

    Some info :
    Our weblogic version is 10.3.0
    I tracked this exception (unable to find EndPointFinder) to bug id 8168598

    Can anyone please suggest what can be issue potentially

    Thanks in advance

    DB:3.16:Error Connecting To Websphere Mq From Weblogic 10.3.0 :Endpointfinder 1f

    there is a post which has become the de-facto meeting point for all the people trying to integrate WL and MQ

    http://ibswings.blogspot.com/2008/02/integrating-mq-broker-6-with-bea.html

  • RELEVANCY SCORE 3.12

    DB:3.12:Problem In Deploying Ejb From Eclipse To Bea Weblogic 8.1 pm


    hi,
    i have developed an EJB as mentioned in the tutorial of eclipse EJB Development section. I have created a TraderBean and generated the rest of the classes and interface classes and deployment descriptor through XDoclet and deployed the bean through eclipse on bea weblogic, but the problem is, it doesnt deploy the bean with the JNDI name i assigned it in the deployment descriptor, bea weblogic assigns the JNDI name by itself.

    I have also developed my client which calls my ejb bean but it couldnt lookup my EJB because it isnt deployed with the JNDI name i gave it.

    How can i make the ejb deployed to bea with the my JNDI name?? Below i am attaching the weblogic-ejb-jar.xml and my client lookup method.

    Please reply ASAP

    Thanks
    Mak

    **********weblogic-ejb-jar.xml**************
    ?xml version="1.0" encoding="UTF-8"?

    !DOCTYPE weblogic-ejb-jar PUBLIC "-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN" "http://www.bea.com/servers/wls600/dtd/weblogic-ejb-jar.dtd"

    weblogic-ejb-jar
    description![CDATA[Generated by XDoclet]]/description
    weblogic-enterprise-bean
    ejb-nameTrader/ejb-name
    stateless-session-descriptor
    /stateless-session-descriptor
    reference-descriptor
    /reference-descriptor

    jndi-namefirstEJB/jndi-name
    /weblogic-enterprise-bean
    !--
    To add enterprise beans that you have deployment descriptor info for, add
    a file to your XDoclet merge directory called weblogic-enterprise-beans.xml that contains
    the weblogic-enterprise-bean/weblogic-enterprise-bean markup for those beans.
    --

    /weblogic-ejb-jar
    ********************************************

    ********** lookuphome***********************
    //url is "t3://localhost:7001"

    private TraderHome lookupHome() throws NamingException {
    Context ctx = getInitialContext();
    try {

    Object home = (TraderHome) ctx.lookup("firstEJB");
    // also tried ctx.lookup("ejb/firstEJB")

    return (TraderHome) PortableRemoteObject.narrow(home, TraderHome.class);
    //return (TraderHome) narrow(home, TraderHome.class);

    } catch (NamingException ne) {
    log("The client was unable to lookup the EJBHome. Please make sure ");
    log("that you have deployed the ejb with the JNDI name "+
    JNDI_NAME+" on the WebLogic server at "+url);
    throw ne;
    }
    }

    private Context getInitialContext() throws NamingException {
    try {
    // Get an InitialContext
    Hashtable h = new Hashtable();
    h.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
    h.put(Context.PROVIDER_URL, url);
    return new InitialContext(h);
    } catch (NamingException ne) {
    log("We were unable to get a connection to the WebLogic server at "+url);
    log("Please make sure that the server is running.");
    throw ne;
    }
    }

    **************************************************

    DB:3.12:Problem In Deploying Ejb From Eclipse To Bea Weblogic 8.1 pm

    when i click on the weblogic-ejb-jar.xml on weblogic, it gives me the following error: "Could not read descriptor file".

    i posted the weblogic-ejb-jar.xml earlier in my qs.

  • RELEVANCY SCORE 3.11

    DB:3.11:Ejb 3.0 &Amp; Netbeans 5.5 38


    I have tried to create simple EJB 3.0 project with Netbeans 3.0. (SJAS 9.0)

    New project - Enterprise - Enterprise application.
    My project is "first", uncheck "Create Web Application module", check "Create Application Client Module".

    Next, I create Stateless Bean.
    In first-ejb- Source Packages create java package "test".
    In package test right click mouse and select New-File/Folder-Enterprise-Session Bean

    Choose "Next", then create bean "MyTest"
    Session type: Stateless
    Create interface: remote only.

    Add public metod String getAnswer().

    Next in client application main class add Enterprise call.
    In Main.java right click and choose Enterprise resources-Call Enterprise Bean, choose MyTestBean.

    Add some code to main class:
    System.out.println(myTestBean.getAnswer());
    Build, Deploy, Run client application.

    I got NullPointerException in main class and this message in Application Server log:
    Class [ Ltest/MyTestRemote; ] not found. Error while loading [ class first.Main ]
    Error in annotation processing: java.lang.NoClassDefFoundError: Ltest/MyTestRemote;

    I do nothing with code anywere, and not modified any xml files.
    Where could I take any mistakes?

    Thanks you!

    My code:
    package test;

    MyTestRemote.java
    import javax.ejb.Remote;

    /**
    * This is the business interface for MyTest enterprise bean.
    */
    @Remote
    public interface MyTestRemote {
    String getAnswer();
    }MyTestBean.java
    package test;

    import javax.ejb.Stateless;

    /**
    *
    * @author andrey
    */
    @Stateless
    public class MyTestBean implements test.MyTestRemote {

    /** Creates a new instance of MyTestBean */
    public MyTestBean() {
    }

    public String getAnswer() {
    return "Simple answer";
    }

    }Main.java
    package first;

    import javax.ejb.EJB;
    import test.MyTestRemote;

    /**
    *
    * @author andrey
    */
    public class Main {

    @EJB
    private static MyTestRemote myTestBean;

    /** Creates a new instance of Main */
    public Main() {
    }

    /**
    * @param args the command line arguments
    */
    public static void main(String[] args) {
    // TODO code application logic here
    System.out.println(myTestBean.getAnswer());
    }

    }

    DB:3.11:Ejb 3.0 &Amp; Netbeans 5.5 38

    I have tried to create simple EJB 3.0 project with Netbeans 3.0. (SJAS 9.0)

    New project - Enterprise - Enterprise application.
    My project is "first", uncheck "Create Web Application module", check "Create Application Client Module".

    Next, I create Stateless Bean.
    In first-ejb- Source Packages create java package "test".
    In package test right click mouse and select New-File/Folder-Enterprise-Session Bean

    Choose "Next", then create bean "MyTest"
    Session type: Stateless
    Create interface: remote only.

    Add public metod String getAnswer().

    Next in client application main class add Enterprise call.
    In Main.java right click and choose Enterprise resources-Call Enterprise Bean, choose MyTestBean.

    Add some code to main class:
    System.out.println(myTestBean.getAnswer());
    Build, Deploy, Run client application.

    I got NullPointerException in main class and this message in Application Server log:
    Class [ Ltest/MyTestRemote; ] not found. Error while loading [ class first.Main ]
    Error in annotation processing: java.lang.NoClassDefFoundError: Ltest/MyTestRemote;

    I do nothing with code anywere, and not modified any xml files.
    Where could I take any mistakes?

    Thanks you!

    My code:
    package test;

    MyTestRemote.java
    import javax.ejb.Remote;

    /**
    * This is the business interface for MyTest enterprise bean.
    */
    @Remote
    public interface MyTestRemote {
    String getAnswer();
    }MyTestBean.java
    package test;

    import javax.ejb.Stateless;

    /**
    *
    * @author andrey
    */
    @Stateless
    public class MyTestBean implements test.MyTestRemote {

    /** Creates a new instance of MyTestBean */
    public MyTestBean() {
    }

    public String getAnswer() {
    return "Simple answer";
    }

    }Main.java
    package first;

    import javax.ejb.EJB;
    import test.MyTestRemote;

    /**
    *
    * @author andrey
    */
    public class Main {

    @EJB
    private static MyTestRemote myTestBean;

    /** Creates a new instance of Main */
    public Main() {
    }

    /**
    * @param args the command line arguments
    */
    public static void main(String[] args) {
    // TODO code application logic here
    System.out.println(myTestBean.getAnswer());
    }

    }

  • RELEVANCY SCORE 3.10

    DB:3.10:Java Objects To Xml pk


    hi friends,

    I made an API which converts the Java Objects to XML at the runtime, same way it convert the XML to Java Object also. I have seen same kind of thing developed by apple which is called WebObjects. Currently my adapter supports string, string array, int , int array, float , float array, double, double array, vector. Basically to transfer the Java Value objects which is pushed out from the Enterprise Bean.

    With this I can adopt any kind of client and server and business logic can be in Java Platform.

    Is any such thing is already in the Java Community. If there is please give me the details, like to study more about it.

    Rgds,

    Balaji

    DB:3.10:Java Objects To Xml pk

    XMLBeans and JAXB technologies convert Java Objects to XML.

  • RELEVANCY SCORE 3.05

    DB:3.05:Job Scheduler In 7.3 - Facing Issue 'Does Not Have A Connection Factory Name' 8j



    Hi All,

    I am getting error

    Job "TestScheduler" of bean "TestScheduler" does not have a connection factory name. The connection factory name for jobs must be "JobQueueFactory".

    Steps that I have followed are bit different from what is mentioned in document "SAP NW Scheduler for Java" pdf document of SAP; as I am working in 7.3

    a) Created EJB Project

    b) Created Message Driven Bean(JobSchedulerMDB.jav)

    c) Created SchedulerJob(TestScheduler.java)

    I dont see application-j2ee-engine.xml ; but have

    ejb-j2ee-engine.xml

    ejb-jar.xml

    job-defination.xml

    with following xml in them

    ejb-j2ee-engine.xml

    ?xml version="1.0" encoding="UTF-8"?

    ejb-j2ee-engine xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ejb-j2ee-engine_3_0.xsd"

    enterprise-beans

    enterprise-bean

    ejb-nameJobSchedulerMDB/ejb-name

    jndi-nameJobSchedulerMDB/jndi-name

    bean-props

    property

    property-namedestination-name/property-name

    property-valueJobQueue/property-value

    /property

    property

    property-nameconnection-factory-name/property-name

    property-valueJobQueueFactory/property-value

    /property

    /bean-props

    /enterprise-bean

    /enterprise-beans

    /ejb-j2ee-engine

    --------------------------------------------

    ejb-jar.xml

    ?xml version="1.0" encoding="UTF-8"?

    ejb-jar xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:ejb="http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd" version="3.0"

    display-name

    JobSchedulerEJBProject /display-name

    ejb-client-jarJobSchedulerEJBProjectClient.jar/ejb-client-jar

    /ejb-jar

    --------------------------------------------

    job-defination.xml

    ?xml version="1.0" encoding="UTF-8" standalone="no"?

    job-definitions

    job-definition name="TestScheduler"/

    enterprise-beans

    enterprise-bean

    ejb-nameJobSchedulerMDB/ejb-name

    jndi-nameJobSchedulerMDB/jndi-name

    resource-ref

    res-ref-nameJobQueueFactory/res-ref-name

    /resource-ref

    message-destination-ref

    message-destination-ref-nameJobQueue/message-destination-ref-name

    jndi-nameJobQueue/jndi-name

    /message-destination-ref

    /enterprise-bean

    /enterprise-beans

    /job-definitions

    --------------------------

    TestScheduler.java

    @MessageDriven(activationConfig = { @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"), @ActivationConfigProperty(propertyName = "messageSelector", propertyValue = "JobDefinition=\'TestScheduler\' AND ApplicationName=\'sap.com/JobSchedulerEJBProjectEAR\'") })public class TestScheduler extends MDBJobImplementation { /** * @see MDBJobImplementation#MDBJobImplementation() */ public TestScheduler() { super(); // TODO Auto-generated constructor stub }

    @Override public void onJob(JobContext jobContext) throws Exception { Logger log = jobContext.getLogger(); log.info("Hello World!"); }

    }

    ----------------------------

    JobSchedulerMDB.java

    @MessageDriven( activationConfig = { @ActivationConfigProperty( propertyName = "destinationType", propertyValue = "javax.jms.Queue" ) })public class JobSchedulerMDB implements MessageListener {

    /** * Default constructor. */ public JobSchedulerMDB() { // TODO Auto-generated constructor stub } /** * @see MessageListener#onMessage(Message) */ public void onMessage(Message message) { // TODO Auto-generated method stub }

    }

    Please help me in this

    Regards,

    Ganga.

    DB:3.05:Job Scheduler In 7.3 - Facing Issue 'Does Not Have A Connection Factory Name' 8j


    Hi,

    I was able to overcome the issue. More details can be found at : http://scn.sap.com/people/gangadharayya.virupakshayyahiremat/blog/2012/08/31/sap-portal-73-custom-task-development-java-scheduler-illustrated

    Thanks,

    Ganga

  • RELEVANCY SCORE 3.02

    DB:3.02:Java Bean And Coldfusion Bean ca


    Hi all,

    Is there a way for Java application (@ client site) can access a coldfusion bean on the server ?

    I know that coldfusion bean was designed based from EJB, and I thought it may be possible for client to use the bean to access information on the server.

    If it is not possible, what would be the best communication to be used between a Java program sits at client to communicate with a coldfusion server ?

    DB:3.02:Java Bean And Coldfusion Bean ca

    Hi all,

    Is there a way for Java application (@ client site) can access a coldfusion bean on the server ?

    I know that coldfusion bean was designed based from EJB, and I thought it may be possible for client to use the bean to access information on the server.

    If it is not possible, what would be the best communication to be used between a Java program sits at client to communicate with a coldfusion server ?

  • RELEVANCY SCORE 3.02

    DB:3.02:Message Driven Bean Reading Multiple Times From A Jms Queue ax


    Hi,

    I am facing a strange problem with my message driven bean. Its configured to read message from a jms queue. But sometimes it read the same message multiple times from the jms queue.

    We are using weblogic server 8.1 sp5.

    Please find below our descriptor files
    ejb-jar.xml
    -------------


    ejb-jar
    display-nameClarifyCRM_Process_Manager_13.1/display-name
    enterprise-beans
    session
    display-nameProcessManager/display-name
    ejb-nameProcessManager/ejb-name
    homecom.clarify.procmgr.ejb.ProcessManagerHome/home
    remotecom.clarify.procmgr.ejb.ProcessManagerRemote/remote
    ejb-classcom.clarify.procmgr.ejb.ProcessManagerEJB/ejb-class
    session-typeStateless/session-type
    transaction-typeContainer/transaction-type
    /session
    message-driven
    display-nameProcessManagerListener/display-name
    ejb-nameProcessManagerListener/ejb-name
    ejb-classcom.clarify.procmgr.ejb.ProcessManagerMDB/ejb-class
    transaction-typeBean/transaction-type
    acknowledge-modeAuto-acknowledge/acknowledge-mode
    message-driven-destination
    destination-typejavax.jms.Queue/destination-type
    /message-driven-destination

    /message-driven
    /enterprise-beans

    assembly-descriptor
    container-transaction
    method
    ejb-nameProcessManager/ejb-name
    method-name*/method-name
    /method
    trans-attributeRequired/trans-attribute
    /container-transaction
    /assembly-descriptor

    /ejb-jar


    weblogic-ejb-jar.xml
    ---------------------

    weblogic-ejb-jar
    weblogic-enterprise-bean
    ejb-nameProcessManager/ejb-name
    stateless-session-descriptor
    pool
    max-beans-in-free-pool100/max-beans-in-free-pool
    initial-beans-in-free-pool10/initial-beans-in-free-pool
    /pool

    /stateless-session-descriptor

    enable-call-by-referenceFalse/enable-call-by-reference
    jndi-nameProcessManagerHome/jndi-name
    dispatch-policyPMExecuteQueue/dispatch-policy
    remote-client-timeout0/remote-client-timeout
    /weblogic-enterprise-bean
    weblogic-enterprise-bean
    ejb-nameProcessManagerListener/ejb-name
    message-driven-descriptor
    pool
    max-beans-in-free-pool100/max-beans-in-free-pool
    initial-beans-in-free-pool10/initial-beans-in-free-pool
    /pool

    destination-jndi-nameclarify.procmgr.jms.queue.Execution/destination-jndi-name
    connection-factory-jndi-nameclarify.procmgr.jms.factories.ExecConnection/connection-factory-jndi-name
    /message-driven-descriptor

    enable-call-by-referenceTrue/enable-call-by-reference
    dispatch-policyPMListenerExecuteQueue/dispatch-policy
    remote-client-timeout0/remote-client-timeout
    /weblogic-enterprise-bean
    /weblogic-ejb-jar The MDB is sometimes reading multiple times from clarify.procmgr.jms.queue.Execution
    Also i would like to add here that the connection factory we are using clarify.procmgr.jms.factories.ExecConnection is having the following properties
    ServerAffinity Enabled=true
    XA connection factory enabled=false.

    Please help me out here!!

    DB:3.02:Message Driven Bean Reading Multiple Times From A Jms Queue ax

    Hi,

    I am facing a strange problem with my message driven bean. Its configured to read message from a jms queue. But sometimes it read the same message multiple times from the jms queue.

    We are using weblogic server 8.1 sp5.

    Please find below our descriptor files
    ejb-jar.xml
    -------------


    ejb-jar
    display-nameClarifyCRM_Process_Manager_13.1/display-name
    enterprise-beans
    session
    display-nameProcessManager/display-name
    ejb-nameProcessManager/ejb-name
    homecom.clarify.procmgr.ejb.ProcessManagerHome/home
    remotecom.clarify.procmgr.ejb.ProcessManagerRemote/remote
    ejb-classcom.clarify.procmgr.ejb.ProcessManagerEJB/ejb-class
    session-typeStateless/session-type
    transaction-typeContainer/transaction-type
    /session
    message-driven
    display-nameProcessManagerListener/display-name
    ejb-nameProcessManagerListener/ejb-name
    ejb-classcom.clarify.procmgr.ejb.ProcessManagerMDB/ejb-class
    transaction-typeBean/transaction-type
    acknowledge-modeAuto-acknowledge/acknowledge-mode
    message-driven-destination
    destination-typejavax.jms.Queue/destination-type
    /message-driven-destination

    /message-driven
    /enterprise-beans

    assembly-descriptor
    container-transaction
    method
    ejb-nameProcessManager/ejb-name
    method-name*/method-name
    /method
    trans-attributeRequired/trans-attribute
    /container-transaction
    /assembly-descriptor

    /ejb-jar


    weblogic-ejb-jar.xml
    ---------------------

    weblogic-ejb-jar
    weblogic-enterprise-bean
    ejb-nameProcessManager/ejb-name
    stateless-session-descriptor
    pool
    max-beans-in-free-pool100/max-beans-in-free-pool
    initial-beans-in-free-pool10/initial-beans-in-free-pool
    /pool

    /stateless-session-descriptor

    enable-call-by-referenceFalse/enable-call-by-reference
    jndi-nameProcessManagerHome/jndi-name
    dispatch-policyPMExecuteQueue/dispatch-policy
    remote-client-timeout0/remote-client-timeout
    /weblogic-enterprise-bean
    weblogic-enterprise-bean
    ejb-nameProcessManagerListener/ejb-name
    message-driven-descriptor
    pool
    max-beans-in-free-pool100/max-beans-in-free-pool
    initial-beans-in-free-pool10/initial-beans-in-free-pool
    /pool

    destination-jndi-nameclarify.procmgr.jms.queue.Execution/destination-jndi-name
    connection-factory-jndi-nameclarify.procmgr.jms.factories.ExecConnection/connection-factory-jndi-name
    /message-driven-descriptor

    enable-call-by-referenceTrue/enable-call-by-reference
    dispatch-policyPMListenerExecuteQueue/dispatch-policy
    remote-client-timeout0/remote-client-timeout
    /weblogic-enterprise-bean
    /weblogic-ejb-jar The MDB is sometimes reading multiple times from clarify.procmgr.jms.queue.Execution
    Also i would like to add here that the connection factory we are using clarify.procmgr.jms.factories.ExecConnection is having the following properties
    ServerAffinity Enabled=true
    XA connection factory enabled=false.

    Please help me out here!!

  • RELEVANCY SCORE 3.02

    DB:3.02:Oia 11.1.1.5.3 Patch Installation Issue 38


    Hi
    Can you please help on this

    Intalled patch p13835552_111150_Generic to upgrade from OIA 11.1.1.5 to OIA 11.1.1.5.3
    But getting errors and OIA is not getting up when we start tomcat.

    Java version
    [root@XX]# java -version
    java version "1.5.0_15"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_15-b04)
    Java HotSpot(TM) Client VM (build 1.5.0_15-b04, mixed mode, sharing)

    App Server:
    tomcat-6.0.28-preconfigured

    Database
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 Production

    Errors:
    13:06:08,599 ERROR [OiaUcpPoolDataSourceFactory] ucpManager is null here
    13:06:10,730 ERROR [ContextLoader] Context initialization failed
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'certificationEventListener' defined in ServletContext resource [WEB-INF/idc-context.xml]: Cannot resolve reference to bean 'rbacxIDCService' while setting bean property 'rbacxIDCService'; nested exception is
    .....
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.vaau.rbacx.iam.service.impl.RbacxIAMServiceImpl#f0b4a3' defined in ServletContext resource [WEB-INF/iam-context.xml]: Cannot resolve reference to bean 'oimSolution' while setting bean property 'iamSolutions' with key [TypedStringValue: value [oracle], target type [null]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'oimSolution' defined in ServletContext resource [WEB-INF/oim-11g-context.xml]: Instantiation of bean failed; nested exception is java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class Thor.API.Exceptions.tcGroupNotFoundException)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
    .....
    ServletContext resource [WEB-INF/iam-context.xml]: Cannot resolve reference to bean 'oimSolution' while setting bean property 'iamSolutions' with key [TypedStringValue: value [oracle], target type [null]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'oimSolution' defined in ServletContext resource [WEB-INF/oim-11g-context.xml]: Instantiation of bean failed; nested exception is java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class Thor.API.Exceptions.tcGroupNotFoundException)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
    .......
    Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class Thor.API.Exceptions.tcGroupNotFoundException)
    at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2726)

    Thanks

    Edited by: user13658730 on Jun 7, 2012 5:45 AM

    DB:3.02:Oia 11.1.1.5.3 Patch Installation Issue 38

    Hi
    Can you please help on this

    Intalled patch p13835552_111150_Generic to upgrade from OIA 11.1.1.5 to OIA 11.1.1.5.3
    But getting errors and OIA is not getting up when we start tomcat.

    Java version
    [root@XX]# java -version
    java version "1.5.0_15"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_15-b04)
    Java HotSpot(TM) Client VM (build 1.5.0_15-b04, mixed mode, sharing)

    App Server:
    tomcat-6.0.28-preconfigured

    Database
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 Production

    Errors:
    13:06:08,599 ERROR [OiaUcpPoolDataSourceFactory] ucpManager is null here
    13:06:10,730 ERROR [ContextLoader] Context initialization failed
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'certificationEventListener' defined in ServletContext resource [WEB-INF/idc-context.xml]: Cannot resolve reference to bean 'rbacxIDCService' while setting bean property 'rbacxIDCService'; nested exception is
    .....
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.vaau.rbacx.iam.service.impl.RbacxIAMServiceImpl#f0b4a3' defined in ServletContext resource [WEB-INF/iam-context.xml]: Cannot resolve reference to bean 'oimSolution' while setting bean property 'iamSolutions' with key [TypedStringValue: value [oracle], target type [null]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'oimSolution' defined in ServletContext resource [WEB-INF/oim-11g-context.xml]: Instantiation of bean failed; nested exception is java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class Thor.API.Exceptions.tcGroupNotFoundException)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
    .....
    ServletContext resource [WEB-INF/iam-context.xml]: Cannot resolve reference to bean 'oimSolution' while setting bean property 'iamSolutions' with key [TypedStringValue: value [oracle], target type [null]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'oimSolution' defined in ServletContext resource [WEB-INF/oim-11g-context.xml]: Instantiation of bean failed; nested exception is java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class Thor.API.Exceptions.tcGroupNotFoundException)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
    .......
    Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class Thor.API.Exceptions.tcGroupNotFoundException)
    at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2726)

    Thanks

    Edited by: user13658730 on Jun 7, 2012 5:45 AM

  • RELEVANCY SCORE 3.02

    DB:3.02:Cluster Ejb Application And Use That Ejb In Another Webapplication( Servlet ) That Is A Cluster App Too? 89


    Hi,I created a EJB application that contains an Statefull session beans, in the weblogic-ejb-jar.xml i specified that this bean is clusterable, and then i deploy it in cluster environment with separate manaded server in separate host.Also i create a web application that contains a servlet that take paramere and put it in EJB Bean that before it , i JNDI lookup to get an instance of remote interface of that Enterprise java bean for each session and store that bean in session..So lets trace my failed scenario :1- I have a cluster contains two server A and B2- I deploy a EJB enterprise application that contains an statefull session beans that contains list of items ( String items ) , on cluster.3- There is web appliation that contains a sevlet that apply an jndi lookup to get and instance of remote interface of statefull session bean and store the bean in session also get request parameter and put it in the bean as items, is deployed on the cluster too.4- I stop the server B5- I call web application context to put items in EJB bean.6- I start the server B7- I also call the web application context to put more items in bean , also fire the replication to replicat the session and also bean on server B.8- I stop the server A.9- i want to continue my work on server B, but i get EJB exception that says can't make connection to server A.But : i follow upper scenario in a simple java application and it works.What is wrong ?

    DB:3.02:Cluster Ejb Application And Use That Ejb In Another Webapplication( Servlet ) That Is A Cluster App Too? 89

    Hi,I created a EJB application that contains an Statefull session beans, in the weblogic-ejb-jar.xml i specified that this bean is clusterable, and then i deploy it in cluster environment with separate manaded server in separate host.Also i create a web application that contains a servlet that take paramere and put it in EJB Bean that before it , i JNDI lookup to get an instance of remote interface of that Enterprise java bean for each session and store that bean in session..So lets trace my failed scenario :1- I have a cluster contains two server A and B2- I deploy a EJB enterprise application that contains an statefull session beans that contains list of items ( String items ) , on cluster.3- There is web appliation that contains a sevlet that apply an jndi lookup to get and instance of remote interface of statefull session bean and store the bean in session also get request parameter and put it in the bean as items, is deployed on the cluster too.4- I stop the server B5- I call web application context to put items in EJB bean.6- I start the server B7- I also call the web application context to put more items in bean , also fire the replication to replicat the session and also bean on server B.8- I stop the server A.9- i want to continue my work on server B, but i get EJB exception that says can't make connection to server A.But : i follow upper scenario in a simple java application and it works.What is wrong ?

  • RELEVANCY SCORE 3.00

    DB:3.00:Call Client Java Proxy From Server Java Proxy mc



    Hi Gurus!!

    I'm trying to call a Client Java Proxy from a Server Java Proxy.

    Is possible to do this? I think must be possible.

    I have called this Client Java Proxy from another application, and run ok.

    I have tried to call it following the Guide to call Java Client Proxies:

    es.navantia.xi.mm.dispositivosRobotizadosKasto.MIRobotOut_PortTypeHome queryOutHome = null;

    es.navantia.xi.mm.dispositivosRobotizadosKasto.MIRobotOut_PortTypeRemote queryOutRemote = null;

    try {

    // Get naming context

    Properties p = new Properties();

    p.put(

    Context.INITIAL_CONTEXT_FACTORY,

    "com.sap.engine.services.jndi.InitialContextFactoryImpl");

    p.put(Context.PROVIDER_URL, "myurl:50104");

    p.put(Context.SECURITY_PRINCIPAL, "MMIGUEZ");

    p.put(Context.SECURITY_CREDENTIALS, mypasswrod);

    Context ctx = new InitialContext(p);

    Object ref = ctx.lookup("RobotOut");

    // Look up jndi name of proxy bean

    try {

    queryOutHome =

    (MIRobotOut_PortTypeHome) PortableRemoteObject.narrow(

    ref,

    MIRobotOut_PortTypeHome.class);

    } catch (Exception e) {

    throw new RuntimeException(e + "1");

    }

    // Get Remote interface

    queryOutRemote = queryOutHome.create();

    } catch (Exception e) {

    throw new RuntimeException(e + "2");

    }

    but I get this error

    "com.sap.aii.af.ra.ms.api.DeliveryException: Error invoking method mIRobotIn of proxy bean $Proxy351: es.navantia.xi.mm.dispositivosRobotizadosKasto.MIRobotOut_PortTypeHome: com.sap.aii.proxy.xiruntime.core.XmlInboundException: Error invoking method mIRobotIn of proxy bean $Proxy351: es.navantia.xi.mm.dispositivosRobotizadosKasto.MIRobotOut_PortTypeHome"

    es.navantia.xi.mm.dispositivosRobotizadosKasto.MIRobotOut_PortTypeHome is the corresponding PortTypeHome to the Client Java Proxy.

    I have tried to call too calling directly from the server Java Proxy to the method correcponding to the Client Java Proxy. The error I get is:

    "com.sap.aii.af.ra.ms.api.DeliveryException: Error invoking method mIRobotIn of proxy bean $Proxy351: es/navantia/xi/mm/dispositivosRobotizadosKasto/DTRobot_Type: com.sap.aii.proxy.xiruntime.core.XmlInboundException: Error invoking method mIRobotIn of proxy bean $Proxy351: es/navantia/xi/mm/dispositivosRobotizadosKasto/DTRobot_Type"

    Tha call to the client is:

    es.navantia.xi.mm.dispositivosRobotizadosKasto.MIRobotOut_PortType clase = null;

    es.navantia.xi.mm.dispositivosRobotizadosKasto.DTRobot_Type client_req = null;

    es.navantia.xi.mm.dispositivosRobotizadosKasto.DTRobotResponse_Type client_res = null;

    client_res = clase.mIRobotOut(client_req);

    Please, any help will be useful.

    Thanks and regards,

    Manuel Mguez.

    DB:3.00:Call Client Java Proxy From Server Java Proxy mc


    The problem is solved!!

    I have not added the JavaProxyClient to the .ear

  • RELEVANCY SCORE 3.00

    DB:3.00:Problems With Sending Message To Remote Jboss Server 98



    Okay I've seen versions of this problem but still can't get my client code running on my PC to connect to the queue created by my Sun machine. I have JBoss running successfully on my Sun. The example that I am using is my version of the message-driven bean example from the JBoss paid documentation. On my machine the version I used comes from c:\JBossBook-2.4.x\examples\src\main\org\jboss\chap4\ex2. I can get the MDB deployed and JBoss to run on the PC and connect to it with my PC client code. I also took the exact same code and was able to do the same on my Sun machine. Now I need to communicate from my PC to my remote Sun host. Here is the output from my PC (Windows 2000) when running the example:Buildfile: build.xmlrun-example-s: [echo] Target run-example-sprepare: [echo] prepare dir: C:\JBossBook-2.4.x\examples/build/chap4chap4-ex4-jar:run-example-s: [echo] Sending messages.... [java] Begin sendAsync [java] Begin setupPTP [java] javax.naming.ServiceUnavailableException: Connection refused: connect. Root exception is java.net.ConnectException: Connection refused: connect [java] at java.net.PlainSocketImpl.socketConnect(Native Method) [java] at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:355) [java] at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:142) [java] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:129) [java] at java.net.Socket.(Socket.java:273) [java] at java.net.Socket.(Socket.java:100) [java] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:102) [java] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:776) [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:340) [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333) [java] at javax.naming.InitialContext.lookup(InitialContext.java:350) [java] at org.jboss.chap4.ex4.SendClient.setupPTP(SendClient.java:60) [java] at org.jboss.chap4.ex4.SendClient.sendAsync(SendClient.java:81) [java] at org.jboss.chap4.ex4.SendClient.main(SendClient.java:110) [java] Exception in thread "main" [java] Java Result: 1-------------------------------------------------------Client side files:My changes to jboss.xml are: !-- For Remote Message Driven Beans -- MyRemoteProvider jnp:192.150.113.23:1099 org.jboss.jms.jndi.JBossMQProvider java:/XAConnectionFactory java:/XAConnectionFactory.....................................................and jboss.xml:.....................................................?xml version="1.0"? false resource-managers resource-manager res-namequeuefactoryref/res-name res-jndi-namejava:/RemoteJmsXA/res-jndi-name /resource-manager resource-manager res-namequeueref/res-name res-jndi-namejnp://192.150.113.23:1099/queue/B/res-jndi-name /resource-manager /resource-managers enterprise-beans message-driven ejb-nameTextMDB/ejb-name destination-jndi-namequeue/B/destination-jndi-name resource-ref res-ref-namejms/QCF/res-ref-name jndi-nameQueueConnectionFactory/jndi-name /resource-ref /message-driven /enterprise-beans.......................................................on the server side:my changes to JBoss-2.4.4_Tomcat-4.0.1/jboss/conf/catalina/jboss.jcml are: !-- For Remote Message Driven Beans -- MyRemoteProvider jnp:192.150.113.23:1099 org.jboss.jms.jndi.JBossMQProvider java:/XAConnectionFactory java:/XAConnectionFactory.....................................................and farther below in the file:.....................................................!-- JMS Remote XA Resource adapter, use this to get transacted JMS in beans -- RemoteJmsXA JCA:service=RARDeployer JMS Adapter MinervaXACMFactory !-- See the documentation for the specific connection manager implementation you are using for the properties you can set -- JmsProviderAdapterJNDI=java:MyRemoteProvider # Pool type - uncomment to force, otherwise it is the default #PoolConfiguration=per-factory # Connection pooling properties - see # org.jboss.pool.PoolParameters MinSize=0 MaxSize=10 Blocking=true GCEnabled=false IdleTimeoutEnabled=false InvalidateOnError=false TrackLastUsed=false GCIntervalMillis=120000 GCMinIdleMillis=1200000 IdleTimeoutMillis=1800000 MaxIdleTimeoutPercent=1.0 !-- Principal mapping configuration -- org.jboss.resource.security.ManyToOnePrincipalMapping....................................................and my jndi.properties file....................................................java.naming.factory.initial=org.jnp.interfaces.Naminjava.naming.factory.url.pkgs=org.jboss.naming:org.jn# Do NOT uncomment this line as it causes in VM call# RMI!#java.naming.provider.url=localhostjava.naming.provider.url=jnp://192.150.113.23:1099.......................................................lastly, my /etc/hosts file on my Sun is:.......................................................127.0.0.1 localhost192.150.113.23 reaper loghostHelp!!Thanks in advance.

    DB:3.00:Problems With Sending Message To Remote Jboss Server 98


    Please note an error that I found in my previous message. You will note that I listed the file contents below twice for jboss.xml. What I meant to add with the first snippet was from my ejb-jar.xml file. That is, please replace the first instance of:Client side files:My changes to jboss.xml are:!-- For Remote Message Driven Beans --MyRemoteProviderjnp:192.150.113.23:1099org.jboss.jms.jndi.JBossMQProviderjava:/XAConnectionFactoryjava:/XAConnectionFactory.....................................................with ejb-jar.xml:.....................................................?xml version="1.0"?!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 message-driven ejb-nameTextMDB/ejb-name ejb-classorg.jboss.chap4.ex4.TextMDB/ejb-class transaction-typeContainer/transaction-type acknowledge-modeAUTO_ACKNOWLEDGE/acknowledge-mode message-driven-destination destination-typejavax.jms.Queue/destination-type /message-driven-destination resource-ref res-ref-namejms/QCF/res-ref-name res-typejavax.jms.QueueConnectionFactory/res-type res-authContainer/res-auth /resource-ref /message-driven /enterprise-beans/ejb-jarSorry for the confusion. I appreciate any help I can get.

  • RELEVANCY SCORE 3.00

    DB:3.00:Conver Cmp1.1 Bean's Descriptor(Wls5.1) To Cmp1.1 Bean's Descriptor(Wls6.0) zd



    we have use
    $java weblogic.ejb20.utils.DDConverter -verboseLog -EJBVer 1.1 -d ../ejb20/ emr.jar

    but got error messages in using ejbc
    bash-2.03$ java weblogic.ejbc emr.jar emr1.jar

    ERROR: Error from ejbc: [9.4.1] In EJB FavoriteMREntityBean, CMP Fields must NOT
    be defined in the BeanClass
    ERROR: ejbc found errors

    here are error messages

    DDConverter starting at Jun 19, 2001 10:26:16 AM...
    Source file list:
    emr.jar
    Output directory: ../ejb20/
    WARNING: Converting connection pool reference "emdbPool" to a data source reference.
    Be sure there is a data source of that name declared in the server configuration.
    ERROR: There was an error converting the finder query from WLQL to EJB QL. The
    query text was "(= 1 1)". The exception received was:
    weblogic.ejb20.cmp.rdbms.RDBMSException: weblogic.ejb20.cmp11.rdbms.finders.IllegalExpressionException:
    weblogic.ejb20.cmp11.rdbms.finders.IllegalExpressionException:
    While trying to process null
    Invalid Operation attempted in WLQL expression: EQ
    cannot translate from WLQL to EJB QL
    Suggest that you use following EJB QL: FROM abstract-schema-name AS X
    Usage of EJB QL of this form will result in a Finder with no WHERE clause

    WARNING: Converting connection pool reference "emdbPool" to a data source reference.
    Be sure there is a data source of that name declared in the server configuration.
    ERROR: There was an error converting the finder query from WLQL to EJB QL. The
    query text was "(= 1 1)". The exception received was:
    weblogic.ejb20.cmp.rdbms.RDBMSException: weblogic.ejb20.cmp11.rdbms.finders.IllegalExpressionException:
    weblogic.ejb20.cmp11.rdbms.finders.IllegalExpressionException:
    While trying to process null
    Invalid Operation attempted in WLQL expression: EQ
    cannot translate from WLQL to EJB QL
    Suggest that you use following EJB QL: FROM abstract-schema-name AS X
    Usage of EJB QL of this form will result in a Finder with no WHERE clause

    WARNING: Because of EJB specification changes, CMP beans are not backward compatible.
    The output jar is not deployable. You need to change the source code, compile
    them with the .xml files in this jar by using ejbc, then deploy the new jar.

    !DOCTYPE weblogic-ejb-jar PUBLIC '-//BEA Systems, Inc.//DTD WebLogic 5.1.0 EJB//EN'
    'http://www.bea.com/servers/wls510/dtd/weblogic-ejb-jar.dtd'
    weblogic-ejb-jar
    weblogic-enterprise-bean
    ejb-nameEmrJcoBean/ejb-name
    jndi-nameEmrJco/jndi-name
    /weblogic-enterprise-bean
    weblogic-enterprise-bean
    ejb-nameFavoriteMaterialBean/ejb-name
    jndi-nameFavoriteMaterial/jndi-name
    /weblogic-enterprise-bean
    weblogic-enterprise-bean
    ejb-nameFavoriteMREntityBean/ejb-name
    persistence-descriptor
    persistence-type
    type-identifierWebLogic_CMP_RDBMS/type-identifier
    type-version5.1.0/type-version
    type-storageMETA-INF/FavoriteMREntityBean-cmp-rdbms-jar.xml/type-storage
    /persistence-type
    persistence-use
    type-identifierWebLogic_CMP_RDBMS/type-identifier
    type-version5.1.0/type-version
    /persistence-use
    /persistence-descriptor
    reference-descriptor
    resource-description
    res-ref-namejdbc/emdbSource/res-ref-name
    jndi-nameemdbSource/jndi-name
    /resource-description
    /reference-descriptor
    jndi-nameFavoriteMREntity/jndi-name
    /weblogic-enterprise-bean
    weblogic-enterprise-bean
    ejb-nameFavoriteMRSessionBean/ejb-name
    jndi-nameFavoriteMRSession/jndi-name
    /weblogic-enterprise-bean
    weblogic-enterprise-bean
    ejb-nameEmrFavoriteMaterialEntityBean/ejb-name
    persistence-descriptor
    persistence-type
    type-identifierWebLogic_CMP_RDBMS/type-identifier
    type-version5.1.0/type-version
    type-storageMETA-INF/EmrFavoriteMaterialEntityBean-cmp-rdbms-jar.xml/type-storage
    /persistence-type
    persistence-use
    type-identifierWebLogic_CMP_RDBMS/type-identifier
    type-version5.1.0/type-version
    /persistence-use
    /persistence-descriptor
    reference-descriptor
    resource-description
    res-ref-namejdbc/emdbSource/res-ref-name
    jndi-nameemdbSource/jndi-name
    /resource-description
    /reference-descriptor
    jndi-nameEmrFavoriteMaterialEntity/jndi-name
    /weblogic-enterprise-bean
    /weblogic-ejb-jar

    !DOCTYPE weblogic-rdbms-bean PUBLIC '-//BEA Systems, Inc.//DTD WebLogic 5.1.0
    EJB RDBMS Persistence//EN' 'http://www.bea.com/servers/wls510/dtd/weblogic-rdbms-persistence.dtd'
    weblogic-rdbms-bean
    pool-nameemdbPool/pool-name
    table-nameEMR_TBL_FMATERIAL/table-name
    attribute-map
    object-link
    bean-fieldm_empid/bean-field
    dbms-columnEMPID/dbms-column
    /object-link
    object-link
    bean-fieldm_materialno/bean-field
    dbms-columnMATERIALNO/dbms-column
    /object-link
    object-link
    bean-fieldm_plant/bean-field
    dbms-columnPLANT/dbms-column
    /object-link
    object-link
    bean-fieldm_descript/bean-field
    dbms-columnDESCRIPT/dbms-column
    /object-link
    object-link
    bean-fieldm_vendorpartno/bean-field
    dbms-columnVENDORPARTNO/dbms-column
    /object-link
    object-link
    bean-fieldm_uom/bean-field
    dbms-columnUOM/dbms-column
    /object-link
    object-link
    bean-fieldm_counter/bean-field
    dbms-columnCOUNTER/dbms-column
    /object-link
    object-link
    bean-fieldm_firstdate/bean-field
    dbms-columnFIRSTDATE/dbms-column
    /object-link
    object-link
    bean-fieldm_lastdate/bean-field
    dbms-columnLASTDATE/dbms-column
    /object-link
    /attribute-map
    finder-list
    finder
    method-namefindAll/method-name
    finder-query![CDATA[ (= 1 1) ]]/finder-query
    /finder
    /finder-list
    options/options
    /weblogic-rdbms-bean

    !DOCTYPE weblogic-rdbms-bean PUBLIC '-//BEA Systems, Inc.//DTD WebLogic 5.1.0
    EJB RDBMS Persistence//EN' 'http://www.bea.com/servers/wls510/dtd/weblogic-rdbms-persistence.dtd'
    weblogic-rdbms-bean
    pool-nameemdbPool/pool-name
    table-nameEMR_TBL_FMR/table-name
    attribute-map
    object-link
    bean-fieldmrno/bean-field
    dbms-columnmrno/dbms-column
    /object-link
    object-link
    bean-fieldempid/bean-field
    dbms-columnempid/dbms-column
    /object-link
    object-link
    bean-fieldname/bean-field
    dbms-columnname/dbms-column
    /object-link
    object-link
    bean-fieldplant/bean-field
    dbms-columnplant/dbms-column
    /object-link
    object-link
    bean-fieldcostcenter/bean-field
    dbms-columncostcenter/dbms-column
    /object-link
    /attribute-map
    finder-list
    finder
    method-namefindAll/method-name
    finder-query![CDATA[ (= 1 1) ]]/finder-query
    /finder
    /finder-list
    options/options
    /weblogic-rdbms-bean

    DB:3.00:Conver Cmp1.1 Bean's Descriptor(Wls5.1) To Cmp1.1 Bean's Descriptor(Wls6.0) zd


    we have use
    $java weblogic.ejb20.utils.DDConverter -verboseLog -EJBVer 1.1 -d ../ejb20/ emr.jar

    but got error messages in using ejbc
    bash-2.03$ java weblogic.ejbc emr.jar emr1.jar

    ERROR: Error from ejbc: [9.4.1] In EJB FavoriteMREntityBean, CMP Fields must NOT
    be defined in the BeanClass
    ERROR: ejbc found errors

    here are error messages

    DDConverter starting at Jun 19, 2001 10:26:16 AM...
    Source file list:
    emr.jar
    Output directory: ../ejb20/
    WARNING: Converting connection pool reference "emdbPool" to a data source reference.
    Be sure there is a data source of that name declared in the server configuration.
    ERROR: There was an error converting the finder query from WLQL to EJB QL. The
    query text was "(= 1 1)". The exception received was:
    weblogic.ejb20.cmp.rdbms.RDBMSException: weblogic.ejb20.cmp11.rdbms.finders.IllegalExpressionException:
    weblogic.ejb20.cmp11.rdbms.finders.IllegalExpressionException:
    While trying to process null
    Invalid Operation attempted in WLQL expression: EQ
    cannot translate from WLQL to EJB QL
    Suggest that you use following EJB QL: FROM abstract-schema-name AS X
    Usage of EJB QL of this form will result in a Finder with no WHERE clause

    WARNING: Converting connection pool reference "emdbPool" to a data source reference.
    Be sure there is a data source of that name declared in the server configuration.
    ERROR: There was an error converting the finder query from WLQL to EJB QL. The
    query text was "(= 1 1)". The exception received was:
    weblogic.ejb20.cmp.rdbms.RDBMSException: weblogic.ejb20.cmp11.rdbms.finders.IllegalExpressionException:
    weblogic.ejb20.cmp11.rdbms.finders.IllegalExpressionException:
    While trying to process null
    Invalid Operation attempted in WLQL expression: EQ
    cannot translate from WLQL to EJB QL
    Suggest that you use following EJB QL: FROM abstract-schema-name AS X
    Usage of EJB QL of this form will result in a Finder with no WHERE clause

    WARNING: Because of EJB specification changes, CMP beans are not backward compatible.
    The output jar is not deployable. You need to change the source code, compile
    them with the .xml files in this jar by using ejbc, then deploy the new jar.

    !DOCTYPE weblogic-ejb-jar PUBLIC '-//BEA Systems, Inc.//DTD WebLogic 5.1.0 EJB//EN'
    'http://www.bea.com/servers/wls510/dtd/weblogic-ejb-jar.dtd'
    weblogic-ejb-jar
    weblogic-enterprise-bean
    ejb-nameEmrJcoBean/ejb-name
    jndi-nameEmrJco/jndi-name
    /weblogic-enterprise-bean
    weblogic-enterprise-bean
    ejb-nameFavoriteMaterialBean/ejb-name
    jndi-nameFavoriteMaterial/jndi-name
    /weblogic-enterprise-bean
    weblogic-enterprise-bean
    ejb-nameFavoriteMREntityBean/ejb-name
    persistence-descriptor
    persistence-type
    type-identifierWebLogic_CMP_RDBMS/type-identifier
    type-version5.1.0/type-version
    type-storageMETA-INF/FavoriteMREntityBean-cmp-rdbms-jar.xml/type-storage
    /persistence-type
    persistence-use
    type-identifierWebLogic_CMP_RDBMS/type-identifier
    type-version5.1.0/type-version
    /persistence-use
    /persistence-descriptor
    reference-descriptor
    resource-description
    res-ref-namejdbc/emdbSource/res-ref-name
    jndi-nameemdbSource/jndi-name
    /resource-description
    /reference-descriptor
    jndi-nameFavoriteMREntity/jndi-name
    /weblogic-enterprise-bean
    weblogic-enterprise-bean
    ejb-nameFavoriteMRSessionBean/ejb-name
    jndi-nameFavoriteMRSession/jndi-name
    /weblogic-enterprise-bean
    weblogic-enterprise-bean
    ejb-nameEmrFavoriteMaterialEntityBean/ejb-name
    persistence-descriptor
    persistence-type
    type-identifierWebLogic_CMP_RDBMS/type-identifier
    type-version5.1.0/type-version
    type-storageMETA-INF/EmrFavoriteMaterialEntityBean-cmp-rdbms-jar.xml/type-storage
    /persistence-type
    persistence-use
    type-identifierWebLogic_CMP_RDBMS/type-identifier
    type-version5.1.0/type-version
    /persistence-use
    /persistence-descriptor
    reference-descriptor
    resource-description
    res-ref-namejdbc/emdbSource/res-ref-name
    jndi-nameemdbSource/jndi-name
    /resource-description
    /reference-descriptor
    jndi-nameEmrFavoriteMaterialEntity/jndi-name
    /weblogic-enterprise-bean
    /weblogic-ejb-jar

    !DOCTYPE weblogic-rdbms-bean PUBLIC '-//BEA Systems, Inc.//DTD WebLogic 5.1.0
    EJB RDBMS Persistence//EN' 'http://www.bea.com/servers/wls510/dtd/weblogic-rdbms-persistence.dtd'
    weblogic-rdbms-bean
    pool-nameemdbPool/pool-name
    table-nameEMR_TBL_FMATERIAL/table-name
    attribute-map
    object-link
    bean-fieldm_empid/bean-field
    dbms-columnEMPID/dbms-column
    /object-link
    object-link
    bean-fieldm_materialno/bean-field
    dbms-columnMATERIALNO/dbms-column
    /object-link
    object-link
    bean-fieldm_plant/bean-field
    dbms-columnPLANT/dbms-column
    /object-link
    object-link
    bean-fieldm_descript/bean-field
    dbms-columnDESCRIPT/dbms-column
    /object-link
    object-link
    bean-fieldm_vendorpartno/bean-field
    dbms-columnVENDORPARTNO/dbms-column
    /object-link
    object-link
    bean-fieldm_uom/bean-field
    dbms-columnUOM/dbms-column
    /object-link
    object-link
    bean-fieldm_counter/bean-field
    dbms-columnCOUNTER/dbms-column
    /object-link
    object-link
    bean-fieldm_firstdate/bean-field
    dbms-columnFIRSTDATE/dbms-column
    /object-link
    object-link
    bean-fieldm_lastdate/bean-field
    dbms-columnLASTDATE/dbms-column
    /object-link
    /attribute-map
    finder-list
    finder
    method-namefindAll/method-name
    finder-query![CDATA[ (= 1 1) ]]/finder-query
    /finder
    /finder-list
    options/options
    /weblogic-rdbms-bean

    !DOCTYPE weblogic-rdbms-bean PUBLIC '-//BEA Systems, Inc.//DTD WebLogic 5.1.0
    EJB RDBMS Persistence//EN' 'http://www.bea.com/servers/wls510/dtd/weblogic-rdbms-persistence.dtd'
    weblogic-rdbms-bean
    pool-nameemdbPool/pool-name
    table-nameEMR_TBL_FMR/table-name
    attribute-map
    object-link
    bean-fieldmrno/bean-field
    dbms-columnmrno/dbms-column
    /object-link
    object-link
    bean-fieldempid/bean-field
    dbms-columnempid/dbms-column
    /object-link
    object-link
    bean-fieldname/bean-field
    dbms-columnname/dbms-column
    /object-link
    object-link
    bean-fieldplant/bean-field
    dbms-columnplant/dbms-column
    /object-link
    object-link
    bean-fieldcostcenter/bean-field
    dbms-columncostcenter/dbms-column
    /object-link
    /attribute-map
    finder-list
    finder
    method-namefindAll/method-name
    finder-query![CDATA[ (= 1 1) ]]/finder-query
    /finder
    /finder-list
    options/options
    /weblogic-rdbms-bean

  • RELEVANCY SCORE 2.98

    DB:2.98:(Netbeans) Enterprise Application Client p7


    Hi,

    I created an Enterprise Project (in Netbeans) with an Enterprise Application Client (Swing)

    In the Client Source, when doing a right-click and then Enterprise Resources Call Enterprise Bean, Netbeans just adds an @EJB annotation in the client - this however doesen't work when running the client... (the Bean reference is null)

    DB:2.98:(Netbeans) Enterprise Application Client p7

    The deployment process should take care of wiring the client with the server. In J2EE specification, the various modules can be deployed separately in various tiers and they locate each other via JNDI and deployment descriptors.

    Some links that may be of help:
    http://docs.sun.com/app/docs/doc/819-3659/6n5s6m5a6?a=view
    http://java.sun.com/developer/technicalArticles/J2EE/jws-glassfish/part3.html
    http://java.sun.com/blueprints/guidelines/designing_enterprise_applications_2e/deployment/deployment.html#1029998

  • RELEVANCY SCORE 2.96

    DB:2.96:How To Call The Method From The Java Bean And Pass It To Jsp Textbox 8a


    i'm quite new to java thats why i'm asking how to call a method in the java bean file and pass it to the JSP textbox. My projects are communicating JSP with C#. i had successfully created a C# client bean file for JSP. The whole process is to type something on the server(C# programming) and it would appear in the textbox.

    DB:2.96:How To Call The Method From The Java Bean And Pass It To Jsp Textbox 8a

    your question doesn't provide much informartion. provide some other information and coding so that we could tell exactly what you are looking for?

  • RELEVANCY SCORE 2.95

    DB:2.95:***** Assertion Failed *****[ Could Not Find Dynamically Generated Skeleton d7


    Hi !!

    I found the following error while running the simple java client for a stateful session bean. This session bean works a client for 3 entity beans. All the entity beans work fine while running indipendently. Also the session bean deployed without error.

    remote exception occurred: java.rmi.ServerError: A error occurred the server; ne
    sted exception is:
    weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Could not find dynamically generated Skeleton for: PreOrderSBean_21f_EOImpl_WLSkel ]

    Where PreOrderSBean is the bean name of the session bean.

    Please help ..

    Thanks,
    Trideeb

    DB:2.95:***** Assertion Failed *****[ Could Not Find Dynamically Generated Skeleton d7

    Hi !!

    I found the following error while running the simple java client for a stateful session bean. This session bean works a client for 3 entity beans. All the entity beans work fine while running indipendently. Also the session bean deployed without error.

    remote exception occurred: java.rmi.ServerError: A error occurred the server; ne
    sted exception is:
    weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Could not find dynamically generated Skeleton for: PreOrderSBean_21f_EOImpl_WLSkel ]

    Where PreOrderSBean is the bean name of the session bean.

    Please help ..

    Thanks,
    Trideeb

  • RELEVANCY SCORE 2.95

    DB:2.95:Problems Accessing A Forte/Uds Iiop Service From A Stateless sa



    Hi there,I am trying to access an external IIOP service (in Forte/UDS application) using COS Naming service and JIDL from a stateles session-bean deployed in JBoss.This connection is successfull when running from a simple Java Client, but when trying the same from the session-bean I got an UnsupportedOperatingException.Here is the sample of code used by the simple java client:String defaultArgs[] = {"-ORBInitialPort", serverPort, "-ORBInitialHost", serverName}; org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(defaultArgs, null); org.omg.CORBA.Object objNameService = orb.resolve_initial_references("NameService"); NamingContext ctx = NamingContextHelper.narrow(objNameService); NameComponent nc1 = new NameComponent(serviceName, "text"); NameComponent[] name1 = {nc1}; org.omg.CORBA.Object obj = ctx.resolve(name1);The exception occurs when trying to resolve the name of the service I am requesting.Is there any configuation files I need to set to be able to link to the Forte/UDS IIOP server from within the deployed bean. If so where?Thanks a lot for your help,ManuelaLuxembourg

    DB:2.95:Problems Accessing A Forte/Uds Iiop Service From A Stateless sa


    I investigated the problem further and it seems that problem occurs at the ORB initialization time (IOR.java sample with the constructor invoked)public IOR(InputStream s) { super( s ) ; this.factory = (ORB)(s.orb()) ; cachedCodebase = false; if (!is_nil()) { // If there is no codebase in this IOR and there IS a // java.rmi.server.codebase property set, we need to // update the IOR with the local codebase. Note that // there is only one instance of the local codebase, but it // can be safely shared in multiple IORs since it is immutable. if (uncachedGetCodeBase() == null) { JavaCodebaseComponent jcc = LocalCodeBaseSingletonHolder.comp ; if (jcc != null) { IIOPProfileTemplate temp = getProfile().getTemplate() ; temp.add( jcc ) ; codebase = jcc.getURLs() ; cachedCodebase = true; } } } makeImmutable() ; }where LocalCodeBaseSingletonHolder is an inner class of IOR.java defined as: private static class LocalCodeBaseSingletonHolder { public static JavaCodebaseComponent comp ; static { String localCodebase = JDKBridge.getLocalCodebase() ; if (localCodebase == null) comp = null ; else comp = new JavaCodebaseComponent( localCodebase ) ; } }In JDKBridge the localCodeBase returned is not null, this provokes a modification of the IIOPProfileTemplate of the IOR instance (whereas in the simple Java Applic it is null).This is the main difference I could find between the simple Java Applicaition and running in JBoss.The problem is that this property seems to be loaded by the RMIClassLoader when JBoss gets started.("java.rmi.server.codebase" property).So is there a means to avoid the ClassLoader from loading this property??Thanks a lot for your help,Manuela

  • RELEVANCY SCORE 2.94

    DB:2.94:Found No Context ma


    I created enterprise bean. deployed succefully. whicle running client program i am getting following error in "start default server" console. "Error HTTP HttpServer(551632,null default ctx,myserver6) found no context for "GET /classes/mybeanEnterpriseBean@/mybeans/mybeanEJBHomeImpl_WLStub.class HTTP/1.0". This should not happen unless the default context failed to deploy.

    take folloeing steps to reproduce it
    1. Create simple hello stateless session bean through visualcafe 4.5 enterprise edition.

    2. start application server though project menu but got some error so started server through webgain start menu.

    3.deployed bean through visualcafe-project menu.

    4. genearate client co-project in visualcafe.

    5. set the setting "excute client on enterprise bean project execute".

    6. excute bean project got above error in server pane.

    DB:2.94:Found No Context ma

    I created enterprise bean. deployed succefully. whicle running client program i am getting following error in "start default server" console. "Error HTTP HttpServer(551632,null default ctx,myserver6) found no context for "GET /classes/mybeanEnterpriseBean@/mybeans/mybeanEJBHomeImpl_WLStub.class HTTP/1.0". This should not happen unless the default context failed to deploy.

    take folloeing steps to reproduce it
    1. Create simple hello stateless session bean through visualcafe 4.5 enterprise edition.

    2. start application server though project menu but got some error so started server through webgain start menu.

    3.deployed bean through visualcafe-project menu.

    4. genearate client co-project in visualcafe.

    5. set the setting "excute client on enterprise bean project execute".

    6. excute bean project got above error in server pane.

  • RELEVANCY SCORE 2.93

    DB:2.93:What Is An 'Oc4j Connection'? z3


    I am developing/debuging EJBs onto WLServer 7, with JDev as the GUI editor. I know how to develop my own EJBs, make a connection from JDev to WLS and then deploy EJB modules. However when I try to use JDev to auto-generate a Sample EJB Java Client, i was blocked. I did it like:

    1 create a Connection for Application Server, and name it like 'WLSConn'. this connection is proven to be valid via 'test' step.

    2 create a plain new project, named 'proj'

    3 File-New-Business Tier-Enterprise JavaBean-Session Bean

    4 Finish the EJB correctly through the Wizard. the EJB name is 'TestEJB'

    5 in the System-Navigator window, under 'proj', right click 'ejb-jar.xml' entry, select 'Create EJB JAR Deployment Profile ...'. Generate a Deployment file named 'test.deploy'.

    6 in the System-Navigator window, under 'proj'-'ejb-jar.xml', right click 'TestEJB' entry, select 'New Sample Java Client'

    7 in the prompted-out dialog box, choose 'Connect to Remote App Server', use default value 'test' for 'J2EE Application Name'

    8 when I try to specify 'OC4J Connection name', i was not allowed to enter anything, and no available entries either.

    I think that 'WLSConn', i created in advance, should be a valid connection entry, but why it's not available in step 8? Is 'WLSConn' an OC4J Connection? Did i make any mistakes or I use JDev in a wrong way?

    DB:2.93:What Is An 'Oc4j Connection'? z3

    Currently JDeveloper only creates sample client code for EJBs that are deployed on Oracle9iAS Containers for J2EE (OC4J). You can't generate a client stub to an EJB on Weblogic with the wizard.

    Try running your EJB on the OC4J that is included with Oracle9i JDeveloper and test them there. See an example of how to do it in the reviewer guide that is on http://otn.oracle.com/products/jdev

    To learn more on OC4J and why it is better then WSL visit http://otn.oracle.com/tech/java/oc4j/content.html

  • RELEVANCY SCORE 2.93

    DB:2.93:Bean As Socket Server xx


    Is it possible to make a Bean like stand alone multithread socket server for normal client applications that uses TCP/IP sockets to communicate with server?

    I have read some docs and found only how to write EJB for clients written specially to communicate with bean (not normal sockets).

    My attemption to create ServerSocket directly from has failed cause of "java.security.AccessControlException: access denied (java.net.SocketPermission localhost:61 listen,resolve)". By i guess even it not failed it wont work cause ("The enterprise bean must not attempt to start [...] a thread" - EJB 2.1 spec).

    DB:2.93:Bean As Socket Server xx

    You can if you use the connector architecture. See the following for sample code, etc

    http://java.sun.com/developer/codesamples/connect.html

    http://developers.sun.com/prodtech/appserver/reference/techart/resource_adapters.html

    http://developers.sun.com/sw/building/tech_articles/j2ee_soap_part2.html

  • RELEVANCY SCORE 2.93

    DB:2.93:Connection Refused When Accessing Oracle8i From Ejb Using J2ee Server z1


    Hello all,
    I've downloaded the Sun Java 2 enterprise edition and
    iam trying to connect to oracle8i database from my entity bean
    with BMP. My default.properties file contains the following
    lines for the driver and datasources -

    jdbc.drivers=oracle.jdbc.driver.OracleDriver
    jdbc.datasources=jdbc/Oracle|jdbc:oracle:thin:@localhost:1521:orc
    l;

    Wheni run my client i get the following message registered in
    the server logfile:

    javax.ejb.EJBException: Unable to connect to database. Io
    exception: Connection refused(DESCRIPTION=(TMP=)
    (VSNNUM=135290880)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)
    (EMFI=4))))

    Can anyone please help me out!!.
    Thanks
    Clement

  • RELEVANCY SCORE 2.92

    DB:2.92:Entity Bean ,Java Client Raise 'Javax.Naming.Namenotfoundexception'on Embedded Oc4j ca


    I am trying running following as per "Building J2EE Web Applications :"tutorial from JDeveloper OTN

    Creating a CMP entity bean and a running Java client on embedded OC4J server.

    Exception Raised:
    Lookup error: java.net.ConnectException: Connection refused: connect; nested exception is:
    java.net.ConnectException: Connection refused: connect

    at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:128)

    at javax.naming.InitialContext.lookup(InitialContext.java:350)

    at Samplemypackage1.CustomersClient.main(CustomersClient.java:23)

    Process exited with exit code 0.

    DB:2.92:Entity Bean ,Java Client Raise 'Javax.Naming.Namenotfoundexception'on Embedded Oc4j ca

    I am trying running following as per "Building J2EE Web Applications :"tutorial from JDeveloper OTN

    Creating a CMP entity bean and a running Java client on embedded OC4J server.

    Exception Raised:
    Lookup error: java.net.ConnectException: Connection refused: connect; nested exception is:
    java.net.ConnectException: Connection refused: connect

    at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:128)

    at javax.naming.InitialContext.lookup(InitialContext.java:350)

    at Samplemypackage1.CustomersClient.main(CustomersClient.java:23)

    Process exited with exit code 0.

  • RELEVANCY SCORE 2.92

    DB:2.92:Mdb To Remote Jms Topic 89



    I have been trying without success to deploy an MDB to remote Weblogic server without
    success. Does enybody know a web reference where I can find a complete description
    of the configuration/deployment details. Specifically the response at server startup
    is "weblogic.jms.common.JMSException: Connection not found". A copy of the weblogic
    specific descriptor entry is as follows -

    weblogic-enterprise-bean ejb-nameRapportAuditor/ejb-name message-driven-descriptor
    pool max-beans-in-free-pool1/max-beans-in-free-pool /pool destination-jndi-namedatastore.topic.employee/destination-jndi-name
    initial-context-factoryweblogic.jndi.WLInitialContextFactory/initial-context-factory
    provider-urlt3://slon90504:8001/provider-url connection-factory-jndi-namedatastore.ConnectionFactory/connection-factory-jndi-name
    jms-polling-interval-seconds10/jms-polling-interval-seconds jms-client-idguest/jms-client-id
    /message-driven-descriptor !-- run-as-identity-principalguest/run-as-identity-principal
    -- /weblogic-enterprise-bean

    Anybody?

    Cheers

    Chris

    DB:2.92:Mdb To Remote Jms Topic 89

    Name conflicts are the likely culprit:
    Make sure all WL server's involved have different names.
    Make sure all JMS server's involved have different names as well.

    chris wrote:

    I have been trying without success to deploy an MDB to remote Weblogic server without
    success. Does enybody know a web reference where I can find a complete description
    of the configuration/deployment details. Specifically the response at server startup
    is "weblogic.jms.common.JMSException: Connection not found". A copy of the weblogic
    specific descriptor entry is as follows -

    weblogic-enterprise-bean ejb-nameRapportAuditor/ejb-name message-driven-descriptor
    pool max-beans-in-free-pool1/max-beans-in-free-pool /pool destination-jndi-namedatastore.topic.employee/destination-jndi-name
    initial-context-factoryweblogic.jndi.WLInitialContextFactory/initial-context-factory
    provider-urlt3://slon90504:8001/provider-url connection-factory-jndi-namedatastore.ConnectionFactory/connection-factory-jndi-name
    jms-polling-interval-seconds10/jms-polling-interval-seconds jms-client-idguest/jms-client-id
    /message-driven-descriptor !-- run-as-identity-principalguest/run-as-identity-principal
    -- /weblogic-enterprise-bean

    Anybody?

    Cheers

    Chris

  • RELEVANCY SCORE 2.91

    DB:2.91:Making Java Beans Concurrent f9


    Hi All,

    Is it possible to make a Java Bean concurrent?? if yes, then how is it possible. I am using a architecture JSP-JavaBeans-EJBs-DataBase. So i need to make my Java Beans concurrent along with Persistant( Java Beans can be made persistant by implementing java.io.Serializable) so that all clients hitting the Application Server will be able to use a single copy of Java Bean instance instead of Java Bean instance being created for each client.

    Thanks.
    Rahul

    DB:2.91:Making Java Beans Concurrent f9

    I got two queries.
    (1) Correct me if my understanding is wrong.
    So does it means that if I implement Singleton Pattern
    along with ability in the Java Bean to be
    Persistant(using java.io.Serializable), I can have
    hundreds of users hitting my site and still a single
    instance of Java Bean will be able to service all the
    requests and that too at the same time.Yes and no. It depends on thwat your bean does. If the bean only acts as processor for the input you give it without affecting any variables that may influence other callers of the bean, then the answer is yes. Otherwise you need to make sure the access to bean is synchronized where needed.

    (2) How do i access a singleton persistant Java Bean
    from my JSP page?Use a JNDI register and bind the singleton.

  • RELEVANCY SCORE 2.91

    DB:2.91:Problem With Mdb Deploymernt: The Connection Has Already A z1



    Hello,I have just been conducting an evaluation of JBoss. Both as a J2EE server and as a JMS server. I would appreciate some assistance deploying a very simple MDB. I am getting a "javax.jms.IllegalStateException: The connection has already a clientID" error.When the server attempts to hot deploy the MDB, I get the following error:17:48:08,451 INFO [MainDeployer] Starting deployment of package:file:/C:/Java/JBOSS/jboss-3.0.3/server/default/deploy/JBossMDB.ear17:48:08,521 INFO [EARDeployer] Init J2EE application:file:/C:/Java/JBOSS/jboss-3.0.3/server/default/deploy/JBossMDB.ear17:48:08,642 INFO [EjbModule] Creating17:48:08,662 INFO [EjbModule] Deploying PrintBean17:48:08,732 INFO [JMSContainerInvoker] Creating17:48:08,732 INFO [JMSContainerInvoker] Created17:48:08,742 INFO [EjbModule] Created17:48:08,742 INFO [EjbModule] Starting17:48:08,752 INFO [JMSContainerInvoker] Starting17:48:08,762 INFO [DLQHandler] Creating17:48:08,932 INFO [DLQHandler] Created17:48:08,942 INFO [DLQHandler] Starting17:48:08,962 INFO [DLQHandler] Started17:48:08,962 INFO [JMSContainerInvoker] Started17:48:08,962 INFO [EjbModule] Started17:48:08,972 WARN [JMSContainerInvoker] JMS provider failure detected:javax.jms.IllegalStateException: The connection has already a clientID at org.jboss.mq.Connection.setClientID(Connection.java:288) atorg.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoker.java:714) atorg.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvoker.java:824) atorg.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:164) atorg.jboss.ejb.MessageDrivenContainer.start(MessageDrivenContainer.java:200) at org.jboss.ejb.Container.invoke(Container.java:756) atorg.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517) atorg.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976) at $Proxy5.start(Unknown Source) atThe MDB is the very simple onMessage and then println example. I have tried deploying the MDB as a different client and using a different user, but I can't seem to get around this error.My jboss.xml file is:?xml version="1.0"? enterprise-beans message-driven ejb-namePrintBean/ejb-name configuration-nameStandard Message Driven Bean/configuration-name destination-jndi-namequeue/Journals/destination-jndi-name mdb-usermdbtester/mdb-user mdb-passwdmdbtest/mdb-passwd mdb-client-idmdbtester/mdb-client-id /message-driven /enterprise-beansejb-jar.xml.....?xml version="1.0"?!DOCTYPE ejb-jarejb-jar enterprise-beans message-driven ejb-namePrintBean/ejb-name ejb-classexample.beans.PrintBean/ejb-class message-selector/message-selector transaction-typeContainer/transaction-type acknowledge-modeAuto-acknowledge/acknowledge-mode message-driven-destination destination-typejavax.jms.Topic/destination-type subscription-durabilityDurable/subscription-durability /message-driven-destination /message-driven /enterprise-beans/ejb-jarAnd jbossmq-state.xml is...?xml version="1.0" encoding="UTF-8"? Mims mimsvagos Mims Cms CmsLondon Cms mdbtester mdbtest mdbtester john needle DurableSubscriberExample guest guest nobody nobody dynsub dynsub guest john john Mims mdbtest john dynsub Mims Cms mdbtest john dynsub Mims mdbtest nobody DurableSubscriberExample DurableSubscriberExample testTopic DurableSubscriberExample testTopic Mims Mims Journals mdbtest mdbtest JournalsAny assistance would be most appreciated!Thanks,Paul.

    DB:2.91:Problem With Mdb Deploymernt: The Connection Has Already A z1


    My fault...mdb-subscription-id not mdb-client-id in the jboss.xml deployment file. Hence the error "The connection has already a clientID." If there error was Subscription Id null or something similar I may have picked it earlier.Paul.

  • RELEVANCY SCORE 2.90

    DB:2.90:Who Can Explain Weblogic Thread Model? Especially In Remote Call? cf



    Hi, All,

    I am puzzled by weblogic thread model espeically in remote call. Now I have
    a following scenario:

    In a Enterprise JavaBean, I want to calling another Bean's method. These two
    beans are in two Applications/EARs. Maybe this is the so-called remote-call(Referencing
    external EJBS). In Bean A, I used new IntialContext and set different username
    and password to call the second EJB (Let's suppose it is called Bean B). But
    I found that Bean A and Bean B is running under the same thread? Is this correct?
    From my understanding, because I called Bean B remotely(In fact, Bean A and Bean
    B is in the same weblogic server, I think Bean A called Bean B remotely just because
    I used the same way as java client calling EJBs), so Bean B should be started
    in another thread, but out of my imagine, they runs in a same thread. Is this
    the weblogic desired two? In a general case of this scenario, will the two beans
    run in the same thread always? Or sometime they will runs in a same thread, sometime
    they will runs in a different thread? If I would like to force the two beans
    runs in different threads, Is it possible? How can achieve this?

    Thanks in advance.

    DB:2.90:Who Can Explain Weblogic Thread Model? Especially In Remote Call? cf

    Hi Oliver,

    "oliver" lengzq@hotmail.com wrote in message news:3fc1a1c8$1@newsgroups.bea.com...

    Hi, All,

    I am puzzled by weblogic thread model espeically in remote call. Now I have
    a following scenario:

    In a Enterprise JavaBean, I want to calling another Bean's method. These two
    beans are in two Applications/EARs. Maybe this is the so-called remote-call(Referencing
    external EJBS). In Bean A, I used new IntialContext and set different username
    and password to call the second EJB (Let's suppose it is called Bean B). But
    I found that Bean A and Bean B is running under the same thread? Is this correct?In WebLogic EJB code runs in a thread that has began serving a request first.

    From my understanding, because I called Bean B remotely(In fact, Bean A and Bean
    B is in the same weblogic server, I think Bean A called Bean B remotely just because
    I used the same way as java client calling EJBs), so Bean B should be started
    in another thread, but out of my imagine, they runs in a same thread. Is this
    the weblogic desired two? In a general case of this scenario, will the two beans
    run in the same thread always?It's possible if there is a call indirection, for example though JMS.

    Or sometime they will runs in a same thread, sometime
    they will runs in a different thread?If it's direct bean to bean call they will run in the same thread.

    If I would like to force the two beans
    runs in different threads, Is it possible? How can achieve this?Could you tell us why would you want to do it?

    Regards,

    Slava Imeshev

  • RELEVANCY SCORE 2.90

    DB:2.90:Few Doubts In Mvc Architecture cm


    Hello friends,
    I am having few doubts in MVC design pattern. Could any one of you plz help me out??
    Lets think of a hypothetical J2EE application, which consists of following components:
    (1) JSP------(For Presentation Part ie View of MVC)
    (2) Normal Java Bean----(View)
    (3) Stateless session bean---(Controller)
    (4) Entity Bean-----------(Model)

    JSP-------Java Bean----- Session Bean ----- Entity Bean

    The communication happens like this...
    The user does something in the JSP page(View), that control is send to normal java bean, which is acting as a client for session bean.Normal Java Bean does lookups of Session bean, n invokes appropriate business method of the session bean. Session bean is acting as a Session facade for the Entity bean.Session bean (Fecade) abstracts the complexity of Entity Bean.Entity bean is representing the model for the EIS system.

    So now my doubts are as followes:

    Doubt No1:--- Am I correctly seprating the components( e.g beans, session beans, entity beans,jsps etc), keeping MVC Architecture in mind. Should Normal Java bean be a part of View or Controller??

    Doubt No2:---What is the use of Normal Java Bean?? As per to my understanding, Java bean is used to make the system thin client as far as possible. If we dont use java bean , then we have to so all the lookups of the session bean, which will make system thick client, n won't seprate the presentation from the content.So I think this is the reason of using java bean in between JSP(View) n Session(Controller).

    Doubt No3:--- Normally session facade is used to reduce the Network calls and to hide the complexities of the model.So in this case when bean is calling the session bean n infact both of these component r lying on the application server, then how this session facade will reduce the network level call?? I don think there is any network level call involved, coz java bean isn't calling entity bean from other m/c, all of these components r on the same serevr.So is session bean only used for hiding the compleities of the data model??

    Doubt No4:--- Can any Session bean (stateless r stateful) work as a controller???

    I think this will help many ppl to solidify their understanding in MVC Architecture.
    Tx in Advance
    Jam

    DB:2.90:Few Doubts In Mvc Architecture cm

    Hello friends,
    I am having few doubts in MVC design pattern. Could
    any one of you plz help me out??
    Lets think of a hypothetical J2EE application, which
    consists of following components:
    (1) JSP------(For Presentation Part ie View of MVC)
    (2) Normal Java Bean----(View)
    (3) Stateless session bean---(Controller)
    (4) Entity Bean-----------(Model)

    JSP-------Java Bean----- Session Bean -----
    Entity Bean

    The communication happens like this...
    The user does something in the JSP page(View), that
    control is send to normal java bean, which is acting
    as a client for session bean.Normal Java Bean does
    lookups of Session bean, n invokes appropriate
    business method of the session bean. Session bean is
    acting as a Session facade for the Entity bean.Session
    bean (Fecade) abstracts the complexity of Entity
    Bean.Entity bean is representing the model for the EIS
    system.

    So now my doubts are as followes:

    Doubt No1:--- Am I correctly seprating the
    components( e.g beans, session beans, entity
    beans,jsps etc), keeping MVC Architecture in mind.
    Should Normal Java bean be a part of View or
    Controller??Normal Java bean Should be a Model and JSP/Servelet should be as a VIEW.
    Doubt No2:---What is the use of Normal Java Bean??
    As per to my understanding, Java bean is used to make
    the system thin client as far as possible. If we dont
    use java bean , then we have to so all the lookups of
    the session bean, which will make system thick client,
    n won't seprate the presentation from the content.So I
    think this is the reason of using java bean in between
    JSP(View) n Session(Controller).Yes this is fine and then it depends on your experience and the scope of work.Remember patteres are the experienced view which has been implemented.It is a great fun working with patterns.
    Doubt No3:--- Normally session facade is used to
    reduce the Network calls and to hide the complexities
    of the model.So in this case when bean is calling the
    session bean n infact both of these component r lying
    on the application server, then how this session
    facade will reduce the network level call?? I don
    think there is any network level call involved, coz
    java bean isn't calling entity bean from other m/c,
    all of these components r on the same serevr.So is
    session bean only used for hiding the compleities of
    the data model??In the Seession Facade you are calling the group of Entity Beans frm the Session Bean , you are reducing the n/w calls.In fact being on the same server but there will be the lots of interaction and prior to ejb2.0 you could only refer to other ejb by the EJBObjects only.But in lates version they have come up with the Local Objects which does solve the problem.Refer to that in specifications...
    Doubt No4:--- Can any Session bean (stateless r
    stateful) work as a controller???The controller as per the proper design should be the Servlet and your bean(Java bean/EJb) Should be Model.
    Regards
    Vicky

  • RELEVANCY SCORE 2.89

    DB:2.89:Enterprise Java Bean c1


    Hi
    How does session bean calls entity bean in weblogic6.1 sever

    Thanks

    DB:2.89:Enterprise Java Bean c1

    If are asking how to do it codewise. It's the same as when a client would look up the SessionBean in the 1st place.

    1. Acquire the come reference through JNDI.
    2. Use either a finder or a create method on the Home (or LocalHome) Interface to get an actual bean reference (Remote or Local).

  • RELEVANCY SCORE 2.89

    DB:2.89:Namenotfoundexception When Looking Up The Recource Adapter mz



    Hi,
    I am facing a problem when looking-up of the Resource Adapter from the Ejb.
    I am using a session bean to lookup the Resource adapter. I have no problem deploying
    the resource adapter and the ejb. But I am getting an exception when I run the
    client.

    The resource-ref tag in ejb-jar.xml is as follows.

    enterprise-beans
    session
    ejb-nameconnect/ejb-name
    homeconnect.InsertHome/home
    remoteconnect.Insert/remote
    ejb-classconnect.InsertBean/ejb-class
    session-typeStateless/session-type
    transaction-typeContainer/transaction-type
    resource-ref
    res-ref-nameeis/CciBlackBoxNoTx/res-ref-name
    res-typecom.sun.connector.cciblackbox.CciConnectionFactory/res-type
    res-authContainer/res-auth
    /resource-ref
    /session
    /enterprise-beans

    I changed the res-ref-type from javax.sql.Datasource to the connection factory
    as I am using the CCI to connect to the database.

    My weblogic-ejb-jar file contains the following description

    reference-descriptor

    resource-description
    res-ref-nameeis/CciBlackBoxNoTx/res-ref-name
    jndi-nameeis/CciBlackBoxNoTxConnectorJNDINAME/jndi-name
    /resource-description

    /reference-descriptor
    jndi-nameInsert/jndi-name

    When I run my client I am getting the follwing Exception.

    javax.naming.NameNotFoundException: Unable to resolve 'app/ejb/connect.jar#conn
    ect/comp/env/user' Resolved: 'app/ejb/connect.jar#connect/comp/env' Unresolved:
    'user' ; remaining name 'user'
    at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(Basi
    cNamingNode.java:858)
    at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.ja
    va:223)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:1
    87)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:1
    95)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:1
    95)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:337)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:332)
    at weblogic.jndi.factories.java.ReadOnlyContextWrapper.lookup(ReadOnlyC
    ontextWrapper.java:36)
    at weblogic.jndi.internal.AbstractURLContext.lookup(AbstractURLContext.
    java:124)
    at javax.naming.InitialContext.lookup(InitialContext.java:345)
    at connect.InsertBean.setSessionContext(InsertBean.java:64)
    at connect.InsertBean_fqerje_Impl.setSessionContext(InsertBean_fqerje_I
    mpl.java:93)
    at weblogic.ejb20.manager.StatelessManager.createBean(StatelessManager.
    java:273)
    at weblogic.ejb20.pool.StatelessSessionPool.createBean(StatelessSession
    Pool.java:148)
    at weblogic.ejb20.pool.StatelessSessionPool.getBean(StatelessSessionPoo
    l.java:101)
    at weblogic.ejb20.manager.StatelessManager.preInvoke(StatelessManager.j
    ava:148)
    at weblogic.ejb20.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:1
    27)
    at weblogic.ejb20.internal.StatelessEJBObject.preInvoke(StatelessEJBObj
    ect.java:61)
    at connect.InsertBean_fqerje_EOImpl.insertName(InsertBean_fqerje_EOImpl
    .java:28)
    at connect.InsertBean_fqerje_EOImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:362)

    at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServer
    Ref.java:114)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServi
    ceManager.java:785)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.ja
    va:308)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteReques
    t.java:30)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)

    where connect.jar is the name of my ejb.

    This is the session bean code I am using to looup the resource adpater.

    user = (String) initCtx.lookup("java:comp/env/user");
    password = (String) initCtx.lookup("java:comp/env/password");
    cxf =(ConnectionFactory)initCtx.lookup("java:comp/env/eis/CciBlackBoxNoTx");

    I am using the weblogic 7.0 as the application server and Sun's CciblackboxNoTx
    as the resource adpter.The weblogic-ra.xml file for the resource adpter contains
    the following connection factory and jndi name.

    connection-factory-nameLogicalNameOfCciBlackBoxNoTx/connection-factory-name
    jndi-nameeis/CciBlackBoxNoTxConnectorJNDINAME/jndi-name

    Can any one please let me know where I am going wrong. Any solution will be of
    great help.

    Thanks,
    Ramya.

    DB:2.89:Namenotfoundexception When Looking Up The Recource Adapter mz

    Hi Ramya,

    Where you have defined user and password, is you have included those in the
    bean descriptor? Or rar descriptrs?. Server unable to findout the user and
    password.

    The following tags could not able to undestand what for?

    /reference-descriptor
    jndi-nameInsert/jndi-name

    Thanks
    Kumar

    "Ramya" ramyar_1@yahoo.com wrote in message
    news:3e8c832f$1@newsgroups.bea.com...

    Hi,
    I am facing a problem when looking-up of the Resource Adapter from the
    Ejb.
    I am using a session bean to lookup the Resource adapter. I have no
    problem deploying
    the resource adapter and the ejb. But I am getting an exception when I run
    the
    client.

    The resource-ref tag in ejb-jar.xml is as follows.

    enterprise-beans
    session
    ejb-nameconnect/ejb-name
    homeconnect.InsertHome/home
    remoteconnect.Insert/remote
    ejb-classconnect.InsertBean/ejb-class
    session-typeStateless/session-type
    transaction-typeContainer/transaction-type
    resource-ref
    res-ref-nameeis/CciBlackBoxNoTx/res-ref-name

    res-typecom.sun.connector.cciblackbox.CciConnectionFactory/res-type
    res-authContainer/res-auth
    /resource-ref
    /session
    /enterprise-beans

    I changed the res-ref-type from javax.sql.Datasource to the connection
    factory
    as I am using the CCI to connect to the database.

    My weblogic-ejb-jar file contains the following description

    reference-descriptor

    resource-description
    res-ref-nameeis/CciBlackBoxNoTx/res-ref-name
    jndi-nameeis/CciBlackBoxNoTxConnectorJNDINAME/jndi-name
    /resource-description

    /reference-descriptor
    jndi-nameInsert/jndi-name

    When I run my client I am getting the follwing Exception.

    javax.naming.NameNotFoundException: Unable to resolve
    'app/ejb/connect.jar#conn
    ect/comp/env/user' Resolved: 'app/ejb/connect.jar#connect/comp/env'
    Unresolved:
    'user' ; remaining name 'user'
    at
    weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(Basi
    cNamingNode.java:858)
    at
    weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.ja
    va:223)
    at
    weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:1
    87)
    at
    weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:1
    95)
    at
    weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:1
    95)
    at
    weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:337)
    at
    weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:332)
    at
    weblogic.jndi.factories.java.ReadOnlyContextWrapper.lookup(ReadOnlyC
    ontextWrapper.java:36)
    at
    weblogic.jndi.internal.AbstractURLContext.lookup(AbstractURLContext.
    java:124)
    at javax.naming.InitialContext.lookup(InitialContext.java:345)
    at connect.InsertBean.setSessionContext(InsertBean.java:64)
    at
    connect.InsertBean_fqerje_Impl.setSessionContext(InsertBean_fqerje_I
    mpl.java:93)
    at
    weblogic.ejb20.manager.StatelessManager.createBean(StatelessManager.
    java:273)
    at
    weblogic.ejb20.pool.StatelessSessionPool.createBean(StatelessSession
    Pool.java:148)
    at
    weblogic.ejb20.pool.StatelessSessionPool.getBean(StatelessSessionPoo
    l.java:101)
    at
    weblogic.ejb20.manager.StatelessManager.preInvoke(StatelessManager.j
    ava:148)
    at
    weblogic.ejb20.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:1
    27)
    at
    weblogic.ejb20.internal.StatelessEJBObject.preInvoke(StatelessEJBObj
    ect.java:61)
    at
    connect.InsertBean_fqerje_EOImpl.insertName(InsertBean_fqerje_EOImpl
    java:28)
    at connect.InsertBean_fqerje_EOImpl_WLSkel.invoke(Unknown Source)
    at
    weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:362)

    at
    weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServer
    Ref.java:114)
    at
    weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
    at
    weblogic.security.service.SecurityServiceManager.runAs(SecurityServi
    ceManager.java:785)
    at
    weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.ja
    va:308)
    at
    weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteReques
    t.java:30)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)

    where connect.jar is the name of my ejb.

    This is the session bean code I am using to looup the resource adpater.

    user = (String) initCtx.lookup("java:comp/env/user");
    password = (String) initCtx.lookup("java:comp/env/password");
    cxf
    =(ConnectionFactory)initCtx.lookup("java:comp/env/eis/CciBlackBoxNoTx");

    I am using the weblogic 7.0 as the application server and Sun's
    CciblackboxNoTx
    as the resource adpter.The weblogic-ra.xml file for the resource adpter
    contains
    the following connection factory and jndi name.

    connection-factory-nameLogicalNameOfCciBlackBoxNoTx/connection-factory-na
    me
    jndi-nameeis/CciBlackBoxNoTxConnectorJNDINAME/jndi-name

    Can any one please let me know where I am going wrong. Any solution will
    be of
    great help.

    Thanks,
    Ramya.

  • RELEVANCY SCORE 2.89

    DB:2.89:Cluster Ejb Application And Use That Ejb In Another Webapplication( Servlet ) That Is A Cluster App Too? zs


    Hi,I created a EJB application that contains an Statefull session beans, in the weblogic-ejb-jar.xml i specified that this bean is clusterable, and then i deploy it in cluster environment with separate manaded server in separate host.Also i create a web application that contains a servlet that take paramere and put it in EJB Bean that before it , i JNDI lookup to get an instance of remote interface of that Enterprise java bean for each session and store that bean in session..So lets trace my failed scenario :1- I have a cluster contains two server A and B2- I deploy a EJB enterprise application that contains an statefull session beans that contains list of items ( String items ) , on cluster.3- There is web appliation that contains a sevlet that apply an jndi lookup to get and instance of remote interface of statefull session bean and store the bean in session also get request parameter and put it in the bean as items, is deployed on the cluster too.4- I stop the server B5- I call web application context to put items in EJB bean.6- I start the server B7- I also call the web application context to put more items in bean , also fire the replication to replicat the session and also bean on server B.8- I stop the server A.9- i want to continue my work on server B, but i get EJB exception that says can't make connection to server A.But : i follow upper scenario in a simple java application and it works.What is wrong ?

    DB:2.89:Cluster Ejb Application And Use That Ejb In Another Webapplication( Servlet ) That Is A Cluster App Too? zs

    Hi,I created a EJB application that contains an Statefull session beans, in the weblogic-ejb-jar.xml i specified that this bean is clusterable, and then i deploy it in cluster environment with separate manaded server in separate host.Also i create a web application that contains a servlet that take paramere and put it in EJB Bean that before it , i JNDI lookup to get an instance of remote interface of that Enterprise java bean for each session and store that bean in session..So lets trace my failed scenario :1- I have a cluster contains two server A and B2- I deploy a EJB enterprise application that contains an statefull session beans that contains list of items ( String items ) , on cluster.3- There is web appliation that contains a sevlet that apply an jndi lookup to get and instance of remote interface of statefull session bean and store the bean in session also get request parameter and put it in the bean as items, is deployed on the cluster too.4- I stop the server B5- I call web application context to put items in EJB bean.6- I start the server B7- I also call the web application context to put more items in bean , also fire the replication to replicat the session and also bean on server B.8- I stop the server A.9- i want to continue my work on server B, but i get EJB exception that says can't make connection to server A.But : i follow upper scenario in a simple java application and it works.What is wrong ?

  • RELEVANCY SCORE 2.88

    DB:2.88:How To Use Jboss As Application Server j3


    Hi@all
    I'm using JDeveloper 10.1.3.0 and I want jboss-4.0.3SP1 work as my AppServer.
    I want access to a session bean.
    First I've created a Statefull SessionBean (EJB3.0) -- Lookup EntityManger through JNDI... then I created a connection to JBoss (running in background) in the connection navigator...created a deployment profile, a sample java client etc... but in the
    'run manager'-view only the 'Embedded OC4J Server' is displayed....
    I've no idea how I can 'activate' JBoss as my Application Server....????????

    thx in advance

    DB:2.88:How To Use Jboss As Application Server j3

    1. Start the JBoss application server.
    2. Create a connection with JBoss application server in the connections navigator.
    3. Test the connection with the Test button.
    4. Deploy a deployment profile to the application server connection.

  • RELEVANCY SCORE 2.88

    DB:2.88:While Connecting From Client To Ejb , Lookup Error Is Comming... 33


    Hi All

    I am working with Oracle Application Server 10g.
    Here I downloaded one helloworld session bean from oracle site.

    I am able to deploy .ear file.

    But when I am connecting bean using client...

    I am getting following error:

    D:\helloworldant run
    Buildfile: build.xml

    init:

    setup:

    cli-classes:
    [javac] Compiling 1 source file to D:\helloworld\build\helloworld\helloworld-client

    cli-descriptor:

    cli-jar:
    [jar] Building jar: D:\helloworld\dist\helloworld-client.jar

    run:
    [java] client started...
    [java] java.lang.InstantiationException: Error communicating with server: Lookup error: java.net.ConnectException: Connection refused: connect; nested exception is:
    [java] java.net.ConnectException: Connection refused: connect; nested exception is:
    [java] javax.naming.NamingException: Lookup error: java.net.ConnectException: Connection refused: connect; nested exception is:
    [java] java.net.ConnectException: Connection refused: connect [Root exception is java.net.ConnectException: Connection refused: connect]
    [java] at com.evermind.server.ApplicationClientContext.createContext(ApplicationClientContext.java:63)
    [java] at com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext(ApplicationClientInitialContextFactory.java:145)
    [java] at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
    [java] at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
    [java] at javax.naming.InitialContext.init(InitialContext.java:219)
    [java] at javax.naming.InitialContext.init(InitialContext.java:175)
    [java] at hello.HelloClient.main(HelloClient.java:25)
    [java] NamingException: Error reading application-client descriptor: Error communicating with server: Lookup error: java.net.ConnectException: Connection refused: connect; nested exception is:
    [java] java.net.ConnectException: Connection refused: connect; nested exception is:
    [java] javax.naming.NamingException: Lookup error: java.net.ConnectException: Connection refused: connect; nested exception is:
    [java] java.net.ConnectException: Connection refused: connect [Root exception is java.net.ConnectException: Connection refused: connect]

    I used the following JNDI Configurations:

    java.naming.factory.initial=com.evermind.server.ApplicationClientInitialContextFactory
    java.naming.provider.url=ormi://localhost:23791/helloworld

    Pls Post your results....

    With Regards

    Kumar

    DB:2.88:While Connecting From Client To Ejb , Lookup Error Is Comming... 33

    Try this:
    java.naming.factory.initial=oracle.j2ee.rmi.RMIInitialContextFactory

  • RELEVANCY SCORE 2.86

    DB:2.86:Reading Excel Via Web Deployed App Using Ole f3


    The file will reside on the client side.

    Would this be a client or server side java bean? How can a java bean read read an Excel spreadsheet? This solution must work in a client/server or 3T environment (client side java bean would not be possible for client/server).

    Can you elaborate on your proposed solution to get me started in the correct direction.

    Thanks.

    DB:2.86:Reading Excel Via Web Deployed App Using Ole f3

    Is there any solution to that?? I am using webutil to do the same requierement but seems that webutil has problems to kills excel sessions.

  • RELEVANCY SCORE 2.86

    DB:2.86:Connection Is Broken jd


    Hi,

    I am using JBoss 3.0.2 and am trying to create an entity bean. In this process i am getting the following error

    12:47:36,375 ERROR [Klr_LocalHome] Could not create entity
    java.sql.SQLException: Connection is broken
    at org.hsqldb.Trace.getError(Trace.java:180)
    at org.hsqldb.Trace.getError(Trace.java:144)
    at org.hsqldb.Trace.error(Trace.java:205)
    at org.hsqldb.jdbcConnection.executeHSQL(jdbcConnection.java:904)
    at org.hsqldb.jdbcConnection.execute(jdbcConnection.java:718)
    at org.hsqldb.jdbcStatement.fetchResult(jdbcStatement.java:686)
    at org.hsqldb.jdbcStatement.executeUpdate(jdbcStatement.java:85)
    at org.hsqldb.jdbcPreparedStatement.executeUpdate(jdbcPreparedStatement.
    java:152)

    Here is the situation
    -- The call ( from the client side to server side ) is asynchronous (JMS)
    -- I have put some debug statements to confirm the message is going to the server side (session bean) which is trying to create the entity bean "Klr"
    -- The session bean trying to access the "Klr" bean is using the default context as both (session and Klr are on same JVM)
    -- The data that is being used to create the entity bean is .... 4 Strings and one user defined class (say 'test') .. something like below

    klr_local klr = klr_localhome.create(String x, String y, String z, String a, Test test);

    -- The class 'test' has been serialized .. (obviously, otherwise the jms message wouldnt reach the server side)
    -- The class 'test' has 7 default table models in it, now this looks a bad design .. but my requirement is like that .. i only need to store it and retrieve at a later point .. i am not manipulating with the data on server side.

    Any suggestions, hints, advices ...

    will appreciate it

    Thank You

    Meka Toka

    DB:2.86:Connection Is Broken jd

    Hi meka!

    Please go to http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topicf=63t=000072 ;)

    Regards, Volodymyr.

  • RELEVANCY SCORE 2.85

    DB:2.85:How Can I Access Servletcontex From Ejb Session Bean sa


    How can I access ServletContext from EJB Session bean, both located on the same application server (GlassFish).

    I make some init in servlet container(Tomcat), authorization(Shiro+Spring) and want to access this information from EJB session bean.
    I have GUI java application on client side.

    How can I do this?

    DB:2.85:How Can I Access Servletcontex From Ejb Session Bean sa

    you cannot, unless you pass the ServletContext as a parameter to the EJB method. session beans normally have no business with the servlet context, only the servlet context does.

  • RELEVANCY SCORE 2.84

    DB:2.84:Sun Java System Message Queue And Message Driven Bean In Oc4j... dx


    I was wondering if anyone could provide me a sample configuration for the following environment:

    I have a remote Sun Java System Message Queue Server that holds messages in queues. I have a message driven bean client in an OC4J enterprise application that needs to read the messages from the remote message queue.

    I've successfully created a simple client standalone application that connects to the remote server, so I know my connections/permissions are established.

    Standalone OC4J: 9.0.4.2.0
    Sun MQ: 3.5

    Thank you,

    Jason

    DB:2.84:Sun Java System Message Queue And Message Driven Bean In Oc4j... dx

    I was wondering if anyone could provide me a sample configuration for the following environment:

    I have a remote Sun Java System Message Queue Server that holds messages in queues. I have a message driven bean client in an OC4J enterprise application that needs to read the messages from the remote message queue.

    I've successfully created a simple client standalone application that connects to the remote server, so I know my connections/permissions are established.

    Standalone OC4J: 9.0.4.2.0
    Sun MQ: 3.5

    Thank you,

    Jason

  • RELEVANCY SCORE 2.84

    DB:2.84:Jboss Will Neither Bind My Bean Names Nor Throw An Error? f3



    I start my JBoss 3.2.6 server with nothing deployed, then hot copy my application into it.The log show the deployement was successful. (See Log Below).Bu my enterprise beans cannot be seen in the console JNDI list.Can anyone point me to the problem area? Without an error, I don't know where to look.The code sections below contain the code I think is relevant to one enterprise bean (GameBean) and file structure as deployed.(Notes:-- Tthere is a java class called Game that is used by the enterprise beans and also by some Servlets that are part of the app.-- I use WebStart to down load a local client the makes an HTTP calll to a servlet in go-svlts.jar shown below and the servlet uses the local enterprise bean. But the servlet cannot find it because its not in the JNDI list):The structure of the directory deployed to JBoss:
    ${jboss}\server\default\deploy
    \go.ear
    sGo-ejb.jar
    org.projects.games.go.ejb.GameBean.class
    org.projects.games.go.ejb.GameLocal.class
    org.projects.games.go.ejb.GameLocalHome.class
    ... etc.
    org.projects.games.go.shared.Game.class
    org.projects.games.go.shared.Play.class
    ... etc.

    \META-INF
    application.xml
    ejb-jar.xml
    jboss.xml
    jbosscmp-jdbc.xml

    \go-web.war
    index.htm
    \images
    \META-INF
    \resources
    sGo-jnlp.jar
    org.projects.games.go.shared.Game.class
    org.projects.games.go.shared.Play.class
    ... etc.
    jboss-j2ee.jar
    LaunchLocalServer.jnlp
    properties.Go
    \styles
    \WEB-INF
    web.xml
    \classes
    \lib
    go-servlets.jar

    DB:2.84:Jboss Will Neither Bind My Bean Names Nor Throw An Error? f3


    I start my JBoss 3.2.6 server with nothing deployed, then hot copy my application into it.The log show the deployement was successful. (See Log Below).Bu my enterprise beans cannot be seen in the console JNDI list.Can anyone point me to the problem area? Without an error, I don't know where to look.The code sections below contain the code I think is relevant to one enterprise bean (GameBean) and file structure as deployed.(Notes:-- Tthere is a java class called Game that is used by the enterprise beans and also by some Servlets that are part of the app.-- I use WebStart to down load a local client the makes an HTTP calll to a servlet in go-svlts.jar shown below and the servlet uses the local enterprise bean. But the servlet cannot find it because its not in the JNDI list):The structure of the directory deployed to JBoss:
    ${jboss}\server\default\deploy
    \go.ear
    sGo-ejb.jar
    org.projects.games.go.ejb.GameBean.class
    org.projects.games.go.ejb.GameLocal.class
    org.projects.games.go.ejb.GameLocalHome.class
    ... etc.
    org.projects.games.go.shared.Game.class
    org.projects.games.go.shared.Play.class
    ... etc.

    \META-INF
    application.xml
    ejb-jar.xml
    jboss.xml
    jbosscmp-jdbc.xml

    \go-web.war
    index.htm
    \images
    \META-INF
    \resources
    sGo-jnlp.jar
    org.projects.games.go.shared.Game.class
    org.projects.games.go.shared.Play.class
    ... etc.
    jboss-j2ee.jar
    LaunchLocalServer.jnlp
    properties.Go
    \styles
    \WEB-INF
    web.xml
    \classes
    \lib
    go-servlets.jar

  • RELEVANCY SCORE 2.83

    DB:2.83:Jdbinsight 2.0 Announced - See @ Javaone Next Week 9k


    DUBLIN, IRELAND - 5 June, 2003 - JInspired (www.jinspired.com), a leader in J2EE transaction analysis, today announced JDBInsight 2.0, the next generation of J2EE performance management products from JInspired. JDBInsight will be available for preview at JavaOne 2003 in San Francisco.

    JDBInsight is the first product to effectively integrate Java profiling information with JDBC/SQL transaction analysis. Version 2.0 has numerous features derived from its support of the Java VM Profiling Interface (JVMPI) such as Java call stack analysis, CPU, blocking and waiting measurements at the transaction path level.

    The "Best Java Application Monitoring Tool" just got better. JDBInsight 2.0 sports a new client interface that once again shows that JInspired is the leader in delivery of rich and informative visualizations of J2EE transactions and performance execution. The products innovative use of symbols and graphics is unrivalled within the Java performance assurance industry.

    With the new Java call stack classification engine developers, testers and J2EE administrators can now understand the interaction of various technologies with corporate databases. Classifications engines are available for Java enterprise technologies such as EJB, JSP, Servlets, JTS, CORBA, JDBC, JCA, Web Services, JDO and Struts. JInspired will also be announcing new engines over the coming weeks for various web/persistence technologies such as JavaServer Faces, Tapestry, WebWork, and Hibernate.

    JDBInsight 2.0 is the first performance management product to have the ability to detect and present resource transaction demarcations allowing visual sub-transaction identification.

    Take JDBInsight Product Tour
    http://www.jinspired.com/products/jdbinsight/tour.html

    Read JDBInsight 2.0 Product Factsheet
    http://www.jinspired.com/products/jdbinsight/jdbinsightv2_0_productsheet.pdf

    In addition to the JDBInsight Version 2.0 feature rich client interface, JDBInsight also provides a suite of functional command-line utilities, JDBInsight 2.0 Terminal Services. The Terminal Services component of JDBInsight 2.0 delivers the server to a wide variety of desktops without the need for graphical environments. The JDBInsight 2.0 Terminal Services provides a quick and easy way to communicate with multiple servers without having to use a graphical user interface. This facilitates the streamlined connection, activation and deactivation of profiles on local or remote servers with the ability to control multiple servers from a single terminal.

    These Terminal Services also provide a powerful environment to create and schedule snapshot information, in order to monitor servers at regular intervals, with the ability to store and retrieve snapshots from any mounted drive, as well as providing a rich set of commands to assist in analysis of this highly detailed data. Learn about JDBInsight 2.0 Terminal Services

    About JDBInsight
    JDBInsight is an innovative enterprise development product, aimed at simplifying the performance tuning and testing of J2EE applications, which access data through the Java Database Connectivity (JDBC) API. JDBInsight analyses the access of enterprise data by J2EE client-, web-, and bean containers. The analysis can encompass transaction executions, from multiple J2EE containers. JDBInsight captures timing and execution information for enterprise data accessed by Servlets, JavaServer Pages, Session- and Entity Beans using JDBC or an Entity Bean using a container's persistence engine. JDBInsight can also profile non-J2EE applications that access enterprise data through the JDBC API.

    About JInspired
    JInspired located in Ireland, delivers JDBInsight, a comprehensive solution for Application Performance Tuning and Testing that focuses directly on early identification within the development and testing lifecycle. Jinspired offers sophisticated analytical tools, that capture transactional behaviour and performance timing information, across multiple containers in a single console, and presents this information intuitively to the user "Visualizing the Invisible.

    DB:2.83:Jdbinsight 2.0 Announced - See @ Javaone Next Week 9k

    DUBLIN, IRELAND - 5 June, 2003 - JInspired (www.jinspired.com), a leader in J2EE transaction analysis, today announced JDBInsight 2.0, the next generation of J2EE performance management products from JInspired. JDBInsight will be available for preview at JavaOne 2003 in San Francisco.

    JDBInsight is the first product to effectively integrate Java profiling information with JDBC/SQL transaction analysis. Version 2.0 has numerous features derived from its support of the Java VM Profiling Interface (JVMPI) such as Java call stack analysis, CPU, blocking and waiting measurements at the transaction path level.

    The "Best Java Application Monitoring Tool" just got better. JDBInsight 2.0 sports a new client interface that once again shows that JInspired is the leader in delivery of rich and informative visualizations of J2EE transactions and performance execution. The products innovative use of symbols and graphics is unrivalled within the Java performance assurance industry.

    With the new Java call stack classification engine developers, testers and J2EE administrators can now understand the interaction of various technologies with corporate databases. Classifications engines are available for Java enterprise technologies such as EJB, JSP, Servlets, JTS, CORBA, JDBC, JCA, Web Services, JDO and Struts. JInspired will also be announcing new engines over the coming weeks for various web/persistence technologies such as JavaServer Faces, Tapestry, WebWork, and Hibernate.

    JDBInsight 2.0 is the first performance management product to have the ability to detect and present resource transaction demarcations allowing visual sub-transaction identification.

    Take JDBInsight Product Tour
    http://www.jinspired.com/products/jdbinsight/tour.html

    Read JDBInsight 2.0 Product Factsheet
    http://www.jinspired.com/products/jdbinsight/jdbinsightv2_0_productsheet.pdf

    In addition to the JDBInsight Version 2.0 feature rich client interface, JDBInsight also provides a suite of functional command-line utilities, JDBInsight 2.0 Terminal Services. The Terminal Services component of JDBInsight 2.0 delivers the server to a wide variety of desktops without the need for graphical environments. The JDBInsight 2.0 Terminal Services provides a quick and easy way to communicate with multiple servers without having to use a graphical user interface. This facilitates the streamlined connection, activation and deactivation of profiles on local or remote servers with the ability to control multiple servers from a single terminal.

    These Terminal Services also provide a powerful environment to create and schedule snapshot information, in order to monitor servers at regular intervals, with the ability to store and retrieve snapshots from any mounted drive, as well as providing a rich set of commands to assist in analysis of this highly detailed data. Learn about JDBInsight 2.0 Terminal Services

    About JDBInsight
    JDBInsight is an innovative enterprise development product, aimed at simplifying the performance tuning and testing of J2EE applications, which access data through the Java Database Connectivity (JDBC) API. JDBInsight analyses the access of enterprise data by J2EE client-, web-, and bean containers. The analysis can encompass transaction executions, from multiple J2EE containers. JDBInsight captures timing and execution information for enterprise data accessed by Servlets, JavaServer Pages, Session- and Entity Beans using JDBC or an Entity Bean using a container's persistence engine. JDBInsight can also profile non-J2EE applications that access enterprise data through the JDBC API.

    About JInspired
    JInspired located in Ireland, delivers JDBInsight, a comprehensive solution for Application Performance Tuning and Testing that focuses directly on early identification within the development and testing lifecycle. Jinspired offers sophisticated analytical tools, that capture transactional behaviour and performance timing information, across multiple containers in a single console, and presents this information intuitively to the user "Visualizing the Invisible.

  • RELEVANCY SCORE 2.83

    DB:2.83:Error Ejb Connecting Db Throw Datasource 1f



    Hello people!I need help :(I have a sateless session bean and i want access a database.For that i already did:1) Create a new datasource Copied jar files from JDBC (SQL Server) Driver to C:\jboss-4.0.2\server\default\lib Create mssql-ds.xml in the folder C:\jboss-4.0.2\server\default\deploy?xml version="1.0" encoding="UTF-8"? local-tx-datasource jndi-nameMSSQLDS/jndi-name connection-urljdbc:microsoft:sqlserver://192.168.193.52:1433;DatabaseName=aveiro_aguas_2/connection-url driver-classcom.microsoft.jdbc.sqlserver.SQLServerDriver/driver-class user-namesa/user-name type-mappingMS SQLSERVER2000/type-mapping /local-tx-datasource In file C:\jboss-4.0.2\server\default\conf\standardjaws.xml i configured the following elements: java:/MSSQLDS type-mappingMS SQLServer2000/type-mapping2) I tested my datasource with a jsp and it is working fine!!!3) For my EJB access the same database i wrote the following bean:package comtwo; import java.util.*; import javax.ejb.*; import javax.ejb.CreateException; import javax.naming.InitialContext; import javax.naming.NamingException; import javax.sql.DataSource; import java.sql.*; /** * * !-- begin-user-doc -- * A generated session bean * !-- end-user-doc -- * * * !-- begin-xdoclet-definition -- * @ejb.bean name="My2" * description="A session bean named My2" * display-name="My2" * jndi-name="My2" * type="Stateless" * transaction-type="Container" * * !-- end-xdoclet-definition -- * @generated */ public abstract class My2Bean implements javax.ejb.SessionBean { /** * * !-- begin-xdoclet-definition -- * @ejb.create-method view-type="remote" * !-- end-xdoclet-definition -- * @generated * * //TODO: Must provide implementation for bean create stub */ public void ejbCreate() throws CreateException{ try { makeConnection(); } catch (Exception ex) { throw new CreateException(ex.getMessage()); } } /** * * !-- begin-xdoclet-definition -- * @ejb.create-method view-type="remote" * !-- end-xdoclet-definition -- * @generated * * //TODO: Must provide implementation for bean create stub */ public void ejbRemove() { try { con.close(); } catch (SQLException ex) { throw new EJBException(ex.getMessage()); } } /** * * !-- begin-xdoclet-definition -- * @ejb.interface-method view-type="remote" * !-- end-xdoclet-definition -- * @generated * * //TODO: Must provide implementation for bean method stub */ public String say2() { return "TWO"; } /** * * !-- begin-xdoclet-definition -- * @ejb.create-method view-type="remote" * !-- end-xdoclet-definition -- * @generated * * //TODO: Must provide implementation for bean create stub */ public My2Bean() {} //DataBase related Routines DataSource ds = null; Connection con = null; // PreparedStatement pr = null; Statement st = null; String dsJNDI = "java:/MSSQLDS"; InitialContext ic; /** * * !-- begin-xdoclet-definition -- * @ejb.create-method view-type="remote" * !-- end-xdoclet-definition -- * @generated * * //TODO: Must provide implementation for bean create stub */ private void makeConnection()throws NamingException, SQLException { ic = new InitialContext(); ds = (DataSource) ic.lookup(dsJNDI); con = ds.getConnection(); } }4) My deployment descriptor is?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 ![CDATA[MyEJBTest2 generated by eclipse wtp xdoclet extension.]] display-nameMyEJBTest2/display-name enterprise-beans !-- Session Beans -- ![CDATA[A session bean named My2]] display-nameMy2/display-name ejb-nameMy2/ejb-name comtwo.My2Home comtwo.My2 local-homecomtwo.My2LocalHome/local-home comtwo.My2Local ejb-classcomtwo.My2Session/ejb-class session-typeStateless/session-type transaction-typeContainer/transaction-type /enterprise-beans ejb-client-jarMyEJBTest2Client.jar/ejb-client-jar /ejb-jar5) I create a new file named jboss.xml in META-INF?xml version="1.0" encoding="UTF-8"? enterprise-beans ejb-nameMy2/ejb-name jndi-nameMy2/jndi-name resource-ref res-ref-namejdbc/MSSQLDS/res-ref-name jndi-namejava:/MSSQLDS/jndi-name /resource-ref /enterprise-beans6) When i made depoly i get ERROR!!!6:17:10,523 ERROR [MainDeployer] could not create deployment: file:/C:/jboss-4.0.2/server/default/tmp/deploy/tmp43901MyEJBTest2EAR.ear-contents/MyEJBTest2.jar org.jboss.deployment.DeploymentException: Error in jboss.xml for Bean null: expected one ejb-name tagPlease help me...What it is wrong???I'm using JBoss4.0.2 + WTP + XDoclet1.2.3 + Eclipse3.1ThankxxCLUDIA

    DB:2.83:Error Ejb Connecting Db Throw Datasource 1f


    OK!The datasource is working ok! I can access DB throw a JSP page.The problem is when i want access DB throw the session bean.My META-INF has jboss.xml:

    ?xml version="1.0" encoding="UTF-8"?

    jboss
    enterprise-beans
    session
    ejb-nameMy2/ejb-name
    jndi-nameMy2/jndi-name
    resource-ref
    res-ref-namejdbc/MSSQLDS/res-ref-name
    jndi-namejava:/MSSQLDS/jndi-name
    /resource-ref

    /session
    /enterprise-beans
    /jboss

  • RELEVANCY SCORE 2.83

    DB:2.83:How Will My Client Use My Bean sm


    Hi everybody
    I have my Enterprise bean on the Application server and my client wants to use my bean in his program so what are the things oher than my JNDIName of bean and IPAddress of my server that I should give him.

    Yogindar

    DB:2.83:How Will My Client Use My Bean sm

    He should know what to set in the InitialContext environment and the JNDI name of the EJB. And of course, he should have a client JAR containing the home and remote interfaces to compile his code.

    $ Carol

  • RELEVANCY SCORE 2.82

    DB:2.82:Re: How To Call Backing Bean Method From Java Script d9


    Hi,

    Did you go through Puthanampatti's reply? He has clearly explained how the backing bean method can be called using java script. You need to use Server and Client listeners for that.

    Your server listener will point to the backing bean method you want to call.
    Your client listener will point to the java script method which will queue the event in the server queue.

    So,

    af:serverListener type="delEvent"
    method="#{backingBeanScope.backing_mybean.delRecord}"/In the above code, the delRecord method is in the backing bean and is being pointed by the server listener.
    public void delRecord(ClientEvent clientEvent){
    ......
    }The client listener,
    af:clientListener type="click" method="delRow"/Is a pointing to the java script method

    delRow = function(event)
    {
    AdfCustomEvent.queue(event.getSource(), "delEvent", {}, false);
    return true;
    }The above javascript is adding the delEvent to the server queue (which is the serverListener, which will in turn invoke the method in the backing bean).

    -Arun

    DB:2.82:Re: How To Call Backing Bean Method From Java Script d9

    Hello,
    May know how to submit a button autoamtically on onload of page with clicking a welcome alert box. the submit button has managed button too to show a message on console using SOP.
    the problem is.
    1. before loading the page a javascript comes on which i clicked ok
    2. the page gets loaded and the button is there which gets automatically clicked and the managed bean associated with prints a message on console using SOP.

    I m trying to do this through server listener and click listener. the code is(adf jspx page)

    ?xml version='1.0' encoding='UTF-8'?
    jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    jsp:directive.page contentType="text/html;charset=UTF-8"/
    f:view
    af:document id="d1" binding="#{backingBeanScope.backing_check4.d1}"
    af:form id="f1" binding="#{backingBeanScope.backing_check4.f1}"
    af:commandButton text="commandButton 1"
    binding="#{backingBeanScope.backing_check4.cb1}"
    id="cb1" action="#{beanCheck4.submit1}"/
    af:clientListener type="click" method="delRow"/
    af:serverListener type= "jsServerListener"
    method="#{backingBeanScope.backing_check4.submit1}"/

    f:facet name="metaContainer"
    af:resource type ="javascript"
    x=confirm("hi");
    // if(x){
    delRow = function(event){

    AdfCustomEvent.queue(event.getSource(), "jsServerListener", {}, false);
    return true;
    }
    // }

    /af:resource

    /f:facet
    /af:form
    /af:document
    /f:view
    !--oracle-jdev-comment:auto-binding-backing-bean-name:backing_check4--
    /jsp:root

    the backing bean code is -----

    public class classCheck4 {
    public classCheck4() {
    }

    public String submit1() {
    System.out.println("hello");
    return null;
    }
    }

  • RELEVANCY SCORE 2.82

    DB:2.82:Ejb Client Error ks


    Hi, I use jdev 10g. I created a session bean with wizards and after that I created I Ejb client for that bean. When I start the embedded server and run the client java file I get the following error :
    com.evermind.server.rmi.OrionRemoteException: jazn.com/admin is not allowed to call this EJB method, check your security settings (method-permission in ejb-jar.xml and security-role-mapping in orion-application.xml).

    at denemeSessionHome_StatelessSessionHomeWrapper1.create(denemeSessionHome_StatelessSessionHomeWrapper1.java:41)

    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 com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:124)

    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)

    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)

    at java.lang.Thread.run(Thread.java:534)

    at connection to localhost/127.0.0.1 as admin
    at com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMIConnection.java:1527)

    at com.evermind.server.rmi.RMIConnection.invokeMethod(RMIConnection.java:1480)

    at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:55)

    at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:22)

    at __Proxy0.create(Unknown Source)

    at ejbpackage.denemeSessionClient.main(denemeSessionClient.java:21)

    Process exited with exit code 0.
    ------------
    all settings are the default ones.

    Anyone has any idea???

    DB:2.82:Ejb Client Error ks

    Hi, I use jdev 10g. I created a session bean with wizards and after that I created I Ejb client for that bean. When I start the embedded server and run the client java file I get the following error :
    com.evermind.server.rmi.OrionRemoteException: jazn.com/admin is not allowed to call this EJB method, check your security settings (method-permission in ejb-jar.xml and security-role-mapping in orion-application.xml).

    at denemeSessionHome_StatelessSessionHomeWrapper1.create(denemeSessionHome_StatelessSessionHomeWrapper1.java:41)

    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 com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:124)

    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)

    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)

    at java.lang.Thread.run(Thread.java:534)

    at connection to localhost/127.0.0.1 as admin
    at com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMIConnection.java:1527)

    at com.evermind.server.rmi.RMIConnection.invokeMethod(RMIConnection.java:1480)

    at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:55)

    at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:22)

    at __Proxy0.create(Unknown Source)

    at ejbpackage.denemeSessionClient.main(denemeSessionClient.java:21)

    Process exited with exit code 0.
    ------------
    all settings are the default ones.

    Anyone has any idea???

  • RELEVANCY SCORE 2.82

    DB:2.82:How To Download A File/Contents Through A Session Bean To The Bean Client z1


    Hi All,

    I'm a newbie to enterprise beans and facing a problem. I have a requirement where an excel file saved on the server will be a accessed by a session bean and return it to the bean client (developed in swing). Client will display the file contents, user edits the contents and saves. Pressing the save button will save the excel on the server again using the same session bean.

    As far as displaying the contents of excel on the form/panel is concerned I have developed this part and able to load files and save them on my local machine.

    But my main requirement is to load it through Session Bean and then save it back on the server. An EJB 2.0 code snippet addressing this part would be a great help.

    Thanks,

  • RELEVANCY SCORE 2.82

    DB:2.82:Enterprise Java Beans In Client/Server? cf


    Is it necessary to have Forms Server in order to implement an Enterprise Java Bean (EJB) in Forms 6.0?

    Is it possible to run an EJB from a basic client/server architecture? If so, please explain how this can be done.

    Thank you very much.

    DB:2.82:Enterprise Java Beans In Client/Server? cf

    Is it necessary to have Forms Server in order to implement an Enterprise Java Bean (EJB) in Forms 6.0?

    Is it possible to run an EJB from a basic client/server architecture? If so, please explain how this can be done.

    Thank you very much.

  • RELEVANCY SCORE 2.82

    DB:2.82:Can I Call A Stored Procedure From Ejb? 1z


    Hi,

    Can I call a regular (non-Java) stored procedure from an enterprise Java bean? Transaction is managed by the ejb application server.

    Thank you for your response.

    CT

    DB:2.82:Can I Call A Stored Procedure From Ejb? 1z

    hi, i saw your question in the forum....have you got a response
    since mars because i 've the same problem...
    thanks in advance
    cheers
    jp

  • RELEVANCY SCORE 2.82

    DB:2.82:Borland Enterprise Server And Toplink 11


    Hi,

    I've made an object model persistent using JDO. A client uses the objects via a stateful session bean (SessionFacade) which is deployed to a Borland Enterprise Server. The bean initializes the TopLinkProject (a java-export of the workbench) the following way:

    Session session = (new TopLinkProject()).createDatabaseSession();
    // Build a JDO PersistenceManagerFactory using the session.
    JDOPersistenceManagerFactory factory =
    new JDOPersistenceManagerFactory(session);
    // Get the PersistenceManager. this will login to the database.
    setManager(factory.getPersistenceManager());
    // Enable logging
    ( (JDOPersistenceManager) getManager()).getSession().logMessages();

    Connection works fine, retrieving objects from database too. But when I try to make a newly created object of the model persistent (getManager().makePersistent(object)), I recieve a ClassCastException:

    java.rmi.ServerException: java.rmi.RemoteException: null; nested exception is:
    java.lang.ClassCastException
    at com.inprise.ejb.EJBHome$RemoteStrategyImpl.getSystemException(EJBHome.java:851)
    at com.inprise.ejb.Dispatcher.doInvoke(Dispatcher.java:1407)
    at com.inprise.ejb.Dispatcher.invokeSecurityCheck(Dispatcher.java:1023)
    at com.inprise.ejb.Dispatcher.invoke(Dispatcher.java:816)
    at com.inprise.ejb.Dispatcher.invoke(Dispatcher.java:595)
    at com.inprise.ejb.EJBHome.dispatcherInvokeBeanMethod(EJBHome.java:55)
    at com.inprise.ejb.EJBHome$ComponentInterfaceMethodCache.invokeDispatcherMethod(EJBHome.java:1460)
    at com.inprise.ejb.EJBHome.invokeDispatcherMethod(EJBHome.java:34)
    at com.inprise.ejb.Dispatcher.invoke(Dispatcher.java:416)
    at com.semture.pdm.sessionserver.beans.SessionFacadePOAInvokeHandler.createPart(SessionFacadePOAInvokeHandler.java:182)
    at com.semture.pdm.sessionserver.beans.SessionFacadePOAInvokeHandler.createPart(SessionFacadePOAInvokeHandler.java:283)
    at com.semture.pdm.sessionserver.beans.SessionFacadePOA._invoke(SessionFacadePOA.java:144)
    at com.semture.pdm.sessionserver.beans.SessionFacadePOA._invoke(SessionFacadePOA.java:53)
    at com.inprise.vbroker.poa.POAImpl.invoke(POAImpl.java:2693)
    at com.inprise.vbroker.poa.ActivationRecord.invoke(ActivationRecord.java:109)
    at com.inprise.vbroker.poa.ServerInterceptorManager$ARWrapper.invoke(ServerInterceptorManager.java:110)
    at com.inprise.vbroker.GIOP.GiopProtocolAdapter.doRequest(GiopProtocolAdapter.java:824)
    at com.inprise.vbroker.IIOP.ServerProtocolAdapter.doRequest(ServerProtocolAdapter.java:68)
    at com.inprise.vbroker.GIOP.GiopProtocolAdapter.dispatchMessage(GiopProtocolAdapter.java:1106)
    at com.inprise.vbroker.orb.TPDispatcherImpl$TPDispatcher.run(TPDispatcherImpl.java:106)
    at com.inprise.vbroker.orb.ThreadPool$PoolWorker.run(ThreadPool.java:76)
    Caused by: java.lang.ClassCastException
    at oracle.toplink.internal.indirection.TransparentIndirectionPolicy.buildBackupClone(Unknown Source)
    at oracle.toplink.internal.indirection.TransparentIndirectionPolicy.backupCloneAttribute(Unknown Source)
    at oracle.toplink.mappings.ForeignReferenceMapping.buildBackupClone(Unknown Source)
    at oracle.toplink.internal.descriptors.ObjectBuilder.buildBackupClone(Unknown Source)
    at oracle.toplink.publicinterface.UnitOfWork.synchronizeAndResume(Unknown Source)
    at oracle.toplink.publicinterface.UnitOfWork.commitAndResume(Unknown Source)
    at oracle.toplink.jdo.JDOTransaction.commit(Unknown Source)
    at oracle.toplink.jdo.JDOPersistenceManager.makePersistent(Unknown Source)
    at com.semture.pdm.sessionserver.persistence.TopLinkAdapter.storeObject(TopLinkAdapter.java:150)
    at com.semture.pdm.sessionserver.persistence.PersistenceManager.makePersistent(PersistenceManager.java:97)
    at com.semture.pdm.sessionserver.persistence.PersistentObject.makePersistent(PersistentObject.java:49)
    at com.semture.pdm.sessionserver.cm.Version.init(Version.java:97)
    at com.semture.pdm.sessionserver.bo.Factory.initBusinessObject(Factory.java:68)
    at com.semture.pdm.sessionserver.bo.Factory.createPart(Factory.java:25)
    at com.semture.pdm.sessionserver.beans.SessionFacadeBean.createPart(SessionFacadeBean.java:212)
    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 com.inprise.ejb.ConcreteMethod.invoke(ConcreteMethod.java:32)
    at com.inprise.ejb.EJBContext.invoke(EJBContext.java:166)
    at com.inprise.ejb.Dispatcher.doInvoke(Dispatcher.java:1301)

    Outside the BES all works fine, including object creation. Could it be, that Toplink uses a wrong ClassLoader inside the BES? It would be great if anybody can help.

    TIA
    STeffen

    DB:2.82:Borland Enterprise Server And Toplink 11

    It doesn't seem to be a class loader issue, at least directly, seems to be related to usage of transparent indirection.

    What is the state of the object that you are making persistent, how is it related to other objects. Does makePersistent work for simple objects? Try switching the 1-m from transparent no no-indirection or valueholders to see if it fixes the problem.

  • RELEVANCY SCORE 2.81

    DB:2.81:Bi Bean Connection ds


    Can i access the connection established to the database by a BI Bean crosstab presentation, using java?

    DB:2.81:Bi Bean Connection ds

    first i'm using a JSP

    second, i need to know the sid of the connection used by my bibean against the database

    thank you for answering

    carlos a.

  • RELEVANCY SCORE 2.81

    DB:2.81:An Easy Deployment Services Question jx


    Hi all,In "Essbase Enterprise Services Installation Guide" you can read:"Client programs for Essbase Enterprise Services must be written in Java, either as a servlet, applet, stand-alone application, or Enterprise Java Bean (EJB)."So the question is:Can Insight/Dynasight access an Essbase server cluster through an Essbase Enterprise Services Server?Thank you in advanceLucas.

    DB:2.81:An Easy Deployment Services Question jx

    The short answer is - if the product was NOT written with the new Java API - they cannot use the new features available in deployment services.Regards,Jade---------------------------------Jade ColeSenior Business Intelligence ConsultantClarity Systemsjcole@claritysystems.comwww.claritysystems.com

  • RELEVANCY SCORE 2.81

    DB:2.81:***** Assertion Failed *****[ Could Not Find Dynamically Generated Skeleton km


    Hi !!

    I found the following error while running the simple java client for a stateful session bean. This session bean works a client for 3 entity beans. All the entity beans work fine while running indipendently. Also the session bean deployed without error.

    remote exception occurred: java.rmi.ServerError: A error occurred the server; ne
    sted exception is:
    weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Could not find dynamically generated Skeleton for: PreOrderSBean_21f_EOImpl_WLSkel ]

    Where PreOrderSBean is the bean name of the session bean.

    Please help ..

    Thanks,
    Trideeb

    DB:2.81:***** Assertion Failed *****[ Could Not Find Dynamically Generated Skeleton km

    An AssertionError is a bug. I can't tell you what's going on without
    more information and investigation. I would suggest you try installing
    the latest service pack for your release. If that doesn't help, please
    open a case with support@bea.com

    -- Rob

    Trideeb Das wrote:
    Hi !!

    I found the following error while running the simple java client for a stateful session bean. This session bean works a client for 3 entity beans. All the entity beans work fine while running indipendently. Also the session bean deployed without error.

    remote exception occurred: java.rmi.ServerError: A error occurred the server; ne
    sted exception is:
    weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Could not find dynamically generated Skeleton for: PreOrderSBean_21f_EOImpl_WLSkel ]

    Where PreOrderSBean is the bean name of the session bean.

    Please help ..

    Thanks,
    Trideeb

  • RELEVANCY SCORE 2.81

    DB:2.81:Bmp - Cannot Access Datasource p9



    OK, I know BMP is a distant second choice for persistence mechanisms. I'm creating a BMP enitity bean as part of a tutorial and seem to be having trouble getting to my MySqlDS datasource from within the bean (in order to persist the data). Here's my bean's getConnection() method:private Connection getConnection() throws Exception { try { Context ctx = new InitialContext(); DataSource ds = (DataSource) ctx.lookup("java:/MySqlDS"); return ds.getConnection(); } catch (Exception e) { System.err.println("unable to get datasource: " + e.getMessage()); e.printStackTrace(); throw e; }}Here's the server output when I exercise a client against the bean:10:34:59,914 ERROR [STDERR] java.lang.SecurityException: Invalid authentication attempt, principal=nullHere's part of my ejb-jar.xml file:ejb-jar... enterprise-beans ejb-nameAccount/ejb-name ch6.AccountHome ch6.Account local-homech6.AccountLocalHome/local-home ch6.AccountLocal ejb-classch6.AccountBean/ejb-class persistence-typeBean/persistence-type prim-key-classch6.AccountPK/prim-key-class False resource-ref res-ref-nameMySqlDS/res-ref-name MySQL test database res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /enterprise-beans.../ejb-jarHere's my jboss.xml file: false container-configurations / resource-managers / enterprise-beans ejb-nameAccount/ejb-name jndi-namech6/Account/jndi-name configuration-name/configuration-name resource-ref res-ref-nameMySqlDS/res-ref-name jndi-namejava:/MySqlDS/jndi-name /resource-ref /enterprise-beansI believe my MySqlDS is configured properly: It has a corresponding MySqlDbRealm in the login-conf.xml file and works just fine with some CMP beans I've deployed and used. I'm running jboss-3.0.0RC1.What am I doing wrong? It looks to me like my bean is finding the datasource but is getting rejected for security reasons.Thanks for the help.

    DB:2.81:Bmp - Cannot Access Datasource p9


    david,Thanks for your reply. Per my original posting, I was running jboss-3.0.0RC1. I've upgraded to rc2.The problem wasn't with login-conf.xml (see my reply to lucluc).Thanks again.

  • RELEVANCY SCORE 2.81

    DB:2.81:How To Call A .Jar File From A Java Bean? cz


    Hi,
    I would like to know how to call a .jar file using a JAVA Bean. (.jar file is used to create a javaHelp and it is on the Server. I need to get the content of the .jar file into my client machines)

    thanks

    Message was edited by:
    Duminda

    DB:2.81:How To Call A .Jar File From A Java Bean? cz

    Crosspost!
    http://forum.java.sun.com/thread.jspa?threadID=762144messageID=4349615#4349615

  • RELEVANCY SCORE 2.81

    DB:2.81:Create Sample Java Client s3


    I try the "Developing a Session Bean" under the topic "Enterprise JavaBean Tutorials" in Jdeveloper.
    When i am in the "Step 6: Testing a Remote EJB"
    and try to "Create Sample Java Client", I have probelm here:
    I select the option to "Connect to Remote App Server". The "Oracle9iAS Connection Name" field is blank and there are no any connections fo me to select. I cannot key in the connect name either. I am sure i already created several connections and test them. I also use one of those connections to deploy the EJB to application server.

    Can someone please tell me what's the problem. Thanks!

    DB:2.81:Create Sample Java Client s3

    I try the "Developing a Session Bean" under the topic "Enterprise JavaBean Tutorials" in Jdeveloper.
    When i am in the "Step 6: Testing a Remote EJB"
    and try to "Create Sample Java Client", I have probelm here:
    I select the option to "Connect to Remote App Server". The "Oracle9iAS Connection Name" field is blank and there are no any connections fo me to select. I cannot key in the connect name either. I am sure i already created several connections and test them. I also use one of those connections to deploy the EJB to application server.

    Can someone please tell me what's the problem. Thanks!

  • RELEVANCY SCORE 2.80

    DB:2.80:Permissions For Method Invocation 39



    Hi,

    I have a session bean which calls methods in the entity bean.

    The entity bean methods can only be called by certain roles.

    I followed the documentation in security for entity beans in Development manual.

    When I deploy and run the ear and then through a client

    and access the session bean

    which accesses the entity bean I am getting errors

    #

    #1.5#00E081006A49003A00000003000010880003D55D9FE275E3#1079

    023021453#com.sap.engine.services.ejb#sap.com/dmEAR#com.sa

    p.engine.services.ejb#TestUser#18#####SAPEngine_Applicatio

    n_Thread[impl:3]_19##0#0#Path#1#/System/Audit#Java###Exception #1#com.sap.engine.services.ejb.exceptions.

    BaseClassNotFoundException: EJBLoader cannot find class:

    com/sun/jndi/url/java/javaURLContextFactory.class.

    at com.sap.engine.services.ejb.deploy.EJBLoader.

    loadLocalClass(EJBLoader.java:101)

    at

    com.sap.engine.frame.core.load.ReferencedLoader.loadClass

    (ReferencedLoader.java:340)

    at

    com.sap.engine.frame.core.load.ReferencedLoader.loadClass

    (ReferencedLoader.java:301)

    at java.lang.ClassLoader.loadClassInternal

    (ClassLoader.java:302)

    at java.lang.Class.forName0(Native Method)

    at java.lang.Class.forName(Class.java:219)

    at

    com.sun.naming.internal.VersionHelper12.loadClass

    (VersionHelper12.java:50)

    at

    com.sun.naming.internal.ResourceManager.getFactory

    (ResourceManager.java:371)

    at javax.naming.spi.NamingManager.getURLObject

    (NamingManager.java:570)

    at javax.naming.spi.NamingManager.getURLContext

    (NamingManager.java:528)

    at

    com.sap.engine.system.naming.provider.DefaultInitialContex

    t.getURLOrDefaultInitCtx(DefaultInitialContext.java:120)

    at javax.naming.InitialContext.lookup

    (InitialContext.java:347)

    at javax.naming.InitialContext.lookup

    (InitialContext.java:347)

    at

    com.hp.dm.server.ejb.DocumentManagerSB.getDocumentEBLHif

    (DocumentManagerSB.java:148)

    at

    com.hp.dm.server.ejb.DocumentManagerSB.ejbCreate

    (DocumentManagerSB.java:49)

    at

    com.hp.dm.common.interfaces.DocumentManagerHifImpl0.initSe

    ssionBean(DocumentManagerHifImpl0.java:114)

    at

    com.sap.engine.services.ejb.session.stateless.StatelessCon

    tainerFP.createContext(StatelessContainerFP.java:50)

    at

    com.sap.engine.services.ejb.session.stateless.StatelessCon

    tainer.createObject(StatelessContainer.java:173)

    at

    com.sap.engine.services.ejb.util.pool.ContainerPoolImpl.do

    ResizeOneStepUp(ContainerPoolImpl.java:345)

    at

    com.sap.engine.services.ejb.util.pool.ContainerPoolImpl.en

    sureNotEmpty(ContainerPoolImpl.java:314)

    at

    com.sap.engine.services.ejb.util.pool.ContainerPoolImpl.po

    p(ContainerPoolImpl.java:284)

    at

    com.sap.engine.services.ejb.session.stateless.StatelessCon

    tainer.getContext(StatelessContainer.java:96)

    at

    com.sap.engine.services.ejb.session.stateless.StatelessSes

    sion.getContext(StatelessSession.java:64)

    at

    com.hp.dm.common.interfaces.DocumentManagerRifObjectImpl0.

    _submitDocument(DocumentManagerRifObjectImpl0.java:242)

    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

    com.hp.dm.common.interfaces.DocumentManagerRifObjectImpl0.

    run(DocumentManagerRifObjectImpl0.java:106)

    at java.security.AccessController.doPrivileged

    (Native Method)

    at javax.security.auth.Subject.doAs

    (Subject.java:379)

    at

    com.hp.dm.common.interfaces.DocumentManagerRifObjectImpl0.

    submitDocument(DocumentManagerRifObjectImpl0.java:184)

    at

    com.hp.dm.common.interfaces.DocumentManagerRifObjectImpl0p

    4_Skel.dispatch

    (DocumentManagerRifObjectImpl0p4_Skel.java:102)

    at

    com.sap.engine.services.rmi_p4.DispatchImpl._runInternal

    (DispatchImpl.java:268)

    at

    com.sap.engine.services.rmi_p4.DispatchImpl._run

    (DispatchImpl.java:165)

    at

    com.sap.engine.services.rmi_p4.server.P4SessionProcessor.r

    equest(P4SessionProcessor.java:102)

    at

    com.sap.engine.core.service630.context.cluster.session.App

    licationSessionMessageListener.proces

    s(ApplicationSessionMessageListener.java:37)

    at

    com.sap.engine.core.cluster.impl6.session.UnorderedChannel

    $MessageRunner.run(UnorderedChannel.java:71)

    at

    com.sap.engine.core.thread.impl3.ActionObject.run

    (ActionObject.java:37)

    at java.security.AccessController.doPrivileged

    (Native Method)

    at

    com.sap.engine.core.thread.impl3.SingleThread.execute

    (SingleThread.java:94)

    at

    com.sap.engine.core.thread.impl3.SingleThread.run

    (SingleThread.java:140)

    EJB_JAR.XML

    so my ejb-jar.xml has

    entity

    ejb-nameDocumentEB/ejb-name

    homecom.hp.dm.common.interfaces.DocumentEBHif/home

    remotecom.hp.dm.common.interfaces.DocumentEBRif/remote

    local-home

    com.hp.dm.common.interfaces.DocumentEBLHif

    /local-home

    localcom.hp.dm.common.interfaces.DocumentEBLif/local

    ejb-classcom.hp.dm.server.ejb.DocumentEB/ejb-class

    persistence-typeBean/persistence-type

    prim-key-classjava.lang.String/prim-key-class

    reentrantFalse/reentrant

    abstract-schema-name

    /abstract-schema-name

    security-identity

    descriptionSecurityIdentityUser/description

    run-as

    role-nametestuser/role-name

    /run-as

    /security-identity

    /entity

    and the assembly descriptor is

    assembly-descriptor

    security-role

    description

    /description

    role-nametestuser/role-name

    /security-role

    method-permission

    descriptionmethod-permission/description

    role-nametestuser/role-name

    method

    ejb-nameDocumentEB/ejb-name

    method-name*/method-name

    /method

    /method-permission

    /assembly-descriptor

    The ejb-j2ee-engine.xml has

    ?xml version="1.0" encoding="UTF-8"?

    !DOCTYPE ejb-j2ee-engine SYSTEM "ejb-j2ee-engine.dtd"

    ejb-j2ee-engine

    description

    /description

    enterprise-beans

    enterprise-bean

    ejb-nameDocumentCMPEBBean/ejb-name

    jndi-nameDocManager/DocumentEB/jndi-name

    entity-props/

    /enterprise-bean

    enterprise-bean

    ejb-nameDocumentEB/ejb-name

    jndi-nameDocManager/DocumentEJB/jndi-name

    run-as-identity-map

    user-nameTestUser/user-name

    /run-as-identity-map

    entity-props/

    /enterprise-bean

    enterprise-bean

    ejb-nameDocumentManagerSB/ejb-name

    jndi-nameDocManager/DocumentManagerSB/jndi-name

    session-props/

    /enterprise-bean

    /enterprise-beans

    security-permission

    security-role-map

    role-nametestuser/role-name

    server-role-nameTestUser/server-role-name

    /security-role-map

    /security-permission

    /ejb-j2ee-engine

    any idea as to what may be wrong if I remove the method permission items everything works correctly. Please help.

    Thanks a lot

    Padmaja

    DB:2.80:Permissions For Method Invocation 39


    Hi I am also getting same exception.

    Can you help me how to overcome this problem if you had solved it.

    I am using SAP Netweaver WEB AS6.40

    Thanks in advance

  • RELEVANCY SCORE 2.80

    DB:2.80:Sun J2ee Sdk 1.3_01, Java.Lang.Classcastexception Thrown During Deployment 3j



    I encountered a bug while using the deploytool to deploy
    an EAR file to the Sun J2EE 1.3_01 server.

    I submitted a bug report to Sun via the Sun Java Developer Connection.
    (Sorry, it has not been assigned a BugID yet)

    Question:
    Does anybody know if the web container in Sun's
    J2EE 1.3_01 server supports access to local enterprise beans?

    Screenshots of the bug are available at

    http://sync4j.sourceforge.net/deploymentbug/

    Full details below....

    -Sean

    category: j2ee
    subcategory: deployment
    release: 1.3_01
    hardware: x86
    OSversion: windows_2000
    synopsis: java.lang.ClassCastException thrown during deployment of Session bean

    java -version
    java version "1.3.1_01"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01)
    Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode)

    ----------------------
    C:\j2sdkee1.3\binj2ee -version
    Java 2 Enterprise Edition version 1.3_01, build 1.3_01-b01
    ----------------------

    I built a EJB 2.0 compliant stateful session bean.

    The session bean has a remote interface (ISyncRemote),
    a remote home interface (ISyncHomeRemote),
    a local interface (ISyncLocal),
    and a local home interface (ISyncHomeLocal).

    I built an HTTP Servlet that is supposed to access
    the Stateful Session Bean using ISyncHomeLocal and
    ISyncLocal

    I run "deploytool.bat" in GUI mode to perform the deployment.

    During deployment, the deploytool GUI displays a message
    box which states:

    "There was a deployment error.
    java.rmi.ServerException: RemoteException occurred in server thread;
    nested exception is:
    java.rmi.RemoteException: An error was encountered while loading
    a web component.
    Please refer to
    J2EE_HOME/logs/machine-name/j2ee//j2ee/error.log
    for more information. Please verify your Application with the
    Verifier tool."

    The "error.log" file did not contain any useful information.

    I ran the J2EE "verifier.bat" tool to verify that my EAR archive is OK.

    The Sun J2EE server output this error string:

    "java.lang.ClassCastException:
    com.sun.enterprise.deployment.EjbExternalDescriptor"

    Here is the full output from the Sun J2EE server:

    ---------------------------
    C:\j2sdkee1.3\binj2ee -verbose
    J2EE server listen port: 1050
    Naming service started:1050
    Binding DataSource, name = jdbc/EstoreDB, url =
    jdbc:cloudscape:rmi:CloudscapeDB;create=true
    Binding DataSource, name = jdbc/Cloudscape, url =
    jdbc:cloudscape:rmi:CloudscapeDB;create=true
    Binding DataSource, name = jdbc/DB1, url =
    jdbc:cloudscape:rmi:CloudscapeDB;create=true
    Binding DataSource, name = jdbc/DB2, url =
    jdbc:cloudscape:rmi:CloudscapeDB;create=true
    Binding DataSource, name = jdbc/InventoryDB, url =
    jdbc:cloudscape:rmi:CloudscapeDB;create=true
    Binding DataSource, name = jdbc/XACloudscape, url = jdbc/XACloudscape__xa
    Binding DataSource, name = jdbc/XACloudscape__xa, dataSource =
    COM.cloudscape.core.RemoteXaDataSourc
    e@245536
    Starting JMS service...
    Initialization complete - waiting for client requests
    Binding: JMS Destination : jms/Queue , javax.jms.Queue
    Binding: JMS Destination : jms/Topic , javax.jms.Topic
    Binding: JMS Cnx Factory : TopicConnectionFactory , Topic , No properties
    Binding: JMS Cnx Factory : jms/TopicConnectionFactory , Topic , No properties

    Binding: JMS Cnx Factory : QueueConnectionFactory , Queue , No properties
    Binding: JMS Cnx Factory : jms/QueueConnectionFactory , Queue , No properties

    Starting web service at port: 8000
    Starting secure web service at port: 7000
    J2EE SDK/1.3
    Starting web service at port: 9191
    J2EE SDK/1.3
    J2EE server startup complete.
    Compiling c:\j2sdkee1.3\repository\rbi\gnrtrTMP\Sync4j Server enterprise
    application\sync4j\server\s
    yncbean\SyncBean_LocalHomeImpl.java ....
    Compiling c:\j2sdkee1.3\repository\rbi\gnrtrTMP\Sync4j Server enterprise
    application\sync4j\server\s
    yncbean\SyncBean_EJBLocalObjectImpl.java ....
    Compiling c:\j2sdkee1.3\repository\rbi\gnrtrTMP\Sync4j Server enterprise
    application\sync4j\server\s
    yncbean\SyncBean_RemoteHomeImpl.java ....
    Compiling c:\j2sdkee1.3\repository\rbi\gnrtrTMP\Sync4j Server enterprise
    application\sync4j\server\s
    yncbean\SyncBean_EJBObjectImpl.java ....
    rmic sync4j.server.syncbean.SyncBean_RemoteHomeImpl...
    rmic sync4j.server.syncbean.SyncBean_EJBObjectImpl...
    c:\j2sdkee1.3\repository\rbi\applications\Sync4j Server enterprise
    application1004172068449Server.ja
    r
    Binding name:`java:comp/env/ejb/ISyncHomeRemote`
    Binding name:`java:comp/env/ejb/ISyncHomeLocal`
    java.lang.ClassCastException:
    com.sun.enterprise.deployment.EjbExternalDescriptor
    at com.sun.enterprise.deployment.EjbReferenceDescriptor.getValue
    (EjbReferenceDescriptor.java
    :202)
    at com.sun.enterprise.naming.NamingManagerImpl.bindObjects
    (NamingManagerImpl.java:394)
    at com.sun.web.server.WebService.addContext(WebService.java:148)
    at com.sun.web.server.ServletDeployerImpl.loadWebComponents
    (ServletDeployerImpl.java:214)
    at
    com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.deployWebComponent
    s
    (JarInsta
    llerImpl.java:791)
    at
    com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.deployApplication
    (JarInstall
    erImpl.java:219)
    at
    org.omg.stub.com.sun.enterprise.tools.deployment.backend._JarInstallerImpl_Tie.
    _
    invoke(Un
    known Source)
    at com.sun.corba.ee.internal.corba.ServerDelegate.dispatch
    (ServerDelegate.java:355)
    at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:273)
    at com.sun.corba.ee.internal.iiop.RequestProcessor.process
    (RequestProcessor.java:84)
    at com.sun.corba.ee.internal.orbutil.ThreadPool$PooledThread.run
    (ThreadPool.java:99)
    ---------------------------

    Does the Sun J2EE server implementation support the invocation
    of Session EJB's via a Local interface?

    Does the Sun J2EE server implementation allow a Servlet to invoke
    Session EJB's via the bean's Local interface?

    While researching this issue, I read the J2EE 1.3 final specification.
    The spec says:

    "The EJB container is required to access to local enterprise beans.
    We recommend that the web container also support access to local
    enterprise beans."

    Does the web container in Sun's J2EE server support access to local enterprise beans?

  • RELEVANCY SCORE 2.80

    DB:2.80:Ejb Bean Not Being Called aa


    HI
    I have a session bean deployed on Weblogic 8.1, when I try to call a method on bean from a simple class (out side of server context) it is just calling the method on the remote object but not Bean object.

    I made a jar file and deployed it through weblogic console, It worked fine when I test with Test this EJB link on the Testing Tab on console.

    client class was not part of jar.

    weblogic-ejb-jar.xml
    weblogic-enterprise-bean
    ejb-nameCreate/ejb-bean
    jndi-namejava/CreateHome/jndi-name
    /weblogic-enterprise-beanejb-jar.xml

    ejb-jar
    enterprise-beans
    session
    ejb-nameCreate/ejb-name
    homeCreateHome/home
    ejb-classCreateBean/ejb-class
    session-typeStateless/session-type
    transaction-typecontainer/transaction-type
    /session

    ........
    /ejb-jarclient code
    Hashtable ht = new Hashtable();
    ht.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory")"
    InitialContext ctx = new InitialContext(ht);
    Object obj = ctx.lookup("java/CreateHome");
    CreateHome home =
    (CreateHome)PortableRemoteObject.narrow(obj,CreateHome.class);
    Create remote = home.create();

    remote.callSomemethod();any help will be appreciated, thank you

    DB:2.80:Ejb Bean Not Being Called aa

    Sorry guys please ignore my post.

    It was working fine, I was not looking at weblogic Server logs for my ejb printouts , instead I was looking at logs for the Client code in Net beans.

    sounds stupid right ?

  • RELEVANCY SCORE 2.79

    DB:2.79:Oracle Remote Connection In Java zf


    My question is:
    Is necessary install Oracle Client XE for establishing a connection with Java code to the Oracle Server? Or is there another way without Oracle Client XE?
    Thanks
    Luca

    DB:2.79:Oracle Remote Connection In Java zf

    Hi,

    Have you tried using JDBC-Thin (i..e., ojdbc14.jar)? Should not require any client install.

    Kuassi http://db360.blogspot.com

  • RELEVANCY SCORE 2.79

    DB:2.79:Conflicts Binding Ejb To Jndi Names 9d


    Hi everyone, I'm having a problem to run an application client due to JNDI errors during the binding of EJB modules.
    I'm using NetBeans 5.5 and Sun Java Application Server 9 PE.

    the server log shows these messages:

    SEVERE| Exception in creating EJB container [javax.naming.NameAlreadyBoundException: Use rebind to override]

    SEVERE| appId=+CorpTour+ moduleName=+Tour+_jar ejbName=+reservationBean+

    SEVERE| Jndi name conflict found in [+CorpTour+]. Jndi name [+reservationRemote+] for bean [+reservationBean+] is already in use.

    SEVERE| Naming exception while creating EJB container: javax.naming.NameAlreadyBoundException: Use rebind to override

    here the components are:
    Enterprise application: CorpTour
    EJB: Tour
    Session Bean: reservationBean
    Session Bean remote interface: reservationRemote

    I created all the EJB calls using the IDE assitant so I don't know what's wrong.
    Another thing is that the IDE created the application-client.xml file but not the ejb-jar file.

    I would reeeeally appreciate any help on this problem. Thanks in advance

    DB:2.79:Conflicts Binding Ejb To Jndi Names 9d

    Hi everyone, I'm having a problem to run an application client due to JNDI errors during the binding of EJB modules.
    I'm using NetBeans 5.5 and Sun Java Application Server 9 PE.

    the server log shows these messages:

    SEVERE| Exception in creating EJB container [javax.naming.NameAlreadyBoundException: Use rebind to override]

    SEVERE| appId=+CorpTour+ moduleName=+Tour+_jar ejbName=+reservationBean+

    SEVERE| Jndi name conflict found in [+CorpTour+]. Jndi name [+reservationRemote+] for bean [+reservationBean+] is already in use.

    SEVERE| Naming exception while creating EJB container: javax.naming.NameAlreadyBoundException: Use rebind to override

    here the components are:
    Enterprise application: CorpTour
    EJB: Tour
    Session Bean: reservationBean
    Session Bean remote interface: reservationRemote

    I created all the EJB calls using the IDE assitant so I don't know what's wrong.
    Another thing is that the IDE created the application-client.xml file but not the ejb-jar file.

    I would reeeeally appreciate any help on this problem. Thanks in advance

  • RELEVANCY SCORE 2.79

    DB:2.79:Distributed Transactions a1


    I was wondering if this is possible with Kodo JDO Enterprise Edition:

    I have an enterprise application server with session beans serving java
    clients running on different hosts in different java virtual machines.
    The transaction management is handled by the container.

    Some remote bean methods return java data objects that are altered by
    the clients.

    Is it possible to distribute the transaction and the java data objects
    accross different virtual machines?

    Thanks.

    -Robert

    DB:2.79:Distributed Transactions a1

    Note that the wrapping of a JDO class in a BMP bean is a fairly trivial
    (albeit tedious) task. We are considering a tool to automatically
    perform this function for a future release of Kodo.Now I agree that EJB and JDO work very well together. However, I can't see
    what is to be gained by using entity beans + JDO. Kodo JDO offers a
    reasonably sophisticated O/R mapping. EJB 2.0 BMP hardly addresses any of
    the problems of O/R mapping. (EJB 2.0 CMP is a little better, but it's a
    completely different model to JDO with its own query language.)

    Using JDO with entity beans means abandoning transparent persistence,
    introducing unnecessary JNDI lookups and probably ending up with a lowest
    common denominator of functionality. Also local interface support is
    required for half decent performance, meaning an EJB 2.0 container. (Not
    WebSphere at present, for example.) Plus BMP entity beans have some dreadful
    performance characteristics, especially with finders.

    It seems to me that using JDO from session beans is the way to go, and that
    entity beans add no value. In the longer term, I can't see a future for
    entity beans (BMP or CMP) if JDO is widely adopted.

    Rod

  • RELEVANCY SCORE 2.79

    DB:2.79:Enterprise Application Client -- Offline Mode c9


    Hi

    I want to write an enterprise application with the following usage patterns:
    1) A few privileged users will input data with their laptop while not having access to the internet.
    2) Everyone (that is, the general public) should be able to access reports generated from this data.

    Usage pattern 2) will obviously be solved with a web technology, probably JSF.

    For 1), I have already developed a client application that works with a local JavaDB database. This local database can be synchronized with the server using an EJB. This application works as long as I have a connection to the application server.

    The problem is, how can I write a client application that also works when there is no internet connection? Obviously, I can't use the EJB when offline, but the application should at least start.

    I have already tried writing a normal Java SE application that connects to the application server using InitialContext.doLookup. The problem with this approach is that I lose distributed transactions. For synchronizing the server and client databases, I'd like to have a single transaction covering both the EJB and the local persistence context.

    The other problem is when someone presses the synchronize button while not being able to connect to the server. Then the application hangs in the InitialContext.doLookup function, spewing out "Connection failure" messages and stack traces to the console, but I have found no way to set some kind of timeout and displaying a user friendly dialog box with an error message.

    The way I see it, I have two alternatives:
    a) Somehow write a Java EE client application that doesn't mind being started offline. Obviously it can't inject the bean, so I have to test this somehow and just disable the corresponding button.
    b) Find a way to use JTA transactions with a Java SE application, and somehow detect when InitialContext.doLookup can't connect.

    Does anyone have know how to do that?

    DB:2.79:Enterprise Application Client -- Offline Mode c9

    Hi

    I want to write an enterprise application with the following usage patterns:
    1) A few privileged users will input data with their laptop while not having access to the internet.
    2) Everyone (that is, the general public) should be able to access reports generated from this data.

    Usage pattern 2) will obviously be solved with a web technology, probably JSF.

    For 1), I have already developed a client application that works with a local JavaDB database. This local database can be synchronized with the server using an EJB. This application works as long as I have a connection to the application server.

    The problem is, how can I write a client application that also works when there is no internet connection? Obviously, I can't use the EJB when offline, but the application should at least start.

    I have already tried writing a normal Java SE application that connects to the application server using InitialContext.doLookup. The problem with this approach is that I lose distributed transactions. For synchronizing the server and client databases, I'd like to have a single transaction covering both the EJB and the local persistence context.

    The other problem is when someone presses the synchronize button while not being able to connect to the server. Then the application hangs in the InitialContext.doLookup function, spewing out "Connection failure" messages and stack traces to the console, but I have found no way to set some kind of timeout and displaying a user friendly dialog box with an error message.

    The way I see it, I have two alternatives:
    a) Somehow write a Java EE client application that doesn't mind being started offline. Obviously it can't inject the bean, so I have to test this somehow and just disable the corresponding button.
    b) Find a way to use JTA transactions with a Java SE application, and somehow detect when InitialContext.doLookup can't connect.

    Does anyone have know how to do that?

  • RELEVANCY SCORE 2.79

    DB:2.79:Jta Transaction Problem With Remote Jboss Instance mm



    Hi All,I am facing the problem with transactions across remote JBoss servers. The scenario is like this:I have a SLSB deployed on JBoss server A which is running on machine X and I have an Entity Bean deployed on JBoss server B which is running on machine Y. Now I am invoking one of the business methods on SLSB using the client program on machine X and which in turn look up the BMP Entity Bean on machine Y and inserts a row into the database. And the session bean inserts a row into the database on machine X with the same info. of the created row in database on machine Y.I am using the JTA API in Bean Managed SLSB to manage these database updates atomically. The problem is after the SLSB invoking the Entity Bean's create method, a new row is inserted into the database on machine X, but the JBoss server A throws the following exception and rolled back the transaction on machine Y's database.[TxInterceptorBMT] Application error: BMT stateless bean TestEJB should complete transactions before returning (ejb1.1 spec, 11.6.1)Please find the files I am using for reference:SLSB code:-------------public int insertRow(String id) { Connection conn = null; UserTransaction ut = null; PreparedStatement pst = null; ResultSet rs = null; int result = 0; try { Properties prop = new Properties(); prop.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); prop.setProperty(Context.PROVIDER_URL, "jnp://remote-host:1099"); initCtx = new InitialContext(prop); ut = sessionCtx.getUserTransaction(); ut.begin(); AccountHome accHome = (AccountHome) PortableRemoteObject.narrow(initCtx.lookup("MyAccountHome"), AccountHome.class); Account account = accHome.create(id, 300); double amount = account.balance(); conn = getConnection(); pst = conn.prepareStatement("insert into test values(?,?)"); pst.setString(1, id); pst.setDouble(2, amount); result = pst.executeUpdate(); pst.close(); conn.close(); ut.commit();}catch(Exception e) {try { pst.close(); conn.close(); ut.rollback();}catch(SystemException se) { throw new EJBException("Rollback failed: " + se.getMessage());}catch(SQLException se) { throw new EJBException("Rollback failed: " + se.getMessage());}throw new EJBException("Transaction failed: " + e.getMessage());}return result;}ejb-jar.xml:--------------?xml version="1.0"?!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 ejb-nameTestEJB/ejb-name com.abc.examples.TestHome com.abc.examples.Test ejb-classcom.abc.examples.TestBean/ejb-class session-typeStateless/session-type transaction-typeBean/transaction-type /enterprise-beans /ejb-jarjboss.xml:------------?xml version="1.0" encoding="UTF-8"?!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 3.2//EN" "http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd" enterprise-beans ejb-nameTestEJB/ejb-name jndi-nameMyTestHome/jndi-name /enterprise-beansEntity Bean code:--------------------public String ejbCreate (String accountId, double initialBalance) throws CreateException { this.accountId = accountId; this.balance = initialBalance; Connection con = null; PreparedStatement ps = null; try { con = getConnection(); ps = con.prepareStatement("insert into ejbAccounts (id, bal) values(?, ?)"); ps.setString(1, accountId); ps.setDouble(2, balance); if (ps.executeUpdate() != 1) { throw new CreateException ("JDBC did not create any row"); } return accountId; } catch (SQLException sqe) { try { ejbFindByPrimaryKey(accountId); } catch(ObjectNotFoundException onfe) { throw new CreateException ("SQLException: " + sqe); } throw new DuplicateKeyException("An Account already exists in the database with Primary Key " + accountId); } finally { cleanup(con, ps); } } private Connection getConnection() throws SQLException { InitialContext initCtx = null; try { InitialContext ctx = new InitialContext(); DataSource ds = (javax.sql.DataSource) ctx.lookup("java:/DefaultDS"); return ds.getConnection(); } catch(NamingException ne) { throw new EJBException(ne); } finally { try { if(initCtx != null) initCtx.close(); } catch(NamingException ne) { throw new EJBException("Error closing context: " + ne); } } }ejb-jar.xml:--------------?xml version="1.0"?!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 ejb-namebeanManaged/ejb-name com.abc.transaction.beanmanaged.AccountHomecom.abc.transaction.beanmanaged.Accountejb-classcom.abc.transaction.beanmanaged.AccountBean/ejb-class persistence-typeBean/persistence-type prim-key-classjava.lang.String/prim-key-class False resource-ref res-ref-namejdbc/DefaultDS/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /enterprise-beans assembly-descriptor container-transaction ejb-namebeanManaged/ejb-name method-name*/method-name trans-attributeRequired/trans-attribute /container-transaction /assembly-descriptor/ejb-jarHow could I solve this problem? Any help is greatly appreciated as I am in the middle of the project. Thanks in advance.

    DB:2.79:Jta Transaction Problem With Remote Jboss Instance mm


    Hi All,I am facing the problem with transactions across remote JBoss servers. The scenario is like this:I have a SLSB deployed on JBoss server A which is running on machine X and I have an Entity Bean deployed on JBoss server B which is running on machine Y. Now I am invoking one of the business methods on SLSB using the client program on machine X and which in turn look up the BMP Entity Bean on machine Y and inserts a row into the database. And the session bean inserts a row into the database on machine X with the same info. of the created row in database on machine Y.I am using the JTA API in Bean Managed SLSB to manage these database updates atomically. The problem is after the SLSB invoking the Entity Bean's create method, a new row is inserted into the database on machine X, but the JBoss server A throws the following exception and rolled back the transaction on machine Y's database.[TxInterceptorBMT] Application error: BMT stateless bean TestEJB should complete transactions before returning (ejb1.1 spec, 11.6.1)Please find the files I am using for reference:SLSB code:-------------public int insertRow(String id) { Connection conn = null; UserTransaction ut = null; PreparedStatement pst = null; ResultSet rs = null; int result = 0; try { Properties prop = new Properties(); prop.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); prop.setProperty(Context.PROVIDER_URL, "jnp://remote-host:1099"); initCtx = new InitialContext(prop); ut = sessionCtx.getUserTransaction(); ut.begin(); AccountHome accHome = (AccountHome) PortableRemoteObject.narrow(initCtx.lookup("MyAccountHome"), AccountHome.class); Account account = accHome.create(id, 300); double amount = account.balance(); conn = getConnection(); pst = conn.prepareStatement("insert into test values(?,?)"); pst.setString(1, id); pst.setDouble(2, amount); result = pst.executeUpdate(); pst.close(); conn.close(); ut.commit();}catch(Exception e) {try { pst.close(); conn.close(); ut.rollback();}catch(SystemException se) { throw new EJBException("Rollback failed: " + se.getMessage());}catch(SQLException se) { throw new EJBException("Rollback failed: " + se.getMessage());}throw new EJBException("Transaction failed: " + e.getMessage());}return result;}ejb-jar.xml:--------------?xml version="1.0"?!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 ejb-nameTestEJB/ejb-name com.abc.examples.TestHome com.abc.examples.Test ejb-classcom.abc.examples.TestBean/ejb-class session-typeStateless/session-type transaction-typeBean/transaction-type /enterprise-beans /ejb-jarjboss.xml:------------?xml version="1.0" encoding="UTF-8"?!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 3.2//EN" "http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd" enterprise-beans ejb-nameTestEJB/ejb-name jndi-nameMyTestHome/jndi-name /enterprise-beansEntity Bean code:--------------------public String ejbCreate (String accountId, double initialBalance) throws CreateException { this.accountId = accountId; this.balance = initialBalance; Connection con = null; PreparedStatement ps = null; try { con = getConnection(); ps = con.prepareStatement("insert into ejbAccounts (id, bal) values(?, ?)"); ps.setString(1, accountId); ps.setDouble(2, balance); if (ps.executeUpdate() != 1) { throw new CreateException ("JDBC did not create any row"); } return accountId; } catch (SQLException sqe) { try { ejbFindByPrimaryKey(accountId); } catch(ObjectNotFoundException onfe) { throw new CreateException ("SQLException: " + sqe); } throw new DuplicateKeyException("An Account already exists in the database with Primary Key " + accountId); } finally { cleanup(con, ps); } } private Connection getConnection() throws SQLException { InitialContext initCtx = null; try { InitialContext ctx = new InitialContext(); DataSource ds = (javax.sql.DataSource) ctx.lookup("java:/DefaultDS"); return ds.getConnection(); } catch(NamingException ne) { throw new EJBException(ne); } finally { try { if(initCtx != null) initCtx.close(); } catch(NamingException ne) { throw new EJBException("Error closing context: " + ne); } } }ejb-jar.xml:--------------?xml version="1.0"?!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 ejb-namebeanManaged/ejb-name com.abc.transaction.beanmanaged.AccountHomecom.abc.transaction.beanmanaged.Accountejb-classcom.abc.transaction.beanmanaged.AccountBean/ejb-class persistence-typeBean/persistence-type prim-key-classjava.lang.String/prim-key-class False resource-ref res-ref-namejdbc/DefaultDS/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /enterprise-beans assembly-descriptor container-transaction ejb-namebeanManaged/ejb-name method-name*/method-name trans-attributeRequired/trans-attribute /container-transaction /assembly-descriptor/ejb-jarHow could I solve this problem? Any help is greatly appreciated as I am in the middle of the project. Thanks in advance.

  • RELEVANCY SCORE 2.78

    DB:2.78:Ejb Startup And Two Way Communication 8j


    Hi,

    im trying to convert a classical java client-server application two an enterprise java solution.
    First time i use ejb and i came across two problems:

    in my classical java server application, the server starts up by calling the main() method, after that it creates a serversocket and starts listening for clients.
    Connected clients can send information to other connected clients, much like a chat application, while the server can send messages to the clients at random times (because it finished some calculation let's say).

    My obvious choice was for the server to be an enterprise java bean, while the clients are application beans. With the bean solution, clients are managed by session objects in the server, and these session beans are automatically created once the client connects, but how is the server created? Since the server needs to relay communication between session beans, it has to be started first, but i cannot figure out how i do 'start' my 'server'. Why can i not just call the main method, like i did before, afterwhich the serversocket was created? The startup was my first problem.

    My second problem was that i cannot figure out how to create a two-way communication channel with session beans. A client can send information to the server, and gets an immediate reply (because the method returns some result), but how can the server communicate to the client. In other words, how do you translate a socket based system to session beans?

    much thanks,

    Thomas

    DB:2.78:Ejb Startup And Two Way Communication 8j

    the entity persistence part of ejb, jpa, is fully separable from ejb. you can use something like hibernate directly or through a jpa layer, but either way, you do not need the rest of the ejb stack in order to use it (granted, it's more convenient to use within an app server, but it's not missing any functionality when you use it outside).

  • RELEVANCY SCORE 2.78

    DB:2.78:Bes Services Failing To Start - Java Issue d8



    I had an issue the other week with BES services failing to start. I tracked it down to Java. After updating to Java 6 you must amend BES registry values:

    BAS-AS – Parameters – JVM Library - C:\Program Files\Java\ jre1.6.0_15\bin\client\jvm.dll to C:\Program Files\Java\jre6\bin\client\jvm.dll

    BAS-NCC – Parameters - JVM Library - C:\Program Files\Java\\ jre1.6.0_15\bin\client\jvm.dll to C:\Program Files\Java\jre6\bin\client\jvm.dll

    BlackBerry MDS Connection Service (ImagePath) – Change value from C:\Program Files\Java\jre1.6.0_15\bin\client\jvm.dll to in my case C:\Program Files\Java\jre6\bin\client\jvm.dll

    Hope this helps,

    Phil.

    [Subject Title edited to reflect new topic.]

    DB:2.78:Bes Services Failing To Start - Java Issue d8


    just some more info if Java has been updated, you dont need to update it, it is not needed but check the following if you have

    http://www.blackberry.com/btsc/KB14697

    Also modify this key, it seems to get the wrong value during an upgrade for some.

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic​es\BAS-AS\Parameters\JVM Option Number 3

    -Xmx1024mby-Xmx768m




    Click here to Backup the data on your BlackBerry Device! It's important, and FREE!
    Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs upClick to search the Knowledge Base at BTSC and click to Read The Fabulous Manuals
    BESAdmin's, please make a signature with your BES environment info.

    SIM Free BlackBerry Unlocking FAQFollow me on Twitter @knottyrope

    Want to thank me? Buy my KnottyRope App here

    BES 12 and BES 5.0.4 with Exchange 2010 and SQL 2012 Hyper V

  • RELEVANCY SCORE 2.78

    DB:2.78:The Cluster For Stateful Session Bean ma


    I set up two cluster servers, weblogic 6.0 sp2 and deploy a sateful session
    bean.
    When the client calls the stateful session bean and is in process, the one
    of the cluster servers goes down.
    Howerver, the client doesn't automatically redirect another cluster server
    and stops running after throwing exception.
    How can the client automatically redirect another cluster server?
    How can the state of stateful session bean failover?

    The weblogic-ejb.xml of stateful session bean and the exception are below.
    ?xml version="1.0"?
    !DOCTYPE weblogic-ejb-jar PUBLIC '-//BEA Systems, Inc.//DTD WebLogic 6.0.0
    EJB//EN' 'http://www.bea.com/servers/wls600/dtd/weblogic-ejb-jar.dtd'
    weblogic-ejb-jar
    weblogic-enterprise-bean
    ejb-nametest_stateful/ejb-name
    stateful-session-descriptor
    stateful-session-clustering
    home-is-clusterableTrue/home-is-clusterable
    home-load-algorithmround-robin/home-load-algorithm
    replication-typeInMemory/replication-type
    /stateful-session-clustering
    /stateful-session-descriptor
    jndi-nametest_stateful/jndi-name
    /weblogic-enterprise-bean
    /weblogic-ejb-jar

    The eception is below:
    weblogic.rjvm.PeerGoneException: ; nested exception is:
    weblogic.utils.net.SocketResetException - with nested exception:
    [java.net.SocketException: Connection reset by peer: JVM_recv in socket
    input st
    ream read]
    java.net.SocketException: Connection reset by peer: JVM_recv in socket input
    str
    eam read
    at java.net.SocketInputStream.socketRead(Native Method)
    at java.net.SocketInputStream.read(SocketInputStream.java:86)
    at
    weblogic.socket.JavaSocketMuxer.processSockets2(JavaSocketMuxer.java:
    273)
    at
    weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:2
    25)
    at
    weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:
    23)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    --------------- nested within: ------------------
    weblogic.utils.net.SocketResetException - with nested exception:
    [java.net.SocketException: Connection reset by peer: JVM_recv in socket
    input st
    ream read]
    at
    weblogic.socket.JavaSocketMuxer.processSockets2(JavaSocketMuxer.java:
    336)
    at
    weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:2
    25)
    at
    weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:
    23)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

    DB:2.78:The Cluster For Stateful Session Bean ma


    I'm having a similar problem getting stateful session beans to failover.

    There are some very good reasons for keeping conversational state in a SFSB as
    opposed to HttpSession on the client - a big one being that conversational objects
    can be very heavy (more network transmission time) and it also forces the client
    to resend information back to the server every time (again more network traffic).
    All of this can be kept in a SFSB on the server.

    Dimitri Rakitine dr@dima.dhs.org wrote:
    Hrm. I'm missing something here - if you use stateful session bean to
    keep
    non changing data and not some conversational state then why use stateful

    component at all and not store this data on the client, or use entity
    bean?

    The only purpose of stateful session beans is to keep changing conversational
    state (at a very high price - stateful components greatly decrease scalability).

    Alex alex@gfortunenet.com wrote:
    Thank your answer.
    However, my stateful session bean is used to get the some user information
    from database while users login.
    The user information at the stateful session bean can be reused by
    client .
    If the fialover happened whether the stateful session bean got the
    users
    data from the database or not, the result wouldn't be affected after
    stateful session bean retries to get information from the datebase.
    I don't use the session of the jsp or servlet to do this and the client
    is
    java class, not jsp and servlet, so the java class directly calls the
    stateful session bean to get user information.
    Now the load balance can work, but the failover can't work and the
    state of
    statful session bean can't be replication by another cluster server.

    I don't know why the failover for stateful session bean doesn't work.
    I also add
    'home-is-clusterableTrue/home-is-clusterablehome-load-algorithmround-r
    obin/home-load-algorithmreplication-typeInMemory/replication-typerepl
    ication-typeInMemory/replication-type' in the weblogic-ejb.xml but
    the
    failover doesn't happen.
    Need repication group and pregered secondary group of the cluster set
    up?

    Best Regards,
    Alex

    "Dimitri Rakitine" dr@dima.dhs.org ?????
    news:3b2b010c@newsgroups.bea.com...
    Consider the following scenario: your stateful session bean is a shopping
    cart (for
    example) and it's client executed addItem(...) method and server crashed.
    The stub has no
    way of knowing when server crashed - if it happened before method
    was
    successfully
    executed, then retrying is safe, if it happened after method was executed,
    then retry
    will add another item to the cart, resulting in 2 items added instead
    of
    one, which is
    probably not what you want.

    I guess that for this reason only stateless session beans (if their
    methods are
    idempotent, meaning that multiple invocations always produce the same
    result in terms of
    return values and effects on other components such as database etc)
    and
    read-only entity
    beans support automatic retry.

    Alex alex@gfortunenet.com wrote:
    How should I config the in-memory replication for stateful session
    bean
    so
    that the stateful session bean can failover?

    --
    Dimitri

  • RELEVANCY SCORE 2.78

    DB:2.78:Stateful Session Failover Question (Newbie) m9



    Question regarding the Stateful Session ejb sample that is shipped with the
    WebLogic Server 7.0 sp1 product (found at wldisk:[BEA.weblogic700.samples.server.stage.examples.clientclasses]).

    To make the Stateful Session ejb 'clusterable' are the only modifications required
    to be changes to weblogic-ejb-jar.xml?
    Or does the Stateful session ejb have to be modified as well? We modified weblogic-ejb-jar.xml
    as follows:

    MODIFIED weblogic-ejb-jar.xml
    8 weblogic-enterprise-bean
    9 ejb-namestatefulSession/ejb-name
    10 stateful-session-descriptor
    11 stateful-session-cache
    12 max-beans-in-cache100/max-beans-in-cache
    13 idle-timeout-seconds600/idle-timeout-seconds
    14 /stateful-session-cache
    15 persistent-store-dir/wldisk/bea/stateful/persistent-store-dir
    16 stateful-session-clustering
    17 home-is-clusterabletrue/home-is-clusterable
    18 home-load-algorithmround-robin/home-load-algorithm
    19 replication-typeInMemory/replication-type
    20 /stateful-session-clustering
    21 /stateful-session-descriptor
    22 jndi-nameejb20-statefulSession-TraderHome/jndi-name
    23 /weblogic-enterprise-bean
    24 /weblogic-ejb-jar

    ORIGINAL weblogic-ejb-jar.xml
    9 weblogic-enterprise-bean
    11 ejb-namestatefulSession/ejb-name
    12 jndi-nameejb20-statefulSession-TraderHome/jndi-name
    14 /weblogic-enterprise-bean
    16 /weblogic-ejb-jar

    We configured an Admin server, and two WLS managed servers. The two managed servers
    are members of
    a WLS cluster. There are 3 different physical systems involved. Deployed the stateful
    session ejb to the cluster,
    and have tried to 'failover' individual managed servers while the stateful session
    ejb is
    running on them. When we execute the stateful session ejb, we are frequently incurring
    the following failure:

    $ java org.apache.tools.ant.Main run
    run:
    [java]
    [java] Beginning statefulSession.Client...
    [java]
    [java] Creating trader
    [java]
    [java] Selling 200 of MSFT
    [java] 200 sharessold at a price of 150.0- after this line prints, failover
    attempted
    [java] Buying 250 of BEAS
    [java] There was an exception while creating and using the Trader.
    [java] This indicates that there was a problem communicating with the server:
    java.rmi.ConnectException:
    Destination unreachable; nested exception is:
    [java] java.net.ConnectException: connection refused ; No available
    router to destination
    [java]
    [java] End statefulSession.Client...
    [java]

    When the failover works, output looks like:

    We ran the Multicast test (passed), tried different variations of garbage
    collection, checked the WLS license, and have tried varying xms/xmx values on
    startup of the managed servers. Can only get the failover to work sporadically.

    Any suggestions?

    Thanks.
    Tim

    DB:2.78:Stateful Session Failover Question (Newbie) m9


    Auto retry does not always happen. Either do manual retry or check http://edocs.bea.com/wls/docs70/ejb/reference.html#1266364

    "tim beaudin" tim.beaudin@hp.com wrote:

    Question regarding the Stateful Session ejb sample that is shipped with
    the
    WebLogic Server 7.0 sp1 product (found at wldisk:[BEA.weblogic700.samples.server.stage.examples.clientclasses]).

    To make the Stateful Session ejb 'clusterable' are the only modifications
    required
    to be changes to weblogic-ejb-jar.xml?
    Or does the Stateful session ejb have to be modified as well? We modified
    weblogic-ejb-jar.xml
    as follows:

    MODIFIED weblogic-ejb-jar.xml
    8 weblogic-enterprise-bean
    9 ejb-namestatefulSession/ejb-name
    10 stateful-session-descriptor
    11 stateful-session-cache
    12 max-beans-in-cache100/max-beans-in-cache
    13 idle-timeout-seconds600/idle-timeout-seconds
    14 /stateful-session-cache
    15 persistent-store-dir/wldisk/bea/stateful/persistent-store-dir
    16 stateful-session-clustering
    17 home-is-clusterabletrue/home-is-clusterable
    18 home-load-algorithmround-robin/home-load-algorithm
    19 replication-typeInMemory/replication-type
    20 /stateful-session-clustering
    21 /stateful-session-descriptor
    22 jndi-nameejb20-statefulSession-TraderHome/jndi-name
    23 /weblogic-enterprise-bean
    24 /weblogic-ejb-jar

    ORIGINAL weblogic-ejb-jar.xml
    9 weblogic-enterprise-bean
    11 ejb-namestatefulSession/ejb-name
    12 jndi-nameejb20-statefulSession-TraderHome/jndi-name
    14 /weblogic-enterprise-bean
    16 /weblogic-ejb-jar

    We configured an Admin server, and two WLS managed servers. The two managed
    servers
    are members of
    a WLS cluster. There are 3 different physical systems involved. Deployed
    the stateful
    session ejb to the cluster,
    and have tried to 'failover' individual managed servers while the stateful
    session
    ejb is
    running on them. When we execute the stateful session ejb, we are frequently
    incurring
    the following failure:

    $ java org.apache.tools.ant.Main run
    run:
    [java]
    [java] Beginning statefulSession.Client...
    [java]
    [java] Creating trader
    [java]
    [java] Selling 200 of MSFT
    [java] 200 sharessold at a price of 150.0- after this line prints,
    failover
    attempted
    [java] Buying 250 of BEAS
    [java] There was an exception while creating and using the Trader.
    [java] This indicates that there was a problem communicating with
    the server:
    java.rmi.ConnectException:
    Destination unreachable; nested exception is:
    [java] java.net.ConnectException: connection refused ; No available
    router to destination
    [java]
    [java] End statefulSession.Client...
    [java]

    When the failover works, output looks like:

    We ran the Multicast test (passed), tried different variations of garbage
    collection, checked the WLS license, and have tried varying xms/xmx values
    on
    startup of the managed servers. Can only get the failover to work sporadically.

    Any suggestions?

    Thanks.
    Tim

  • RELEVANCY SCORE 2.78

    DB:2.78:Help! Eclipse/Jboss/Ejb Debugger Not Working zm



    Well, since no one replied to my previous posting I'll try again with a slightly different slant. I am trying to debug enterprise java beans (on the same server)using the Eclipse IDE/Jboss and so far have had very little success due to the fact that I am unable to connect to the VM when I initiate the debug session! Can anyone recommend or provide a tried and true example of a Eclipse/Jboss project (for newbies) that includes enterprise java beans, that would allow me to use the Eclipse debugger with the Jboss application server. My hope is that I could step through the bean as well as the client. Please include how you may have modified the run.bat to accomplish this? Really any cooperation here would be appreciated :)

    DB:2.78:Help! Eclipse/Jboss/Ejb Debugger Not Working zm


    Hello,Does it make a difference if I use Lomboz to start the server?I think it is not executing run.bat. Hence, it should. Then, where do I tell so that JBoss run on debug mode.Ravi

  • RELEVANCY SCORE 2.78

    DB:2.78:Session Problem 79


    Hi,

    I need to close my bean when client close is navigator.

    The bean is a connection bean to an Oracle8i database using Oracle Thin driver (classes111.zip). I use my bean in a jsp page. This bean is session-scoped.
    The bean implement HttpSessionBindingListener interface. I close my database connection in the next method :

    public synchronized void valueUnbound(HttpSessionBindingEvent event) {
    if (this.dbCon != null) {
    try { this.dbCon.close(); }
    catch (Exception ignored) { ignored.printStackTrace(); }
    }
    }

    Is it the right way ??? This method is only focus when servlet server down.
    While the server is on, each connection still open.

    Thanks for your help.

    Regards,
    Bart

    DB:2.78:Session Problem 79

    im having some problems concerning to this issue...

    We have Apache + jserv.

    I have developed a JavaBean (session scoped) that is suppossed to maintain an oracle connection through some JSP till it reaches to a final one in wich data is stored... I have tried implementing HttpSessionBindingListener and with no implementation of that interface.

    Sometimes it works nice and some others i found it opens a new session on each request so new connections are opened each time... Even when im just reloading the same JSP, it opens a new session... By now i still dont know why... any idea?

  • RELEVANCY SCORE 2.78

    DB:2.78:Ejb Client/Resource Injection jz


    Hi,

    could anyone explain to me why the field into which an EJB reference in an EJB client can be injected has to be static? I've read the following in the EJB3.0 tutorial (see below), but I don't know what "static context" means exactly. Care to explain, anyone?

    Thanks, Michael

    Creating a Reference to an Enterprise Bean Instance

    "Java EE application clients refer to enterprise bean instances by annotating static fields with the @EJB annotation. The annotated static field represents the enterprise bean's business interface, which will resolve to the session bean instance when the application client container injects the resource references at runtime.

    @EJB
    private static Converter converter;

    The field is static because the client class runs in a static context."

    DB:2.78:Ejb Client/Resource Injection jz

    The question was about why the field needs to be marked static. mappedName is a separate issue. The reason injected fields/methods in Application Clients need to be marked static is because of the Application Client programming model. It has always been the case that for an Application Client component the developer writes a static void main() method as the entry point, much like a regular Java Client. This means that the Application Client container invokes the application code with a static invocation, i.e. there is no instance of the main class. Injection is only useful if it takes place before the application code runs, so to accomplish that without changing the Application Client programming model, the Java EE platform spec requires that injected fields/methods be marked static.

    As for mappedName, it deals with how to map the ejb dependency to the target bean. By default in SUN's implementation, the remote @EJB dependency will map to the global JNDI name formed by taking the fully qualified type of the remote business interface, in this case packagename.Converter. That will work as long as the target Remote EJB has that global JNDI name. If the target Remote EJB's global JNDI name were "GlobalJNDIName", then you would need to explicitly assign that to the client's ejb dependency, as this example shows. That can be done either by using the mappedName() attribute or sun-application-client.xml.

    --ken

  • RELEVANCY SCORE 2.77

    DB:2.77:Java Bean Db Connection Problem ? 9m


    Hi every body,

    I use Oracle Form 10g, I have a java bean that connect to db server and do some actions, I call this java bean inside oracle form. when I run oracle form, if client system has access to db

    server,my java bean works but when client system does not see db server, I get db connection exception !!!!

    java bean inside oracle form connect to db server locally ?? I don't know what should I do ??

    please help me :)

    best regards.

    DB:2.77:Java Bean Db Connection Problem ? 9m

    Hi Andreas ,

    thanks for your reply, yes I need do some db actions in my java bean.

    oracle forms run as applet but connection to db is server side can I use this mechanism for my java bean ???

  • RELEVANCY SCORE 2.77

    DB:2.77:Webvpn With Vnc Enterprise 3m



    Has anyone been able to use webvpn and a client compatible with VNC enterprise server?  My company just moved to the VNC enterprise server to support encryption and single sign on but the cisco provided VNC client for WebVPN doesnt support encryption or anything but the VNC password.

    TightVNC has released a beta java applet that supports encryption and other authentication methods but the ASA errors when I try to load it.

    With all the security that Cisco employs I find it hard to believe the only client that is supported is an unsecure connection method.  Anyone do this before?

    DB:2.77:Webvpn With Vnc Enterprise 3m


    Yes, I have looked into smart tunnels but that wont work for us, as the people connecting in are not our employees on our machines, they are vendors providing remote support.  So that is why we went with WebVPN, no installation necessary on their computers.  I opened a ticket with TAC to see if they had any recommendations but its not looking promising.

  • RELEVANCY SCORE 2.77

    DB:2.77:Connecting To Sql Server With Java Bean In Forms Applet k1


    Hi.
    I am using forms 10g. In my pc, I installed sqlserver. I designed a form which connects to the sql server database through a java bean that I wrote. When I configure the embeded server on my pc and run the form, everything is OK. In the network, all other PCs run the form by connecting to my pc as the server, still everything is OK. Thats, application server and the SQLserver are on the same machine. In the javabean connection is through IP address and it is not 127.0.0.1.
    In that point the following question arise :
    When another pc on the network calls the form with a browser, how the connection to the SQL server is setup. From application server to SQL server or, client to SQL server. (The client downloads the jdbc driver jar files for SQL server).

    Then I deployed the form on another pc which has oracle application server 10g. Now the application server and sql server are on different machines. But the machines can connect with each other through the sql server port(1433). When a client machine tries to use the form, I get the following error:
    java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket. I get this error when I call the form from the application server machines browser and the sqlserver machines browser.

    When I call the pure java code which connects to the SQLServer from the application server on the application server, that works fine! There is no problem about java code and network connection?

    Is there a security issue or something???

    DB:2.77:Connecting To Sql Server With Java Bean In Forms Applet k1

    Hi,

    this is not an Oracle Forms question, however, for what it is worth it:

    1. Applets can only connect to the server they are downloaded from. To connect to other servers, you need to sign the Applet classes (jar file) to make them trusted

    2. JDBC connects from teh client to the database server. Using 3-tier applications, the database conenct would be possible from the Application Server to the database server, but this does not work for Applets that are downloaded to the client

    Frank

  • RELEVANCY SCORE 2.77

    DB:2.77:Client Connection To The Weblogic Managed Server Is Not Closed s3


    We have an stateless EJB application running in Production Weblogic 8.1 SP6 Server. Client which uses Weblogic 6.1 jars invokes remote EJB, which in turn will return Java Object back to client.

    We have NO issue as far as database connection, memory, etc... But simply our BMC PATROL shows that client connection to the server keep increasing constantly which never get decreased until servers are recycled. This cause few of our clients to face longer delay in response back from server few other clients to hang.

    Any tips would be very much appreciated!.

    Note: IUML Limit was increased to 4069, Memory JVM heap size was already increased to 1GB, Initial Max Bean Pool Size (In the deployment Descriptor) was also increased accordingly.

    DB:2.77:Client Connection To The Weblogic Managed Server Is Not Closed s3

    We have an stateless EJB application running in Production Weblogic 8.1 SP6 Server. Client which uses Weblogic 6.1 jars invokes remote EJB, which in turn will return Java Object back to client.

    We have NO issue as far as database connection, memory, etc... But simply our BMC PATROL shows that client connection to the server keep increasing constantly which never get decreased until servers are recycled. This cause few of our clients to face longer delay in response back from server few other clients to hang.

    Any tips would be very much appreciated!.

    Note: IUML Limit was increased to 4069, Memory JVM heap size was already increased to 1GB, Initial Max Bean Pool Size (In the deployment Descriptor) was also increased accordingly.

  • RELEVANCY SCORE 2.77

    DB:2.77:Interest Example --- Please Help f9



    Hi AllI have downloaded jboss-3.0.4_tomcat-4.1.12 and tried to run Interest example. I followed tutorial on jboss site.1. when i deploy the bean by calling "ant intro-interest-deploy" the interest.jar is copied to the deploy directory but there are no messages on the server console as the tutorial says that the bean is deployed.2. when i run the client I get a message sayinginterest-client:[java] Got context[java] javax.naming.NameNotFoundException: interest not bound3. I thought there might be some bug in the server and downloaded jboss-3.0.4, but i get the same behaviour.What could be going wrong.jboss.xml---------?xml version="1.0" encoding="UTF-8"?enterprise-beansejb-nameInterest/ejb-namejndi-nameinterest/Interest/jndi-name/enterprise-beansejb-jar.xml-----------?xml version="1.0" encoding="UTF-8"?ejb-jarJBoss Interest Sample Applicationdisplay-nameInterest EJB/display-nameenterprise-beansejb-nameInterest/ejb-nameorg.jboss.docs.interest.InterestHomeorg.jboss.docs.interest.Interestejb-classorg.jboss.docs.interest.InterestBean/ejb-classsession-typeStateless/session-typetransaction-typeBean/transaction-type/enterprise-beans/ejb-jarPlease respond

  • RELEVANCY SCORE 2.77

    DB:2.77:Coldfusion 78


    Does anyone have coldfusion working in 9iAS? I currently have a session bean deployed and working properly with a java client but I can not access the same session bean from a coldfusion client. I am using CFMX that is running in JRun and a session deployed in 9iAS. Here is my code and the error. The port 1099 doesn't make any sense to me.

    cfscript
    ictx.addToEnvironment(ctx.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
    ictx.addToEnvironment("java.naming.provider.url", "ormi://141.254.22.145/JRun2");
    ictx.addToEnvironment(ctx.URL_PKG_PREFIXES, "com.evermind.naming");
    /cfscript

    CFDUMP var="#ictx.getEnvironment().toString()#"

    cfset ejbHome =ictx.lookup("SessionManagerLiteStateless")
    cfset bean =ejbHome.create()

    It blows up on this line:
    cfset ejbHome =ictx.lookup("SessionManagerLiteStateless")

    The connection to the remote JNDI server on host ormi at port 1099 has failed (as have all backup hosts listed, if any) - please verify that the server is running and the NamingService is available.

    I have also tried.
    ictx.addToEnvironment("java.naming.provider.url", "ormi://141.254.22.145:23791/JRun2");
    and I get the same response.
    Thanks!

    DB:2.77:Coldfusion 78


    Our partner organization is working with Macromedia to see if together we will be supporting it within OC4J. There are no firm plans yet as a result.

    Mike.

  • RELEVANCY SCORE 2.77

    DB:2.77:Jdbinsight 2.0 Performance Tool @ Javaone 2003 mc



    JInspired Announces JDBInsight 2.0 @ JavaOne 2003
    ---------------------------------------------------------------------------------------------------------
    DUBLIN, IRELAND - 5 June, 2003 - JInspired (www.jinspired.com), a leader in J2EE
    transaction analysis, today announced JDBInsight 2.0, the next generation of J2EE
    performance management products from JInspired. JDBInsight will be available for
    preview at JavaOne 2003 in San Francisco.

    JDBInsight is the first product to effectively integrate Java profiling information
    with JDBC/SQL transaction analysis. Version 2.0 has numerous features derived
    from its support of the Java VM Profiling Interface (JVMPI) such as Java call
    stack analysis, CPU, blocking and waiting measurements at the transaction path
    level.

    The "Best Java Application Monitoring Tool" just got better. JDBInsight 2.0 sports
    a new client interface that once again shows that JInspired is the leader in delivery
    of rich and informative visualizations of J2EE transactions and performance execution.
    The products innovative use of symbols and graphics is unrivalled within the Java
    performance assurance industry.

    With the new Java call stack classification engine developers, testers and J2EE
    administrators can now understand the interaction of various technologies with
    corporate databases. Classifications engines are available for Java enterprise
    technologies such as EJB, JSP, Servlets, JTS, CORBA, JDBC, JCA, Web Services,
    JDO and Struts. JInspired will also be announcing new engines over the coming
    weeks for various web/persistence technologies such as JavaServer Faces, Tapestry,
    WebWork, and Hibernate.

    JDBInsight 2.0 is the first performance management product to have the ability
    to detect and present resource transaction demarcations allowing visual sub-transaction
    identification.

    Take JDBInsight Product Tour
    http://www.jinspired.com/products/jdbinsight/tour.html

    Read JDBInsight 2.0 Product Factsheet
    http://www.jinspired.com/products/jdbinsight/jdbinsightv2_0_productsheet.pdf

    In addition to the JDBInsight Version 2.0 feature rich client interface, JDBInsight
    also provides a suite of functional command-line utilities, JDBInsight 2.0 Terminal
    Services. The Terminal Services component of JDBInsight 2.0 delivers the server
    to a wide variety of desktops without the need for graphical environments. The
    JDBInsight 2.0 Terminal Services provides a quick and easy way to communicate
    with multiple servers without having to use a graphical user interface. This facilitates
    the streamlined connection, activation and deactivation of profiles on local or
    remote servers with the ability to control multiple servers from a single terminal.

    These Terminal Services also provide a powerful environment to create and schedule
    snapshot information, in order to monitor servers at regular intervals, with the
    ability to store and retrieve snapshots from any mounted drive, as well as providing
    a rich set of commands to assist in analysis of this highly detailed data. Learn
    about JDBInsight 2.0 Terminal Services

    About JDBInsight
    JDBInsight is an innovative enterprise development product, aimed at simplifying
    the performance tuning and testing of J2EE applications, which access data through
    the Java Database Connectivity (JDBC) API. JDBInsight analyses the access of
    enterprise data by J2EE client-, web-, and bean containers. The analysis can
    encompass transaction executions, from multiple J2EE containers. JDBInsight captures
    timing and execution information for enterprise data accessed by Servlets, JavaServer
    Pages, Session- and Entity Beans using JDBC or an Entity Bean using a container's
    persistence engine. JDBInsight can also profile non-J2EE applications that access
    enterprise data through the JDBC API.

    About JInspired
    JInspired located in Ireland, delivers JDBInsight, a comprehensive solution for
    Application Performance Tuning and Testing that focuses directly on early identification
    within the development and testing lifecycle. Jinspired offers sophisticated analytical
    tools, that capture transactional behaviour and performance timing information,
    across multiple containers in a single console, and presents this information
    intuitively to the user "Visualizing the Invisible.

    DB:2.77:Jdbinsight 2.0 Performance Tool @ Javaone 2003 mc


    JInspired Announces JDBInsight 2.0 @ JavaOne 2003
    ---------------------------------------------------------------------------------------------------------
    DUBLIN, IRELAND - 5 June, 2003 - JInspired (www.jinspired.com), a leader in J2EE
    transaction analysis, today announced JDBInsight 2.0, the next generation of J2EE
    performance management products from JInspired. JDBInsight will be available for
    preview at JavaOne 2003 in San Francisco.

    JDBInsight is the first product to effectively integrate Java profiling information
    with JDBC/SQL transaction analysis. Version 2.0 has numerous features derived
    from its support of the Java VM Profiling Interface (JVMPI) such as Java call
    stack analysis, CPU, blocking and waiting measurements at the transaction path
    level.

    The "Best Java Application Monitoring Tool" just got better. JDBInsight 2.0 sports
    a new client interface that once again shows that JInspired is the leader in delivery
    of rich and informative visualizations of J2EE transactions and performance execution.
    The products innovative use of symbols and graphics is unrivalled within the Java
    performance assurance industry.

    With the new Java call stack classification engine developers, testers and J2EE
    administrators can now understand the interaction of various technologies with
    corporate databases. Classifications engines are available for Java enterprise
    technologies such as EJB, JSP, Servlets, JTS, CORBA, JDBC, JCA, Web Services,
    JDO and Struts. JInspired will also be announcing new engines over the coming
    weeks for various web/persistence technologies such as JavaServer Faces, Tapestry,
    WebWork, and Hibernate.

    JDBInsight 2.0 is the first performance management product to have the ability
    to detect and present resource transaction demarcations allowing visual sub-transaction
    identification.

    Take JDBInsight Product Tour
    http://www.jinspired.com/products/jdbinsight/tour.html

    Read JDBInsight 2.0 Product Factsheet
    http://www.jinspired.com/products/jdbinsight/jdbinsightv2_0_productsheet.pdf

    In addition to the JDBInsight Version 2.0 feature rich client interface, JDBInsight
    also provides a suite of functional command-line utilities, JDBInsight 2.0 Terminal
    Services. The Terminal Services component of JDBInsight 2.0 delivers the server
    to a wide variety of desktops without the need for graphical environments. The
    JDBInsight 2.0 Terminal Services provides a quick and easy way to communicate
    with multiple servers without having to use a graphical user interface. This facilitates
    the streamlined connection, activation and deactivation of profiles on local or
    remote servers with the ability to control multiple servers from a single terminal.

    These Terminal Services also provide a powerful environment to create and schedule
    snapshot information, in order to monitor servers at regular intervals, with the
    ability to store and retrieve snapshots from any mounted drive, as well as providing
    a rich set of commands to assist in analysis of this highly detailed data. Learn
    about JDBInsight 2.0 Terminal Services

    About JDBInsight
    JDBInsight is an innovative enterprise development product, aimed at simplifying
    the performance tuning and testing of J2EE applications, which access data through
    the Java Database Connectivity (JDBC) API. JDBInsight analyses the access of
    enterprise data by J2EE client-, web-, and bean containers. The analysis can
    encompass transaction executions, from multiple J2EE containers. JDBInsight captures
    timing and execution information for enterprise data accessed by Servlets, JavaServer
    Pages, Session- and Entity Beans using JDBC or an Entity Bean using a container's
    persistence engine. JDBInsight can also profile non-J2EE applications that access
    enterprise data through the JDBC API.

    About JInspired
    JInspired located in Ireland, delivers JDBInsight, a comprehensive solution for
    Application Performance Tuning and Testing that focuses directly on early identification
    within the development and testing lifecycle. Jinspired offers sophisticated analytical
    tools, that capture transactional behaviour and performance timing information,
    across multiple containers in a single console, and presents this information
    intuitively to the user "Visualizing the Invisible.

  • RELEVANCY SCORE 2.76

    DB:2.76:Frm9210 Connection To Server Interupted When Java Bean Is Implemented 99


    When I install my PJC my server returns this error, if I remove
    the classpath in the bean error properties tab the form will
    load fine, does anyone know what causes this error.

    Thanks

    Oliver

    DB:2.76:Frm9210 Connection To Server Interupted When Java Bean Is Implemented 99

    When I install my PJC my server returns this error, if I remove
    the classpath in the bean error properties tab the form will
    load fine, does anyone know what causes this error.

    Thanks

    Oliver

  • RELEVANCY SCORE 2.76

    DB:2.76:Can Not Get Ejb20\Basic\Beanmanaged Example Work With Oracle? md


    This is the problem I encount when switch DB from Pointbase to Oracle. Most of the examples work when I with necessary change of configuration, DD and redeployment of applications except this one:

    I follow all the steps for Oracle 9i DB. But keep getting the following errors. I don't understand why the system still lookups jdbc/demoPool even I modified DD and system configuration to jdbc/oraclePool (I validate it after successfully deployed to exampleServer).

    The server is WLS 8.1 running on Windows XP professional.

    ----------------------------------------------------
    ant runBuildfile: build.xml

    run:

    [java] Beginning beanManaged.Client...

    [java] Creating account ID: 0 with a balance of 0.0...
    [java] java.rmi.RemoteException: EJB Exception:; nested exception is:
    [java] There was an exception while creating and using the Accounts.
    [java] This indicates that there was a problem communicating with the serve
    r: java.rmi.RemoteException: EJB Exception:; nested exception is:
    [java] javax.ejb.EJBException: nested exception is: javax.naming.NameNo
    tFoundException: While trying to look up comp/env/jdbc/demoPool in /app/ejb/ejb2
    0_basic_beanManaged.jar#beanManaged.; remaining name 'comp/env/jdbc/demoPool'
    [java] at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundR
    equest.java:108)
    [java] javax.ejb.EJBException: nested exception is: javax.naming.NameNo
    tFoundException: While trying to look up comp/env/jdbc/demoPool in /app/ejb/ejb2
    0_basic_beanManaged.jar#beanManaged.; remaining name 'comp/env/jdbc/demoPool'
    [java] at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwar
    eRemoteRef.java:284)
    [java] at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwar
    eRemoteRef.java:244)
    [java] at examples.ejb20.basic.beanManaged.beanManaged_biy1g2_HomeImpl_
    813_WLStub.create(Unknown Source)
    [java] at examples.ejb20.basic.beanManaged.Client.createAccount(Client.
    java:157)
    [java] at examples.ejb20.basic.beanManaged.Client.example(Client.java:8
    6)
    [java] at examples.ejb20.basic.beanManaged.Client.main(Client.java:57)
    [java] Caused by: javax.ejb.EJBException: nested exception is: javax.naming
    .NameNotFoundException: While trying to look up comp/env/jdbc/demoPool in /app/e
    jb/ejb20_basic_beanManaged.jar#beanManaged.; remaining name 'comp/env/jdbc/demoP
    ool'
    [java] at examples.ejb20.basic.beanManaged.AccountBean.getConnection(Ac
    countBean.java:396)
    [java] at examples.ejb20.basic.beanManaged.AccountBean.ejbCreate(Accoun
    tBean.java:177)
    [java] at examples.ejb20.basic.beanManaged.beanManaged_biy1g2_Impl.ejbC
    reate(beanManaged_biy1g2_Impl.java:195)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
    sorImpl.java:39)
    [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
    hodAccessorImpl.java:25)
    [java] at java.lang.reflect.Method.invoke(Method.java:324)
    [java] at weblogic.ejb20.manager.DBManager.create(DBManager.java:1180)
    [java] at weblogic.ejb20.manager.DBManager.remoteCreate(DBManager.java:
    1129)
    [java] at weblogic.ejb20.internal.EntityEJBHome.create(EntityEJBHome.ja
    va:246)
    [java] at examples.ejb20.basic.beanManaged.beanManaged_biy1g2_HomeImpl.
    create(beanManaged_biy1g2_HomeImpl.java:76)
    [java] at examples.ejb20.basic.beanManaged.beanManaged_biy1g2_HomeImpl_
    WLSkel.invoke(Unknown Source)
    [java] at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.ja
    va:477)
    [java] at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwar
    eServerRef.java:108)
    [java] at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.jav
    a:420)
    [java] at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Auth
    enticatedSubject.java:363)
    [java] at weblogic.security.service.SecurityManager.runAs(SecurityManag
    er.java:144)
    [java] at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServe
    rRef.java:415)
    [java] at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecut
    eRequest.java:30)
    [java] at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)

    [java] at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    [java] Exception in thread "main"

    BUILD FAILED
    ----------------------------------------------------

    attached are modified DD:
    ----------------------------------------------------
    ?xml version="1.0"?

    !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-namebeanManaged/ejb-name
    homeexamples.ejb20.basic.beanManaged.AccountHome/home
    remoteexamples.ejb20.basic.beanManaged.Account/remote
    ejb-classexamples.ejb20.basic.beanManaged.AccountBean/ejb-class
    persistence-typeBean/persistence-type
    prim-key-classjava.lang.String/prim-key-class
    reentrantFalse/reentrant
    resource-ref
    res-ref-namejdbc/oraclePool/res-ref-name
    res-typejavax.sql.DataSource/res-type
    res-authContainer/res-auth
    /resource-ref
    /entity
    /enterprise-beans
    assembly-descriptor
    container-transaction
    method
    ejb-namebeanManaged/ejb-name
    method-name*/method-name
    /method
    trans-attributeRequired/trans-attribute
    /container-transaction
    /assembly-descriptor

    ejb-client-jarejb20_basic_beanManaged_client.jar/ejb-client-jar

    /ejb-jar
    ----------------------------------------------------

    and
    ----------------------------------------------------
    ?xml version="1.0"?

    !DOCTYPE weblogic-ejb-jar PUBLIC
    '-//BEA Systems, Inc.//DTD WebLogic 8.1.0 EJB//EN'
    'http://www.bea.com/servers/wls810/dtd/weblogic-ejb-jar.dtd'

    weblogic-ejb-jar
    weblogic-enterprise-bean
    ejb-namebeanManaged/ejb-name

    reference-descriptor
    resource-description
    res-ref-namejdbc/oraclePool/res-ref-name
    jndi-nameexamples-dataSource-oracleXAPool/jndi-name
    /resource-description
    /reference-descriptor

    jndi-nameejb20-beanManaged-AccountHome/jndi-name

    /weblogic-enterprise-bean

    /weblogic-ejb-jar
    ----------------------------------------------------

    DB:2.76:Can Not Get Ejb20\Basic\Beanmanaged Example Work With Oracle? md

    Hi,

    The AccountBean.java has a method getConnection method that looks up for the demopool. Change that and it should work.

  • RELEVANCY SCORE 2.76

    DB:2.76:Simple Entity Bean - Help To Complete 3p



    I have setup JBoss-IDE with Eclipse with Jboss. The Jboss Version I use jboss-4.0.2RC1.1. I have configured MySQL version 5.0.21 to Jboss. and I followed the URLhttp://www.cotsec.com/documentation/installation/j2ee_jboss_mysql/index.html#3.%20Add%20the%20Java%20MySQL%20Libraryto configure the database with JBoss.2. I made a small table with MySQLCREATE TABLE `fortunedb`.`test` ( `id` varchar(10) NOT NULL, `name` varchar(45) NOT NULL, PRIMARY KEY (`id`)) ENGINE=InnoDB DEFAULT CHARSET=latin1;3. I made a simple Entity Bean Call Test bean to connect to the test table as followejb-jar.xml:::: ![CDATA[Description for Test]] display-nameName for Test/display-name ejb-nameTest/ejb-name com.account.TestHome com.account.Test ejb-classcom.account.TestCMP/ejb-class persistence-typeContainer/persistence-type prim-key-classjava.lang.String/prim-key-class False cmp-version2.x/cmp-version abstract-schema-nameTest/abstract-schema-name cmp-field ![CDATA[]] field-nameid/field-name /cmp-field cmp-field ![CDATA[]] field-namename/field-name /cmp-fieldjboss.xml:::::: ejb-nameTest/ejb-name jndi-nameejb/Test/jndi-namejbosscmp-jdbc.xml:::: java:/MySqlDS datasource-mappingmySQL/datasource-mapping enterprise-beans ejb-nameTest/ejb-name table-nametest/table-name cmp-field field-nameid/field-name column-nameid/column-name /cmp-field cmp-field field-namename/field-name column-namename/column-name /cmp-field /enterprise-beans4. I am running a Servlet Client to get the connection public void init(ServletConfig config) throws ServletException { try { Context context = new InitialContext(); Object ref = context.lookup("java:comp/env/ejb/Test"); home = (TestHome) PortableRemoteObject.narrow(ref, TestHome.class); } catch (Exception e) { throw new ServletException("Lookup of java:/comp/env/ failed" + e); } } protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { resp.setContentType("text/html"); PrintWriter out=resp.getWriter(); try { Test bean = home.findByPrimaryKey("jk"); out.print(bean.getName()); } catch (Exception e) { out.print(e); }5. But when I run this Servlet it gives me the following error"javax.ejb.FinderException: Find failed: java.sql.SQLException: Syntax error or access violation message from server: "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM test t0_Test WHERE' at line 1""Please help me to go further on this. I am totally stuck here and I coukld not realise where I made the mistake.

    DB:2.76:Simple Entity Bean - Help To Complete 3p


    Hi!The SAME problem has defied solution in my project, as well.So... what is the root cause for this complaint, pray tell?Really, what I'd like to know is "What are the requirements in the jboss XML files that would allow for a successful connection and access to a MySQL database?" I've seen the Connection/J docs - I've queried this site and others - they all offer a smattering of detail - but never get down to the statement, "You MUST - at LEAST - do this - or the game will not start".Any vectors to a good JBoss/MySQL sample project I can learn from?THANK YOU!

  • RELEVANCY SCORE 2.76

    DB:2.76:Failover Of Session Bean? 3k



    I try to use the failover of session bean in JBoss 3.0.4.First, client application invoke the bean twice.Server dies after the first invocation and before the second invocation. Clustering works fine. Another server will continue the second invocation.Second, when client invoke a method of the bean, server dies before the invocation return. In this case, there are no failover happened. Client regards the invocation is not done and keep waiting. How do I set JBoss to make failover in the situation?Any suggestion is appreciated.BTW, I disconnect internet connection to simulate crash of server.

  • RELEVANCY SCORE 2.76

    DB:2.76:Blackberry Enterprise Server 4.1.4.19 Mds Connection Can Not Start sa


    Dear all:I have a issue for BES 4.1.4.19 version migration,Currently I install Blackberry enterprise Server 4.1.4.19 on server (cnshbes01.wsi.com.cn), we shall move to another new server (cnshbes02.wsi.com.cn)so I do the process as below:1. Install the BES 4.1.4.19 to new server (cnshbes02.wsi.com.cn)2. The same BES name when BES install3. Stop the old server (cnshbes01.wsi.com.cn) SQL services4. Copy the database Besmgmt.mdf, Besmgmt.ldf (C:\Program Files\Microsoft SQL Server\MSSQL\Data) from old blackberry server (cnshbes01.wsi.com.cn) to New server (cnshbes02.wsi.com.cn)5. Start the all BES services in new server (cnshbes02.wsi.com.cn)I found the BES MDS services could not start, when I start this services the services automatic stopping. I found the registerGo to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\BlackBerry MDS Connection ServiceDouble-click ImagePathValue."C:\Program Files\Research In Motion\BlackBerry Enterprise Server\MDS\bin\bmds.exe" -s jvmpath="C:\Program Files\Java\jre1.5.0_07\bin\client\jvm.dll" -XX:+DisableExplicitGC -Xss64K -Xmx768M -Xms128M classpathdir="C:\Program Files\Research In Motion\BlackBerry Enterprise Server\MDS\classpath\\" wrkdir="C:\Program Files\Research In Motion\BlackBerry Enterprise Server\MDS\Servers\Halifax\\" webserverdir="C:\Program Files\Research In Motion\BlackBerry Enterprise Server\MDS\webserver\\" -rbes "cnshbes02_MDS-CS_1"but In Blackberry Manger the server was cnshbes01 cnshbes01_MDS-CS_1How can I do for this issue ?

    DB:2.76:Blackberry Enterprise Server 4.1.4.19 Mds Connection Can Not Start sa


    What exactly is your problem though?




    ******************************************************************If someone helped you give them kudos. Research all info!

  • RELEVANCY SCORE 2.76

    DB:2.76:Jdbc Issue When Accessing An Entity Bean ds



    Hi,

    WLCS 3.1
    WLS 5.1 sp6
    Windows NT
    Oracle 8.1.6

    I am having problems with an Entity bean, I have originaly deployed and had it
    running on cloudscape. I decided I need to deploy it to Oracle 8.1.6, on startup
    of WLCS the bean was deployed to the connection pool correctly using Weblogic
    JDriver.
    The bit I cannot understand is when I try and do a FindByPrimaryKey on the Entity
    Bean the following exception is thrown by oracle, which leads me to believe this
    must be an Oracle/Jdbc problem.

    Here you can see that the bean has been deployed on a valid connection pool.

    Tue Sep 18 15:47:39 GMT+03:00 2001:I EJB JAR deployment /export/home/mccann/tester2.jar
    EJB home interface: 'com.testerHome' deployed bound to the JNDI name
    : 'tester'

    Heres the exception raised when a findByPrimaryKey is invoked on the bean....

    Tue Sep 18 15:47:57 GMT+03:00 2001:I EJB JAR deployment /export/home/mccann/t
    ester2.jar Exception in non-transactional EJB invoke:
    java.sql.SQLException: ORA-00942: table or view does not exist
    at weblogic.db.oci.OciCursor.getCDAException(OciCursor.java:228)
    at weblogic.jdbcbase.oci.Statement.executeUpdate(Statement.java:869)
    at weblogic.jdbc.pool.PreparedStatement.executeUpdate(PreparedStatement.
    java:65)
    at com.testerEJBPSWebLogic_CMP_RDBMS.create(testerEJBPSWebLogic_CMP_RDBM
    S.java:199)
    at com.testerEJBPSWebLogic_CMP_RDBMS.create(testerEJBPSWebLogic_CMP_RDBM
    S.java:162)
    at weblogic.ejb.internal.EntityEJBContext.create(EntityEJBContext.java:1
    18)
    at weblogic.ejb.internal.StatefulEJBObject.postCreate(StatefulEJBObject.
    java:268)
    at com.testerEJBEOImpl.create(testerEJBEOImpl.java:61)
    at com.testerEJBHomeImpl.create(testerEJBHomeImpl.java:32)
    at com.testerEJBHomeImpl_WLSkel.invoke(testerEJBHomeImpl_WLSkel.java:68)
    at weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(BasicServerOb
    jectAdapter.java:347)
    at weblogic.rmi.extensions.BasicRequestHandler.handleRequest(BasicReques
    tHandler.java:69)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
    .java:15)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:135)

    Any help here would be great, this is annoying problem because the Entity bean
    deploys fine and no issues are raised at startup time, so the table must of existed
    and the structure must of been correct. But minutes after the server started I
    ran my client which tried to invoke this bean with the above exception.

    Thanks
    Wayne.

    DB:2.76:Jdbc Issue When Accessing An Entity Bean ds

    Hi Wayne,

    I'd recommend you installing of latest SP for WL plus installing of Oracle
    8.1.7 thing driver.

    Regards,

    Slava Imeshev

    "Wayne Highland" waynehighland@yahoo.com wrote in message
    news:3ba77226$1@newsgroups.bea.com...

    Hi,

    WLCS 3.1
    WLS 5.1 sp6
    Windows NT
    Oracle 8.1.6

    I am having problems with an Entity bean, I have originaly deployed andhad it
    running on cloudscape. I decided I need to deploy it to Oracle 8.1.6, onstartup
    of WLCS the bean was deployed to the connection pool correctly usingWeblogic
    JDriver.
    The bit I cannot understand is when I try and do a FindByPrimaryKey on theEntity
    Bean the following exception is thrown by oracle, which leads me tobelieve this
    must be an Oracle/Jdbc problem.

    Here you can see that the bean has been deployed on a valid connectionpool.

    Tue Sep 18 15:47:39 GMT+03:00 2001:I EJB JAR deployment/export/home/mccann/tester2.jar
    EJB home interface: 'com.testerHome' deployed bound to the JNDI name
    : 'tester'

    Heres the exception raised when a findByPrimaryKey is invoked on thebean....

    Tue Sep 18 15:47:57 GMT+03:00 2001:I EJB JAR deployment/export/home/mccann/t
    ester2.jar Exception in non-transactional EJB invoke:
    java.sql.SQLException: ORA-00942: table or view does not exist
    at weblogic.db.oci.OciCursor.getCDAException(OciCursor.java:228)
    atweblogic.jdbcbase.oci.Statement.executeUpdate(Statement.java:869)
    atweblogic.jdbc.pool.PreparedStatement.executeUpdate(PreparedStatement.
    java:65)
    atcom.testerEJBPSWebLogic_CMP_RDBMS.create(testerEJBPSWebLogic_CMP_RDBM
    S.java:199)
    atcom.testerEJBPSWebLogic_CMP_RDBMS.create(testerEJBPSWebLogic_CMP_RDBM
    S.java:162)
    atweblogic.ejb.internal.EntityEJBContext.create(EntityEJBContext.java:1
    18)
    atweblogic.ejb.internal.StatefulEJBObject.postCreate(StatefulEJBObject.
    java:268)
    at com.testerEJBEOImpl.create(testerEJBEOImpl.java:61)
    at com.testerEJBHomeImpl.create(testerEJBHomeImpl.java:32)
    atcom.testerEJBHomeImpl_WLSkel.invoke(testerEJBHomeImpl_WLSkel.java:68)
    atweblogic.rmi.extensions.BasicServerObjectAdapter.invoke(BasicServerOb
    jectAdapter.java:347)
    atweblogic.rmi.extensions.BasicRequestHandler.handleRequest(BasicReques
    tHandler.java:69)
    atweblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
    java:15)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:135)

    Any help here would be great, this is annoying problem because the Entitybean
    deploys fine and no issues are raised at startup time, so the table mustof existed
    and the structure must of been correct. But minutes after the serverstarted I
    ran my client which tried to invoke this bean with the above exception.

    Thanks
    Wayne.

  • RELEVANCY SCORE 2.76

    DB:2.76:Java Beans aj


    Can you please give me a clear picture :: what is Java beans and what is an Enterprise Java Beans? I have read many forums, but they did not give a clear picture. Can a Java Bean become Enterprise Java Bean

    DB:2.76:Java Beans aj

    Can you please give me a clear picture :: what is Java beans and what is an Enterprise Java Beans? I have read many forums, but they did not give a clear picture. Can a Java Bean become Enterprise Java Bean

  • RELEVANCY SCORE 2.76

    DB:2.76:Calling Remote Session Bean 38


    Hi everyone
    I'm new to Enterprise java beans.
    Can you please tell me how I would call a Remote Session Bean sitting on a remote application server.
    Underneath is the session bean on the remote application server.
    I'm calling the remote bean from a struts action servlet.

    GlassFish is being used for the Remote application server, and the Local one which is making the call.

    @Remote
    public interface EmployeeFacadeRemote {

    void create(String username, Integer id);

    void edit(Employee employee);

    void remove(Employee employee);

    Employee find(Object id);

    ListEmployee findAll();
    }

    DB:2.76:Calling Remote Session Bean 38

    oops ! the link says it all

    Thanks.
    I saw what I never knew.

  • RELEVANCY SCORE 2.75

    DB:2.75:Strange Error Not Getting Value Entered On Client Side To Server Side Injsf fk


    Hi All,

    I am getting some strage error.

    Generally we have client side pojo server side pojo.

    I have written client side pojo as,

    public class UserFormBean {
    private String userName;
    // corresponding getters setters

    My faces-config is
    managed-bean
    descriptionclient side pojo/description
    managed-bean-nameuserForm/managed-bean-name
    managed-bean-lasscom.UserFormBean/managed-bean-class
    managed-bean-scopeapplication/managed-bean-scope
    /managed-bean
    managed-bean
    descriptionJava Class containing save method /description
    managed-bean-namemyBean/managed-bean-name
    managed-bean-lasscom.SaveUser/managed-bean-class
    managed-bean-scopeapplication/managed-bean-scope
    /managed-bean

    I am referring userForm alias as in my JSP as,
    h:inputText value="#{userForm.userName}" /
    my save button action is as follows,
    h:commandButton value="Save" action="#{myBean.userSaveMethod}" /

    My Server Side pojo is
    public class myServerSidePojo{
    private String user_name;
    //corresponding getter/setter
    }

    My Java Class containing save method is ,
    public clas SaveUser{
    public String userSaveMethod(){
    UserFormBean uFB = new UserFormBean ();
    myServerSidePojo MSP = new myServerSidePojo();
    MSP.setUser_Name(uFB.getUserName());
    }
    }

    BUT HERE , uFB.getUserName() this value not coming from clientside

    As in struts we are mapping to actionForm etc.
    Do I need to do this.
    But from JSF docs Its simple just putting in faces-config it will get client side value.
    Then what might be wrong ?
    I am using myfaces-impl.jar,myfaces-api,tomahawk.jar
    Any suggesions ?

    Thanks in advance
    Sandip Patil

    DB:2.75:Strange Error Not Getting Value Entered On Client Side To Server Side Injsf fk

    Hi All,

    I am getting some strage error.

    Generally we have client side pojo server side pojo.

    I have written client side pojo as,

    public class UserFormBean {
    private String userName;
    // corresponding getters setters

    My faces-config is
    managed-bean
    descriptionclient side pojo/description
    managed-bean-nameuserForm/managed-bean-name
    managed-bean-lasscom.UserFormBean/managed-bean-class
    managed-bean-scopeapplication/managed-bean-scope
    /managed-bean
    managed-bean
    descriptionJava Class containing save method /description
    managed-bean-namemyBean/managed-bean-name
    managed-bean-lasscom.SaveUser/managed-bean-class
    managed-bean-scopeapplication/managed-bean-scope
    /managed-bean

    I am referring userForm alias as in my JSP as,
    h:inputText value="#{userForm.userName}" /
    my save button action is as follows,
    h:commandButton value="Save" action="#{myBean.userSaveMethod}" /

    My Server Side pojo is
    public class myServerSidePojo{
    private String user_name;
    //corresponding getter/setter
    }

    My Java Class containing save method is ,
    public clas SaveUser{
    public String userSaveMethod(){
    UserFormBean uFB = new UserFormBean ();
    myServerSidePojo MSP = new myServerSidePojo();
    MSP.setUser_Name(uFB.getUserName());
    }
    }

    BUT HERE , uFB.getUserName() this value not coming from clientside

    As in struts we are mapping to actionForm etc.
    Do I need to do this.
    But from JSF docs Its simple just putting in faces-config it will get client side value.
    Then what might be wrong ?
    I am using myfaces-impl.jar,myfaces-api,tomahawk.jar
    Any suggesions ?

    Thanks in advance
    Sandip Patil

  • RELEVANCY SCORE 2.75

    DB:2.75:Unable To Connect Via Jdbc Thin Diver 9a


    Hello everybody. I use oracle 8 enterprise edition. When i connect oracle from java with the help of thin driver i get the error

    "No More Data to read from Socket"

    I am not able to establish connection to the server from the client machine please help me out

    DB:2.75:Unable To Connect Via Jdbc Thin Diver 9a

    Usually a JDBC ot listener problem. Make sure you have the latest pacth for the RDBMS and the latest version of the JDBC driver for the RDBMS version you are using.

  • RELEVANCY SCORE 2.75

    DB:2.75:Enterprise Java Beans + Facade (Help Please)? 37


    I'm trying to learn Enterprise JavaBeans but cant find out how to get the Facade Pattern to work Between Client applications and the two entity beans. I can get 1 Enterprise JavaBean to work with a client but I cant work out where to start when getting 2 Enterprise JavaBeans to work.

    I have this at the moment:-
    Java Files
    (Entity Bean One)
    - MedicationBean.java
    - MedicationHomeRemote.java
    - MedicationRemote.java
    (Entity Bean Two)
    - PatientsBean.java
    - PatientsHomeRemote.java
    - PatientsRemote.java

    XML Files
    - ejb-jar.xml
    - jboss.xml

    This is what Im going to try and do in the end: -
    Display Medication Records (Entity Bean One)
    Medication001 - Patient004
    Medication002 - Patient006
    Medication003 - Patient005
    Medication003 - Patient003
    Medication003 - Patient001
    Medication004 - Patient002
    Display Patients Records (Entity Bean Two)
    Patient001 - Medication003
    Patient002 - Medication004
    Patient003 - Medication003
    Patient004 - Medication001
    Patient005 - Medication003
    Patient006 - Medication002

    DB:2.75:Enterprise Java Beans + Facade (Help Please)? 37

    Yep thats what Im looking for!
    But are there any examples on this as im still
    learning, and this the first time I started using
    EJB's?Yes, lots of examples. If you Google for "EJB CMP" you'll find stuff like this:

    http://java.sun.com/developer/technicalArticles/ebeans/EJB20CMP/

    (also Recomed any good books I have Java how to
    Programe 6th edt. but dont think it covers EJB's)I'm not a big fan of the Deitel Deitel books anymore. I'm told that the Head First books are good.

    I'd recommend that you try making this work as Plain Old Java Objects (POJOs) first, before attempting it with EJBs. You might understand what the problems are better.

    Here's what I'd start with if I had a Patient class with a one-to-many relationship with Medication:

    In Patient.java:

    package model;

    import java.io.Serializable;

    import java.util.Map;
    import java.util.HashMap;

    public class Patient implements Serializable
    {
    private Long id;
    private String name;
    private Map medications;

    public Patient(Long id, String name, Map medications)
    {
    this.id = id;
    this.name = name;
    this.medications = new HashMap(medications);
    }

    public Long getId() { return id; }
    public void setId(Long newId) { id = newId; }

    public String getName() { return name; }
    public void setName(String newName) { name = newName; }

    public Map getMedications() { return medications; }
    public void setMedications(Map newMedications) { medications = newMedications; }

    public void addMedication(Medication medication)
    {
    medications.put(medication.getId(), medication);
    }

    public void removeMedication(Medication medication)
    {
    medications.remove(medication.getId());
    }

    public boolean hasMedication(Medication medication)
    {
    return medications.containsKey(medication.getId());
    }

    // better write equals, hashCode, and toString

    }In Medication.java:

    package model;

    import java.io.Serializable;

    public class Medication implements Serializable
    {
    private Long id;
    private String name;
    private Patient patient;

    public Medication(Long id, String name, Patient patient)
    {
    this.id = id;
    this.name = name;
    this.patient = patient;
    }

    public Long getId() { return id; }
    public void setId(Long newId) { id = newId; }

    public String getName() { return name; }
    public void setName(String newName) { name = newName; }

    public Patient getPatient() { return patient; }
    public void setPatient(Patient newPatient) { patient = newPatient; }

    // better write equals, hashCode, and toString
    }You'll need database access for these. Start with a DAO interface for Patient:

    package persistence;

    import java.util.List;

    public interface PatientDAO
    {
    public Patient find(Long id);
    public List findAll();
    public void saveOrUpdate(Patient p);
    public void delete(Patient p);
    }You'll learn a lot by writing the DAO implementation in JDBC. It'll be a good way to figure out what the EJB CMP is doing for you behind the scenes.

    %

  • RELEVANCY SCORE 2.75

    DB:2.75:Executing Session Bean Methods Very Slow Over Internet 3c



    I'm testing a simple example. Where I use a Session bean with method Test() which only System.out the current time. I lookup the bean over internet where the connection between the client and the server is 80 KB/s.The lookup takes about 10-12 sec. But the create of the bean and executing the method takes some times more than 10 minutes. Is this normal ?I've searched and found a speed problem discussion and add to the Jboss startup script -Djava.rmi.server.hostname="the server's hostname". but the issue stays.I'm using Java build 1.5.0-b64 on the server and client machine. The server is Debian Linux 2.4.26 . The client is WindowsXP.Release ID: JBoss [Zion] 4.0.0 (build: CVSTag=JBoss_4_0_0 date=200409200418)Any suggestions?

    DB:2.75:Executing Session Bean Methods Very Slow Over Internet 3c


    For host and bind addresses I have put the ip-address .I had this exception :non-JRMP server at remote endpointI've changedThe param of the Contextfromenvironment.put(Context.PROVIDER_URL, "jnp://server-ip-address:1099");toenvironment.put(Context.PROVIDER_URL, "server-ip-address");Now the exception is gone but everything again is slow.Lookup,create,execute - for about 15-20 minutes.I've made a summary with ethereal :Between first and last packet : 1055.544 secPackets : 187Bytes: 31714Avg. bytes/sec : 30.045Any ideas?And why when I change The provider to the ip-address there is no that exception?thanks for answering me

  • RELEVANCY SCORE 2.75

    DB:2.75:Why My Message Driven Bean Can't Listen To The Message 3f



    Hi,I appreciate if anyone can point me how to diagnosis this problem.

    deploy envirronment#65288;weblogic7,jbuiler7#65289;
    I configed connection Factory: jndiName:queueFactory
    Queue Destinations#65306;jndiName#20026;myQueue

    in weblogic console the client can send message to myQueue
    and the message Driven Bean deployed to the server successfully,but have no any
    output.

    my MessageBean program:
    public class myMessageBean implements MessageDrivenBean, MessageListener {
    MessageDrivenContext messageDrivenContext;
    public void ejbCreate() throws CreateException {
    /**@todo Complete this method*/
    }
    public void ejbRemove() {
    /**@todo Complete this method*/
    }
    public void onMessage(Message inMessage) {
    /**@todo Complete this method*/
    TextMessage msg = (TextMessage) inMessage;
    try {
    System.out.println
    ("MESSAGE BEAN: Message received: "
    + msg.getText());
    }
    catch (JMSException e) {
    e.printStackTrace();
    }
    }
    public void setMessageDrivenContext(MessageDrivenContext messageDrivenContext)
    {
    this.messageDrivenContext = messageDrivenContext;
    }
    }

    ejb-jar
    enterprise-beans
    message-driven
    display-namemyMessage/display-name
    ejb-namemyMessage/ejb-name
    ejb-classdriverbean.myMessageBean/ejb-class
    transaction-typeContainer/transaction-type
    message-driven-destination
    destination-typejavax.jms.Queue/destination-type
    /message-driven-destination
    /message-driven
    /enterprise-beans
    assembly-descriptor
    container-transaction
    method
    ejb-namemyMessage/ejb-name
    method-name*/method-name
    /method
    trans-attributeRequired/trans-attribute
    /container-transaction
    /assembly-descriptor
    /ejb-jar

    weblogic-ejb-jar
    weblogic-enterprise-bean
    ejb-namemyMessage/ejb-name
    message-driven-descriptor
    pool
    max-beans-in-free-pool200/max-beans-in-free-pool
    initial-beans-in-free-pool20/initial-beans-in-free-pool
    /pool
    destination-jndi-namemyQueue/destination-jndi-name
    connection-factory-jndi-nameQueue CF/connection-factory-jndi-name
    /message-driven-descriptor
    /weblogic-enterprise-bean
    /weblogic-ejb-jar

    Does anyone know how I can get around this?

    DB:2.75:Why My Message Driven Bean Can't Listen To The Message 3f

    Is the MDB targetted to the server hosting the JMS server/destinations?
    Does your JMS connection factory have User Transactions Enabled checked?

    zephyr wrote:

    I used the domain that comes with WLS,just config a connection Factory/JMS Server/Queue
    Destinations
    and there is no errors when boot the server.my client program can send message
    to Queue Destinations,but the bean seems coudn't listen to the message,but no
    exception throw out and no output.--
    Rajesh Mirchandani
    Developer Relations Engineer
    BEA Support

  • RELEVANCY SCORE 2.75

    DB:2.75:Debugging With Eclipse And Jboss 71



    I am trying to debug enterprise java beans (on the same server)using the Eclipse IDE/Jboss and so far have had very little success due to the fact that I am unable to connect to the VM when I initiate the debug session! Can anyone recommend or provide a tried and true example of a Eclipse/Jboss project (for newbies) that includes enterprise java beans, that would allow me to use the Eclipse debugger with the Jboss application server. My hope is that I could step through the bean as well as the client. Please include how you may have modified the run.bat to accomplish this? Really any cooperation here would be appreciated :)

    DB:2.75:Debugging With Eclipse And Jboss 71


    Stephan, thanks for you response! I assume that Eclipse should allow me to "step into" the bean once I designate the appropriate port. Otherwise, I'll try Forte.

  • RELEVANCY SCORE 2.75

    DB:2.75:Jndi Look Up Problem j3



    hi friends Please help me I could not show my ejb in jmx-console i have deplyed it under the following naming context my jboss.xml is as followsmy os is Windows XP enterprise-beans ejb-nameTestEjb/ejb-name jndi-namejava:comp/env/ejb/HelloHomeBean/jndi-name /enterprise-beansit is a session bean- if i dont give java:comp and deploy the bean with the simple name client says Bean not found.While in the server log file it is showing that bean has bean deployed.So please help me any body.Becuase if i deploy the bean with the above name the exception in running the client is comp not found.Then what should i domy ejb-jar.xml file is as follows-ejb-jar enterprise-beans ejb-nameTestEjb/ejb-name hello.Test.HelloHomeBean hello.Test.HelloBean ejb-classhello.Test.HelloEjb/ejb-class session-typeStateless/session-type transaction-typeContainer/transaction-type/enterprise-beansassembly-descriptor ejb-nameTestEjb/ejb-name method-name*/method-name container-transaction trans-attributeRequired/trans-attribute /container-transaction /assembly-descriptor/ejb-jarIf my jboss.xml is as followsenterprise-beans ejb-nameTestEjb/ejb-name jndi-nameHelloHomeBean/jndi-name /enterprise-beansthen it also show while running client that HelloHomeBean not found.How to lookup in jmx-console about this bean and under which namespace should i see it.jmx-console shows nothing about the bean.[/url]

    DB:2.75:Jndi Look Up Problem j3


    hi friends Please help me I could not show my ejb in jmx-console i have deplyed it under the following naming context my jboss.xml is as followsmy os is Windows XP enterprise-beans ejb-nameTestEjb/ejb-name jndi-namejava:comp/env/ejb/HelloHomeBean/jndi-name /enterprise-beansit is a session bean- if i dont give java:comp and deploy the bean with the simple name client says Bean not found.While in the server log file it is showing that bean has bean deployed.So please help me any body.Becuase if i deploy the bean with the above name the exception in running the client is comp not found.Then what should i domy ejb-jar.xml file is as follows-ejb-jar enterprise-beans ejb-nameTestEjb/ejb-name hello.Test.HelloHomeBean hello.Test.HelloBean ejb-classhello.Test.HelloEjb/ejb-class session-typeStateless/session-type transaction-typeContainer/transaction-type/enterprise-beansassembly-descriptor ejb-nameTestEjb/ejb-name method-name*/method-name container-transaction trans-attributeRequired/trans-attribute /container-transaction /assembly-descriptor/ejb-jarIf my jboss.xml is as followsenterprise-beans ejb-nameTestEjb/ejb-name jndi-nameHelloHomeBean/jndi-name /enterprise-beansthen it also show while running client that HelloHomeBean not found.How to lookup in jmx-console about this bean and under which namespace should i see it.jmx-console shows nothing about the bean.[/url]

  • RELEVANCY SCORE 2.75

    DB:2.75:What Is The Main Advantage In Ejb Transactions. fx



    My question is i can have a stateless bean to accept the client requests and will set the Autocommit of database to false and which will invoke the java bean component based up on transaction code and passes the database connection object . the java bean component may perform its business logic and return a success or failure to the stateless bean. then the stateless bean can commit or rollback the transaction.

    In the above case i am able to achieve atomicity . In that case what is the need for Transactions.

    Thanks
    Bala.J

    DB:2.75:What Is The Main Advantage In Ejb Transactions. fx

    you're forgetting that EJBs are components.
    I may decide that my component should call your component.
    I may need to have all this work happen as a unit of work.
    I may be on a different app-server (connections are not serializable)

    Possibly your component is integrated into a larger work-flow process.

    In these cases, a commit of rollback by your EJB would be incorrect.

  • RELEVANCY SCORE 2.74

    DB:2.74:Call Enterprise Bean Dialog To Get Local Interface jj


    Lost Reference to Enterprise Bean in EJB 3.0 on Netbeans 6.0
    Posted by: Lou Blocker on February 28, 2008 DIGG
    Help! I have a problem that I cannot seem to resolve, I have created an Enterprise application in EJB 3.0 Consisting of Two EJB's and 126 Helper classes, and 25 to 30 JSF web pages.
    The product is running in Sun application Server 9.1u Glassfish V2. In the Server Tree Root Enterprise Application I am showing the the Root context for the Web application, and the Enterprise Bean, when I open th Java Source and select Enterprise Resource from the menu and Select Call Enterprise bean, select the Bean, I get this message
    "Enterprise bean does not support reference". What is Going on here ? Must I resort to using Context lookup in order to get a reference to the beans.

    DB:2.74:Call Enterprise Bean Dialog To Get Local Interface jj

    Lost Reference to Enterprise Bean in EJB 3.0 on Netbeans 6.0
    Posted by: Lou Blocker on February 28, 2008 DIGG
    Help! I have a problem that I cannot seem to resolve, I have created an Enterprise application in EJB 3.0 Consisting of Two EJB's and 126 Helper classes, and 25 to 30 JSF web pages.
    The product is running in Sun application Server 9.1u Glassfish V2. In the Server Tree Root Enterprise Application I am showing the the Root context for the Web application, and the Enterprise Bean, when I open th Java Source and select Enterprise Resource from the menu and Select Call Enterprise bean, select the Bean, I get this message
    "Enterprise bean does not support reference". What is Going on here ? Must I resort to using Context lookup in order to get a reference to the beans.

  • RELEVANCY SCORE 2.74

    DB:2.74:Using Remote Enterprise Beans 7x


    Dear Forum users,

    I have the following problem: I created a stateless session bean, packaged it together with a webapplication and a client application into one application and deployed it to the enterprise server. Everything works fine but one thing. The client application only works if it is executed on the same system as the application server. If I deploy my application at a remote server the client application still looks on the local system (even if I create a new client jar file from the deployment tool) for the enterprise bean which is at the remote server.

    I use appclient to execute the client application. I already tried lots of suggestions but none have worked so far. The important part of the code for the client is as follows:
    -----
    Context initial = new InitialContext();
    java.lang.Object objref = initial.lookup("comp:env/ejb/LoanEJB");
    // Get a handle to the home interface
    LoanHome home = (LoanHome)PortableRemoteObject.narrow(objref, LoanHome.class);
    // Instantiate the Loan EJB
    Loan loanEJB = home.create();
    -----

    As said, this works fine local, but not remote. I tried to:
    - set properties: This is not allowed and generated a security exception (using appclient)
    - use:
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.cosnaming.CNCtxFactory");
    env.put(Context.PROVIDER_URL, "iiop://myserver.nl:3700");
    Context initial = new InitialContext(env);
    - use:
    java.lang.Object objref = initial.lookup("LoanBean");
    LoanBean is the JNDI name of the enterprise bean.

    but all these things did not work

    What am I missing? How do I get when executing appclient -client LoanApplicationClient.jar to make a connection to the remote server. Do I need to change settings on the application server as well?

    By the way, it is not a server or network problem, the server is running and accepts connections on all ports from my local machine.

    Thank you very much for your help,

    Benedikt Kratz

    I am willing to provide more information if requested.

    DB:2.74:Using Remote Enterprise Beans 7x

    Hi,

    I think I found the problem. After some long test runs it appears that having an application server running on Windows (2000) accepts remote clients to connect to the application server. Everything works fine.

    If the application server is running under linux (Debian) it does not seem to accept remote clients using enterprise beans from within the application server. The exceptions thrown are shown a couple of messages earlier.

    I installed both the windows and linux application server with the same settings. All ports are open on both servers. is there something more to regard on the linux machine?

    Is it even possible that this is a bug?

    Cheers,

    Ben

  • RELEVANCY SCORE 2.74

    DB:2.74:Bean Deployment Error 79



    hello,Anyone know what I'm suppose to do here?Bean : DBConnectionSection: 16.2Warning: The Bean Provider must specify the fully-qualified name of the Java class that implements the enterprise bean's business methods.ThanksNorm

  • RELEVANCY SCORE 2.74

    DB:2.74:Rmi-Iiop Error pk



    "sunitashukla" wrote:Hi,This is urgent!Please someone help!Thanks in advance!I am trying a simple example(ejbinterop). I have a simple stateless session bean deployed in jboss.It uses rmi-iiop for communication.I deployed bean(jar containes ejb-jar.xml and classes) successfully.Now I have a simple java rmi-iiop client trying to connect to bean but I am getting following error:cmd - java -classpath ${JBOSS_HOME}/client/jboss-j2ee.jar:${JBOSS_HOME}/client/jboss-client.jar:${JBOSS_HOME}/client/jbosssx-client.jar:${JBOSS_HOME}/client/jnp-client.jar:. ejbinterop.LogClient corbaname:iiop:1.2@${server name}:51099#ejbinterop/loggerLooking for: corbaname:iiop:1.2@nygeqsit1.us.db.com:51099#ejbinterop/loggerorg.omg.CORBA.DATA_CONVERSION: minor code: 3 completed: No at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.init(Throwable.java:87) at java.lang.Exception.init(Exception.java:35) at java.lang.RuntimeException.init(RuntimeException.java:40) at org.omg.CORBA.SystemException.init(SystemException.java:42) at org.omg.CORBA.DATA_CONVERSION.init(DATA_CONVERSION.java:63) at org.omg.CORBA.DATA_CONVERSION.init(DATA_CONVERSION.java:51) at com.sun.CORBA.idl.ORB.string_to_object(Compiled Code) at ejbinterop.LogClient.run(LogClient.java:46) at ejbinterop.LogClient.main(LogClient.java:81)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-jardescriptionJBoss Log Message Application/descriptiondisplay-nameLog Message EJB/display-nameenterprise-beanssessionejb-nameejbinterop.Logger/ejb-namehomeejbinterop.LoggerHome/homeremoteejbinterop.Logger/remoteejb-classejbinterop.LoggerEJB/ejb-classsession-typeStateless/session-typetransaction-typeContainer/transaction-type/session/enterprise-beansassembly-descriptorcontainer-transactionmethod ejb-nameejbinterop.Logger/ejb-name method-intfRemote/method-intf method-name*/method-name/methodtrans-attributeRequired/trans-attribute/container-transaction/assembly-descriptor/ejb-jar

    DB:2.74:Rmi-Iiop Error pk


    "sunitashukla" wrote:Hi,This is urgent!Please someone help!Thanks in advance!I am trying a simple example(ejbinterop). I have a simple stateless session bean deployed in jboss.It uses rmi-iiop for communication.I deployed bean(jar containes ejb-jar.xml and classes) successfully.Now I have a simple java rmi-iiop client trying to connect to bean but I am getting following error:cmd - java -classpath ${JBOSS_HOME}/client/jboss-j2ee.jar:${JBOSS_HOME}/client/jboss-client.jar:${JBOSS_HOME}/client/jbosssx-client.jar:${JBOSS_HOME}/client/jnp-client.jar:. ejbinterop.LogClient corbaname:iiop:1.2@${server name}:51099#ejbinterop/loggerLooking for: corbaname:iiop:1.2@nygeqsit1.us.db.com:51099#ejbinterop/loggerorg.omg.CORBA.DATA_CONVERSION: minor code: 3 completed: No at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.init(Throwable.java:87) at java.lang.Exception.init(Exception.java:35) at java.lang.RuntimeException.init(RuntimeException.java:40) at org.omg.CORBA.SystemException.init(SystemException.java:42) at org.omg.CORBA.DATA_CONVERSION.init(DATA_CONVERSION.java:63) at org.omg.CORBA.DATA_CONVERSION.init(DATA_CONVERSION.java:51) at com.sun.CORBA.idl.ORB.string_to_object(Compiled Code) at ejbinterop.LogClient.run(LogClient.java:46) at ejbinterop.LogClient.main(LogClient.java:81)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-jardescriptionJBoss Log Message Application/descriptiondisplay-nameLog Message EJB/display-nameenterprise-beanssessionejb-nameejbinterop.Logger/ejb-namehomeejbinterop.LoggerHome/homeremoteejbinterop.Logger/remoteejb-classejbinterop.LoggerEJB/ejb-classsession-typeStateless/session-typetransaction-typeContainer/transaction-type/session/enterprise-beansassembly-descriptorcontainer-transactionmethod ejb-nameejbinterop.Logger/ejb-name method-intfRemote/method-intf method-name*/method-name/methodtrans-attributeRequired/trans-attribute/container-transaction/assembly-descriptor/ejb-jar

  • RELEVANCY SCORE 2.74

    DB:2.74:Stateful Session Bean Doesn't Release Resources 7m


    Hi!
    I'm using Weblogic 6.0 on Linux and Visibroker 5.0.
    I have a stateful session bean, which makes a connection to a corba server using a distributor class.
    Every bean instantiates own distributor, which gets the reference to the corba service from name service.
    Every time that new bean is made and the connection to the corba server, name service and corba server starts new process.
    The problem is that these processes leave hanging although the connection to corba server and name service are released such as the distributor and the bean is removed.
    I have tried this with a dummy java client that uses the distributor just like the bean, and then the processes died normally after releases. So the problem must be on EJB or more probably on Weblogic.
    Anybody got an idea?

    Thanks, S

    DB:2.74:Stateful Session Bean Doesn't Release Resources 7m

    I don't actually know how the corba server is implemented, but it's not relevant does the server use threads or not. I just noticed that after running client that has a loop of 100 rounds of creating and releasing the connections there are still about 100 processes left on corba server and another 100 on name service. And if i run the dummy client with same functionally but which is not EJB, the processes died normally after running the client.

    s

  • RELEVANCY SCORE 2.74

    DB:2.74:How To Run Ejb Programms 1p


    hi

    i am trying to Enterprise Java Beans programming using weblogic 8.1

    do we need to set any classpath to compile and run this application.

    i created one directory EjbProg and i stored all Home,Object and Bean class files in Order directory under EjbProg. i aslo create another directtory Meta-Inf under[b] EjbProg directory. I stored Client file under EjbProg Directory . i created ejb-jar and weblogic-ejb-jar files also

    i have written in ejb-jar.xml like
    ejb-jar
    enterprise-beans
    session
    ejb-nameOrderManagementBean/ejb-name
    homeordermgmt.OrderManagementHome/home
    remoteordermgmt.OrderManagement/remote
    ejb-classordermgmt.OrderManagementBean/ejb-class
    session-typeStateless/session-type
    transaction-typeContainer/transaction-type
    /session
    /enterprise-beans

    assembly-descriptor
    container-transaction
    method
    ejb-nameOrderManagementBean/ejb-name
    method-name*/method-name
    /method
    trans-attributeRequired/trans-attribute
    /container-transaction
    /assembly-descriptor

    /ejb-jar

    and i ahve written weblogic-ejb-jar.xml like
    weblogic-ejb-jar
    weblogic-enterprise-bean
    ejb-nameOrderManagementBean/ejb-name
    stateless-session-descriptor
    pool
    /pool

    stateless-clustering
    /stateless-clustering

    /stateless-session-descriptor

    transaction-descriptor
    /transaction-descriptor

    jndi-nameOrderManagementBean/jndi-name
    /weblogic-enterprise-bean
    /weblogic-ejb-jar

    i have set class path as
    set path=./;c:\bea\jdk141_05\bin;.\path.\;
    set classpath=./;c:\bea\weblogic81\server\lib\weblogic.jar;.\classpath.\;

    after compiling client programm it shows

    cannat access orderHome class

    plz give me replay what do i ahve to do to solve that problem

    DB:2.74:How To Run Ejb Programms 1p

    because you still don't know how to deploy an enterprise app in WebLogic. If you deployed it properly in an EAR file you wouldn't have to set CLASSPATH anywhere.

    my advice? read the weblogic docs to learn how to deploy an app properly.

    %

  • RELEVANCY SCORE 2.74

    DB:2.74:Sun Java System Message Queue And Message Driven Bean In Oc4j... xa


    I was wondering if anyone could provide me a sample configuration for the following environment:

    I have a REMOTE Sun Java System Message Queue Server that holds messages in queues. I have a message driven bean client in an OC4J enterprise application that needs to read the messages from the remote message queue.

    I've successfully created a simple client standalone application that connects to the remote server, so I know my connections/permissions are established.

    Standalone OC4J: 9.0.4.2.0
    Sun MQ: 3.5

    Thank you,

    Jason

    DB:2.74:Sun Java System Message Queue And Message Driven Bean In Oc4j... xa

    I successfully connected my standalone OC4J to a remote Sun MQ JMS provider; here is the required configuration:

    In orion-application.xml:
    resource-provider class="com.evermind.server.deployment.ContextScanningResourceProvider" name="sunimq"
    property name="java.naming.factory.initial" value="com.sun.jndi.ldap.LdapCtxFactory"/property
    property name="java.naming.provider.url" value="ldap://my.ip.address:389/ou=imqusers,o=imq,dc=linuxdev,dc=org"/property
    property name="java.naming.security.authentication" value="simple"/property
    property name="java.naming.security.principal" value="cn=admin,ou=imqusers,o=imq,dc=linuxdev,dc=org"/property
    property name="java.naming.security.credentials" value="my-password"/property
    property name="resource.names" value="cn=ldapAmtsInboundQueue,cn=ldapAmtsQueueConnectionFactory"/property
    /resource-provider

    In orion-ejb-jar.xml for the message driven bean:
    enterprise-beans
    message-driven-deployment name="MyMDBean" connection-factory-location="java:comp/resource/sunimq/cn=ldapAmtsQueueConnectionFactory"
    destination-location="java:comp/resource/sunimq/cn=ldapAmtsInboundQueue"
    max-instances="-1"
    min-instances="1"
    /message-driven-deployment
    /enterprise-beans

    In ejb-jar.xml:
    resource-refres-ref-namejava:comp/resource/sunimq/cn=ldapAmtsInboundQueue/res-ref-nameres-typejavax.jms.queue/res-typeres-authContainer/res-auth
    /resource-ref

    Also, make sure to to reference the Sun libraries in the server.xml file, i.e:

    library path="../lib/sunmq/jms.jar" /
    library path="../lib/sunmq/fscontext.jar" /
    library path="../lib/sunmq/imq.jar" /
    library path="../lib/sunmq/imqservlet.jar" /
    library path="../lib/sunmq/imqxm.jar" /

    Message was edited by:
    user457020

    Message was edited by:
    user457020

  • RELEVANCY SCORE 2.74

    DB:2.74:Duke? Problems With Jboss 4.0 On Linux 9f



    I'm using the following configuration:server is called tutorial and is equal to the standard server.Win2K PC16:54:19,997 INFO [Server] Release ID: JBoss [Zion] 4.0.0 (build: CVSTag=JBoss_4_0_0 date=200409200418)16:54:19,997 INFO [Server] Home Dir: D:\MyFiles\dev\env\jboss-4.0.016:54:19,997 INFO [Server] Home URL: file:/D:/MyFiles/dev/env/jboss-4.0.0/16:54:19,997 INFO [Server] Library URL: file:/D:/MyFiles/dev/env/jboss-4.0.0/lib/16:54:20,007 INFO [Server] Patch URL: null16:54:20,007 INFO [Server] Server Name: tutorial16:54:21,449 INFO [ServerInfo] Java version: 1.5.0,Sun Microsystems Inc.16:54:21,449 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0-b64,Sun Microsystems Inc.16:54:21,449 INFO [ServerInfo] OS-System: Windows 2000 5.0,x86Linux PC16:22:56,420 INFO [Server] Release ID: JBoss [Zion] 4.0.0 (build: CVSTag=JBoss_4_0_0 date=200409200418)16:22:56,421 DEBUG [Server] Using config: org.jboss.system.server.ServerConfigImpl@44322616:22:56,421 DEBUG [Server] Server type: class org.jboss.system.server.ServerImpl16:22:56,421 INFO [Server] Home Dir: /opt/jboss-4.0.016:22:56,422 INFO [Server] Home URL: file:/opt/jboss-4.0.0/16:22:56,423 INFO [Server] Library URL: file:/opt/jboss-4.0.0/lib/16:22:56,425 INFO [Server] Patch URL: null16:22:56,426 INFO [Server] Server Name: tutorial16:22:57,918 INFO [ServerInfo] Java version: 1.4.2,Blackdown Java-Linux Team16:22:57,918 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM Blackdown-1.4.2-fcs,Blackdown Java-Linux Team16:22:57,919 INFO [ServerInfo] OS-System: Linux 2.6.5-7.108-default,i386The linux system doesn't run a XServer.on win2k everything wents fine incl. the Duke example.I can access the Duke's bank from local win2k PC as well from a Linux PC via remote access.Running Jboss on linux the problems start when changing the "hsqldb-ds.xml" file according the Getting Started Docu. !-- for tcp connection, allowing other processes to use the hsqldb database. This requires the org.jboss.jdbc.HypersonicDatabase mbean.-- connection-urljdbc:hsqldb:hsql://localhost:1701/connection-url !-- for totally in-memory db, not saved when jboss stops. The org.jboss.jdbc.HypersonicDatabase mbean necessary connection-urljdbc:hsqldb:./connection-url-- !-- for in-process persistent db, saved when jboss stops. The org.jboss.jdbc.HypersonicDatabase mbean is necessary for properly db shutdown connection-urljdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}localDB/connection-url-- !-- This mbean should be used only when using tcp connections. Uncomment when the tcp based connection-url is used.-- 1701 true default true trueDoing a hot deploy of the file a get the following Exception16:49:05,219 ERROR [HiLoKeyGeneratorFactory] Starting failed jboss:service=KeyGeneratorFactory,type=HiLojavax.naming.CommunicationException [Root exception is java.io.NotSerializableException: org.jboss.tm.TxManager] at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:451)...Restarting JBOSS gives no Errors ????Deploying the ear file on the linux PC ends up with the following17:13:30,503 INFO [EARDeployer] Init J2EE application: file:/opt/jboss-4.0.0/server/tutorial/deploy/JBossDukesBank.ear17:13:31,898 WARN [verifier] EJB spec violation:Bean : CustomerBeanSection: 22.2Warning: The Bean Provider must specify the fully-qualified name of the Java class that implements the enterprise bean's business methods in the ejb-class element.Info : Class not found on 'com.sun.ebank.ejb.customer.CustomerBean': Unexpected error during load of: com.sun.ebank.ejb.customer.CustomerBean, msg=com/sun/ebank/ejb/customer/CustomerBean (Unsupported major.minor version 49.0)17:13:31,902 WARN [verifier] EJB spec violation:Bean : AccountBeanSection: 22.2Warning: The Bean Provider must specify the fully-qualified name of the Java class that implements the enterprise bean's business methods in the ejb-class element.Info : Class not found on 'com.sun.ebank.ejb.account.AccountBean': Unexpected error during load of: com.sun.ebank.ejb.account.AccountBean, msg=com/sun/ebank/ejb/account/AccountBean (Unsupported major.minor version 49.0)17:13:31,906 WARN [verifier] EJB spec violation:Bean : TxBeanSection: 22.2Warning: The Bean Provider must specify the fully-qualified name of the Java class that implements the enterprise bean's business methods in the ejb-class element.Info : Class not found on 'com.sun.ebank.ejb.tx.TxBean': Unexpected error during load of: com.sun.ebank.ejb.tx.TxBean, msg=com/sun/ebank/ejb/tx/TxBean (Unsupported major.minor version 49.0)17:13:31,910 WARN [verifier] EJB spec violation:Bean : AccountControllerBeanSection: 22.2Warning: The Bean Provider must specify the fully-qualified name of the Java class that implements the enterprise bean's business methods in the ejb-class element.Info : Class not found on 'com.sun.ebank.ejb.account.AccountControllerBean': Unexpected error during load of: com.sun.ebank.ejb.account.AccountControllerBean, msg=com/sun/ebank/ejb/account/AccountControllerBean (Unsupported major.minor version 49.0)17:13:31,914 WARN [verifier] EJB spec violation:Bean : CustomerControllerBeanSection: 22.2Warning: The Bean Provider must specify the fully-qualified name of the Java class that implements the enterprise bean's business methods in the ejb-class element.Info : Class not found on 'com.sun.ebank.ejb.customer.CustomerControllerBean': Unexpected error during load of: com.su...Any ideas??regardsHelmut

    DB:2.74:Duke? Problems With Jboss 4.0 On Linux 9f


    Hi Achim,thanx for the help. Now it works for me too.Kind regards Helmut