Standalone client for KM

Dear sirs,
I want to develop standalone (fat) Java client for KM. Knowledge management is running on a 7.0 portal. How can I connect to portal? Thanks for any advice.

Check the following links
http://help.sap.com/saphelp_nw04/helpdata/en/95/c3744f7143426e8f99c362244e0b55/content.htm
en.wikipedia.org/wiki/WebDAV
www.ietf.org/rfc/rfc2518.txt

Similar Messages

  • Writing a Standalone Client for EJB 3.0 Bean For Weblogic 10

    Steps for Writing a Standalone Client
    Client Code
    package com.client;
    import java.util.Properties;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.rmi.PortableRemoteObject;
    import com.StatelessService;
    public class StatelessClient {
         public static void main(String [] args){
              Context ctx = null;
              try {
                   ctx = getInitialContext("t3://localhost:7001/protossbservice","weblogic","weblogic");
                   Object ref = ctx.lookup("StatelessService#"+StatelessService.class.getName());
                   StatelessService service = (StatelessService)PortableRemoteObject.narrow(ref,StatelessService.class);     
                   System.out.println("StatelessClient.getMessage() ++");
                   String  message = service.getMessage();
                   System.out.println("StatelessClient.getMessage --");
                        System.out.println("Message from Bean "+message);
         } catch (NamingException e) {
                   e.printStackTrace();
         private static Context getInitialContext(String url, String user, String password) throws NamingException {
            Properties h = new Properties();
            h.put(Context.INITIAL_CONTEXT_FACTORY,
                    "weblogic.jndi.WLInitialContextFactory");
            h.put(Context.PROVIDER_URL, url);
            h.put(Context.SECURITY_PRINCIPAL, user);
            h.put(Context.SECURITY_CREDENTIALS, password);
            return new InitialContext(h);
    Business Interface
    package com;
    public interface StatelessService {
         public String getMessage();
    Stateless Session Bean
    package com;
    import javax.annotation.PostConstruct;
    import javax.ejb.Remote;
    import javax.ejb.Stateless;
    * Test Stateless Session Bean
    @Stateless(mappedName="StatelessService")
    @Remote(StatelessService.class)
    public class StatelessServiceBean implements StatelessService {
         public String getMessage(){
              return "I am invoked";

    emekaco wrote:
    Hi,
    I am a trainee although with a good background in java.
    I'm urgently in need of a free ebook for EJB 3.0 with the latest version of Netbean. Pls, help me with one if you have. my email is [email protected]
    http://www.theserverside.com/tt/books/wiley/masteringEJB3/index.tss
    Here's a good free e-book but without Netbean. It covers everything you would need to know about EJBs.
    >
    Again, is container managed bean good for a big project?
    The question is too vague to be answered. It's a design decision that needs more details.

  • How can I set Response Queue for standalone client using JMS Jax-RPC ?

    Hi,
    I am developing a standalone client for a web service running on a Weblogic 10.3 server using JMS transport. The response seems to be placed in JMSServer!JMSServer.TemporaryQueue0 when I try to test the application.
    The request xml created:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <content>
        <entry type="1">
            <textMessage fromQueue="true" JMSTimestamp="1285343150328" JMSReplyToDomain="1" JMSReplyTo="JMSServer!JMSServer.TemporaryQueue1" JMSRedelivered="false" JMSPriority="4" JMSMessageID="ID:&lt;520181.1285343150328.0&gt;" JMSExpiration="0" JMSDestination="SystemModule!demoQueue" JMSDeliveryMode="2">
                <headerProperty type="java.lang.String" value="text/xml; charset=utf-8" name="_wls_mimehdrContent_Type"/>
                <headerProperty type="java.lang.String" value="&quot;http://oracle/communications/platform/demo/webservices/rpc/secure/gen/getPhoneList&quot;" name="_wls_mimehdrSOAPAction"/>
                <headerProperty type="java.lang.String" value="/DemoWebServices/DemoWebServicesJMS" name="URI"/>
                <text>&lt;env:Envelope xmlns:env=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;&gt;&lt;env:Header/&gt;&lt;env:Body&gt;&lt;gen:lastName xmlns:gen=&quot;http://oracle/communications/platform/demo/webservices/rpc/gen&quot;&gt;8&lt;/gen:lastName&gt;&lt;/env:Body&gt;&lt;/env:Envelope&gt;</text>
            </textMessage>
        </entry>
    </content>On the application server I have configured a Response Queue that I would like my application to use. The client stubs where generated using the ant Task: weblogic.wsee.tools.anttasks.ClientGenTask.
    Standalone client code snippet:
          DemoWebServices_Impl service = null;
          try {
              service = new DemoWebServices_Impl(wsdl);
          } catch (ServiceException e) {
              e.printStackTrace();
          DemoWebServicesPortType port = null;
          //create credential provider and set it to the Stub
          try {
              port = service.getDemoWebServicesJMSPort();
          } catch (ServiceException e) {
            e.printStackTrace();
          PhoneList response = null;
          try {
              response = port.getPhoneList("8");
          } catch (RemoteException e) {
              e.printStackTrace();
          if(response != null) {
            for(Phone aPhone : response.getPhone()) {
                System.out.println("aReturned Phone number is:  " + aPhone.getPhoneNumber());
          }Would you please help me with modifying the client code to define which Queue the web service response should be placed in? setQueue() of the JMSTransportInfo class did not do the trick. Please help....
    Thanks,
    Sajitha
    Edited by: Sajitha on Sep 24, 2010 12:29 PM
    Edited by: Sajitha on Sep 27, 2010 8:44 AM

    Hi,
    I am developing a standalone client for a web service running on a Weblogic 10.3 server using JMS transport. The response seems to be placed in JMSServer!JMSServer.TemporaryQueue0 when I try to test the application.
    The request xml created:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <content>
        <entry type="1">
            <textMessage fromQueue="true" JMSTimestamp="1285343150328" JMSReplyToDomain="1" JMSReplyTo="JMSServer!JMSServer.TemporaryQueue1" JMSRedelivered="false" JMSPriority="4" JMSMessageID="ID:&lt;520181.1285343150328.0&gt;" JMSExpiration="0" JMSDestination="SystemModule!demoQueue" JMSDeliveryMode="2">
                <headerProperty type="java.lang.String" value="text/xml; charset=utf-8" name="_wls_mimehdrContent_Type"/>
                <headerProperty type="java.lang.String" value="&quot;http://oracle/communications/platform/demo/webservices/rpc/secure/gen/getPhoneList&quot;" name="_wls_mimehdrSOAPAction"/>
                <headerProperty type="java.lang.String" value="/DemoWebServices/DemoWebServicesJMS" name="URI"/>
                <text>&lt;env:Envelope xmlns:env=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;&gt;&lt;env:Header/&gt;&lt;env:Body&gt;&lt;gen:lastName xmlns:gen=&quot;http://oracle/communications/platform/demo/webservices/rpc/gen&quot;&gt;8&lt;/gen:lastName&gt;&lt;/env:Body&gt;&lt;/env:Envelope&gt;</text>
            </textMessage>
        </entry>
    </content>On the application server I have configured a Response Queue that I would like my application to use. The client stubs where generated using the ant Task: weblogic.wsee.tools.anttasks.ClientGenTask.
    Standalone client code snippet:
          DemoWebServices_Impl service = null;
          try {
              service = new DemoWebServices_Impl(wsdl);
          } catch (ServiceException e) {
              e.printStackTrace();
          DemoWebServicesPortType port = null;
          //create credential provider and set it to the Stub
          try {
              port = service.getDemoWebServicesJMSPort();
          } catch (ServiceException e) {
            e.printStackTrace();
          PhoneList response = null;
          try {
              response = port.getPhoneList("8");
          } catch (RemoteException e) {
              e.printStackTrace();
          if(response != null) {
            for(Phone aPhone : response.getPhone()) {
                System.out.println("aReturned Phone number is:  " + aPhone.getPhoneNumber());
          }Would you please help me with modifying the client code to define which Queue the web service response should be placed in? setQueue() of the JMSTransportInfo class did not do the trick. Please help....
    Thanks,
    Sajitha
    Edited by: Sajitha on Sep 24, 2010 12:29 PM
    Edited by: Sajitha on Sep 27, 2010 8:44 AM

  • Execute client for Session Bean without appClient

    Hi,
    I want to execute a standalone client for a Session Bean in a Application Server 8 platform but I don�t want to use the "appClient" script that is used in the J2EE 1.4 Tutorial.
    For example, for the Converter example I want to execute ConverterClient directly.
    For this I suppose that I have to include the following lines of code:
    java.util.Hashtable env = new java.util.Hashtable();
              env.put( Context.INITIAL_CONTEXT_FACTORY, "XXXX" );
              env.put(Context.PROVIDER_URL, "YYYY");
    Context initial = new InitialContext(env);
    Context myEnv = (Context) initial.lookup("java:comp/env");
    BUT WHAT XXXX AND YYYY SHOULD BE IN SUN APPLICATION SERVER 8?
    Thanks

    When you are inside a container these are setup as properties automaticly. When you are outside the container you can setup these properties just the container does, but it is not done for you. When you use that HashTable you are giving it the properties instead of it getting them from system properties. Also, it looks like you need to change the lookup. Once you get the InitailContext you will see that you can't lookup java:comp from outside. You will have to use the fully qualified name. Something like "nodes/node1/servers/server1/ejb/myEjb". Just keep that in mind.

  • GlassFish v3, EJB 3.1 and Standalone Client

    hi team.
    I'm very glad releasing javaee 6.
    I download netbeans 6.8 with GlassFish v3 and try to write simple ejb 3.1 application.
    ejb module deployed successfully without any problem, after this I've created new simple java application and try to call ejb 3.1 session bean.
    but no success.
    can anybody show me sample code how to call ejb 3.1 from standalone client ??
    I was working with ejb 3.0 and jboss. I had not any problem from standalone client.
    ejb 3.0 standalone client for jboss:
    Properties env = new Properties();
    env.setProperty("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
    env.setProperty("java.naming.provider.url", "localhost:1099");
    env.setProperty("java.naming.factory.url.pkgs", "org.jboss.naming");
    InitialContext ctx = new InitialContext(env);
    SomeSessionInt sBean = (SomeSessionInt)ctx.lookup("SomeSessionBean/remote");can anybody tell me which client jars are required for client application and what is the environment properties should i set ?
    PS.
    Also i tried to make enterprise application with ejb and web module into netbeans. but there wasn't any problem to inject ejb session bean from jsf managed bean. problem is how to lookup ejb from standalone client.
    any ideas will be appreciated.
    Regards,
    Paata Lominadze.

    also i can post my full example with error stacktrace.
    1.session bean (interface not required , as we know from spec.)
    public class MySessBean {
        public String sayHello(String name) throws Exception {
            System.out.println("Method initialized.");
            return "Hello : " + name;
    }2.Standalone java client
    public class Main {
        public static void main(String[] args) {
            try {
                Properties jndiProps = new Properties();
                jndiProps.put("java.naming.factory.initial", "com.sun.enterprise.naming.impl.SerialInitContextFactory");
                jndiProps.put("java.naming.factory.url.pkgs", "com.sun.enterprise.naming");
                jndiProps.put("java.naming.factory.state", "com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl");
                jndiProps.setProperty("org.omg.CORBA.ORBInitialHost", "127.0.0.1");
                jndiProps.setProperty("org.omg.CORBA.ORBInitialPort", "3700");
                Context ctx = new InitialContext(jndiProps);
                System.out.println(ctx.lookup("java:global/MyEJBModule/MySessionBean"));
                MySessionBean mySessionBean = (MySessionBean)ctx.lookup("java:global/MyEJBModule/MySessionBean");
                mySessionBean.sayHello("Paata");
            } catch (Exception e) {
                e.printStackTrace();
    }3. error stacktrace on server side:
    WARNING: "IOP00100006: (BAD_PARAM) Class com.magti.billing.ejb.__EJB31_Generated__MySessionBean__Intf____Bean__ is not Serializable"
    org.omg.CORBA.BAD_PARAM:   vmcid: OMG  minor code: 6 completed: Maybe
            at com.sun.corba.ee.impl.logging.OMGSystemException.notSerializable(OMGSystemException.java:990)4.client side error stacktrace:
    Dec 14, 2009 9:15:13 AM com.sun.enterprise.transaction.JavaEETransactionManagerSimplified initDelegates
    INFO: Using com.sun.enterprise.transaction.jts.JavaEETransactionManagerJTSDelegate as the delegate
    Dec 14, 2009 9:15:18 AM com.sun.enterprise.naming.impl.SerialContext lookup
    SEVERE: enterprise_naming.serialctx_communication_exception
    Dec 14, 2009 9:15:18 AM com.sun.enterprise.naming.impl.SerialContext lookup
    SEVERE:
    java.rmi.MarshalException: CORBA BAD_PARAM 1330446342 Maybe; nested exception is:
            java.io.NotSerializableException: ----------BEGIN server-side stack trace----------
    org.omg.CORBA.BAD_PARAM:   vmcid: OMG  minor code: 6 completed: Maybe
            at com.sun.corba.ee.impl.logging.OMGSystemException.notSerializable(OMGSystemException.java:990)
            at com.sun.corba.ee.impl.logging.OMGSystemException.notSerializable(OMGSystemException.java:1005)
            at com.sun.corba.ee.impl.orbutil.ORBUtility.throwNotSerializableForCorba(ORBUtility.java:753)
            at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.writeAny(Util.java:370)_____________________________
    Regards,
    Paata Lominadze.

  • Classpath for JMS standalone client

    Hi,
    I observed some problem, when I try to start my JMS client application. If in classpath is oc4j.jar it works, but when I replace oc4j.jar with oc4jclient.jar doesn't
    I notice the message:
    Exception in thread "main" java.lang.NoClassDefFoundError: com/evermind/server/jms/EvermindXAConnectionFactory
    at com.evermind.server.jms.ConnectInfo.getPass(ConnectInfo.java:98)
    at com.evermind.server.jms.EvermindTopicConnectionFactory.createTopicCon
    nection(EvermindTopicConnectionFactory.java:83)
    at sapconnector.MaterialMoverClient.main(MaterialMoverClient.java:52)
    the line no. 52 exactly means:
    TopicConnection connection = factory.createTopicConnection();
    What the OC4J client jar (oc4jclient.jar) is not enough for starting JMS standalone client?
    regards
    Krzysztof

    Hi, thanks for the reply.
    Well, I figured out that problem. It was my jar file. One of the jar file, which is imqjmsra.jar wasn't really the right one and that was giving me the problem. Well, at least that is working not, but I am having new problems.
    Right, I have been trying to make this work for about three days now. The truth is that my standalone JMS does work, when it is running on the same machine where the J2EE Server is located, but I am trying to make my JMS standalone client to connect to J2EE server from different location. Now I am getting connection refused error. Well, I guess I will be keep trying util I get this working.

  • Problem in Wfetch client for Update operations

    Hi,
    I am using the Wfetch client for the 'Update' operation of an RFC Gateway consumption model . But it seems to always give this error : 'HTTP/1.0 400 Bad Request\r\n'
    I have passed only those fields that have been exposed in the GW Data model. Is there anything else that needs to be taken care of ?
    The read and query operations are executed successfully though.
    Thanks,
    Shubhada

    Hi Shubhada,
    Just recheck two things in Wfetch with below details.
    1. Check the path. It should be below formate for update operation
    Verb : Put
    Path:  /sap/opu/sdata/sap/<CONSUM_MODEL>/<data_model>Collection(value='  ',scheme_id='<DATA_MODEL>',scheme_agency_id='  ')?sap-client=< >&$format=xml
    Above formate you can take from Read operation which you already executed successfully.
    2. Check the XML formate on right handside in Wfetch it should be header & body with below details.
    Xml Formate:
    x-requested-with: XMLHttpRequest\r\n
    \r\n
    <?xml version="1.0" encoding="utf-8" standalone="yes"?>\r\n
      <entry xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://www.w3.org/2005/Atom">\r\n
          <content type="application/xml">\r\n
            <m:properties>\r\n
       <d:value> </d:value> \r\n
      <d:scheme_id> </d:scheme_id> \r\n
      <d:scheme_agency_id> </d:scheme_agency_id> \r\n
    Just copy from read operation Read operation which you already executed successfully. And update the fields what you required.
    </m:properties>\r\n
          </content>\r\n
    </entry>\r\n
    Hope you this will help above information.
    Thanks & Regards,
    Mahesh Devershetty

  • Issue when a standalone client invoke a method on an EJB

    I do a simple ejb (like SayHello sample) and i create a standalone client that call one method of this EJB.
    When i run the client i have the following error from the eclipse IDE (Error is thrown at lookup):
    Exception in thread "main" java.lang.AssertionError: java.lang.ClassNotFoundException: test.IHelloWorld
         at weblogic.ejb.container.internal.RemoteBusinessIntfGenerator.generateRemoteInterface(RemoteBusinessIntfGenerator.java:57)
         at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.readObject(RemoteBusinessIntfProxy.java:205)
         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:597)
         at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
         at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
         at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:197)
         at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:564)
         at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:193)
         at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:62)
         at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:240)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
         at weblogic.jndi.internal.ServerNamingNode_1030_WLStub.lookup(Unknown Source)
         at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:392)
         at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:380)
         at javax.naming.InitialContext.lookup(InitialContext.java:392)
         at client.MainHello.main(MainHello.java:21)
    Caused by: java.lang.ClassNotFoundException: test.IHelloWorld
         at weblogic.ejb.container.deployer.RemoteBizIntfClassLoader.getClassBytes(RemoteBizIntfClassLoader.java:151)
         at weblogic.ejb.container.deployer.RemoteBizIntfClassLoader.loadClass(RemoteBizIntfClassLoader.java:96)
         at weblogic.ejb.container.internal.RemoteBusinessIntfGenerator.generateRemoteInterface(RemoteBusinessIntfGenerator.java:54)
         ... 26 more
    The eclipse IDE is runwith the option -vm D:\bea\jdk160_05\bin\java
    In eclipse, i configure to use the same jdk.
    When i execute the client outside eclipse, all is ok....
    Do you have an idée ?
    This is the ejb code :
    package test;
    public interface IHelloWorld {
    public static final String JNDI_NAME = "HelloWorld";
    public String sayHello( String name);
    package test;
    import javax.ejb.Remote;
    import javax.ejb.Stateless;
    import javax.ejb.TransactionAttribute;
    import javax.ejb.TransactionAttributeType;
    import javax.ejb.TransactionManagement;
    import javax.ejb.TransactionManagementType;
    @TransactionManagement(TransactionManagementType.CONTAINER)
    @TransactionAttribute(TransactionAttributeType.REQUIRED)
    @Stateless( name="HelloWorld", mappedName= IHelloWorld.JNDI_NAME)
    @Remote( IHelloWorld.class)
    public class HelloWorld implements IHelloWorld
    public String sayHello (String name) {
    final String msg = "Hello " + name + ". The world is wonderfull...";
    System.out.println ( msg);
    return msg;
    This is the client code :
    package client;
    import java.util.Hashtable;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import test.IHelloWorld;
    public class MainHello {
    public static void main (String[] args) throws Exception
    Hashtable<String, String> properties = new Hashtable<String, String> ();
    properties.put (Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    properties.put (Context.PROVIDER_URL, "t3://localhost:7001");
    InitialContext ctx = new InitialContext( properties);
    IHelloWorld hello = (IHelloWorld)ctx.lookup ( "HelloWorld#test.IHelloWorld");
    String result = hello.sayHello ( "franck");
    System.out.println ( result);
    ctx.close ();
    As you can see it is very simple but doesn't work inside eclipse IDE...
    Edited by: user11281761 on 30 juin 2009 07:13

    Oracle software purchases come with a CSI number that allows customers to have people contact support for products they own. If you or the organization you are working with has not purchased the product or have other support arrangements with Oracle (some partners have this), then you probably will not be able to obtain the patch from Oracle.
    You might be able to try a newer release of the product with an OTN evaluation license, WebLogic Server is currently on version 10.3.3, so you are at least 3 releases behind at this point if you are using 10.3.0.

  • Lookup form standalone client  fails with java.lang.ClassNotFoundException

    Hi,
    I have an issue under Weblogic 11g when a standalone client tries to lookup for an ejb deployed in an ear.
    The ear is correclty deployed without any errors and the EJB is correctly defined in the jndi tree (i see it using the jndi browser through the weblogic console).
    When my client tries to lookup the EJB using its correct JNDI name, the client receives the following exception :
    java.lang.AssertionError: java.lang.ClassNotFoundException: com.gemalto.contactless.securearm.services.api.IRepositoryServiceRemote
         at weblogic.ejb.container.internal.RemoteBusinessIntfGenerator.generateRemoteInterface(RemoteBusinessIntfGenerator.java:57)
         at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.readObject(RemoteBusinessIntfProxy.java:205)
         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:597)
         at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
         at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
         at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:197)
         at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:564)
         at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:193)
         at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:62)
         at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:240)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
         at weblogic.jndi.internal.ServerNamingNode_1030_WLStub.lookup(Unknown Source)
         at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:392)
         at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:380)
         at javax.naming.InitialContext.lookup(InitialContext.java:392)
         at com.gemalto.contactless.securearm.client.SarmProv.main(SarmProv.java:167)
    Caused by: java.lang.ClassNotFoundException: com.gemalto.contactless.securearm.services.api.IRepositoryServiceRemote
         at weblogic.ejb.container.deployer.RemoteBizIntfClassLoader.loadClass(RemoteBizIntfClassLoader.java:116)
         at weblogic.ejb.container.internal.RemoteBusinessIntfGenerator.generateRemoteInterface(RemoteBusinessIntfGenerator.java:54)
         ... 26 more
    No error found in the server logs !
    If you have an idea that can helps mee ....
    Thank you
    Franck.

    Yes it is in my classpath. You can take a look at my command line generated by my IDE :
    D:\bea11g\jdk160_11\bin\java -Xrunjdwp:transport=dt_socket,address=127.0.0.1:15251,suspend=y,server=n -Dfile.encoding=windows-1252 -classpath "D:\bea11g\jdk160_11\jre\lib\charsets.jar;D:\bea11g\jdk160_11\jre\lib\deploy.jar;D:\bea11g\jdk160_11\jre\lib\javaws.jar;D:\bea11g\jdk160_11\jre\lib\jce.jar;D:\bea11g\jdk160_11\jre\lib\jsse.jar;D:\bea11g\jdk160_11\jre\lib\management-agent.jar;D:\bea11g\jdk160_11\jre\lib\plugin.jar;D:\bea11g\jdk160_11\jre\lib\resources.jar;D:\bea11g\jdk160_11\jre\lib\rt.jar;D:\bea11g\jdk160_11\jre\lib\ext\dnsns.jar;D:\bea11g\jdk160_11\jre\lib\ext\localedata.jar;D:\bea11g\jdk160_11\jre\lib\ext\sunjce_provider.jar;D:\bea11g\jdk160_11\jre\lib\ext\sunmscapi.jar;D:\bea11g\jdk160_11\jre\lib\ext\sunpkcs11.jar;_D:\cless2009\classes\production\SecureARM_;D:\cless2009\classes\production\Util;D:\cless2009\classes\production\Shared;D:\cless2009\CoreBuild\res\gemalto\telecom\FRWK\v4.0\FRWK_4.0_patch07\api\FRWK\ci_api.jar;D:\glassfish\domains\domain1\lib\ext\vbsec.jar;D:\glassfish\domains\domain1\lib\ext\common.jar;D:\glassfish\domains\domain1\lib\ext\container.jar;D:\cless2009\CoreBuild\res\gemalto\telecom\FRWK\v4.0\FRWK_4.0_patch07\api\FRWK\ci_extends.jar;D:\glassfish\domains\domain1\lib\ext\lm.jar;D:\glassfish\domains\domain1\lib\ext\vbjorb.jar;D:\glassfish\domains\domain1\lib\ext\basesystem.jar;D:\cless2009\CoreBuild\res\ext\Log4j\v1.2.13\lib\log4j-1.2.13.jar;D:\cless2009\CoreBuild\res\ext\commons-lang\v2.3\commons-lang-2.3.jar;D:\cless2009\CoreBuild\res\ext\junit\v4.1\junit-4.1.jar;D:\cless2009\CoreBuild\res\gemalto\telecom\OTA_IPInfra\v1.0\OTA_IPInfra_1_0_2_0016_090701_0926\lib\glassfish\api\oti_cmdmgr-api.jar;D:\cless2009\CoreBuild\res\gemalto\telecom\OTA_IPInfra\v1.0\OTA_IPInfra_1_0_2_0016_090701_0926\lib\glassfish\tools\oti_linqusconnector-mock.jar;D:\cless2009\CoreBuild\res\gemalto\telecom\OTA_IPInfra\v1.0\OTA_IPInfra_1_0_2_0016_090701_0926\lib\glassfish\install\OTA_IPInfra_1.0.2.0016_sun.jar;D:\cless2009\CoreBuild\res\gemalto\telecom\OTA_IPInfra\v1.0\OTA_IPInfra_1_0_2_0016_090701_0926\lib\glassfish\api\oti_history-api.jar;D:\cless2009\CoreBuild\res\gemalto\telecom\OTA_IPInfra\v1.0\OTA_IPInfra_1_0_2_0016_090701_0926\lib\glassfish\core\OTAIPInfra.ear;D:\cless2009\CoreBuild\res\gemalto\telecom\OTA_IPInfra\v1.0\OTA_IPInfra_1_0_2_0016_090701_0926\lib\glassfish\api\oti_connectivity-api.jar;D:\cless2009\CoreBuild\res\gemalto\telecom\OTA_IPInfra\v1.0\OTA_IPInfra_1_0_2_0016_090701_0926\lib\glassfish\api\oti_shared-api.jar;D:\cless2009\CoreBuild\res\gemalto\telecom\OTA_IPInfra\v1.0\OTA_IPInfra_1_0_2_0016_090701_0926\lib\glassfish\api\oti_notification-api.jar;D:\cless2009\CoreBuild\res\gemalto\telecom\OTA_IPInfra\v1.0\OTA_IPInfra_1_0_2_0016_090701_0926\lib\glassfish\core\libext.zip;D:\cless2009\CoreBuild\res\gemalto\telecom\OTA_IPInfra\v1.0\OTA_IPInfra_1_0_2_0016_090701_0926\lib\glassfish\api\oti_loginmodule-api.jar;D:\cless2009\CoreBuild\res\gemalto\telecom\OTA_IPInfra\v1.0\OTA_IPInfra_1_0_2_0016_090701_0926\lib\glassfish\core\domain.zip;D:\cless2009\CoreBuild\ECLIPSE_LIB\oti-linqusconnector-jmx-custom.jar;D:\cless2009\CoreBuild\res\gemalto\telecom\OTA_IPInfra\v1.0\OTA_IPInfra_1_0_2_0016_090701_0926\lib\glassfish\api\oti_otagateway-api.jar;D:\cless2009\CoreBuild\res\gemalto\telecom\OTA_IPInfra\v1.0\OTA_IPInfra_1_0_2_0016_090701_0926\lib\glassfish\api\oti_trigsms-api.jar;D:\cless2009\CoreBuild\res\gemalto\telecom\OTA_IPInfra\v1.0\OTA_IPInfra_1_0_2_0016_090701_0926\lib\main\mmserver_ref.zip;D:\bea11g\user_projects\domains\cless\lib\wllog4j.jar;D:\bea11g\user_projects\domains\cless\lib\ojdbc14.jar;D:\bea11g\wlserver_10.3\server\lib;D:\bea11g\user_projects\domains\cless\lib\eclipselink.jar;D:\bea11g\user_projects\domains\cless\lib\log4j-1.2.14.jar;D:\cless2009\classes\production\SharedCustom;D:\cless2009\CoreBuild\res\gemalto\telecom\REUSE\v1.0\REUSE_1_0_b0148_071211_1059\lib\reuse.jar;D:\cless2009\CoreBuild\res\gemplus\telecomtlvtools\v1.0\build1\tlvtools.jar;D:\bea11g\wlserver_10.3\server\lib\wlfullclient.jar;D:\bea11g\wlserver_10.3\server\lib\wljmxclient.jar;C:\Program Files\JetBrains\IntelliJ IDEA 8.1.3\lib\idea_rt.jar" com.gemalto.contactless.securearm.client.SarmProv

  • Jax-ws deployed in standalone client fails with nullpointerexception

    I have a project which has deployed successfully as a standalone client with deployed jar files wlfullclient.jar, etc. When I add the jax-ws functions that I require, the deployed client fails with a nullpointerexception that is generated from the constructor of the Service class. The project runs successfully within the JDeveloper 11.1.1.5 environment and on a weblogic 10.3 server platform, but fails when I deploy as a standalone client with the wlfullclient.jar. I'm using JDK 1.6.0_24. In testing, the error occurs when I replace the {WLHome}\server\lib\weblogic.jar entry in the classpath with the wlfullclient.jar.
    I tested from another angle by creating my jax-ws functions in a standalone deployment, and it works successfully communicates with the webservices. No additional entries on the classpath besides my deployed jar. I then added to my deployment a simple JMS context lookup:
    Hashtable ht = new Hashtable();
    ht.put(Context.INITIAL_CONTEXT_FACTORY, contextFactoryProvider);
    ht.put(Context.PROVIDER_URL, urlString);
    Context context = new InitialContext(ht);
    This test runs without error in the JDeveloper environment. As soon as I add the wlfullclient.jar in the standalone environment, I get the following exception:
    Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/xml/ws/spi/ProviderImpl
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:630)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:614)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:305)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
    at javax.xml.ws.spi.FactoryFinder.safeLoadClass(FactoryFinder.java:150)
    at javax.xml.ws.spi.FactoryFinder.newInstance(FactoryFinder.java:30)
    at javax.xml.ws.spi.FactoryFinder.find(FactoryFinder.java:90)
    at javax.xml.ws.spi.Provider.provider(Provider.java:83)
    at javax.xml.ws.Service.<init>(Service.java:56)
    Interestingly, there is a class com/sun/xml/internal/ws.spi/ProviderImpl in the {JAVA_HOME}/jre/lib/rt.jar file, and I suppose this is what is used by the jax-ws classes when the wlfullclient.jar is not present on the classpath.
    So, what is it that I am missing in how to get the jax-ws classes and the jms classes to work in the standalone deployment environment (outside of the JDeveloper environment).
    Edited by: user3653687 on Jan 9, 2012 1:38 PM
    Edited by: user3653687 on Jan 9, 2012 2:49 PM

    Here is how I solved this problem to execute the application from a jar file (using Oracle Fusion Middleware 11.1.1.5.0 distribution). The key seems to be to extract the contents of the wseeclient.zip file into the same directory as the wlfullclient.jar and ws.api_1.1.0.0.jar files and then ensure that these 2 jars are on the classpath.
    In JDeveloper, create a project that has the jms/jax-ws classes.
    Put the following text entries to form the classpath (along with other dependent jars, e.g. org.eclipse.persistence...) into a file which will be included in the manifest for the client jar. Be sure to separate entries with a space.
    lib/wlfullclient.jar lib/wseeclient.jar lib\ws.api_1.1.0.0.jar lib\org.eclipse.persistence_1.1.0.0_2-1.jar
    In the Edit Deployment Profile Properties, select Include Manifest File, specify the main class to execute, and Add the classpath file to be included in the manifest.
    Deploy the jar file.
    In a deployment area, create the directory that will contain all the classpath jars (e.g. ./lib).
    Within the directory ./lib, extract all files from wseeclient.zip (found in {weblogic home}/server/lib)
    Copy wlfullclient.jar into the directory ./lib from the {weblogic home}/server/lib
    Copy ws.api_1.1.0.0.jar into the directory ./lib from {oracle middleware home}modules
    Copy org.eclipse.persistence_1.1.0.0_2-1.jar (for jaxb support) itno the directory ./lib from {oracle middleware home}/modules
    Copy the deployed client jar to the deployment area and execute, e.g.:
    java -jar ClientTest.jar myArguments

  • How to create a JMS standalone client with SAS PE8.2 ?

    HI everyone,
    I use Creator2.1 and I want to write a JMS standalone client that communicate through JMS with a webapp built with Creator.
    My pb is that I dont know how to set up initialContext.
    Hashtable env=new Hashtable();
    env.put(Context.PROVIDER_URL, "mq://localhost:28676/jms");
    env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.enterprise.naming.SerialInitContextFactory");
    context = new InitialContext(env);
    factory = (TopicConnectionFactory) context.lookup(factoryName);
    For example this code doesnt work and I have the following exception when I try to run my client.
    29 sept. 2006 10:31:03 com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl <init>
    ATTENTION: "IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: localhost; port: 3700"
    org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
    at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2257)
    at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2278)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:208)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:221)
    at com.sun.corba.ee.impl.transport.SocketOrChannelContactInfoImpl.createConnection(SocketOrChannelContactInfoImpl.java:104)
    at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:152)
    at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.java:146)
    at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClientDelegateImpl.java:286)
    at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:112)
    at org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java:69)
    at com.sun.enterprise.naming.SerialContext.narrowProvider(SerialContext.java:89)
    at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:128)
    at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:288)
    at javax.naming.InitialContext.lookup(InitialContext.java:351)
    at com.orange.clara.Main.main(Main.java:59)
    Caused by: java.lang.RuntimeException: java.net.ConnectException: Connection refused: connect
    at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:336)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:191)
    ... 12 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:464)
    at java.nio.channels.SocketChannel.open(SocketChannel.java:146)
    at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:320)
    ... 13 more
    Does anyone had already met this pb ?
    Regards
    R�gis

    Please refer to http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6377822, particularly the evaluation. Could your situation be the same too (i.e server ip address changing dynamically)? Also, which OS are you using and do you have any firewalls setup that prevents access to port 3700?

  • How to lookup EJBs deployed in OC4J from a standalone client application

    Hello all,
    I am trying to lookup an EJB deployed in OC4J 10.1.3 from a standalone client application using the following code:
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
    env.put(Context.PROVIDER_URL, "ormi://localhost:23791");
    env.put(Context.SECURITY_PRINCIPAL, "jazn.com/test");
    env.put(Context.SECURITY_CREDENTIALS, "test");
    Context context = new InitialContext(env);
    Object ref = context.lookup("ejb/Dispatch");
    I get the following error:
    javax.naming.NameNotFoundException: ejb/Dispatch not found
         at com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:51)
         at javax.naming.InitialContext.lookup(InitialContext.java:347)
    For the lookup string I've also tried:
    "java:comp/env/ejb/Dispatch" and "Dispatch"
    For the Context.PROVIDER_URL property I've also tried:
    opmn:ormi://localhost:6003:instance
    The result is always the same.
    I appreciate if someone could help me with this?
    Thanks,
    Georgi

    Georgi,
    Your question has been discussed many times on this forum. Search the forum archives for "RMIInitialContextFactory".
    The PROVIDER_URL needs to include the name of the deployed application that your EJB is part of, for example:
    env.put(Context.PROVIDER_URL, "ormi://localhost:23791/MyApp");The lookup name has to be the value of the "ejb-name" element in your "ejb-jar.xml" descriptor file.
    Your SECURITY_PRINCIPAL value looks strange to me. Personally, I use "principals" (and not JAZN), so I modified the "application.xml" file (in the "j2ee/home/config" subdirectory) to use "principals". Look for the following comment in that file:
    &lt;!-- Comment out the jazn element to use principals.
          When both jazn and principals are present jazn is used  --&gt;Good Luck,
    Avi.
    Message was edited by:
    Avi Abrami

  • Access java:comp/env from standalone client

    Hi,
    I am using the j2ee applicationserver from Sun.
    I want to access the java:comp/env namespace from a standalone client. When I try to do this I get the following excepton:
    javax.naming.NamingException: java:comp/env namespace is only available from within a J2EE component
    How do I get around this?
    Is it possible?
    Regards
    /Stefan

    Thanks a lot for giving me an answer Bart,
    here is another question if you have the time.
    Since it is not possible to access the the java:comp/env namesapce from a standalone client, how do I access for example a "TopicConnectionFactory" from within a J2EE application when the TopicConnectionFactory is NOT in the java:comp/env namesapce?
    I have made this work but I get a warning like this:
    Warning : Illegal connection factory access to TopicConnectionFactory. J2EE Components should access JMS Connection Factories through a resource-ref in java:comp/env
    If this isn't possible either, then how should I use for example JMS with EJB to send messages to a standalone client?
    Regards
    Stefan

  • Standalone installtion for DR

    Dears,
    My client planning DR for ECC on Standalone installation,
    My question is it possible to go ahead standalone installation for DR as ours ECC System is Distributed landscape with CI, DB and 2Apps.
    Is it possible to mapping CI, DB and 2Apps to standalone DR Server?
    Kindly give ur suggestion on this.
    Regards,
    Peter.

    Hi,
    For DR system, you only need to map database so that your database changes will be replicated to DR. There is nothing to sync from CI or App server.
    You have to initially restore db of your PRD to remote DR and then start log shipping so that both the database will be in sync.
    You may check DR guides to get more information.
    Thanks
    Sunny

  • Cmd-line client for web service

    Hi there,
    I'm new to Sun Java Studio, but generally familiar with the technology. So far I managed to build a web service and to register it.
    Now I would like to build a simple cmd-line client to invoke this web services. I couldn't find anything in the "documentation" or "tutorial". Does anybody has some sample code?
    Thanks,
    Andreas

    The tutorial http://www.netbeans.org/kb/50/quickstart-webservice-client.html provides a sample for developing a standalone client that consumes a webservice.
    The tutorial is for NetBeans 5.0 (http://www.netbeans.info/downloads/download.php?type=5.0) but should be applicable for JSE8 (based on NB4.1).

Maybe you are looking for

  • How to solve Error SPSite - The Web application at address could not be found

    Hello, I am trying to find out the internal name of a custom SharePoint list columns, for this I have used following code snippet in my console application but getting below error. The site I am accessing is a public SharePoint web site. This code is

  • When try to download an app i got error 1009 how to solve that

    when try to download an app i got error 1009 how to solve that

  • Why can't I download my newly created PDFs?

    In the last few days I cannot do anything with the PDFs that I am creating.  Creating the documents from word or powerpoint is fine, i can even merge several PDFs into one new PDF but I cannot do anything with the resulting file other than view.  The

  • Cannot Update Windows

    Hello, I have a HP G62 laptop which runs Windows 7, is x64 and was last updated in March this year. Today, I have tried to run Windows Update - but it has a red cross and gives me the message; 'Windows Update cannot currently check for updates, becau

  • Hard crash of LR3 when printing

    I suspect I know the answer but I'm posting anyways. LR3 - clean new database Trying to print to a HP616 (5x7 printer) Works like a dream under LR2 and still does LR3 will crash and burn every single time it spools off the printer. My suspect other t