Standalone JMS client in J2EE 1.4 Beta

Hi,
I expected it should be possible to deploy an MD Bean and to send message to it from outside the server - using "runclient". It does not work for me. During "runclient" it can not find the queue - defined with "message-destination". Can anybody tell me - is it supposed to work this way?
I do runclient -client m01mclient.ear -name MDClient
I have .ear with application.xml and sun-j2ee-ri.xml and .jar in it with application-client.xml. Here are the descriptors:
application-client>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<?xml version="1.0" encoding="UTF-8"?>
<application-client version="1.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/application-client_1_4.xsd">
<display-name>MDClient</display-name>
<resource-ref>
<res-ref-name>jms/KnownConnectionFactory</res-ref-name>
<res-type>javax.jms.ConnectionFactory</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
<message-destination-ref>
<message-destination-ref-name>jms/KnownQueue</message-destination-ref-name>
<message-destination-type>javax.jms.Queue</message-destination-type>
<message-destination-usage>Produces</message-destination-usage>
<message-destination-link>NameForKnownQueue</message-destination-link>
</message-destination-ref>
<message-destination>
<message-destination-name>NameForKnownQueue</message-destination-name>
</message-destination>
</application-client>
sun-j2ee-ri.xml>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE j2ee-ri-specific-information
PUBLIC "-//Sun Microsystems Inc.//DTD J2EE Reference Implementation 1.4//EN"
"http://localhost:8000/sun-j2ee-ri_1_4.dtd">
<j2ee-ri-specific-information>
<app-client>
<module-name>mdclient.jar</module-name>
<resource-ref>
<res-ref-name>jms/KnownConnectionFactory</res-ref-name>
<jndi-name>jms/QueueConnectionFactory</jndi-name>
<default-resource-principal>
<name>j2ee</name>
<password>j2ee</password>
</default-resource-principal>
</resource-ref>
<message-destination>
<message-destination-name>NameForKnownQueue</message-destination-name>
<jndi-name>jms/Queue</jndi-name>
</message-destination>
</app-client>
</j2ee-ri-specific-information>

Sorry for the false alarm. In fact it works fine with these same deployment descriptors.
But in the last J2EE Tech Tips the client is packaged much simpler.

