Jdom error

Hi,
I'm using jdom in my applicatiion. It works on my windows machine but when deployed to linux server (oracle 9i) i get this runtime error -
java.lang.NoClassDefFoundError: Lorg/jdom/Document;
     at java.lang.Class.getDeclaredFields0(Native Method)
     at java.lang.Class.privateGetDeclaredFields(Class.java:1514)
     at java.lang.Class.getDeclaredField(Class.java:1206)
     at java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1474)
     at java.io.ObjectStreamClass.access$400(ObjectStreamClass.java:47)
     at java.io.ObjectStreamClass$3.run(ObjectStreamClass.java:335)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:333)
     at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:253)
     at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1010)
     at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.ejb.EJBUtils.cloneSerialize(EJBUtils.java:412)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.ejb.EJBUtils.cloneObject(EJBUtils.java:399)
Any ideas?
thanks

Also, add jdom.jar to Classpath.
org.jdom package is in the jdom.jar
thanks,
Deepak

Similar Messages

  • JDOM Error on 2 PCs

    hiya,
    i programmed a Java app which reads an xml file
    i have 2 pcs in the network, they have the same settings and run time. all Sets come from the active Directory.
    on one pc i can strart the java and READ the xml.
    on other pc i can start the java but DONT read the xml.
    any explination?
    run time error:
    java + xml file PATH : G://ANN//DB3G//
    i tried also : G:/ANN/DB3G/
    the root of the xml : null
    org.jdom.JDOMException: Error in building: unknown protocol: g
    thx

    i can say your answer is very good and i understood what u mean.
    ok. i open the file with
    // the url is in url_str.
    doc = builder.build(url_str+ "DB3G_Config.xml" );
    root = doc.getRootElement();
    List children = root.getChildren();
    children = ((Element)children.get(0)).getChildren();  
    // and so on.but can u explain for me, why does it work on one pc, and on the other not?
    and sure "ftp" is a protocol and "G" is not, what should i use then, if i cant use URL?
    thx

  • Wka vs. multicast error logging

    I have been moving our caches from multicast to use wka. Along the way It seems as if the wka seting provides less and/or different logging in the jvm error log.
    For example, with multicast enabled, I had a jdom error that was correctly being reported in the error log. Once I enabled wka, the error did not appear even though the problem still existed. It was only switching back to multicast that I again saw the error and was able to correct
    If this is true, is there a setting in the tangosol-coherence-override.xml file that will provide the same type if logging the multicast settings seem to produce.
    regards,
    cj willette
    systems engineer
    ll bean, freeport maine

    Hi CJ.
    I wonder if you had a configuration error in the tangosol-coherence-override.xml when you defined the WKA list. As a result you could have the entire cluster configuration using the default settings instead and as a result not seeing your specific cache configuration.
    Could you please send the WKA configuration to support at tangosol.com, so we could verify the correctness of the setup.
    Regards,
    Gene

  • JDOM: Parsing XML String, getting error

    Hello,
    I am new to this forum, so please forgive me
    if this has already been asked before. I want to
    parse an XML string. I know the JDOM parser works
    great with a file, but apparently I have been
    unsuccessful parsing an XML String. Below is how I
    initialize the parser:
    import java.io.*; //Import proper packages
    import org.jdom.*;
    import org.jdom.input.*;
    import org.jdom.output.*;
    import java.util.*;
    import java.lang.*;
    public class XMLParser{
    private Document doc = null;
    public XMLParser(String xml){
    doc = readDocument(xml);
    private Document readDocument(String xml) {
    try {
    SAXBuilder builder = new SAXBuilder();
    org.jdom.Document result = builder.build(new
    StringReader(xml));
    return result;
    } catch(JDOMException e) {
    e.printStackTrace();
    } catch(NullPointerException e) {
    e.printStackTrace();
    return null;
    } //readDocument
    The following is the error I receive:
    JDOM/xmlparser.java [81:1] cannot resolve symbol
    symbol : method build (java.io.StringReader)
    location: class org.jdom.input.SAXBuilder
    org.jdom.Document result = builder.build(new
    StringReader(filename));
    --> Arrow pointing to builder.build
    Please if someone can help me out. If JDOM does not
    have this feature, then can someone please recommend a
    parser that can parse an XML String.

    Thank you for your help, although it seems like it was JDom 9 beta. When I tried with JDOM 8 beta, everything worked fine even with the StringReader. So if anyone is having similar problems with JDom 9 then try with JDom 8.

  • SIGSEGV error occurred during init a JDOM element

    HI!
    I have faced a problem related to segmentation failed in Linux box. I got following error -
    J org.jdom.Element.<init>(Ljava/lang/String;)V
    siginfo:si_signo=SIGSEGV: si_errno=0, si_code=2 (SEGV_ACCERR), si_addr=0x00002aab2ac30000
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    It is also shows in the log that 100% use of PermGen space. Why this segmentation fault occurred? Is it related to JDK or JDOM?
    In my understanding, problem is related to JDK and occurred due to 100% use of PermGen space. But I am not sure as Problematic frame is J.
    Another interesting point is "error occurred during error reporting (printing native stack), id 0xb".
    I am using JDK6up20 and Linux environment. Please find logs below.
    ****************************** Logs *****************************************************************************************
    [myapps@mynbl01 batch]$ cat GVNSV1050D0_20130218_180109_mynbl01.12264.service.log
    Running My Console Application
    Using My Home [opt/myapps/nyc/bin]
    Using My Run Home [opt/myapps/nyc/bin]
    Using Java executable [usr/java/latest/bin/java]
    Monitor Service initializing.....
    Monitor Service started...
    # A fatal error has been detected by the Java Runtime Environment:
    # SIGSEGV (0xb) at pc=0x00002aaaab404284, pid=13019, tid=1113000256
    # JRE version: 6.0_20-b02
    # Java VM: Java HotSpot(TM) 64-Bit Server VM (16.3-b01 mixed mode linux-amd64 )
    # Problematic frame:
    # J org.jdom.Element.<init>(Ljava/lang/String;)V
    # An error report file with more information is saved as:
    # /home/myapps/hs_err_pid13019.log
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    /opt/myapps/nyc/bin/run.sh: line 104: 13019 Aborted (core dumped) "${_JAVACMD}" -DMyhome="${_My_RUN_HOME}" -Djava.endorsed.dirs="${_XENDORSEDDIRS}" -Djava.security.egd=file:///dev/urandom "${@}"
    [myapps@mynbl01 batch]$ cat /home/myapps/hs_err_pid13019.log
    # A fatal error has been detected by the Java Runtime Environment:
    # SIGSEGV (0xb) at pc=0x00002aaaab404284, pid=13019, tid=1113000256
    # JRE version: 6.0_20-b02
    # Java VM: Java HotSpot(TM) 64-Bit Server VM (16.3-b01 mixed mode linux-amd64 )
    # Problematic frame:
    # J org.jdom.Element.<init>(Ljava/lang/String;)V
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    --------------- T H R E A D ---------------
    Current thread (0x000000004596b000): JavaThread "Thread-9" [_thread_in_Java, id=13598, stack(0x0000000042470000,0x0000000042571000)]
    siginfo:si_signo=SIGSEGV: si_errno=0, si_code=2 (SEGV_ACCERR), si_addr=0x00002aab2ac30000
    Registers:
    RAX=0x0000000000000001, RBX=0x00002aab29040eb0, RCX=0x0000000000000008, RDX=0x0000000000000004
    RSP=0x000000004256f128, RBP=0x00002a95d8c8f000, RSI=0x00002aab2ac2fff8, RDI=0x00002aab29040ec8
    R8 =0x0000000000000014, R9 =0x0000000000000013, R10=0x00002aab2ac2ff98, R11=0x0000000000000014
    R12=0x00002aab2ab9b270, R13=0x000000004256f190, R14=0x000000004256f210, R15=0x000000004596b000
    RIP=0x00002aaaab404284, EFL=0x0000000000010202, CSGSFS=0x0000000000000033, ERR=0x0000000000000004
    TRAPNO=0x000000000000000e
    Top of Stack: (sp=0x000000004256f128)
    0x000000004256f128: 0000000000000001 00002aab29040ec8
    0x000000004256f138: 00002aab2ac2ffd8 00002aab2ac2ff98
    0x000000004256f148: 00002aaaaf713a90 000000004596b798
    0x000000004256f158: 000000004596b7b8 0000000000000040
    0x000000004256f168: 000000004256f200 000000004256f1e8
    0x000000004256f178: 00002aaaab145a42 0000000045844640
    0x000000004256f188: 00002aaaab145a42 00002aab2ac2ff98
    0x000000004256f198: 00002aaaaf713a90 00002aaaaf713a90
    0x000000004256f1a8: 000000004256f1a8 00002aab2a7420ab
    0x000000004256f1b8: 000000004256f210 00002aab2a743b50
    0x000000004256f1c8: 00002aab2aaa9458 00002aab2a742100
    0x000000004256f1d8: 000000004256f190 000000004256f200
    0x000000004256f1e8: 000000004256f258 00002aaaab145a42
    0x000000004256f1f8: 0000000000000000 00002aab2a7902f8
    0x000000004256f208: 00002aab2ac2ff98 00002aaaaf712c98
    0x000000004256f218: 000000004256f218 00002aab2ab9dad4
    0x000000004256f228: 000000004256f2a0 00002aab2ac2c738
    0x000000004256f238: 0000000000000000 00002aab2ab9dc68
    0x000000004256f248: 000000004256f200 000000004256f298
    0x000000004256f258: 000000004256f2e8 00002aaaab1458e9
    0x000000004256f268: 0000000000000000 00002aaaaf713288
    0x000000004256f278: 00002aaaaf712d50 00002aaaaf712c98
    0x000000004256f288: 00002aaaaf529658 00002aaaaf70ba18
    0x000000004256f298: 00002aaaaf5291b8 00002aaaaf704b80
    0x000000004256f2a8: 000000004256f2a8 00002aab2ab9d3c4
    0x000000004256f2b8: 000000004256f340 00002aab2ac2c738
    0x000000004256f2c8: 0000000000000000 00002aab2ab9d570
    0x000000004256f2d8: 000000004256f298 000000004256f340
    0x000000004256f2e8: 000000004256f388 00002aaaab1458e9
    0x000000004256f2f8: 0000000000000000 0000000000000000
    0x000000004256f308: 0000000000000000 0000000000000000
    0x000000004256f318: 00002aaaaf5291b8 00002aaaaf70b9f0
    Instructions: (pc=0x00002aaaab404284)
    0x00002aaaab404274: 48 83 c2 08 48 83 ee 10 48 83 ea 08 48 83 c6 10
    0x00002aaaab404284: 66 0f 3a 61 06 0d 77 f0 73 4f 2b d1 3b d0 78 49
    Stack: [0x0000000042470000,0x0000000042571000], sp=0x000000004256f128, free space=3fc0000000000000018k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    J org.jdom.Element.<init>(Ljava/lang/String;)V
    [error occurred during error reporting (printing native stack), id 0xb]
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x000000004598b800 JavaThread "PoolScavenger0" daemon [_thread_blocked, id=13612, stack(0x0000000042571000,0x0000000042672000)]
    =>0x000000004596b000 JavaThread "Thread-9" [_thread_in_Java, id=13598, stack(0x0000000042470000,0x0000000042571000)]
    0x0000000045843000 JavaThread "Thread-8" daemon [_thread_blocked, id=13597, stack(0x000000004236f000,0x0000000042470000)]
    0x0000000045c6e000 JavaThread "RMI Reaper" [_thread_blocked, id=13583, stack(0x000000004216d000,0x000000004226e000)]
    0x0000000045dd7800 JavaThread "RMI TCP Accept-0" daemon [_thread_in_native, id=13582, stack(0x0000000041b83000,0x0000000041c84000)]
    0x0000000045cc5000 JavaThread "GC Daemon" daemon [_thread_blocked, id=13573, stack(0x0000000041a82000,0x0000000041b83000)]
    0x0000000045e55000 JavaThread "RMI Scheduler(0)" daemon [_thread_blocked, id=13571, stack(0x00000000412e6000,0x00000000413e7000)]
    0x0000000045f81800 JavaThread "Thread-5" daemon [_thread_blocked, id=13399, stack(0x00000000411e5000,0x00000000412e6000)]
    0x0000000045f80800 JavaThread "Thread-6" daemon [_thread_blocked, id=13398, stack(0x0000000040f1e000,0x000000004101f000)]
    0x0000000045943800 JavaThread "Thread-4" daemon [_thread_blocked, id=13396, stack(0x000000004075a000,0x000000004085b000)]
    0x000000004577c800 JavaThread "Thread-3" daemon [_thread_in_native, id=13395, stack(0x00000000404c0000,0x00000000405c1000)]
    0x000000004584b800 JavaThread "Thread-2" daemon [_thread_blocked, id=13394, stack(0x0000000040a5e000,0x0000000040b5f000)]
    0x00000000459d4000 JavaThread "Thread-1" daemon [_thread_in_native, id=13393, stack(0x00000000401de000,0x00000000402df000)]
    0x0000000045723000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=13309, stack(0x0000000041f6b000,0x000000004206c000)]
    0x0000000045721000 JavaThread "CompilerThread1" daemon [_thread_blocked, id=13294, stack(0x0000000041e6a000,0x0000000041f6b000)]
    0x000000004571c800 JavaThread "CompilerThread0" daemon [_thread_blocked, id=13283, stack(0x0000000041d69000,0x0000000041e6a000)]
    0x000000004571a800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=13273, stack(0x00000000416c0000,0x00000000417c1000)]
    0x00000000456f7000 JavaThread "Finalizer" daemon [_thread_blocked, id=13180, stack(0x00000000415bf000,0x00000000416c0000)]
    0x00000000456f5000 JavaThread "Reference Handler" daemon [_thread_blocked, id=13174, stack(0x0000000040659000,0x000000004075a000)]
    0x000000004569d000 JavaThread "main" [_thread_blocked, id=13020, stack(0x00000000410e4000,0x00000000411e5000)]
    Other Threads:
    0x00000000456f0800 VMThread [stack: 0x00000000403bf000,0x00000000404c0000] [id=13163]
    0x0000000045726800 WatcherThread [stack: 0x000000004206c000,0x000000004216d000] [id=13317]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 37824K, used 26322K [0x00002aaaae200000, 0x00002aaab0b00000, 0x00002aaad70a0000)
    eden space 33664K, 65% used [0x00002aaaae200000, 0x00002aaaaf7a4be0, 0x00002aaab02e0000)
    from space 4160K, 99% used [0x00002aaab06f0000, 0x00002aaab0affff8, 0x00002aaab0b00000)
    to space 4160K, 0% used [0x00002aaab02e0000, 0x00002aaab02e0000, 0x00002aaab06f0000)
    tenured generation total 83840K, used 17652K [0x00002aaad70a0000, 0x00002aaadc280000, 0x00002aab28e00000)
    the space 83840K, 21% used [0x00002aaad70a0000, 0x00002aaad81dd110, 0x00002aaad81dd200, 0x00002aaadc280000)
    compacting perm gen total 30912K, used 30912K [0x00002aab28e00000, 0x00002aab2ac30000, 0x00002aab2e200000)
    the space 30912K, 100% used [0x00002aab28e00000, 0x00002aab2ac30000, 0x00002aab2ac30000, 0x00002aab2ac30000)
    No shared spaces configured.
    Dynamic libraries:
    40000000-40009000 r-xp 00000000 fd:00 527191 /usr/java/jdk1.6.0_20/bin/java
    40108000-4010a000 rwxp 00008000 fd:00 527191 /usr/java/jdk1.6.0_20/bin/java
    45691000-46e0a000 rwxp 45691000 00:00 0 [heap]
    3422200000-342221c000 r-xp 00000000 fd:00 1833565 /lib64/ld-2.5.so
    342241b000-342241c000 r-xp 0001b000 fd:00 1833565 /lib64/ld-2.5.so
    342241c000-342241d000 rwxp 0001c000 fd:00 1833565 /lib64/ld-2.5.so
    3422600000-342274e000 r-xp 00000000 fd:00 1833566 /lib64/libc-2.5.so
    342274e000-342294d000 ---p 0014e000 fd:00 1833566 /lib64/libc-2.5.so
    342294d000-3422951000 r-xp 0014d000 fd:00 1833566 /lib64/libc-2.5.so
    3422951000-3422952000 rwxp 00151000 fd:00 1833566 /lib64/libc-2.5.so
    3422952000-3422957000 rwxp 3422952000 00:00 0
    3422a00000-3422a02000 r-xp 00000000 fd:00 1833567 /lib64/libdl-2.5.so
    3422a02000-3422c02000 ---p 00002000 fd:00 1833567 /lib64/libdl-2.5.so
    3422c02000-3422c03000 r-xp 00002000 fd:00 1833567 /lib64/libdl-2.5.so
    3422c03000-3422c04000 rwxp 00003000 fd:00 1833567 /lib64/libdl-2.5.so
    3422e00000-3422e82000 r-xp 00000000 fd:00 1833433 /lib64/libm-2.5.so
    3422e82000-3423081000 ---p 00082000 fd:00 1833433 /lib64/libm-2.5.so
    3423081000-3423082000 r-xp 00081000 fd:00 1833433 /lib64/libm-2.5.so
    3423082000-3423083000 rwxp 00082000 fd:00 1833433 /lib64/libm-2.5.so
    3423200000-3423216000 r-xp 00000000 fd:00 1833427 /lib64/libpthread-2.5.so
    3423216000-3423415000 ---p 00016000 fd:00 1833427 /lib64/libpthread-2.5.so
    3423415000-3423416000 r-xp 00015000 fd:00 1833427 /lib64/libpthread-2.5.so
    3423416000-3423417000 rwxp 00016000 fd:00 1833427 /lib64/libpthread-2.5.so
    3423417000-342341b000 rwxp 3423417000 00:00 0
    3423a00000-3423a07000 r-xp 00000000 fd:00 1833572 /lib64/librt-2.5.so
    3423a07000-3423c07000 ---p 00007000 fd:00 1833572 /lib64/librt-2.5.so
    3423c07000-3423c08000 r-xp 00007000 fd:00 1833572 /lib64/librt-2.5.so
    3423c08000-3423c09000 rwxp 00008000 fd:00 1833572 /lib64/librt-2.5.so
    3426200000-3426215000 r-xp 00000000 fd:00 1833511 /lib64/libnsl-2.5.so
    3426215000-3426414000 ---p 00015000 fd:00 1833511 /lib64/libnsl-2.5.so
    3426414000-3426415000 r-xp 00014000 fd:00 1833511 /lib64/libnsl-2.5.so
    3426415000-3426416000 rwxp 00015000 fd:00 1833511 /lib64/libnsl-2.5.so
    3426416000-3426418000 rwxp 3426416000 00:00 0
    2aaaaaaab000-2aaaaaaad000 r-xs 0000c000 fd:00 2914785 /opt/myapps/nyc/bin/CONSOLE-INF/lib/activation-1.0.2.jar
    2aaaaaaad000-2aaaaaab8000 r-xs 000aa000 fd:00 2914764 /opt/myapps/nyc/bin/CONSOLE-INF/lib/ant-1.5.3-1.jar
    2aaaaaab8000-2aaaaaabd000 r-xs 00053000 fd:00 2914813 /opt/myapps/nyc/bin/CONSOLE-INF/lib/antlr-2.7.2.jar
    2aaaaaabd000-2aaaaaac0000 r-xs 00013000 fd:00 428220 /usr/java/jdk1.6.0_20/jre/lib/jce.jar
    2aaaaaac1000-2aaaaaace000 r-xp 00000000 fd:00 428188 /usr/java/jdk1.6.0_20/jre/lib/amd64/libverify.so
    2aaaaaace000-2aaaaabcd000 ---p 0000d000 fd:00 428188 /usr/java/jdk1.6.0_20/jre/lib/amd64/libverify.so
    2aaaaabcd000-2aaaaabd0000 rwxp 0000c000 fd:00 428188 /usr/java/jdk1.6.0_20/jre/lib/amd64/libverify.so
    2aaaaabd0000-2aaaaabf9000 r-xp 00000000 fd:00 428196 /usr/java/jdk1.6.0_20/jre/lib/amd64/libjava.so
    2aaaaabf9000-2aaaaacf8000 ---p 00029000 fd:00 428196 /usr/java/jdk1.6.0_20/jre/lib/amd64/libjava.so
    2aaaaacf8000-2aaaaacff000 rwxp 00028000 fd:00 428196 /usr/java/jdk1.6.0_20/jre/lib/amd64/libjava.so
    2aaaaacff000-2aaaaad00000 r-xp 2aaaaacff000 00:00 0
    2aaaaad00000-2aaaaad01000 rwxp 2aaaaad00000 00:00 0
    2aaaaad01000-2aaaaad08000 r-xp 00000000 fd:00 428171 /usr/java/jdk1.6.0_20/jre/lib/amd64/native_threads/libhpi.so
    2aaaaad08000-2aaaaae09000 ---p 00007000 fd:00 428171 /usr/java/jdk1.6.0_20/jre/lib/amd64/native_threads/libhpi.so
    2aaaaae09000-2aaaaae0b000 rwxp 00008000 fd:00 428171 /usr/java/jdk1.6.0_20/jre/lib/amd64/native_threads/libhpi.so
    2aaaaae0b000-2aaaaae0c000 rwxp 2aaaaae0b000 00:00 0
    2aaaaae0c000-2aaaaae14000 rwxs 00000000 fd:00 1440464 /tmp/hsperfdata_myapps/13019
    2aaaaae14000-2aaaaae19000 r-xs 00018000 fd:00 2914817 /opt/myapps/nyc/bin/CONSOLE-INF/lib/aspectjrt-1.6.2.jar
    2aaaaae19000-2aaaaae1f000 r-xs 00092000 fd:00 428219 /usr/java/jdk1.6.0_20/jre/lib/jsse.jar
    2aaaaae21000-2aaaaae2b000 r-xp 00000000 fd:00 1833242 /lib64/libnss_files-2.5.so
    2aaaaae2b000-2aaaab02a000 ---p 0000a000 fd:00 1833242 /lib64/libnss_files-2.5.so
    2aaaab02a000-2aaaab02b000 r-xp 00009000 fd:00 1833242 /lib64/libnss_files-2.5.so
    2aaaab02b000-2aaaab02c000 rwxp 0000a000 fd:00 1833242 /lib64/libnss_files-2.5.so
    2aaaab02c000-2aaaab03a000 r-xp 00000000 fd:00 428198 /usr/java/jdk1.6.0_20/jre/lib/amd64/libzip.so
    2aaaab03a000-2aaaab13c000 ---p 0000e000 fd:00 428198 /usr/java/jdk1.6.0_20/jre/lib/amd64/libzip.so
    2aaaab13c000-2aaaab13f000 rwxp 00010000 fd:00 428198 /usr/java/jdk1.6.0_20/jre/lib/amd64/libzip.so
    2aab2e8e3000-2aab2ea79000 r-xs 02fd0000 fd:00 428225 /usr/java/jdk1.6.0_20/jre/lib/rt.jar
    2aab2ea79000-2aab2eaac000 rwxp 2aab2ea79000 00:00 0
    2aab2eaac000-2aab2eb0f000 r-xs 007eb000 fd:00 2914818 /opt/myapps/nyc/bin/CONSOLE-INF/lib/aspectjtools-1.6.2.jar
    2aab2eb0f000-2aab2eb11000 r-xs 00007000 fd:00 2914765 /opt/myapps/nyc/bin/CONSOLE-INF/lib/avalon-framework-api-4.2.0.jar
    2aab2eb11000-2aab2eb13000 r-xs 0000d000 fd:00 2914766 /opt/myapps/nyc/bin/CONSOLE-INF/lib/avalon-framework-impl-4.2.0.jar
    2aab2eb13000-2aab2eb1b000 r-xs 00077000 fd:00 2914767 /opt/myapps/nyc/bin/CONSOLE-INF/lib/batik-awt-util-1.5.jar
    2aab2eb1b000-2aab2eb21000 r-xs 00035000 fd:00 2914768 /opt/myapps/nyc/bin/CONSOLE-INF/lib/batik-bridge-1.5.jar
    2aab2eb21000-2aab2eb26000 r-xs 0000e000 fd:00 2914769 /opt/myapps/nyc/bin/CONSOLE-INF/lib/batik-ext-1.5.jar
    2aab2eb26000-2aab2eb2a000 r-xs 00020000 fd:00 2914770 /opt/myapps/nyc/bin/CONSOLE-INF/lib/batik-gvt-1.5.jar
    2aab2eb2a000-2aab2eb35000 r-xs 00052000 fd:00 2914771 /opt/myapps/nyc/bin/CONSOLE-INF/lib/batik-svg-dom-1.5.jar
    2aab2eb35000-2aab2eb38000 r-xs 00010000 fd:00 2914772 /opt/myapps/nyc/bin/CONSOLE-INF/lib/batik-util-1.5.jar
    2aab2eb38000-2aab2eb3a000 r-xs 00021000 fd:00 2914774 /opt/myapps/nyc/bin/CONSOLE-INF/lib/bsh-core-2.0b2.jar
    2aab2eb3a000-2aab2eb3f000 r-xs 0002a000 fd:00 2914775 /opt/myapps/nyc/bin/CONSOLE-INF/lib/commons-beanutils-1.7.0.jar
    2aab2eb3f000-2aab2eb41000 r-xs 00006000 fd:00 2914777 /opt/myapps/nyc/bin/CONSOLE-INF/lib/commons-cli-1.0.jar
    2aab2eb41000-2aab2eb4e000 r-xs 0007c000 fd:00 2914779 /opt/myapps/nyc/bin/CONSOLE-INF/lib/commons-collections-3.1.jar
    2aab2eb4e000-2aab2eb50000 r-xs 00005000 fd:00 2914780 /opt/myapps/nyc/bin/CONSOLE-INF/lib/commons-dbutils-1.0.jar
    2aab2eb50000-2aab2eb53000 r-xs 00018000 fd:00 2914781 /opt/myapps/nyc/bin/CONSOLE-INF/lib/commons-digester-1.5.jar
    2aab2eb53000-2aab2eb56000 r-xs 0000f000 fd:00 2914783 /opt/myapps/nyc/bin/CONSOLE-INF/lib/commons-discovery-0.2.jar
    2aab2eb56000-2aab2eb57000 r-xs 00005000 fd:00 2914784 /opt/myapps/nyc/bin/CONSOLE-INF/lib/commons-email-1.0.jar
    2aab2eb57000-2aab2eb59000 r-xs 00004000 fd:00 2914786 /opt/myapps/nyc/bin/CONSOLE-INF/lib/commons-fileupload-1.0.jar
    2aab2eb59000-2aab2eb5c000 r-xs 00018000 fd:00 2914787 /opt/myapps/nyc/bin/CONSOLE-INF/lib/commons-io-1.4.jar
    2aab2eb5c000-2aab2eb60000 r-xs 0002f000 fd:00 2914778 /opt/myapps/nyc/bin/CONSOLE-INF/lib/commons-lang-2.1.jar
    2aab2eb60000-2aab2eb62000 r-xs 0000d000 fd:00 2914776 /opt/myapps/nyc/bin/CONSOLE-INF/lib/commons-logging-1.1.1.jar
    2aab2eb62000-2aab2eb64000 r-xs 00009000 fd:00 2914788 /opt/myapps/nyc/bin/CONSOLE-INF/lib/commons-pool-1.2.jar
    2aab2eb64000-2aab2eb6d000 r-xs 00037000 fd:00 2914790 /opt/myapps/nyc/bin/CONSOLE-INF/lib/commons-primitives-1.0.jar
    2aab2eb6d000-2aab2eb6f000 r-xs 00013000 fd:00 2914791 /opt/myapps/nyc/bin/CONSOLE-INF/lib/commons-validator-1.1.3-dev.jar
    2aab2eb6f000-2aab2eb72000 r-xs 00007000 fd:00 2914819 /opt/myapps/nyc/bin/CONSOLE-INF/lib/connector-api-1.0.jar
    2aab2eb72000-2aab2eb7a000 r-xs 0006f000 fd:00 2914815 /opt/myapps/nyc/bin/CONSOLE-INF/lib/dom4j-1.4-dev-8.jar
    2aab2eb7a000-2aab2eb83000 r-xs 00050000 fd:00 2914853 /opt/myapps/nyc/bin/CONSOLE-INF/lib/google-collect-snapshot-20071022.jar
    2aab2eb83000-2aab2eb94000 r-xs 00136000 fd:00 2914795 /opt/myapps/nyc/bin/CONSOLE-INF/lib/itext-1.4.2.jar
    2aab2eb94000-2aab2eb98000 r-xs 00031000 fd:00 2914820 /opt/myapps/nyc/bin/CONSOLE-INF/lib/jai-codec-1.0.jar
    2aab2eb98000-2aab2ebab000 r-xs 0016e000 fd:00 2914821 /opt/myapps/nyc/bin/CONSOLE-INF/lib/jai-core-1.0.jar
    2aab2ebab000-2aab2ebb1000 r-xs 00036000 fd:00 2914814 /opt/myapps/nyc/bin/CONSOLE-INF/lib/jaxen-1.1-beta-4.jar
    2aab2ebb1000-2aab2ebb3000 r-xs 00022000 fd:00 2914797 /opt/myapps/nyc/bin/CONSOLE-INF/lib/jdom-b10.jar
    2aab2ebb3000-2aab2ebbc000 r-xs 00068000 fd:00 2914823 /opt/myapps/nyc/bin/CONSOLE-INF/lib/jimi-1.0.jar
    2aab2ebbc000-2aab2ebbe000 r-xs 00005000 fd:00 2914796 /opt/myapps/nyc/bin/CONSOLE-INF/lib/jms-1.1.jar
    2aab2ebbe000-2aab2ebc0000 r-xs 00001000 fd:00 2914799 /opt/myapps/nyc/bin/CONSOLE-INF/lib/jta-1.0.1B.jar
    2aab2ebc0000-2aab2ebcb000 r-xs 000a5000 fd:00 2914798 /opt/myapps/nyc/bin/CONSOLE-INF/lib/jxl-1.0.jar
    2aab2ebcb000-2aab2ebd4000 r-xs 0006f000 fd:00 2914807 /opt/myapps/nyc/bin/CONSOLE-INF/lib/log4j-1.2.17.jar
    2aab2ebd4000-2aab2ebda000 r-xs 00051000 fd:00 2914801 /opt/myapps/nyc/bin/CONSOLE-INF/lib/mail-1.3.3_01.jar
    2aab2ebda000-2aab2ebde000 r-xs 00029000 fd:00 2914800 /opt/myapps/nyc/bin/CONSOLE-INF/lib/mailapi-1.3.3_01.jar
    2aab2ebde000-2aab2ebe1000 r-xs 00047000 fd:00 2914792 /opt/myapps/nyc/bin/CONSOLE-INF/lib/mq-5.300-j530-L021008.jar
    2aab2ebe1000-2aab2ebe2000 r-xs 00009000 fd:00 2914793 /opt/myapps/nyc/bin/CONSOLE-INF/lib/mqbind-5.300-j530-L021008.jar
    2aab2ebe2000-2aab2ebf3000 r-xs 0013e000 fd:00 2914794 /opt/myapps/nyc/bin/CONSOLE-INF/lib/mqjms-5.300-j530-L021008.jar
    2aab2ebf3000-2aab2ec05000 r-xs 001f2000 fd:00 2914802 /opt/myapps/nyc/bin/CONSOLE-INF/lib/ojdbc16-11.2.0.1.0.jar
    2aab2ec05000-2aab2ec06000 r-xs 0000b000 fd:00 2914803 /opt/myapps/nyc/bin/CONSOLE-INF/lib/ons-1.0.jar
    2aab2ec06000-2aab2ec0d000 r-xs 0018e000 fd:00 2914804 /opt/myapps/nyc/bin/CONSOLE-INF/lib/orai18n-11.2.0.1.0.jar
    2aab2ec0d000-2aab2ec28000 r-xs 00142000 fd:00 2914808 /opt/myapps/nyc/bin/CONSOLE-INF/lib/poi-3.2-FINAL-20081019.jar
    2aab2ec28000-2aab2ec2a000 r-xs 0001d000 fd:00 2914822 /opt/myapps/nyc/bin/CONSOLE-INF/lib/pwcrules-1.0.jar
    2aab2ec2a000-2aab2ec2c000 r-xs 00005000 fd:00 2914809 /opt/myapps/nyc/bin/CONSOLE-INF/lib/regexp-1.3.jar
    2aab2ec2c000-2aab2ec35000 r-xs 0007a000 fd:00 2914810 /opt/myapps/nyc/bin/CONSOLE-INF/lib/repro-1.1.jar
    2aab2ec35000-2aab2ec3e000 r-xs 000a2000 fd:00 2914811 /opt/myapps/nyc/bin/CONSOLE-INF/lib/repro-chart-1.0.jar
    2aab2ec3e000-2aab2ec56000 r-xs 0017a000 fd:00 2914812 /opt/myapps/nyc/bin/CONSOLE-INF/lib/repro-fop-1.0.jar
    2aab2ec56000-2aab2ec57000 r-xs 0000c000 fd:00 2914824 /opt/myapps/nyc/bin/CONSOLE-INF/lib/spring-asm-3.0.0.RELEASE.jar
    2aab2ec57000-2aab2ec62000 r-xs 0007c000 fd:00 2914825 /opt/myapps/nyc/bin/CONSOLE-INF/lib/spring-beans-3.0.0.RELEASE.jar
    2aab2ec62000-2aab2ec73000 r-xs 00090000 fd:00 2914827 /opt/myapps/nyc/bin/CONSOLE-INF/lib/spring-context-3.0.0.RELEASE.jar
    2aab2ec73000-2aab2ec7b000 r-xs 00050000 fd:00 2914826 /opt/myapps/nyc/bin/CONSOLE-INF/lib/spring-core-3.0.0.RELEASE.jar
    2aab2ec7b000-2aab2ec7f000 r-xs 00022000 fd:00 2914828 /opt/myapps/nyc/bin/CONSOLE-INF/lib/spring-expression-3.0.0.RELEASE.jar
    2aab2ec7f000-2aab2ec88000 r-xs 0004f000 fd:00 2914829 /opt/myapps/nyc/bin/CONSOLE-INF/lib/spring-web-3.0.0.RELEASE.jar
    2aab2ec88000-2aab2ec90000 r-xs 00057000 fd:00 2914830 /opt/myapps/nyc/bin/CONSOLE-INF/lib/spring-webmvc-3.0.0.RELEASE.jar
    2aab2ec90000-2aab2ec98000 r-xs 00051000 fd:00 2914773 /opt/myapps/nyc/bin/CONSOLE-INF/lib/velocity-1.4.jar
    2aab2ec98000-2aab2ecbd000 r-xs 002dc000 fd:00 2914816 /opt/myapps/nyc/bin/CONSOLE-INF/lib/xalan-2.6.0.jar
    2aab2ecbd000-2aab2ecbf000 r-xs 0002a000 fd:00 2914805 /opt/myapps/nyc/bin/CONSOLE-INF/lib/xdb-10.2.0.1.jar
    2aab2eda0000-2aab2edb4000 r-xs 000e3000 fd:00 2914789 /opt/myapps/nyc/bin/CONSOLE-INF/lib/xercesImpl-2.6.2.jar
    2aab2edb4000-2aab2edb9000 r-xs 00016000 fd:00 2914782 /opt/myapps/nyc/bin/CONSOLE-INF/lib/xml-apis-1.0.b2.jar
    2aab2edb9000-2aab2edc6000 r-xs 00108000 fd:00 2914806 /opt/myapps/nyc/bin/CONSOLE-INF/lib/xmlparserv3-10.2.0.1.jar
    2aab2edc6000-2aab2ee25000 r-xs 00ba5000 fd:00 623619 /usr/java/jdk1.6.0_20/lib/tools.jar
    2aab2ee25000-2aab2ee2c000 r-xs 00111000 fd:00 428161 /usr/java/jdk1.6.0_20/jre/lib/resources.jar
    2aab2ee2c000-2aab2ee32000 r-xp 00000000 fd:00 428205 /usr/java/jdk1.6.0_20/jre/lib/amd64/libmanagement.so
    2aab2ee32000-2aab2ef31000 ---p 00006000 fd:00 428205 /usr/java/jdk1.6.0_20/jre/lib/amd64/libmanagement.so
    2aab2ef31000-2aab2ef33000 rwxp 00005000 fd:00 428205 /usr/java/jdk1.6.0_20/jre/lib/amd64/libmanagement.so
    2aab2ef33000-2aab2ef46000 r-xp 00000000 fd:00 428189 /usr/java/jdk1.6.0_20/jre/lib/amd64/libnet.so
    2aab2ef46000-2aab2f047000 ---p 00013000 fd:00 428189 /usr/java/jdk1.6.0_20/jre/lib/amd64/libnet.so
    2aab2f047000-2aab2f04a000 rwxp 00014000 fd:00 428189 /usr/java/jdk1.6.0_20/jre/lib/amd64/libnet.so
    2aab2f04a000-2aab2f04d000 r-xs 00027000 fd:00 493284 /usr/java/jdk1.6.0_20/jre/lib/ext/sunjce_provider.jar
    2aab2f04d000-2aab2f04e000 r-xp 00000000 fd:00 428201 /usr/java/jdk1.6.0_20/jre/lib/amd64/librmi.so
    2aab2f04e000-2aab2f14d000 ---p 00001000 fd:00 428201 /usr/java/jdk1.6.0_20/jre/lib/amd64/librmi.so
    2aab2f14d000-2aab2f14e000 rwxp 00000000 fd:00 428201 /usr/java/jdk1.6.0_20/jre/lib/amd64/librmi.so
    2aab30000000-2aab31587000 rwxp 2aab30000000 00:00 0
    2aab31587000-2aab34000000 ---p 2aab31587000 00:00 0
    2acd591de000-2acd591df000 rwxp 2acd591de000 00:00 0
    2acd591f4000-2acd591f5000 rwxp 2acd591f4000 00:00 0
    2acd591f5000-2acd591fc000 r-xp 00000000 fd:00 458315 /usr/java/jdk1.6.0_20/jre/lib/amd64/jli/libjli.so
    2acd591fc000-2acd592fd000 ---p 00007000 fd:00 458315 /usr/java/jdk1.6.0_20/jre/lib/amd64/jli/libjli.so
    2acd592fd000-2acd592ff000 rwxp 00008000 fd:00 458315 /usr/java/jdk1.6.0_20/jre/lib/amd64/jli/libjli.so
    2acd592ff000-2acd59301000 rwxp 2acd592ff000 00:00 0
    2acd59301000-2acd59ab6000 r-xp 00000000 fd:00 428183 /usr/java/jdk1.6.0_20/jre/lib/amd64/server/libjvm.so
    2acd59ab6000-2acd59bb5000 ---p 007b5000 fd:00 428183 /usr/java/jdk1.6.0_20/jre/lib/amd64/server/libjvm.so
    2acd59bb5000-2acd59d40000 rwxp 007b4000 fd:00 428183 /usr/java/jdk1.6.0_20/jre/lib/amd64/server/libjvm.so
    2acd59d40000-2acd59d79000 rwxp 2acd59d40000 00:00 0
    7fff9ad9f000-7fff9adb5000 rwxp 7ffffffe9000 00:00 0 [stack]
    ffffffffff600000-ffffffffffe00000 ---p 00000000 00:00 0 [vdso]
    Regards,
    Krish
    Edited by: 989493 on Feb 24, 2013 8:18 PM

    +> I am little bit curious about- how memory allocated in PermGen space? Is this a same way as heap (grows incrementally upto certain limit)?+
    PermGen space stores class structures and class metadata, it doesn't grow much while the program is running, it allocated memory when classes are loaded by classloaders. Also, programs that performs bytecode instrumentation (hibernate, spring, jboss seam, etc.) requires more permgen space than other programs as it modifies class structures.

  • Org.jdom.input.JDOMParseException: Error on line 0: File not found

    Hi Everybody!
    I´ve changed the version of Weblogic from 8.6 to 9.2 and I had several problems. One of them was that several web services made in Axis2 didn´t work because when I tried to access to wsdl the program resolve an error. I solved this problem including in weblogic.xml the following lines:
    <container-descriptor>
    <prefer-web-inf-classes>true</prefer-web-inf-classes>
    </container-descriptor>
    This solutins works fine with the services but now I have another problem. I have to open a xml file and to do that I use the following senetences:
    SAXBuilder builder=new SAXBuilder(false);
    org.jdom.Document doc=builder.build(myXML);
    In the second line the program fails and show me the following:
    org.jdom.input.JDOMParseException: Error on line 0: File "c:/temp/1219308978141\
    docucad.xml" not found.
    at org.jdom.input.SAXBuilder.build(SAXBuilder.java:468)
    at org.jdom.input.SAXBuilder.build(SAXBuilder.java:891)
    at jsp_servlet._engineeringcentral._custom.__bzupdatexml.AssignXMLAttrib
    utes(__bzupdatexml.java:292)
    at jsp_servlet._engineeringcentral._custom.__bzupdatexml.ModifyXML(__bzu
    pdatexml.java:263)
    at jsp_servlet._engineeringcentral._custom.__bzupdatexml._jspService(__b
    zupdatexml.java:697)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run
    (StubSecurityHelper.java:225)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri
    tyHelper.java:127)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
    a:283)
    at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(Servlet
    StubImpl.java:391)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
    a:309)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
    va:42)
    at com.matrixone.servlet.CustomFilter.handleDefault(CustomFilter.java:99
    at com.matrixone.servlet.CustomFilter.doFilter(CustomFilter.java:86)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
    va:42)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
    n.run(WebAppServletContext.java:3212)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppS
    ervletContext.java:1983)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletC
    ontext.java:1890)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.j
    ava:1344)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    Caused by: org.xml.sax.SAXParseException: File "c:/temp/1219308978141\docucad.xm
    l" not found.
    at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1022
    at org.apache.xerces.readers.DefaultEntityHandler.startReadingFromDocume
    nt(DefaultEntityHandler.java:499)
    at org.apache.xerces.framework.XMLParser.parseSomeSetup(XMLParser.java:3
    04)
    at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:907)
    at org.jdom.input.SAXBuilder.build(SAXBuilder.java:453)
    ... 23 more
    Caused by: org.xml.sax.SAXParseException: File "c:/temp/1219308978141\docucad.xm
    l" not found.
    at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1022
    at org.apache.xerces.readers.DefaultEntityHandler.startReadingFromDocume
    nt(DefaultEntityHandler.java:499)
    at org.apache.xerces.framework.XMLParser.parseSomeSetup(XMLParser.java:3
    04)
    at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:907)
    at org.jdom.input.SAXBuilder.build(SAXBuilder.java:453)
    at org.jdom.input.SAXBuilder.build(SAXBuilder.java:891)
    at jsp_servlet._engineeringcentral._custom.__bzupdatexml.AssignXMLAttrib
    utes(__bzupdatexml.java:292)
    at jsp_servlet._engineeringcentral._custom.__bzupdatexml.ModifyXML(__bzu
    pdatexml.java:263)
    at jsp_servlet._engineeringcentral._custom.__bzupdatexml._jspService(__b
    zupdatexml.java:697)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run
    (StubSecurityHelper.java:225)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri
    tyHelper.java:127)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
    a:283)
    at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(Servlet
    StubImpl.java:391)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
    a:309)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
    va:42)
    at com.matrixone.servlet.CustomFilter.handleDefault(CustomFilter.java:99
    at com.matrixone.servlet.CustomFilter.doFilter(CustomFilter.java:86)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
    va:42)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
    n.run(WebAppServletContext.java:3212)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppS
    ervletContext.java:1983)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletC
    ontext.java:1890)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.j
    ava:1344)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    Caused by: org.xml.sax.SAXParseException: File "c:/temp/1219308978141\docucad.xm
    l" not found.
    at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1022
    at org.apache.xerces.readers.DefaultEntityHandler.startReadingFromDocume
    nt(DefaultEntityHandler.java:499)
    at org.apache.xerces.framework.XMLParser.parseSomeSetup(XMLParser.java:3
    04)
    at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:907)
    at org.jdom.input.SAXBuilder.build(SAXBuilder.java:453)
    at org.jdom.input.SAXBuilder.build(SAXBuilder.java:891)
    at jsp_servlet._engineeringcentral._custom.__bzupdatexml.AssignXMLAttrib
    utes(__bzupdatexml.java:292)
    at jsp_servlet._engineeringcentral._custom.__bzupdatexml.ModifyXML(__bzu
    pdatexml.java:263)
    at jsp_servlet._engineeringcentral._custom.__bzupdatexml._jspService(__b
    zupdatexml.java:697)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run
    (StubSecurityHelper.java:225)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri
    tyHelper.java:127)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
    a:283)
    at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(Servlet
    StubImpl.java:391)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
    a:309)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
    va:42)
    at com.matrixone.servlet.CustomFilter.handleDefault(CustomFilter.java:99
    at com.matrixone.servlet.CustomFilter.doFilter(CustomFilter.java:86)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
    va:42)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
    n.run(WebAppServletContext.java:3212)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppS
    ervletContext.java:1983)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletC
    ontext.java:1890)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.j
    ava:1344)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    If I change the value <prefer-web-inf-classes>true</prefer-web-inf-classes> from true to false the previous senences works fine but the web services don´t work.
    Any idea?
    Thanks in advance.
    Pope

    Yes, I entirely agree with James's comment : filtering class loader mechanism is THE way to play with classloaders.
    The child-delegation model (with the option "prefer-web-inf-classes") comes from WebLogic 6.1 : it's the old-fashion way to do so. Moreover it can bring some linkage errors or unexepected behaviors.
    In addition to the official documentation, I would suggest to read the article on my blog.
    I tried to explain it in a easy way.
    http://m-button.blogspot.com/2008/08/how-to-use-weblogic-filteringclassloade.html
    Hope this helps.

  • Encoding error with xerces/JDOM

    hej,
    We have XML files that must be encoded in ISO-8859-1(i.e.encoding attribute in the document's XML declaration) to handle swedish characters. When trying to read in the XML document via JDOM (default parse is xerces) the following error is thrown:
    Error message : Unable to build document (url). Invalid byte 2 of 3-byte UTF-8 sequence.
    java.lang.RuntimeException: Unable to build document (url). Invalid byte 2 of 3-byte UTF-8 sequence.
    at se.sfa.rfv.sat.installation.XMLFacade.build(XMLFacade.java:398)
    at se.sfa.rfv.sat.installation.XMLFacade.main(XMLFacade.java:458)
    If we transform the URL into an InputStream then transform the character encoding to UTF-8 likely the swedish characters (�,�, and �) will be removed. Not happening.
    Is there are way to tell the underlying parser that the incoming data stream is encoded as ISO-8859-1 and build the document? Must be.
    / Matthew Young

    Trying to use the transformer class to translate to ISO-8859-1 encoding but the following code hangs at the transform stage:
             InputStream inputstream = url.openConnection().getInputStream();
             StreamSource source = new StreamSource(inputstream);
             PipedWriter pipedwriter = new PipedWriter();
             PipedReader pipereader = new PipedReader(pipedwriter);
             PrintWriter printwriter = new PrintWriter(pipedwriter);
             StreamResult result = new StreamResult(printwriter);
             TransformerFactory factory = TransformerFactory.newInstance();
             Transformer transformer = factory.newTransformer();
             transformer.setOutputProperty(OutputKeys.ENCODING, "ISO-8859-1");
             transformer.transform(source, result);
             this.document = builder.build(pipereader);The URL passed in is the url to the input XML file. Assume the problem is related to the piping IO streams. Any ideas? / Matthew

  • JDOM beta 8 installation - compilation errors

    Can someone give me some suggestions? I am spinning my wheels on what to do. This should be fairly simple...
    I installed and extracted jdom beta 8, added the location to xerces.jar to my classpath, and I still receive the following errors:
    FibonacciJDOM.java:1: package org.jdom does not exist
    import org.jdom.*;
    ^
    FibonacciJDOM.java:2: package org.jdom.output does not exist
    import org.jdom.output.XMLOutputter;
    ...when compiling some sample JDOM code with the following import statements:
    import org.jdom.*;
    import org.jdom.output.XMLOutputter;
    import java.math.BigInteger;
    import java.io.IOException;
    Have the package names changed in beta 8? I have read, and followed the suggestions in the FAQ at jdom.org. What am I doing wrong?
    Thanks

    well done tobias heintz,
    as a novice I find a lot of these projects such as Tomcat &
    the like, harder to install than use the dam things.
    lots of books are available for using jdom, but its usually
    assumed everybody knows their way around autoexec.bat and so on.
    i've managed to get swing, MySql and jsp's all to work ,so I can not
    be that thick, but still can not seem to get my head around set classpath and all that stuff.
    putting the jar files in both the two directories as tobias suggested
    worked a treat!
    andy brookes
    [email protected]

  • Error when loading servlet using JDOM

    hi,
    I'm new in the servlet developpement and I would like to have your helps.
    I use JDOM to access to XML files. I use Eclipse WTP, and Tomcat like servlet container.
    When I try to load the simple servlet file, I get an exception which shows me that there is java.lang.NoClassDefFoundError: org/jdom/JDOMException.
    I think there are problems in the configuration, but I don't know why. Any help would be welcome.
    This is my code
    import java.io.IOException;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import java.util.HashMap;
    import java.util.Iterator;
    import java.util.List;
    import org.jdom.Document;
    import org.jdom.Element;
    import org.jdom.JDOMException;
    import org.jdom.input.SAXBuilder;
    import org.jdom.xpath.XPath;
    import org.jdom.*;
    * Servlet implementation class for Servlet: test1
    public class test1 extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet {
         String xparams_input_file="xparamsdata.xml";; //Fichier d'entr�e XML
         Document xparams_document;
         Element xparams_Element;
         /* (non-Java-doc)
         * @see javax.servlet.http.HttpServlet#HttpServlet()
         public test1() {
              super();
         /* (non-Java-doc)
         * @see javax.servlet.http.HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
         protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
              // TODO Auto-generated method stub
              doPost(request,response);
         /* (non-Java-doc)
         * @see javax.servlet.http.HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
         protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
              // TODO Auto-generated method stub
              System.out.println("TestOK");
         /* (non-Javadoc)
         * @see javax.servlet.GenericServlet#init()
         public void Lire_XParams_XML(){
              SAXBuilder saxBuilder = new SAXBuilder();
              try{               
                   xparams_document = saxBuilder.build(xparams_input_file);
                   xparams_Element = xparams_document.getRootElement();               
              catch (JDOMException e)
              { // indicates a well-formedness or other error
                   //e.printStackTrace();
                   System.out.println(xparams_input_file + " is not a well formed XML document.");
                   System.out.println(e.getMessage());               
              catch (IOException e)
              { // indicates an IO problem
                   System.out.println(xparams_input_file + " could not be parsed");
                   System.out.println(e.getMessage());
         public void init() throws ServletException {
              // TODO Auto-generated method stub
              super.init();
              System.out.println("TestOK init");
    And the errors
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Error instantiating servlet class test1
         org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
         org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
         org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
         org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
         java.lang.Thread.run(Unknown Source)
    root cause
    java.lang.NoClassDefFoundError: org/jdom/JDOMException
         java.lang.Class.getDeclaredConstructors0(Native Method)
         java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
         java.lang.Class.getConstructor0(Unknown Source)
         java.lang.Class.newInstance0(Unknown Source)
         java.lang.Class.newInstance(Unknown Source)
         org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
         org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
         org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
         org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
         java.lang.Thread.run(Unknown Source)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
    Apache Tomcat/5.5.17

    Have u set the classpath for jdom.jar. If u have jdom.jar file in ur machine , set the classpath to that. otherwise download one from the net .
    http://www.jdom.org/dist/binary/
    put it in ur build path.

  • Error: java.lang.NoClassDefFoundError: org/jdom/JDOMException

    Dear Sir/Madam,
    I have installed Library software “NewGenLib” which support Java. The software is running well in the server as well as some other client pc.
    When I am trying to install in some other client following error is coming and unable to run the software.
    I need your support urgently…Kindly help me out..
    Error
    “Java Web Start 1.4.2_17 Console, started Fri Jul 31 11:28:18 IST 2009
    Java 2 Runtime Environment: Version 1.4.2_17 by Sun Microsystems Inc.
    Logging to file: C:\Documents and Settings\nihar\Desktop\log.txt
    java.lang.NoClassDefFoundError: org/jdom/JDOMException
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
    at java.lang.Class.getConstructor0(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at com.sun.javaws.Launcher.executeApplet(Unknown Source)
    at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
    at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
    at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
    at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
    at com.sun.javaws.Launcher.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    With regards
    Nihar
    NSHM Knowledge Campus
    Head-Librarian, Kolkata
    India

    To the point, a NoClassDefFoundError simply means that the in the message mentioned class (or at least, the JAR file with the class) is missing in the runtime classpath.
    So either it is actually missing, or your code is not using the paths you think it would be used for the classpath, or there are collisions of duplicate different versioned classes in the classpath.

  • Error in JDOM

    import java.io.File;
    import org.jdom.input.SAXBuilder;
    import org.jdom.output.XMLOutputter;
    import org.w3c.dom.Document;
    * PrettyPrinter.java
    public class PrettyPrinter
        /** Creates a new instance of PrettyPrinter */
        public PrettyPrinter()
        public static void main(String[] args)
            //Assume filename argument
            String filename=args[0];
            try
                //Build the document which SAX and Xerces, no validation
                SAXBuilder builder = new SAXBuilder();
                //Create the document
                Document doc = builder.build(new File(filename));//The error is displayed for this line
                //Output the document, use standard formatter
                XMLOutputter fmt = new XMLOutputter();
                fmt.output(doc, System.out);
            catch(Exception e)
                e.printStackTrace();
    }When I run the above code, I got an error as shown below
    incompatible types
    found: org.jdom.Document
    required: org.w3c.dom.DocumentCould anyone please help me with this.

    As you said, I have imported as following
    import java.io.*;
    import org.jdom.*;
    import org.jdom.input.*;
    import org.jdom.output.*;But I am still getting the following errors
    D:\PrettyPrinter\src>javac PrettyPrinter.java
    PrettyPrinter.java:8: package org.jdom does not exist
    import org.jdom.*;
    ^
    PrettyPrinter.java:9: package org.jdom.input does not exist
    import org.jdom.input.*;
    ^
    PrettyPrinter.java:10: package org.jdom.output does not exist
    import org.jdom.output.*;
    ^
    PrettyPrinter.java:37: cannot find symbol
    symbol  : class SAXBuilder
    location: class PrettyPrinter
                SAXBuilder builder = new SAXBuilder();
                ^
    PrettyPrinter.java:37: cannot find symbol
    symbol  : class SAXBuilder
    location: class PrettyPrinter
                SAXBuilder builder = new SAXBuilder();
                                         ^
    PrettyPrinter.java:39: cannot find symbol
    symbol  : class Document
    location: class PrettyPrinter
                Document doc = builder.build(new File(filename));
                ^
    PrettyPrinter.java:41: cannot find symbol
    symbol  : class XMLOutputter
    location: class PrettyPrinter
                XMLOutputter fmt = new XMLOutputter();
                ^
    PrettyPrinter.java:41: cannot find symbol
    symbol  : class XMLOutputter
    location: class PrettyPrinter
                XMLOutputter fmt = new XMLOutputter();
                                       ^
    8 errors
    D:\PrettyPrinter\src>

  • Jdom xpath runtime error

    First, I am a newbie.
    I am getting an error while trying to use xpath and jdom. Here is the error:
    Exception in thread "main" java.lang.NoClassDefFoundError: org/saxpath/SAXPathEx
    ception
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:140)
            at org.jdom.xpath.XPath.newInstance(XPath.java:133)
            at hello.main(hello.java:26)Here is my code:
    import java.io.*;
    import org.jdom.*;
    import org.jdom.input.*;
    import org.jdom.output.*;
    import org.jdom.xpath.*;
    import java.util.*;
    public class hello
        public static void main( String args[] ) throws Exception {
              System.out.println("Hello") ;
              System.out.println("Hello ugh") ;
              Document doc = new SAXBuilder().build("catalog.xml");
              List compositions = doc.getRootElement().getChildren("composition");
              for(int i=0; i < compositions.size(); i++) {
                   String title = ((Element)compositions.get(i)).getChildText("title");
                   //here i want to get the composer, will use xpath to find it
                   //this line gets the 'key'
                   String comp = ((Element)compositions.get(i)).getAttribute("composer").getValue();
                   //this one does the xpath lookup
                   XPath xpath = XPath.newInstance("composer");
                   //List results = xpath.selectNodes(doc);
                   System.out.println("  " + title + " -- " + comp );
              System.out.println("Done:");     
    }Thanks,
    LNMEgo

    I'm sorry. I am confused. I don't know how to do
    that-- I thought I only needed to do that when I
    compiled. How can I make sure it works in other
    environments?
    Thanksno need to be sorry.
    when you run java.exe, you need to tell the jvm where the classes that you are referring to are. you do this with the -classpath or set the environment variable CLASSPATH. i prefer to tell it in my script. for example
    java -classpath ".;C:\Work\myclasses\" test.SessionManager
    . - indicates the current directory, in addition to c:\work\myclasses
    in the path can be .classes or .jar which hold the classes.

  • JDOM configuration error

    Hi,
    I have downloaded JDOM.
    I have built and installed JDOM.
    However when running the sample JDOM java code using the following command
    "java samples.WarReader web.xml"
    I get the following error
    "java.lang.NoClassDefFoundError: samples/warReader" The problem usually is with class path I have read but cant figure it out.
    My path is
    PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;
    C:\jdom-b9\lib\xerces.jar;
    C:\jdom-b9\build\jdom.jar;
    C:\jdom-b9\build\classes;
    C:\j2sdk1.4.1_01\bin;
    C:\jdom-b9\lib; <------ contains xerces/xalan jar files etc as obtained from jdom
    ---------------------------------------------- JavaWebServicesDeveloperPack
    C:\jwsdp-1.2\bin;
    C:\jwsdp-1.2\jaxp\lib\jaxp-api.jar;
    C:\jwsdp-1.2\apache-ant\bin;
    C:\jwsdp-1.2\common\lib\servlet-api.jar;
    C:\jwsdp-1.2\server\lib;
    C:\jwsdp-1.2\jwsdp-shared\bin;
    C:\j2sdk1.4.1_01\jre\lib\endorsed;<------ contains xercesImpl/xalan/SAX/DOM jar files
    Is there anything wrong, I have tried many alterations but cant think what the problem maybe.
    I have visited jdom.org/docs/faq aswell but nothing seems todo the trick.
    Any input would be greatly appreciated!!!!!!!!!!!!!!!!!!!!!!!!!
    Thank you.

    Thanks for the reply DrClap,
    ok, I havent got a CLASSPATH variable on my XP system, so im assuming I create a variable with that name.
    Ive just read that CLASSPATH is what the JRE uses the find class files etc...
    so would I have the following...
    PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;
    CLASSPATH = .;C:\jdom-b9\lib\xerces.jar;
    C:\jdom-b9\build\jdom.jar;
    C:\jdom-b9\build\classes;
    C:\j2sdk1.4.1_01\bin;
    C:\jdom-b9\lib;
    C:\jwsdp-1.2\bin;
    C:\jwsdp-1.2\jaxp\lib\jaxp-api.jar;
    C:\jwsdp-1.2\apache-ant\bin;
    C:\jwsdp-1.2\common\lib\servlet-api.jar;
    C:\jwsdp-1.2\server\lib;
    C:\jwsdp-1.2\jwsdp-shared\bin;
    C:\j2sdk1.4.1_01\jre\lib\endorsed;
    something like this? What difference does it make if I dont have a CLASSPATH variable, java seems to be running fine otherwise. Is it necessary?
    Also you say that I do not have the path to the directory with WarReader class, but I have always been able to compile and run from the directory in which the class file exists without explicitly setting its location in the PATH.
    If possible could you just clarify my thoughts. Just getting confused now.
    Thank you.

  • JDOM - Variable not intialized error, why? please help.

    Hello,
    Please assit me.....I need a rush help. Stuck! Stuck!!!!
    I am reading a text file which has multiple headers(identified in the first 2 pos as '//'), followed by '01' records which are details. It would look like
    //nbr....
    01address....
    01city.....
    01zip....
    //name...(continues).
    My jave routine reads it and puts the tags as
    <efldata>
    <tx>
    <loadmessage>jhdfj
    <nodedetail>
    <address>....
    <zip>
    <nodedetail>
    djfgkdf..... etc.
    While compiling it gives me a loadmessage not initialized error. Please help. I have included arrow marks where the error occurs....
    This is my code.....
    while ((str = br.readLine()) != null) {
    try {  
    String type = str.substring(0,2);
    if ( "//".equals( type ) )
    /**** header data ******/
    hdr_count = hdr_count + 1;
    controlnbr = str.substring(2,9);
    f_first = 'y'; /**** first time header check flag ***/
    } else
    if ( "01".equals( type ) ) /**** Checks for detail records ****/
    // loadmessage = new Element("LoadMessage");
    if ((f_first) == 'y') {         /*** Execute if first time(header) ***/
    f_first = 'n';
    Element tx = new Element("TX");
    efldata.addContent(tx);
    loadmessage = new Element("LoadMessage");
    loadmessage.addAttribute(new Attribute("clientControlNo", controlnbr));
    // loadmessage.setContent(null);
    tx.addContent(loadmessage);
    /*** Detail info ***/
    dtl_count = dtl_count + 1;
    String stopoffsequence = str.substring(2,4);
    String nodecode = str.substring(4,24);
    String addr1 = str.substring(24,60);
    String bol = str.substring(147,154);
    String year = str.substring(192,196);
    Element nodedetail = new Element("NodeDetail");
    nodedetail.addAttribute("seqInRoute", stopoffsequence);
    // nodedetail.setContent(null);
    Element nodeaddress = new Element("NodeAddress");
    nodeaddress.addAttribute("address1", addr1);
    Element nodeaction = new Element("NodeAction"); //.setContent(null);
    nodeaction.addAttribute("bol", bol);
    Element nodeactiondate = new Element("NodeActionDate");
    nodeactiondate.addAttribute("year", year);
    --------> loadmessage.addChild(nodedetail);
    nodedetail.addChild(nodeaddress);
    nodedetail.addChild(nodeaction);
    nodeaction.addChild(nodeactiondate);

    Try
    Element loadmessage= new Element()
    Cheers
    Sanjay

  • Error while try to read XML using JDOM

    hi' i don't know what's wrong with this. i try to read my XML document, but i already got exception when i try to initialize it.
    public class readXML
         public readXML()
              try
                   SAXBuilder builder = new SAXBuilder();
                   Document doc = builder.build("XMLTutorial/data.xml");     
              catch(Exception e)
                   e.printStackTrace();
         public static void main(String[] args)
              new readXML();
    }This is my XML Document :
    <f:table>
       <f:name>African Coffee Table</f:name>
       <f:width>80</f:width>
       <f:length>120</f:length>
    </f:table>when i try to run it, i got this exception :
    Caused by: org.xml.sax.SAXParseException: The prefix "f" for element "f:table" is not bound.what's wrong?
    Thanks a lot.

    Namespace prefixes must always be bound to a namespace.
    http://www.w3.org/TR/xml-names11/#sec-namespaces
    For example:<f:table xmlns:f="some namespace">
      <f:name>African Coffee Table</f:name>
      <f:width>80</f:width>
      <f:length>120</f:length>
    </f:table>

Maybe you are looking for

  • PXI-8231 with LabVIEW RT

    Hi, I plan to use a PXI-8231 in a PXI-1042 chassis with PXI-8184 controller.  The controller doesn't run Windows, it runs LabVIEW RT 7.1. Let's say that in my code I do a TCP Open Connection - since I can't specify what Ethernet adapter to use (8231

  • Regarding reports migration

    hi all,      am having big confusion..i want to migrate some reports in FI from 4.7 to ECC 6.0 system..please guided me in this...how it is possible.they given me program names...both are diffrent servers..they will run differently...but we want to t

  • Is Developer Release 6.0 shipping yet?

    Is Developer 6.0 shipping yet in the UK? Release date was given as end March, and yet I can find NO mention at all on any Oracle Website announcing it. Is it released yet or not? Simon Hedges Gloucester UK null

  • EO for multiple tables

    Hello all, In the new page i'm creating, i have more than 8 tables which i need to use to display the data in the page. Also when i'm trying to save the page, the data is saved using the seeded API's. In this situation, 1) How to use Entity objects f

  • Assign resource to task via abap automatically

    Hi experts. I need to assign via abap a resource to a task. The scenario is the following: I have a RoleA with 4 resources staffed (Resource1, Resource2, Resource3, Resource4) and 2 tasks assigned (Task1, Task2). I need to assign for example Resource