(DII) Client Example - - missing class error

To jump into DII, I have copied the source for the "Dynamic Invocation Interface (DII) Client Example" into a new class created in netbeans. The api jar for JAX-RPC has been mounted in the environment. The example compiles fine, but upon execute the following error comes up:
javax.xml.rpc.ServiceException: java.lang.ClassNotFoundException: com.sun.xml.rpc.client.ServiceFactoryImpl
at javax.xml.rpc.ServiceFactory.newInstance(ServiceFactory.java:65)
at node.HelloClient.main(HelloClient.java:29)
Do I need to get another api here? Looking into the jax-rpc jar file I can see the javax.xml.rpc.ServiceFactory class, but can not see com.sun.xml.rpc.client.ServiceFactoryImpl .
Could someone point me to an answer? Thanks in advance for the help.

The jaxrpc jar that I downloaded was from under the xml downloads (jaxrpc-1_0-fr-api-class.zip). Once extracted this gave me a jar file of jaxrpc-api.jar.
It seems that you might be using a different jar? (jaxrpc-ri.jar)?
Under my downloaded jar file, there is no client belwo the heirarchy of javax/xml/rpc . Where could I find the download for the jar file that you are refrencing?
Thank you for your help.
R

Similar Messages

  • Missing Class error from handler class - urgent question!

    Hi,
    I am getting an "Missing Class" error when running a web service. The web service was generated from a Java class via the "create J2EE web service" option.
    The web service has a JAX-RPC handler class added, which belongs to the same package as a logging class. The logging class is used to write to a file for debug purposes. A "missing class" error is being generated whenever I attempt to invoke the web service (via the enterprise manager test util), the error refers to the logging class which is used by the main handler class. The JAX-RPC handler works fine by itself, the error is only seen when I attempt to use the logging class.
    I have re-built, re-deployed from scratch again, but still get the same error! Am I missing something simple here?
    thanks for any advice

    Hello,
    I have posted something similar, but I am not sure how to get over this issue. I am not sure if this is a code issue, I have scanned both EJB 2.0 and 2.1 specifications, but nothing caught my eye.
    Here is the error I am getting starting this in JDeveloper 1013 :
    Apr 11, 2006 12:17:49 AM com.evermind.server.Application setConfig
    WARNING: Application: current-workspace-app is in failed state as initialization failedjava.lang.InstantiationException: Error initializing ejb-modules: [current-workspace-app:CNSI-JDev-7_Exp-7_0:DbUtilWrapper] - Unable to load ejb-class com.my.common.database.ejb.DbUtilWrapperBean, see section 23.2 of the EJB 2.1 specificationjava.lang.ExceptionInInitializerError: java.lang.NullPointerException
    Here is the ejb-jar.xml :
    <session>
    <description>Session Bean ( Stateless )</description>
    <display-name>DbUtilWrapper</display-name>
    <ejb-name>DbUtilWrapper</ejb-name>
    <home>com.my.common.database.ejb.DbUtilWrapperHome</home>
    <remote>com.my.common.database.ejb.DbUtilWrapper</remote>
    <local-home>com.my.common.database.ejb.DbUtilWrapperLocalHome</local-home>
    <local>com.my.common.database.ejb.DbUtilWrapperLocal</local>
    <ejb-class>com.my.common.database.ejb.DbUtilWrapperBean</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    </session>
    I am not sure if this should be in the assembly-descriptor, in ejb-jar.xml or orion-ejb-jar.xml :
    <method-permission>
    <unchecked/>
    <method>
    <ejb-name>DBUtilWrapper</ejb-name>
    <method-name>*</method-name>
    </method>
    </method-permission>
    Any ideas ?
    Thanks

  • "Missing Class" error when running web service

    Hi,
    I am getting an "Missing Class" error when running a web service. The web service was generated from a Java class via the "create J2EE web service" option.
    The web service has a JAX-RPC handler class added, which belongs to the same package as a logging class. The logging class is used to write to a file for debug purposes. A "missing class" error is being generated whenever I attempt to invoke the web service (via the enterprise manager test util), the error refers to the logging class which is used by the main handler class. The JAX-RPC handler works fine by itself, the error is only seen when I attempt to use the logging class.
    I have re-built, re-deployed from scratch again, but still get the same error! Am I missing something simple here?
    thanks for any advice

    Cant you paste some of your code, formatted in code tags? It looks like there is a problem passing some of the XMl response, it doesnt like a tag html.
    If you post some code somebody might actually be able to help you.

  • Missing class error in AIA11g O2C PIP/

    Hi All,
    I have installed SOA Suite 11g and deployed AIA3.1 O2C Comms PIP. After deployment, on invoking any service i get the below error and the transaction fails. Can someone tell if there is any other configuration required.
    Any information would be highly appreciated.
    Dependent class: oracle.xml.xpath.XSLExtFunctions
    Loader: sun.misc.Launcher$AppClassLoader@136597364
    Code-Source: /opt/app/oracle/mw_home/oracle_common/modules/oracle.xdk_11.1.0/xmlparserv2_sans_jaxp_services.jar
    Configuration: /opt/app/oracle/mw_home/oracle_common/modules/oracle.xdk_11.1.0/xmlparserv2_sans_jaxp_services.jar
    This load was initiated at default.composite.QueryProductClassAndAttributesSCECommsReqABCSImpl.soa_f11f2a84-66b0-4f13-b3f3-25608aa1b717:1.0 using the loadClass() method.
    Check the detailed root cause described in the exception message text and verify that the XPath query is correct.
    .>
    <Nov 21, 2011 9:57:11 PM EST> <Error> <oracle.soa.bpel.engine.xml> <BEA-000000> <
    javax.xml.xpath.XPathExpressionException: Extension function error: Class not found '
    Missing class: oracle.apps.aia.core.xpath.AIAFunctions
    Dependent class: oracle.xml.xpath.XSLExtFunctions
    Loader: sun.misc.Launcher$AppClassLoader@136597364
    Code-Source: /opt/app/oracle/mw_home/oracle_common/modules/oracle.xdk_11.1.0/xmlparserv2_sans_jaxp_services.jar
    Configuration: /opt/app/oracle/mw_home/oracle_common/modules/oracle.xdk_11.1.0/xmlparserv2_sans_jaxp_services.jar
    Thanks,
    Vijay.

    Hello,
    I have posted something similar, but I am not sure how to get over this issue. I am not sure if this is a code issue, I have scanned both EJB 2.0 and 2.1 specifications, but nothing caught my eye.
    Here is the error I am getting starting this in JDeveloper 1013 :
    Apr 11, 2006 12:17:49 AM com.evermind.server.Application setConfig
    WARNING: Application: current-workspace-app is in failed state as initialization failedjava.lang.InstantiationException: Error initializing ejb-modules: [current-workspace-app:CNSI-JDev-7_Exp-7_0:DbUtilWrapper] - Unable to load ejb-class com.my.common.database.ejb.DbUtilWrapperBean, see section 23.2 of the EJB 2.1 specificationjava.lang.ExceptionInInitializerError: java.lang.NullPointerException
    Here is the ejb-jar.xml :
    <session>
    <description>Session Bean ( Stateless )</description>
    <display-name>DbUtilWrapper</display-name>
    <ejb-name>DbUtilWrapper</ejb-name>
    <home>com.my.common.database.ejb.DbUtilWrapperHome</home>
    <remote>com.my.common.database.ejb.DbUtilWrapper</remote>
    <local-home>com.my.common.database.ejb.DbUtilWrapperLocalHome</local-home>
    <local>com.my.common.database.ejb.DbUtilWrapperLocal</local>
    <ejb-class>com.my.common.database.ejb.DbUtilWrapperBean</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    </session>
    I am not sure if this should be in the assembly-descriptor, in ejb-jar.xml or orion-ejb-jar.xml :
    <method-permission>
    <unchecked/>
    <method>
    <ejb-name>DBUtilWrapper</ejb-name>
    <method-name>*</method-name>
    </method>
    </method-permission>
    Any ideas ?
    Thanks

  • Oracle AppsAdaptor causing Missing class error

    Hi
    Can any one help with the error we are encountering below. We have a production process that uses an Oracle Apps adaptor to call one of the supplied Oracle API's to insert data into the fnd_flex_values table from a BPEL process. Originally the adaptor was working but recently it stopped working when inserting records causing the errors below.
    <bindingFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>file:/nas/orasoft/delta/product/10.1.3/soaas/bpel/domains/default/tmp/.bpel_InsertProjectCodesOracle_1.4_6f5863e8891810138c841b2d8fbe166b.tmp/InsertFlexValues.wsdl [ InsertFlexValues_ptt::InsertFlexValues(InputParameters,OutputParameters) ] - WSIF JCA Execute of operation 'InsertFlexValues' failed due to: Could not instantiate InteractionSpec oracle.tip.adapter.soa_erp.AppsStoredProcedureInteractionSpec due to:
    Missing class: oracle.tip.adapter.soa_erp.AppsStoredProcedureInteractionSpec
    Dependent class: oracle.tip.adapter.fw.wsif.jca.WSIFOperation_JCA
    Loader: oracle.bpel.common:10.1.3
    Code-Source: /nas/orasoft/delta/product/10.1.3/soaas/bpel/lib/orabpel.jar
    Configuration: <code-source> in /nas/orasoft/delta/product/10.1.3/soaas/j2ee/oc4j_soa/config/server.xml
    This load was initiated at orabpel.root:0.0.0 using the Class.forName() method.
    The missing class is not available from any code-source or loader in the system.; nested exception is:
    oracle.classloader.util.AnnotatedClassNotFoundException:
    Missing class: oracle.tip.adapter.soa_erp.AppsStoredProcedureInteractionSpec
    Dependent class: oracle.tip.adapter.fw.wsif.jca.WSIFOperation_JCA
    Loader: oracle.bpel.common:10.1.3
    Code-Source: /nas/orasoft/delta/product/10.1.3/soaas/bpel/lib/orabpel.jar
    Configuration: <code-source> in /nas/orasoft/delta/product/10.1.3/soaas/j2ee/oc4j_soa/config/server.xml
    This load was initiated at orabpel.root:0.0.0 using the Class.forName() method.
    The missing class is not available from any code-source or loader in the system.; nested exception is:
    org.collaxa.thirdparty.apache.wsif.WSIFException: Could not instantiate InteractionSpec oracle.tip.adapter.soa_erp.AppsStoredProcedureInteractionSpec due to:
    Missing class: oracle.tip.adapter.soa_erp.AppsStoredProcedureInteractionSpec
    Dependent class: oracle.tip.adapter.fw.wsif.jca.WSIFOperation_JCA
    Loader: oracle.bpel.common:10.1.3
    Code-Source: /nas/orasoft/delta/product/10.1.3/soaas/bpel/lib/orabpel.jar
    Configuration: <code-source> in /nas/orasoft/delta/product/10.1.3/soaas/j2ee/oc4j_soa/config/server.xml
    This load was initiated at orabpel.root:0.0.0 using the Class.forName() method.
    The missing class is not available from any code-source or loader in the system.; nested exception is:
    oracle.classloader.util.AnnotatedClassNotFoundException:
    Missing class: oracle.tip.adapter.soa_erp.AppsStoredProcedureInteractionSpec
    Dependent class: oracle.tip.adapter.fw.wsif.jca.WSIFOperation_JCA
    Loader: oracle.bpel.common:10.1.3
    Code-Source: /nas/orasoft/delta/product/10.1.3/soaas/bpel/lib/orabpel.jar
    Configuration: <code-source> in /nas/orasoft/delta/product/10.1.3/soaas/j2ee/oc4j_soa/config/server.xml
    This load was initiated at orabpel.root:0.0.0 using the Class.forName() method.
    The missing class is not available from any code-source or loader in the system.</summary>
    </part><part name="detail"><detail>org.collaxa.thirdparty.apache.wsif.WSIFException: Could not instantiate InteractionSpec oracle.tip.adapter.soa_erp.AppsStoredProcedureInteractionSpec due to:
    Missing class: oracle.tip.adapter.soa_erp.AppsStoredProcedureInteractionSpec
    Dependent class: oracle.tip.adapter.fw.wsif.jca.WSIFOperation_JCA
    Loader: oracle.bpel.common:10.1.3
    Code-Source: /nas/orasoft/delta/product/10.1.3/soaas/bpel/lib/orabpel.jar
    Configuration: <code-source> in /nas/orasoft/delta/product/10.1.3/soaas/j2ee/oc4j_soa/config/server.xml
    This load was initiated at orabpel.root:0.0.0 using the Class.forName() method.
    The missing class is not available from any code-source or loader in the system.; nested exception is:
    oracle.classloader.util.AnnotatedClassNotFoundException:
    Missing class: oracle.tip.adapter.soa_erp.AppsStoredProcedureInteractionSpec
    Dependent class: oracle.tip.adapter.fw.wsif.jca.WSIFOperation_JCA
    Loader: oracle.bpel.common:10.1.3
    Code-Source: /nas/orasoft/delta/product/10.1.3/soaas/bpel/lib/orabpel.jar
    Configuration: <code-source> in /nas/orasoft/delta/product/10.1.3/soaas/j2ee/oc4j_soa/config/server.xml
    This load was initiated at orabpel.root:0.0.0 using the Class.forName() method.
    The missing class is not available from any code-source or loader in the system.</detail>
    </part></bindingFault>

    Hi,
    This issue occurs if any tag is missing in one of the following files
    oc4-ra.xml
    application.xml
    server.xml
    check manually in oc4j-ra.xml and server.xml if any tags are missing particularly <connector-factory> tag
    %ORACLE_HOME%\j2ee\oc4j_soa\application-deployments\default\ AppsAdapter\oc4j-ra.xml if any tag is missing.
    once modified restart oc4j server and test
    Regards,
    Deepa

  • OracleAS 10.1.3 missing class error

    Hi
    When I deploy my ear file on a newly installed OracleAS 10.1.3 I get the following error. I used to deploy the same ear file on previous version of OracleAS 10.1.2 and it worked fine. Please let me know how to fix this problem.
    Thanks in advance.
    "oracle.classloader.util.AnnotatedNoClassDefFoundError:
         Missing class: org.apache.log4j.Logger
         Dependent class: gov.faa.fast.UI.Controller
         Loader: CRUX.root:0.0.2
    Code-Source: /C:/Ora10GAS/j2ee/home/applications/CRUX/CRUX-ejb.jar
         Configuration: <ejb> in C:\Ora10GAS\j2ee\home\applications\CRUX
    The missing class is not available from any code-source or loader in the system.     at oracle.classloader.PolicyClassLoader.handleClassNotFound (PolicyClassLoader.java:2051) [C:/Ora10GAS/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@9627532]     at oracle.classloader.PolicyClassLoader.internalLoadClass "

    Mustafa,
    This is just a suggestion. In OC4J stand-alone 10.1.3.0.0, you can still use the "applib" subdirectory. In other words, try removing the shared library you created, as well as any references to it in any of your deployment descriptors or OC4J configuration files and simply place all the required JARs in the "applib" subdirectory. Then undeploy your application completely -- in other words, delete all related files and directories and remove all references to it in the OC4J configuration files -- and deploy it again.
    Good Luck,
    Avi.

  • Problems running DII client for consuming webservices

    Hello webservices experts,
    am running into problems - when I try running my DII client for a webservice that I've successfully deployed on j2sdkee1.4.
    The exception goes like this
    java.rmi.RemoteException: JAXRPC.JAXRPCSERVLET.28: Missing port information
         at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:462)
    I've searched this forum and others as well. Although a lot of people seem to be having this problem nobody seems to have got it solved. Any way out? The client is a mere copy paste of the DII client example in j2eetutorial 1.4

    Solved it ! Some endpoint alias problem during deployment ! Now works fine !

  • Error Missing class: oracle.xdb.XMLType with xdb.jar in JDeveloper 10.1.3

    I am using JDeveloper 10.1.3 and get the following error when executing the web service proxy with my call to the web service( this web service is using class OracleXMLSave with method insertXML):
    I have included the xdb.jar in my project properties libraries of the web service project and added a file group with xdb.jar to the properties of the webservices.deploy. What else needs to be done? This worked in JDeveloper 10.1.2.
    THE ERROR after running proxy in log window:
    java.rmi.ServerException:
    start fault message:
    caught exception while handling request: caught exception while handling request: oracle.classloader.util.AnnotatedNoClassDefFoundError:
         Missing class: oracle.xdb.XMLType
         Dependent class: dbdata2package.DBDataOperations
         Loader: DBData2WSApp-DBData2Operations-WS.web.WebServices:0.0.0
         Code-Source: /D:/h/cots/Oracle/JDeveloper10g10.1.3/j2ee/home/applications/DBData2WSApp-DBData2Operations-WS/WebServices/WEB-INF/classes/
         Configuration: WEB-INF/classes/ in D:\h\cots\Oracle\JDeveloper10g10.1.3\j2ee\home\applications\DBData2WSApp-DBData2Operations-WS\WebServices\WEB-INF\classes
    The missing class is available from the following locations:
         1. Code-Source: /D:/h/cots/Oracle/JDeveloper10g10.1.3/j2ee/home/applications/DBDataWSApp-webservice-WS/WebServices/WEB-INF/lib/xdb.jar (from WEB-INF/lib/ directory in D:\h\cots\Oracle\JDeveloper10g10.1.3\j2ee\home\applications\DBDataWSApp-webservice-WS\WebServices\WEB-INF\lib)
         This code-source is available in loader DBDataWSApp-webservice-WS.web.WebServices:0.0.0.
         2. Code-Source: /D:/h/cots/Oracle/JDeveloper10g10.1.3/j2ee/home/applications/DBDataWSApp-DBDataOperations-WS/WebServices/WEB-INF/lib/xdb.jar (from WEB-INF/lib/ directory in D:\h\cots\Oracle\JDeveloper10g10.1.3\j2ee\home\applications\DBDataWSApp-DBDataOperations-WS\WebServices\WEB-INF\lib)
         This code-source is available in loader DBDataWSApp-DBDataOperations-WS.web.WebServices:0.0.0.
    :end fault message
         at oracle.j2ee.ws.client.StreamingSender._raiseFault(StreamingSender.java:545)
         at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:390)
         at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:111)
         at dbdata2packageproxy.runtime.DBData2WSSoapHttp_Stub.insertData(DBData2WSSoapHttp_Stub.java:80)
         at dbdata2package.DBData2WSSoapHttpPortClient.insertData(DBData2WSSoapHttpPortClient.java:54)
         at dbdata2package.DBData2WSSoapHttpPortClient.main(DBData2WSSoapHttpPortClient.java:34)
    Process exited with exit code 0.

    Hi,
    actually you increment the index
    pstmt.setString(++idx,inrecord.getCommentID());
    which means you never have an index of 0 but always start with 1
    Frank

  • XSQL Error. Missing class: oracle.xdb.XMLType XML

    I am using OC4J and XSQL to publish information and most of the normal stuff runs fine. When I try to run the following query, I get errors. I copied the following example from XML developer's kit manual and work fine in SQL*Plus.
    =============================
    <?xml version="1.0"?>
    <xsql:query connection="demo" xmlns:xsql="urn:oracle-xsql">
    select XmlElement("DepartmentList",
    XmlAgg(
    XmlElement("Department",
    XmlAttributes(deptno as "Id"),
    XmlForest(dname as "Name"),
    (select XmlElement("Employees",
    XmlAgg(
    XmlElement("Employee",
    XmlAttributes(empno as "Id"),
    XmlForest(ename as "Name",
    sal as "Salary",
    job as "Job")
    from emp e
    where e.deptno = d.deptno
    ) as result
    from dept d
    order by dname
    </xsql:query>
    ====================
    Following is the header portion of the errors shown.
    XML-25017: Unexpected Error Occurred
    oracle.classloader.util.AnnotatedNoClassDefFoundError:
    Missing class: oracle.xdb.XMLType
    Dependent class: oracle.xml.sql.core.OracleXMLConvert
    Loader: oracle.xml:10.1.0_2
    Code-Source: /C:/oracle/oc4j_1013/lib/xsu12.jar
    Configuration: <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in C:\oracle\oc4j_1013\j2ee\home\oc4j.jar
    The missing class is available from the following locations:
    1. Code-Source: /C:/oracle/oc4j_1013/j2ee/home/applications/xsql/xsql/WEB-INF/lib/xdb.jar (from WEB-INF/lib/ directory in C:\oracle\oc4j_1013\j2ee\home\applications\xsql\xsql\WEB-INF\lib)
    This code-source is available in loader xsql.web.xsql:0.0.0.
    I tried to search several forums but was unable to find any solution to resolve this issue. Any help is appreciated.
    Thanks,

    I am using OC4J and XSQL to publish information and most of the normal stuff runs fine. When I try to run the following query, I get errors. I copied the following example from XML developer's kit manual and work fine in SQL*Plus.
    =============================
    <?xml version="1.0"?>
    <xsql:query connection="demo" xmlns:xsql="urn:oracle-xsql">
    select XmlElement("DepartmentList",
    XmlAgg(
    XmlElement("Department",
    XmlAttributes(deptno as "Id"),
    XmlForest(dname as "Name"),
    (select XmlElement("Employees",
    XmlAgg(
    XmlElement("Employee",
    XmlAttributes(empno as "Id"),
    XmlForest(ename as "Name",
    sal as "Salary",
    job as "Job")
    from emp e
    where e.deptno = d.deptno
    ) as result
    from dept d
    order by dname
    </xsql:query>
    ====================
    Following is the header portion of the errors shown.
    XML-25017: Unexpected Error Occurred
    oracle.classloader.util.AnnotatedNoClassDefFoundError:
    Missing class: oracle.xdb.XMLType
    Dependent class: oracle.xml.sql.core.OracleXMLConvert
    Loader: oracle.xml:10.1.0_2
    Code-Source: /C:/oracle/oc4j_1013/lib/xsu12.jar
    Configuration: <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in C:\oracle\oc4j_1013\j2ee\home\oc4j.jar
    The missing class is available from the following locations:
    1. Code-Source: /C:/oracle/oc4j_1013/j2ee/home/applications/xsql/xsql/WEB-INF/lib/xdb.jar (from WEB-INF/lib/ directory in C:\oracle\oc4j_1013\j2ee\home\applications\xsql\xsql\WEB-INF\lib)
    This code-source is available in loader xsql.web.xsql:0.0.0.
    I tried to search several forums but was unable to find any solution to resolve this issue. Any help is appreciated.
    Thanks,

  • Composite invoking Spring Context errors with Missing class indicator field

    Hi. I’m working on a composite with a Spring Context component that is referenced in a BPMN process and have run into some issues and I was hoping you may have some insight.
    I’m able to deploy the composite successfully, however when I try testing it on the SOA Server, it fails with the exception below:
    <auditQueryPayload auditId="17008" ciKey="12">
    <dataState>
    <dataObject name="FaultMessage" isBusinessIndicator="false">
    <value> com.oracle.bpel.client.BPELFault: faultName: {{http://schemas.oracle.com/bpel/extension}remoteFault} messageType: {{http://schemas.oracle.com/bpel/extension}RuntimeFaultMessage} parts: {{ summary=<summary>Exception [EclipseLink-44] (Eclipse Persistence Services - 2.3.1.v20111018-r10243): org.eclipse.persistence.exceptions.DescriptorException Exception Description: Missing class indicator field from database row [UnmarshalRecord()]. Descriptor: XMLDescriptor(com.bea.infra.events.ExtendedData --> [DatabaseTable(ns2:ExtendedData)])</summary> ,detail=<detail> Exception Description: Missing class indicator field from database row [UnmarshalRecord()]. Descriptor: XMLDescriptor(com.bea.infra.events.ExtendedData --> [DatabaseTable(ns2:ExtendedData)])</detail>} </value>
    </dataObject>
    </dataState>
    </auditQueryPayload>
    The class referenced in the error, ExtendedData, is a very simple, abstract class. Here it is:
    @XmlSeeAlso( { AssetUnregistered.class, ExtractionReassign.class,
    RelatedAssetRegister.class, ExtractionSubsequentNotify.class,
    ExtractionIntialNotify.class, AssetSubmission.class,
    ExtractionStatusChanged.class, MultiUse.class,
    ALERExtendedData.class })
    public abstract class ExtendedData {
    Do you have any thoughts or would know someone who could help?
    Thanks,
    Mike

    I've tried adding the jar to the classpath, installing the jar on the weblogic server, adding all the dependencies, and adding the jar to the project sourcepath. None of these worked either. Any Help would be appreciated.

  • Using Studio to develop DII Client for DiningGuide example

    Hi,
    I am trying to develop a DII client to the DiningGuide example from the Java Studio Enterprise Tutorials and Code Camps:
    http://developers.sun.com/prodtech/javatools/jsenterprise/learning/tutorials/index.html
    I am using Studio6 with Application Server 7 update 3 with Java WSDP 1.3 [JAX-RPC 1.1 support]
    The question is how does Studio support JAX-RPC DII client development ? I understand that the config.xml file is different between Static stub based client and a DII client. Please let me know as to how to configure
    Studio to do this.
    Below is the code that is new in the DIIClient shown in 3 sections:
    - imports area in CustomerReviewTable.java
    - getCustomerReviewByName method in CustomerReviewTable.java
    [Basically taking the code from
    http://java.sun.com/webservices/docs/1.0/tutorial/doc/JAXRPC6.html#75222
            and modifying this to use this service and make appropriate
    changes for the return value (Vector).
            I suspect that this is where the problem is but need help to fix
    it. - Thanks!!]
    - Variables declaration new for DIIClient
    - The WSDL for the DGWebService service is also shown
    I tried it with both JAXRPC 1.0 and JAXRPC 1.1 [Setting this for the
    Service in Studio 6] and regenerating the Service code
    but did not see any difference.
    Right now, with the code shown below, I do not get any exceptions, but
    it doesnot show any reviews [Vector returned is null].
    Really appreciate your help,
    Sridhar.
    ============ imports area in CustomerReviewTable.java ===============
    package DIIClient;
    import javax.swing.table.*;
    import java.util.*;
    import WebService.DGWebServiceClientGenClient.*;
    /* New for DII */
    import javax.xml.rpc.Call;
    import javax.xml.rpc.Service;
    import javax.xml.rpc.JAXRPCException;
    import javax.xml.namespace.QName;
    import javax.xml.rpc.ServiceFactory;
    import javax.xml.rpc.ParameterMode;
    ========= getCustomerReviewByName method in CustomerReviewTable.java
    =========
    private Vector getCustomerReviewByName(java.lang.String
    restaurantname) {
    Vector custList = new Vector();
    try {
    /* Old Static Stub in the Swing Client that works:
    WebService.DGWebServiceClientGenClient.DGWebService service2
    = new
    WebService.DGWebServiceClientGenClient.DGWebService_Impl();
    WebService.DGWebServiceClientGenClient.DGWebServiceServantInterface
    port = service2.getDGWebServiceServantInterfacePort();
    custList =
    (java.util.Vector)port.getCustomerreviewsByRestaurant(restaurantname);
    /* New DII Code below ... */
    System.out.println("Now using DII Code ...");
    ServiceFactory factory = ServiceFactory.newInstance();
    Service service = factory.createService(new
    QName(qnameService));
    QName port = new QName(qnamePort);
    Call call = service.createCall(port);
    call.setTargetEndpointAddress(endPointAddress);
    call.setProperty(Call.SOAPACTION_USE_PROPERTY, new
    Boolean(true));
    call.setProperty(Call.SOAPACTION_URI_PROPERTY, "");
    call.setProperty(ENCODING_STYLE_PROPERTY, URI_ENCODING);
    QName QNAME_TYPE_STRING = new QName(NS_XSD, "string");
    QName QNAME_TYPE_VECTOR = new QName(NS_XSD, "vector");
    call.setReturnType(QNAME_TYPE_VECTOR);
    call.setOperationName(new QName(BODY_NAMESPACE_VALUE,
    "getCustomerreviewsByRestaurant"));
    call.addParameter("String_1", QNAME_TYPE_STRING,
    ParameterMode.IN);
    String[] params = { restaurantname };
    custList = (java.util.Vector) call.invoke (params);
    System.out.println(custList);
    catch (Exception ex) {
    System.err.println("Caught an exception." );
    ex.printStackTrace();
    return custList;
    ============ Variables declaration new for DIIClient ====================
    //Variables declaration new for DIIClient
    private static String qnameService = "DGWebService";
    private static String qnamePort = "DGWebServiceServantInterface";
    private static String endPointAddress =
    "http://localhost:80/DGWebService/DGWebService";
    private static String BODY_NAMESPACE_VALUE = "urn:DGWebService/wsdl";
    private static String ENCODING_STYLE_PROPERTY =
    "javax.xml.rpc.encodingstyle.namespace.uri";
    // private static String NS_XSD = "http://www.w3.org/2001/XMLSchema";
    private static String NS_XSD =
    "http://java.sun.com/jax-rpc-ri/internal";
    private static String URI_ENCODING =
    "http://schemas.xmlsoap.org/soap/encoding/";
    //http://schemas.xmlsoap.org/soap/encoding/
    //http://java.sun.com/jax-rpc-ri/internal
    ============ The WSDL for the DGWebService service =================
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="DGWebService" targetNamespace="urn:DGWebService/wsdl"
    xmlns:tns="urn:DGWebService/wsdl"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:ns2="http://java.sun.com/jax-rpc-ri/internal"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:ns3="urn:DGWebService/types">
    <types>
    <schema targetNamespace="http://java.sun.com/jax-rpc-ri/internal"
    xmlns:tns="http://java.sun.com/jax-rpc-ri/internal"
    xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
    <import namespace="urn:DGWebService/types"/>
    <complexType name="vector">
    <complexContent>
    <extension base="tns:list">
    <sequence/></extension></complexContent></complexType>
    <complexType name="list">
    <complexContent>
    <extension base="tns:collection">
    <sequence/></extension></complexContent></complexType>
    <complexType name="collection">
    <complexContent>
    <restriction base="soap11-enc:Array">
    <attribute ref="soap11-enc:arrayType"
    wsdl:arrayType="anyType[]"/></restriction></complexContent></complexType></schema>
    <schema targetNamespace="urn:DGWebService/types"
    xmlns:tns="urn:DGWebService/types"
    xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
    <import namespace="http://java.sun.com/jax-rpc-ri/internal"/>
    <complexType name="CustomerreviewDetail">
    <sequence>
    <element name="customername" type="string"/>
    <element name="restaurantname" type="string"/>
    <element name="review" type="string"/>
    <element name="sampleProperty"
    type="string"/></sequence></complexType>
    <complexType name="RestaurantDetail">
    <sequence>
    <element name="address" type="string"/>
    <element name="cuisine" type="string"/>
    <element name="description" type="string"/>
    <element name="neighborhood" type="string"/>
    <element name="phone" type="string"/>
    <element name="rating" type="int"/>
    <element name="restaurantname" type="string"/>
    <element name="sampleProperty"
    type="string"/></sequence></complexType></schema></types>
    <message name="DGWebServiceServantInterface_createCustomerreview">
    <part name="String_1" type="xsd:string"/>
    <part name="String_2" type="xsd:string"/>
    <part name="String_3" type="xsd:string"/></message>
    <message
    name="DGWebServiceServantInterface_createCustomerreviewResponse"/>
    <message name="DGWebServiceServantInterface_getAllRestaurants"/>
    <message name="DGWebServiceServantInterface_getAllRestaurantsResponse">
    <part name="result" type="ns2:vector"/></message>
    <message name="DGWebServiceServantInterface_getCustomerreviewDetail"/>
    <message
    name="DGWebServiceServantInterface_getCustomerreviewDetailResponse">
    <part name="result" type="ns3:CustomerreviewDetail"/></message>
    <message
    name="DGWebServiceServantInterface_getCustomerreviewsByRestaurant">
    <part name="String_1" type="xsd:string"/></message>
    <message
    name="DGWebServiceServantInterface_getCustomerreviewsByRestaurantResponse">
    <part name="result" type="ns2:vector"/></message>
    <message name="DGWebServiceServantInterface_getRestaurantDetail"/>
    <message name="DGWebServiceServantInterface_getRestaurantDetailResponse">
    <part name="result" type="ns3:RestaurantDetail"/></message>
    <portType name="DGWebServiceServantInterface">
    <operation name="createCustomerreview" parameterOrder="String_1
    String_2 String_3">
    <input
    message="tns:DGWebServiceServantInterface_createCustomerreview"/>
    <output
    message="tns:DGWebServiceServantInterface_createCustomerreviewResponse"/></operation>
    <operation name="getAllRestaurants">
    <input message="tns:DGWebServiceServantInterface_getAllRestaurants"/>
    <output
    message="tns:DGWebServiceServantInterface_getAllRestaurantsResponse"/></operation>
    <operation name="getCustomerreviewDetail">
    <input
    message="tns:DGWebServiceServantInterface_getCustomerreviewDetail"/>
    <output
    message="tns:DGWebServiceServantInterface_getCustomerreviewDetailResponse"/></operation>
    <operation name="getCustomerreviewsByRestaurant"
    parameterOrder="String_1">
    <input
    message="tns:DGWebServiceServantInterface_getCustomerreviewsByRestaurant"/>
    <output
    message="tns:DGWebServiceServantInterface_getCustomerreviewsByRestaurantResponse"/></operation>
    <operation name="getRestaurantDetail">
    <input
    message="tns:DGWebServiceServantInterface_getRestaurantDetail"/>
    <output
    message="tns:DGWebServiceServantInterface_getRestaurantDetailResponse"/></operation></portType>
    <binding name="DGWebServiceServantInterfaceBinding"
    type="tns:DGWebServiceServantInterface">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
    style="rpc"/>
    <operation name="createCustomerreview">
    <soap:operation soapAction=""/>
    <input>
    <soap:body
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded"
    namespace="urn:DGWebService/wsdl"/></input>
    <output>
    <soap:body
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded"
    namespace="urn:DGWebService/wsdl"/></output></operation>
    <operation name="getAllRestaurants">
    <soap:operation soapAction=""/>
    <input>
    <soap:body
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded"
    namespace="urn:DGWebService/wsdl"/></input>
    <output>
    <soap:body
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded"
    namespace="urn:DGWebService/wsdl"/></output></operation>
    <operation name="getCustomerreviewDetail">
    <soap:operation soapAction=""/>
    <input>
    <soap:body
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded"
    namespace="urn:DGWebService/wsdl"/></input>
    <output>
    <soap:body
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded"
    namespace="urn:DGWebService/wsdl"/></output></operation>
    <operation name="getCustomerreviewsByRestaurant">
    <soap:operation soapAction=""/>
    <input>
    <soap:body
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded"
    namespace="urn:DGWebService/wsdl"/></input>
    <output>
    <soap:body
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded"
    namespace="urn:DGWebService/wsdl"/></output></operation>
    <operation name="getRestaurantDetail">
    <soap:operation soapAction=""/>
    <input>
    <soap:body
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded"
    namespace="urn:DGWebService/wsdl"/></input>
    <output>
    <soap:body
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded"
    namespace="urn:DGWebService/wsdl"/></output></operation></binding>
    <service name="DGWebService">
    <port name="DGWebServiceServantInterfacePort"
    binding="tns:DGWebServiceServantInterfaceBinding">
    <soap:address
    location="http://localhost:80/DGWebService/DGWebService"/></port></service></definitions>
    =================================================================

    you may have a little better luck in the JNI forum.

  • Retriving com class error in add-on client machine

    Dear all,
    i got error com class error when i start the add-on. The add-on working good all  systems except two client system.
    Thanks & Regards
    B.Lakshmi narayanan

    hi you  checked..
    Check it search .
    May be the problem in X86  platform..
    Retrieving the COM class factory for component with CLSID

  • Missing classes from servicegen client jar

    If you generate the WSDL, stubs, etc from an EJB jar, not all the required classes
    are copied to the service_client.jar.
    If your EJB method takes a class (say HomeAddressDTO) and that class inherits from
    a base-class, AddressDTO, then the AddressDTO is not included in the client jar.
    Regards,
    Nick

    if you want to use the same classes on both client and server side
    pls set useservertypes=true in the client element of servicegen.
    It seems wls 7.0ga is not adding base classes for value types to
    the client.jar file. I have filed a CR on this bug. Hope this will be
    fixed for sp1.
    Anyway, it is ok to add more classes to the client.jar manually.
    You may have to do it when reflection cannot find all the required
    classes or if you want to add your client app specific classes.
    regards,
    -manoj
    "Michael Jouravlev" <[email protected]> wrote in message
    news:[email protected]..
    I have the same problem. Do you think it is a bug? AFAIK, the processlooks
    like this: value objects --> WSDL --> client-side stubs for value objects,
    that actually do not have much in common with original ones. As I
    understand, it is possible either to copy manually created value objectsto
    client JAR file (no portability to non-Java clients), or to generate these
    stubs from WSDL. There is a parameter for clientgen task which changes the
    default behaviour. In my case all the parent classes in my value object
    hierarchy are not "mirrored" in client JAR. I think that this is correct,
    because client stubs do not have any hierarchy in them, they are just flat
    structures.
    I added needed classes to client JAR manually, but I think that this is my
    personal design error that I need these classes.
    What do you think?
    Michael.
    "Nick Minutello" <[email protected]> wrote
    in message news:3d094c10$[email protected]..
    If you generate the WSDL, stubs, etc from an EJB jar, not all the
    required
    classes
    are copied to the service_client.jar.
    If your EJB method takes a class (say HomeAddressDTO) and that classinherits from
    a base-class, AddressDTO, then the AddressDTO is not included in theclient jar.
    Regards,
    Nick

  • Deployment error - Missing class: javax.servlet.jsp.jstl.core.Config

    Hi,
    We are using JDeveloper 10.1.3.0.4(SU5) on windows for development of ADF application. We need to deploy the developed application onto Oracle Application Server 10g (10.1.3) which is running on Solaris. We are using BC4J, WAR and EAR deployment profiles in jdeveloper to create the .war and .ear files.
    If I deploy the generated ear on a standalone OC4J server install on my windows PC, it works fine.
    Now when I deploy the generated .ear file onto the Oracle Application Server 10.1.3 through Application Server Control interface and then try to access the jspx pages under our application we are getting following error:
    oracle.classloader.util.AnnotatedNoClassDefFoundError:      Missing class: javax.servlet.jsp.jstl.core.Config     Dependent class: com.sun.faces.application.ViewHandlerImpl     Loader: accaweb.web.accaweb:0.0.0     Code-Source: /oracle/app/oracle/product/10gas3/j2ee/home/applications/accaweb/accaweb/WEB-INF/lib/jsf-impl.jar     Configuration: WEB-INF/lib/ directory in /oracle/app/oracle/product/10gas3/j2ee/home/applications/accaweb/accaweb/WEB-INF/libThe missing class is available from the following locations:     1. Code-Source: /oracle/app/oracle/product/10gas3/j2ee/home/default-web-app/WEB-INF/lib/jstl.jar (from WEB-INF/lib/ directory in /oracle/app/oracle/product/10gas3/j2ee/home/default-web-app/WEB-INF/lib)      This code-source is available in loader default.web.defaultWebApp:0.0.0.      at oracle.classloader.PolicyClassLoader.handleClassNotFound (PolicyClassLoader.java:2051) [oracle/app/oracle/product/10gas3/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@1482257]
    I have confirmed that the .war file inside the .ear file does contain the jstl.jar file under WEB-INF/lib folder. And the jar file does contain the class 'javax.servlet.jsp.jstl.core.Config'
    As a workaround, I found that if I copy the jstl.jar file from default-web-app to my application web-inf/lib folder, things start to work fine. ie copy from: '/oracle/app/oracle/product/10gas3/j2ee/home/default-web-app/WEB-INF/lib/jstl.jar'
    to: '/oracle/app/oracle/product/10gas3/j2ee/home/applications/accaweb/accaweb/WEB-INF/lib/'
    – or –
    Another workaround is to add the '/oracle/app/oracle/product/10gas3/j2ee/home/default-web-app/WEB-INF/lib/jstl.jar' file in the classpath for my web application through Application Server Control setting page.
    Now both of these workaround needs us to perform additional post deployment steps which should really not be required since the jar files is included in the project.
    Has anyone faced this issue? Any pointers in this respect will be a great help.
    regards - rutwik

    Surprise Surprise !
    I just tried deploying the file via uploading it from the Application Server Control UI and it worked fine.
    Till now, I was ftp'ing the ear file from my PC to the server on which Oracle AS is running and was telling Application Server Control to pick form that uploaded location.
    I am still not clear on why it works with HTTP upload and not via the FTP upload?
    cheers - rutwik

  • Error while enabling two way authentication :Client certificate missing

    Hi,I am getting the following error while enabling the two way authentication.The weblogic server 5.1 has accepted both the client ca and server certificates and is listening for SSL on the specified port.But when I try to access thru the secured connection thru my IE it asks for Client Authentication dialog asking for valid Client certificate but I am not able to view any of the client certificate even though I have one which is the trusted root store.and there by giving the error page cannot be displayed .On the server side I get the following error.Thu Mar 08 10:54:35 GMT 05:30 2001:<D> <SSLListenThread> Problem accepting connectionjava.io.IOException: required client certificate missing at weblogic.security.SSL.SSLSocket.serverInit2(SSLSocket.java:711) at weblogic.security.SSL.SSLSocket.serverInit(SSLSocket.java:529) at weblogic.security.SSL.SSLSocket.initialize(SSLSocket.java:219) at weblogic.security.SSL.SSLSocket.performAcceptHandshake(SSLSocket.java:192) at weblogic.security.SSL.SSLSocket.getInputStream(SSLSocket.java:1001) at weblogic.socket.ResettableSocket.<init>(ResettableSocket.java:30) at weblogic.socket.JVMSocketManager.accept(JVMSocketManager.java:377) at weblogic.t3.srvr.ListenThread$RJVMListenRequest.execute(ListenThread.java:506) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)can anybody please guide me what could be wrong.Do I need to change the browser settings.I have enabled SSL 3.0 and SSL 2.0 and all other settings are defaultIt is urgent.pls give some suggestions.Regards,Bhavani

    I think you have to specify the client root in your weblogic.properties
    file.
    here are my settings:
    weblogic.security.enforceClientCert=true
    weblogic.security.certificate.server=democert.pem
    weblogic.security.key.server=demokey.pem
    weblogic.security.certificate.authority=ca.pem
    weblogic.security.clientRootCA=VeriSignClass1CA.der
    Regards,
    -Arthur
    Bhavani <[email protected]> wrote:
    Hi,I am getting the following error while enabling the
    two way authentication for Weblogic Server 5.1Thu Mar
    08 16:10:54 GMT 05:30 2001:<I> <ListenThread> Listening
    on port: 7001Thu Mar 08 16:10:54 GMT 05:30 2001:<I> <SSLListenThread>
    Listening on port: 7002<NT Performance Pack> NATIVE:
    created IoCompletionPort successfully. IoPort=0x000002a4Thu
    Mar 08 16:10:56 GMT 05:30 2001:<I> <WebLogicServer> WebLogic
    Server startedThu Mar 08 16:11:20 GMT 05:30 2001:<D>
    <SSLListenThread> Problem accepting connectionjava.io.IOException:
    required client certificate missing at weblogic.security.SSL.SSLSocket.serverInit2(SSLSocket.java:711)
    at weblogic.security.SSL.SSLSocket.serverInit(SSLSocket.java:529)
    at weblogic.security.SSL.SSLSocket.initialize(SSLSocket.java:219)
    at weblogic.security.SSL.SSLSocket.performAcceptHandshake(SSLSocket.java:192)
    at weblogic.security.SSL.SSLSocket.getInputStream(SSLSocket.java:1001)
    at weblogic.socket.ResettableSocket.<init>(ResettableSocket.java:30)
    at weblogic.socket.JVMSocketManager.accept(JVMSocketManager.java:377)
    at weblogic.t3.srvr.ListenThread$RJVMListenRequest.execute(ListenThread.java:506)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java,
    Compiled Code)Thu Mar 08 16:12:07 GMT 05:30 2001:<D>
    <SSLListenThread> Problem accepting connectionCan anybody
    suggest why this error is coming?Regards,Bhavani

Maybe you are looking for