Server lib referencing from WD

Hello everybody,
I would like to use one class (named Sender) in many WD's. So I have created Java DC which define this class, wrapped it in J2EE Library DC and deploy to server. (java dc export in public part java class in 'assembly' mode, Library dc use this part in build and run time). Library DC expose libraries in assembly mode (deflib pp). In WD DC i have declared use deflib.pp. In build path I have added dependencies to Java DC project so I could build project. But when I deploy WD i have e a NoClassDefFoundError.
Why should i declare using my library component?
regards
Bogdan

Bogdan,
You miss the latest step:
Open properties of WD project, go to WebDynpro References and add Library Reference: something like vendor.comcostomlib
VS

Similar Messages

  • Webservices.jar is missing from WL_HOME/server/lib in WLS 12c

    webservices.jar is missing from WL_HOME/server/lib in WLS 12c. Was it replaced by a different jar or is this a new implementation i'm unfamiliar with? It does appear in all versions up to 11g.
    Without it i won't be able to migrate my application to 12c from the older versions...

    hi,
    In the 12.1.1 release, the 8.1 WebLogic Web services run time has been removed. So you will no longer see the webservices.jar file
    http://docs.oracle.com/cd/E24329_01/web.1211/e24497/upgrade_ws.htm#BGBIDHIJ
    Regards,
    Sunil P

  • HEADS-UP: Plug-in "com.bea.eclipse.server.lib.weblogic9"...is missing

    just a heads-up to anybody else that might come across the same problem i did:
    when i tried to create a new j2ee enterprise application project on a brand new install of workshop 9.2 for solaris 9/sparc, workshop crashed before i could even finish creating the project.
    prior to trying to create the project, i had noticed in "Help -> Manage Configuration" that the "com.bea.eclipse.server.lib.weblogic9" plugin under the "WebLogic Workshop Server Libraries" feature was not configured properly. the configurator was reporting 'Plug-in "com.bea.eclipse.server.lib.weblogic9" referenced by this feature is missing'. i suspected that this missing plugin is what caused the crash.
    i examined $WORKSHOP_HOME/server/eclipse/plugins/com.bea.eclipse.server.lib.weblogic9/plugins.xml and saw that it had been installed originally with the following value for the plugin element:
      <plugin id="com.bea.eclipse.server.lib.weblogic9; singleton:=true"...>whereas the $WORKSHOP_HOME/server/eclipse/features/com.bea.eclipse.server.lib/feature.xml had the following value for the plugin element:
      <plugin id="com.bea.eclipse.server.lib.weblogic9...>i removed "; singleton:=true" from the plugins.xml file and now "Manage Configuration" reports the status of the feature as "configured properly"; plus i am now able to complete the creation of new j2ee enterprise application projects.

    Could you open up a support case on this?
    william boyd wrote:
    just a heads-up to anybody else that might come across the same problem i did:
    when i tried to create a new j2ee enterprise application project on a brand new install of workshop 9.2 for solaris 9/sparc, workshop crashed before i could even finish creating the project.
    prior to trying to create the project, i had noticed in "Help -> Manage Configuration" that the "com.bea.eclipse.server.lib.weblogic9" plugin under the "WebLogic Workshop Server Libraries" feature was not configured properly. the configurator was reporting 'Plug-in "com.bea.eclipse.server.lib.weblogic9" referenced by this feature is missing'. i suspected that this missing plugin is what caused the crash.
    i examined $WORKSHOP_HOME/server/eclipse/plugins/com.bea.eclipse.server.lib..weblogic9/plugins.xml and saw that it had been installed originally with the following value for the plugin element:
      <plugin id="com.bea.eclipse.server.lib.weblogic9; singleton:=true"...>whereas the $WORKSHOP_HOME/server/eclipse/features/com.bea.eclipse.server.lib/feature.xml had the following value for the plugin element:
      <plugin id="com.bea.eclipse.server.lib.weblogic9...>i removed "; singleton:=true" from the plugins.xml file and now "Manage Configuration" reports the status of the feature as "configured properly"; plus i am now able to complete the creation of new j2ee enterprise application projects.

  • [Solved]Referencer from AUR doesn't work

    When started from a terminal, it says:
    int main(int, char**):
            setting pythonPath to :./plugins:/home/myname/.referencer/plugins:/usr/lib/referencer:
    (referencer:16345): libgnomevfs-CRITICAL **: gnome_vfs_get_file_info_uri_cancellable: assertion `uri != NULL' failed
    (referencer:16345): libgnomevfs-CRITICAL **: gnome_vfs_get_file_info_uri_cancellable: assertion `uri != NULL' failed
    Glib::ustring Utility::findDataFile(const Glib::ustring&):
            Utility::findDataFile: couldn't find file 'crossref.glade'
    (referencer:16345): libglade-WARNING **: could not find glade file ''
    terminate called after throwing an instance of 'Gnome::Glade::XmlError'
    Aborted
    Please help, thanks!
    Last edited by cyker (2012-04-20 06:18:56)

    ngoonee wrote:Don't use -Sy, it'll eventually break stuff. It could be that you accidentally deleted some of the files in gnome-vfs.
    Yes pacman -Sy is no good habit. I use it because I'd like to experience the newest version of a software. (This won't break the target software, right?) As a remedy I frequently run pacman -Syu when the system is free.

  • [Linker Error] Unresolved external 'niScope_init' referenced from C:\ALUNOS\ALLAN\EVA\BUILDER2.0B\UNIT1.OBJ

    Hi,
    First of all I'm sorry about my English. I'm developing a software on Builder C++ by Borland and we bought an NI DAQ 5112 PCI. I'd like to know if is possible to use the high-level functions from niScope (such as niScope_init, _AutoSetup, _close...) on this plataform. I'm asking it 'cause I could run every "example program" on it whithout any problem. But when I try to use it on my own project the message below is shown: unresolved external "niScope_init" referenced from "path_of_my_project".
    thanks,
    Allan

    Make sure you're linking to the niScope inport library.  I'm attaching the Borland import library from NI-SCOPE 2.9.1.
    (These forums won't let me attach a .lib.  So download this file, and rename it "niScope.lib")
    Attachments:
    niScope.txt ‏72 KB

  • Undefined symbols:   "___gxx_personality_v0$non_lazy_ptr",referenced from:

    Hi,
    I am getting following error while building . I tried searching on web as well for this error,but could not find a solution, suited for my problem. Searching on the web, I found two solutions :
    1.      Either use the compiler g++.
    2.      Add library stdc++ on the command, so that libstdc++ can be linked with.
    Actually both results are almost same, since g++ itself adds libstdc++ to the command before linking.
    I tried this solution, but it didn’t solve the problem. Thedifference between my problem and problem described on web is that in my case,undefined symbol is ___gxx_personality_v0$non_lazy_ptr,while all other problems described on web, describes missing___gxx_personality_v0. I tried searching for ___gxx_personality_v0$non_lazy_ptr in the libstdc++ and other libs as well using “nm”, but could not find this symbol.
    If anybody has any clue about tthis problem, please let me know.
    /usr/bin/cc  -prebind -o PROD "other .o's" "other libs"   -lgcc_eh
    Undefined symbols:
      "___gxx_personality_v0$non_lazy_ptr",referenced from:
    Error Icould found on web :
    Undefinedsymbols:
    "___gxx_personality_v0", referencedfrom:      è problems other encountered was that undefined symbol was__gxx_personality_v0.
    ___gxx_personality_v0$non_lazy_ptrin cciIlcV9.o  è In my case (see in my message), this is the undefined symbol. "std::basic_ostream<char,std::char_traits<char> >& std::endl<char,std::char_traits<char> >(std::basic_ostream<char,std::char_traits<char> >&)", referenced from:
    __ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_$non_lazy_ptrin cciIlcV9.o
    "std::ios_base::Init::~Init()",referenced from:
    Thanks& Regards,

    You're very welcome

  • Query to get list of linked server tables referenced inside a stored procedure

    Hi,
    SQL Server 2005 sp4
    I have a requirement to get list of linked server tables referenced insider a stored procedure
    Ex:
    Databases       DB1          DB2
    Tables:            T1             T2                            
    Use DB1
    Go
    Create proc P1
    begin
    select * from T1
    select * from DB2.dbo.T2
    end
    I am looking for a query which can return a result with output as below. sp_depends is not helping here as it does not work for cross DB objects, any other thoughts.
    Tables
    T1,
    DB2.dbo.T2

    On SQL 2005, you will have to do it manually.
    On SQL 2008 or later, you could have used sys.sql_expression_dependencies.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Hi there, I am trying to connect to my server at work from home using a vpn connection. It connects fine and the time ticks along, but when i click go - connect to server, it comes up with connection failed. Please help!

    Hi there, I am trying to connect to my server at work from home using a vpn connection. It connects fine and the time ticks along, but when i click go - connect to server, it comes up with connection failed. Please help!

    ... when i click go - connect to server, it comes up with connection failed.
    If you're trying to connect to a Bonjour server on the remote network, that won't work over a layer 3 VPN. Use something like Hamachi or one of the SSH-tunnelling Bonjour proxy apps for that.

  • How to make upgrade from application server and not from central instance?

    Hello SAP Gurus!
    I have SAP ECC release 6.0, and I´m gonna make upgrade to enhancement package 6.06, do you know if Can I make upgrade from application server, but not from central instance?
    Thanks.

    Hi Victor,
    Upgrade process has to execute from the server where message server is running.
    So I guess it is not possible to initiate the SAP upgrade  from application server.
    Regards,
    Deepak Kori

  • I have an iPad 2 and receive e-mail through internet connection. When I delete e-mails, and clear my Trash folder, they re-appear. Setting are for remove from server when moved from Inbox. Any idea what I can do to actually delete them?

    I have an iPad 2 and receive e-mail through regular internet connection. Lately, when I delete e-mails, and clear my Trash folder, they re-appear, downloaded anew from the server and marked as unread. My e-mail Advanced Settings are selected for "Remove from server when moved from Inbox." Even when I access the e-mail accountfrom my desktop and delete the e-mails, the re-appear on my iPad. Does anyone have any idea what is causing this and what I can do to actually delete them?

    Sounds like you are looking in the wrong Administrative Group container which is why you are seeing your Exchange 2010 servers in there.
    When you install Exchange 2003 only you will see a container named by default as "CN=First Administrative Group" container. But this could be named anything if you changed the Organization Name on the installation when you installed the first
    Exchange 2003 server into the domain/forest. 
    You will notice that when you install Exchange 2010 part of the AD setup is to create a new configuration container and is named by default "CN=First Administrative Group (FYDIBOHF23SPDLT)".
    So it sounds like you are not looking in the right location within ADSIEdit. 
    You may find the following article also helpful for this issue which is the same resolution:
    http://blogs.technet.com/b/sbs/archive/2012/05/17/empty-cn-servers-container-causing-issues-with-public-folders-on-small-business-server-2011.aspx
    I recommend though that you ensure your Exchange 2003 servers are fully uninstalled or no longer present in your environment before you go deleting the Servers container though.. The following Microsoft article will help with this:
    http://technet.microsoft.com/en-gb/library/gg576862(v=exchg.141).aspx

  • _OBJC_IVAR_$_        Referenced From Error while trying to deploy in iphone

    Hi All,
    I am facing one problem. any one who are aware of this project please help me.
    My problem is:
    i have Mac OS of 10.5.8 and xcode of 3.1.4
    while i am trying to implement a application of audio files i want the frame work called "AVFoundation.Framework" i didn't found that frame work in my library.
    so i added that framework from "MACOS10.4" .
    but in simulator 3.1 it works fine. while trying to deploy in my iphone i am getting error like:
    "-(avTouchcontroller updatecurrenttime)", referenced from:
    _OBJC_IVAR_$_ avTouchcontroller._ivlmeter_in in avTouchController.o

    Why don't you post here (again) and you might get some answers:
    http://discussions.apple.com/message.jspa?messageID=10512489#10512489

  • Install Oracle VM Server T4-4 from OPS Center 12c

    Hello,
    I try to install my new server T4-4 from OPS Center with a New profile OS Provisioning. It start and work perfectelly, but when arrive the time to configure the Network in aggregate (net2 and net3).
    the process is never execute. From the cisco switch all is well done for aggregate the port.
    I have the following messages just after the first reboot.
    Is there a DOC or any idea will be appreciate.
    Thank's for help
    Willy
    Boot device: /pci@0/pci@0/pci@2/scsi@0/disk@3,0:a  File and args: -Z rpool/ROOT/solaris
    SunOS Release 5.11 Version 11.1 64-bit
    Copyright (c) 1983, 2012, Oracle and/or its affiliates. All rights reserved.
    Loading smf(5) service descriptions: 205/205
    WARNING: svccfg apply /etc/svc/profile/site failed
    Configuring devices.
    Loading smf(5) service descriptions: 2/2
    Warning: Unable to verify add of static route on net2/v4
    Error code = 145
    Hostname: ddom12
    Here is my profile to aggregate.
    Link Aggregation Name: aggr1                    Network: 10.8.0.0/14.1         
    Load Balancing Policy : L3                         VLAN ID:  -
                                                                    NICs: 2
                                                                             3
    MAC Address Policy:  Fixed - Use Mac address of a specific NIC: 2
                                                                   LACP Mode:  Active
                                                                   LACP Timer:  Short

    Hello,
    I try to install my new server T4-4 from OPS Center with a New profile OS Provisioning. It start and work perfectelly, but when arrive the time to configure the Network in aggregate (net2 and net3).
    the process is never execute. From the cisco switch all is well done for aggregate the port.
    I have the following messages just after the first reboot.
    Is there a DOC or any idea will be appreciate.
    Thank's for help
    Willy
    Boot device: /pci@0/pci@0/pci@2/scsi@0/disk@3,0:a  File and args: -Z rpool/ROOT/solaris
    SunOS Release 5.11 Version 11.1 64-bit
    Copyright (c) 1983, 2012, Oracle and/or its affiliates. All rights reserved.
    Loading smf(5) service descriptions: 205/205
    WARNING: svccfg apply /etc/svc/profile/site failed
    Configuring devices.
    Loading smf(5) service descriptions: 2/2
    Warning: Unable to verify add of static route on net2/v4
    Error code = 145
    Hostname: ddom12
    Here is my profile to aggregate.
    Link Aggregation Name: aggr1                    Network: 10.8.0.0/14.1         
    Load Balancing Policy : L3                         VLAN ID:  -
                                                                    NICs: 2
                                                                             3
    MAC Address Policy:  Fixed - Use Mac address of a specific NIC: 2
                                                                   LACP Mode:  Active
                                                                   LACP Timer:  Short

  • Server 2012 errors for timeout -- LDAP error number: 55 -- LDAP error string: Timeout Failed to get server error string from LDAP connection

    Hello, currently getting below error msg's utilizing software thru which LDAP is queried for discovering AD objects/path and resource enumeration and tracking.
    Have ensured firewalls and port (389 ) relational to LDAP are not closed, thus causing hanging.
    I see there was a write up on Svr 2003 ( https://support.microsoft.com/en-us/kb/315071 ) not sure if this is applicable, of if the "Ntdsutil.exe" arcitecture has changed much from Svr 03. Please advise. 
    -----------error msg  ----------------
    -- LDAP error number: 55
    -- LDAP error string: Timeout Failed to get server error string from LDAP connection

    The link you shared is still applicable. You can adjust your LDAP policy depending on your software requirements.
    I would also recommend that you in touch with your software vendor to get more details about the software requirements.
    This posting is provided AS IS with no warranties or guarantees , and confers no rights.
    Ahmed MALEK
    My Website Link
    My Linkedin Profile
    My MVP Profile

  • ORA-30937 when validating element referenced from included schema

    I've boiled my latest problem down to a simple test case. Basically it seems as though the included schema is the problem, but I can't figure out why:
    begin
    dbms_xmlschema.deleteSchema('http://www.forensic.gov.uk/eMessages/Pnclink/NDNA/testinclude.xsd', dbms_xmlschema.DELETE_CASCADE_FORCE);
    dbms_xmlschema.registerSchema('http://www.forensic.gov.uk/eMessages/Pnclink/NDNA/testinclude.xsd',
    '<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" versionfiltered="1-00" id="NDNASimpleTypes">
    <xsd:complexType name="MessageHeaderType">
    <xsd:sequence>
    <xsd:element name="MESSAGE_NUMBER" type="xsd:long"/>
    <xsd:element name="MESSAGE_TYPE" type="MessageTypeType"/>
    <xsd:element name="MESSAGE_DATE" type="xsd:dateTime"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:simpleType name="MessageTypeType">
    <xsd:annotation>
    <xsd:documentation>The definition of the Sample Message Types</xsd:documentation>
    </xsd:annotation>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="2"/>
    <xsd:enumeration value="CT"/>
    <xsd:enumeration value="CA"/>
    <xsd:enumeration value="CD"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:schema>',TRUE,FALSE,FALSE,FALSE);
    dbms_xmlschema.deleteSchema('http://www.forensic.gov.uk/eMessages/Pnclink/NDNA/Test.xsd', dbms_xmlschema.DELETE_CASCADE);
    dbms_xmlschema.registerSchema('http://www.forensic.gov.uk/eMessages/Pnclink/NDNA/Test.xsd',
    '<xsd:schema xmlns="http://www.forensic.gov.uk/eMessages/Pnclink/NDNA" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.forensic.gov.uk/eMessages/Pnclink/NDNA" elementFormDefault="qualified" attributeFormDefault="unqualified" versionfiltered="1.0" id="Test">
    <xsd:include schemaLocation="http://www.forensic.gov.uk/eMessages/Pnclink/NDNA/testinclude.xsd"/>
    <xsd:element name="SAMPLE_MESSAGE">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="MESSAGE_HEADER" type="MessageHeaderType"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>',TRUE,TRUE,FALSE,FALSE);
    END;
    update xml_in
    set xml_data = xmltype ( '<?xml versionfiltered="1.0" encoding="UTF-8"?>
    <!--Sample XML file generated by XMLSpy v2005 rel. 3 U (http://www.altova.com)-->
    <SAMPLE_MESSAGE xmlns="http://www.forensic.gov.uk/eMessages/Pnclink/NDNA" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.forensic.gov.uk/eMessages/Pnclink/NDNA http://www.forensic.gov.uk/eMessages/Pnclink/NDNA/Test.xsd">
    <MESSAGE_HEADER>
    <MESSAGE_NUMBER>2147483647</MESSAGE_NUMBER>
    <MESSAGE_TYPE>CT</MESSAGE_TYPE>
    <MESSAGE_DATE>2001-12-17T09:30:47</MESSAGE_DATE>
    </MESSAGE_HEADER>
    </SAMPLE_MESSAGE>
    where msg_id = 8
    and I get the error:
    ORA-30937: No schema definition for 'MESSAGE_NUMBER' (namespace 'http://www.forensic.gov.uk/eMessages/Pnclink/NDNA') in parent 'MESSAGE_HEADER'
    ORA-06512: at "SYS.XMLTYPE", line 0
    ORA-06512: at line 27
    But if I remove the MESSAGE_NUMBER I get
    ORA-31154: invalid XML document
    ORA-19202: Error occurred in XML processing
    LSX-00213: only 0 occurrences of particle "MESSAGE_NUMBER", minimum is 1
    ORA-06512: at "SYS.XMLTYPE", line 0
    ORA-06512: at line 37
    So it knows there is supposed to be a particle called message_number if it's not there, but not what to do with it if it is.
    One other thing, which I think is significant: If I amend my test.xsd schema so I define MESSAGE_HEADER there, so the only thing being referenced from testinclude.xsd is the SIMPLE type "MessageTypeType", I don't have a problem. It seems to be only when I include COMPLEX types.
    Any suggestions?

    Dave
    I can't register the XML Schemas with XML DB, since we do think versionfiltered is a valid attribute for a schema element...
    SQL> declare
      2    res boolean;
      3    xmlSchema xmlType := xmlType(
      4  '<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" versionfilt
    ered="1-00" id="NDNASimpleTypes">
      5
      6          <xsd:complexType name="MessageHeaderType">
      7                  <xsd:sequence>
      8                          <xsd:element name="MESSAGE_NUMBER" type="xsd:long"/>
      9                          <xsd:element name="MESSAGE_TYPE" type="MessageTypeType"/>
    10                          <xsd:element name="MESSAGE_DATE" type="xsd:dateTime"/>
    11                  </xsd:sequence>
    12          </xsd:complexType>
    13          <xsd:simpleType name="MessageTypeType">
    14                  <xsd:annotation>
    15                          <xsd:documentation>The definition of the Sample Message Types</xsd:documentation>
    16                  </xsd:annotation>
    17                  <xsd:restriction base="xsd:string">
    18                          <xsd:maxLength value="2"/>
    19                          <xsd:enumeration value="CT"/>
    20                          <xsd:enumeration value="CA"/>
    21                          <xsd:enumeration value="CD"/>
    22                  </xsd:restriction>
    23          </xsd:simpleType>
    24  </xsd:schema>');
    25  begin
    26    if (dbms_xdb.existsResource(:schemaPath)) then
    27      dbms_xdb.deleteResource(:schemaPath);
    28    end if;
    29    res := dbms_xdb.createResource(:schemaPath,xmlSchema);
    30  end;
    31  /
    Queuing DELETE Event
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.04
    SQL> begin
      2    dbms_xmlschema.registerSchema
      3    (
      4      :schemaURL,
      5      xdbURIType(:schemaPath).getClob(),
      6      TRUE,TRUE,FALSE,TRUE
      7    );
      8  end;
      9  /
    begin
    ERROR at line 1:
    ORA-30937: No schema definition for 'versionfiltered' (namespace '##local') in parent '/schema'
    ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 20
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 31
    ORA-06512: at line 2XMLSPY agrees with us on this...
    If I change version filtered to version I get
    SQL> var schemaURL varchar2(256)
    SQL> var schemaPath varchar2(256)
    SQL> --
    SQL> begin
      2    :schemaURL := 'http://www.forensic.gov.uk/eMessages/Pnclink/NDNA/testinclude.xsd';
      3    :schemaPath := '/public/testinclude.xsd';
      4  end;
      5  /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.00
    SQL> call dbms_xmlSchema.deleteSchema(:schemaURL,4)
      2  /
    Queuing DELETE Event
    Call completed.
    Elapsed: 00:00:00.07
    SQL> declare
      2    res boolean;
      3    xmlSchema xmlType := xmlType(
      4  '<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1-
    00" id="NDNASimpleTypes">
      5
      6          <xsd:complexType name="MessageHeaderType">
      7                  <xsd:sequence>
      8                          <xsd:element name="MESSAGE_NUMBER" type="xsd:long"/>
      9                          <xsd:element name="MESSAGE_TYPE" type="MessageTypeType"/>
    10                          <xsd:element name="MESSAGE_DATE" type="xsd:dateTime"/>
    11                  </xsd:sequence>
    12          </xsd:complexType>
    13          <xsd:simpleType name="MessageTypeType">
    14                  <xsd:annotation>
    15                          <xsd:documentation>The definition of the Sample Message Types</xsd:documentation>
    16                  </xsd:annotation>
    17                  <xsd:restriction base="xsd:string">
    18                          <xsd:maxLength value="2"/>
    19                          <xsd:enumeration value="CT"/>
    20                          <xsd:enumeration value="CA"/>
    21                          <xsd:enumeration value="CD"/>
    22                  </xsd:restriction>
    23          </xsd:simpleType>
    24  </xsd:schema>');
    25  begin
    26    if (dbms_xdb.existsResource(:schemaPath)) then
    27      dbms_xdb.deleteResource(:schemaPath);
    28    end if;
    29    res := dbms_xdb.createResource(:schemaPath,xmlSchema);
    30  end;
    31  /
    Queuing DELETE Event
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.04
    SQL> begin
      2    dbms_xmlschema.registerSchema
      3    (
      4      :schemaURL,
      5      xdbURIType(:schemaPath).getClob(),
      6      TRUE,TRUE,FALSE,TRUE
      7    );
      8  end;
      9  /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.20
    SQL> begin
      2    :schemaURL := 'http://www.forensic.gov.uk/eMessages/Pnclink/NDNA/Test.xsd';
      3    :schemaPath := '/public/Test.xsd';
      4  end;
      5  /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.01
    SQL> call dbms_xmlSchema.deleteSchema(:schemaURL,4)
      2  /
    Queuing DELETE Event
    Call completed.
    Elapsed: 00:00:00.06
    SQL> declare
      2    res boolean;
      3    xmlSchema xmlType := xmlType(
      4  '<xsd:schema xmlns="http://www.forensic.gov.uk/eMessages/Pnclink/NDNA" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="ht
    tp://www.forensic.gov.uk/eMessages/Pnclink/NDNA" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0" id="Test">
      5
      6          <xsd:include schemaLocation="http://www.forensic.gov.uk/eMessages/Pnclink/NDNA/testinclude.xsd"/>
      7        <xsd:element name="SAMPLE_MESSAGE">
      8                  <xsd:complexType>
      9                          <xsd:sequence>
    10                                  <xsd:element name="MESSAGE_HEADER" type="MessageHeaderType"/>
    11                          </xsd:sequence>
    12                  </xsd:complexType>
    13          </xsd:element>
    14    </xsd:schema>');
    15  begin
    16    if (dbms_xdb.existsResource(:schemaPath)) then
    17      dbms_xdb.deleteResource(:schemaPath);
    18    end if;
    19    res := dbms_xdb.createResource(:schemaPath,xmlSchema);
    20  end;
    21  /
    Queuing DELETE Event
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.04
    SQL> begin
      2    dbms_xmlschema.registerSchema
      3    (
      4      :schemaURL,
      5      xdbURIType(:schemaPath).getClob(),
      6      TRUE,TRUE,FALSE,FALSE
      7    );
      8  end;
      9  /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.14
    SQL> var xmltext varchar2(4000)
    SQL> --
    SQL> begin
      2    :xmltext :=
      3  '<SAMPLE_MESSAGE xmlns="http://www.forensic.gov.uk/eMessages/Pnclink/NDNA" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:sc
    hemaLocation="http://www.forensic.gov.uk/eMessages/Pnclink/NDNA http://www.forensic.gov.uk/eMessages/Pnclink/NDNA/Test.xsd">
      4     <MESSAGE_HEADER>
      5        <MESSAGE_NUMBER>2147483647</MESSAGE_NUMBER>
      6        <MESSAGE_TYPE>CT</MESSAGE_TYPE>
      7        <MESSAGE_DATE>2001-12-17T09:30:47</MESSAGE_DATE>
      8     </MESSAGE_HEADER>
      9  </SAMPLE_MESSAGE>';
    10  end;
    11  /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.01
    SQL> drop table xml_in
      2  /
    Table dropped.
    Elapsed: 00:00:00.04
    SQL> create table xml_in
      2  (
      3    msg_id   number(4),
      4    xml_data xmltype
      5  )
      6  /
    Table created.
    Elapsed: 00:00:00.03
    SQL> insert into xml_in values ( 8, xmltype ('<FOO/>'))
      2  /
    1 row created.
    Elapsed: 00:00:00.01
    SQL> declare
      2    xmldata xmltype;
      3  begin
      4    xmldata := xmltype(:xmltext);
      5    xmldata.schemaValidate();
      6  end;
      7  /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.09
    SQL> update xml_in
      2     set xml_data = xmltype ( :xmltext )
      3   where msg_id = 8
      4  /
    1 row updated.
    Elapsed: 00:00:00.01
    SQL> select * from xml_in
      2  /
        MSG_ID
    XML_DATA
             8
    <SAMPLE_MESSAGE xmlns="http://www.forensic.gov.uk/eMessages/Pnclink/NDNA" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLo
    cation="ht
    tp://www.forensic.gov.uk/eMessages/Pnclink/NDNA http://www.forensic.gov.uk/eMessages/Pnclink/NDNA/Test.xsd">
      <MESSAGE_HEADER>
        <MESSAGE_NUMBER>2147483647</MESSAGE_NUMBER>
        <MESSAGE_TYPE>CT</MESSAGE_TYPE>
        <MESSAGE_DATE>2001-12-17T09:30:47</MESSAGE_DATE>
      </MESSAGE_HEADER>
    </SAMPLE_MESSAGE>
    Elapsed: 00:00:00.06
    SQL>

  • Another question: non-static variable super cannot be referenced from ...?

    class a
    int i;     
    int j=2;
    a(int i)
    this.i=i;
    public class b extends a
         b()
         super(8);     
    public static void main(String args[])
    b test=new b();
    System.out.print(test.i);
    test.j=1;
    System.out.print("test.j="+test.j);
    System.out.print("super.j="+super.j);
    b.java:28: non-static variable super cannot be referenced from a static context
    System.out.print("super.j="+super.j);
    ^
    1 error
    thanks

    You cannot call "super" from a static context. Just like you can't use "this" or call any non-static methods in a static context.
    Try with test.super.j, although I'm not sure if it works. But you can call super.j in a non-static context, e.g. in your constructor, or in a non-static method.

Maybe you are looking for