ERROR WHILE COMPLING CLIENT

I am not ablr to complie client bean, i have created 2 directories beans,client under beans dir i have put home,remote,bean classes. named it as beans package. in client directory i am refering this classes by importing the beans package, but it gives error like package beans does not exist. client & beans both directory are placed in simplesessionapp directory.
error screen shot is
E:\8333\ch08\SimpleSessionApp>javac -d . client/*.java
client/SimpleSessionClient.java:3: package beans does not exist
import beans.SimpleSession;
^
client/SimpleSessionClient.java:4: package beans does not exist
import beans.SimpleSessionHome;
^
client/SimpleSessionClient.java:13: cannot find symbol
symbol : class SimpleSessionHome
location: class client.SimpleSessionClient
SimpleSessionHome home = (SimpleSessionHome) PortableRemoteObject.narro
w(ref,SimpleSessionHome.class);
^
client/SimpleSessionClient.java:13: cannot find symbol
symbol : class SimpleSessionHome
location: class client.SimpleSessionClient
SimpleSessionHome home = (SimpleSessionHome) PortableRemoteObject.narro
w(ref,SimpleSessionHome.class);
^
client/SimpleSessionClient.java:13: cannot find symbol
symbol : class SimpleSessionHome
location: class client.SimpleSessionClient
SimpleSessionHome home = (SimpleSessionHome) PortableRemoteObject.narro
w(ref,SimpleSessionHome.class);
^
client/SimpleSessionClient.java:14: cannot find symbol
symbol : class SimpleSession
location: class client.SimpleSessionClient
SimpleSession simpleSession = home.create();
^
6 errors
a
//import beans.SimpleSession;
//import beans.SimpleSessionHome;
import javax.naming.InitialContext;
import javax.rmi.PortableRemoteObject;
public class SimpleSessionClient {
public static void main(String [] args) {
   try {
         InitialContext jndiContext = new InitialContext();
         Object ref = jndiContext.lookup("ejb/beans.SimpleSession");
         SimpleSessionHome home = (SimpleSessionHome) PortableRemoteObject.narrow(ref,SimpleSessionHome.class);
         SimpleSession simpleSession = home.create();
        for (int i=0;i<args.length;i++) {
       String returnedString = simpleSession.getEchoString(args);
System.out.println(returnedString);
} //close for loop
}catch(Exception e) {
e.printStackTrace();
} //close catch
}//close main
} // close main class
help me.

I hope this question is not too simple. Does your CLASSPATH contain the path to the beans package .class file location, or the jar file that contains them?

Similar Messages

  • Error while compile client! Please help

    Hi everybody,
    I am new to J2EE. I hav got application server and client in the same computer.
    While compile client application to test the server part followint error is shown:
    28-Feb-2007 10:36:05 com.sun.corba.ee.spi.logging.LogWrapperBase doLog
    INFO: "IOP00710299: (INTERNAL) Successfully created IIOP listener on the specified host/port: all interfaces/3122"
    Caught an exception:
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.RemoteException: Exception thrown from bean; nested exception is: com.sun.jdo.api.persistence.support.JDOFatalInternalException: JDO76519: Failed to identify vendor type for the data store.
    NestedException: java.sql.SQLException: Error in allocating a connection. Cause: Class name is wrong or classpath is not set for : oracle.jdbc.pool.OracleDataSource
    at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:161)
    at javax.rmi.CORBA.Util.mapSystemException(Util.java:67)
    at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:142)
    at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(Unknown Source)
    at bank._CustomerFacadeRemote_DynamicStub.createAccount(_CustomerFacadeRemote_DynamicStub.java)
    at bankaccountclient.Main.insertInfo(Main.java:55)
    at bankaccountclient.Main.<init>(Main.java:38)
    at bankaccountclient.Main.main(Main.java:78)
    Caused by: java.rmi.RemoteException: Exception thrown from bean; nested exception is: com.sun.jdo.api.persistence.support.JDOFatalInternalException: JDO76519: Failed to identify vendor type for the data store.
    NestedException: java.sql.SQLException: Error in allocating a connection. Cause: Class name is wrong or classpath is not set for : oracle.jdbc.pool.OracleDataSource
    at com.sun.enterprise.iiop.POAProtocolMgr.mapException(POAProtocolMgr.java:199)
    at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:853)
    at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:160)
    at $Proxy22.createAccount(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:123)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:648)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:192)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1709)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1569)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:951)
    at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:181)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:721)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:469)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConnectionImpl.java:1258)
    at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:409)
    BUILD SUCCESSFUL (total time: 4 seconds)
    Please let me know the solution of the error!
    And also if client and application server is in same mechine which interface must be used to talk client with session bean?
    Please help me!

    1) It looks like you have an error in JDBC configuration.
    The main string is "Class name is wrong or classpath is not set for : oracle.jdbc.pool.OracleDataSource
    Check out JDBC connection pools and resources.
    2) If your beans and client there are at the same JVM you can use local interface, else use remote interface.

  • Error while compling the custom agent

    I am trying to develop custom agent for ifs using jdeveloper. I have attached following .jar file with project.
    repos.jar,vbjorb.jar,release.jar,xmlparser2.jar, util.jar, tools.jar, adk_1081.jar, lclasess1.jar
    I am getting following error while compiling.
    Error: (50) constructor IfsAgent() not found in class oracle.ifs.agents.common.IfsAgent.
    Error: (86) method required, but value found.
    Can anybody help me to fix this error?
    Thanks
    Sanjay

    Looks like the call to your agent is missing some parameters.
    Here is the constructor for IfsAgent:
    IfsAgent(java.lang.String name, java.lang.String[] args,
    java.lang.String parameterTableSection, oracle.ifs.agents.manager.ServerManager manager)
    This is the description from the iFS Online Resources whitepaper section on creating a simple agent.
    The constructor for an Agent always contains these 4 arguments. The arguments are stored in the ServerManager definition file and are
    passed to the Agent class when it is instantiated at runtime.
    name is the name of this Agent.
    args are any custom arguments you want
    to pass to your Agent.
    sectionName identifies the section
    specfic to this Agent in the common
    ParameterTable. In practice, it is
    the name of this Agent.
    manager is the name of the ServerManager
    that hosts this Agent at runtime.
    I hope this helps.
    -D

  • Error while doing client copy

    Hi Gurus,
    i have to copy my all data(all modules master data) from client 300 to 900 within the system. i have created a client 900 thru scc4, then logged in 900 with user sap* and passwd "pass".then sccl while scheduling this in background...i am getting a error window which as follows..it says for creation of RFC..
    RFC Destination for client copy in systems with financials basis (FINBASIS) component.
    The system could not find any suitable RFC destination for processing the client 300.
    This note also appears if an RFC destination was found but this does not work.
    0 RFC destinations: FINBTR@RPDCLNT300
    0 Error text: 900
    Proceed as follows to eliminate this error:
    1.  Start the wizard to create a new RFC connection
    or perform the following steps manually:
    1.  Create an RFC destination with the target ZK>source client of client
         copy (in this case 300).
    2.  Check whether the RFC destination works in transaction SM59.
         To avoid errors when assigning the password or the authorizations of
         the RFC user, use the authorization test Test -> Authorization.
    3.  Enter the RFC destination:
         -   Transaction: FINB_TR_DEST (Destinations for Transport Methods of
             the Financials Basis)
         -   Client: 300
    4.     Start the client copy again.
    what i have to do..?? in which cleint i have to create RFC ..??pls help me out in this situation.
    Thanks & Regards,
    ACS

    SOLUTION:
    Login to client 300
    Go to sm59, create rfc connection type 3, give the rfc destination : FINBASIS_300
    Logon and security--> give user id and password (of any user in client 300)
    create any service type of user:(user should be a service user or communication user so as to avoid password lock situation) in 300
    Check Test connection: test ---à authorization test.
    Login in to new client: 900
    Run the tcode: FINB_TR_DEST
    Click on new entries:
    Give the client: 300 and destination as FINBASIS_300 and save .
    Run Tcode: sccl make client copy

  • Error  while generating client proxy

    Hi All,
    I have got a WSDL file for which I am generating the client proxy. It is giving me a dump saying that, memory is not sufficient while generating the proxy.
    I have also contacted the basis team, even after increasing the memory... we are facing the same issue. Can anyone suggest any solution or SAP Note if there are any???
    Thanks in advance.
    Bhargava.

    Hi,
    Please find the dump details below:
    ST22 DUMP:
    Short text
        No storage space available for FORM stack.
    What happened?
        Each transaction requires some main memory space to process
        application data. If the operating system cannot provide any more
        space, the transaction is terminated.
    What can you do?
        Note which actions and input led to the error.
        For further help in handling the problem, contact your SAP administrator
        You can use the ABAP dump analysis transaction ST22 to view and manage
        termination messages, in particular for long term reference.
        Try to find out (e.g. by targetted data selection) whether the
        transaction will run with less main memory.
        If there is a temporary bottleneck, execute the transaction again.
        If the error persists, ask your system administrator to check the
        following profile parameters:
        o  ztta/roll_area            (1.000.000 - 15.000.000)
               Classic roll area per user and internal mode
               usual amount of roll area per user and internal mode
        o  ztta/roll_extension       (10.000.000 - 500.000.000)
               Amount of memory per user in extended memory (EM)
        o  abap/heap_area_total      (100.000.000 - 1.500.000.000)
               Amount of memory (malloc) for all users of an application
               server. If several background processes are running on
               one server, temporary bottlenecks may occur.
               Of course, the amount of memory (in bytes) must also be
               available on the machine (main memory or file system swap).
               Caution:
               The operating system must be set up so that there is also
               enough memory for each process. Usually, the maximum address
               space is too small.
               Ask your hardware manufacturer or your competence center
               about this.
               In this case, consult your hardware vendor
        abap/heap_area_dia:        (10.000.000 - 1.000.000.000)
               Restriction of memory allocated to the heap with malloc
               for each dialog process.
        Parameters for background processes:
        abap/heap_area_nondia:        (10.000.000 - 1.000.000.000)
               Restriction of memory allocated to the heap with malloc
               for each background process.
        Other memory-relevant parameters are:
        em/initial_size_MB:         (35-1200)
               Extended memory area from which all users of an
               application server can satisfy their memory requirement
    Error analysis
        You attempted to extend a stack, but the required storage spac
        not available.
        Storage request..............: 8450048 bytes.
    How to correct the error
        Please check whether uncontrolled recursive calls caused this
        runtime error.
        Try to decide by analysis whether this request is
        reasonable or whether there is a program error. You should pay
        particular attention to the internal table entries listed belo
    System environment
        SAP-Release 701
        Application server... "dcr"
        Network address...... "10.1.105.112"
        Operating system..... "AIX"
        Release.............. "6.1"
        Hardware type........ "00C834224C00"
        Character length.... 16 Bits
        Pointer length....... 64 Bits
        Work process number.. 4

  • Weblogic 8.1 :: Getting error while generating Client java class from WSDL

    Hi,
    For SOAP webservice, I am using ant script to generate java client from WSDL but getting below error. Please inform if any suggestion to resolve this.
    Also let me know if any other alternative to generate client java code.
    Ant script:
    ===========
    <project name="project" default="generateClientJar">
         <property file="build.property">
         </property>
         <taskdef name="clientgen" classname="weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask">
              <classpath>
                   <fileset dir="${build_lib.dir}" includes="*.jar" />
              </classpath>
         </taskdef>
         <path id="compile_path">
              <pathelement location="C:/jar/wls-api.jar" />
              <pathelement location="${build_lib.dir}/weblogic.jar" />
              <pathelement location="C:/jar/webserviceclient+ssl.jar" />
              <pathelement location="D:/Java_Src_10.1.0/nextgen_arch/wlpatch/webservices.jar" />
         </path>
         <target name="generateClientJar" depends="generate.client">
    <clientgen wsdl="${wsdl.file}" classpathref="compile_path"
    serviceName="${service.name}"
    packageName= "${client.pkg}"
    clientJar="${ws.client.name}" />
         </target>
         <target name="generate.client" description="Generate web-services client">
              <property name="wsdl.file" value="${sms.wsdl.file}"/>
              <property name="client.pkg" value="${sms.client.pkg}"/>
              <property name="ws.client.name" value="${ws.sms.name}"/>
              <property name="service.name" value="${sms.service.name}"/>
         </target>
    </project>
    build.property file
    ===========
    base=C:/SMS
    lib=E:/jar_path
    sms.wsdl.file=${base}/SMS.wsdl
    sms.client.pkg=com.db.dbdi.gtbportal.sms.client     
    ws.sms.name=${lib}/ws_SmsService_client.jar
    sms.service.name=SMSService
    build_lib.dir = E:/jar_path
    Error log:
    ================
    Buildfile: D:\Java_Src_10.1.0\ant\build_weblogic8.xml
    generate.client:
    generateClientJar:
    [clientgen] Generating client jar for C:/SMS/SMS.wsdl ...
    [clientgen] C:\Documents and Settings\amitkumar.patel\Local Settings\Temp\ws_SmsService_client.jar699419996\com\db\dbdi\gtbportal\sms\client\SMSPort.java:15: parameters is already defined in sendSMS(com.db.portal.webservices.sms.SendSMS,com.db.portal.webservices.sms.holders.SendSMSResponseHolder)
    [clientgen] public void sendSMS(com.db.portal.webservices.sms.SendSMS parameters, com.db.portal.webservices.sms.holders.SendSMSResponseHolder parameters)
    [clientgen] ^
    [clientgen] C:\Documents and Settings\amitkumar.patel\Local Settings\Temp\ws_SmsService_client.jar699419996\com\db\dbdi\gtbportal\sms\client\SMSPort.java:21: parameters is already defined in getStatus(com.db.portal.webservices.sms.GetStatus,com.db.portal.webservices.sms.holders.GetStatusResponseHolder)
    [clientgen] public void getStatus(com.db.portal.webservices.sms.GetStatus parameters, com.db.portal.webservices.sms.holders.GetStatusResponseHolder parameters)
    [clientgen] ^
    [clientgen] C:\Documents and Settings\amitkumar.patel\Local Settings\Temp\ws_SmsService_client.jar699419996\com\db\dbdi\gtbportal\sms\client\SMSPort_Stub.java:20: parameters is already defined in sendSMS(com.db.portal.webservices.sms.SendSMS,com.db.portal.webservices.sms.holders.SendSMSResponseHolder)
    [clientgen] public void sendSMS(com.db.portal.webservices.sms.SendSMS parameters, com.db.portal.webservices.sms.holders.SendSMSResponseHolder parameters)
    [clientgen] ^
    [clientgen] C:\Documents and Settings\amitkumar.patel\Local Settings\Temp\ws_SmsService_client.jar699419996\com\db\dbdi\gtbportal\sms\client\SMSPort_Stub.java:39: parameters is already defined in getStatus(com.db.portal.webservices.sms.GetStatus,com.db.portal.webservices.sms.holders.GetStatusResponseHolder)
    [clientgen] public void getStatus(com.db.portal.webservices.sms.GetStatus parameters, com.db.portal.webservices.sms.holders.GetStatusResponseHolder parameters)
    [clientgen] ^
    [clientgen] Note: C:\Documents and Settings\amitkumar.patel\Local Settings\Temp\ws_SmsService_client.jar699419996\com\db\dbdi\gtbportal\sms\client\SMSService.java uses or overrides a deprecated API.
    [clientgen] Note: Recompile with -deprecation for details.
    [clientgen] 4 errors
    *[*clientgen] java.io.IOException: Compiler failed executable.exec**
    [clientgen] at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:470)
    [clientgen] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:328)
    [clientgen] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:336)
    [clientgen] at weblogic.webservice.tools.build.internal.CompilerHelper.compileFiles(CompilerHelper.java:80)
    [clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.compileStubs(ClientGenImpl.java:627)
    [clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.generateStub(ClientGenImpl.java:572)
    [clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.doClientGenFromWsdl(ClientGenImpl.java:409)
    [clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.run(ClientGenImpl.java:340)
    [clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.doClientGen(ClientGenTask.java:351)
    [clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.execute(ClientGenTask.java:208)
    [clientgen] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [clientgen] at org.apache.tools.ant.Task.perform(Task.java:364)
    [clientgen] at org.apache.tools.ant.Target.execute(Target.java:341)
    [clientgen] at org.apache.tools.ant.Target.performTasks(Target.java:369)
    [clientgen] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    [clientgen] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    [clientgen] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
    [clientgen] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
    [clientgen] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    [clientgen] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
    [clientgen] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
    BUILD FAILED
    D:\Java_Src_10.1.0\ant\build_weblogic8.xml:34: weblogic.webservice.tools.build.WSBuildException: Compiler failed executable.exec - with nested exception:
    [java.io.IOException: Compiler failed executable.exec]
    Total time: 1 minute 12 seconds

    Hi,
    Can u Please post the WSDL..here. I remember long back i resolved this kind of issue...when i was getting "*parameters is already defined in - - -*" while using ClientGen.
    Once i will get the WSDL may be i can recall it...
    If u have any problem in Posting the WSDL..in Forums .. then let me know I will send my E-Mail Address...
    As far as i remember ..it usually happens when we Run ClientGen task of WLS81 ON the WebService/WSDL generated by WebLogic 9.x or Above. Please let me know if this is the Case with you as well... . I remember there is a Patch for it...for WLS8 ClientGen task...I dont remember the Patch Number Exactly.
    Just For testing:
    Just Use WLS9.x ClientGen task On the Same WSDL
    <taskdef name="clientgen" classname="weblogic.wsee.tools.anttasks.ClientGenTask" />
    I am sure you will not see this issue... because the issue is there only with WLS8 Clientgen...
    Thanks
    Jay SenSharma
    http://jaysensharma.wordpress.com (WebLogic Wonders Are Here)
    Edited by: Jay SenSharma on Jan 8, 2010 4:32 PM
    Edited by: Jay SenSharma on Jan 8, 2010 4:34 PM

  • Error while running client program

    Hi,
    I am writing a sample program. Below is the server code.
    package helloWorld;
    import javax.jws.*;
    @WebService
    public class HelloWorld {
         @WebMethod
         public String hello() {
              System.out.println("Print data");
              return "Test";
    Firstly when I start the server I get
    <WSEE>Warning: JMS Queue 'weblogic.wsee.DefaultQueue' is not found, as a result, Web Service async responses via jms transport is not supported. If the target service uses JMS transport, the responses will not be able to come back.<JmsQueueListener.connect:227>
    Ignoring this I wrote a client program
    package web;
    import java.io.IOException;
    import java.io.PrintWriter;
    * Servlet implementation class for Servlet: WebClient
    public class WebClient {
              public static void main(String[] argc)
              try {
                   HelloWorldService_Impl service = new HelloWorldService_Impl();
                   HelloWorld port = service.getHelloWorldSoapPort();
                   java.lang.String message = "Hi";
                   // TODO process result here
                   String result = port.hello();
                   System.out.println("Result = "+result);
              }catch(Exception e)
                   e.printStackTrace();
    When I run the client I get runtime error
    D:\test\2105\WebClient\src>D:\bea\jdk150_04\bin\java -cp .;jaxrpc.jar;weblogic.jar;webservices.jar;webservicesclient.jar;xbean.jar;ant.jar;ant-antlr.jar;ant-weblogic.jar web/WebClient
    Exception in thread "main" java.lang.AssertionError: java.io.IOException
    at weblogic.descriptor.DescriptorManager$DefaultMarshallerFactorySingleton.<clinit>(DescriptorManager.java:42)
    at weblogic.descriptor.DescriptorManager.getDefaultMF(DescriptorManager.java:116)
    at weblogic.descriptor.DescriptorManager.getMarshallerFactory(DescriptorManager.java:125)
    at weblogic.descriptor.DescriptorManager.getDescriptorFactory(DescriptorManager.java:147)
    at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorManager.java:215)
    at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorManager.java:185)
    at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorManager.java:170)
    at weblogic.wsee.jaxrpc.ServiceImpl.loadWeblogicDD(ServiceImpl.java:404)
    at weblogic.wsee.jaxrpc.ServiceImpl.loadInternalDD(ServiceImpl.java:346)
    at weblogic.wsee.jaxrpc.ServiceImpl.<init>(ServiceImpl.java:110)
    at web.HelloWorldService_Impl.<init>(HelloWorldService_Impl.java:21)
    at web.HelloWorldService_Impl.<init>(HelloWorldService_Impl.java:13)
    at web.WebClient.main(WebClient.java:15)
    Caused by: java.io.IOException
    at weblogic.descriptor.internal.MarshallerFactory.<init>(MarshallerFactory.java:50)
    at weblogic.descriptor.DescriptorManager$DefaultMarshallerFactorySingleton.<clinit>(DescriptorManager.java:40)
    ... 12 more
    Caused by: com.bea.xml.XmlException: unable to load type library from classloader sun.misc.Launcher$AppClassLoader@e39a3e
    at com.bea.staxb.runtime.internal.BindingContextFactoryImpl.createBindingContext(BindingContextFactoryImpl.java:50)
    at weblogic.descriptor.internal.MarshallerFactory.<init>(MarshallerFactory.java:48)
    Can anyone let me know what could be the problem?

    Hi,
    My Client Program is as follows:
    import javax.ejb.*;
    public class Client{
    public static void main(String[] args){
    Account account = null;
         try{
    Context = new
    Context = new
    InitialContext(System.getProperties());
    AccountHome home = (AccountHome)
    AccountHome)
    ctx.lookup("java:comp/env/ejb/AccountBean");
         home.create("123-456-7890","John");
         }catch(...){
    }What are the System Properties? Are you running the client remotely? Are you running the client as a stand alone Java app or using the Weblogic's Client Runner? 'java:comp' as the jndi name is usually used when the client runs inside the container... But it doesn't seem to be the case.
    Kexkey

  • Getting error while invoking client interface method as a web service

    Hi,
    I have written one custom method inAppModuleImpl and include that custom method into the AppModule's Client Interface(AppModule-->Java-->ClientInterface).
    It autogenerates two java classes: ClientInterfaceImpl class and interface class. I right clicked on ClientInterfaceImpl class and select the option create webservice proxy. Then I deployed my application into the WL Server. There I am able to see the webservice. But when I test the webservice and invoke the method. It is throwing the below exception:
    HTTP/1.1 500 Internal Server Error
    Content-Type: text/xml;charset=UTF-8
    X-Powered-By: Servlet/2.5 JSP/2.1
    Date: Thu, 28 Jul 2011 12:07:42 GMT
    X-ORACLE-DMS-ECID: 6d2bf3b5503a93f7:-56043a49:1316ef0e0c2:-8000-000000000000028d
    Content-Length: 6624
    X-HTTPAnalyzer-RuleName: Pass through :
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
    <S:Body>
    <S:Fault xmlns:ns4="http://www.w3.org/2003/05/soap-envelope">
    <faultcode>S:Server</faultcode>
    <faultstring>java.lang.NullPointerException</faultstring>
    <detail>
    <ns2:exception xmlns:ns2="http://jax-ws.dev.java.net/" note="To disable this feature, set com.sun.xml.ws.fault.SOAPFaultBuilder.disableCaptureStackTrace system property to false" class="java.lang.NullPointerException">
    <ns2:stackTrace>
    <ns2:frame line="7598" file="ApplicationModuleImpl.java" method="isMarshalledLocally" class="oracle.jbo.client.remote.ApplicationModuleImpl"/>
    <ns2:frame line="7572" file="ApplicationModuleImpl.java" method="riInvokeExportedMethod" class="oracle.jbo.client.remote.ApplicationModuleImpl"/>
    <ns2:frame line="27" file="TestClientInterfaceAMClient.java" method="testmethod" class="model.client.TestClientInterfaceAMClient"/>
    <ns2:frame line="native" file="NativeMethodAccessorImpl.java" method="invoke0" class="sun.reflect.NativeMethodAccessorImpl"/>
    <ns2:frame line="39" file="NativeMethodAccessorImpl.java" method="invoke" class="sun.reflect.NativeMethodAccessorImpl"/>
    <ns2:frame line="25" file="DelegatingMethodAccessorImpl.java" method="invoke" class="sun.reflect.DelegatingMethodAccessorImpl"/>
    <ns2:frame line="597" file="Method.java" method="invoke" class="java.lang.reflect.Method"/>
    <ns2:frame line="92" file="WLSInstanceResolver.java" method="invoke" class="weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker"/>
    <ns2:frame line="74" file="WLSInstanceResolver.java" method="invoke" class="weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker"/>
    <ns2:frame line="151" file="InvokerTube.java" method="invoke" class="com.sun.xml.ws.server.InvokerTube$2"/>
    <ns2:frame line="268" file="EndpointMethodHandlerImpl.java" method="invoke" class="com.sun.xml.ws.server.sei.EndpointMethodHandlerImpl"/>
    <ns2:frame line="100" file="SEIInvokerTube.java" method="processRequest" class="com.sun.xml.ws.server.sei.SEIInvokerTube"/>
    <ns2:frame line="866" file="Fiber.java" method="__doRun" class="com.sun.xml.ws.api.pipe.Fiber"/>
    <ns2:frame line="815" file="Fiber.java" method="_doRun" class="com.sun.xml.ws.api.pipe.Fiber"/>
    <ns2:frame line="778" file="Fiber.java" method="doRun" class="com.sun.xml.ws.api.pipe.Fiber"/>
    <ns2:frame line="680" file="Fiber.java" method="runSync" class="com.sun.xml.ws.api.pipe.Fiber"/>
    <ns2:frame line="401" file="WSEndpointImpl.java" method="process" class="com.sun.xml.ws.server.WSEndpointImpl$2"/>
    <ns2:frame line="531" file="HttpAdapter.java" method="handle" class="com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit"/>
    <ns2:frame line="253" file="HttpAdapter.java" method="handle" class="com.sun.xml.ws.transport.http.HttpAdapter"/>
    <ns2:frame line="140" file="ServletAdapter.java" method="handle" class="com.sun.xml.ws.transport.http.servlet.ServletAdapter"/>
    <ns2:frame line="206" file="WLSServletAdapter.java" method="handle" class="weblogic.wsee.jaxws.WLSServletAdapter"/>
    <ns2:frame line="310" file="HttpServletAdapter.java" method="run" class="weblogic.wsee.jaxws.HttpServletAdapter$AuthorizedInvoke"/>
    <ns2:frame line="223" file="HttpServletAdapter.java" method="post" class="weblogic.wsee.jaxws.HttpServletAdapter"/>
    <ns2:frame line="124" file="JAXWSServlet.java" method="doPost" class="weblogic.wsee.jaxws.JAXWSServlet"/>
    <ns2:frame line="727" file="HttpServlet.java" method="service" class="javax.servlet.http.HttpServlet"/>
    <ns2:frame line="79" file="JAXWSServlet.java" method="service" class="weblogic.wsee.jaxws.JAXWSServlet"/>
    <ns2:frame line="820" file="HttpServlet.java" method="service" class="javax.servlet.http.HttpServlet"/>
    <ns2:frame line="227" file="StubSecurityHelper.java" method="run" class="weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction"/>
    <ns2:frame line="125" file="StubSecurityHelper.java" method="invokeServlet" class="weblogic.servlet.internal.StubSecurityHelper"/>
    <ns2:frame line="300" file="ServletStubImpl.java" method="execute" class="weblogic.servlet.internal.ServletStubImpl"/>
    <ns2:frame line="26" file="TailFilter.java" method="doFilter" class="weblogic.servlet.internal.TailFilter"/>
    <ns2:frame line="56" file="FilterChainImpl.java" method="doFilter" class="weblogic.servlet.internal.FilterChainImpl"/>
    <ns2:frame line="101" file="JpsAbsFilter.java" method="run" class="oracle.security.jps.ee.http.JpsAbsFilter$1"/>
    <ns2:frame line="native" file="AccessController.java" method="doPrivileged" class="java.security.AccessController"/>
    <ns2:frame line="313" file="JpsSubject.java" method="doAsPrivileged" class="oracle.security.jps.util.JpsSubject"/>
    <ns2:frame line="413" file="JpsPlatformUtil.java" method="runJaasMode" class="oracle.security.jps.ee.util.JpsPlatformUtil"/>
    <ns2:frame line="84" file="JpsAbsFilter.java" method="runJaasMode" class="oracle.security.jps.ee.http.JpsAbsFilter"/>
    <ns2:frame line="147" file="JpsAbsFilter.java" method="doFilter" class="oracle.security.jps.ee.http.JpsAbsFilter"/>
    <ns2:frame line="71" file="JpsFilter.java" method="doFilter" class="oracle.security.jps.ee.http.JpsFilter"/>
    <ns2:frame line="56" file="FilterChainImpl.java" method="doFilter" class="weblogic.servlet.internal.FilterChainImpl"/>
    <ns2:frame line="136" file="DMSServletFilter.java" method="doFilter" class="oracle.dms.servlet.DMSServletFilter"/>
    <ns2:frame line="56" file="FilterChainImpl.java" method="doFilter" class="weblogic.servlet.internal.FilterChainImpl"/>
    <ns2:frame line="3715" file="WebAppServletContext.java" method="wrapRun" class="weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction"/>
    <ns2:frame line="3681" file="WebAppServletContext.java" method="run" class="weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction"/>
    <ns2:frame line="321" file="AuthenticatedSubject.java" method="doAs" class="weblogic.security.acl.internal.AuthenticatedSubject"/>
    <ns2:frame line="120" file="SecurityManager.java" method="runAs" class="weblogic.security.service.SecurityManager"/>
    <ns2:frame line="2277" file="WebAppServletContext.java" method="securedExecute" class="weblogic.servlet.internal.WebAppServletContext"/>
    <ns2:frame line="2183" file="WebAppServletContext.java" method="execute" class="weblogic.servlet.internal.WebAppServletContext"/>
    <ns2:frame line="1450" file="ServletRequestImpl.java" method="run" class="weblogic.servlet.internal.ServletRequestImpl"/>
    <ns2:frame line="207" file="ExecuteThread.java" method="execute" class="weblogic.work.ExecuteThread"/>
    <ns2:frame line="176" file="ExecuteThread.java" method="run" class="weblogic.work.ExecuteThread"/>
    </ns2:stackTrace>
    </ns2:exception>
    </detail>
    </S:Fault>
    </S:Body>
    </S:Envelope>
    How to solve this??
    Thanks,
    Vicky.
    Edited by: Vicky on Jul 28, 2011 5:10 AM

    I'm using version 14.1.2002. I can create a webi report, but If I use a filter in this webi, a message WIS 30270 appears.

  • Error while running client web service

    how do i solve this error..
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: java.net.ConnectException: Connection timed out: connect
    faultActor:
    faultNode:
    faultDetail:
         {http://xml.apache.org/axis/}stackTrace:java.net.ConnectException: Connection timed out: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(Unknown Source)
         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.SocksSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:153)
         at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:120)
         at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
         at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
         at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
         at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
         at org.apache.axis.client.Call.invoke(Call.java:2767)
         at org.apache.axis.client.Call.invoke(Call.java:2443)
         at org.apache.axis.client.Call.invoke(Call.java:2366)
         at org.apache.axis.client.Call.invoke(Call.java:1812)
         at DefaultNamespace.CalcSoapBindingStub.getOutput(CalcSoapBindingStub.java:110)
         at DefaultNamespace.CalcProxy.getOutput(CalcProxy.java:50)
         at DefaultNamespace.calcClient.executeClient(calcClient.java:54)
         at DefaultNamespace.calcClient.main(calcClient.java:14)
         {http://xml.apache.org/axis/}hostname:romil-system
    java.net.ConnectException: Connection timed out: connect
         at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
         at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
         at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
         at org.apache.axis.client.Call.invoke(Call.java:2767)
         at org.apache.axis.client.Call.invoke(Call.java:2443)
         at org.apache.axis.client.Call.invoke(Call.java:2366)
         at org.apache.axis.client.Call.invoke(Call.java:1812)
         at DefaultNamespace.CalcSoapBindingStub.getOutput(CalcSoapBindingStub.java:110)
         at DefaultNamespace.CalcProxy.getOutput(CalcProxy.java:50)
         at DefaultNamespace.calcClient.executeClient(calcClient.java:54)
         at DefaultNamespace.calcClient.main(calcClient.java:14)
    Caused by: java.net.ConnectException: Connection timed out: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(Unknown Source)
         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.SocksSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:153)
         at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:120)
         at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
         at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
         at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
         ... 13 more

    hello, please i attend too developpe a web service client in java to access to a webservice server PHP, I use axis api, but when i launch my web service client, I receive, all content of the wsdl file from server. please somebody can I help me

  • Error while compling a Function:

    Hi,
    I am unable to complie a function as shown below:
    CREATE OR REPLACE FUNCTION GET_SUBS_TYPE_KEY(
    SUBNO VARCHAR2 DEFAULT NULL
    RETURN SUBS_TYPE_KEY_1 PIPELINED AS
    V_SUBNO VARCHAR2(40);
    V_PAID VARCHAR2(10);
    V_SUBS_TYP_KEY VARCHAR2(10);
    V_VAL1 VARCHAR2(255);
    CURSOR C1_REC IS SELECT SUBNO,PREPOST_PAID,SUBS_TYPE_KEY
    FROM CTVA_ETL.RA_CRM_USER_INFO,DIM_SUBSCRIBER_TYPE
    WHERE SUBSTR(DIM_SUBSCRIBER_TYPE.SUBS_TYPE_DESC,1,4)=RA_CRM_USER_INFO.PREPOST_PAID
    --WHERE MSISDN='8615025400109'
    --WHERE MSISDN IN ('8615025400068','8615025400083','8615025400101','8615025400132','8615025400109')
    GROUP BY SUBNO,PREPOST_PAID,SUBS_TYPE_KEY;
    BEGIN
    OPEN C1_REC;
    LOOP
    FETCH C1_REC INTO V_SUBNO SUBNO_TYP_1,V_PAID,V_SUBS_TYP_KEY SUBS_TYP_KEY;
    --DBMS_OUTPUT.PUT_LINE('THE MSISDN VALUE'||V_MSISDN);
    EXIT WHEN C1_REC%NOTFOUND;
    IF V_PAID='PREP' THEN
    V_SUBS_TYP_KEY ='2';
    ELSIF V_PAID='POST' THEN
    V_SUBS_TYP_KEY ='2';
    ELSE
    V_SUBS_TYP_KEY ='-99';
    LOOP
    PIPE ROW ( SUBS_TYPE_KEY(C1_REC.SUBNO_TYP_1 ,C1_REC.SUBS_TYP_KEY ));
    END LOOP;
    END LOOP;
    RETURN;
    CLOSE C1_REC;
    END;
    its giving error in the SUBNO_TYP_1 Type

    Un-formatted code is nothing but garbage. So always format your code.
    CREATE OR REPLACE FUNCTION get_subs_type_key(
                             subno VARCHAR2 DEFAULT NULL) RETURN subs_type_key_1 pipelined
    AS
         v_subno      VARCHAR2(40);
         v_paid           VARCHAR2(10);
         v_subs_typ_key  VARCHAR2(10);
         v_val1           VARCHAR2(255);
         CURSOR c1_rec
         IS
         SELECT subno,
                prepost_paid,
                subs_type_key
           FROM ctva_etl.ra_crm_user_info,
                dim_subscriber_type
          WHERE SUBSTR(dim_subscriber_type.subs_type_desc, 1, 4) = ra_crm_user_info.prepost_paid
          GROUP BY subno,
                prepost_paid,
                subs_type_key;
    BEGIN
         OPEN c1_rec;
         LOOP
              FETCH c1_rec INTO v_subno subno_typ_1, v_paid, v_subs_typ_key; <<-- Here i removed subs_typ_key Only god knows why you had it there.
              --DBMS_OUTPUT.PUT_LINE('THE MSISDN VALUE'||V_MSISDN);
              EXIT WHEN c1_rec % NOTFOUND;
              IF v_paid = 'PREP'
              THEN
                   v_subs_typ_key = '2';
              ELSIF v_paid = 'POST'
              THEN
                   v_subs_typ_key = '2';
              ELSE
                   v_subs_typ_key = '-99';
                   LOOP
                        pipe ROW(subs_type_key(c1_rec.subno_typ_1,   c1_rec.subs_typ_key));
                   END LOOP;
              ENDIF; <<-- Here i closed your IF statement
         END LOOP;
         RETURN;
         CLOSE c1_rec;
    END;

  • Error while creating Client Proxy from SE80

    Hi all,
    I am trying to create Client Proxy with WSDL through SE80. There is no involvement of XI to create the Proxy.
    I am using the option 'Local file' and uploading the wsdl file.
    But I am getting the following errors.
    "Proxy-Generierung: Fehler aufgetreten"
    "Exception occurred in library handler"
    "Illegal syntax: Element header has invalid enhancement attribute
    http://schemas.xmlsoap.org/wsdl/:required"
    If any one could understand them and worked in a similar scenario, pls help me out.
    regards,
    teja.

    hi,
    you might want to post the WSDL in question for us to have a look at.
    but actually, the error message tells a lot:
    http://schemas.xmlsoap.org/wsdl/:required
    the second colon(, the one between wsdl/ and required, makes this expression an illegal one in any kind of a URI-like meaning (namespace, ref-URL, ...)
    anton

  • Error while SOAP Client Request , can u please Help me ?

    The following Error I am getting While the Java Guys trying ti call the Webservice , which i have defined in X I .
    <b>
    Main....
    Main....222222
    Reading WSDL document from 'http://xidev:50100/XISOAPAdapter/MessageServlet?channel=:BS_DISTANCE_CHECK_SOAP:CC_DistanceCheck_SOAP_Sender'
    Done setting...
    log4j:WARN No appenders could be found for logger (org.apache.axis.i18n.ProjectResourceBundle).
    log4j:WARN Please initialize the log4j system properly.
    WSDLException (at /html): faultCode=INVALID_WSDL: Expected element 'definitions'.:</b>
    <b>
    <b>
    My scenario is like I want via web service I need to pass request to RFC and get the response back . This calling webservice is external java application .</b></b>
    Can u please tell me What steps i have to do in XI ?
    I have to do synchronous Interface between RFC and webservice right ?
    <b>First I have done this scenario by designing IR and in Configuration I have used SOAP Sender and RFC Receiver adapter . Using Synchronous Interface</b>
    Using Tools -- > Define WebService . I have Defined that as WebService . I has creatd the WSDL File for me.
    I have given the SWDL file and the URL like the following
    http://xidev:8021/XISOAPAdapter/MessageServlet?channel=:BS_DISTANCE_CHECK_SOAP:CC_DistanceCheck_SOAP_Sender
    If i copy and paste this URL in my pc .It is showing the Message Servlet Status OK . and some informations also it is giving .
    But the java guys try to use this URL in their web service calling module it is not working .
    The way what i have done is corret ? or something i have to do ?
    What input i have to give to Java Guys to call the webservice ?
    <b>
    I have tested in AltovaXML Spy it is working</b>
    Can you please give your suggestions asap
    Regards .,
    V.Rangarajan.

    I don't think the code you are using will work with SFTP/SSH server. The code you are using is for FTP which is a different protocol.
    Try the following API
    http://www.jscape.com/sftp/

  • Error while running Client for accessing EJB3.0 wes service..

    Hi:
    I have created client for accessing EJB3.0 web service using Jax-ws.
    I am using JBoss server.
    But the problem is after running the client i am getting following error :
    Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/xml/messaging/saaj/soap/AttachmentPartImpl
         at com.sun.xml.ws.message.AttachmentUnmarshallerImpl.<clinit>(AttachmentUnmarshallerImpl.java:55)
         at com.sun.xml.ws.client.sei.ResponseBuilder$DocLit.readResponse(ResponseBuilder.java:500)
         at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:242)
         at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:210)
         at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:103)
         at $Proxy25.celsiusToFarenheit(Unknown Source)
         at MainMethod.main(MainMethod.java:21)Can any body give me solution on this?
    Thank You.

    the problem seems to lie in a combination of JDK 6 and a specific version of SAAJ that it has integrated. Different resources on the net indicate that if you use a newer version of SAAJ, 1.3.1 or higher, it should be fixed.

  • Error while running Client Program of Entity Bean (BMP) : javax.naming.Name

    Hi,
    I have tried an entity bean application. I am able to deploy my entity bean in WebLogic 7.0 server. But when I ran the client program I am getting the following error.
    javax.naming.NameNotFoundException : Unable to resolve 'java:comp.env/ejb/AccountBean' Resolved: ' ' unresolved : 'java:comp': remaining name 'java:comp.env/ejb/AccountBean'
    My ejb-jar.xml is as follows:
    <ejb-jar>
    <enterprise-beans>
    <entity>
    <ejb-name>AccountBean</ejb-name>
    <home>AccountHome</home>
    <remote>Account</remote>
    <ejb-class>AccountBean<ejb-class>
    <persistance-type>Bean</persistance-type>
    <prim-key-class>AccountPK</prim-key-class>
    <reentrant>False</reentrant>
    <primkey-field>AccountID</primkey-field>
    <env-entry>
    <env-entry-name>jdbc.drivers</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>oracle.jdbc.driver.OracleDriver</env-entry-value>
         </env-entry>
    <env-entry>
    <env-entry-name>JDBC-URL</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>jdbc:oracle:thin:@erp:1521:Oracle9i</env-entry-value>
         </env-entry>
         <ejb-ref>
                   <ejb-ref-name>ejb/AccountBean</ejb-ref-name>
                   <ejb-ref-type>Entity</ejb-ref-type>
                   <home>AccountHome</home>
                   <remote>Account</Account>
                   <ejb-link>AccountBean</ejb-link>
              <ejb-ref>
              <resource-ref>
                   <resource-ref-name>jdbc/bmp-account</resource-ref-name>
                   <resouce-ref-type>javax.sql.DataSource</resource-ref-type>
                   <res-auth>Container</res-auth>
                   <res-sharing-scope>sharable</res-sharing-sope>
              <resource-ref>
         </entity>
    </enterprise-beans>
    <assembly-descriptor>
    </assembly-descriptor>
    <ejb-jar>
    My weblogic-ejb-jar.xml is as follows:
    <weblogic-ejb-jar>
         <weblogic-enterprise-bean>
              <ejb-name>AccountBean</ejb-name>
              <entity-descriptor>
                   <pool>
                   </pool>
                   <entity-cache>
                        <cache-between-transaction>false</cache-between-transcation>
                   </entity-cache>
                   <persistance>
                   </persistance>
                   <entity-clustering>
                   </entity-clustering>
              </entity-descripto>
              <transaction-descriptor>
              </transaction-descriptor>     
              <reference-descriptor>
                   <resource-descriptor>
                        <res-ref-name>jdbc/bmp-accoun</res-ref-name>
                        <jndi-name>MariJNDI</jndi-name>
                   </resource-descriptor>
                   <ejb-reference-descriptor>
                        <ejb-ref-name>ejb/AccountBean</ejb-ref-name>
                        <jndi-name>AccountBean</jndi-name>
                   </ejb-reference-descriptor>
              </reference-descriptor>
              </weblogic-enterprise-bean>
         </weblogic-ejb-jar>
    My Client Program is as follows:
    import javax.ejb.*;
    public class Client{
    public static void main(String[] args){
    Account account = null;
         try{
         Context = new InitialContext(System.getProperties());
         AccountHome home = (AccountHome) ctx.lookup("java:comp/env/ejb/AccountBean");
         home.create("123-456-7890","John");
         }catch(...){
    Any help is appreciated.
    Thanks in advance.
    Regards,
    Mari.

    Hi,
    My Client Program is as follows:
    import javax.ejb.*;
    public class Client{
    public static void main(String[] args){
    Account account = null;
         try{
    Context = new
    Context = new
    InitialContext(System.getProperties());
    AccountHome home = (AccountHome)
    AccountHome)
    ctx.lookup("java:comp/env/ejb/AccountBean");
         home.create("123-456-7890","John");
         }catch(...){
    }What are the System Properties? Are you running the client remotely? Are you running the client as a stand alone Java app or using the Weblogic's Client Runner? 'java:comp' as the jndi name is usually used when the client runs inside the container... But it doesn't seem to be the case.
    Kexkey

  • Error while Updating Client Metadata & Certs on Oracle Identity Federation

    We need to update the certs on OIF 11g (we are Service Provider's) as our client certificates are expiring soon.
    we got Metadata and Certificate from Client and these are step we followed for updating certs -
    *1. In the OIF 11g - EM console, under OIF server-> security and trust -> under trusted CAs and CRLs, deleted the existing certificate for that partner and upload the new certificates.*
    *2. Then Generate Metadata a new and upload it again under the partners side (OIF - EM - Under OIF server - Fedeartion)*
    This is the ERROR we are getting -
    May 29, 2012 12:41:19 PM oracle.security.fed.sec.SecurityServicesImpl processIncoming
    SEVERE: Certificate was missing when trying to verify digital signature.
    May 29, 2012 12:41:19 PM oracle.security.fed.http.translator.saml.SAMLProtocolMessageTranslator translateMessage
    SEVERE: Signature verification failed for provider ID http://***.uat.*****.com:*
    May 29, 2012 12:41:19 PM oracle.security.fed.controller.ApplicationController processServletRequest
    SEVERE: Exception: {0}
    oracle.security.fed.controller.web.action.RequestHandlerRuntimeException: XML signature verification failed.
    *[2012-05-29T12:41:19.634-05:00] [wls_oif1] [ERROR] [FED-12064] [oracle.security.fed.controller.ApplicationController] [tid: [ACTIVE].ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 004kJ1NbamTFw000jzwkno0003540016U3,0:1] [APP: OIF#11.1.1.1.0] [URI: https://*****-uat.*******:443/fed/sp/authnResponse20] Exception: {0}[[*
    oracle.security.fed.controller.web.action.RequestHandlerRuntimeException: XML signature verification failed.
    at oracle.security.fed.http.translator.saml.SAMLProtocolMessageTranslator.translateMessage(Unknown Source)
    at oracle.security.fed.http.handlers.profiles.sp.AuthnResponseV20RequestHandler.generateEvent(Unknown Source)
    at oracle.security.fed.controller.web.action.RequestHandlerSupport.perform(Unknown Source)
    at oracle.security.fed.controller.ApplicationController.processServletRequest(Unknown Source)
    Please let us know...where did we wrong.
    Thanks in Advance!!!

    Can you guys help?
    801072, user12038686, OIDM,

Maybe you are looking for