Fail to construct descriptor: Unable to resolve type

I'm receiving an error when creating a oracle.sql.STRUCT or ARRAY. the error is java.sql.SQLException: Fail to construct descriptor: Unable to resolve type "X.NAME".
He is the java code.
// Create the StructDescriptor from the connection
StructDescriptor prStructDesc =
StructDescriptor.createDescriptor("X.NAME", conn);
// construct the object array containing the attribute values for the
// X.NAME object to be inserted
Object[] xObjArray =
"val1",
"val2",
// Construct the Struct from the StructDescriptor and xObjStruct
oracle.sql.STRUCT xStruct = new STRUCT(prStructDesc,
conn, xObjArray);
cs = conn.prepareCall("{ call X.PROC(?,?,?)}");
cs.setObject(1, xStruct);
When I run the code within JDeveloper it runs without any errors. When I deploy to 9iAS release 2 and try to run it there, I receive the error. Thanks for any help.

Think I found a solution,.. or at least stopped getting the error. I'm using oracle's OracleCallableStatement instead of the java.sql.CallableStatement. I'm also using a different app server. same version 9.0.2.0.0 I'd recommend applying the patches to anyone using this version. I've ran into some errors that have been patched. It's a long process though..
cheers.

Similar Messages

  • Java.sql.SQLException: Fail to construct descriptor: Unable to resolve type

    Unable to resolve the type declared in Oracle.
    This is the type which i create. When am indexing the type am unable to access the type from java. The type is directly created under the schema.
    type pepc_partial_qual_nmTab1 is table of varchar2(20) index by binary_integer;
    anArrayDescriptor1 = new oracle.sql.ArrayDescriptor("PEPC_PARTIAL_QUAL_NMTAB1",con);
      anARRAYout1 = new ARRAY(anArrayDescriptor1, con, anArrayOut1);
      cstmt.setARRAY(1,anARRAYout1);
      cstmt.registerOutParameter(1,OracleTypes.ARRAY, "PEPC_PARTIAL_QUAL_NMTAB1");
    This is how I try accessing the type from JAVA.
    Thanks in Advance

    Think I found a solution,.. or at least stopped getting the error. I'm using oracle's OracleCallableStatement instead of the java.sql.CallableStatement. I'm also using a different app server. same version 9.0.2.0.0 I'd recommend applying the patches to anyone using this version. I've ran into some errors that have been patched. It's a long process though..
    cheers.

  • OracleConnection.createARRAY: Unable to resolve type

    Hi All,
    for some good reasons (don't ask ...) I need to implement a solution where a directory listing, on the DB server machine, can be gotten via an sql query.
    I have to say I am not very experienced with Java in Oracle, please forgive the newbie mistakes.
    Environment: 11gR2 on Win7, SQLDeveloper as front-end.
    In order to do this, I created a simple Java class, DB types and PL/SQL wrappers as follows:
    CREATE OR REPLACE TYPE T_FS_ENTRY AS OBJECT (
      is_dir CHAR( 1 )
    , entry_name VARCHAR2( 4000 )
    , entry_size NUMBER
    , last_modified NUMBER );
    CREATE OR REPLACE TYPE T_FS_ENTRY_TAB IS TABLE OF T_FS_ENTRY;
    I then created the Java class
    CREATE OR REPLACE AND COMPILE java source named FSEntryReturn
    as
      import java.sql.*;
      import java.util.*;
      import java.io.File;
      import oracle.jdbc.*;
      import oracle.sql.*;
      public class FSEntryReturn implements ORADataFactory, ORAData {
        private CHAR is_dir;
        private CHAR entry_name;
        private NUMBER entry_size;
        private NUMBER last_modified;
        public FSEntryReturn( OracleConnection conn
                            , String is_dir
                            , String entry_name
                            , long entry_size
                            , long last_modified )
        throws SQLException
            this.is_dir = new CHAR( is_dir, oracle.sql.CharacterSet.make( conn.getStructAttrCsId() ) );
            this.entry_name = new CHAR( entry_name, oracle.sql.CharacterSet.make( conn.getStructAttrCsId() ) );
            this.entry_size = new NUMBER( entry_size );
            this.last_modified = new NUMBER( last_modified );
        public FSEntryReturn( CHAR is_dir
                            , CHAR entry_name
                            , NUMBER entry_size
                            , NUMBER last_modified )
        throws SQLException
            this.is_dir = is_dir;
            this.entry_name = entry_name;
            this.entry_size = entry_size;
            this.last_modified = last_modified;
        public FSEntryReturn( Object[] attributes )
        throws SQLException {
          this( (CHAR)attributes[0]
              , (CHAR)attributes[1]
              , (NUMBER)attributes[2]
              , (NUMBER)attributes[3] );
        public FSEntryReturn( Datum d ) throws SQLException {
          this( ( (STRUCT)d).getOracleAttributes() );
        public ORAData create( Datum d, int sqlType ) throws SQLException {
          if(d == null) return null;
           else return new FSEntryReturn( d );
        public STRUCT toSTRUCT( Connection conn ) throws SQLException  {
          StructDescriptor sd = StructDescriptor.createDescriptor( "T_FS_ENTRY", conn );
          Object[] attributes = { is_dir, entry_name, entry_size, last_modified };
          return new STRUCT( sd, conn, attributes );
        public Datum toDatum( Connection conn ) throws SQLException {
          return toSTRUCT( conn );
        public static List<FSEntryReturn> getDirListImpl( OracleConnection conn, final String dirPath )
        throws SQLException
          List<FSEntryReturn> ret = new ArrayList<FSEntryReturn>();
          File dir = new File( dirPath );
          if( dir.isDirectory() ) {
            for( String fileName : dir.list() ) {
              File f = new File( dir, fileName );
              FSEntryReturn fsr = new FSEntryReturn( conn
                                                   , (f.isDirectory() ? "1" : null)
                                                   , fileName
                                                   , f.length()
                                                   , f.lastModified() );
              ret.add( fsr );
                } else
            throw new RuntimeException( "Path " + dirPath + " is not a directory" );
          return ret;
        public static ARRAY getDirList( final String dirPath )
        throws SQLException, ClassNotFoundException
          // initialize the connection
          OracleConnection conn = null;
          conn = (OracleConnection) ( new oracle.jdbc.OracleDriver() ).defaultConnection();
          FSEntryReturn[] retArray = getDirListImpl( conn, dirPath ).toArray( new FSEntryReturn[0] );
          // Map the java class to the Oracle type
          Map map = conn.getTypeMap();
          map.put("T_FS_ENTRY", Class.forName( "FSEntryReturn" ) );
          // ArrayDescriptor retArrayDesc = ArrayDescriptor.createDescriptor( "FPL_XSD.T_FS_ENTRY", conn );
          // create an Oracle collection on client side to use as parameter
          // ARRAY oracleCollection = new ARRAY( retArrayDesc, conn, retArray );
          ARRAY oracleCollection = conn.createARRAY( "T_FS_ENTRY", retArray );
          return oracleCollection;
    Finally the wrapper:
    create or replace PACKAGE QAO_SUPPORT
    AS
      FUNCTION get_dir_list( p_dir IN VARCHAR2 )
      RETURN t_fs_entry_tab;
    END QAO_SUPPORT;
    create or replace PACKAGE BODY QAO_SUPPORT
    AS
      FUNCTION get_dir_list( p_dir IN VARCHAR2 )
      RETURN t_fs_entry_tab
      AS LANGUAGE JAVA
      NAME 'FSEntryReturn.getDirList( java.lang.String ) return oracle.sql.ARRAY';
    END QAO_SUPPORT;
    At last I granted privileges on a directory:
    BEGIN dbms_java.grant_permission( 'FPL_XSD', 'SYS:java.io.FilePermission', 'C:\-', 'read,write,execute' ); END;
    COMMIT;
    When I test this as FPL_XSD user, the same schema where the type, package and source are defined:
    select * from table( QAO_SUPPORT.get_dir_list( 'C:\\TEMP' ) );
    I get the following error (sorry for the dutch stuff, basically, "uncaught java exception: error in creation of descriptor:..."):
    ORA-29532: Java-aanroep is afgesloten door niet-onderschepte Java-uitzondering: java.sql.SQLException: Maken van descriptor is mislukt.: Unable to resolve type: "FPL_XSD.T_FS_ENTRY".
    ORA-06512: in "FPL_XSD.QAO_SUPPORT", regel 30
    Even if it is not exactly stated the error happens at the line:
    ARRAY oracleCollection = conn.createARRAY( "T_FS_ENTRY", retArray );
    Note that when logged in as FPL_XSD, desc T_FS_ENTRY returns the type description.
    I searched everywhere and consulted the documentation. I think it should work. I am out of ideas, but I have a suspect the problem might be with the connection configuration, maybe?
    Any help or hint is greatly appreciated.
    Kindly,
    Andrea

    Hi All,
    I insisted trying and I found out what the problem was. In:
    ARRAY oracleCollection = conn.createARRAY( "T_FS_ENTRY", retArray );
    The first argument is an Oracle type name, I wrongly used the RECORD (OBJECT) type name - T_FS_ENTRY -, not the name of the nested table T_FS_ENTRY_TAB.
    So the code should look like:
    ARRAY oracleCollection = conn.createARRAY( "T_FS_ENTRY_TAB", retArray );
    Which works.
    //Andrea

  • Having problems emailing with iPhoto 9.2.1 on all my devices.  Photos either do mot arrive or arrive as an unrecognized file type, or sometimes go straight through.  Apple support has been unable to resolve.  Does anyone have any suggestions???

    Photos either do not arrive at all or arrive as an unrecognized file type, or sometimes go straight through.  Apple support has been unable to resolve.  Does anyone have any suggestions???  I am experiencing this on all my devices -- MacBookAir, iMac, both running most current version of Lion; iPad v1.0; and iPhone 4S

    Turnmerv wrote:
    Photos either do not arrive at all or arrive as an unrecognized file type, or sometimes go straight through.  Apple support has been unable to resolve.  Does anyone have any suggestions???  I am experiencing this on all my devices -- MacBookAir, iMac, both running most current version of Lion; iPad v1.0; and iPhone 4S
    If you can not send from any of these devices then it has to be your e-mail service - the e-mail clients for OS X and for IOS 5 are totally different - the only common thread between all of these devices is your e-mail service
    LN

  • Javax.naming.NameNotFoundException: Unable to resolve comp/env/CustomerBeanRef

    Hi,
    I used wls 6.1 sp2 and the sql2000 I wonder any one have the following problem
    before.
    in the weblogic-ejb-jar.xml I defined tthe <local-jndi name>customer.LocalCustomerHome</local-jndi-name>
    and in the jsp page I lookup by InitialContext ic = new InitialContext(); // System.out.println("Init
    context"); System.out.println(ic.toString()); Object o = ic.lookup("customer.LocalCustomerHome");
    I am using global namespace(customer.LocalCustomerHome) rather than the local
    java:comp/env/ejb namespace in here.
    when I try to run the jsp file to create customer I got javax.naming.NameNotFoundException:
    Unable to resolve comp/env/CustomerBeanRef I changed the comp/env/CustomerBeanRef
    in the lookup code of the jsp to customer.LocalCustomerHome that is defined in
    weblogic-ejb-jar.xml but it still refer to comp/env/CustomerBeanRef.
    I stop the wlserver and deleted all __generate.class from the jsp then restart
    the wlserver it still the same.
    Thanks
    -------part of weblogic-ejb-jar.xml -----------
    <weblogic-enterprise-bean> <ejb-name>CustomerBean</ejb-name> <entity-descriptor>
    <persistence> <persistence-type> <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
    <type-version>6.0</type-version> <type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
    </persistence-type> <persistence-use> <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
    <type-version>6.0</type-version> </persistence-use>
    </persistence>
    </entity-descriptor>
    <local-jndi-name>customer.LocalCustomerHome</local-jndi-name> </weblogic-enterprise-bean>
    -------------------end of weblogic-ejb-jar.xml ---------------
    [createCustomer.jsp]

    Hi,
    set this under startup script at java option.
    -Dweblogic.jndi.retainenvironment=true
    and restart the server again.
    Regards,
    Kal

  • Servicegen:  unable to load type library from classloader weblogic.utils.cl

    Hi,
    I am new to weblogic. I am encountering an error on trying to run the 'servicegen' command from my ant build scripts, on weblogic 9.2.
    Please find the build.xml snapshot, and the stack trace given below.
    Please help me out with this.
    Points to be noted are:-
    1) The ejb-jar.xml specifies the bean class, which is very much present in the classpath. The ejb-jar.xml is generated by xdoclet. Snapshot is given below:-
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
    <ejb-jar >
    <description><![CDATA[No Description.]]></description>
    <display-name>Generated by XDoclet</display-name>
    <enterprise-beans>
    <!-- Session Beans -->
    <session >
    <description><![CDATA[NorthBound Interface]]></description>
    <ejb-name>ArcorNBIService</ejb-name>
    <home>com.alcatel.hdm.arcoril.webservice.ejb.ArcorNBIServiceHome</home>
    <remote>com.alcatel.hdm.arcoril.webservice.ejb.ArcorNBIService</remote>
    <local-home>com.alcatel.hdm.arcoril.webservice.ejb.ArcorNBIServiceLocalHome</local-home>
    <local>com.alcatel.hdm.arcoril.webservice.ejb.ArcorNBIServiceLocal</local>
    <ejb-class>com.alcatel.hdm.arcoril.webservice.ejb.ArcorNBIServiceBean</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    </session>
    </enterprise-beans>
    </ejb-jar>
    2) When I replace the "ejbJar" attribute in the 'service' command with "javaClassComponents" attribute, I am able to run the servicegen command successfully. Not sure why the ejbJar is creating problems.
    3) Build.xml snapshot:-
         <target name="gen-webservice" depends="init">
              <copy todir="${work.dir}" file="${export.dir}/lib/arcor-il-service-ejb.jar"/>
              <autotype javatypes="${javatypes}" targetNamespace="${targetNamespace}" destDir="${work.dir}/classes" keepGenerated="${keepGenerated}" classpathref="webservice.client.classpath"/>
              <autotype javaComponents="com.alcatel.hdm.arcoril.webservice.ejb.ArcorNBIService" targetNamespace="com.alcatel.hdm.service.nbi.dto.holders" destDir="${work.dir}/classes" keepGenerated="true" classpathref="webservice.client.classpath"/>
              <servicegen destEar="${earfile}" warName="${warname}" contextURI="${contextURI}" keepGenerated="${keepGenerated}" classpathref="webservice.client.classpath">
                   <service ejbJar="${ejbLocation}" targetNamespace="${targetNamespace}" serviceName="${serviceName}" serviceURI="/${serviceName}" generateTypes="false" expandMethods="${expandMethods}" ignoreAuthHeader="false" protocol="https" style="rpc" useSOAP12="${useSOAP12}" typeMappingFile="${work.dir}/classes/types.xml">
                        <security enablePasswordAuth="true"/>
                   </service>
              </servicegen>
         </target>
    4) Exception stacktrace:-
    --- Nested Exception ---
    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:153)
    at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorManager.java:277)
    at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorManager.java:248)
    at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorManager.java:309)
    at weblogic.descriptor.EditableDescriptorManager.createDescriptor(EditableDescriptorManager.java:99)
    at weblogic.application.descriptor.AbstractDescriptorLoader.createDescriptor(AbstractDescriptorLoader.java:344)
    at weblogic.application.descriptor.CachingDescriptorLoader.createDescriptor(CachingDescriptorLoader.java:188)
    at weblogic.application.descriptor.AbstractDescriptorLoader.createDescriptor(AbstractDescriptorLoader.java:328)
    at weblogic.application.descriptor.AbstractDescriptorLoader.getDescriptor(AbstractDescriptorLoader.java:237)
    at weblogic.application.descriptor.AbstractDescriptorLoader.getRootDescriptorBean(AbstractDescriptorLoader.java:217)
    at weblogic.ejb.spi.EjbJarDescriptor.getEjbJarBean(EjbJarDescriptor.java:141)
    at weblogic.ejb.spi.EjbJarDescriptor.getEditableEjbJarBean(EjbJarDescriptor.java:182)
    at weblogic.ejb.container.dd.xml.DDUtils.processEjbJarXMLWithSchema(DDUtils.java:519)
    at weblogic.ejb.container.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:182)
    at weblogic.ejb.container.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:126)
    at weblogic.ejb.container.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:154)
    at weblogic.ejb.container.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:147)
    at weblogic.ejb.spi.DDUtils.createDescriptorFromJarFile(DDUtils.java:30)
    at weblogic.webservice.dd.EJBJarIntrospector.<init>(EJBJarIntrospector.java:52)
    at weblogic.ant.taskdefs.webservices.autotype.EJBAutoTyper.<init>(EJBAutoTyper.java:68)
    at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.runAutoTyper(ServiceGenTask.java:339)
    at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(ServiceGenTask.java:313)
    at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:181)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.Target.performTasks(Target.java:369)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    at org.apache.tools.ant.Main.runBuild(Main.java:668)
    at org.apache.tools.ant.Main.startAnt(Main.java:187)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
    Caused by: java.io.IOException
    at weblogic.descriptor.internal.MarshallerFactory.<init>(MarshallerFactory.java:50)
    at weblogic.descriptor.DescriptorManager$DefaultMarshallerFactorySingleton.<clinit>(DescriptorManager.java:40)
    ... 37 more
    Caused by: com.bea.xml.XmlException: unable to load type library from classloader weblogic.utils.classloaders.ClasspathClassLoader@1cc0a7f f
    inder: weblogic.utils.classloaders.CodeGenClassFinder@c52200 annotation:
    at com.bea.staxb.runtime.internal.BindingContextFactoryImpl.createBindingContext(BindingContextFactoryImpl.java:50)
    at weblogic.descriptor.internal.MarshallerFactory.<init>(MarshallerFactory.java:48)
    ... 38 more
    Total time: 5 seconds

    Hi,
    I am new to weblogic. I am encountering an error on trying to run the 'servicegen' command from my ant build scripts, on weblogic 9.2.
    Please find the build.xml snapshot, and the stack trace given below.
    Please help me out with this.
    Points to be noted are:-
    1) The ejb-jar.xml specifies the bean class, which is very much present in the classpath. The ejb-jar.xml is generated by xdoclet. Snapshot is given below:-
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
    <ejb-jar >
    <description><![CDATA[No Description.]]></description>
    <display-name>Generated by XDoclet</display-name>
    <enterprise-beans>
    <!-- Session Beans -->
    <session >
    <description><![CDATA[NorthBound Interface]]></description>
    <ejb-name>ArcorNBIService</ejb-name>
    <home>com.alcatel.hdm.arcoril.webservice.ejb.ArcorNBIServiceHome</home>
    <remote>com.alcatel.hdm.arcoril.webservice.ejb.ArcorNBIService</remote>
    <local-home>com.alcatel.hdm.arcoril.webservice.ejb.ArcorNBIServiceLocalHome</local-home>
    <local>com.alcatel.hdm.arcoril.webservice.ejb.ArcorNBIServiceLocal</local>
    <ejb-class>com.alcatel.hdm.arcoril.webservice.ejb.ArcorNBIServiceBean</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    </session>
    </enterprise-beans>
    </ejb-jar>
    2) When I replace the "ejbJar" attribute in the 'service' command with "javaClassComponents" attribute, I am able to run the servicegen command successfully. Not sure why the ejbJar is creating problems.
    3) Build.xml snapshot:-
         <target name="gen-webservice" depends="init">
              <copy todir="${work.dir}" file="${export.dir}/lib/arcor-il-service-ejb.jar"/>
              <autotype javatypes="${javatypes}" targetNamespace="${targetNamespace}" destDir="${work.dir}/classes" keepGenerated="${keepGenerated}" classpathref="webservice.client.classpath"/>
              <autotype javaComponents="com.alcatel.hdm.arcoril.webservice.ejb.ArcorNBIService" targetNamespace="com.alcatel.hdm.service.nbi.dto.holders" destDir="${work.dir}/classes" keepGenerated="true" classpathref="webservice.client.classpath"/>
              <servicegen destEar="${earfile}" warName="${warname}" contextURI="${contextURI}" keepGenerated="${keepGenerated}" classpathref="webservice.client.classpath">
                   <service ejbJar="${ejbLocation}" targetNamespace="${targetNamespace}" serviceName="${serviceName}" serviceURI="/${serviceName}" generateTypes="false" expandMethods="${expandMethods}" ignoreAuthHeader="false" protocol="https" style="rpc" useSOAP12="${useSOAP12}" typeMappingFile="${work.dir}/classes/types.xml">
                        <security enablePasswordAuth="true"/>
                   </service>
              </servicegen>
         </target>
    4) Exception stacktrace:-
    --- Nested Exception ---
    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:153)
    at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorManager.java:277)
    at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorManager.java:248)
    at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorManager.java:309)
    at weblogic.descriptor.EditableDescriptorManager.createDescriptor(EditableDescriptorManager.java:99)
    at weblogic.application.descriptor.AbstractDescriptorLoader.createDescriptor(AbstractDescriptorLoader.java:344)
    at weblogic.application.descriptor.CachingDescriptorLoader.createDescriptor(CachingDescriptorLoader.java:188)
    at weblogic.application.descriptor.AbstractDescriptorLoader.createDescriptor(AbstractDescriptorLoader.java:328)
    at weblogic.application.descriptor.AbstractDescriptorLoader.getDescriptor(AbstractDescriptorLoader.java:237)
    at weblogic.application.descriptor.AbstractDescriptorLoader.getRootDescriptorBean(AbstractDescriptorLoader.java:217)
    at weblogic.ejb.spi.EjbJarDescriptor.getEjbJarBean(EjbJarDescriptor.java:141)
    at weblogic.ejb.spi.EjbJarDescriptor.getEditableEjbJarBean(EjbJarDescriptor.java:182)
    at weblogic.ejb.container.dd.xml.DDUtils.processEjbJarXMLWithSchema(DDUtils.java:519)
    at weblogic.ejb.container.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:182)
    at weblogic.ejb.container.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:126)
    at weblogic.ejb.container.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:154)
    at weblogic.ejb.container.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:147)
    at weblogic.ejb.spi.DDUtils.createDescriptorFromJarFile(DDUtils.java:30)
    at weblogic.webservice.dd.EJBJarIntrospector.<init>(EJBJarIntrospector.java:52)
    at weblogic.ant.taskdefs.webservices.autotype.EJBAutoTyper.<init>(EJBAutoTyper.java:68)
    at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.runAutoTyper(ServiceGenTask.java:339)
    at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(ServiceGenTask.java:313)
    at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:181)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.Target.performTasks(Target.java:369)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    at org.apache.tools.ant.Main.runBuild(Main.java:668)
    at org.apache.tools.ant.Main.startAnt(Main.java:187)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
    Caused by: java.io.IOException
    at weblogic.descriptor.internal.MarshallerFactory.<init>(MarshallerFactory.java:50)
    at weblogic.descriptor.DescriptorManager$DefaultMarshallerFactorySingleton.<clinit>(DescriptorManager.java:40)
    ... 37 more
    Caused by: com.bea.xml.XmlException: unable to load type library from classloader weblogic.utils.classloaders.ClasspathClassLoader@1cc0a7f f
    inder: weblogic.utils.classloaders.CodeGenClassFinder@c52200 annotation:
    at com.bea.staxb.runtime.internal.BindingContextFactoryImpl.createBindingContext(BindingContextFactoryImpl.java:50)
    at weblogic.descriptor.internal.MarshallerFactory.<init>(MarshallerFactory.java:48)
    ... 38 more
    Total time: 5 seconds

  • SOAP: call failed: java.io.IOException: unable to create a socket ??

    Hi
    I am getting the following error in PI for one of my sync interfaces.
    SOAP: call failed: java.io.IOException: unable to create a socket
    The interface works most of the time, but i get this error couple of times a day.
    Regards,
    XIer

    Hav you able to resolve this issue? Please let me know what was cause of this "unable to create a socket"
    Thanks,
    Sagar

  • More than one operation defined. Unable to resolve operation

    Hi,
    Using the attached WSDL to define a BPEL sequence I allways get the following error message:
    More than one operation defined. Unable to resolve operation:
    This occured in the moment i introduced a seconde operation. With one operation everything works fine.
    Does anybody know how to define a WSDL that works for the BPEL system with more than one operation?
    Best Regards,
    Axel.
    WSDL:
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://dummy.ws.axelbenz.de/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" targetNamespace="http://dummy.ws.axelbenz.de/" name="StringInOutService" xmlns:plink="http://schemas.xmlsoap.org/ws/2004/03/partner-link/">
    <types>
    <xsd:schema>
    <xsd:import namespace="http://dummy.ws.axelbenz.de/" schemaLocation="upperService.xsd" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" />
    </xsd:schema>
    </types>
    <message name="lowerMessage">
    <part name="lowerParameters" type="tns:lowerType" />
    </message>
    <message name="lowerMessageResponse">
    <part name="lowerResponseParameters" type="tns:lowerTypeResponse" />
    </message>
    <message name="upperMessage">
    <part name="upperParameters" type="tns:upperType" />
    </message>
    <message name="upperMessageResponse">
    <part name="upperResponseParameters" type="tns:upperTypeResponse" />
    </message>
    <portType name="StringInOut">
    <operation name="lowerOperation">
    <input message="tns:lowerMessage" />
    <output message="tns:lowerMessageResponse" />
    </operation>
    <operation name="upperOperation">
    <input message="tns:upperMessage" />
    <output message="tns:upperMessageResponse" />
    </operation>
    </portType>
    <binding name="StringInOutPortBinding" type="tns:StringInOut">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
    <operation name="lowerOperation">
    <soap:operation soapAction="lower" style="document" />
    <input>
    <soap:body use="literal" parts="lowerParameters" />
    </input>
    <output>
    <soap:body use="literal" parts="lowerResponseParameters" />
    </output>
    </operation>
    <operation name="upperOperation">
    <soap:operation soapAction="upper" style="document" />
    <input>
    <soap:body use="literal" parts="upperParameters" namespace="" />
    </input>
    <output>
    <soap:body use="literal" parts="upperResponseParameters" />
    </output>
    </operation>
    </binding>
    <service name="StringInOutService">
    <port name="StringInOutPort" binding="tns:StringInOutPortBinding">
    <soap:address location="http://GWBE0040.int.gematik.de:18181/DummyServices/StringInOutService" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" />
    </port>
    </service>
    <plink:partnerLinkType name="partnerlinktype1">
    <plink:role name="serviceRequestor" portType="tns:StringInOut"/>
    </plink:partnerLinkType>
    </definitions>
    XSD:
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema version="1.0" targetNamespace="http://dummy.ws.axelbenz.de/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="lower" type="ns1:lowerType" xmlns:ns1="http://dummy.ws.axelbenz.de/" />
    <xs:complexType name="lowerType">
    <xs:sequence>
    <xs:element name="inp" type="xs:string" minOccurs="0" />
    </xs:sequence>
    </xs:complexType>
    <xs:element name="lowerResponse" type="ns2:lowerTypeResponse" xmlns:ns2="http://dummy.ws.axelbenz.de/" />
    <xs:complexType name="lowerTypeResponse">
    <xs:sequence>
    <xs:element name="return" type="xs:string" minOccurs="0" />
    </xs:sequence>
    </xs:complexType>
    <xs:element name="upper" type="ns3:upperType" xmlns:ns3="http://dummy.ws.axelbenz.de/" />
    <xs:complexType name="upperType">
    <xs:sequence>
    <xs:element name="inp" type="xs:string" minOccurs="0" />
    </xs:sequence>
    </xs:complexType>
    <xs:element name="upperResponse" type="ns4:upperTypeResponse" xmlns:ns4="http://dummy.ws.axelbenz.de/" />
    <xs:complexType name="upperTypeResponse">
    <xs:sequence>
    <xs:element name="return" type="xs:string" minOccurs="0" />
    </xs:sequence>
    </xs:complexType>
    </xs:schema>

    What client are you using? Are you using the netbeans enterprise pack test driver? If so, you can set the soap action in the test properties to match the ones you have defined in the WSDL.
    Also if you could post the actual soap message you are sending that would help.
    I also noticed that you're using parts defined via types with a document/literal binding. To be more basic profile compliant in that casue you may want to use RPC style instead - it is not strictly necessary, but increases interoperability.
    Andi

  • Unable to resolve 'mslv.oms.oms1.internal.jms.ConnectionFactory'

    Hello,
    I hope I am posting this in the right place, if not please forgiv and point me to the right place.
    Yesterday we did a live upgrade on a system that is running WebLogic 9.2, OSM 6.3.1 and Oracle DB 10.2.0.2, those applications are on a seperate system slice, we did a complete upgrade from Solaris 10/9 (update 6) to the latest Solaris 8/11 (update 10), on SPARC. After the upgrade everything was working and applications are able to start, but weblogic server is spewing the following error message:
    <Aug 1, 2012 12:03:58 PM CEST> <Error> <oms.core> <600022> <EJB Create exception thrown while creating object=EventDispatcherEJB.>
    <01-Aug-2012 12:03:58,982 CEST PM> <ERROR> <poller.a> <Timer-4> <Failed to process events>
    java.rmi.RemoteException: Error in ejbCreate:; nested exception is:
    javax.ejb.CreateException: Unable to resolve 'mslv.oms.oms1.internal.jms.ConnectionFactory'. Resolved 'mslv.oms.oms1.internal.jms'
    at weblogic.ejb.container.internal.EJBRuntimeUtils.throwRemoteException(EJBRuntimeUtils.java:95)
    at weblogic.ejb.container.internal.BaseEJBObject.handleSystemException(BaseEJBObject.java:724)
    at weblogic.ejb.container.internal.BaseEJBObject.handleSystemException(BaseEJBObject.java:681)
    at weblogic.ejb.container.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:220)
    at weblogic.ejb.container.internal.StatelessEJBObject.preInvoke(StatelessEJBObject.java:64)
    at com.mslv.oms.eventengine.EventDispatcher_86q3j1_EOImpl.processTimeout(EventDispatcher_86q3j1_EOImpl.java:485)
    at com.mslv.oms.poller.a.handleNotification(Unknown Source)
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor$ListenerWrapper.handleNotification(DefaultMBeanServerInterceptor.java:1652)
    at javax.management.NotificationBroadcasterSupport.handleNotification(NotificationBroadcasterSupport.java:221)
    at javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:184)
    at javax.management.timer.Timer.sendNotification(Timer.java:1295)
    at javax.management.timer.Timer.notifyAlarmClock(Timer.java:1264)
    at javax.management.timer.TimerAlarmClock.run(Timer.java:1347)
    at java.util.TimerThread.mainLoop(Timer.java:512)
    at java.util.TimerThread.run(Timer.java:462)
    we went back and activated Solaris update 8, and we still got that problem. The requests that the clients that connect via OSM frontend application that communicates with WebLogic arent being processed.
    The oracle db is working and listening to port 1521, I can connect to it and can connect with the user defined in the WebLogic connection pool.
    This is the first time working on this system, the application and integration was done by someone else who are not available to help us out, I hope someone here on the forum will be able to help us out with this problem.
    Regards,
    Omar

    Often ConnectionFactory errors are caused by an inability to connect with the database hosting the OSM schema and user.
    Check the database and make sure that both it and its listener are accepting connections. If that is ok you can also check the oms_pool configuration in WebLogic. Make sure the JNDI connection is valid. In my environments I see that DHCP often screws things up. If I install OSM on a host that has a DHCP assigned address (I'm guilty of being lazy when working in VMs and not statically assigning IP addresses) I often break the JNDI when I reboot the VM and get a new IP.
    In WebLogic Admin Console:
    Domain > Services > JDBC >Connection Pool > URL
    and make sure the JDBC connection string is correct.

  • URGENT: Failed to parse descriptor file

    I have a servlet which actually act as an EJB client. The ejb server application
    is running on the same server(WL 7.0 SP4). The servlet was working fine when
    we were using a policy file which give all permissions to the code. Now as per
    customer requirement we changed the policy file to include only the permissions
    that we require. It is throwing this exception after this policy file change.
    What the code is doing is that using reflection, get the findByPrimaryKey method
    and invoke it on the home interface.
    The exception is:
    java.rmi.RemoteException: cannot unmarshaling return; nested exception is:
         java.rmi.UnexpectedException: Failed to parse descriptor file; nested exception
    is:
         org.xml.sax.SAXException: ResourceEntityResolver: did not resolve entity for
    publicId = -//BEA Systems, Inc.//RMI Runtime DTD 1.0//EN with resource name rmi.dtd
    What permission I will need to give in the policy file inorder to fix this problem?
    Thanks in advance,
    DW

    You might want to ask this in the security newsgroup.

  • Javax.naming.NameNotFoundException: Unable to resolve 'ATGProductionDS'   - in Weblogic on starting the server

    Hi,
    I am not able to resolve the JNDI name - ATGProductionDS
    I have used CIM to create this and i am using ATG10.2 with MYSQL as my database and weblogic.
    /atg/epub/file/ConfigFileSystem journaling file system started: vfs=file:/C:
    /Stixs/ATG/ATG10.2/home/PublishingAgent/deploymentconfig/live/config/ journalDirectory=C:\Stixs\ATG\ATG10.2\home\PublishingAgent\deploymentc
    onfig\data\config
    **** Error      Fri Dec 27 20:58:35 EST 2013    1388195915495   /atg/dynamo/service/jdbc/DirectJTDataSource     Failed to resolve ATGProduct
    ionDS   javax.naming.NameNotFoundException: Unable to resolve 'ATGProductionDS'. Resolved ''; remaining name 'ATGProductionDS'
    **** Error      Fri Dec 27 20:58:35 EST 2013    1388195915495   /atg/dynamo/service/jdbc/DirectJTDataSource             at weblogic.jndi.int
    ernal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139)
    **** Error      Fri Dec 27 20:58:35 EST 2013    1388195915495   /atg/dynamo/service/jdbc/DirectJTDataSource             at weblogic.jndi.int
    Entries from Weblogic console -datasources
    ATGBatchDS
    Generic
    ATGBatchDS
    ATGProductionDS
    Generic
    ATGProductionDS
    atg_production_lockserver, atg_publishing_lockserver
    ATGPublishingDS
    Generic
    ATGPublishingDS
    atg_publishing_lockserver
    Please provide assistance.

    Hi,
    if you click the "Control" tab for the ATGProductionDS datasource in the Weblogic console does it show the State as running?
    Does the "Monitoring" tab for the datasource show the State as running? If you click on the "Testing" tab can you test the datasource successfully?
    If you inspect the Server using the Weblogic console there is a link "View JNDI Tree" If you click the link do you see the datasource listed in the left pane?
    Do you see any errors for the ATGProductionDS in the Weblogic server log and out log files?

  • Proj cannot run on LCDS 2.6 ES due to "Unable to resolve resource bundle "datamanagement" for locale "en_US"

    hi, all,
    We have developped an application on Flex Build 3 (run
    successfully), but failed when we try to deploy it on Tomcat with
    LCDS 2.5 ES because some components cannot be resolved correctly on
    LCDS 2.5. We then downloaded a 2.6 ES Beta 2, but still cannot run
    the application, the error msg is "Unable to resolve resource
    bundle "datamanagement" for locale "en_US".
    anyone knows how to deploy the application on LCDS 2.6 ES?
    Many thanks.

    In your WEB-INF/flex/locale/en_US dir there should be a file
    called fds_rd.swc. Is that there?

  • URL Portal error: Unable to resolve comp/env/ejb/URIManager/

    I am attempting to creat a URL portal using the Web Service Portlet Wizard.
    The Wizard seems to build the jsp fine, but I get the following error in the
    portlet when I try to bring it up:
    Error retrieving page at http://www.bloomberg.com/index.html Exception:
    Unable to resolve comp/env/ejb/URIManager/ Resolved: 'comp/env/ejb'
    Unresolved:'URIManager'
    I can't even find this path in my installation, nor any reference to
    URIManager. Am I missing a class somewhere? (Note: I have all this
    installed on my laptop for testing, and am not currently working off our
    main development server.)
    Thanks for your help.
    - JKL

    JKL,
    I have not used the Portlet Wizard, so I can't answer your question specifically.
    But I can help direct you on where to look.
    There should be an EJB deployment descriptor ejb-jar.xml in the ejb jar file that
    contains the following entry:
    <ejb-reference-description>
    <ejb-ref-name>ejb/URIManager</ejb-ref-name>
    <jndi-name>some class name</jndi-name>
    </ejb-reference-description>
    That is what to look for.
    PJL
    "JKL" <[email protected]> wrote:
    I am attempting to creat a URL portal using the Web Service Portlet Wizard.
    The Wizard seems to build the jsp fine, but I get the following error
    in the
    portlet when I try to bring it up:
    Error retrieving page at http://www.bloomberg.com/index.html Exception:
    Unable to resolve comp/env/ejb/URIManager/ Resolved: 'comp/env/ejb'
    Unresolved:'URIManager'
    I can't even find this path in my installation, nor any reference to
    URIManager. Am I missing a class somewhere? (Note: I have all this
    installed on my laptop for testing, and am not currently working off
    our
    main development server.)
    Thanks for your help.
    - JKL

  • Clientgen: Unable to resolve definition

    Hi!
    When using clientgen, I'll get the following error:
    weblogic.xml.schema.model.XSDException: Unable to resolve definition for ['htt
    ://foo.bar.com/eServerTypes.xsd']:s2:RequestBase perhaps due to the lack
    of an import statement for namespace http://foo.bar.com/eServerTypes.xsd
    I'm already using an import statement to resolve the namespace. Using XMLSpy,
    it all works fine. Are there any traps, like hidden character, etc.?
    Below, you'll find a snap of the wsdl and xsd-file, including the most important
    statements.
    greetings
    Heiner
    WSDL:
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions ... xmlns:s2="http://foo.bar.com/eServerTypes.xsd">
         <import namespace="http://foo.bar.com/eServerTypes.xsd" location="file:///D:/eServerTypes.xsd"/>
         <types>
              <s:schema elementFormDefault="qualified" targetNamespace="http://foo.bar.com/eServer.Status.v1.wsdl">
                   <s:element type="s2:RequestBase" name="Request"/>
         </types>
    </definitions>
    eServerTypes.xsd:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
    xml:lang="en">
         <xsd:complexType name="RequestBase">
         </xsd:complexType>
    </xsd:schema>

    Hello,
    Might take a look at the WS-I BP on this issue (WSDL import location)
    [1]; there are some examples as well.
    HTH,
    Bruce
    [1]
    http://www.ws-i.org/Profiles/BasicProfile-1.0-2004-04-16.html#refinement16512792
    Heiner Amthauer wrote:
    >
    Hi!
    When using clientgen, I'll get the following error:
    weblogic.xml.schema.model.XSDException: Unable to resolve definition for ['htt
    ://foo.bar.com/eServerTypes.xsd']:s2:RequestBase perhaps due to the lack
    of an import statement for namespace http://foo.bar.com/eServerTypes.xsd
    I'm already using an import statement to resolve the namespace. Using XMLSpy,
    it all works fine. Are there any traps, like hidden character, etc.?
    Below, you'll find a snap of the wsdl and xsd-file, including the most important
    statements.
    greetings
    Heiner
    WSDL:
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions ... xmlns:s2="http://foo.bar.com/eServerTypes.xsd">
    <import namespace="http://foo.bar.com/eServerTypes.xsd" location="file:///D:/eServerTypes.xsd"/>
    <types>
    <s:schema elementFormDefault="qualified" targetNamespace="http://foo.bar.com/eServer.Status.v1.wsdl">
    <s:element type="s2:RequestBase" name="Request"/>
    </types>
    </definitions>
    eServerTypes.xsd:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
    xml:lang="en">
    <xsd:complexType name="RequestBase">
    </xsd:complexType>
    </xsd:schema>

  • Unable to resolve 'TestDS3'.

    I copy code from other thread and need to find a datasource named TestDS3. TestDS3 is created by me using weblogic 10.3.5 console. However, the following code has errors. If I change to
    DataSource datasource = (DataSource)initialContext.lookup("CP-TestDS3");
    I still get the same error.
    ================error=======================
    "C:\Program Files\Java\jdk1.6.0_24\bin\javaw.exe" -client -classpath C:\JdevWorkspace\ANTdatasource\.adf;C:\JdevWorkspace\ANTdatasource\Project2\classes;E:\Jdeveloper_11115\wlserver_10.3\server\lib\weblogic.jar -Djavax.net.ssl.trustStore=E:\Jdeveloper_11115\wlserver_10.3\server\lib\DemoTrust.jks ant.DatasourceInfo
    Exception in thread "main" javax.naming.NameNotFoundException: Unable to resolve 'TestDS3'. Resolved '' [Root exception is javax.naming.NameNotFoundException: Unable to resolve 'TestDS3'. Resolved '']; remaining name 'TestDS3'
         at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
         at weblogic.jndi.internal.ServerNamingNode_1035_WLStub.lookup(Unknown Source)
         at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:423)
         at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:411)
         at javax.naming.InitialContext.lookup(InitialContext.java:392)
         at ant.DatasourceInfo.main(DatasourceInfo.java:31)
    Caused by: javax.naming.NameNotFoundException: Unable to resolve 'TestDS3'. Resolved ''
         at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139)
         at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:252)
         at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:182)
         at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:206)
         at weblogic.jndi.internal.RootNamingNode_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)
         at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
         at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Process exited with exit code 1.
    ================code=======================
    package ant;
    import java.sql.Connection;
    import java.sql.ResultSet;
    import java.sql.Statement;
    import java.util.Hashtable;
    import java.util.Properties;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.sql.DataSource;
    public class DatasourceInfo {
    public DatasourceInfo() {
    super();
    public static void main(String[] args) throws Exception {
    DatasourceInfo datasourceInfo = new DatasourceInfo();
    Hashtable ht = new Hashtable();
    ht.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    ht.put(Context.PROVIDER_URL, "t3://localhost:7001");
    Context initialContext = new InitialContext(ht);
    DataSource datasource = (DataSource)initialContext.lookup("TestDS3");
    if (datasource != null) {
    Connection Conn = datasource.getConnection();
    ========config.xml====================================
    <jdbc-system-resource>
    <name>CP-TestDS3</name>
    <target>AdminServer</target>
    <deployment-order>1</deployment-order>
    <descriptor-file-name>jdbc/CP-TestDS3-4702-jdbc.xml</descriptor-file-name>
    </jdbc-system-resource>
    </domain>

    Hi,
    Try with JNDI name instead of data source name for lookup, JNDI name would be something like "jdbc/TestDS3"
    Sireesha

Maybe you are looking for

  • IMovie won't open projects

    iMovie 11 won't open any of my projects ...I can see the projects in finder, but when I click open w/iMovie iMovie opens but does not open any projects and then crashes.    Help!

  • Scenario or adapter to sending a text file to different target directories

    Hi experts In XI 3.0 I have developed a file2file scenario that takes a comma-separated file (*.csv) and converts it and returns a text file that is sent to a specific directory, the name input file determines the Target Directory, for each input fil

  • Guess I need a new hard drive...

    I have no clue how, but suddenly my hard drive is shot. I opened my laptop the other day and expected my login page to come up (I keep it on sleep mode) and it was off. When I turned it on I got a grey screen with an old school mac logo (blinking fol

  • Oracle Lite on Cell phones??

    Hi, I have a question, the documentation and metalink said that Oracle Lite is only supported for Laptops, tablet PC, Pocket PC and Palms. However, many people is interested in using on cell phones. Someone knows if certain devices like Black Berry h

  • LV data types for C++ DLL

    I have created a DLL in VC++ that someone in my organization needs to call from LabView. The declarations for my exported functions are like this example: extern "C" __declspec(dllexport)int DLL_Funct(int portnum, char str_data[33], unsigned char csn