Classpath/import - JDev 1.1

I'm having a hard time getting JDeveloper 1.1 to use the same
classpath, import, .java, .class conventions that the Sun JDK
uses.
I have my source files named file1.java and file2.java in the
directory com.division.department.project.
In each file I have the statement "package
com.division.department.project;".
When I compile them I expect the corresponding .class files to
be in the same directory. In JDev, I have to set the Out Path
to C:\.
I've had to add the full c:\com\division\department\project; to
the JDev ClassPath so it can find the other .java files from the
same package. This should not be the case. What should I be
doing?
Now, how can I reference another class located in c:
\com\division\util\logger.class? I should be able to compile
"new com.division\util\logger;", but the compiler reports error
25 cannot access directory..... I'm sure it's trying to find a
directory below my source directory.
Please respond to my email address as well: frankgarber%
[email protected]
Please help!
Frank Garber
null

Most of the time -- yes. There are some stability problems I have
noticed, but beyond that it seems to work. Same is true on
Windows 98, although I have seen a few minor things with the new
common controls that are not entirely correct, it is still
usable. I have been using it on my laptop for quite some time in
this configuration.
Does Oracle certify and support these platforms? No, they do not.
null

Similar Messages

  • Classpath & Import

    Using Win2000. I just downloaded jcurses.jar and I've set the classpath to this file but then other programs not importing jcurses would compile but not run "no classdef found". Programs referring to jcurses still cannot "see" the package when I call import jcurses even though I extracted the jar file in the same directory as the source code calling the package.
    What is wrong?

    HI again, now I did just as you asked me
    CLASSPATH=.;C:\D\Programs\JavaSDK\Myfiles\jcurses.jar
    I got the above after typing set, so it's correct. Now all programs can compile after I have added the dot(.) But the progam calling jcurses can compile but cannot run
    Exception in thread "main" java.lang.ExceptionInInitializerError
    at jcurses.system.InputChar.<clinit>(InputChar.java:25)
    at jcurses.widgets.Window.<clinit>(Window.java:209)
    at CursesDemo.main(CursesDemo.java:12)
    Caused by: java.lang.RuntimeException: couldn't find jcurses library
    at jcurses.system.Toolkit.getLibraryPath(Toolkit.java:257)
    at jcurses.system.Toolkit.<clinit>(Toolkit.java:71)
    ... 3 more
    You saw that little phrase that says "Caused by: java.lang.RuntimeException: couldn't find jcurses library"
    above?
    My source code is in C:\D\Programs\JavaSDK\Myfiles\CursesDemo.java
    as well as my jar file
    C:\D\Programs\JavaSDK\Myfiles\jcurses.jar
    I have also extracted the jar file causing more subfolders
    C:\D\Programs\JavaSDK\Myfiles\jcurses\event\
    C:\D\Programs\JavaSDK\Myfiles\jcurses\system\
    C:\D\Programs\JavaSDK\Myfiles\jcurses\util\
    C:\D\Programs\JavaSDK\Myfiles\jcurses\widgets\
    and inside my source code I do
    import java.lang.System;
    import java.net.Socket;
    import java.io.*;
    import jcurses.event.*;
    import jcurses.system.*;
    import jcurses.util.*;
    import jcurses.widgets.*;

  • Import a Class of Package in the Same Subdirectory of the Classpath

    Hi. I compiled the following "Package" program code without problem:
    package ch09Fig6;
    public class Point {
    protected int x, y; // coordinates of the Point
    // no-argument constructor
    public Point() { setPoint( 0, 0 ); }
    // constructor
    public Point( int a, int b ) { setPoint( a, b ); }
    // Set x and y coordinates of Point
    public void setPoint( int a, int b )
    x = a;
    y = b;
    // get x coordinate
    public int getX() { return x; }
    // get y coordinate
    public int getY() { return y; }
    // convert the point into a String representation
    public String toString()
    { return "[" + x + ", " + y + "]"; }
    When I compiled the following second program code:
    import javax.swing.JOptionPane;
    import Point;
    public class Test {
    public static void main( String args[] )
    Point p = new Point( 72, 115 );
    String output;
    output = "X coordinate is " + p.getX() +
    "\nY coordinate is " + p.getY();
    p.setPoint( 10, 10 );
    // use implicit call to p.toString()
    output += "\n\nThe new location of p is " + p;
    JOptionPane.showMessageDialog( null, output,
    "Demonstrating Class Point",
    JOptionPane.INFORMATION_MESSAGE );
    System.exit( 0 );
    I got an error:
    C:\jdk1.3.1\jhtp3\mypack>javac Test.java
    Test.java:4: cannot access Point
    bad class file: C:\jdk1.3.1\jhtp3\mypack\Point.class
    class contains wrong class: ch09Fig6.Point
    Please remove or make sure it appears in the correct subdirectory of the classpath.
    import Point:
    1 error.
    I know "import Point:" is wrong, but I do not know how to correct it - import 'Point' that is a class of my Package into the "Test". Point.java and Test.java are in the same folder. Please tell me how to correct "import Point:" and make these two programs work together.
    Thanks in adavance,
    BigOcean

    Thanks, jdaguet and gdasson.
    (1) jdaguet: import ch09Fig6.Point; or import ch09Fig6.*; does not work - it generated 2 errors that are more serious than one I had.
    (2) gdasson: I copied the 2 programs from a book (I just changed the import "Point"; for my PC) and tried to learned that way. So I do not want combine the 2 programs.
    Any more help is appreciated.
    BigOcean

  • Runtime error using jdk 1.4.1 in jdev

    Hi,
    I am using jdev 9032. My project uses jdk 1.3.1 the default that comes with jdeveloper. Now i have to make this application work on 1.4.1_05.
    But when I run the app in jdev by changing the jdk to 1.4.1 or when I deploy in OC4J (standalone) 903 with JAVA_HOME=C:\JDK1.4.1, I get following error in both the case:
    Auto-deploying file:/D:/temp/projects/Myproject/classes/ (No previous deployment found)... MyProjectServices_StatelessSessionBeanWrapper16.java:6: cannot access java.rmi.NoSuchObjectException
    bad class file: D:\Utilities\java\jdk\j2sdk1.4.1_05\jre\lib\rt.jar(java/rmi/NoSuchObjectException.class)
    class file has wrong version 48.0, should be 47.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
    import java.rmi.NoSuchObjectException;
    ^
    1 error
    Error compiling D:\temp\projects\Myproject\classes: Syntax error in source
    Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
    But when I compile my source using JDK 1.4.1 it is fine, and only gives me error while deploying.
    Please let me know how to get this app deployed on OC4J with JDK 1.4.1
    THANKS in advance
    Narinder

    Hi,
    I figured out the solution.
    Make the project use 1.4.1 and also replace the tools.jar file under %JDEV_INSTALL%\jdk\lib
    In addition to this I have also changed the "SetJavaHome" environment variable in jdev.conf to use JDK 1.4.1
    And everything is working fine and as I wanted.
    FYI:
    Replace tools.jar on OC4J Standalone(I used OC4J 903) with tools.jar of JDK 1.4.1 and then app can be deployed on OC4J as well.
    Hope this helps someone.
    Regards,
    Narinder

  • Please help - We can't get JDEV 9.0.3.1035 to work for us

    Hi, we installed and configured JDEV 9.0.3.1035 and are experiencing this persistent problem, whenever we try to run our app the second or any subsequent time:
    C:\JDEV\jdk\bin\javaw.exe -ojvm -classpath C:\JDEV\j2ee\home\oc4j.jar -Dhttp.proxyHost=DELL -Dhttp.proxyPort=8080 -Dhttp.nonProxyHosts= -Xverify:none -Doracle.j2ee.dont.use.memory.archive=true com.evermind.server.OC4JServer -config C:\JDEV\jdev\system9.0.3.1035\oc4j-config\server.xml
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    [waiting for the server to complete its initialization...]
    Error starting HTTP-Server: Address in use: JVM_Bind
    Error creating the ORB :
    Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
    **** Warning: JDeveloper timed out waiting for OC4J to startup.
    **** Please check your HTTP proxy server settings in the IDE Preferences dialog.
    Embedded OC4J startup time: 120156 ms.
    This is happening since we switched from JDEV 9.0.2 which always started up cleanly. It appears that the port is not being released on OC4J server termination. We are not running any other web servers and verified that there are no open ports with netstat -a.

    Hi Raghu, thank you for your response and help.
    Here is the beginning of the log from the first run that works:
    C:\JDEV\jdk\bin\javaw.exe -ojvm -classpath C:\JDEV\j2ee\home\oc4j.jar -Xverify:none -Doracle.j2ee.dont.use.memory.archive=true com.evermind.server.OC4JServer -config C:\JDEV\jdev\system9.0.3.1035\oc4j-config\server.xml
    [Starting OC4J using the following ports: HTTP=8999, RMI=23891, JMS=9227.]
    [waiting for the server to complete its initialization...]
    Embedded OC4J startup time: 3024 ms.
    Target URL -- http://martinator2.ESTAR2K:8999/eStarGlobal-eStarGlobal-context-root/servlet/com.estar.servlet.eStarMainServlet
    Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
    doGet Character Encoding: null
    ***** NEW SESSION *****
    // Connected to Database: Microsoft SQL Server Microsoft SQL Server 2000 - 8.00.194 (Intel
    X86) Aug 6 2000 00:57:48 Copyright (c) 1988-2000 Microsoft Corporation Enterprise Edition
    on Windows NT 5.0 (Build 2195: Service Pack 2) with JDBC driver: SQLServer 2.2.0002
    Then I killed the browser session and terminated the Embedded OC4J Server .
    There was a javaw.exe task, I killed it but still get the same error. I also noticed that the Terminate Embedded OC4J Server can take quite a long time.
    Here is the log from a second run:
    C:\JDEV\jdk\bin\javaw.exe -ojvm -classpath C:\JDEV\j2ee\home\oc4j.jar -Xverify:none -Doracle.j2ee.dont.use.memory.archive=true com.evermind.server.OC4JServer -config C:\JDEV\jdev\system9.0.3.1035\oc4j-config\server.xml
    [Starting OC4J using the following ports: HTTP=8999, RMI=23891, JMS=9227.]
    [waiting for the server to complete its initialization...]
    Error starting HTTP-Server: Address in use: JVM_Bind
    Error creating the ORB :
    Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
    **** Warning: JDeveloper timed out waiting for OC4J to startup.
    **** Please check your HTTP proxy server settings in the IDE Preferences dialog.
    Embedded OC4J startup time: 120173 ms.
    Target URL -- http://martinator2.ESTAR2K:8999/eStarGlobal-eStarGlobal-context-root/servlet/com.estar.servlet.eStarMainServlet
    Process exited.
    Here is the result of netstat -a. Note four references to port 8999 even after I terminate the OC4J server:
    Active Connections
    Proto Local Address Foreign Address State
    TCP martinator2:epmap dell.ESTAR2K:0 LISTENING
    TCP martinator2:microsoft-ds dell.ESTAR2K:0 LISTENING
    TCP martinator2:1047 dell.ESTAR2K:0 LISTENING
    TCP martinator2:1061 dell.ESTAR2K:0 LISTENING
    TCP martinator2:1079 dell.ESTAR2K:0 LISTENING
    TCP martinator2:1175 dell.ESTAR2K:0 LISTENING
    TCP martinator2:1180 dell.ESTAR2K:0 LISTENING
    TCP martinator2:1232 dell.ESTAR2K:0 LISTENING
    TCP martinator2:8999 dell.ESTAR2K:0 LISTENING
    TCP martinator2:1046 dell.ESTAR2K:0 LISTENING
    TCP martinator2:1051 dell.ESTAR2K:0 LISTENING
    TCP martinator2:1075 dell.ESTAR2K:0 LISTENING
    TCP martinator2:1135 dell.ESTAR2K:0 LISTENING
    TCP martinator2:1174 dell.ESTAR2K:0 LISTENING
    TCP martinator2:1178 dell.ESTAR2K:0 LISTENING
    TCP martinator2:1184 dell.ESTAR2K:0 LISTENING
    TCP martinator2:1243 dell.ESTAR2K:0 LISTENING
    TCP martinator2:1250 martinator2.ESTAR2K:8999 TIME_WAIT
    TCP martinator2:netbios-ssn dell.ESTAR2K:0 LISTENING
    TCP martinator2:netbios-ssn dell.ESTAR2K:0 LISTENING
    TCP martinator2:netbios-ssn dell.ESTAR2K:0 LISTENING
    TCP martinator2:1079 DELL:ldap CLOSE_WAIT
    TCP martinator2:1175 DELL:ms-sql-s ESTABLISHED
    TCP martinator2:1180 DELL:ms-sql-s ESTABLISHED
    TCP martinator2:1181 DELL:microsoft-ds TIME_WAIT
    TCP martinator2:1223 dell.ESTAR2K:0 LISTENING
    TCP martinator2:1223 ANDY:netbios-ssn ESTABLISHED
    TCP martinator2:1227 dell.ESTAR2K:0 LISTENING
    TCP martinator2:1227 PLUTO:netbios-ssn ESTABLISHED
    TCP martinator2:1232 JOE:microsoft-ds ESTABLISHED
    TCP martinator2:8999 DELL:37723 FIN_WAIT_2
    TCP martinator2:8999 DELL:37724 FIN_WAIT_2
    UDP martinator2:epmap *:*
    UDP martinator2:microsoft-ds *:*
    UDP martinator2:1026 *:*
    UDP martinator2:1040 *:*
    UDP martinator2:1054 *:*
    UDP martinator2:1078 *:*
    UDP martinator2:1302 *:*
    UDP martinator2:1645 *:*
    UDP martinator2:1646 *:*
    UDP martinator2:radius *:*
    UDP martinator2:radacct *:*
    UDP martinator2:2967 *:*
    UDP martinator2:1062 *:*
    UDP martinator2:1063 *:*
    UDP martinator2:1139 *:*
    UDP martinator2:1185 *:*
    UDP martinator2:netbios-ns *:*
    UDP martinator2:netbios-dgm *:*
    UDP martinator2:isakmp *:*
    UDP martinator2:netbios-ns *:*
    UDP martinator2:netbios-dgm *:*
    UDP martinator2:isakmp *:*
    UDP martinator2:netbios-ns *:*
    UDP martinator2:netbios-dgm *:*
    UDP martinator2:isakmp *:*

  • Feature request  for JDev in comparision with Eclipse

    In JDeveloper 10.1.3 Preview release, I see only one option to find out a resource (applies only to Java files). Eclipse supports this feature for any type of resource in Workspaces. (Ctrl+Shift+R) : You can find any resource in Eclipse but In JDev this support is only applicable to Java classes.
    Will finding any type of Resources will be implemented in production release.
    Further things which I find useful in Eclipse compared to JDev are:
    1) In Search option you can select a field or member and seacrh the refernces like Read/Write Access on a member in a java object. This is one of the most important feature I feel.
    2) Organize Imports, JDev doesn't support this. If I have a java file where imports are not proper, I have to each line and Press Alt+Enter. If I have 20 members where I didn't do import (which happens when I import a project to JDev), I have press 20 times Alt+Enter. I feel this feature should be useful to all.
    3) Object structure in Eclipse. In a Java source file, if u press Ctrl+Shift+O, Eclipse shows a the members, so I need not go to structure window to find it. If my class is a huge file, I have to scroll through.
    4) Refactoring support is still not in comparision whith Eclipse or IDeaJ like externalise strings etc...
    Looks like JDev code Assist is like hard coded Assistance. If I type "If ()" still not completed the statement, it says "Negate If statement". This really doesn't look good.
    Bug in JDev 10.1.3
    When my connection manager is active and I select a Java file in the code editor and click "Select in Navigator", JDev doesn't find it. It finds it only if System Navigator is active and the node in which Java/JSP file exists is expanded, else it reports as not found.

    You can get something even better right now: Lightroom can show Lab values if you right-click on the histogram and check "show Lab values". The L is what you want:
    (The K in Photoshop refers to whatever is set as gray working space - what the value would be if you converted the file to it. The actual readout varies according to what that working space is).

  • Imported xsd's not installed in Service Registry

    Folks:
    I am using the AIA2.2 vmware image. I am wondering why and how core xsd's are not searchable in Services Registry (Business Service Control). First, the import statement of an xsd like "invoice.xsd" has a realtive path in it like "../../../../CommonComponents.xsd". Obviously, this is invalid when you import the schema into a JDEV project. One would think that the xsd's would be available in a services registry and have a http location to be of any use so JDEV can add an invoice schema to a project and be able to build a mapping. Without the ability to see these imports, JDEV chokes on the invoice.xsd and you cannot do a simple thing like transform one variable into another.
    What am I doing wrong here? Why are things like "CommonComponents.xsd" not searchable in the services registry? This looks like a big oversight because I wonder how anyone can use a xsd that has imports which are not visible to JDEV (at least without hacking the file system to find the core component). The steps to rep[roduce are simple:
    1) Create a BPEL project (Asynchronous)
    2) Create a UDDI connection to Services Registry (BSR)
    3) Add any xsd that imports "CommonComponents.xsd" to your BPEL project
    4) Try to change the payload of the request or response message for the BPEL project to one that takes my imported xsd such as invoice
    5) JDEV will give you an error because it does not have access to the imported schema and thus cannot interpret the types correctly and therefore you cannot do step 4 above or even do an XSLT mapping.
    Thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    So, my oversight -- you can view these xsd's properly by simply accessing them via Apache url which is the better way to go. They are, in fact, in the registry albeit the search feature does not seem to function properly.
    In any case, just putting this in the thread so others find it easier to do AIA development from the start.

  • JDev 9.0.3.1035 - Error starting HTTP-Server: Address in use: JVM_BindHello

    Hello, we are unable to use JDev 9.0.3.1035.
    We installed your distribution and set it up as follows:
    1. Linked to CVS and checked out our project which works just fine under JDev 9.0.2
    2. Added libraries for Jakarta ECS and MS SQL Server JDBC drivers.
    Then we can run it once successfully. Close browser and terminate embedded OC4J Server and run project again and we get the following error:
    C:\JDEV\jdk\bin\javaw.exe -ojvm -classpath C:\jdev\j2ee\home\oc4j.jar -Dhttp.proxyHost=APOLLO -Dhttp.proxyPort=8080 -Dhttp.nonProxyHosts= -Xverify:none -Doracle.j2ee.dont.use.memory.archive=true com.evermind.server.OC4JServer -config C:\jdev\jdev\system9.0.3.1035\oc4j-config\server.xml
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    [waiting for the server to complete its initialization...]
    Error creating the ORB :
    Error starting HTTP-Server: Address in use: JVM_Bind
    The IDE then sits there until it times out.
    Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
    **** Warning: JDeveloper timed out waiting for OC4J to startup.
    **** Please check your HTTP proxy server settings in the IDE Preferences dialog.
    Embedded OC4J startup time: 120190 ms.
    Target URL -- http://192.168.254.20:8988/Long postings are being truncated to ~1 kB at this time.

    Target URL -- http://192.168.254.20:8988/eStarGlobal-eStarGlobal-context-root/servlet/com.estar.servlet.eStarMainServlet
    We are now unable to continue running/testing/developing our project. We do not want to have to manually change the port number each time we run it. This problem occurs both in Win 2000 PRO and Win XP Pro. We have tried every combination of OC4J server host names, HTTP Server ports and Web Browser proxy settings.
    A similar problem was fixed in Rel 9.0.2 by changing the Host Name of the embedded OC4J server to localhost from the IP address.
    Would appreciate some help because we would like to take advantage of the new features in your product.

  • JDEV 9.0.3.1035 - Error starting HTTP-Server: Address in use: JVM_Bind

    Hi, we installed and configured JDEV 9.0.3.1035 and are experiencing this persistent problem, whenever we try to run our app the second or any subsequent time:
    C:\JDEV\jdk\bin\javaw.exe -ojvm -classpath C:\JDEV\j2ee\home\oc4j.jar -Dhttp.proxyHost=DELL -Dhttp.proxyPort=8080 -Dhttp.nonProxyHosts= -Xverify:none -Doracle.j2ee.dont.use.memory.archive=true com.evermind.server.OC4JServer -config C:\JDEV\jdev\system9.0.3.1035\oc4j-config\server.xml
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    [waiting for the server to complete its initialization...]
    Error starting HTTP-Server: Address in use: JVM_Bind
    Error creating the ORB :
    Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
    **** Warning: JDeveloper timed out waiting for OC4J to startup.
    **** Please check your HTTP proxy server settings in the IDE Preferences dialog.
    Embedded OC4J startup time: 120156 ms.
    This is happening since we switched from JDEV 9.0.2 which always started up cleanly. It appears that the port is not being released on OC4J server termination. We are not running any other web servers and verified all open ports with netstat -a.

    Target URL -- http://192.168.254.20:8988/eStarGlobal-eStarGlobal-context-root/servlet/com.estar.servlet.eStarMainServlet
    We are now unable to continue running/testing/developing our project. We do not want to have to manually change the port number each time we run it. This problem occurs both in Win 2000 PRO and Win XP Pro. We have tried every combination of OC4J server host names, HTTP Server ports and Web Browser proxy settings.
    A similar problem was fixed in Rel 9.0.2 by changing the Host Name of the embedded OC4J server to localhost from the IP address.
    Would appreciate some help because we would like to take advantage of the new features in your product.

  • Help! Cant import my own classes?

    Hi all, I really need some help.
    I created a swing browser application in my working folder called Swiki.
    Then I found a open source package that I want to use some of its classes.
    I put that package into a subfolder (cos it has many subfolders itself).
    I am having a problem importing that package into my own browser.java.
    I tried:
    import Kizna.*;
    OR
    import Kizna.src.com.kizna.*;
    when I try to create an instance of one of the classes:
    public HTMLParser myParser
    The error says:
    "HTMLParser.java": Error #: 901 : package com.kizna.html stated in source C:\Swiki\Kizna\src\com\kizna\html\HTMLParser.java does not match directory Kizna.src.com.kizna.html at line 1, column 19
    can someone help?
    thanks
    TC

    When the compiler and runtime are trying to find files, it converts the import statements to directories, so:import com.kizna.html.*;will look under a directory structure "com/kizna/html/". Then, it will look through your classpath and look to see if this directory structure exists in any of the directories specified in the classpath. That means, if your classpath is ".;C:\SomeDir;C:\AnotherDir", it will first look for class files in ".\com\kizna\html\". If it doesn't find the file it is looking for in there, it will look in "C:\SomeDir\com\kizna\html\". If it still doesn't find the file, it looks in "C:\AnotherDir\com\kizna\html\". If the file doesn't exist in any of these, you will get a compiler error.
    Points to remember:
    1)     Classes in a package, when compiled, must always be in a directory tree that matches the package structure. That is, if you have a class called MyClass in package mypackage.subpackage, then the "MyClass.class" file must be in a directory called "subpackage" which in turn is in a directory "mypackage".
    2)     Your import statements must match the actual package name of the class. You must import "mypackage.subpackage.*" above; importing "subpackage.*" will not work.
    3)     Your classpath must consist of all the base directories of your package directory tree. In the above example, your classpath must include the directory that contains the directory "mypackage".
    Thus, the compiler will look through all combinations of <classpaths>/<import package tree>/MyClass.class to find the file for class MyClass. Here, <classpaths> are the paths given in your classpath and <import package tree> are thre directory structures for the packages you import. So, in your case, you want your classpath to include "C:\kizna\classes" and your import statement to be "import com.kizna.html.*". Note that including "C:\kizna\classes\com" in the classpath and importing "kizna.html.*" will not work (even though the combination gives the correct "location") because your import statement does not match the actual package name given to HTMLParser. While this may seem strange that this isn't allowed, it is done to ensure that classes are unique (classes may use the same name if they are in different packages).

  • Problem in Creating WebService Client using 9.0.3 JD...

    Hi All,
    Thru JDev 9.0.3 webservice,
    1. I try to create proxy class and a sample client to access ASP.NET webservice also i get the following error.
    <HTML><HEAD><TITLE>500 Internal Server Error</TITLE></HEAD><BODY><H1>500 Internal Server
    Error</H1><PRE>Servlet
    Then i created a Java Webservice and hosted in the embedded oc4j server. Then i created a sample client. Then also i get same error as
    follows.
    I user, w2k server, 9i JD 9.0.3, j2sdk 1.4.1.
    Whats the probs. 9.0.3 dont support 1.4.1.
    2. Also one more thing. When i tried to create proxy for asp.net webservice, (Its a webservice to send email which has 6 methods overloaded),
    i get the Proxy Class for ONLY THE LAST METHOD. Rest of the 1st 5 methods are not found. Im able to access this webservice thru axis and thru
    .net also. Only when i created proxy thru 9.0.3, i get like this. So, no probs in my webservice. Some probs in 9.0.3 version. It seems that
    it does't properly create proxy if Method Overloading is done in the webservice.
    3. Also, why the proxy class created in 9.0.3 pass params and returns params as Integer eventhough i used only int in the asp.net webservice
    and in my java webservice created thru JDev 9.0.3
    Yours,
    Sankar.B
    India
    Errror:
    D:\j2sdk140\bin\javaw.exe -client -classpath
    C:\9iJDeveloper903-J2SDK-141\jdev\mywork\XMethodsWebService\CurrencyExchange\classes;C:\9iJDeveloper903-J2SDK-141\jdev\lib\jdev-rt.jar;C:\9iJ
    Developer903-J2SDK-141\jdev\lib\jdev-rt.jar;C:\9iJDeveloper903-J2SDK-141\soap\lib\soap.jar;C:\9iJDeveloper903-J2SDK-141\lib\xmlparserv2.jar;C
    :\9iJDeveloper903-J2SDK-141\jlib\javax-ssl-1_2.jar;C:\9iJDeveloper903-J2SDK-141\jlib\jssl-1_2.jar;C:\9iJDeveloper903-J2SDK-141\j2ee\home\lib\
    activation.jar;C:\9iJDeveloper903-J2SDK-141\j2ee\home\lib\mail.jar;C:\9iJDeveloper903-J2SDK-141\j2ee\home\lib\http_client.jar;C:\9iJDeveloper
    903-J2SDK-141\lib\xmlparserv2.jar;C:\9iJDeveloper903-J2SDK-141\lib\xmlcomp.jar -Dhttp.proxyHost=172.17.56.1 -Dhttp.proxyPort=80
    -Dhttp.nonProxyHosts= id.ws.EmbeddedMathWSStub
    [SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response content type "text/html", must be: "text/xml".
    Response was:
    <HTML><HEAD><TITLE>500 Internal Server Error</TITLE></HEAD><BODY><H1>500 Internal Server
    Error</H1><PRE>Servlet error: Cannot generate Class:
    C:\9iJDeveloper903-J2SDK-141\jdev\system9.0.3.1035\oc4j-config\application-deployments\current-workspace-app\XMethodsWebService-CurrencyExcha
    nge-webapp\temp\__java_statefull_rpc\id\ws\__MathWSStatefullWrapper.java:10: cannot access java.lang.Objectbad class file:
    D:\j2sdk140\jre\lib\rt.jar(java/lang/Object.class)class file has wrong version 48.0, should be 47.0Please remove or make sure it appears in
    the correct subdirectory of the classpath.import java.lang.Object;                 ^1 error</PRE></BODY></HTML>]     at
    org.apache.soap.rpc.Call.getEnvelopeString(Call.java:209)     at org.apache.soap.rpc.Call.invoke(Call.java:268)     at
    id.ws.EmbeddedMathWSStub.Add(EmbeddedMathWSStub.java:66)     at id.ws.EmbeddedMathWSStub.main(EmbeddedMathWSStub.java:34)Process exited
    with exit code 0.

    You are correct, there is a bug logged with JDeveloper 9.0.3 that with JDK 1.4, Web services are not working. See:
    http://otn.oracle.com/products/jdev/htdocs/readme_903.html#ws0
    (while not exactly your situation, I suspect it is related). We are close to releasing JDeveloper 9.0.4 preview which will support JDK 1.4 and should resolve your problem.
    In terms of your second problem, there is a similar bug logged but could I ask you to try again with JDK 1.3.1 to see if a similar issue occurs?
    As for your third question, this is the default behaviour for Oracle9iAS Web Services - int gets mapped as Integer. See:
    http://otn.oracle.com/docs/products/ias/doc_library/903doc_otn/generic.903/b10004/javaservices.htm#1033406
    Hope this helps.
    Mike.

  • How to extend and customize EarHcmAnalytics.ear for OTBI reporting

    The requirement is to extend the ADF objects that's serving the OBIEE application for OTBI, see the line between OBIEE and BI VO's in [OTBI architecture |http://docs.oracle.com/cd/E15586_01/fusionapps.1111/e21363/frameset.htm?ch02s01s01s01.html] and [VO for OTBI|http://docs.oracle.com/cd/E15586_01/fusionapps.1111/e15524/adv_bi_vos.htm#BEICJFHA] . In this case, the EAR file is EarHcmAnalytics.ear. This EAR file does not have any class that provide customization. I've compared this EAR EarHcmAnalytics.ear vs the EarHcmCompensation.ear to verify that there is no Ext*.jar nor any customization classes in the adf-config.xml. Although I've updated the jdev.conf's ide.extension.extra.search.path to point to the exploded hcmAnalytics EAR, JDev didn't find any customization class in the adf-config.xml. Normally, if there's a customization class specified and not class found, the error message would indicate that customization is disabled because it could not load the customization class.
    In the adf-config.xml for the hcmAnalytics EAR, I try to find any class similar to this section in the adf-config.xml for hcmCompensation EAR but found none.
    Excerpted from adf-config.xml of hcmCompensation EAR
    <mds:customization-class name="oracle.apps.fnd.applcore.customization.GlobalCC"/>
    <mds:customization-class name="oracle.apps.fnd.applcore.customization.SiteCC"/>
    <mds:customization-class name="oracle.apps.fnd.applcore.customization.EnterpriseCC"/>
    <mds:customization-class name="oracle.apps.hcm.common.core.HcmCountryCC"/>
    <mds:customization-class name="oracle.apps.hcm.common.core.HcmOrganizationCC"/>
    <mds:customization-class name="oracle.apps.fnd.applcore.customization.UserCC"/>
    Logically, having no customization class might make sense because this hcmAnalytics application is not end-user facing, i.e. NO USER would login to this application. It's strictly an integration point as the data source/web service to be invoked from the RPD of the OBIEE application. It's not intended to support the usual personalization, and different layer customization for a Fusion transactional application. This hcmAnalytics EAR has no UI classes, only ADF BC ones.
    However, the question remain, if my company need to change the VO objects that are exposed to the OTBI reports, how could we extend (changing existing seeded VO's in EAR) or Customize (adding new VO object into EAR)? Here are business scenarios for each case:
    1. Extend existing VO: A OTBI report need to have new column which is missing from current VO. My company need to modify/extend the existing VO using customization class or some other method, then re-import/add the new VO column into RPD so report could pull data from new column. What is the solution to extend/modify existing VO that are in EarHcmAnalytics.ear file?
    2. Add new VO: A company-specific security requirement need to pull in OTBI report data from new table(s) that doesn't existing in seeded Fusion DB. New VO must be built, preferably in same EarHcmAnalytics.ear so we reuse the same ADF connection pool in RPD. I need to create new VO, AM and put the JAR file in the APP-INF/lib. But we also need to rebuild/repackage the whole EarHcmAnalytics.ear file. So what kind of project we should use so we could add new VO and repackage the EarHcmAnalytics.ear properly because a MAR deployment is not sufficient.
    Lastly is there Oracle document somewhere that explain this setup? We have seen information for extending/customizing Fusion transactional Application (EarHcmCompensation.ear), but not the ADF-BC analytics application (EarHcmAnalytics.ear) for the OTBI. If such info exists, please provide links or notes.
    Thanks
    -Duc

    Hi Jani,
    After startup, in Customization Context window, I see it defaults to "View without Customizations" radio box checked; Grey-ed out option to "Edit with following Customization Context"; nothing listed in layer; Customization Context: None; and link to "Overide global layer values".
    I could filter to any ADFbc VO object, but customize menu in right click is disabled (make sense since nothing is listed in customization context, e.g. global). If I click on link to "Override global layer values", it would open an empty XML window but I'm not clear what to override.
    My understanding is to allow customization, a few things must be present and set
    * Enabled Seeded customization is selected in project properties' ADF view
    * Project should have CustomizationLayerValues.xml file to define which layer can be customized (what to show in customization context list of the "Customization Context" window)
    * List of ADF customization class names in adf-config.xml
    * Actual customization classes found and loaded from classpath by JDev
    I assume that the hcmAnalytics should still have the CustomizationLayerValues.xml to allow global layer customization for ADFbc components rather than forcing client to make up/override this file. How can I get "global layer" to be visible for customization context?
    Complete message lists in Jdev's Messages - log pane after startup
    Customizations are disabled for the node "JobPVO.xml" because it is not part of the project contentset.
    Mar 22, 2013 8:48:21 AM oracle.security.jps.internal.common.util.StrictValidationEventHandler handleEvent
    WARNING: Failed to validate the xml content. SchemaLocation: schemaLocation value = 'http://xmlns.oracle.com/oracleas/schema/11/jps-config-11_1.xsd' must have even number of URI's. Location: unavailable.
    Mar 22, 2013 8:48:24 AM oracle.adf.share.ADFContext isHighPerformanceEnvEnabled
    WARNING: Exception while querying ExalogicOptimizationsEnabled Attribute
    Mar 22, 2013 8:48:25 AM oracle.adf.share.ADFContext isHighPerformanceEnvEnabled
    WARNING: Exception while querying ExalogicOptimizationsEnabled Attribute
    Mar 22, 2013 8:48:27 AM oracle.adf.share.ADFContext getCurrent
    WARNING: Automatically initializing a DefaultContext for getCurrent.
    Caller should ensure that a DefaultContext is proper for this use.
    Memory leaks and/or unexpected behaviour may occur if the automatic initialization is performed improperly.
    This message may be avoided by performing initADFContext before using getCurrent().
    For more information please enable logging for oracle.adf.share.ADFContext at FINEST level.
    Excerpted from Windows's cmd console after startup. Many many similar warning about missing extension.xml in all jars from hcmAnalytics EAR before this excerpt.
    java.io.FileNotFoundException: file:/C:/JDeveloper/EarHcmAnalytics.ear/APP-INF/lib/HcmBatchProcessCoreProcess.jar!/meta-
    inf/extension.xml
    at oracle.ide.net.JarIndex.getLOCFromHash(JarIndex.java:1259)
    at oracle.ide.net.JarIndex.getLOC(JarIndex.java:1164)
    at oracle.ide.net.JarIndex.access$1000(JarIndex.java:62)
    at oracle.ide.net.JarIndex$12.run(JarIndex.java:583)
    at oracle.ide.net.JarIndex$12.run(JarIndex.java:579)
    at oracle.ide.net.JarIndex.runLocked(JarIndex.java:1565)
    at oracle.ide.net.JarIndex.run(JarIndex.java:1472)
    at oracle.ide.net.JarIndex.openInputStream(JarIndex.java:578)
    at oracle.ide.net.JarURLFileSystemHelper.openInputStream(JarURLFileSystemHelper.java:381)
    at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1321)
    at oracle.ideimpl.jsr198.VirtualFileSystemHelperImpl.openInputStream(VirtualFileSystemHelperImpl.java:170)
    at javax.ide.net.VirtualFileSystem.openInputStream(VirtualFileSystem.java:1239)
    at javax.ide.extension.spi.JARExtensionSource.getInputStream(JARExtensionSource.java:123)
    at javax.ide.extension.spi.DependencyTree.loadMinimal(DependencyTree.java:105)
    at javax.ide.extension.spi.DependencyTree.buildTree(DependencyTree.java:176)
    at javax.ide.extension.ExtensionRegistry.loadExtensions(ExtensionRegistry.java:155)
    at oracle.ideimpl.extension.ExtensionManagerImpl.loadExtensions(ExtensionManagerImpl.java:510)
    at javax.ide.extension.ExtensionRegistry.initialize(ExtensionRegistry.java:381)
    at oracle.ideimpl.extension.ExtensionManagerImpl.initialize(ExtensionManagerImpl.java:954)
    at javax.ide.Service.getService(Service.java:68)
    at javax.ide.extension.ExtensionRegistry.getExtensionRegistry(ExtensionRegistry.java:400)
    at oracle.ide.ExtensionRegistry.getExtensionRegistry(ExtensionRegistry.java:191)
    at oracle.ide.IdeCore.startupImpl(IdeCore.java:1385)
    at oracle.ide.Ide.startup(Ide.java:703)
    at oracle.ideimpl.DefaultIdeStarter.startIde(DefaultIdeStarter.java:35)
    at oracle.ideimpl.Main.start(Main.java:184)
    at oracle.ideimpl.Main.main(Main.java:146)
    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:597)
    at oracle.ide.boot.PCLMain.callMain(PCLMain.java:62)
    at oracle.ide.boot.PCLMain.main(PCLMain.java:54)
    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:597)
    at oracle.classloader.util.MainClass.invoke(MainClass.java:128)
    at oracle.ide.boot.IdeLauncher.bootClassLoadersAndMain(IdeLauncher.java:189)
    at oracle.ide.boot.IdeLauncher.launchImpl(IdeLauncher.java:89)
    at oracle.ide.boot.IdeLauncher.launch(IdeLauncher.java:65)
    at oracle.ide.boot.IdeLauncher.main(IdeLauncher.java:54)
    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:597)
    at oracle.ide.boot.Launcher.invokeMain(Launcher.java:713)
    at oracle.ide.boot.Launcher.launchImpl(Launcher.java:115)
    at oracle.ide.boot.Launcher.launch(Launcher.java:68)
    at oracle.ide.boot.Launcher.main(Launcher.java:57)
    java.io.FileNotFoundException: file:/C:/JDeveloper/EarHcmAnalytics.ear/APP-INF/lib/HcmBatchProcessCorePublicProcess.jar!
    /meta-inf/extension.xml
    at oracle.ide.net.JarIndex.getLOCFromHash(JarIndex.java:1259)
    at oracle.ide.net.JarIndex.getLOC(JarIndex.java:1164)
    at oracle.ide.net.JarIndex.access$1000(JarIndex.java:62)
    at oracle.ide.net.JarIndex$12.run(JarIndex.java:583)
    at oracle.ide.net.JarIndex$12.run(JarIndex.java:579)
    at oracle.ide.net.JarIndex.runLocked(JarIndex.java:1565)
    at oracle.ide.net.JarIndex.run(JarIndex.java:1472)
    at oracle.ide.net.JarIndex.openInputStream(JarIndex.java:578)
    at oracle.ide.net.JarURLFileSystemHelper.openInputStream(JarURLFileSystemHelper.java:381)
    at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1321)
    at oracle.ideimpl.jsr198.VirtualFileSystemHelperImpl.openInputStream(VirtualFileSystemHelperImpl.java:170)
    at javax.ide.net.VirtualFileSystem.openInputStream(VirtualFileSystem.java:1239)
    at javax.ide.extension.spi.JARExtensionSource.getInputStream(JARExtensionSource.java:123)
    at javax.ide.extension.spi.DependencyTree.loadMinimal(DependencyTree.java:105)
    at javax.ide.extension.spi.DependencyTree.buildTree(DependencyTree.java:176)
    at javax.ide.extension.ExtensionRegistry.loadExtensions(ExtensionRegistry.java:155)
    at oracle.ideimpl.extension.ExtensionManagerImpl.loadExtensions(ExtensionManagerImpl.java:510)
    at javax.ide.extension.ExtensionRegistry.initialize(ExtensionRegistry.java:381)
    at oracle.ideimpl.extension.ExtensionManagerImpl.initialize(ExtensionManagerImpl.java:954)
    at javax.ide.Service.getService(Service.java:68)
    at javax.ide.extension.ExtensionRegistry.getExtensionRegistry(ExtensionRegistry.java:400)
    at oracle.ide.ExtensionRegistry.getExtensionRegistry(ExtensionRegistry.java:191)
    at oracle.ide.IdeCore.startupImpl(IdeCore.java:1385)
    at oracle.ide.Ide.startup(Ide.java:703)
    at oracle.ideimpl.DefaultIdeStarter.startIde(DefaultIdeStarter.java:35)
    at oracle.ideimpl.Main.start(Main.java:184)
    at oracle.ideimpl.Main.main(Main.java:146)
    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:597)
    at oracle.ide.boot.PCLMain.callMain(PCLMain.java:62)
    at oracle.ide.boot.PCLMain.main(PCLMain.java:54)
    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:597)
    at oracle.classloader.util.MainClass.invoke(MainClass.java:128)
    at oracle.ide.boot.IdeLauncher.bootClassLoadersAndMain(IdeLauncher.java:189)
    at oracle.ide.boot.IdeLauncher.launchImpl(IdeLauncher.java:89)
    at oracle.ide.boot.IdeLauncher.launch(IdeLauncher.java:65)
    at oracle.ide.boot.IdeLauncher.main(IdeLauncher.java:54)
    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:597)
    at oracle.ide.boot.Launcher.invokeMain(Launcher.java:713)
    at oracle.ide.boot.Launcher.launchImpl(Launcher.java:115)
    at oracle.ide.boot.Launcher.launch(Launcher.java:68)
    at oracle.ide.boot.Launcher.main(Launcher.java:57)
    java.io.FileNotFoundException: file:/C:/JDeveloper/EarHcmAnalytics.ear/APP-INF/lib/SvcBenefitsCoreRelationService_Common
    .jar!/meta-inf/extension.xml
    at oracle.ide.net.JarIndex.getLOCFromHash(JarIndex.java:1259)
    at oracle.ide.net.JarIndex.getLOC(JarIndex.java:1164)
    at oracle.ide.net.JarIndex.access$1000(JarIndex.java:62)
    at oracle.ide.net.JarIndex$12.run(JarIndex.java:583)
    at oracle.ide.net.JarIndex$12.run(JarIndex.java:579)
    at oracle.ide.net.JarIndex.runLocked(JarIndex.java:1565)
    at oracle.ide.net.JarIndex.run(JarIndex.java:1472)
    at oracle.ide.net.JarIndex.openInputStream(JarIndex.java:578)
    at oracle.ide.net.JarURLFileSystemHelper.openInputStream(JarURLFileSystemHelper.java:381)
    at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1321)
    at oracle.ideimpl.jsr198.VirtualFileSystemHelperImpl.openInputStream(VirtualFileSystemHelperImpl.java:170)
    at javax.ide.net.VirtualFileSystem.openInputStream(VirtualFileSystem.java:1239)
    at javax.ide.extension.spi.JARExtensionSource.getInputStream(JARExtensionSource.java:123)
    at javax.ide.extension.spi.DependencyTree.loadMinimal(DependencyTree.java:105)
    at javax.ide.extension.spi.DependencyTree.buildTree(DependencyTree.java:176)
    at javax.ide.extension.ExtensionRegistry.loadExtensions(ExtensionRegistry.java:155)
    at oracle.ideimpl.extension.ExtensionManagerImpl.loadExtensions(ExtensionManagerImpl.java:510)
    at javax.ide.extension.ExtensionRegistry.initialize(ExtensionRegistry.java:381)
    at oracle.ideimpl.extension.ExtensionManagerImpl.initialize(ExtensionManagerImpl.java:954)
    at javax.ide.Service.getService(Service.java:68)
    at javax.ide.extension.ExtensionRegistry.getExtensionRegistry(ExtensionRegistry.java:400)
    at oracle.ide.ExtensionRegistry.getExtensionRegistry(ExtensionRegistry.java:191)
    at oracle.ide.IdeCore.startupImpl(IdeCore.java:1385)
    at oracle.ide.Ide.startup(Ide.java:703)
    at oracle.ideimpl.DefaultIdeStarter.startIde(DefaultIdeStarter.java:35)
    at oracle.ideimpl.Main.start(Main.java:184)
    at oracle.ideimpl.Main.main(Main.java:146)
    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:597)
    at oracle.ide.boot.PCLMain.callMain(PCLMain.java:62)
    at oracle.ide.boot.PCLMain.main(PCLMain.java:54)
    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:597)
    at oracle.classloader.util.MainClass.invoke(MainClass.java:128)
    at oracle.ide.boot.IdeLauncher.bootClassLoadersAndMain(IdeLauncher.java:189)
    at oracle.ide.boot.IdeLauncher.launchImpl(IdeLauncher.java:89)
    at oracle.ide.boot.IdeLauncher.launch(IdeLauncher.java:65)
    at oracle.ide.boot.IdeLauncher.main(IdeLauncher.java:54)
    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:597)
    at oracle.ide.boot.Launcher.invokeMain(Launcher.java:713)
    at oracle.ide.boot.Launcher.launchImpl(Launcher.java:115)
    at oracle.ide.boot.Launcher.launch(Launcher.java:68)
    at oracle.ide.boot.Launcher.main(Launcher.java:57)
    Mar 22, 2013 8:48:21 AM oracle.security.jps.internal.common.util.StrictValidationEventHandler handleEvent
    WARNING: Failed to validate the xml content. SchemaLocation: schemaLocation value = 'http://xmlns.oracle.com/oracleas/sc
    hema/11/jps-config-11_1.xsd' must have even number of URI's. Location: unavailable.
    WLS ManagedService is not up running. Fall back to use system properties for configuration.
    Mar 22, 2013 8:48:24 AM oracle.adf.share.ADFContext isHighPerformanceEnvEnabled
    WARNING: Exception while querying ExalogicOptimizationsEnabled Attribute
    Mar 22, 2013 8:48:25 AM oracle.adf.share.ADFContext isHighPerformanceEnvEnabled
    WARNING: Exception while querying ExalogicOptimizationsEnabled Attribute
    Mar 22, 2013 8:48:27 AM oracle.adf.share.ADFContext getCurrent
    WARNING: Automatically initializing a DefaultContext for getCurrent.
    Caller should ensure that a DefaultContext is proper for this use.
    Memory leaks and/or unexpected behaviour may occur if the automatic initialization is performed improperly.
    This message may be avoided by performing initADFContext before using getCurrent().
    For more information please enable logging for oracle.adf.share.ADFContext at FINEST level.

  • Programmatically generating XML from XSD

    Hello, everyone:
    I saw the JDev10.1.3 demo for registering an XSD and then
    saw how to manually create an XML instance in JDev.
    Is there a mechanism (e.g., a command line utility) for
    generating an entire XML instance that is conformant to
    a registered XSD? If so, it would be nice to have the
    ability to create multiple conformant XML documents,
    but that might be too much to ask for right now:)
    Regards,
    Oswald
    ps: I have an XSD that imports another XSD and it seems
    that I was able to register this succesfully in JDev10.1.3,
    whereas it did not work when registering
    the XSD in an Oracle 10G instance via 'registerSchema'.

    Hello:
    Thanks for the update, and I tried the following:
    java oracle.xml.jaxb.orajaxb -schema entity.xsd -targetPkg stuff
    using the following CLASSPATH:
    c:\jdev\lib\xmlparserv2.jar;c:\jdev\lib\xschema.jar;c:\jdev\xdk\lib\xml.jar;c:\j2sdk1.4.2_01\lib\tools.jar;c:\
    jdev\lib
    and got this error message:
    XML-32011: (Error) a problem was encountered because an abstract complex type "Entity" is referenced from the element "e
    ntity-elem".
    and I think it's due to the line in entity.xsd:
    <xsd:element name="entity-elem" type="Entity" abstract="true"/>
    where Entity is defined as follows:
    <xsd:complexType name="Entity" abstract="true">
    <xsd:sequence>
    <!-- Identification -->
    <xsd:element name="uid" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
    <xsd:element name="entity-type" type="xsd:string" minOccurs="1" maxOccurs="1"/>
    <xsd:element ref="property-value" minOccurs="0" maxOccurs="unbounded"/>
    </xsd:sequence>
    </xsd:complexType>
    Suggestions welcome...
    Regards,
    Oswald

  • Problems with Ant when using JDK1.4

    Hi,
    I am currently trying to convince JDeveloper (9.0.3.10.35) to use jdk1.4 for building and executing my project.
    Now, using the IDE for building and execution everything seems to work fine after switching to the new J2SE Version in the project settings.
    Ant, however, refuses to work with the new IDE. It gives an "Error: Unable to execute Ant"
    On the other hand, staying with the default JDK version 1.3.1_02 (coming with JDeveloper) for ant execution results in conflicts of newer class versions (i.e. org.w3c.dom.Node) w.r.t. to <jdev>/lib/xmlparserv2.jar. The error is:
    compile:
    [javac] Compiling 263 source files to C:\Daten\JDeveloper\Projects\IAS39\jdev\classes
    [javac] C:\Daten\JDeveloper\Projects\IAS39\src\hea\accounting\cmd\AbstractCommand.java:20: cannot access org.w3c.dom.Node
    [javac] bad class file: C:\Programme\j2sdk1.4.0\jre\lib\rt.jar(org/w3c/dom/Node.class)
    [javac] class file has wrong version 48.0, should be 47.0
    [javac] Please remove or make sure it appears in the correct subdirectory of the classpath.
    [javac] protected void readKey(Node keyNode){
    [javac] 1 error
    Obviously, I am missing something! Any help is highly appreciated!

    I experienced something similar. I tried to use JDK 1.4.2, I compile the project without errors but, when I try to run the project, which has EJBs, it fails.
    If I do the same using JDK 1.3.1.x, it works fine; but I need 1.4.x.
    The messages are the following:
    Copying default deployment descriptor from archive at J:\JHI\JProyectos\InterfazAlNSI\classes/META-INF/orion-ejb-jar.xml to deployment directory C:\JDev903\jdev\system9.0.3.1035\oc4j-config\application-deployments\current-workspace-app\classes...
    Auto-deploying file:/J:/JHI/JProyectos/InterfazAlNSI/classes/ (No previous deployment found)... CentroPeriferico_StatelessSessionBeanWrapper8.java:6: cannot access java.rmi.NoSuchObjectException
    bad class file: C:\Archivos de programa\Java\j2re1.4.2\lib\rt.jar(java/rmi/NoSuchObjectException.class)
    class file has wrong version 48.0, should be 47.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
    import java.rmi.NoSuchObjectException;
    ^
    1 error
    Error compiling J:\JHI\JProyectos\InterfazAlNSI\classes: Syntax error in source
    Thanks,
    Marcelo.

  • JD3 ocijdbc8 error

    I have downloaded and installed JD3 for evaluation.
    When testing the following simple jdbc test I get the following
    error:
    "F:\orant\ows\4.0\jdk\bin\javaw.exe" -mx50m -
    classpath "E:\jdev\myclasses;E:\jdev\lib\jdev-
    rt.zip;E:\jdev\jdbc\lib\oracle8.1.5
    \classes111.zip;E:\jdev\lib\connectionmanager.zip;F:\orant\ows\4.
    0\jdk\lib\classes.zip" package1.Test
    AppAccelerator(tm) 1.1.8 for Java (JDK 1.1), x86 version.
    Copyright (c) 1997-1998 Borland International. All Rights
    Reserved.
    Copyright (c) 1997-1999 Oracle Corporation. All Rights Reserved.
    java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared library
    path
    at java.lang.Runtime.loadLibrary(Compiled Code)
    at java.lang.System.loadLibrary(Compiled Code)
    at oracle.jdbc.oci8.OCIDBAccess.logon(Compiled Code)
    at oracle.jdbc.driver.OracleConnection.<init>(Compiled
    Code)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance
    (Compiled Code)
    at oracle.jdbc.driver.OracleDriver.connect(Compiled Code)
    at java.sql.DriverManager.getConnection(Compiled Code)
    at java.sql.DriverManager.getConnection(Compiled Code)
    at package1.Test.main(Compiled Code)
    CODE
    // You need to import the java.sql package to use JDBC
    import java.sql.*;
    class Test{
    public static void main (String args [])
    throws SQLException, ClassNotFoundException
    // Load the Oracle JDBC driver
    Class.forName ("oracle.jdbc.driver.OracleDriver");
    // Connect to the database
    // You can put a database name after the @ sign in the
    connection URL.
    Connection conn =
    DriverManager.getConnection
    ("jdbc:oracle:oci8:@dev8i", "whs_admin", "whs_admin");
    // Create a Statement
    Statement stmt = conn.createStatement ();
    ResultSet rset = stmt.executeQuery ("select * from events");
    // Iterate through the result and print the employee names
    while (rset.next ())
    System.out.println (rset.getString ("EVENT_ID"));
    System.out.println (rset.getString ("PARENT_EVENT_ID"));
    I have previously used another IDE (KAWA) and this works fine.
    Thanks
    Mark
    null

    Mark,
    The OCI drivers require some client-side software. The version
    of the OCI client must match the version of the OCI driver you
    are using from JDeveloper rather than the version of the
    database you are connecting to.
    For example, if you are using the 8.1.5 JDBC OCI8 driver to
    connect to an Oracle 8.0.5 database, then you need the OCI 8.1.5
    client running on the same machine as JDeveloper.
    The OCI client software is included in the server distribution
    (if you have the database running locally), or from the Oracle
    Client software distribution.
    If you have either of the above installed locally, then make sure
    that ORACLE_HOME is set to the correct location in your
    registry.
    This is what JDeveloper uses to find the ocijdbc8.dll.
    If you have multiple Oracle Homes, you can explicitly set which
    one to use from JDeveloper by choosing Tools|IDE Options from the
    menu. Click the Environment tab, and choose an Oracle Home from
    the drop-down list.
    The JDBC thin drivers do not require this client-side piece.
    Laura
    Mark (guest) wrote:
    : I have downloaded and installed JD3 for evaluation.
    : When testing the following simple jdbc test I get the following
    : error:
    : "F:\orant\ows\4.0\jdk\bin\javaw.exe" -mx50m -
    : classpath "E:\jdev\myclasses;E:\jdev\lib\jdev-
    : rt.zip;E:\jdev\jdbc\lib\oracle8.1.5
    \classes111.zip;E:\jdev\lib\connectionmanager.zip;F:\orant\ows\4.
    : 0\jdk\lib\classes.zip" package1.Test
    : AppAccelerator(tm) 1.1.8 for Java (JDK 1.1), x86 version.
    : Copyright (c) 1997-1998 Borland International. All Rights
    : Reserved.
    : Copyright (c) 1997-1999 Oracle Corporation. All Rights
    Reserved.
    : java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared library
    : path
    : at java.lang.Runtime.loadLibrary(Compiled Code)
    : at java.lang.System.loadLibrary(Compiled Code)
    : at oracle.jdbc.oci8.OCIDBAccess.logon(Compiled Code)
    : at oracle.jdbc.driver.OracleConnection.<init>(Compiled
    : Code)
    : at oracle.jdbc.driver.OracleDriver.getConnectionInstance
    : (Compiled Code)
    : at oracle.jdbc.driver.OracleDriver.connect(Compiled Code)
    : at java.sql.DriverManager.getConnection(Compiled Code)
    : at java.sql.DriverManager.getConnection(Compiled Code)
    : at package1.Test.main(Compiled Code)
    : CODE
    : // You need to import the java.sql package to use JDBC
    : import java.sql.*;
    : class Test{
    : public static void main (String args [])
    : throws SQLException, ClassNotFoundException
    : // Load the Oracle JDBC driver
    : Class.forName ("oracle.jdbc.driver.OracleDriver");
    : // Connect to the database
    : // You can put a database name after the @ sign in the
    : connection URL.
    : Connection conn =
    : DriverManager.getConnection
    : ("jdbc:oracle:oci8:@dev8i", "whs_admin", "whs_admin");
    : // Create a Statement
    : Statement stmt = conn.createStatement ();
    : ResultSet rset = stmt.executeQuery ("select * from
    events");
    : // Iterate through the result and print the employee names
    : while (rset.next ())
    : System.out.println (rset.getString ("EVENT_ID"));
    : System.out.println (rset.getString ("PARENT_EVENT_ID"));
    : I have previously used another IDE (KAWA) and this works fine.
    : Thanks
    : Mark
    null

Maybe you are looking for

  • K7N2 Delta-ILSR - USB to Serial Adapter Doesn't Work!

    Is anyone aware of an error such as the follows with the K7N2 Delta-ILSR? I am trying the use a USB to Serial Adapter, namely the a Prolific PL-2303. However, my PC does not seem to like it, nor does it what to cooperate with it at all. On one occasi

  • Watch your DVD's On Ipod Video

    Hi everyone! I found a great program that allows you to put your DVD's in IPOD VIDEO format. I took my favorite movie, Oh brother where Art Thou, and can now watch it while I'm running. On a tred mill of course. The program is called Handbrake. You c

  • Internal Assertion Error while using outer join

    Hi- Has anyone experienced this error before: State: HY000. Code: 397397248. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 46036] Internal Assertion: Condition !pConjunct->IsAndCond(), file server/Query/Optimi

  • ...ripping DVD material and saving as full movie...

    ...i've downloaded Mac the Ripper DVD extracting software but can't quite figure out how to extract the material as a full movie file( with audio) to re-edit as a clip that will be used in a project. I imported the VTS folder into FCP but not all the

  • New to Dreamweaver need to put up new website

    Hello I am new to dreamweaver. I have figured out how to put together a gallery and connected all the pages. I have a root file with everything in it and then some. I have tested the server now I want to put it online what are the key steps. I tried