Post jDev 903 cleanup: Classpath and Path.

Having installed the new [complete set] 9.0.3 and having decided NOT use 9.0.2 or other developer suite tools, it's time to clean up my path and classpath settings.
Please help me sort it all out. Thanks.
Per instructions I did not install the new 9.0.3 into any existing oracle_home. The home_dir for the 9.0.2 and complete suite is: E:\Programs\OraDevSuite.
My Classpath has three entries: (formatted for easy reading on the forum.)
CLASSPATH=
E:\Programs\OraDevSuite\jlib\bigraphbean.jar;
E:\Programs\OraDevSuite\jlib\LW_PfjBean.jar;
E:\Programs\OraDevSuite\jlib\bigraphbean-nls.zip
Questions: 1. Can (Should) I throw these out? 2. Do I need anything else in the classpath? (The java command line uses the -classpath parameter anyhow.)
Here are the PATH settings (in the order maintained by the os). This really needs to be cleaned up. I have added my question on each line. Sounds like alot of questions but many are the same type.
Path=
E:\Programs\OraDevSuite\bin; (Old suite: Good-bye?)
E:\Programs\OraDevSuite\jdk\jre\bin; (Old suite: Good-bye?)
E:\Programs\OraDevSuite\jdk\jre\bin\classic; (Old suite: Good-bye?)
E:\Programs\OraDevSuite\jdk\jre\bin\classic; (Old suite: Good-bye?)
E:\Programs\OraDevSuite\jlib; (Old suite: Good-bye?)
E:\Programs\OraDevSuite\bin; (Old suite: Good-bye?)
E:\ORACLE\bin; ( How do I verify if this is needed by 9iDB or OEM?)
C:\Program Files\Oracle\jre\1.3.1\bin; ( Since 9.0.3 comes with its own can I REMOVE this FROM THE DISK? )
C:\Program Files\Oracle\jre\1.1.8\bin; ( Can I remove this from the disk? )
C:\WINDOWS\system32;
C:\WINDOWS;
C:\My Programs\Java\sdk1_3\bin; ( Can I remove this from my disk? )
**********THANK YOU!**************
-Nat

If you downloaded the full version of 9.0.3 Dev Preview (the 160MB sized-one), then it's completely self-contained. Just unzip it and go. Anything else can be removed.
If you downloaded the "base" version, then you'll need to keep a JDK 1.3 around and edit your .\jdev\bin\jdev.conf file to SetJavaHome to point at your JDK home location.