Similar Messages

  • MDB vs standalone JMS client

    I have implemented a transformation server as a JMS client. This is not
    written as a EJB bean, partly because I'm not very familiar with EJB beans.
    I'm being told MDB is the way to go (I'm a bit reluctant in front of the
    additional work) for the usual reasons : transaction-control (not really an
    issue right now for me but may become one), ease of deployment and
    centralized monitoring. Fair enough.
    My standalone JMS client creates a lot of variables at initialization (such
    as a precompiled XSLT stylesheet to substantially improve the speed of each
    transformation).
    Where should this be created if I were to convert my standalone JMS client
    into an MDB ? In ejbCreate() ?
    I'm also a bit worried about a few aspects :
    1) Performance, the size of requests may vary tremendously and I currently
    use a synchronous receive on my input queue, is this more efficient (I pull
    messages when I'm ready) than using beans and onMessage() ? In other words,
    will the container try to push message notifications to MDB bean instances
    that are not ready ?
    2) My standalone JMS consumer is also a producer to several destinations
    (including temporary queues, permanent queues and topics), is there any
    limitation to the use of JMS destinations in an MDB (what about selectors ?)
    vs a standalone java JMS application?
    3) My standalone JMS consumer creates a few threads per request. Any gotchas
    in a MDB vs a standalone Java JMS application ? Are MDB passivated at any
    time ?
    Many thanks for any answer,
    Rosalie
    Rosalie

    Rosalie Mignon wrote:
    I have implemented a transformation server as a JMS client. This is not
    written as a EJB bean, partly because I'm not very familiar with EJB beans.
    I'm being told MDB is the way to go (I'm a bit reluctant in front of the
    additional work) for the usual reasons : transaction-control (not really an
    issue right now for me but may become one), ease of deployment and
    centralized monitoring. Fair enough.There's a number of MDB advantages over writing your own JMS consumers.
    I would recommend MDBs for JMS consumers running within WLS. If you
    have a JMS consumer that is a separate (say client) process, then
    vanilla JMS is still the way to go.
    The MDB container takes care of things like reconnecting you to JMS if
    it fails. It supports foreign JMS providers so your MDBs will work with
    "foreign" messaging systems like MQ-Series.
    >
    My standalone JMS client creates a lot of variables at initialization (such
    as a precompiled XSLT stylesheet to substantially improve the speed of each
    transformation).
    Where should this be created if I were to convert my standalone JMS client
    into an MDB ? In ejbCreate() ?Yes, ejbCreate would be fine.
    >
    I'm also a bit worried about a few aspects :
    1) Performance, the size of requests may vary tremendously and I currently
    use a synchronous receive on my input queue, is this more efficient (I pull
    messages when I'm ready) than using beans and onMessage() ? In other words,
    will the container try to push message notifications to MDB bean instances
    that are not ready ?I'm not sure I understand. You will have a pool of MDB instances all
    receiving from the queue. When an instance is available and there is a
    message pending, the EJB/JMS containers will call your MDB's onMessage
    implementation.
    >
    2) My standalone JMS consumer is also a producer to several destinations
    (including temporary queues, permanent queues and topics), is there any
    limitation to the use of JMS destinations in an MDB (what about selectors ?)
    vs a standalone java JMS application?Not that I can think of.
    >
    3) My standalone JMS consumer creates a few threads per request. Any gotchas
    in a MDB vs a standalone Java JMS application ? You are not really allowed to create threads from an EJB. Why do you
    need to create threads? In general, we wouldn't recommend that
    server-side applications create new threads on each request.
    Are MDB passivated at any
    time ?
    No
    Many thanks for any answer,Your domain name is an unusual one for the J2EE world. If you can tell
    us, I'd be interested to know what you're doing.
    -- Rob
    >
    Rosalie
    Rosalie

  • Standalone JMS client  in SJS App Server 8.0

    Hi
    I am trying to retrieve a message from a JMS queue from astandalone client.
    The code the client uses to lookup JMS resources is:
    try
              /* Create the object of InitialContext interface */
    Properties env = new Properties( );
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.cosnaming.CNCtxFactory");
    env.put(Context.PROVIDER_URL,"iiop://localhost:3700");
         jndiContext = new InitialContext(env);
              /* Find the connection factory object */
         QConnectionFactory = (QueueConnectionFactory)jndiContext.lookup("jms/QConnectionFactory");
         /* Find the queue */      
              queue = (Queue) jndiContext.lookup("jms/Queue");
    catch (NamingException e)
         System.out.println("Error: " + e.toString());
    The code throws the following exception:
    Error: javax.naming.NameNotFoundException [Root exception is org.omg.CosNaming.N
    amingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0]
    Exception in thread "main" java.lang.NullPointerException
    at QReceiver.main(QReceiver.java:51)
    What might be the problem? Pls help. The code works fine when executed as an Application client of SJS Appserver without using the JNDI Context part.
    Thanks in advance
    JLRocky

    Also have a problem similar to this. I have found that
    1. JMS between beans on the same server work fine
    2. JMS between standalone client and server work fine if you start the bundled imq as a standalone message server
    3. If you are using the Appserver then standalones cannont connect, but it you are using the imq beans cannot connect.
    so i haven't had time to try this yet but my possible solution is:
    configure the app server to use an external JMS server (its in the admin console some place) make the external server to be an imq running as a standalone, hopefully it can be started on localhost with out any port changes.
    I think rather than bundling the two so both could be used they embeded the imq in the appserver and shielded it from outside comminication

  • How to insert message in OC4J JMS from standalone java client.

    Hi,
    I have been following available examples for creating standalone java clients to insert messages in JMS queues.
    I am able to insert using java client when the SOA suite and the standalone java code are on same machine.
    package producerconsumerinjava;
    import javax.jms.*;
    import javax.naming.*;
    import java.util.Hashtable;
    public class QueueProducer
    public static void main(String[] args)
    String queueName = "jms/demoQueue";
    String queueConnectionFactoryName = "jms/QueueConnectionFactory";
    Context jndiContext = null;
    QueueConnectionFactory queueConnectionFactory = null;
    QueueConnection queueConnection = null;
    QueueSession queueSession = null;
    Queue queue = null;
    QueueSender queueSender = null;
    TextMessage message = null;
    int noMessages = 5;
    * Set the environment for a connection to the OC4J instance
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "oracle.j2ee.rmi.RMIInitialContextFactory");
    env.put(Context.SECURITY_PRINCIPAL, "oc4jadmin");
    env.put(Context.SECURITY_CREDENTIALS, "mypass");
    env.put(Context.PROVIDER_URL,"ormi://myserver.company.com:12402"); //12402 is the rmi port
    * Set the Context Object.
    * Lookup the Queue Connection Factory.
    * Lookup the JMS Destination.
    try
    jndiContext = new InitialContext(env);
    queueConnectionFactory =
    (QueueConnectionFactory) jndiContext.lookup(queueConnectionFactoryName);
    queue = (Queue) jndiContext.lookup(queueName);
    catch (NamingException e)
    System.out.println("JNDI lookup failed: " + e.toString());
    System.exit(1);
    * Create connection.
    * Create session from connection.
    * Create sender.
    * Create text message.
    * Send messages.
    * Send non text message to end text messages.
    * Close connection.
    try
    queueConnection = queueConnectionFactory.createQueueConnection();
    queueSession =
    queueConnection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
    queueSender = queueSession.createSender(queue);
    message = queueSession.createTextMessage();
    for (int i = 0; i < noMessages; i++)
    message.setText("Message " + (i + 1));
    System.out.println("Producing message: " + message.getText());
    queueSender.send(message);
    queueSender.send(queueSession.createBytesMessage());
    catch (JMSException e)
    System.out.println("Exception occurred: " + e.toString());
    finally
    if (queueConnection != null)
    try
    queueConnection.close();
    catch (JMSException e)
    System.out.println("Closing error: " + e.toString());
    But when the SOA Suite is remote, I am struggling to get the settings correct
    Till now, here is what I have figured out from looking at blogs/tars etc on the Net:
    1. I need to use ApplicationClientInitialContextFactory instead of RMIInitialContextFactory (http://download.oracle.com/docs/cd/E14101_01/doc.1013/e13975/jndi.htm)
    2. The project should have a META-INF/application-client.xml file, which may be dummy (http://www.wever.org/java/space/Oracle/JmsTar1). Question is, my code is there in a single absolutely standalone code..how I can use this application-client.xml and where it has to be placed.
    Errors:
    When trying to run exact same code on local server that tries to enqueue JMS on remotee serverer
    Exception occurred: javax.jms.JMSException: Unable to create a connection to "xxxxxxx.yyyyyy01.dev.com/10.42.456.11:12,602" as user "null".
    Any help is greatly welcome.
    As an exercise, I copied this complete code on the server and then ran locally using a telnet client...it worked. So the problem is coming when accessing the server remotely.
    Rgds,
    Amit

    1. I need to use ApplicationClientInitialContextFactory instead of RMIInitialContextFactoryNot necessarily.
    2. The project should have a META-INF/application-client.xml fileThat's only necessary if going the ApplicationClientInitialContextFactory route.
    There are two types of JMS client applications you can write -- a pure/plain Java app, and an "AppClient". That first is your everyday run-of-the-mill Java application, nothing special. That latter is a special, complicated beast that tries to act as a part of the whole client/server/J2EE architecture which provides you with a semi-managed environment. Either can be made to work, but if all you need is JMS access (using plain OC4J JMS factory/queue names and not JMS Connector names), then the first is easier to get working (and performs a tiny bit better as well due to being a lighter-weight solution).
    I think the problem you are having might be: When you use the plain Java client solution, you do not have any type of management, and that includes user management. With no user management (and if the JMS server is not configured to allow anonymous connections) you need to include the username and password in the call to createConnection. (I think it may be that this is actually true in the AppClient case as well -- I avoid using the AppClient model as much as possible so my memory there is weaker.)
    If you prefer to go the AppClient route, I would point you to a demo I wrote which had a functioning example, but Oracle seems to have removed it (and all of the 10.1.3 demos?) from OTN. :-(
    Hmm, it seems to still be available on the wayback machine:
    http://web.archive.org/web/20061021064014/www.oracle.com/technology/tech/java/oc4j/1013/how_to/index.html
    (Just look down the page for "With OEMS JMS (In-Memory and File-Based)" -- there is an .html document with info, and there is a .zip file with source code.)
    Question is, my code is there in a single absolutely standalone code..how I can use this application-client.xml and where it has to be placed.The app client in my demo had the following directory structure:
    myjavaclient.class
    jndi.properties
    META-INF\MANIFEST.MF
    META-INF\application-client.xml
    META-INF\orion-application-client.xml
    When you use ApplicationClientInitialContextFactory I think it just looks under .\META-INF for the .xml files.
    -Jeff

  • Running JMS client on multiple systems (using J2EE 1.4)

    Hello all,
    Can anyone tell me if it is possible to run a JMS client on a system that is not running a J2EE server on localhost? Is there any way to reference the server on another machine (using J2EE 1.4 server)??
    I found information in the J2EE 1.3.1 tutorial that tells of ways to
    - run the client program with both systems running the server
    - run the client program with only one system running the server (which isn't localhost)
    However, the corresponding portion of J2EE 1.4 tutorial only specifies running the client with App server running on both systems...... does this mean that we cannot run a standalone client program with no server on localhost in case of the 1.4 server?
    Also, most of the tutorials on JMS I have seen so far only explain the scenario with both the client and the server on a single machine. Is this how average JMS applications work?? What I mean to ask is, in a typical scenario where does a JMS client run....?? at the server, or at the client (which may or may not be running a server at localhost).
    Thanks for your time.

    The functionality has not changed in J2EE 1.4 outside of reving to JMS 1.1

  • How to use standalone java client with an enterprise bean in J2EE 1.4

    Hi All,
    I am have deployed a stateless session bean in Sun's J2EE 1.4 Application Server. i am trying to call the bean using a standalone java client. but the client cannot access the bean.
    The error coming is:
    Jan 21, 2004 7:48:27 PM com.sun.corba.ee.impl.legacy.connection.SocketFactoryCo
    nectionImpl <init>
    WARNING: ORBUTIL.connectFailure
    org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
    at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(
    RBUtilSystemException.java:1739)
    at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(
    RBUtilSystemException.java:1757)
    at com.sun.corba.ee.impl.legacy.connection.SocketFactoryConnectionImpl.
    init>(SocketFactoryConnectionImpl.java:74)
    at com.sun.corba.ee.impl.legacy.connection.SocketFactoryContactInfoImpl
    createConnection(SocketFactoryContactInfoImpl.java:88)
    at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.begi
    Request(CorbaClientRequestDispatcherImpl.java:146)
    at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(Corba
    lientDelegateImpl.java:121)
    at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaCli
    ntDelegateImpl.java:212)
    at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:112)
    at org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.jav
    :69)
    at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.ja
    a:58)
    at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:12
    at javax.naming.InitialContext.lookup(InitialContext.java:347)
    at StatelessSessionClient.main(StatelessSessionClient.java:17)
    Caused by: java.lang.RuntimeException: java.net.ConnectException: Connection re
    used: connect
    at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSoc
    etFactory.java:390)
    at com.sun.corba.ee.impl.legacy.connection.SocketFactoryConnectionImpl.
    init>(SocketFactoryConnectionImpl.java:58)
    ... 10 more
    Caused by: java.net.ConnectException: Connection refused: connect
    at sun.nio.ch.Net.connect(Native Method)
    at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:457)
    at java.nio.channels.SocketChannel.open(SocketChannel.java:146)
    at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSoc
    etFactory.java:381)
    ... 11 more
    javax.naming.CommunicationException: Can't find SerialContextProvider
    at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.ja
    a:66)
    at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:12
    at javax.naming.InitialContext.lookup(InitialContext.java:347)
    at StatelessSessionClient.main(StatelessSessionClient.java:17)
    Caused by: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed
    No
    at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(
    RBUtilSystemException.java:1739)
    at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(
    RBUtilSystemException.java:1757)
    at com.sun.corba.ee.impl.legacy.connection.SocketFactoryConnectionImpl.
    init>(SocketFactoryConnectionImpl.java:74)
    at com.sun.corba.ee.impl.legacy.connection.SocketFactoryContactInfoImpl
    createConnection(SocketFactoryContactInfoImpl.java:88)
    at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.begi
    Request(CorbaClientRequestDispatcherImpl.java:146)
    at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(Corba
    lientDelegateImpl.java:121)
    at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaCli
    ntDelegateImpl.java:212)
    at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:112)
    at org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.jav
    :69)
    at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.ja
    a:58)
    ... 3 more
    Caused by: java.lang.RuntimeException: java.net.ConnectException: Connection re
    used: connect
    at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSoc
    etFactory.java:390)
    at com.sun.corba.ee.impl.legacy.connection.SocketFactoryConnectionImpl.
    init>(SocketFactoryConnectionImpl.java:58)
    ... 10 more
    Caused by: java.net.ConnectException: Connection refused: connect
    at sun.nio.ch.Net.connect(Native Method)
    at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:457)
    at java.nio.channels.SocketChannel.open(SocketChannel.java:146)
    at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSoc
    etFactory.java:381)
    ... 11 more
    My java client uses the following code to access the bean:
    Hashtable props = new Hashtable();
    String URL="iiop://localhost:3700";
    props.put("java.naming.factory.initial","com.sun.jndi.cosnaming.CNCtxFactory");
    props.put("java.naming.provider.url", URL) ;
    InitialContext ctx = new InitialContext();
    Object ref = ctx.lookup("ejb/StatelessSessionHome");
    StatelessSessionHome home = (StatelessSessionHome)PortableRemoteObject.narrow(ref,StatelessSessionHome.class);
    StatelessSessionRemote statelessSession = home.create();
    plz help me to locate the error.
    Regards,
    Mohit

    Hi Amol,
    thanks for your suggestion.
    i have deployed the converter application in J2EE1.4 tutorial in Sun AppServer J2EE1.4. the deployment process works smoothly. but accessing the deployed converter bean using standalone client as given in the tutorial gives the following error.
    Caught an unexpected exception!
    javax.naming.NoInitialContextException: Need to specify class name in environmen
    t or system property, or as an applet parameter, or in an application resource f
    ile: java.naming.factory.initial
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
    40)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243
    at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.jav
    a:280)
    at javax.naming.InitialContext.lookup(InitialContext.java:347)
    at ConverterClient.main(ConverterClient.java:14)
    I have set the InitialHost and InitialPort as suggested by you in the client code. the client gets successfully compiled but gives error when executed.
    The client code is:
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.rmi.PortableRemoteObject;
    import java.math.BigDecimal;
    public class ConverterClient {
    public static void main(String[] args) {
    System.setProperty("org.omg.CORBA.ORBInitialHost","localhost");
    System.setProperty("org.omg.CORBA.ORBInitialPort","3700");          
    try {
    Context initial = new InitialContext();
    Object objref = initial.lookup
    ("java:comp/env/ejb/SimpleConverter");
    ConverterHome home =
    (ConverterHome)PortableRemoteObject.narrow(objref,
    ConverterHome.class);
    Converter currencyConverter = home.create();
    BigDecimal param = new BigDecimal ("100.00");
    BigDecimal amount =
    currencyConverter.dollarToYen(param);
    System.out.println(amount);
    amount = currencyConverter.yenToEuro(param);
    System.out.println(amount);
    System.exit(0);
    } catch (Exception ex) {
    System.err.println("Caught an unexpected exception!");
    ex.printStackTrace();
    Please suggest so that i can run the standalone client successfully.
    Regards,
    Mohit Kapoor

  • Stub j2ee.jar to jms-client.jar?

    I'd like to be able to run a JMS client w/ only those j2ee.jar classes relevant to a JMS client. The j2ee.jar file is about 8 MB and contains everything under the sun. It would be nice to have a JMS client jar file under 500 KB that contains only those classes relevant to a JMS client.
    Has anyone tried to create a jms-client.jar from the j2ee.jar that contains only the necessary classes to run a JMS client?
    thanks

    I was able to create a 1.1 MB jar file that can run my JMS client.
    First I ran my JMSClient with the -verbose:gc option against the j2ee.jar. With a simple java app I parsed the loaded classes list, copied all these classes to a temp dir and then created the jar file.

  • How to configure for remote JMS client?

    I have my own Java JMS test program for performance measurements.
              I am using the JNDI and JMS provider functionality of the WebLogic 9.1 app-server but my test program is just pure JMS 1.02 sender/receiver clients - ie it is NOT part of, or deployed as a J2EE application.
              SINGLE MACHINE TEST
              ===================
              In a single machine environment I was able to
              - configure a JMSServer
              - configure a JMSSystemModule
              - configure resources for ConnectionFactories and Queue and Topics
              I then made what I believe to be a 'standalone' application module copied from some mysystemmodule-jms.xml and with that I somehow worked out how to deploy it using the weblogic.Deployer tool.
              The deployment apparently set up the JNDI and my JMS client could gain access to the administered objects and do what it does.
              Everything works.
              TWO MACHINE TEST
              ================
              I now have a second machine.
              I want to put my JMS sender client on this new machine and I want the JMS server and JMS receiver client to be unchanged from the SINGLE MACHINE TEST.
              But I really don't know quite how to proceed from here...
              Do I need to install the WebLogic app-server on the sender machine or is the weblogic.jar all I need?
              What is necessary configuration for JNDI access on the sender machine?
              Can I in fact use my original SINGLE MACHINE server unchanged as I am hoping?
              I don't think I want a "thin" client because I read that performance is impacted (and these are performance tests)
              Remember this is NOT a J2EE application. There is no MDB; no client-container; no descriptors etc. Maybe that makes it more complicated - I don't know.
              Sorry for such basic questions but if somebody can just point me to an appropriate example or tutorial it could save me days...
              Thankyou.

    Hi,
              My problem is on similar lines. I have an applet based UI working on RMI/t3 protocol.
              I am using weblogic 9.2 as my app server.
              When my applet is executed on JRE 1.5x it works fine.
              But when I use JRE1.4x it gives the following exception
              java.lang.NoClassDefFoundError: javax/management/InvalidAttributeValueException
              at weblogic.rmi.internal.Stub.<clinit>(Stub.java:21)
              at java.lang.Class.forName0(Native Method)
              at java.lang.Class.forName(Class.java:141)
              at weblogic.rmi.internal.StubInfo.class$(StubInfo.java:34)
              at weblogic.rmi.internal.StubInfo.<clinit>(StubInfo.java:34)
              at java.lang.Class.forName0(Native Method)
              I have analyzed the reason for this.
              the class javax/management/InvalidAttributeValueException was included in java 1.5 and above. So JRE 1.4 does not have it.
              In previous versions of weblogic this class was a part of their 'weblogic.jar' file and in weblogic 9.2 it is not a part of weblogic.jar file so when I am using JRE1.4 and weblogic 9.2 then it obviously does not find this class hence the above exception.
              I tried to put this all together and made custom made client jar file incliding the necessary classes. I was able to get throght this exception only land up in following exception.
              java.lang.VerifyError: class weblogic.utils.classloaders.GenericClassLoader overrides final method .
                   at java.lang.ClassLoader.defineClass0(Native Method)
                   at java.lang.ClassLoader.defineClass(Unknown Source)
                   at java.security.SecureClassLoader.defineClass(Unknown Source)
                   at sun.applet.AppletClassLoader.findClass(Unknown Source)
                   at java.lang.ClassLoader.loadClass(Unknown Source)
                   at sun.applet.AppletClassLoader.loadClass(Unknown Source)
                   at java.lang.ClassLoader.loadClass(Unknown Source)
                   at java.lang.ClassLoader.loadClassInternal(Unknown Source)
                   at weblogic.jndi.WLInitialContextFactoryDelegate.<clinit>(WLInitialContextFactoryDelegate.java:204)
                   at weblogic.jndi.spi.EnvironmentManager$DefaultFactoryMaker.<clinit>(EnvironmentManager.java:26)
                   at weblogic.jndi.spi.EnvironmentManager.getInstance(EnvironmentManager.java:48)
                   at weblogic.jndi.Environment.getContext(Environment.java:307)
                   at weblogic.jndi.Environment.getContext(Environment.java:277)
                   at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
                   at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
                   at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
                   at javax.naming.InitialContext.init(Unknown Source)
                   at javax.naming.InitialContext.<init>(Unknown Source)
              I really need to support clients using Jre 1.4 and Jre 1.5
              I will really appreciate any help on this one.
              Please advise.
              Thank you all.

  • J2EE 1.4 beta 2, W2K and Petstore hopeless

    Hello
    I can deploy the petstore application in J2EE 1.4 beta 2. It works, but only once. After a manual restart of the app server, the I get status 404.
    I recognized a message in the deploy process.
    reconfig:
         [echo] Reconfiguring server server
    [sun-appserv-admin] Executing: reconfig port 4848 host ursus --password xx -user admin server
    [sun-appserv-admin[ Unable to read system environment. No system environment will be used
    Perhaps someone has an idea what this means.
    It is a long log available with exceptions stacks.
    Starting J2EETM 1.4 Application Server Beta 2 ...
    <[INFO][j2eesdk1.4_beta2][][][10][javax.enterprise.system.core][26.Juli.2003 18:50:56:317 CEST][CORE5076: Using [Java HotSpot(TM) Client VM, Version 1.4.1_02] from [Sun Microsystems Inc.]]>
    <[INFO][j2eesdk1.4_beta2][][][10][javax.enterprise.system.tools.admin][26.Juli.2003 18:51:02:146 CEST][ADM0020:Following is the information about the JMX MBeanServer used:]>
    <[INFO][j2eesdk1.4_beta2][][][10][javax.enterprise.system.tools.admin][26.Juli.2003 18:51:02:176 CEST][ADM0021:MBeanServer Implementation Name:[JMX]]>
    <[INFO][j2eesdk1.4_beta2][][][10][javax.enterprise.system.tools.admin][26.Juli.2003 18:51:02:176 CEST][ADM0022:MBeanServer Implementation Vendor:[Sun Microsystems]]>
    <[INFO][j2eesdk1.4_beta2][][][10][javax.enterprise.system.tools.admin][26.Juli.2003 18:51:02:176 CEST][ADM023:JMX Implementation Version:[1.2_r08]]>
    <[INFO][j2eesdk1.4_beta2][][][10][javax.enterprise.system.tools.admin][26.Juli.2003 18:51:02:176 CEST][ADM024:MBeanServer ID:[ursus_1059238261795]]>
    <[INFO][j2eesdk1.4_beta2][][][10][javax.enterprise.system.tools.admin][26.Juli.2003 18:51:02:176 CEST][ADM025:MBeanServer Implementation Classname:[com.sun.jmx.mbeanserver.JmxMBeanServer]]>
    <[INFO][j2eesdk1.4_beta2][][][10][javax.enterprise.system.tools.admin][26.Juli.2003 18:51:02:677 CEST][ADM0002:System MBean initialized:[ias:type=controller]]>
    <[INFO][j2eesdk1.4_beta2][][][10][javax.enterprise.system.tools.admin][26.Juli.2003 18:51:02:707 CEST][ADM0002:System MBean initialized:[ias:type=configurator]]>
    <[INFO][j2eesdk1.4_beta2][][][10][javax.enterprise.system.tools.admin][26.Juli.2003 18:51:02:737 CEST][ADM0001:MBeanServer initialized successfully]>
    <[INFO][j2eesdk1.4_beta2][][][10][javax.enterprise.system.tools.admin][26.Juli.2003 18:51:02:787 CEST][ADM0005:Timestamp files for configuration created for:[server]]>
    <[INFO][j2eesdk1.4_beta2][][][10][javax.enterprise.system.tools.admin][26.Juli.2003 18:51:02:797 CEST][ADM0102: Starting a thread for tracking manual changes]>
    <[INFO][j2eesdk1.4_beta2][][][10][javax.enterprise.resource.jms][26.Juli.2003 18:51:22:205 CEST][JMS5023: JMS service successfully started. Instance Name = domain1_server, Home = [D:/Programme/Sun/j2eesdk1.4_beta2/imq/bin].]>
    <[INFO][j2eesdk1.4_beta2][][][10][javax.enterprise.system.core][26.Juli.2003 18:51:23:887 CEST][S1AS AVK Instrumentation disabled]>
    <[INFO][j2eesdk1.4_beta2][][][10][javax.enterprise.system.core.security][26.Juli.2003 18:51:23:907 CEST][SEC1143: Loading policy provider com.sun.enterprise.security.provider.util.PolicyWrapper.]>
    <[INFO][j2eesdk1.4_beta2][][][10][javax.enterprise.system.core.transaction][26.Juli.2003 18:51:26:281 CEST][JTS5014: Recoverable JTS instance, serverId = [100]]>
    <[INFO][j2eesdk1.4_beta2][][][10][javax.enterprise.resource.resourceadapter][26.Juli.2003 18:51:40:942 CEST][RAR5060: Install JDBC Datasources ...]>
    <[INFO][j2eesdk1.4_beta2][][][10][javax.enterprise.system.core][26.Juli.2003 18:51:47:301 CEST][Satisfying Optional Packages dependencies...]>
    <[WARNUNG][j2eesdk1.4_beta2][][][10][javax.enterprise.system.tools.admin][26.Juli.2003 18:51:48:533 CEST][ADM0016:Unable to determine java home. This suggests that you are using a version of J2EE plugin incompatible with administration server.]>
    <[INFO][j2eesdk1.4_beta2][][][10][javax.enterprise.system.tools.admin][26.Juli.2003 18:51:48:923 CEST][[AutoDeploy] Enabling AutoDeployment service at :1059238308923]>
    <[INFO][j2eesdk1.4_beta2][][][10][javax.enterprise.system.core][26.Juli.2003 18:51:48:953 CEST][CORE5100:Loading system apps]>
    <[SCHWERWIEGEND][j2eesdk1.4_beta2][][][10][javax.enterprise.system.tools.deployment][26.Juli.2003 18:51:51:527 CEST][XML Error line : 39 The content of element type "sun-web-app" must match "(context-root?,security-role-mapping*,servlet*,session-config?,ejb-ref*,resource-ref*,resource-env-ref*,service-ref*,cache?,class-loader?,jsp-config?,locale-charset-info?,property*,message-destination*,webservice-description*)".]>
    <[INFO][j2eesdk1.4_beta2][][][10][javax.enterprise.system.core][26.Juli.2003 18:51:51:978 CEST][ApplicationLoader com.sun.enterprise.server.TomcatApplicationLoader@1a9b034]>
    org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces.
         at org.apache.xerces.dom.CoreDocumentImpl.checkDOMNSErr(CoreDocumentImpl.java:2142)
         at org.apache.xerces.dom.AttrNSImpl.setName(AttrNSImpl.java:149)
         at org.apache.xerces.dom.AttrNSImpl.<init>(AttrNSImpl.java:110)
         at org.apache.xerces.dom.CoreDocumentImpl.createAttributeNS(CoreDocumentImpl.java:1791)
         at org.apache.xerces.dom.ElementImpl.setAttributeNS(ElementImpl.java:660)
         at com.sun.enterprise.deployment.node.DeploymentDescriptorNode.setAttribute(DeploymentDescriptorNode.java:542)
         at com.sun.enterprise.deployment.node.LocalizedNode.writeLocalizedMap(LocalizedNode.java:77)
         at com.sun.enterprise.deployment.node.DisplayableComponentNode.writeDisplayableComponentInfo(DisplayableComponentNode.java:56)
         at com.sun.enterprise.deployment.node.BundleNode.writeDescriptor(BundleNode.java:104)
         at com.sun.enterprise.deployment.node.ApplicationNode.writeDescriptor(ApplicationNode.java:132)
         at com.sun.enterprise.deployment.node.J2EEDocumentBuilder.getDocument(J2EEDocumentBuilder.java:77)
         at com.sun.enterprise.deployment.node.J2EEDocumentBuilder.write(J2EEDocumentBuilder.java:120)
         at com.sun.enterprise.deployment.node.J2EEDocumentBuilder.descriptorToString(J2EEDocumentBuilder.java:153)
         at com.sun.enterprise.server.MgmtMBeansManager.createAppMBean(MgmtMBeansManager.java:158)
         at com.sun.enterprise.server.ApplicationLoader.createRootMBean(ApplicationLoader.java:180)
         at com.sun.enterprise.server.AbstractManager.load(AbstractManager.java:152)
         at com.sun.enterprise.server.ApplicationLifecycle.onStartup(ApplicationLifecycle.java:186)
         at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:284)
         at com.sun.enterprise.server.PEMain.run(PEMain.java:176)
         at com.sun.enterprise.server.PEMain.main(PEMain.java:131)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
    java.lang.IllegalArgumentException: Der Eingabeknoten darf f�r ein DOMSource f�r newTemplates nicht Null sein!
         at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:346)
         at com.sun.enterprise.deployment.node.J2EEDocumentBuilder.write(J2EEDocumentBuilder.java:125)
         at com.sun.enterprise.deployment.node.J2EEDocumentBuilder.descriptorToString(J2EEDocumentBuilder.java:153)
         at com.sun.enterprise.server.MgmtMBeansManager.createAppMBean(MgmtMBeansManager.java:158)
         at com.sun.enterprise.server.ApplicationLoader.createRootMBean(ApplicationLoader.java:180)
         at com.sun.enterprise.server.AbstractManager.load(AbstractManager.java:152)
         at com.sun.enterprise.server.ApplicationLifecycle.onStartup(ApplicationLifecycle.java:186)
         at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:284)
         at com.sun.enterprise.server.PEMain.run(PEMain.java:176)
         at com.sun.enterprise.server.PEMain.main(PEMain.java:131)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
    <[WARNUNG][j2eesdk1.4_beta2][][][10][javax.enterprise.system.core][26.Juli.2003 18:51:52:568 CEST][CORE5016: Unexpected error occurred while loading applications
    javax.management.MBeanException
         at com.sun.enterprise.server.MgmtMBeansManager.createAppMBean(MgmtMBeansManager.java:165)
         at com.sun.enterprise.server.ApplicationLoader.createRootMBean(ApplicationLoader.java:180)
         at com.sun.enterprise.server.AbstractManager.load(AbstractManager.java:152)
         at com.sun.enterprise.server.ApplicationLifecycle.onStartup(ApplicationLifecycle.java:186)
         at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:284)
         at com.sun.enterprise.server.PEMain.run(PEMain.java:176)
         at com.sun.enterprise.server.PEMain.main(PEMain.java:131)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
    Caused by: java.lang.IllegalArgumentException: Der Eingabeknoten darf f�r ein DOMSource f�r newTemplates nicht Null sein!
         at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:346)
         at com.sun.enterprise.deployment.node.J2EEDocumentBuilder.write(J2EEDocumentBuilder.java:125)
         at com.sun.enterprise.deployment.node.J2EEDocumentBuilder.descriptorToString(J2EEDocumentBuilder.java:153)
         at com.sun.enterprise.server.MgmtMBeansManager.createAppMBean(MgmtMBeansManager.java:158)
         ... 11 more
    ]>
    <[INFO][j2eesdk1.4_beta2][][][10][javax.enterprise.system.core][26.Juli.2003 18:51:56:975 CEST][ApplicationLoader com.sun.enterprise.server.TomcatApplicationLoader@a8cd58]>
    org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces.
         at org.apache.xerces.dom.CoreDocumentImpl.checkDOMNSErr(CoreDocumentImpl.java:2142)
         at org.apache.xerces.dom.AttrNSImpl.setName(AttrNSImpl.java:149)
         at org.apache.xerces.dom.AttrNSImpl.<init>(AttrNSImpl.java:110)
         at org.apache.xerces.dom.CoreDocumentImpl.createAttributeNS(CoreDocumentImpl.java:1791)
         at org.apache.xerces.dom.ElementImpl.setAttributeNS(ElementImpl.java:660)
         at com.sun.enterprise.deployment.node.DeploymentDescriptorNode.setAttribute(DeploymentDescriptorNode.java:542)
         at com.sun.enterprise.deployment.node.LocalizedNode.writeLocalizedMap(LocalizedNode.java:77)
         at com.sun.enterprise.deployment.node.DisplayableComponentNode.writeDisplayableComponentInfo(DisplayableComponentNode.java:56)
         at com.sun.enterprise.deployment.node.BundleNode.writeDescriptor(BundleNode.java:104)
         at com.sun.enterprise.deployment.node.ApplicationNode.writeDescriptor(ApplicationNode.java:132)
         at com.sun.enterprise.deployment.node.J2EEDocumentBuilder.getDocument(J2EEDocumentBuilder.java:77)
         at com.sun.enterprise.deployment.node.J2EEDocumentBuilder.write(J2EEDocumentBuilder.java:120)
         at com.sun.enterprise.deployment.node.J2EEDocumentBuilder.descriptorToString(J2EEDocumentBuilder.java:153)
         at com.sun.enterprise.server.MgmtMBeansManager.createAppMBean(MgmtMBeansManager.java:158)
         at com.sun.enterprise.server.ApplicationLoader.createRootMBean(ApplicationLoader.java:180)
         at com.sun.enterprise.server.AbstractManager.load(AbstractManager.java:152)
         at com.sun.enterprise.server.ApplicationLifecycle.onStartup(ApplicationLifecycle.java:186)
         at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:284)
         at com.sun.enterprise.server.PEMain.run(PEMain.java:176)
         at com.sun.enterprise.server.PEMain.main(PEMain.java:131)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
    java.lang.IllegalArgumentException: Der Eingabeknoten darf f�r ein DOMSource f�r newTemplates nicht Null sein!
         at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:346)
         at com.sun.enterprise.deployment.node.J2EEDocumentBuilder.write(J2EEDocumentBuilder.java:125)
         at com.sun.enterprise.deployment.node.J2EEDocumentBuilder.descriptorToString(J2EEDocumentBuilder.java:153)
         at com.sun.enterprise.server.MgmtMBeansManager.createAppMBean(MgmtMBeansManager.java:158)
         at com.sun.enterprise.server.ApplicationLoader.createRootMBean(ApplicationLoader.java:180)
         at com.sun.enterprise.server.AbstractManager.load(AbstractManager.java:152)
         at com.sun.enterprise.server.ApplicationLifecycle.onStartup(ApplicationLifecycle.java:186)
         at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:284)
         at com.sun.enterprise.server.PEMain.run(PEMain.java:176)
         at com.sun.enterprise.server.PEMain.main(PEMain.java:131)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
    <[WARNUNG][j2eesdk1.4_beta2][][][10][javax.enterprise.system.core][26.Juli.2003 18:51:56:995 CEST][CORE5016: Unexpected error occurred while loading applications
    javax.management.MBeanException
         at com.sun.enterprise.server.MgmtMBeansManager.createAppMBean(MgmtMBeansManager.java:165)
         at com.sun.enterprise.server.ApplicationLoader.createRootMBean(ApplicationLoader.java:180)
         at com.sun.enterprise.server.AbstractManager.load(AbstractManager.java:152)
         at com.sun.enterprise.server.ApplicationLifecycle.onStartup(ApplicationLifecycle.java:186)
         at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:284)
         at com.sun.enterprise.server.PEMain.run(PEMain.java:176)
         at com.sun.enterprise.server.PEMain.main(PEMain.java:131)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
    Caused by: java.lang.IllegalArgumentException: Der Eingabeknoten darf f�r ein DOMSource f�r newTemplates nicht Null sein!
         at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:346)
         at com.sun.enterprise.deployment.node.J2EEDocumentBuilder.write(J2EEDocumentBuilder.java:125)
         at com.sun.enterprise.deployment.node.J2EEDocumentBuilder.descriptorToString(J2EEDocumentBuilder.java:153)
         at com.sun.enterprise.server.MgmtMBeansManager.createAppMBean(MgmtMBeansManager.java:158)
         ... 11 more
    ]>
    <[SCHWERWIEGEND][j2eesdk1.4_beta2][][][10][javax.enterprise.system.core.classloading][26.Juli.2003 18:51:56:995 CEST][LDR5101: Could not get classpath
    java.io.FileNotFoundException: D:\Programme\Sun\j2eesdk1.4_beta2\domains\domain1\server\applications\j2ee-apps\petstore_1
         at com.sun.enterprise.deployment.archivist.FileArchive.open(FileArchive.java:38)
         at com.sun.enterprise.loader.EJBClassPathUtils.getApplicationClassPath(EJBClassPathUtils.java:242)
         at com.sun.enterprise.loader.EJBClassPathUtils.getEjbClasspathList(EJBClassPathUtils.java:114)
         at com.sun.enterprise.loader.EJBClassPathUtils.getEjbClasspath(EJBClassPathUtils.java:87)
         at com.sun.enterprise.server.ApplicationLoader.<init>(ApplicationLoader.java:63)
         at com.sun.enterprise.server.TomcatApplicationLoader.<init>(TomcatApplicationLoader.java:57)
         at com.sun.enterprise.server.pluggable.TomcatApplicationLoaderFactory.createApplicationLoader(TomcatApplicationLoaderFactory.java:32)
         at com.sun.enterprise.server.ApplicationManager.getLoader(ApplicationManager.java:123)
         at com.sun.enterprise.server.AbstractManager.load(AbstractManager.java:149)
         at com.sun.enterprise.server.ApplicationLifecycle.onStartup(ApplicationLifecycle.java:186)
         at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:284)
         at com.sun.enterprise.server.PEMain.run(PEMain.java:176)
         at com.sun.enterprise.server.PEMain.main(PEMain.java:131)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
    ]>
    <[SCHWERWIEGEND][j2eesdk1.4_beta2][][][10][javax.enterprise.system.core.classloading][26.Juli.2003 18:51:57:035 CEST][LDR5006: Failed to load deployment descriptor
    com.sun.enterprise.config.ConfigException: Failed to load deployment descriptor for: petstore
    cause: D:\Programme\Sun\j2eesdk1.4_beta2\domains\domain1\server\applications\j2ee-apps\petstore_1
         at com.sun.enterprise.instance.AppsManager.getAppDescriptor(AppsManager.java:270)
         at com.sun.enterprise.instance.AppsManager.getAppDescriptor(AppsManager.java:230)
         at com.sun.enterprise.server.ApplicationLoader.<init>(ApplicationLoader.java:69)
         at com.sun.enterprise.server.TomcatApplicationLoader.<init>(TomcatApplicationLoader.java:57)
         at com.sun.enterprise.server.pluggable.TomcatApplicationLoaderFactory.createApplicationLoader(TomcatApplicationLoaderFactory.java:32)
         at com.sun.enterprise.server.ApplicationManager.getLoader(ApplicationManager.java:123)
         at com.sun.enterprise.server.AbstractManager.load(AbstractManager.java:149)
         at com.sun.enterprise.server.ApplicationLifecycle.onStartup(ApplicationLifecycle.java:186)
         at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:284)
         at com.sun.enterprise.server.PEMain.run(PEMain.java:176)
         at com.sun.enterprise.server.PEMain.main(PEMain.java:131)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
    Caused by: java.io.FileNotFoundException: D:\Programme\Sun\j2eesdk1.4_beta2\domains\domain1\server\applications\j2ee-apps\petstore_1
         at com.sun.enterprise.deployment.archivist.FileArchive.open(FileArchive.java:38)
         at com.sun.enterprise.instance.AppsManager.getAppDescriptor(AppsManager.java:253)
         ... 15 more
    ]>
    <[INFO][j2eesdk1.4_beta2][][][10][javax.enterprise.system.core][26.Juli.2003 18:51:57:045 CEST][ApplicationLoader com.sun.enterprise.server.TomcatApplicationLoader@196649c]>
    <[WARNUNG][j2eesdk1.4_beta2][][][10][javax.enterprise.system.core][26.Juli.2003 18:51:57:045 CEST][CORE5016: Unexpected error occurred while loading applications
    javax.management.MBeanException
         at com.sun.enterprise.server.MgmtMBeansManager.createAppMBean(MgmtMBeansManager.java:165)
         at com.sun.enterprise.server.ApplicationLoader.createRootMBean(ApplicationLoader.java:180)
         at com.sun.enterprise.server.AbstractManager.load(AbstractManager.java:152)
         at com.sun.enterprise.server.ApplicationLifecycle.onStartup(ApplicationLifecycle.java:186)
         at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:284)
         at com.sun.enterprise.server.PEMain.run(PEMain.java:176)
         at com.sun.enterprise.server.PEMain.main(PEMain.java:131)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
    Caused by: java.lang.NullPointerException
         at com.sun.enterprise.server.MgmtMBeansManager.createAppMBean(MgmtMBeansManager.java:159)
         ... 11 more
    ]>
    <[SCHWERWIEGEND][j2eesdk1.4_beta2][][][10][javax.enterprise.system.core.classloading][26.Juli.2003 18:51:57:045 CEST][LDR5101: Could not get classpath
    java.io.FileNotFoundException: D:\Programme\Sun\j2eesdk1.4_beta2\domains\domain1\server\applications\j2ee-apps\petstoreadmin_1
         at com.sun.enterprise.deployment.archivist.FileArchive.open(FileArchive.java:38)
         at com.sun.enterprise.loader.EJBClassPathUtils.getApplicationClassPath(EJBClassPathUtils.java:242)
         at com.sun.enterprise.loader.EJBClassPathUtils.getEjbClasspathList(EJBClassPathUtils.java:114)
         at com.sun.enterprise.loader.EJBClassPathUtils.getEjbClasspath(EJBClassPathUtils.java:87)
         at com.sun.enterprise.server.ApplicationLoader.<init>(ApplicationLoader.java:63)
         at com.sun.enterprise.server.TomcatApplicationLoader.<init>(TomcatApplicationLoader.java:57)
         at com.sun.enterprise.server.pluggable.TomcatApplicationLoaderFactory.createApplicationLoader(TomcatApplicationLoaderFactory.java:32)
         at com.sun.enterprise.server.ApplicationManager.getLoader(ApplicationManager.java:123)
         at com.sun.enterprise.server.AbstractManager.load(AbstractManager.java:149)
         at com.sun.enterprise.server.ApplicationLifecycle.onStartup(ApplicationLifecycle.java:186)
         at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:284)
         at com.sun.enterprise.server.PEMain.run(PEMain.java:176)
         at com.sun.enterprise.server.PEMain.main(PEMain.java:131)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
    ]>
    <[SCHWERWIEGEND][j2eesdk1.4_beta2][][][10][javax.enterprise.system.core.classloading][26.Juli.2003 18:51:57:065 CEST][LDR5006: Failed to load deployment descriptor
    com.sun.enterprise.config.ConfigException: Failed to load deployment descriptor for: petstoreadmin
    cause: D:\Programme\Sun\j2eesdk1.4_beta2\domains\domain1\server\applications\j2ee-apps\petstoreadmin_1
         at com.sun.enterprise.instance.AppsManager.getAppDescriptor(AppsManager.java:270)
         at com.sun.enterprise.instance.AppsManager.getAppDescriptor(AppsManager.java:230)
         at com.sun.enterprise.server.ApplicationLoader.<init>(ApplicationLoader.java:69)
         at com.sun.enterprise.server.TomcatApplicationLoader.<init>(TomcatApplicationLoader.java:57)
         at com.sun.enterprise.server.pluggable.TomcatApplicationLoaderFactory.createApplicationLoader(TomcatApplicationLoaderFactory.java:32)
         at com.sun.enterprise.server.ApplicationManager.getLoader(ApplicationManager.java:123)
         at com.sun.enterprise.server.AbstractManager.load(AbstractManager.java:149)
         at com.sun.enterprise.server.ApplicationLifecycle.onStartup(ApplicationLifecycle.java:186)
         at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:284)
         at com.sun.enterprise.server.PEMain.run(PEMain.java:176)
         at com.sun.enterprise.server.PEMain.main(PEMain.java:131)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
    Caused by: java.io.FileNotFoundException: D:\Programme\Sun\j2eesdk1.4_beta2\domains\domain1\server\applications\j2ee-apps\petstoreadmin_1
         at com.sun.enterprise.deployment.archivist.FileArchive.open(FileArchive.java:38)
         at com.sun.enterprise.instance.AppsManager.getAppDescriptor(AppsManager.java:253)
         ... 15 more
    ]>
    <[INFO][j2eesdk1.4_beta2][][][10][javax.enterprise.system.core][26.Juli.2003 18:51:57:105 CEST][ApplicationLoader com.sun.enterprise.server.TomcatApplicationLoader@a75004]>
    <[WARNUNG][j2eesdk1.4_beta2][][][10][javax.enterprise.system.core][26.Juli.2003 18:51:57:105 CEST][CORE5016: Unexpected error occurred while loading applications
    javax.management.MBeanException
         at com.sun.enterprise.server.MgmtMBeansManager.createAppMBean(MgmtMBeansManager.java:165)
         at com.sun.enterprise.server.ApplicationLoader.createRootMBean(ApplicationLoader.java:180)
         at com.sun.enterprise.server.AbstractManager.load(AbstractManager.java:152)
         at com.sun.enterprise.server.ApplicationLifecycle.onStartup(ApplicationLifecycle.java:186)
         at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:284)
         at com.sun.enterprise.server.PEMain.run(PEMain.java:176)
         at com.sun.enterprise.server.PEMain.main(PEMain.java:131)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
    Caused by: java.lang.NullPointerException
         at com.sun.enterprise.server.MgmtMBeansManager.createAppMBean(MgmtMBeansManager.java:159)
         ... 11 more
    ]>
    <[SCHWERWIEGEND][j2eesdk1.4_beta2][][][10][javax.enterprise.system.core.classloading][26.Juli.2003 18:51:57:115 CEST][LDR5101: Could not get classpath
    java.io.FileNotFoundException: D:\Programme\Sun\j2eesdk1.4_beta2\domains\domain1\server\applications\j2ee-apps\supplier_1
         at com.sun.enterprise.deployment.archivist.FileArchive.open(FileArchive.java:38)
         at com.sun.enterprise.loader.EJBClassPathUtils.getApplicationClassPath(EJBClassPathUtils.java:242)
         at com.sun.enterprise.loader.EJBClassPathUtils.getEjbClasspathList(EJBClassPathUtils.java:114)
         at com.sun.enterprise.loader.EJBClassPathUtils.getEjbClasspath(EJBClassPathUtils.java:87)
         at com.sun.enterprise.server.ApplicationLoader.<init>(ApplicationLoader.java:63)
         at com.sun.enterprise.server.TomcatApplicationLoader.<init>(TomcatApplicationLoader.java:57)
         at com.sun.enterprise.server.pluggable.TomcatApplicationLoaderFactory.createApplicationLoader(TomcatApplicationLoaderFactory.java:32)
         at com.sun.enterprise.server.ApplicationManager.getLoader(ApplicationManager.java:123)
         at com.sun.enterprise.server.AbstractManager.load(AbstractManager.java:149)
         at com.sun.enterprise.server.ApplicationLifecycle.onStartup(ApplicationLifecycle.java:186)
         at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:284)
         at com.sun.enterprise.server.PEMain.run(PEMain.java:176)
         at com.sun.enterprise.server.PEMain.main(PEMain.java:131)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
    ]>
    <[SCHWERWIEGEND][j2eesdk1.4_beta2][][][10][javax.enterprise.system.core.classloading][26.Juli.2003 18:51:57:115 CEST][LDR5006: Failed to load deployment descriptor
    com.sun.enterprise.config.ConfigException: Failed to load deployment descriptor for: supplier
    cause: D:\Programme\Sun\j2eesdk1.4_beta2\domains\domain1\server\applications\j2ee-apps\supplier_1
         at com.sun.enterprise.instance.AppsManager.getAppDescriptor(AppsManager.java:270)
         at com.sun.enterprise.instance.AppsManager.getAppDescriptor(AppsManager.java:230)
         at com.sun.enterprise.server.ApplicationLoader.<init>(ApplicationLoader.java:69)
         at com.sun.enterprise.server.TomcatApplicationLoader.<init>(TomcatApplicationLoader.java:57)
         at com.sun.enterprise.server.pluggable.TomcatApplicationLoaderFactory.createApplicationLoader(TomcatApplicationLoaderFactory.java:32)
         at com.sun.enterprise.server.ApplicationManager.getLoader(ApplicationManager.java:123)
         at com.sun.enterprise.server.AbstractManager.load(AbstractManager.java:149)
         at com.sun.enterprise.server.ApplicationLifecycle.onStartup(ApplicationLifecycle.java:186)
         at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:284)
         at com.sun.enterprise.server.PEMain.run(PEMain.java:176)
         at com.sun.enterprise.server.PEMain.main(PEMain.java:131)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
    Caused by: java.io.FileNotFoundException: D:\Programme\Sun\j2eesdk1.4_beta2\domains\domain1\server\applications\j2ee-apps\supplier_1
         at com.sun.enterprise.deployment.archivist.FileArchive.open(FileArchive.java:38)
         at com.sun.enterprise.instance.AppsManager.getAppDescriptor(AppsManager.java:253)
         ... 15 more
    ]>
    <[INFO][j2eesdk1.4_beta2][][][10][javax.enterprise.system.core][26.Juli.2003 18:51:57:115 CEST][ApplicationLoader com.sun.enterprise.server.TomcatApplicationLoader@766b42]>
    <[WARNUNG][j2eesdk1.4_beta2][][][10][javax.enterprise.system.core][26.Juli.2003 18:51:57:115 CEST][CORE5016: Unexpected error occurred while loading applications
    javax.management.MBeanException
         at com.sun.enterprise.server.MgmtMBeansManager.createAppMBean(MgmtMBeansManager.java:165)
         at com.sun.enterprise.server.ApplicationLoader.createRootMBean(ApplicationLoader.java:180)
         at com.sun.enterprise.server.A                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        

    I have not tried out Your advice. But what has this to do with my problem?
    Is in the ant build process used US locale or what?
    I have also this deploytool not save problem. But I don't want to change the locale only for the app server.
    There must be other solutions. Personally it would interest me how someone can come to the locale setting.
    Thanks
    Urs

  • Smallest JMS Client footprint?

              Hi everyone,
              I would like to deploy a JMS client applet and avoid downloading the 38MB weblogic.jar
              file. The WebLogicThinClient whitepaper gives a few suggestions on how to reduce
              the size of the JAR file. After getting the first method to work (using utils.verboseTozip),
              I'm left with a JAR file containing 1058 class files and weighing in at a little
              over 5 Mb. Is this really the smallest set of files required to support JMS functionality?
              Thanks,
              Elias
              

    Hi Elias,
              I don't know the answer the to all your problems, hopefully someone else
              in the newsgroup can contribute here. More in-line.
              Tom
              [email protected] wrote:
              > Hi again,
              >
              > I've been experimenting with the URLClassLoader and you were right, the
              > JAR file produced using this method is much smaller (1Mb) than the one
              > produced with the verboseToZip utility (5Mb). Furthermore, I am now able
              > to run my JMS tests without seeing any exceptions.
              As a safety precaution: if you plan on disabling the URLClassLoader once
              you've got the classes, you may wish to consider including all "Exception"
              classes that occur in the same package as any other class you download.
              This is in case your tests don't cover all error conditions...
              > Unfortunately, there
              > are still a couple of vexing problems:
              >
              > Just after starting the URLClassLoader program the following message
              > appears.
              > "Unable to access Localizer, weblogic.i18n.L10nLogLocalizer"
              > Not one of the jar files in the server/lib directory contains this
              > class. There is a L10nLogLocalizer.properties file, which should be
              > located by the URLClassLoader but isn't...?
              I think you're correct. I'm not sure how to force the URLClassLoader
              to find such files. If you find out, please let me know.
              In this case, I think this file is only used for localizing client side log messages that
              get dumped to stdout, but there are very few such messages. If your app runs,
              I think you can safely ignore the "Unable to access..." message.
              >
              >
              > After setting up the JMS environment (connections, sessions, producers,
              > consumers, etc.), the test driver publishes some messages of different
              > types. The onMessage() method I implemented should print out "received X
              > message", where X is the message type. Unfortunately, I don't see this
              > message printed out at all and instead see "testSync TX = null" instead.
              > I have no idea what this means, but it appears that the onMessage()
              > method is not being invoked for some reason. Do you have any idea what
              > this indicates?
              No.
              > Am I somehow missing a class that I need?
              To narrow down the problem:
              Try with the full weblogic.jar in the applet.
              Try running as regular client with full weblogic.jar, then with your small.jar.
              > Has anyone
              > else ever seen this message print out when they were expecting something
              > else? Thanks again for any assistance, I feel quite close to a workable
              > solution! Please let the BEA developers working with JMS that the "thin
              > JMS client" JAR file will be well received.
              Just send cash directly to BEA's Liberty Corner, NJ site.
              >
              >
              > Elias
              >
              > Tom Barnes wrote:
              >
              > > The URLClassLoader method in the same white-paper will likely produce a smaller client than the
              > > verboseTozip method - perhaps at least half the size.
              > >
              > > The next release of WL (unofficially 7.1) will include the long-awaited pre-packaged thin JMS
              > > client. (Yes finally!) Really really. I think the beta is scheduled to be out before the
              > > end of the year (sorry I can't give out the planned dates - I don't know if they are public
              > > yet.)
              > >
              > > Currently, I think the smallest J2EE style applet client can be achieved by proxying JMS calls
              > > via an EJB, where calls to the EJB are made via the JVM's built-in IIOP client.
              

  • Jms from sun j2ee to bea weblogic

    Hy,
              is there a easy way to connect a JmsFactory from an j2ee sun server to a
              bea weblogic server?
              JMS API Tutorial shows an example for connecting two j2ee Server:
              j2eeadmin --addJmsFactory MyFactory queue -props
              url=corbaname:iiop:remoteserver:1050:#remoteserver
              Weblogic 7 seems to support iiop (on Port 7001?) but
              something is missing ... no connection could be made to send Messages
              from j2ee (sun) to weblogic server?
              Any hint?
              Best Regards,
              Holger
              

    Hi Holger,
              The WL JMS client does not support iiop in 7.0,
              although it does in 8.1 (beta soon). Instead use t3, a much
              faster protocol, or, if you need to tunnel, use http.
              Note that BEA has a comprehensive white-paper on integrating
              "foreign" JMS providers on dev2dev.bea.com:
              "Using Foreign JMS Providers With WebLogic Server"
              Tom
              Holger von Rhein wrote:
              > Hy,
              >
              > is there a easy way to connect a JmsFactory from an j2ee sun server to a
              > bea weblogic server?
              >
              > JMS API Tutorial shows an example for connecting two j2ee Server:
              >
              > j2eeadmin --addJmsFactory MyFactory queue -props
              > url=corbaname:iiop:remoteserver:1050:#remoteserver
              >
              > Weblogic 7 seems to support iiop (on Port 7001?) but
              > something is missing ... no connection could be made to send Messages
              > from j2ee (sun) to weblogic server?
              >
              > Any hint?
              >
              >
              > Best Regards,
              >
              > Holger
              >
              

  • JMS Client disconnects often randomly in Weblogic10.3 cluster setup

    Hi,
    It would be very helpful for us if someone can suggest the way to overcome the below jms issue.
    Our application recently migrated to Weblogic 10.3 from Weblogic8.1, It is a clustered set up with two managed servers each on different solaris machine.
    Client connects to jms using wljmsclient.jar and wlclient.jar with t3 protocol.
    When client starts jms connection, it is getting connected to server with no errors, however we often see that client jms connection disconnects in between,
    It sometimes calls onException() and some times we do not even see any error message in console log when it disconnects,
    When onException() is called, we can see below exception stack trace:
    ==========================
    JMS exception class = weblogic.messaging.dispatcher.DispatcherException: java.rmi.MarshalException: CORBA COMM_FAILURE 1398079697 No; nested exception is:      
         org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 209 completed: No
    weblogic.jms.common.JMSException: weblogic.messaging.dispatcher.DispatcherException: java.rmi.MarshalException: CORBA COMM_FAILURE 1398079697 No; nested exception is:      
         org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 209 completed: No
         at weblogic.jms.dispatcher.DispatcherAdapter.convertToJMSExceptionAndThrow(DispatcherAdapter.java:116)
         at weblogic.jms.dispatcher.DispatcherAdapter.dispatchSyncNoTran(DispatcherAdapter.java:61)
         at weblogic.jms.client.JMSSession.acknowledge(JMSSession.java:2191)
         at weblogic.jms.client.JMSSession.acknowledge(JMSSession.java:2120)
         at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4588)
         at weblogic.jms.client.JMSSession.execute(JMSSession.java:4233)
         at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3709)
    JMS exception class = java.rmi.MarshalException: CORBA COMM_FAILURE 1398079697 No; nested exception is:      
         org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 209 completed: No
    weblogic.jms.common.LostServerException: java.rmi.MarshalException: CORBA COMM_FAILURE 1398079697 No; nested exception is:      
         org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 209 completed: No
         at weblogic.jms.client.JMSConnection.dispatcherPeerGone(JMSConnection.java:1436)
         at weblogic.messaging.dispatcher.DispatcherWrapperState.run(DispatcherWrapperState.java:692)
         at weblogic.messaging.dispatcher.DispatcherWrapperState.timerExpired(DispatcherWrapperState.java:617)
         at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
    =======================
    When onException() is triggered, TopicConnection and TopicSession gets recreated in program, however jms is not getting reconnected once onException() is called. Some times jms session is lost in between with out any errors in log. We did not see this issue when our app used Weblogic8.1.
    We greatly appreciate if someone can help to resolve this issue.

    Hi,
    This is a common issue if you use wljmsclient.jar and wlclient.jar at client side. Many times we get "org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 209 completed: No" Please try using weblogic.jar at client end or even there is a better option to create the "*wlfullclient.jar*" using the jarBuilder utility provided as part of WebLogic.
    To create the "wlfullclient.jar" please refer to the following link:
    [http://download-llnw.oracle.com/docs/cd/E11035_01/wls100/client/jarbuilder.html#wp1077742|http://download-llnw.oracle.com/docs/cd/E11035_01/wls100/client/jarbuilder.html#wp1077742]
    Thanks
    Jay SenSharma
    http://jaysensharma.woardpress.com

  • How the JMS client detect if the JMS server is still running?

    I have a JMS server running on Weblogic and a JMS client running as a standalone application on my local machine. I ran into the problem that if the JMS server is down for a period of time and then get re-started, the JMS client will lose its connection to the server. Since JMS client is just passively listening to the topic it subscribes, it will have no information about the status of the JMS server. Therefore it will not be able to receive any new message if the JMS server is restarted.
    I wonder if there is a way I can have the JMS client automatically detect if the connection to the server is lost or reset. I tried to use a while loop in JMS client that does a JNDI loopup every minute to check if the JMS server is up. But if the WL server is down, the JMS client will just catch an exception and crash.

    Hi,
    You should use an exception listener that allows a client to be notified of a problem asynchronously. As your client only consumes messages, it would have no other way to learn that its connection has failed.
    Hence, you should implement the interface ExceptionListener (let says MyExceptionListener) and define your reconnection logic in the method onException(JMSException exception). MyExceptionListener has to be registered with your connection with the method:
    public void setExceptionListener(ExceptionListener listener) throws JMSException
    Hope it helps,
    Arnaud
    www.arjuna.com

  • JMS Client from scretch

    hi,
    i'm new to sun appserver.
    i need to connect to JMS from a standalone client.
    1. which jars do i need from appserver/lib?
    2. which values do i use in InitialContext():
    Hashtable ht = new Hashtable();
    ht.put(Context.INITIAL_CONTEXT_FACTORY, "???"));
    ht.put(Context.PROVIDER_URL, "???");
    InitialContext initialContext = new InitialContext(ht);
    ...

    Hi Soumya,
    Yes, you can send and receive message from JMS client via XI.
    create queue, queue manager at websphere system and use those values while configuring JMS adapter.
    You need queuename, queue manager name, system userid n pwd in which the above queues are created
    Hope you have deployed all the necessary jar files in SDM.
    Regards,
    Ravi.

  • Standalone proxy client, uknown source!

    Hello experts,
    I am working on a simple standalone java client to test a web service. When I run, I get following stack trace:
    at $Proxy18.salesOrderCreateOut(Unknown Source)
         at test.StandaloneClient.main(StandaloneClient.java:58)
    Caused by: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial
         at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
         at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
         at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source)
         at javax.naming.InitialContext.lookup(Unknown Source)Here is the code:
         public static void main(String[] args) {
              // TODO Auto-generated method stub
              try {
                   SalesOrderCreateOutService service = new SalesOrderCreateOutService();
                   SalesOrderCreateOut servicePort = service.getSalesOrderCreate_Out_Port();
                   javax.xml.ws.BindingProvider bp = (javax.xml.ws.BindingProvider) servicePort;
                   Map<String, Object> context = bp.getRequestContext();
    //               context.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, "<URL>.wsdl");
                   context.put(BindingProvider.USERNAME_PROPERTY, "USER");
                   context.put(BindingProvider.PASSWORD_PROPERTY, "PWD");
                   SalesOrderResponse response = null;
                   Project salesOrderCreateRequest = new Project();
                   Header header = new Header();
                   header.setTitle("EAST COAST SHEET METAL MOTOR WARRANTY");          
                   salesOrderCreateRequest.setHeader(header);
                   try {
                        response = servicePort.salesOrderCreateOut(salesOrderCreateRequest);
                   } catch (SalesOrderError_Exception e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                   TRETURN treturn = response.getTRETURN();
                   Iterator ls = treturn.getItem().iterator();
                   while(ls.hasNext()){
                        TRETURN.Item tempItem = (TRETURN.Item)ls.next();
                        System.out.println(tempItem.getMESSAGE());
                        break;
              } catch (MalformedURLException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    Exception is at the bold line.
    Any clues, how to fix this...

    Hi,
    Deployable versus Standalone Proxies
    SAP Web AS Java provides two types of Web service proxies:
    deployable proxy u2013 a Web service client that must be deployed on the J2EE Engine as an application.
    standalone proxy u2013 a Web service client that generates stubs and runs without the J2EE Engine. This proxy can be used only with the release for which it has been generated.
    Although both proxies have similar functions, there are some fundamental differences.
    For the standalone proxy, a stub must be generated and the names and class names of the transport bindings, protocols, and transports that are used must be provided. The drawbacks of this approach are that if a name of a component is changed or requires some modifications, the stub is no longer valid and the whole proxy needs to be regenerated.
    On the other hand, with the deployable proxy all information is either generated during deployment or is retrieved at runtime. Therefore, the deployable proxies are to a certain degree protected from runtime changes.
    For both types of proxies, ServiceInterface and ServiceImpl classes are generated. Their names are derived from the service name of the WSDL that is used to generate the particular proxy.
    For the deployable proxies, only the ServiceInterface is generated at the design time. The client assigns a JNDI name under which the ServiceImpl instace is bound at runtime. The JNDI name is relative to the java:comp/env/ context, which is the default for all J2EE components.
    // for Deployed WS Clients
    import javax.naming.InitialContext;
    InitialContext ctx = new InitialContext();
    FooServiceInterface fsi = (FooServiceInterface)ctx.lookup(u201Cjava:comp/env/FooServiceu201D);
    At deployment, the service implementation and the service stub are generated. To take the service implementation for the standalone proxy, the generated class must be instantiated:
    FooServiceInterface fsi = new FooServiceInterfaceImpl();
    Regards
    Surender Dahiya

Maybe you are looking for

  • [Oracle 11g] Store filename as VARCHAR2 and its content as XMLType

    Hi all, The version of Oracle used is 11.2.0.3.0. I would like to load a XML file into a table from AIX with a Shell script. Here is the test case table: ALTER  TABLE mytable DROP PRIMARY KEY CASCADE; DROP   TABLE mytable CASCADE CONSTRAINTS; CREATE

  • I work with Premiere Pro on a mac and export quicktime movies to be played on pc's or mac's

    I work with Premiere Pro on a mac and export quicktime movies to be played on pc's or mac's. When I export a qt from Premiere with audio it will not play on a pc only a mac. After extensive research I have narrowed down the problem to this: if you us

  • Weather widget defaults to Cupertino

    Hello all, I have 4 weather Widgets on Dashboard. These are for Bridgewater USA, Montpellier France and Bergen and Oslo Norway. 4 times of 5 when I fire up the dashboard for the first time i.e. after booting the computer from shut down, at least 2 or

  • New Spectre XT msata drive not recognised

    I have bought a spare msata ssd drive to create a cloned copy of the original drive as it has already failed once. when I use the cloning software it sees the current msata drive as an IDE drive, yet the one I want to clone is showing as USB.  When I

  • LOAD_PROGRAM_LOST Dump Help

    Hi, On our productive system we are getting around 500 dumps a week of the type LOAD_PROGRAM_LOST, related to the transactions MIRO,VA01,FBL1N,MIGO and the programs GBTABCO0 and GBTABFI0. We only transport orders from QA to productive on Thursday Mor