Override classpath

Hi
I have saaj.jar file placed in application path:dist-inf/lib directory.
But at run time the class loader is loading the necessary classes from /usr/sapDE1/DE1/JC00/j2ee/cluster/server1/bin/ext/webservices_lib/saaj-api.jar.
How can I override the classpath for the class loader load the classes from the one in dist-inf/lib directory rather than from server library?
points will be awarded for resolute answer....
Thanks,
Prasad
Edited by: Reddy on Dec 31, 2007 9:48 AM

Hi,
I just started playing with web applications using
WLS 10. My web app requires JAXB 2.1 which I have the
jar files for. I package the jar files into the WAR
file and include those in the classpath in the
manifest file. But when the app is running on the
server, an earlier version of JAXB which is in
/bea/modules/glassfish.jaxb_2.0.5.jar is being used.
How do I override the /bea/modules version with the
version I need that is in my WAR file?
By the way, I need JAXB 2.1 because my XML schema has
abstract complex types which JAXB 2.0.5 does not
handle.
Thanks,
RicoSo far, the only things that have worked for me are hacks:
1. Put my jaxb-2.1 jar files in $JAVA_HOME/lib/ext.
2. Hack the jar files in /bea/modules so that they have the jaxb-2.1 classes.

Similar Messages

  • Package my own beans in a jar

    Hi,
    I developped a few javabeans and i would like to package them into a jar to make these javabeans available to several applications.
    myBeans.jar is located in C:\lib\ and contains :
    com
    ---mycompany
    -----businessBeans
    --------xxx.class
    -----technicalBeans
    --------yyy.class
    META-INF
    ---MANIFEST.MF
    I added "C:\lib\myBeans.jar" to the classpath and in a java class I do:
    import com.mycompany.technicalBeans.yyy;I get the following error message : the package com.mycompany.technicalBeans does not exist.
    Please help :)

    Usually IDE's and compile tools (ANT) override classpath settings when compiling java files.
    You should add your jar to a library, if you use an IDE like JBuilder or add teh jar to a script file, if you use ANT.
    If you just add it to system variable CLASSPATH that wont work.
    best regards,
    Maris Orbidans
    SCJP SCWCD SCBCD

  • Overriding the Eclipse runtime classpath

    Hi All,
    We have been playing about with connectors to Exchange from within OpenScript (as one does on a Monday afternoon). When I compose a standalone java program my example works really well, but when I run this in OpenScript i get the following exception:
    java.lang.NoSuchMethodError: org.jdom.output.XMLOutputter .......
    Now, I have done some searching on this and the outcome is that the wrong jdom.jar is being referenced. So I went searching for these naughty files and found the following installed as part of OATS.
    G:\oracle\OATS93\agent\plugins\oracle.oats.jagent.lib3rdparty_2.6.0.0272\lib\jdom.jar
    G:\oracle\OATS93\lib\jdom.jar
    G:\oracle\OATS93\openScript\plugins\oracle.oats.jagent.lib3rdparty_2.6.0.0272\lib\jdom.jar
    G:\oracle\OATS93\openScript\plugins\oracle.oats.scripting.modules.webService.lib3rdparty_2.6.0.0272\jdom.jar
    Now I have my own jdom.jar file located in h:\JEC\bin. So I add this as a script asset, and the above exception still occurs.
    So I do a little digging with procmon.exe (from sysinternals....don't leave home without them), and notice that both jdom.jar from above are reference i.e:
    G:\oracle\OATS93\openScript\plugins\oracle.oats.jagent.lib3rdparty_2.6.0.0272\lib\jdom.jar
    G:\oracle\OATS93\openScript\plugins\oracle.oats.scripting.modules.webService.lib3rdparty_2.6.0.0272\jdom.jar
    when I run the script, which I find a little perculiar, as it also touches my own jar file.
    So, just to satisfy my own curiosty, I back up the openscript jdom.jar and replace them with my own jdom.jar, and hey presto my sciript works, but openscript starts behaving very strangely.
    So, my question is how do you override the runtime classpath settings from OpenScript to include my Jar file first, and not what is needed for OpenScript?
    Any insight would be greatly appreciated.
    Wayne
    Edited by: byrne_wayne on Sep 26, 2011 5:49 PM

    Hi Wayne,
    You can't do this is OpenScript apparently. Packaging up the third party jar into a new generic jar didn't work either, so you'll need to use a different utility that doesn't clash with the libs on which OpenScript depends.
    Cheers,
    Jamie

  • Problem in the package or classpath

    Hello every body
    I want to add a module at "jhove" which is open source: http://hul.harvard.edu/jhove/index.html
    When I launch jhove like this: ./jhove -k file.pdf, it shows me more informations about this pdf.
    I want that it re-knows me anathor type of file.(warc format)
    Then I have to write a new module.
    I try to do it following the link: http://hul.harvard.edu/jhove/writingamodule.html
    I added my java code in :/home/jhove/classes/edu/harvard/hul/ois/jhove/module/Project/
    The compilation works well.
    I add : EXTRA_JARS=/jhove/classes/edu/harvard/hul/ois/jhove/module/Project/WarcModule.jar
    At the file: jhove.tmpl
    I also add this code at jhove.conf like they montionned in document:
    <module>
    <class>WarcModule</class>
    </module>
    I also try with this solution:
    <module>
    <class>edu.harvard.hul.ois.jhove.module.Project.MonModule</class>
    </module>
    But I have this error:
    edu.harvard.hul.ois.jhove.JhoveException: cannot instantiate module: WarcModule
    at edu.harvard.hul.ois.jhove.JhoveBase.init(Unknown Source)
    at Jhove.main(Unknown Source)
    I think that is problem in the classpath.
    There is my code:
    package edu.harvard.hul.ois.jhove.module.Project;
    import java.io.File; 
    import java.util.*;
    import java.io.*;
    import edu.harvard.hul.ois.jhove.*;
    import edu.harvard.hul.ois.jhove.ModuleBase;
    import edu.harvard.hul.ois.jhove.RepInfo;
    import org.archive.io.warc.*;
    public class MonModule extends ModuleBase
             private static final String NAME = "Warc-hul";
             private static final String RELEASE = "1.7";
             private static final int [] DATE = {2008, 9, 23};
             private static final String [] FORMAT = { "warc"};
             private static final String COVERAGE =
                 "PDF 1.0-1.6; PDF/X-1 (ISO 15930-1:2001), X-1a (ISO 15930-4:2003), " +
              "X-2 (ISO 15930-5:2003), and X-3 (ISO 15930-6:2003); Tagged PDF; " +
              "Linearized PDF; PDF/A (ISO/CD 19005-1)";
             private static final String [] MIMETYPE = {"application/warc"};
             private static final String WELLFORMED = "A PDF file is " +
                 "well-formed if it meets the criteria defined in Chapter " +
                 "3 of the PDF Reference 1.6 (5th edition, 2004)";
             private static final String VALIDITY = null;
             private static final String REPINFO = null;
             private static final String NOTE = "This module does *not* validate " +
              "data within content streams (including operators) or encrypted data";
             private static final String RIGHTS = "Copyright 2003-2007 by JSTOR and " +
              "the President and Fellows of Harvard College. " +
              "Released under the GNU Lesser General Public License.";
             private static final String ENCRYPTED = "<May be encrypted>";
    protected MonModule(String NAME, String RELEASE, int[] DATE, String[] FORMAT, String COVERAGE, String[] MIMETYPE, String WELLFORMED, String VALIDITY, String REPINFO, String NOTE, String RIGHTS, boolean x)
             super  (NAME, RELEASE, DATE, FORMAT, COVERAGE, MIMETYPE, WELLFORMED,VALIDITY, REPINFO, NOTE, RIGHTS, true);
    * PRIVATE INSTANCE FIELDS.
    /* First 6 bytes of file */
    protected byte _sig[];
    /* Checksummer object */
    protected Checksummer _ckSummer;
    /* XMP property */
    protected Property _xmpProp;
    /* Input stream wrapper which handles checksums */
    protected ChecksumInputStream _cstream;
    /* Data input stream wrapped around _cstream */
    protected DataInputStream _dstream;
    /* Flag for presence of global color table */
    protected boolean _globalColorTableFlag;
    /* Size of global color table */
    protected int _globalColorTableSize;
    /* Count of graphic control extensions preceding
    * something to modify */
    protected int _gceCounter;
    /* Top-level metadata property */
    protected Property _metadata;
    /* Blocks list property */
    protected List _blocksList;
    /* Total count of graphic and plain text extension blocks */
    protected int _numGraphicBlocks;
    public void checkSignatures (File file,  InputStream stream, RepInfo info)
    throws IOException
    int sigBytes[] = { 'W', 'A', 'R', 'C'};
    int i;
    int ch;
    try {
        _dstream = null;
        _dstream = getBufferedDataStream (stream, _je != null ?
                    _je.getBufferSize () : 0);
        for (i = 0; i < 4; i++) {
            ch = readUnsignedByte(_dstream, this);
            if (ch != sigBytes) {
    info.setWellFormed (false);
    return;
    info.setModule (this);
    info.setFormat (_format[0]);
    info.setMimeType (_mimeType[0]);
    info.setSigMatch(_name);
    catch (Exception e) {
    // Reading a very short file may take us here.
    info.setWellFormed (false);
    return;
    Please can any one help me.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Daniel, not sure if everything is clear now, but the way you are validating a WARC file is seriously flawed! I strongly suggest you use an existing WARC tool to do the actual parsing/validating.
    I've seen more and more people on JHove's mailing list posting problems on how to create their own modules, so I decided to write a small how-to-write-your-own-module-guide.
    Perhaps you'd like to give it a shot. I'll also post it on the mailing list.
    ================================================================================
    This is a step-by-step tutorial that will enable you to compile and run a
    custom made module for Harvard's idetification tool JHove [1]. This is not
    a tutorial on Java programming! For a thorough explanation of this tool and
    extensive documentation, please see:
    [http://hul.harvard.edu/jhove/documentation.html]
    ================================================================================
    = Setp 1 =
    Download and unzip JHove 1.1f [2]. The unzipped folder will be called
    JHOVE_HOME from now on.
    ================================================================================
    = Step 2 =
    In this example I will construct a very elementary ARC module and will be using
    Heritrix' [3] ARCUtils class, so download Heritrix 1.14 [4] and unzip it. After
    unzipping, locate the file 'heritrix-1.14.1.jar' (it might be a different
    version) and place it in the directory 'JHOVE_HOME/bin'.
    ================================================================================
    = Step 3 =
    Create a folder 'JHOVE_HOME/bin/test' and create a new file in it called
    'ArcModule.java'. Paste the following contents in that file:
    package test;
    import java.io.IOException;
    import java.io.InputStream;
    import edu.harvard.hul.ois.jhove.ModuleBase;
    import edu.harvard.hul.ois.jhove.RepInfo;
    import org.archive.io.arc.ARCUtils;
    public class ArcModule extends ModuleBase {
        private static final String NAME = "ARC-hul";
        private static final String RELEASE = "0.1";
        private static final int[] DATE = {2008, 11, 11};
        private static final String[] FORMAT = {"ARC"};
        private static final String COVERAGE = null;
        private static final String[] MIMETYPE = {"application/arc"};
        private static final String WELLFORMED = "...";
        private static final String VALIDITY = null;
        private static final String REPINFO = "...";
        private static final String NOTE = null;
        private static final String RIGHTS = "GNU LGPL";
        public ArcModule() {
            super (NAME, RELEASE, DATE, FORMAT, COVERAGE, MIMETYPE, WELLFORMED,
                    VALIDITY, REPINFO, NOTE, RIGHTS, false);
            // Optionally set some Agent information: see the other Modules how
            // this can be done.
        @Override
        public int parse(InputStream stream, RepInfo info, int parseIndex) {
            info.setModule(this);
            boolean wellFormed = false;
            try {
                if(ARCUtils.testCompressedARCStream(stream)) {
                    wellFormed = true;
            } catch (IOException e) {
                e.printStackTrace();
            info.setWellFormed(wellFormed);
            return 0;
    }================================================================================
    = Step 4 =
    Compile this ArcModule by opening a shell (command prompt) and cd-ing to
    'JHOVE_HOME/bin' and executing the following command:
    *nix & Mac OS:
    javac -cp .:JhoveApp.jar:heritrix-1.14.1.jar test/ArcModule.javaWindows:
    javac -cp .;JhoveApp.jar;heritrix-1.14.1.jar test\ArcModule.java
    (Note, if you're using JDK 1.4, replace '-cp' with '-classpath')
    You shouldn't get any messages if all goes well.
    ================================================================================
    = Step 5 =
    Open the file 'JHOVE_HOME/conf/jhove.conf' and add the following right beneath
    the line <bufferSize>?????</bufferSize>, where ????? is a number:
    <module>
      <class>test.ArcModule</class>
    </module>Save the file.
    ================================================================================
    = Step 6 =
    Create a folder called 'JHOVE_HOME/arcs' and copy two compressed ARC files in
    them. If you don't have any compressed ARC files laying around, you can
    download two small [5]. The file 'A.arc.gz' is a valid compressed ARC file,
    while 'B.arc.gz' is the same as 'A.arc.gz' but I removed the ARC-header from
    the latter, making it an invalid ARC file.
    ================================================================================
    = Step 7 =
    Open a shell, cd to 'JHOVE_HOME/bin' and execute the following command:
    *nix & Mac OS:
    java -cp .:JhoveApp.jar:heritrix-1.14.1.jar Jhove -c ../conf/jhove.conf -m ARC-hul ../arcsWindows:
    java -cp .;JhoveApp.jar;heritrix-1.14.1.jar Jhove -c ..\conf\jhove.conf -m ARC-hul ..\arcsWhich will cause JHove to scan everything that is in 'JHOVE_HOME/arcs' folder
    and throws it through your newly create ArcModule. The output will be as
    follows:
    Jhove (Rel. 1.1, 2008-02-21)
    Date: 2008-11-14 22:29:51 CET
    RepresentationInformation: .../jhove/arcs/A.arc.gz
      ReportingModule: ARC-hul, Rel. 0.1 (2008-11-11)
      LastModified: 2008-08-24 20:23:20 CEST
      Size: 130870
      Status: Well-Formed and valid
    RepresentationInformation: .../jhove/arcs/B.arc.gz
      ReportingModule: ARC-hul, Rel. 0.1 (2008-11-11)
      LastModified: 2008-11-14 21:53:15 CET
      Size: 116136
      Status: Not well-formedWhich is the expected result: A is valid and B is not.
    ================================================================================
    = Final remarks =
    As I said, this is not a programming tutorial, nor is it the best way to
    validate ARC files: more meta data should be extracted from the file. But I
    leave that for you. This was only a guide to show you how to get started on
    writing and running your own modules. You can have a look at the source
    of the existing modules to see the "best practices" w.r.t. writing a module.
    Best of luck!
    Regards,
    Bart.
    ================================================================================
    = References =
    [1] [http://hul.harvard.edu]
    [2] [http://hul.harvard.edu/jhove/download.html]
    [3] [http://crawler.archive.org]
    [4] [http://sourceforge.net/project/showfiles.php?group_id=73833&package_id=73980]
    [5] [http://iruimte.nl/arcs]

  • About path and classpath in linux

    How to set classpath and path in Linux.
    thank you very much!

    The class path can be set using either the -classpath option when calling an SDK tool (the preferred method) or by setting the CLASSPATH environment variable. The -classpath option is preferred because you can set it individually for each application without affecting other applications and without other applications modifying its value.
    % sdkTool -classpath path1:path2...
    -or-
    % setenv CLASSPATH path1:path2...
    where:
    sdkTool
    A command-line tool, such as java, javac, or javadoc. For a listing, see SDK Tools.
    path1:path2
    Paths to the .jar, .zip or .class files. Each path should end with a filename or directory depending on what you are setting the class path to:
    For a .jar or .zip file that contains .class files, the path ends with the name of the .zip or .jar file.
    For .class files in an unnamed package, the path ends with the directory that contains the .class files.
    For .class files in a named package, the path ends with the directory that contains the "root" package (the first package in the full package name).
    Multiple path entries are separated by colons.
    The default class path is the current directory. Setting the CLASSPATH variable or using the -classpath command-line option overrides that default, so if you want to include the current directory in the search path, you must include "." in the new settings.
    Classpath entries that are not either a directory or an archive (.zip or .jar file) are ignored.

  • What is directory where I can put in jar file without specify classpath ?

    hi,
    Is there any directory in weblogic similar to the directory of WEB-INF/lib/ where I can throw a jar file in without specify classpath explicitly.
    The reason I'm looking for such directory is :
    -- I do not want to specify classpath explicitly
    -- I'd like it outside of an application so that it stay even if the application redeployed.
    Thanks

    Hi Aacc,
    The domain library directory that you are looking for is usually $DOMAIN_DIR/lib, for example "C:\Oracle\WLS_Middleware10.3.4\user_projects\domains\test_domain_1\lib" (Windows) or "/u01/weblogic/domains/my_domain/lib" (Linux/Unix).
    The jars located in this directory will be picked up and added dynamically to the end of the server classpath at server startup. The jars will be ordered lexically in the classpath. The domain library directory is one mechanism that can be used for adding application libraries to the server classpath.
    You can override the $DOMAIN_DIR/lib directory using the -Dweblogic.ext.dirs system property during startup. This property specifies a list of directories to pick up jars from and dynamically append to the end of the server classpath using java.io.File.pathSeparator as the delimiter between path entries.
    -Cris

  • Build of DC fails libraries on classpath are not found - Please Help

    HI Guys,
    I am trying to build an ejb dc.
    There are no errors showing up in NWDS but when doing an Development Component -> Build the Build fails with the errors here in the log - how can I make sure the libs are found at compiletime?????
    DC Model check:
       All used DCs are available locally
       validating dependency to build plugin "sap.com/tc/bi/bp/ejbmodule"
       validating dependency to  public part "default" of DC "sap.com/ejb20"
       validating dependency to  public part "default" of DC "sap.com/jdbc20"
       validating dependency to  public part "default" of DC "acdc.de/pinguin/service/dic"
       validating dependency to  public part "default" of DC "sap.com/configuration"
       validating dependency to  public part "default" of DC "sap.com/connector"
       validating dependency to  public part "default" of DC "sap.com/mail"
       validating dependency to  public part "compilation" of DC "acdc.de/pinguin/ext/lib"
       validating dependency to  public part "default" of DC "sap.com/jms_provider"
       validating dependency to  public part "default" of DC "sap.com/jmsconnector"
       validating dependency to  public part "default" of DC "sap.com/jms"
       validating dependency to used DC "apotheker.com/cape/base/external/lib"
       validating dependency to used DC "apotheker.com/cape/base/utils"
       DC model check OK
    Start build plugin:
       using build plugin: sap.com/tc/bi/bp/ejbmodule
       starting build plugin from : D:\usr\nwds\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\SAP_BUILDT\DCs\sap.com\tc\bi\bp\ejbmodule\_comp\gen\default\public\ejb\
    Build Plugin 'EJBModulePlugin', Version 7.00 SP 3 (NW701_03_REL, built on 2008-12-17 16:25:56 CET, CL51263)
       development component:  pinguin/service/ejb (acdc.de)
          software component:  MyComponents (demo.sap.com)
                    location:  local
                        type:  J2EE, subtype EJBModule
               build variant:  default
             output location:  C:\Documents and Settings\user\.dtc\LocalDevelopment\DCs\acdc.de\pinguin\service\ejb\_comp\gen\default
           generation folder:  C:\Documents and Settings\user\.dtc\LocalDevelopment\t\F77C06E96830A119E56EFB0EDB243F25
           plugin start time:  2011-12-02 18:28:55 GMT+01:00 (CET)
                     Java VM:  Java HotSpot(TM) Client VM, 1.4.2_12-b03 (Sun Microsystems Inc.)
    General options:
      convert *.xlf to *.properties: yes
      include sources for debugging: yes
    Checking path lengths for sources
    Path length checks finished in 0.016 seconds
    Preparing data context..
    No public part descriptor found for component "ejb20" (vendor "sap.com"), public part "default", using legacy mode.
    No public part descriptor found for component "jms_provider" (vendor "sap.com"), public part "default", using legacy mode.
    No public part descriptor found for component "jmsconnector" (vendor "sap.com"), public part "default", using legacy mode.
    No public part descriptor found for component "jms" (vendor "sap.com"), public part "default", using legacy mode.
    No 'default' JDK defined, will use running VM.
    Data context preparation finished in 0.094 seconds
    Creating Ant build file..
      Creating output file: C:\Documents and Settings\user\.dtc\LocalDevelopment\DCs\acdc.de\pinguin\service\ejb\_comp\gen\default\logs\build.xml
      Using Java class:     com.sap.tc.buildplugin.BuildEJBModule
    Build file creation finished in 0.046 seconds
    Starting Ant..
      Using build file:     C:\Documents and Settings\user\.dtc\LocalDevelopment\DCs\acdc.de\pinguin\service\ejb\_comp\gen\default\logs\build.xml
      Using build target:   build
      Using Ant version:    1.6.2
    compile:
          [echo] Start SQLJ Pre-processing
          [sqlj] Using catalog:xml/file/C:\Documents and Settings\user\.dtc\LocalDevelopment\DCs\acdc.de\pinguin\service\dic\_comp\gen\default\public\default\lib\java\acdc.de~pinguin~service~dic~default.jar;D:\usr\nwds\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\SAP-JEE\DCs\sap.com\ejb20\_comp\gen\default\public\default\lib\java\ejb20.jar;D:\usr\nwds\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\SAP-JEE\DCs\sap.com\jms_provider\_comp\gen\default\public\default\lib\java\sapjms.jar;D:\usr\nwds\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\SAP-JEE\DCs\sap.com\jdbc20\_comp\gen\default\public\default\lib\java\jdbc.jar;D:\usr\nwds\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\SAP-JEE\DCs\sap.com\jms\_comp\gen\default\public\default\lib\java\jms.jar;D:\usr\nwds\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\Documents and Settings\user\.dtc\LocalDevelopment\DCs\acdc.de\pinguin\ext\lib\_comp\gen\default\public\compilation\lib\java\acdc.de~pinguin~ext~lib~compilation.jar;C:\Documents and Settings\user\.dtc\LocalDevelopment\DCs\acdc.de\pinguin\ext\lib\_comp\gen\default\public\compilation\lib\java\paygate-1.0.2.jar;D:\usr\nwds\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\SAP-JEE\DCs\sap.com\jmsconnector\_comp\gen\default\public\default\lib\java\jmsconnector.jar;D:\usr\nwds\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\SAP-JEE\DCs\sap.com\servlet\_comp\gen\default\public\default\lib\java\servlet.jar
          [sqlj] translation finished
          [sqlj] 0 warnings
          [sqlj] 0 errors
         [timer] SQLJ Pre-processing finished in 0.828 seconds
          [echo] Starting Java compiler
          [echo] Settings:
          [echo]         debug: on
          [echo]      optimize: off
          [echo]   deprecation: default
          [echo]       verbose: default
          [echo]      encoding: UTF8
          [echo]        source: default
          [echo]        target: default
          [echo]  source paths:
          [echo]       C:\Documents and Settings\user\.dtc\LocalDevelopment\DCs\acdc.de\pinguin\service\ejb\_comp\ejbModule
          [echo]       C:\Documents and Settings\user\.dtc\LocalDevelopment\t\F77C06E96830A119E56EFB0EDB243F25\gen_sqlj
          [echo]    class path:
          [echo]       C:\Documents and Settings\user\.dtc\LocalDevelopment\DCs\acdc.de\pinguin\service\dic\_comp\gen\default\compilation\lib\java\paygate-1.0.2.jar
          [echo]       D:\usr\nwds\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\SAP-JEE\DCs\sap.com\jmsconnector\_comp\gen\default\public\default\lib\java\jmsconnector.jar
          [echo]       D:\usr\nwds\IDE\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\SAP-JEE\DCs\sap.com\servlet\_comp\gen\default\public\default\lib\java\servlet.jar
          [echo]    output dir: C:\Documents and Settings\user\.dtc\LocalDevelopment\t\F77C06E96830A119E56EFB0EDB243F25\classes
         [javac] Compiling 163 source files to C:\Documents and Settings\user\.dtc\LocalDevelopment\t\F77C06E96830A119E56EFB0EDB243F25\classes
         [javac] ERROR: C:\Documents and Settings\user\.dtc\LocalDevelopment\DCs\acdc.de\pinguin\service\ejb\_comp\ejbModule\de\acdc\pinguin\facade\acdcPinguin001CustomFacade.java:21: package com.hp.cape.persistence.exception does not exist
         [javac] ERROR: import com.hp.cape.persistence.exception.FinderException;
         [javac] ERROR:                                          ^
         [javac] ERROR: C:\Documents and Settings\user\.dtc\LocalDevelopment\DCs\acdc.de\pinguin\service\ejb\_comp\ejbModule\de\acdc\pinguin\facade\acdcPinguin001CustomFacade.java:22: package com.hp.cape.persistence.exception does not exist
         [javac] ERROR: import com.hp.cape.persistence.exception.PersistenceException;
         [javac] ERROR:                                          ^
         [javac] ERROR: C:\Documents and Settings\user\.dtc\LocalDevelopment\DCs\acdc.de\pinguin\service\ejb\_comp\ejbModule\de\acdc\pinguin\facade\acdcPinguin001CustomFacade.java:23: package com.hp.cape.persistence.exception does not exist
         [javac] ERROR: import com.hp.cape.persistence.exception.RemoteServerException;
         [javac] ERROR:                                          ^
         [javac] ERROR: C:\Documents and Settings\user\.dtc\LocalDevelopment\DCs\acdc.de\pinguin\service\ejb\_comp\ejbModule\de\acdc\pinguin\facade\acdcPinguin001CustomFacade.java:24: package com.hp.cape.persistence.filter does not exist
         [javac] ERROR: import com.hp.cape.persistence.filter.FilterCondition;
         [javac] ERROR:                                       ^
         [javac] ERROR: C:\Documents and Settings\user\.dtc\LocalDevelopment\DCs\acdc.de\pinguin\service\ejb\_comp\ejbModule\de\acdc\pinguin\facade\acdcPinguin001CustomFacade.java:96: cannot resolve symbol
         [javac] ERROR: symbol  : class RemoteServerException
         [javac] ERROR: location: class de.acdc.pinguin.facade.acdcPinguin001CustomFacade
         [javac] ERROR:   protected Object getHomeStub() throws RemoteServerException
         [javac] ERROR:                                         ^
         [javac] ERROR: C:\Documents and Settings\user\.dtc\LocalDevelopment\DCs\acdc.de\pinguin\service\ejb\_comp\ejbModule
         [javac] ERROR: symbol  : class RemoteServerException
         [javac] ERROR: location: class de.acdc.pinguin.facade.acdcPinguin001Facade
         [javac] ERROR:   protected acdcPinguin001SB getacdcPinguin001SB() throws RemoteServerException
         [javac] ERROR:                                                   ^
         [javac] ERROR: C:\Documents and Settings\user\.dtc\LocalDevelopment\DCs\acdc.de\pinguin\service\ejb\_comp\ejbModule\de\acdc\pinguin\facade\acdcPinguin001Facade.java:192: cannot resolve symbol
         [javac] ERROR: symbol  : class FinderException
         [javac] ERROR: location: class de.acdc.pinguin.facade.acdcPinguin001Facade
         [javac] ERROR:   public acdcPinguin001DTO findByPrimaryKey(BigDecimal id) throws FinderException, PersistenceException
         [javac] ERROR:                                                               ^
         [javac] ERROR: C:\Documents and Settings\user\.dtc\LocalDevelopment\DCs\acdc.de\pinguin\service\ejb\_comp\ejbModule\de\acdc\pinguin\facade\acdcPinguin001Facade.java:192: cannot resolve symbol
         [javac] ERROR: symbol  : class PersistenceException
         [javac] ERROR: location: class de.acdc.pinguin.facade.acdcPinguin001Facade
         [javac] ERROR:   public acdcPinguin001DTO findByPrimaryKey(BigDecimal id) throws FinderException, PersistenceException
         [javac] ERROR:                                                                                ^
         [javac] ERROR: C:\Documents and Settings\user\.dtc\LocalDevelopment\DCs\acdc.de\pinguin\service\ejb\_comp\ejbModule
         [javac] ERROR:                                                                                ^
         [javac] ERROR: C:\Documents and Settings\user\.dtc\LocalDevelopment\DCs\acdc.de\pinguin\service\ejb\_comp\ejbModulePersistenceException
         [javac] ERROR:                                                                                ^
         [javac] ERROR: C:\Documents and Settings\user\.dtc\LocalDevelopment\DCs\acdc.de\pinguin\service\ejb\_comp\ejbModule\de\acdc\pinguin\facade\acdcPinguin002Facade.java:389: cannot resolve symbol
         [javac] ERROR: symbol  : class PersistenceException
         [javac] ERROR: location: class de.acdc.pinguin.facade.acdcPinguin002Facade
         [javac] ERROR:   public acdcPinguin002DTO update(acdcPinguin002DTO data) throws PersistenceException
         [javac] ERROR:                                                          ^
         [javac] WARNING: Note: Some input files use or override a deprecated API.
         [javac] WARNING: Note: Recompile with -deprecation for details.
         [javac] 100 errors
    Error: C:\Documents and Settings\user\.dtc\LocalDevelopment\DCs\acdc.de\pinguin\service\ejb\_comp\gen\default\logs\build.xml:158: Compile failed; see the compiler error output for details.
         at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:938)
         at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
         at org.apache.tools.ant.Task.perform(Task.java:364)
         at org.apache.tools.ant.Target.execute(Target.java:341)
         at org.apache.tools.ant.Target.performTasks(Target.java:369)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
         at com.sap.tc.buildplugin.techdev.ant.util.AntRunner.run(AntRunner.java:116)
         at com.sap.tc.buildplugin.DefaultAntBuildAction.execute(DefaultAntBuildAction.java:58)
         at com.sap.tc.buildplugin.DefaultPlugin.handleBuildStepSequence(DefaultPlugin.java:196)
         at com.sap.tc.buildplugin.DefaultPlugin.performBuild(DefaultPlugin.java:168)
         at com.sap.tc.buildplugin.DefaultPluginV3Delegate$BuildRequestHandler.handle(DefaultPluginV3Delegate.java:66)
         at com.sap.tc.buildplugin.DefaultPluginV3Delegate.requestV3(DefaultPluginV3Delegate.java:48)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.sap.tc.buildtool.v2.impl.PluginHandler2.maybeInvoke(PluginHandler2.java:350)
         at com.sap.tc.buildtool.v2.impl.PluginHandler2.request(PluginHandler2.java:99)
         at com.sap.tc.buildtool.v2.impl.PluginHandler2.build(PluginHandler2.java:73)
         at com.sap.tc.buildtool.PluginHandler2Wrapper.execute(PluginHandler2Wrapper.java:59)
         at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:1750)
         at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:6004)
         at com.sap.ide.eclipse.component.provider.actions.dcproject.BuildAction.buildDCsForDevConfig(BuildAction.java:307)
         at com.sap.ide.eclipse.component.provider.actions.dcproject.BuildAction.access$200(BuildAction.java:58)
         at com.sap.ide.eclipse.component.provider.actions.dcproject.BuildAction$1.run(BuildAction.java:212)
         at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
    Ant runtime 1.265 seconds
    Ant build finished with ERRORS
    Compile failed; see the compiler error output for details.
    Error: Build stopped due to an error: Compile failed; see the compiler error output for details.
    Build plugin finished at 2011-12-02 18:28:56 GMT+01:00 (CET)
    Total build plugin runtime: 1.562 seconds
    Build finished with ERROR

    Hi Saurabh Agarwal,
    I have double checked this. removed and added the relevant libraries but no luck.
    the build log says that it can not find
         [javac] ERROR: C:\Documents and Settings\admitsepedollhofer1\.dtc\LocalDevelopment\DCs\acdc\some\service\ejb\_comp\ejbModule\acdc\some\facade\AcDcSome001CustomFacade.java:21: package com.ap.cape.persistence.exception does not exist
         [javac] ERROR: import com.ap.cape.persistence.exception.FinderException;
    Build Path looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <classpath>
        <classpathentry kind="var" path="JRE_LIB" sourcepath="JRE_SRC"/>
        <classpathentry kind="src" path="ejbModule"/>
        <classpathentry kind="src" path="gen_sqlj"/>
        <classpathentry kind="src" path="/LocalDevelopmentcapebaseutilsap.com"/>
        <classpathentry kind="var" path="TSSAP_JAVAX_HOME/lib/ejb20.jar"/>
        <classpathentry kind="lib" path="D:/Projects/some/0/DCs/ap.com/cape/base/utils/_comp/gen/default/public/compilation/lib/java/ap.comcapebaseutilscompilation.jar"/>
        <classpathentry kind="var" path="SAP_LOGGING_LIB_HOME/lib/logging.jar"/>
        <classpathentry kind="var" path="SAP_SYSTEM_ADD_LIBS/comp/SAP-JEE/DCs/sap.com/com.sap.engine.client.lib/_comp/gen/default/public/default/lib/java/sapj2eeclient.jar"/>
        <classpathentry kind="src" path="/DV2_some_Dsomeservicedicacdc.de"/>
        <classpathentry kind="var" path="SAP_EXCEPTION_LIB_HOME/lib/exception.jar"/>
        <classpathentry kind="lib" path="/DV2_some_Dsomeextlibacdc.de/libraries/paygate-1.0.2.jar"/>
        <classpathentry kind="lib" path="/DV2_some_Dsomeextlibacdc.de/libraries/commonsNet.jar"/>
        <classpathentry kind="lib" path="/DV2_some_Dsomeextlibacdc.de/libraries/jakarta-oro-2.0.8.jar"/>
        <classpathentry kind="var" path="TSSAP_JAVAX_HOME/lib/jms.jar"/>
        <classpathentry kind="var" path="TSSAP_JAVAX_HOME/lib/mail.jar"/>
        <classpathentry kind="var" path="SQLJ_RUNTIME"/>
        <classpathentry kind="lib" path="D:/Projects/some/0/DCs/ap.com/cape/base/external/lib/_comp/gen/default/public/compilation/lib/java/CapeJ2eePersistence.jar"/>
        <classpathentry kind="lib" path="D:/Projects/some/0/DCs/ap.com/cape/base/external/lib/_comp/gen/default/public/compilation/lib/java/CapeUtilities.jar"/>
        <classpathentry kind="lib" path="D:/Projects/some/0/DCs/ap.com/cape/base/external/lib/_comp/gen/default/public/compilation/lib/java/Cape.jar"/>
        <classpathentry kind="output" path="bin"/>
    </classpath>
    How can I make sure that the libraries are included in the build process?

  • Override Spring jar in Weblogic 12c

    Hi Folks,
    We have been facing an issue while overriding the Spring jar in Weblogic 12c. Basically we need to write a bean based on some 3rd party API calling their interfaces. Now they use Spring 2.5 jar for their own implementation. Since Weblogic inherently supports Spring 3.0 jar. As a result when we write our bean wrapping their interfaces and deploy it, it doesn't work. We replicated the issue by replacing Spring 2.5 jar with Spring 3 in local environment.
    If we modify the server classpath to load the Spring 2.5 jar (preceding Spring 3.0), entire soa-infra application goes down, so what We wanted to know if it is possible to override the Spring jar only for our application itself? While loading the application it will override the Spring 3.0 jar with Spring 2.5 in the application context but server will keep using Spring 3.0?
    Any ideas/suggestions highly appreciated!
    Thanks,
    Bhaskar

    Hi Bhaskar,
    have you tried packing the Spring libraries in your application and using the Filterring Classloader? Maybe this links can help you :
    Understanding WebLogic Server Application Classloading
    http://docs.oracle.com/cd/E24329_01/web.1211/e21049/weblogic_xml.htm#WBAPP601
    http://stackoverflow.com/questions/11476874/weblogic-10-3-5-overriding-spring-version
    best regards, Nicolas

  • Not overriding the coherence-cache-config.xml but showing the error...

    Hi,
    I have created a file called tangosol-coherence-override.xml file in the specified path which is " C:\Program Files\Oracle\Coherence for .NET"
    and the coherence.jar file is located in path which is "C:\Program Files\Oracle\Coherence for .NET\lib"
    but it is not overriding the xml file.. with the default file...
    C:\Program Files\Oracle\Coherence for .NET\examples\ContactCache.Java>"C:\Progra
    m Files\Java\jdk1.6.0_11\bin\java" -server -showversion -Xms128m -Xmx128m -Dtang
    osol.coherence.ttl=0 -Dtangosol.coherence.cacheconfig=contact-cache-config.xml -
    cp "config;lib\custom-types.jar;C:\Program Files\Oracle\Coherence for .NET\lib\c
    oherence.jar" com.tangosol.net.DefaultCacheServer
    java version "1.6.0_11"
    Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
    Java HotSpot(TM) Server VM (build 11.0-b16, mixed mode)
    2011-06-20 15:06:57.607/2.366 Oracle Coherence 3.7.0.0 <Info> (thread=main, memb
    er=n/a): Loaded operational configuration from "jar:file:/C:/Program%20Files/Ora
    cle/Coherence%20for%20.NET/lib/coherence.jar!/tangosol-coherence.xml"
    2011-06-20 15:06:57.989/2.748 Oracle Coherence 3.7.0.0 <Info> (thread=main, memb
    er=n/a): Loaded operational overrides from "jar:file:/C:/Program%20Files/Oracle/
    Coherence%20for%20.NET/lib/coherence.jar!/tangosol-coherence-override-dev.xml"
    2011-06-20 15:06:58.049/2.808 Oracle Coherence 3.7.0.0 <D5> (thread=main, member
    =n/a): Optional configuration override "/tangosol-coherence-override.xml" is not
    specified
    2011-06-20 15:06:58.062/2.821 Oracle Coherence 3.7.0.0 <D5> (thread=main, member
    =n/a): Optional configuration override "/custom-mbeans.xml" is not specified
    Oracle Coherence Version 3.7.0.0 Build 23397
    Grid Edition: Development mode
    Thanks in Advance

    The CLASSPATH is not the same as the PATH. It is similar but a classpath is a set of directories or jar files that Java uses to look for executable code and resources.
    Assuming you are using the example start-cache-server.cmd file that comes with the .Net examples to start your server you can put the tangosol-coherence-override.xml file into the C:\Program Files\Oracle\Coherence for .NET\examples\ContactCache.Java\config directory as this is on the classpath when using that script.
    JK

  • Classpath and manifest.mf

    what is the difference between classpath, buildpath and a Manifest.mf paths?
    I believe class path is used at run time to look for the classes referred in this path.
    Build path is used to build the application i.e. to link the components used while compiling and building classes.
    Manifest.MF is also used for runtime resolution.
    What different purpose did classpath and manifest.mf serve?

    If I understand you correctly, this is more of a general Java Question then a Java Servlet Question... but anyway...
    The manifest.mf is defined for JARs. Your system CLASSPATH, and the classpath set on the command line are ignored for JARs, and only the CLASSPATH set in the manifest is used.
    When running applications outside of JARs, then the system/command line CLASSPATH is used.
    When running a web application inside a WAR, the server has its own classpath which will override that of the manifest and the system CLASSPATH.

  • Classpath problems when importing my classes

    I'm using a tutorial with sample programs dealing with bank accounts.
    I get this error:
    InterestBearingAccount.java [9:1] '.' expected
    import Account;
    ^
    1 error
    Errors compiling InterestBearingAccount.
    The Account class already exists in the current directory. I've tried everything as far as setting the classpath variable (nothing, just a period, period & slash, the actual complete path for the current directory, nothing works!!!!!). I also tried using -classpath (.) and the end of my javac command and that seemed to not work at all.
    The Java Coffee Break tutorial have some already compiled (*.class) files and they run fine. My *.java files are identical. In fact, I cut and pasted them so I know it's not a typo.
    My path is set to include the jdk1.4.0\bin directory and I've only begun to have problems now that I need to import existing classes into the programs.
    I should mention that I get the same error using Forte environment or doing it at the command prompt window. Please help.

    Thanks ATMGUY. I commented out the import statements in both InterestBearingAccount and AccountDemo and it worked fine. I guess the author of that tutorial was obviously not working with jdk 1.4.
    As far as using packages, com.kusek.bank would make a good package name then??
    The statement:
    package com.kusek.bank; OR a shorter version package kusek.bank;
    should be added to all three classes and no import statements would then be necessary, right??
    I just remember reading that it should be something unique as a good habit to get into.
    I'm trying to learn enough to make a useful GUI program for a special project so I probably should be using packages anyway when I get to that point.
    My programming backround is limited to procredural languages Basic, QBasic, Pascal, and Fortran and I find myself still wanting to think in those terms. I have read several web sites and worked through some basic examples but I still have much to learn. I once I can grasp how to write OOP style it would be nice to look at code for a somewhat detailed application (like a store checkout app) and have every line explained as to why it's there. I can see where it makes sense to have your GUI classes predefined (Swing), File I/O, serial port communications, and even things like this InterestBearingAccount example that extends from the Account class utilizing its basic attributes but overriding the constructors for the additional parameters (interest calculation) that are passed. How to take a common problem and go about creating a solution is what I need to see being done to help me.
    My telemetry project uses VHF radios with packet radio modems to monitor two diesel engines and turn one off if the other turns off. The modems have built in A/D data gathering and can also output control signals, they just need to be told what to do. I can manually use a Windows Hyperterminal session and type in "connect Engine1" and use commands to determine the A/D inputs "analog". The modems have built in end-to-end acknowledgement so the only think I need is an application than can be setup to run in the Startup folder to handle this. It would use a timer class to "poll" engine1 every 5-10 minutes and if it has stopped (based on the response of the "analog" command) I would "disconnect" from engine1 and "connect" to engine2 and send a "ctrl B off" or something similar. The standard responses from the modem should allow me just to send and recieve STRING data to and from the serial port and parse them as needed. I need at least this much but it shouldn't be too much harder to develop a way to reset the system(reverse of this) when that is required. I could also read a water pressure value at one of the locations and display that on the screen along with the current status of the engines (using values obtained from the "analog" command on the modems).
    The hardest part of OOP programming seems to be knowing what classes are already out there and knowing how to find them or apply them. I hope Swing has classes that provide for displaying values on the Windows taskbar (my motherboard monitor freeware displays temperature readings down on the taskbar). I appreciate all the help given here. It's almost like having a private tutor.
    randy

  • Can't set classpath or classloader for JavaCompiler!

    I have a class that I load using my own class loader. I know the class is loaded because I can instantiate it using reflection.
    Then, in my code I try to compile a source file which references (via import) the class I loaded, and I get a package does not exist error on the compile.
    I have tried everything I could think of. Currently, I'm doing this (read the comments):
            StandardJavaFileManager fileManager = compiler.getStandardFileManager(null, null, null);
            // trying to force the filemanager to use my class loader when resolving class paths... doesn't ever get called
            // except when loading annotation processors, though!!!
            ForwardingJavaFileManager<JavaFileManager> ffm = new ForwardingJavaFileManager<JavaFileManager>(fileManager)
                @Override
                public ClassLoader getClassLoader(Location location)
                    if (location == StandardLocation.CLASS_PATH)
                        return serviceClassLoader;
                    return super.getClassLoader(location);
                // This returns a list of File objects which were loaded in my class loader.
                // The File objects are created from the URL's I load in the class loader, and have the form:
                // "C:/Some/Path/To/File.jar"
                List<File> compileClassPath = serviceClassLoader.getClassPathFiles();
                // Adding the bin directory which contains the .class files of my app (in Eclipse)
                compileClassPath.add(new File("./bin"));
                // Attempt to add the bin dir with the .class files from another project - this is where the classes are that are failing to load
                compileClassPath.add(new File("C:/Documents%20and%20Settings/David/workspace/CoreServices/bin/"));
      fileManager.setLocation(StandardLocation.CLASS_PATH, compileClassPath);The output I'm seeing includes:
    CentralLoggingService_CentralLogService_Listener.java:5: package com.dave.service.logging does not exist
    import com.dave.service.logging.CentralLoggingService;
                                     ^
    CentralLoggingService_CentralLogService_Listener.java:7: cannot find symbol
    symbol: class CentralLogService
    public class CentralLoggingService_CentralLogService_Listener implements MessageListener<CentralLogService>So, basically, I need to know how to either:
    1) Set the class path for the JavaCompiler so that it will load classes that are required by the source being compiled, or...
    2) Set the classloader the JavaCompiler uses to resolve those classes.
    I've tried everything I could think of, even reading through the compiler source, and nothing has worked yet.
    Can anyone help?!?

    Hi,
    I am not sure but the argument to new File() looks dubious to me.
    You seem to be mixing URL and filename syntax.
    What does this do?
    class FileTest {
        public static void main(String[] args) {
            system.out.println(new File("C:/Documents%20and%20Settings/David/workspace/CoreServices/bin/").exists());
    }if its false then that directory doesn't exist.
    I would use backslashes (don't forget to escape them) and spaces, and no trailing path separator - like this
    class FileTest {
        public static void main(String[] args) {
            system.out.println(new File("C:\\Documents and Settings\\David\\workspace\\CoreServices\\bin").exists());
    }Play around with that till you can create a File object that exists and isDirectory().
    When I have done this in the past, I have used the existing classpath to set the classpath for invoking the compiler. For example this snippet from the hickory project at [https://hickory.dev.java.net/source/browse/hickory/trunk/code/src/net/java/dev/hickory/testing/Compilation.java?rev=11&view=markup|https://hickory.dev.java.net/source/browse/hickory/trunk/code/src/net/java/dev/hickory/testing/Compilation.java?rev=11&view=markup]
    List<String> optionList = new ArrayList<String>();
    optionList.addAll(Arrays.asList("-classpath",System.getProperty("java.class.path")));
    optionList.addAll(Arrays.asList(options));
    JavaCompiler.CompilationTask task = compiler.getTask(out,jfm,diagnostics,optionList,null,jfos);An advantage of that technique is that you don't have the path hard coded in the program. Useful if someone else wants to run it.
    In fact, you might find it useful to use the hickory testing package which provides an abstraction over the compiler API. See the javadoc starting here
    [https://hickory.dev.java.net/nonav/apidocs/index.html?net/java/dev/hickory/testing/Compilation.html|https://hickory.dev.java.net/nonav/apidocs/index.html?net/java/dev/hickory/testing/Compilation.html]
    Bruce

  • Manifest Classpath Question oc4j.jar

    I need some clarification on how the MANIFEST.MF in the oc4j.jar library is influencing classlading. Below are my specific questions:
    My group is using a configuration management tool which stores all java libraries in a central repository. During builds the tool downloads all dependent libraries in basically a flat directory format and specifies a classpath to java when it runs its builds (and starts up OC4J via java com.evermind.server.OC4JServer). Is there anyway to override the Manifest.MF with the classpath constructed by our configuration management tool?
    In many cases libraries are entered in twice but are from different locations. i.e.
    ../../lib/xmlparserv2.jar
    ../../oracle/lib/xmlparserv2.jar
    Is there a difference between these two libraries?
    In the classloading sequence when does the classloader refer to the Manifest.MF for locations of libraries?
    Thanks in advance!
    -Mark

    Hi Mark,
    I'm sure I haven't understood your question, so the following may be useless to you (please excuse me if it is).
    I feel there is probably a better way to do what you are trying to do, but without more details, I can only guess.
    Do you know about the java extension mechanism?
    The tooldocs Web page has details of how the JVM locates classes.
    There are also some whitepapers and other documents that you can access from the OC4J home page at Oracle's Technet Web site.
    Good Luck,
    Avi.

  • Custom classpath and custom jar entry in R12

    Hi all,
    I have created the custom classpath and custom jar file for isrore process. I had put custom jar and custom class entry in orien_application.xml file. But it was working on R12 at doveloper mode. It will creates the classes for custom jsp file using custom import class or custom jar. But once i revert back the devloper mode means it won't work.
    Could you please help..

    Oracle apps R12 - Compiling JSP with custom classpath
    We all know that to compile JSP manually on the Oracle Application R12 instance, we need to run the file $FND_TOP/patch/115/bin/ojspCompile.pl.
    Its help is as follows:
    syntax: ./ojspCompile.pl COMMAND {ARGS}
    COMMAND --compile               update dependency, compile delta
    --create                rebuild entire dependency file
    -delta.out update dependency, list delta to file
    -dep.out update dependency, output heirarchy to file
    ARGS -s matching condition for JSPs filenames
    -p number of parallel compilations
    -log to override logfile from ojspCompile.conf
    You are
    recommended to set the log file location
    outside of any network file system shared (NFS) area/drive.
    -conf to override ojspCompile.conf
    --retry         retry previously failed compilation attempts
    --flush         forces recompilation of all parent JSPs
    --quiet         do not provide an actively running progress meter
    --fast          instantly fail jsps that are possibly invalid
    example1: ojspCompile.pl compile -s 'jtf%' -p 20 retry
    example2: ojspCompile.pl compile -s 'jtflogin.jsp,jtfavald.jsp' flush
    example3: ojspCompile.pl compile fast --quiet
    If your JSP uses custom classes, then compiling jsp manually can fail if proper classpath is not set. Yes, even though if you have setup the classpath correctly in orion-application.xml, it will fail because this jsp compile utility does not read orion-application.xml classpath.
    So, the problem is to identify where to set the classpath so that above utility can pick it up. After several search and looking into code, I found following:
    By default, the jsp compiler script uses following configuration file
    $INST_TOP/appl/admin/ojspCompile.conf
    This conf file has a classpath field in it which is usually pointed to file
    $INST_TOP/appl/admin/ojspCompile.properties
    This property file lists the classpath used for JSP compilation.
    So if your classes are not listed in this file, your jsps will not compile by ojspCompile.
    Ofcourse, you can always set the "main_mode" to "recompile" in orion-web.xml, but that for production you do not want to change it and compile the JSP on file deployment.
    References:
    458338.1 How to Enable Automatic Compilation of JSP pages in R12 Environment
    433386.1 JSP Pages Hanging in R12 After Removing Cached Class Files in _pages
    783094.1 Compile jsp files at Application R12 at Windows

  • Classpath problem in exploded ear

    I'm having problems deploying an application in a new environment. We deploy Mercury.ear as an exploded ear under
    Windows in a single-server domain without any problem.
    I am tasked with setting up a WL cluster as the first step in our cluster certification/testing (under Linux/RedHat ASE 3.0).
    We are using WL 8.1. SP2. This should be a relatively trivial task, but I must be missing something obvious,
    because I've been banging my head on it the last couple of days.
    Basically, I have two WL managed servers, ClusterMember1 and ClusterMember2 and an admin server AdminServer created in a WL domain.
    All servers start normally (when no applications are deployed to the managed servers).
    I have appended our entire config.xml to the end of this post, but here is the relevant <Application> section:
    <Application Name="Mercury"
    Path="/root/bea/user_projects/domains/clusterdomain/applications/Mercury"
    StagingMode="nostage" TwoPhase="true">
    <EJBComponent Name="MercuryEJB.jar" Targets="ClusterMember1" URI="MercuryEJB.jar"/>
    <WebAppComponent Name="Apollo" Targets="ClusterMember1" URI="MercuryWeb.war"/>
    <ConnectorComponent Name="SpectraConnector.rar"
    Targets="ClusterMember1" URI="SpectraConnector.rar"/>
    </Application>
    I am only attempting to deploy to managed server ClusterMember1 at this time.
    When I attempt to start ClusterMember1:
    ./startManagedWebLogic.sh ClusterMember1 http://localhost:9001 &
    It starts up, syncs with the admin server, and then attempts to deploy the Mercury application. I get the following exception when it attempts to start the Mercury application:
    <Feb 1, 2006 10:07:55 AM CST> <Error> <HTTP> <BEA-101216> <Servlet: "context" failed to preload on startup in Web application: "Apollo".
    javax.servlet.ServletException: Error registering bean with name 'ApolloSessionManager' defined in URL [file:/root/bea/user_projects/domains/clusterdomain/applications/Mercury/mercuryresources.jar/resources/xml/springconfig/Service-DAO-config.xml]: Class that bean class [com.sg.sims.mercury.apolloweb.service.processor.ApolloSessionManager] depends on not found; nested exception is java.lang.NoClassDefFoundError: com/sg/sims/mercury/apolloweb/service/processor/ApolloSessionManager
         at weblogic.servlet.internal.ServletStubImpl.createServlet()Ljavax/servlet/Servlet;(ServletStubImpl.java:985)
    {...snipped...}
    Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'ApolloSessionManager' defined in URL [file:/root/bea/user_projects/domains/clusterdomain/applications/Mercury/mercuryresources.jar/resources/xml/springconfig/Service-DAO-config.xml]: Class that bean class [com.sg.sims.mercury.apolloweb.service.processor.ApolloSessionManager] depends on not found; nested exception is java.lang.NoClassDefFoundError: com/sg/sims/mercury/apolloweb/service/processor/ApolloSessionManager
         at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinition(Lorg/w3c/dom/Element;Ljava/lang/String;)Lorg/springframework/beans/factory/config/BeanDefinition;(DefaultXmlBeanDefinitionParser.java:366)
    {...snipped...}
    Caused by: java.lang.NoClassDefFoundError: com/sg/sims/mercury/apolloweb/service/processor/ApolloSessionManager
         at java.lang.Class.forName(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;(Unknown Source)
         at org.springframework.beans.factory.support.BeanDefinitionReaderUtils.createBeanDefinition(Ljava/lang/String;Ljava/lang/String;Lorg/springframework/beans/factory/config/ConstructorArgumentValues;Lorg/springframework/beans/MutablePropertyValues;Ljava/lang/ClassLoader;)Lorg/springframework/beans/factory/support/AbstractBeanDefinition;(BeanDefinitionReaderUtils.java:50)
    {...snipped...}
    Clearly, Spring can't find the ApolloSessionManager class (or one of its dependent classes, the error message is somewhat unclear in places).
    However, the ApolloSessionManager.class file is there, under the mercurybusiness.jar directory (with package structure).
    // from ${DOMAIN_HOME}/applications/Mercury:
    ls -la mercurybusiness.jar/com/sg/sims/mercury/apolloweb/service/processor/ApolloSessionManager
    -rw-r--r-- 1 root root 7162 Jan 31 17:20 mercurybusiness.jar/com/sg/sims/mercury/apolloweb/service/processor/ApolloSessionManager.class
    mercurybusiness.jar (in turn) is present in the MercuryEJB.jar MANIFEST.MF file:
    // ${DOMAIN_HOME}/applications/Mercury/MercuryEJB.jar/META-INF/MANIFEST.MF:
    Manifest-Version: 1.0
    Ant-Version: Apache Ant 1.6.1
    Created-By: 1.4.2_05-b04 (Sun Microsystems Inc.)
    Class-Path: mercurycommon.jar mercuryresources.jar mercurybusiness.jar mercuryserviceflow.jar mercuryutils.jar spectraconnector.rar {...snipped...}
    The same situation appears for the classes that ApolloSessonManager depends on: MercuryLogger (a log4j wrapper) and the HTTPClient.jar classes
    (e.g. Cookie, etc), except 3rd party jars are listed in the MANIFEST.MF of MercuryEJB.jar but are not exploded.
    There is no weblogic-application.xml file to override the default classloader hierarchy, so my understanding
    is that everything in the application should share a single classloader.
    So I am at a loss to understand why classes in MercuryWeb.war can not load classes in dependent jars of MercuryEJB.jar.
    As a note, if I add /root/bea/user_projects/domains/clusterdomain/applications/Mercury/mercurybusiness.jar to the CLASSPATH variable in startManagedWebLogic.sh,
    this error disappears of course, and it barfs on the next application class it can't find (in one of the other exploded jars that MercuryEJB.jar depends on.
    Can someone help point out what I may be missing?
    Chris Goodacre
    // config.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <Domain ConfigurationVersion="8.1.5.0" Name="clusterdomain">
    <Server Cluster="SIMS_TEST_CLUSTER_1" ListenAddress=""
    ListenPort="9001" Name="AdminServer" NativeIOEnabled="true"
    ReliableDeliveryPolicy="RMDefaultPolicy" ServerVersion="8.1.5.0">
    <SSL Enabled="false" HostnameVerificationIgnored="false"
    IdentityAndTrustLocations="KeyStores" Name="AdminServer"/>
    </Server>
    <WSReliableDeliveryPolicy DefaultRetryCount="10"
    DefaultTimeToLive="60000" Name="RMDefaultPolicy" Store="FileStore"/>
    <Security Name="clusterdomain"
    PasswordPolicy="wl_default_password_policy"
    Realm="wl_default_realm" RealmSetup="true"/>
    <EmbeddedLDAP
    CredentialEncrypted="{3DES}dMeE/vNpCcbjzOMZGfNeShv5VFZuQ=" Name="clusterdomain"/>
    <SecurityConfiguration
    CredentialEncrypted="{3DES}jFRG5NzABP8IAJa5M/PNNRCtZYaqkc2zUTYjlysL+md+TAgZw6IfgCjzzre4e7p5gyJEt+0UkPXNleN0QtW7Ef"
    Name="clusterdomain" RealmBootStrapVersion="1"/>
    <Realm FileRealm="wl_default_file_realm" Name="wl_default_realm"/>
    <FileRealm Name="wl_default_file_realm"/>
    <PasswordPolicy Name="wl_default_password_policy"/>
    <JMSConnectionFactory DefaultDeliveryMode="Non-Persistent"
    JNDIName="jms/ConnectionFactory" Name="ConnectionFactory" Targets="AdminServer"/>
    <JMSFileStore Directory="rmfilestore" Name="FileStore"/>
    <JMSServer Name="WSStoreForwardInternalJMSServerAdminServer"
    Store="FileStore" Targets="AdminServer">
    <JMSQueue CreationTime="1123128740234"
    JNDIName="jms.internal.queue.WSStoreForwardQueue"
    JNDINameReplicated="false" Name="WSInternaljms.internal.queue.WSStoreForwardQueueAdminServer"/>
    <JMSQueue CreationTime="1123128740390"
    JNDIName="jms.internal.queue.WSDupsEliminationHistoryQueue"
    JNDINameReplicated="false" Name="WSInternaljms.internal.queue.WSDupsEliminationHistoryQueueAdminServer"/>
    <JMSQueue CreationTime="1123128837453" JNDIName="jms/MenuQueue"
    Name="MenuQueue" StoreEnabled="false"/>
    <JMSQueue CreationTime="1123128864296"
    JNDIName="jms/MenuXMLQueue" Name="MenuXMLQueue" StoreEnabled="false"/>
    <JMSQueue CreationTime="1123128892343"
    JNDIName="jms/DataSyncQueue" Name="DataSyncQueue" StoreEnabled="false"/>
    <JMSQueue CreationTime="1123128915421"
    JNDIName="jms/LoginRefreshQueue" Name="LoginRefreshQueue" StoreEnabled="false"/>
    <JMSQueue CreationTime="1123128937046"
    JNDIName="jms/ProfileQueue" Name="ProfileQueue" StoreEnabled="false"/>
    <JMSQueue CreationTime="1123128957125"
    JNDIName="jms/ReportsQueue" Name="ReportsQueue" StoreEnabled="false"/>
    </JMSServer>
    <Cluster Name="SIMS_TEST_CLUSTER_1"/>
    <Server Cluster="SIMS_TEST_CLUSTER_1" ExpectedToRun="false"
    ListenPort="9999" Name="ClusterMember1" ServerVersion="8.1.5.0">
    <ServerDebug Name="ClusterMember1"/>
    <SSL IdentityAndTrustLocations="KeyStores" Name="ClusterMember1"/>
    <KernelDebug Name="ClusterMember1"/>
    <Log Name="ClusterMember1"/>
    <ServerStart Name="ClusterMember1"
    PasswordEncrypted="{3DES}TC7nfOvKF0xwJB/f+tyYwQ==" Username="toolbox"/>
    <WebServer Name="ClusterMember1"/>
    <COM Name="ClusterMember1"/>
    <IIOP Name="ClusterMember1"/>
    <JTAMigratableTarget Name="ClusterMember1" UserPreferredServer="ClusterMember1"/>
    <JTARecoveryService Name="ClusterMember1"/>
    </Server>
    <MigratableTarget Cluster="SIMS_TEST_CLUSTER_1"
    Name="ClusterMember1 (migratable)"
    Notes="This is a system generated default migratable target for a server. Do not delete manually." UserPreferredServer="ClusterMember1"/>
    <Server Cluster="SIMS_TEST_CLUSTER_1" ExpectedToRun="false"
    ListenPort="9998" Name="ClusterMember2" ServerVersion="8.1.5.0">
    <ServerDebug Name="ClusterMember2"/>
    <SSL IdentityAndTrustLocations="KeyStores" Name="ClusterMember2"/>
    <KernelDebug Name="ClusterMember2"/>
    <Log Name="ClusterMember2"/>
    <ServerStart Name="ClusterMember2"
    PasswordEncrypted="{3DES}TC7nfOvKF0xwJB/f+tyYwQ==" Username="toolbox"/>
    <WebServer Name="ClusterMember2"/>
    <COM Name="ClusterMember2"/>
    <IIOP Name="ClusterMember2"/>
    <JTAMigratableTarget Name="ClusterMember2" UserPreferredServer="ClusterMember2"/>
    <JTARecoveryService Name="ClusterMember2"/>
    </Server>
    <MigratableTarget Cluster="SIMS_TEST_CLUSTER_1"
    Name="ClusterMember2 (migratable)"
    Notes="This is a system generated default migratable target for a server. Do not delete manually." UserPreferredServer="ClusterMember2"/>
    <JDBCConnectionPool DriverName="com.sybase.jdbc2.jdbc.SybDriver"
    Name="MercuryJDBCConnPool"
    PasswordEncrypted="{3DES}Enwr7V6DdUk="
    Properties="user=dbuser;url=jdbc:sybase:Tds:10.15.3.66:4100/ENT_60_DEV;networkProtocol=Tds;portNumber=4100;userName=dbuser;databaseName=ENT_60_DEV;serverName=10.15.3.66"
    Targets="SIMS_TEST_CLUSTER_1" TestTableName="SQL SELECT 1" URL="jdbc:sybase:Tds:10.15.3.66:4100/ENT_60_DEV"/>
    <JDBCDataSource JNDIName="jdbc/MercuryDS" Name="MercuryDS"
    PoolName="MercuryJDBCConnPool" Targets="SIMS_TEST_CLUSTER_1"/>
    <MigratableTarget Cluster="SIMS_TEST_CLUSTER_1"
    Name="AdminServer (migratable)"
    Notes="This is a system generated default migratable target for a server. Do not delete manually." UserPreferredServer="AdminServer"/>
    <Application Name="Mercury"
    Path="/root/bea/user_projects/domains/clusterdomain/applications/Mercury"
    StagingMode="nostage" TwoPhase="true">
    <EJBComponent Name="MercuryEJB.jar" Targets="ClusterMember1" URI="MercuryEJB.jar"/>
    <WebAppComponent Name="Apollo" Targets="ClusterMember1" URI="MercuryWeb.war"/>
    <ConnectorComponent Name="SpectraConnector.rar"
    Targets="ClusterMember1" URI="SpectraConnector.rar"/>
    </Application>
    </Domain>
    ////////////////////////////////////////////////////////////

    Sorry, I don't have the response to your question.
    But I'd like to know how youmake your servlet and your applet communicate.
    I'm building a web site using both applets and servlet. And I nned to make them communicate. I'm trying to use RMI but I get many problems.
    Can I know Which solution you have chosen for applet-servlet communication ?
    Thank's.

Maybe you are looking for

  • G4 Mac Mini with Toshiba CRT HDTV

    Hello all. I'm trying to hook up my Mac Mini (original G4 model) to my Toshiba HDTV (30HF85) using a Dvi to HDMI cable (DVI-D; a basic cable purchased from amazon). Unfortunately, I'm not getting any picture at all - just a black screen. I'm sure tha

  • PL/PDF - Procedure template Example

    Hellow All, I have Oracle XE 10g with Oracle Apex and I installed PL/PDF in the same. I tried to execute the template procedure given in the installation guide. But it prints template only for 1st page.How to print template for others pages. - create

  • SP-Status of Software components not visible in Maintenance Optimizer

    Hi 1.     I have created a Server, Database, Systems for an Nw2004s Enterprise Portal server. That is the main relevant component is Enterprise portal 2.     Then I assign the system to the logical component  as a production system to the SAP Netweav

  • Downloads aren't working

    My email notifications say that I have tv shows to download, however, when I look under purchases or downloads nothing is there.

  • Can i transfer youtube music i have downloaded on my iphone  to my ipod? or computer?

    Can i transer youtube music from my iphone to my ipod or my computer ? And how do i do it Thank You