Similar Messages

  • Problems in Classpath and Path 's variables setting in Windows XP

    Here is my drive structure in my PC:
    1. hard drive (primary slave, Partition: C and E where E boot Windows XP
    2. Hard drive 2 (Primary Master), Drive letter: D
    Although my default boot directory is E (for strange reason, i like to keep
    that way for now), I installed other programs in C and D drive dues drive
    space factors.
    So My java sdk1.4.2_02 has been installed in C:\Java_home directory, the
    following is my Classpath and Path values:
    (CLASSPATH Variables)
    Classpath=.;
    c:\java_home\j2sdk1.4.2_02;
    e:\Program Files\java\j2re1.4.2_02;c:\java_home; c:\java_home\j2sdk1.4.2_01
    \lib;e:\Program Files\java; e:\Program Files\java web start;c:\java_home\j2
    sdk1.4.2_02\jre\lib;c:\java_home\java\petstore1.3.2\src\lib\jst1;
    (PATH variables)
    c:\java_home\j2sdk1.4.2_01\bin;C:\java_home;e:\Pr
    ogram Files\java;c:\java_home\jdk1.4.2_2\bin;E:\Program Files\Oracle\jre\1.
    1.8\bin;E:\WINDOWS\system32;E:\WINDOWS;E:\WINDOWS\system32\WBEM;E:\
    Program Files\Support Tools\;
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    Path=D:\oracle\ora92\bin;E:\Program Files\Oracle\jre\1.3.1\bin;
    My Fruit txt and Fruit.java file is located in my c:\java_home folder
    when I try to compile the my file as <c:\java_home\javadoc Fruit.java), it
    gives me the error message<'javac' is not recognized as an internal or
    external command,operable program or batch file.>
    however, I can compile the Fruit file from C:\java_home\jdk1.4.2_2
    \bin\javadoc Fruit.java; with out any problem of course I have to copy the
    Fruit.java file at the C:\java_home\jdk1.4.2_2\bin\javadoc Fruit.java
    folder.
    I am requesting u please help or advise me to correct my mistakes
    Ely
    [email protected]

    I must confess that I am totally unable to understand what your PATH is set to. The error that you see,
    <'javac' is not recognized as an internal or external command,operable program or batch file.>
    is due to a missing or incorrectly set PATH. It is used by Windows to find executable file (like javac.exe) that you have added to the computer. Item #5 on this page gives you instructions on how to set it: http://java.sun.com/j2se/1.4.2/install-windows.html
    As for the setting of the CLASSPATH, you seem to have a number of different versions of java (1.4.2_02, 1.4.2_01, 1.4.2_2, and 1.1.8) and I doubt that these are all valid. You are also using an unusual syntax C:\java_home\jdk1.4.2_2\bin\javadoc Fruit.java and I wonder if that is really C:\java_home\jdk1.4.2_2\bin\javadoc\Fruit.java? I think the best action is to point you to Sun's instructions and information about setting and using the CLASSPATH.
    The CLASSPATH is a set of pointers that is used by Java to find the files that YOU (not Java) create and want compiled and/or run.
    Setting the Classpath:
    http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/classpath.html
    [NOTE: always start your classpath with ".;" which means the current directory. See my classpath, below]
    How Classes are Found:
    http://java.sun.com/j2se/1.4.2/docs/tooldocs/findingclasses.html
    Examples:
    This is my path
    PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\BATCH;C:\J2SDK1.4.2_01\BIN;C:\PROGRA~1\UTILIT~1;C:\PROGRA~1\WIN98RK
    This is my classpath
    CLASSPATH=.;C:\mjava;C:\mnrx;C:\NetRexx\lib\NetRexxC.jar;C:\j2sdk1.4.2_01\lib\tools.jar;C:\NetRexx\NrxRedBk

  • Setting Classpath and Path on Windows ME

    Hi..How do I set up the classpath and path on windows ME. Do I use DOS or run the autoexec.bat from windows directly. I have jdk1.3.1 abd my classpath and path are:
    set classpath="C:\jdk1.3.1\bin"
    set PATH=C:\windows\xxxx\;C:\jdk1.3.1\bin
    I sometimes can't compile my programs from other directories other than jdk1.3.1\bin. Why? Is there a way I can compile my program just from the C:\ directory like:
    C:\javac myprogram.java
    C:\java myprogram
    Thanks.

    If you put . in the beginning of your classpath, java always searches the folder you are currently in.
    Now to set the classpath try clicking from the startmenu:
    settings/control panel/system. Then click advanced tab and then the Enviroment variables. I'm on win2000 but I think it should be the same on ME.
    Make sure it starts with .;C:\jdk1.3.1\bin;....
    I think installing jdk puts in the essentials, but if you have certain folders you store your classes in you can stick those in there as well.
    If you hava more questions about this, I suggest searching these forums on Keywords like : "set CLASSPATH PATH". Then you'll find a bunch of threads solving this problem.
    Sjur

  • Setting CLASSPATH and PATH properly how?

    I have set PATH=c:\jdk_install_directory\bin which works fine. However, for example when I create an app or small program for example, simply to print out a line on the screen, it works when I compile in NetBeans. However, if I copy the java file to another directory, my C: root for example, I can compile it, but when I run the class file it gives me errors saying it can't find certain classes. So, I figure its something with the classpath variable that I have to fix. How can I do this properly for both J2SE and J2EE using default install directories for each.
    Thanks so much!!

    Your PATH is exactly what it should be.
    The CLASSPATH answer depends on where you're compiling and running.
    If you're doing things on the command line, I think the right answer is to use the -classpath option on javac.exe and java.exe.
    If you're using NetBeans or another IDE, the right answer is to add JARs and paths according to the idiom demanded by the IDE. Each one is different, and all the ones I know of ignore the system CLASSPATH environment variable. I don't have one set on my machine.

  • Classpath and path of jdkjdk-1_5_0_09

    hi
    i have installed c:\progrmaefiles\java\ jdk-1_5_0_09 on my pc but i m not able set systemenvironment variable like PATH and CLASSPATH .i tried lot of option but it does not work so plz anyone help me out.i m using windows Xp operating system. when i m running any java programe i m getting error " Exception in thread "main" java.lang.NoClass.DefFoundError.plz hep me out.
    thx manu

    That's CLASSPATH, not PATH.
    Without seeing your exact directory structure and the exact command you're runing, nobody can give you specific advice. Here are some explanations of how it works, though.
    Javapedia: Classpath
    How Classes are Found
    Setting the class path (Windows)
    Setting the class path (Solaris/Linux)
    Understanding the Java ClassLoader
    java -cp .;<any other directories or jars> YourClassNameYou get a NoClassDefFoundError message because the JVM (Java Virtual Machine) can't find your class. The way to remedy this is to ensure that your class is included in the classpath. The example assumes that you are in the same directory as the class you're trying to run.
    javac -classpath .;<any additional jar files or directories> YourClassName.javaYou get a "cannot resolve symbol" message because the compiler can't find your class. The way to remedy this is to ensure that your class is included in the classpath. The example assumes that you are in the same directory as the class you're trying to run.

  • How to set the classpath and path from the jsp to call  java class function

    Hi Exprets,
    I have a requirement to call a java class function which returns a hashmap object from the jsp. The java class in present in one jar file and that jar file is location somewhere in unix path. So the requirement is to set the classpath for that jar file and then create the object of the java class and then call the function.
    If any one know how to achieve it, please reply as soon as possible.
    thanks in advance,
    swapna soni.

    It is never advisable to store large data sets in the session. But it will depend on a lot of factors:
    1. How costly is the query retrieving the data from the database?
    If it's a complex query with lots of joins and stuff, then it will be better to store it in the session as processing the query each time will take a lot of time and will decrease performance. On the other hand if the query is simple then it's advisable not to store it in the session, and fetch it each time.
    2. Are there chances for the data to become stale within a session?
    In this case storing the data is session will mean holding the stale data till the user session lasts which is not right.
    3. How many data sets does the session already holds?
    If there are large no. of data sets already present in the session, then it's strictly not advisable to store the data in the session.
    4. Does the server employ some kind of caching mechanism?
    Using session cache can definitely improve performance.
    You will have to figure out, what is the best way analyzing all the factors and which would be best in the situation. As per my knowledge, session is the only place where session specific data can be stored.
    Also, another thing, if the data set retrieved is some kind of data to be displayed in reports, then it would be better to use a pagination query, which will retrieve only the specific no. of rows at a time. A navigation provided in the UI will retrieve the next/previous data set to display.
    Thanks,
    Shakti

  • Problem in setting CLASSPATH and PATH

    I am a newbie in java. I downloaded and run the "j2eesdk-1_4_01-windows.exe" from Internet. By default, it creates a new user variable, which is "PATH = C:\Sun\AppServer\bin". My problem is when I try to compile a java, I get an error message, which is
    'javac' is not recognized as an internal or external command,
    operable program or batch file.
    I create a new user variable which is "CLASSPATH = .;C:\Sun\AppServer\jdk\bin"
    and add new variable into my system variable, which is
    "PATH = %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Sun\AppServer\jdk\lib"
    However, it doesn't work and give the same error message. Any idea about the solution?
    Thanks in advanced.

    Your PATH variable needs to include the path to the J2SE SDK bin directory. It looks like you added it to your CLASSPATH instead

  • Classpath and Path in Win2k Server

    Hi
    My OS is windows 2000 Server
    I installed Jdk 1.3.x Version.
    Do I need to set path and class path to my system to run sql package files...
    What shalll i include in my path and in class path.
    If any one having idea, please help me.
    Thanks in advance
    Yours
    Rajesh

    Dear dewangs,
    Thankyou VeryMuch
    Do I have to keep tools.jar file in my path or else in my class path ?
    Thanks in advance
    Yours
    Rajesh

  • Question on classpath  and path

    path=.;D:\j2sdk1.4.2_04\bin;D:\j2sdk1.4.2_04\tomcat4.1\bin
    classpath=.;D:\j2sdk1.4.2_04\bin;D:\j2sdk1.4.2_04\tomcat4.1\common\lib\servlet.jar
    it work well in J2SE but doesn't work well in servlet
    what's wrong?

    I am sorry but **
    D:\javatest>javac -classpath D:\j2sdk1.4.2_04\Tomcat4.1\common\lib\servlet.jar h
    ello.java
    hello.java:6: package javax.servlet.http does not exist
    import javax.servlet.http.*;
    ^
    hello.java:7: package javax.servlet does not exist
    import javax.servlet.*;
    ^
    hello.java:14: cannot resolve symbol
    symbol  : class HttpServlet
    location: class com.seriousJavaProject.servlets.Hello
    public class Hello  extends HttpServlet {
                                ^
    hello.java:16: cannot resolve symbol
    symbol  : class HttpServletRequest
    location: class com.seriousJavaProject.servlets.Hello
    public void service(HttpServletRequest request,HttpServletResponse response) th
    rows IOException ,ServletException
                         ^
    hello.java:16: cannot resolve symbol
    symbol  : class HttpServletResponse
    location: class com.seriousJavaProject.servlets.Hello
    public void service(HttpServletRequest request,HttpServletResponse response) th
    rows IOException ,ServletException
                                                    ^
    hello.java:16: cannot resolve symbol
    symbol  : class ServletException
    location: class com.seriousJavaProject.servlets.Hello
    public void service(HttpServletRequest request,HttpServletResponse response) th
    rows IOException ,ServletException
                      ^
    6 errors

  • Unable to start jdev 903 with redhat 7.3

    Hi,
    I installed jdev 902 on a redhat 7.3 box. It worked fine except i was unable to see/select the Property palette within the UI editor.
    So i tried to install jdev 903 to see if it worked better. I installed jdk1.3.0_02 and change the jdev.conf to point to this jdk.
    Then i typed:
    /opt/oracle/jdev903/jdev/bin/jdev
    ... and only got that ==>
    Oracle9i JDeveloper
    Copyright 1997, 2002 Oracle Corporation. All Rights Reserved
    <==
    Nothing more. No window, no startup sreen.
    I tried
    /opt/oracle/jdev903/jdev/bin/jdev -verbose
    and got:==>
    Oracle9i JDeveloper
    Copyright 1997, 2002 Oracle Corporation. All Rights Reserved
    Reading configuration from: /opt/oracle/jdev903/jdev/bin/jdev.conf
    Running under Linux, Setting stack size to 2048.
    Running Command: /usr/java/jdk1.3.0_02/bin/java -Xverify:none -Xmx512M -Dorg.omg.CORBA.ORBClass=com.inprise.vbroker.orb.ORB -Dorg.omg.CORBA.ORBSingletonClass=com.inprise.vbroker.orb.ORB -Dice.browser.forcegc=false -Xbootclasspath/p:../lib/lwawt.jar -Dreserved_filenames=con,aux,prn,lpt1,lpt2,lpt3,lpt4,lpt5,lpt6,lpt7,lpt8,lpt9,com1,com2,com3,com4,com5,com6,com7,com8,com9,conin$,conout$ -Djbo.debugoutput=silent -Djbo.showdebugwarningbanner=false -Dproduct.version=9.0.3.1035 -XX:MaxPermSize=64M -Djava.library.path=/bin:/usr/bin:/usr/bin/X11:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/home/jboss/bin:/usr/local/java/j2sdk1.4.0_01/bin/:/home/jboss/local/ant/bin:/home/jboss/bin:/usr/local/java/j2sdk1.4.0_01/bin/:/home/jboss/local/ant/bin:../lib/ext -Dide.user.dir=/home/jboss/jdevhome -classpath ../lib/jdev.jar:../lib/xmleditor.jar:../lib/xmladdin.jar:../lib/ojc.jar:../lib/ant.jar:../../lib/xmlparserv2.jar:../lib/jgl3.1.0.jar:../lib/jdev-rt.jar:../../jlib/jewt4.jar:../../jlib/share.jar:../../jlib/help4.jar:../../jlib/inspect4.jar:../../vbroker4/lib/vbjorb.jar:../../javavm/lib/aurora.zip:../../jdbc/lib/classes12.jar:../../jdbc/lib/nls_charset12.jar:../../j2ee/home/lib/ojsp.jar:../../j2ee/home/jsp/lib/taglib/ojsputil.jar:../../jsp/lib/ojspicons.jar:../../jlib/oracle_ice5.jar:../../sqlj/lib/translator.jar:../../sqlj/lib/runtime12.jar:../../j2ee/home/lib/servlet.jar:../../lib/mts.jar:../../jlib/regexp.jar:../../soap/lib/soap.jar:../../webservices/lib/wsdl.jar:../../j2ee/home/lib/http_client.jar:../../jlib/jssl-1_2.jar:../../j2ee/home/oc4j.jar:../../lib/xmlcomp.jar:../../ds/uddi/lib/uddiclient.jar:../lib/bc4jdt.jar:../../BC4J/lib/bc4jmt.jar:../../BC4J/lib/bc4jmtejb.jar:../../BC4J/jlib/bc4jmtvb.jar:../../BC4J/jlib/bc4jtester.jar:../../BC4J/lib/bc4jct.jar:../../BC4J/lib/bc4jdomorcl.jar:../../BC4J/lib/collections.jar:../../BC4J/lib/bc4jhtml.jar:../../BC4J/jlib/bc4jui.jar:../../BC4J/jlib/dacf.zip:../infobus/lib/infobus.jar:../../jlib/LW_PfjBean.jar:../../BC4J/lib/datatags.jar:../../BC4J/lib/bc4juixtags.jar:../../jlib/uix2.jar:../../jlib/uix2tags.jar:../../jakarta-struts/lib/struts.jar:../../BC4J/jlib/bc4jstruts.jar:../../jlib/bigraphbean.jar:../../jlib/bigraphbean-nls.zip:../lib/uixaddin.jar:../lib/batik-awt-util.jar:../lib/batik-dom.jar:../lib/batik-ext.jar:../lib/batik-svggen.jar:../lib/batik-transcoder.jar:../lib/batik-util.jar:../lib/batik-xml.jar:../lib/jr_cws.jar:../lib/jr_diff.jar:../lib/jr_vhv.jar:../lib/jr_jol.jar:../lib/jr_cmd.jar:../lib/jr_file.jar:../lib/modelers.jar:../lib/ebiadapters.jar:../lib/refactoring.jar:../lib/jdscm.jar:../lib/jdebi.jar:../lib/jdukshare.jar:/usr/java/jdk1.3.0_02/lib/tools.jar:/usr/java/jdk1.3.0_02/lib/dt.jar oracle.ideimpl.IdeMain
    <==
    Here again nothing more.
    Any idea?

    Hi,
    Well see and thank you for the answer: Java 1.3.0_02 is not working in my system.
    Other versions of java work fine but not this one. But the way i made a mistake: the system where i installed jdev is running with RedHat 7.2.
    I have reinstalled java 1.3.0_02 with no more success.Could it be a problem between rh 7.2 and this version of java? In this case is it possible to use jdev with another version of java. I tried jdev 902 with java 1.4 and remember running into display problems.
    Thanks
    Oscar

  • WebLogic 11g EAR EJB Classpath and class loaders

    All,
    I have been having issues migrating Spring based EJB applications from OC4J to WebLogic 11g (10.3.1). I have been in communication with Oracle who has suggested a work around however I am keen to see if anyone else can suggest a solution.
    The application is dependant on stateless session EJB beans that communicate with a Spring managed service tier to perform the business logic and database access. PitchFork is used to inject the Spring managers into the EJB’s using the spring-ejb-jar.xml configuration file. Note originally I was using the SpringBeanAutowiringInterceptor however I could not get this to work. See WebLogic 11g and Spring beens injected into EJB for details.
    When the application is deployed packaging all the dependant jars within the APP-INF\lib folder I get a verity of errors from the following InvalidClassException, NoSuchMethodError, AbstractMethodError and IllegalArgumentException. I am using Spring 2.5.3 to match the supported WebLogic version. Note within the EAR application.xml the library-directory is set to APP-INF/lib. The issue appears to be Spring, PitchFork, commons-logging and aspectj libraries are being loaded form WebLogic and do not have visibility on jars within the application or have been modified when bundled for WebLogic. An example of this is the PitchFork jar within WebLogic has been changed excluding the spi package resulting in java.lang.ClassNotFoundException: org.springframework.jee.spi.PitchforkUtilsImpl errors.
    Moving the jars to the domain library path does not resolve any of the issues. I have been unable to successfully deploy the application picking up the application jars using the prefer-application-packages configuration.
    Oracle has advised me to deploy the libraries into the WebLogic system classpath by modifying the startWebLogic command to load the libraries into the classpath. I am concerned that modifying the system classpath will result in an unstable WebLogic server as I will be replacing modified jar files packages with WebLogic (such as PitchFork). This will also limit the applications that can be deployed within the server as each application must use the same libraries and versions (as the application ibraries are leing ignored).
    Has anyone else hit this issue and corrected it? Can anyone think of an alternative solution?
    Regards
    Neil

    Hi,
    I am in the process of updating the tracking bug# 331569 with copies of the eclipse EAR/WAR projects and the EAR for these scenarios. Here are some details on how I got past the 2nd CCE on the org.eclipse.persistence.jpa.PersistenceProvider class (not the javax one)
    https://bugs.eclipse.org/bugs/show_bug.cgi?id=331569
    Essentially an SE persistence unit running both JPA 2.0 api and the 2.0 XSD schema work fine. I will next retest the EE case with variations of the 3 types of injection on the SSB or Servlet.
    Update: There are 3 (possibly 4) issues here (all of these may become obsolete when the next WLS version ships)Initially I got the same 2.0 schema error and the ClassCastException on org.eclipse.persistence.jpa.PersistenceProvider
    It turns out that my import of the 2 eclipse projects from my bug # 296271 for WebLogic 10.3.2.0 lost their facets(specifically the dynamic web facet) because I associated them with a different WebLogic 10.3.3.0. - this caused the CCE I was experiencing like Sri.
    Anyways, after creating an EAR/Web project combination from scratch in eclipse associated with the 10.3.3.0 instance - I predeployed/deployed/ran fine - even with the 2.0 schema - in SE bootstrap mode (no EE yet).
    Reproduction Procedure:
    redoing project from scratch as I noticed that the war was not at the root of the ear - it was a jar in the app-inf/lib dir - my imported eclipse project was not referenced correctly as a web module facet- create empty EAR and WAR project with references
    - download and open my EAR and WAR project code from bug # 296271
    https://bugs.eclipse.org/bugs/show_bug.cgi?id=296271
    - do essentially all the steps in the page below (I paraphrase for re-verification)
    http://wiki.eclipse.org/EclipseLink/Development/JPA_2.0/weblogic#DI_1.1:_Alternative_3:_Application_Level_Shared_Library_-InUse
    - copy applicationService, entity and FrontController servlet code into new projects
    - create persistence.xml and MANIFEST.MF manifest in src\META-INF
    - update manifest
    Class-Path: APP-INF/lib/eclipselink.jar
    APP-INF/lib/javax.persistence_2.0.0.v200911041116.jar
    - copy both javax.persistence 2.0 and eclipselink 2.x jars to APP-INF/lib
    - change ordering of WebLogic library modules classpath reference (javax.persistence 1.0) to ear reference (2.0 version)
    - update web.xml with servlet tags
    - update weblogic.xml with new context root
    - make the persistence unit name the same in persistence.xml and ApplicationManagedService
    - update weblogic-application.xml with prefer-application-packages overrides
    <wls:prefer-application-packages>
    <wls:package-name>javax.persistence.*</wls:package-name>
    <wls:package-name>org.eclipse.persistence.*</wls:package-name>
    </wls:prefer-application-packages>
    - enable server redirect logging
    <!-- new for 10.3.3.0 http://wiki.eclipse.org/EclipseLink/Examples/JPA/Logging#Server_Logging -->
    <property name="eclipselink.logging.logger" value="DefaultLogger"/>
    - start WebLogic 10.3.3.0
    - deploy (run on) server from eclipse or export ear to auto deploy directory
    1) JPA 2.0 XSD usage on 10.3.3.0
    - I reproduced this issue with a bad EAR
    - was able to use the 2.0 schema within the WAR-only application managed EAR
    persistence.xml<persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
    <!-- persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"-->
    <persistence-unit name="example2" transaction-type="JTA">
    <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
    <jta-data-source>localJTA</jta-data-source>
    <class>org.eclipse.persistence.example.business.Cell</class>
    <shared-cache-mode>NONE</shared-cache-mode>
    <properties>
    <property name="eclipselink.target-server" value="WebLogic_10"/>
    <property name="eclipselink.logging.level" value="FINEST"/>
    <property name="eclipselink.target-database" value="Derby"/>
    <!-- new for 10.3.3.0 http://wiki.eclipse.org/EclipseLink/Examples/JPA/Logging#Server_Logging -->
    <property name="eclipselink.logging.logger" value="DefaultLogger"/>
    <!-- property name="javax.persistence.jdbc.driver" value="org.apache.derby.jdbc.ClientDriver"/>
    <property name="javax.persistence.jdbc.url" value="jdbc:derby://127.0.0.1:1527/dataparallel;create=true"/>
    <property name="javax.persistence.jdbc.user" value="APP"/>
    <property name="javax.persistence.jdbc.password" value="APP"/-->
    <!-- turn off DDL generation after the model is stable -->
    <!-- property name="eclipselink.ddl-generation" value="drop-and-create-tables"/>
    <property name="eclipselink.ddl-generation.output-mode" value="both"/-->
    </properties>
    </persistence-unit>
    </persistence>
    2) CCE on JPA provider implementation class
    Error instantiating the Persistence Provider class org.eclipse.persistence.jpa.PersistenceProvider of the PersistenceUnit example2: java.lang.ClassCastException: org.eclipse.persistence.jpa.PersistenceProvider
    - I reproduced and fixed this one (was Eclipse project facet issue) - EAR was wrong
    - was able to run JPA 2.0 code fine on an SE PU (predeploy/deploy together)
    - EE injection should not work but I will post an example EAR anyway
    log[EL Example]: enterprise: JPA 2.0 Metamodel: MetamodelImpl@56287508 [ 3 Types: , 1 ManagedTypes: , 1 EntityTypes: , 0 MappedSuperclassTypes: , 0 EmbeddableTypes: ]
    3) CCE on JPA spec interface class
    - I could not reproduce this one
    Re: WebLogic 11g EAR EJB Classpath and class loaders
    Error processing persistence unit PT of module pt: Error instantiating the Persistence Provider class org.eclipse.persistence.jpa.PersistenceProvider of the PersistenceUnit PT: java.lang.ClassCastException: org.eclipse.persistence.jpa.PersistenceProvider cannot be cast to javax.persistence.spi.PersistenceProvider
    4) CCE on fallback Kodo JPA provider (if an invalid say 2.1 JPA XSD schema is referenced)
    java.lang.ClassCastException: kodo.persistence.PersistenceProviderImpl
    at javax.persistence.Persistence.findAllProviders(Persistence.java:186)
    java.lang.NoSuchMethodError: javax/persistence/EntityManager.getMetamodel()Ljavax/persistence/metamodel/Metamodel;
    - reproduced by using the 1.0 javax.persistence jar (but named as the 2.0 one in APP-INF/lib)
    - fixed by using either the 1.0 or 2.0 JPA XSD schema and using the correct 2.0 spec jar
    thank you
    /michael

  • Classpath and Tomcat 4.0

    I need to add a jar to the classpath, and I don't know how to do that....I'm new to all this, so please be very detailed in guiding me.
    I use Tomcat 4.0 on win2000.

    To add a jar file to the classpath follow the following instructions
    1. Windows system:
    a. Go to Control Panel - System - Select the Advanced Tab.
    b. Click on the Enviroment variables Button. This will throw up a window with a lot of predefined variables. The classpath varible must be one among these. If it is there select it and press edit other wise select add.
    c. To add the jar file place a ";" at the end of the previously stored value and enter the full path to the jar file like this c:\dir1\dir2\Jarfile.jar
    Alternately for the windows system you can add the following line to the autoexec.bat file in your c:\ drive or any .bat file which is to be run before your application
    set classpath=c:\dir1\dir2\Jarfile.jar;%CLASSPATH%
    2. For Unix System:
    a. If you are using C shell look for the .cshrc file or .cshrc.user file to add the jar file to the classpath, similarly if it is k shell look for .kshrc or .kshrc.user file to add the path . Note that the entries in Unix are seperated by ":"
    Keep me posted
    Good Luck!
    Eshwar Rao
    Developer Technical Support
    Sun microsystems inc
    http://www.sun.com/developers/support

  • JDev 903 doesn't AQ with DB 9.2.0.1.0?

    I'm trying to use JMS in OC4J. I've created a simple bean that will post a message when a method is called. This code worked correctly when using JDev 9.0.2.822, but when I started with Jdev 9.0.3.1035, it gives me this error:
    oracle.jms.AQjmsException: ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'AQ$_JMS_ENQUEUE_TEXT_MESSAGE'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    Both OC4J instances are set up to talk to the same back-end DB for message storage.
    Any idea why this is happening and how to make it (Jdev 903) work?

    * I had a similar problem and had to apply a patch to the database. I got the following from an iTar.
    Please apply one off patch 2513629. This patch can be downloaded via Metalink. Search under Patch 2513629HTH.

  • I want to *use* very long file and path names!

    This is really a plea to Microsoft...
    There are several threads about copying or deleting files where the path and/or file name is too long.
    Most have explanations of why this problem occurs.  (depending on Windows version and application, the total length [fully qualified file name; i.e. C:\this-dir\that-dir\somefile.xyz] is limited to a maximum of 260 or fewer characters).  This limit
    But I *WANT* to be able to use very long file names and paths!
    I can understand Microsoft keeping this limit - even while allowing UNICODE paths and file names up to 32k characters - because many existing tools will be unable to handle the longer names.  This would probably yield a lot of questions/flames about
    them "breaking the software I've used for years."
    But it would be possible to have a system setting to optionally allow the long names.  Since I'd have to manually set it, I'd know I'm potentially breaking existing software.
    In my case, I'm backing up various file directories where some files are very long.  With the server-side additional paths (e.g., client-name\project-name\backup-date\...") I occasionally hit files that can't be copied.  Renaming is not suitable;
    sometimes names have to match other file names.
    I can zip them, create iso files, use a backup program that creates a blob, put them in a source-control system, etc - but I really don't *want* to do that; it's very convenient to have a direct copy of the directories.  Each of these 'solutions' either
    requires extra work (which could be scripted, so ok...) or doesn't work with the work-flow for some reason.
    Microsoft, *please* fix this in Windows 8!  (if not before...)   This limit has existed for far too long!
    And readers - please don't just repeat what's in the other threads (rename/use subst/map directory/etc) or flame without useful information.  Thanks!

    Hi,
    I would submit your opinion to our Product Team. If you have another feedback, please feel free and let me know. Or you could follow TekDozer’s advice to submit
    by yourself.
    Thank you for your understanding and cooperation.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”

  • Programmatically change filename and path for PDFCreator

    Hello,
    I know that creating PDFs is a common question on the forum but I've yet to see someone with the same problem that I am encountering.  I'm following the example at http://decibel.ni.com/content/docs/DOC-4552#comment-12005.  I posted a question on this page but am posting again here for hopes of a faster response.
    I am able to create a pdf of the test.txt file.  However, I am unable to change the path or filename.  No matter what I select the file is created with the name and path defined in the autosave options of PDFCreator.  Since the file is created, I know that the reference is correct.  It seems that the cOption invoke nodes are not working.  If I turn on autosave in the PDFcreator options, I am prompted with a save as window.  This means that my command to use auto-save (in the config subvi) is not working.  Likely, the autosavedirectory and autosavefilename are also not doing anything.
    I'm at a loss because everything appears to be correct.  Any thoughts on what could be wrong?   (labview 8.6.1     PDFCreator 0.9)
    Solved!
    Go to Solution.
    Attachments:
    Testing PDF Creator.vi ‏9 KB

    Hello,
    Have you tried downloading the latest version of PDF Creator? It looks as though it is at 1.0.1 now. If this is a problem with the ActiveX interface, it may be resolved in the latest version.
    -Zach
    Certified LabVIEW Developer

Maybe you are looking for

  • I am trying to download a program off the internet.

    I am trying to download a program for school from this website http://snap2007.emcp.com/login/login.php It's telling me that I need internet explorer (which I have IE8) in order to download the training assessment I need for school. Does anyone know

  • How do you change the Default 'Save As' location in Adobe Acrobat 9

    How do you change the Default 'Save As' location in Adobe Acrobat 9?

  • Debuging session starts(and finish) with an error ..

    I want to debug a map but , in initializatin phase of debugger I get this error java.lang.NullPointerException .... What do you think is happend? TIA

  • Spatial Database Upgradation

    Hi, We are upgrading our exisiting database (9.2.0.8.) to Oracle Database 11g R2, it has got spatial and non spatial data, i need to know best approch to migrate the database. Thanks !!

  • Disappearing album art!!HELP!

    All info like computer and such is at bottom. I was just getting some new music and putting it on my iPod, like I always do. I unplug it regularily (at least..I think)but I notice the Apple pops up before it goes back to my regular iPod. (the apple y