Working with 2 JDKs

Alright this is my situation....
I am using JDK 1.5 to develop the company's Java applications. I am using Netbeans 4.1 IDE and I can control within Netbeans which JDK I am using.
Now I am using JDK 1.4 to develop the company's web applications. It would be too complicated to change it all to 1.5. Anyway, I am still using Netbeans 4.1 as my IDE and I also have Tomcat 4.1 installed to run the JSP pages locally because Tomcat is giving me problems when being run with Netbeans.
So I was wondering, when I run my .jar files created from the Java applications, which JDK is being used, if any? How should I configure my PATH and CLASSPATH environment variables? That's the problem I am having.......
Thanks

First, don't set the PATH and CLASSPATH environment variables for your entire system.
Second, Tomcat and NetBeans have their own way to point to the JVM and set their class paths. Simply check the documentation.

Similar Messages

  • How to work with different JDKs on SJSAS PE/EE 8.x domains/server instances

    Using this workaround it will be possible to use different versions of java (jdk) for different domains and server instances on a single 8.x PE and/or EE installation. Please make sure that the updated jdk is compatible with application server and the application(s) for which it is being updated. Tested on Solaris as of now.
    01 Create a copy of the existing asenv.conf and update the AS_JAVA property to point to the new jdk.
    cd <sjsas-install-directory>
    create a directory called 'new-config'
    copy config/asenv.conf to new-config/asenv.conf
    cd new-config
    edit asenv.conf and update AS_JAVA property with the desired jdk location
    02 Modify the domain/instance specific startserv and stopserv scripts so that they point to new asenv.conf.
    Modify the startserv and stopserv scripts in <domain-dir>/bin for domains and <instance-dir>/bin for instances for which the jdk needs to be modified.
    for ex. to change the startserv and stopserv scripts for a server instance under node agent.
    cd <sjsas-install-directory>/nodeagents/<node-agent>/<server-instance>/bin
    edit startserv and change the asenv.conf location.
    ASENV_CONF_LOCATION=<sjsas-install-directory>/new-config
    edit stopserv and change the asenv.conf location.
    ASENV_CONF_LOCATION=<sjsas-install-directory>/new-config
    03 Restart the domain/instance to use the updated jdk.
    Thanks to Prabhu Velayutham for sharing this work around.
    [email protected]

    Tested and found that the above workaround is valid for windows-xp as well.
    On windows the corresponding files are named asenv.bat, startserv.bat and stopserv.bat.
    [email protected]

  • Configuring OC4J to work with new JDK

    Hi all, due to some java related errors, I re-installed JDK.
    I had C:\Program Files\Java\jdk1.7.0 and the new one is C:\Program Files\Java\jdk1.7.0_01
    I did the following:
    1) updated it in server.xml
    2) updated it in instanceconfig.xml.
    3) Add C:\Program Files\Java\jdk1.7.0\bin to "path" in environment variables. Javac and java command runs fine in command prompt.
    4) BI Server, BI Java Host, BI Presentation Services runs fine in SERVICES
    But 0C4J is not working. When I try to start it from START, the command prompt just flickers for a split second and disappears.
    When re-installing JDK, is there anything else I need to configure aside from those server.xml and instanceconfig.xml? Looking at the manuals, I can only find instructions on configuring when you are installing BI, not changing/reinstalling JDK when BI is already installed.
    Many thanks.
    Edited by: AI on Nov 21, 2011 4:46 PM
    Edited by: AI on Nov 21, 2011 4:48 PM

    Hi J.A.M
    This sort of relates to the issue about 500 Internal Error you answered in the other thread. Turns out the there was something wrong with java because I couldn't Javac compile at all from command prompt on a normal Java file (hence BI couldn't either). Which is why I tried to reinstall it.
    After installation, I rebooted the machine few times (which in turn would have rebooted everything else).
    Running javac on command prompt works, and so does BI Java Host.
    Only OC4J is mucking up. Obviously it's not hooked on properly to the new JDK because it was working somehow with the previous (faulty) JDK.
    I tried going into C:\OracleBI\oc4j_bi\bin folder (via cmd) and ran "oc4j.cmd -start".
    You are right, showed me the error message which I couldn't see earlier. The message was:
    "please make sure the JAVA_HOME environment variable is define correctly."
    So I configured the JAVA_HOME to point to the new JDK, rebooted the machine. Ran it again.
    It still asks me to define JAVA_HOME correctly.
    Edited by: AI on Nov 21, 2011 6:43 PM

  • Why Oracle 8i is not Working with JDK 1.3

    Why Oracle 8i is not Working with JDK 1.3 by using JDBC.

    try this
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection("jdbc:odbc:"somedsn","scott","tiger");
    I am using this for Oracle, it is working for me.
    Uma
    Java Developer
    http://www.globalleafs.com

  • Is there service pack available for weblogic 5.1 to work with JDK 1.4 for NT Environment

    Is there service pack available for weblogic 5.1 to work with JDK 1.4 for NT Environment

    Hi.
    This is definitely not supported, and I don't know that any work is scheduled in the future
    to support this JDK on WLS 5.1.
    Having said that, I was able to start WLS 5.1sp12 with JDK 1.4 with no errors. I didn't
    exercise any features, however.
    Regards,
    Michael
    Rakesh Gupta wrote:
    Is there service pack available for weblogic 5.1 to work with JDK 1.4 for NT Environment--
    Michael Young
    Developer Relations Engineer
    BEA Support

  • HAT 1.1 and HPROF not working with JDK 1.5

    I'm using JDK 1.5.0_05, and I run HPROF with these args passed to the JVM:
    -Xrunhprof:heap=sites,depth=8,monitor=n,thread=n,doe=y,format=b
    When I try to read the binary file output I get the following error:
    C:\dev\142\sfdc>java -jar c:\HAT\bin\hat.jar c:\dev\142\sfdc\java.hprof
    Started HTTP server on port 7000
    Reading from c:\dev\142\sfdc\java.hprof...
    Dump file created Thu Feb 09 17:10:38 PST 2006
    Snapshot read, resolving...
    Resolving 0 objects...
    WARNING: hprof file does not include java.lang.Class!
    Exception in thread "main" java.lang.NullPointerException
    at hat.model.JavaClass.resolve(JavaClass.java:68)
    at hat.model.Snapshot.addFakeClass(Snapshot.java:73)
    at hat.model.Snapshot.resolve(Snapshot.java:111)
    at hat.Main.main(Main.java:158)
    I've also tried using JDK 1.5.0_04 and JDK 1.5.0_01. I've reduced the depth param to depth=4. Nothing gets rid of that error.
    Can HAT work with JDK 1.5?

    Ok, I finally managed to solve this problem. What was happening was that IPv6 was installed on this computer, and as a result Java was trying to do a DNS lookup using a IPv6 socket and failing. With the help of TracePlus Winsock, I discovered that internall Java's InetAddress.getByName does this:
    WSAStartup
    socket(INET6)
    getaddrinfo
    WSACleanup
    Two solutions are possible - either set the system preference java.net.preferIPv4Stack to true, or uninstall the IPv6 stack. Since I couldn't find a way to set the system preference in a persistent manner (apart from passing in an argument on the java command line), I uninstalled the IPv6 stack.
    Hope this helps someone else.
    Peter

  • -Xmx1024M is working with Jrockit but not with Sun JDK.

    Hi,
    We have a window server box with 8GB RAM. in which there are few other processes running apart from that we have more than 1GB space available.
    We have weblogic 10.3 present in this system. when we try to Run a managed server with JRockit JVM with -Xmx as 1024M -- it is allocating the space properly.
    but when we try the same with Sun JDK , it is failing to allocate memory.
    Please let me know if any one have come across this situaton.

    Maybe you have a large number of DLLs loaded and have insufficient amounts of contiguous free memory for the Sun JVM? Unlike Sun, JRockit does not require a contiguous heap.
    Background:
    http://blogs.oracle.com/jrockit/2008/09/how_to_get_almost_3_gb_heap_on_windows.html
    Edited by: Henrik (JRockit PM) on 2009-sep-15 07:17

  • Works fine in JDK 6.0 but not in jdk 1.5.???????

    Hi all,
    This code converts english date to japanese date but it is working fine in english only. can any body answer why it is so.
    Note : No Comiplation problem in jdk 1.5
    This code works fine in JDK 6.0 but not in JDK 1.5, Why.....?
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
            Locale locale = new Locale("ja", "JP", "JP");//locale for Japanese
            Calendar cal = Calendar.getInstance(locale);  //japanese calender object
            DateFormat df = DateFormat.getDateInstance(DateFormat.LONG,locale);
            try{
            Date date = sdf.parse("1930/09/27");
                System.out.println(df.format(date));
            }catch(Exception e){
                System.out.println(e.getMessage());
            }

    Hi,
    If I give the Input date 1930/10/27 (in english), then program must display the date as S5.10.27 (it's japanese date with 'S' indicating ERA)
    But this will happpen only when i run the program in JDK 6.0.
    In JDK 1.5, for the above input, the output is 1930/10/27 (which is wrong)
    Still I don't have compilation and running problems in both. Can anybody expalin why it is so?
    I think i tried my best to restate the question.
    Thanx
    Aris

  • Does the Communications API work with Studio 4

    I just installed Studio 4 along with the JDK. The Java version that I am running now is:
    java version "1.4.1_02"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_02-b06)
    Java HotSpot(TM) Client VM (build 1.4.1_02-b06, mixed mode)
    Running on MS XP.
    The Communications API seemed to work just fine on JDK 1.3 with Forte 1.0.
    I installed the Comm API as instructed and set my ClassPath:
    CLASSPATH=D:\PROGRA~1\s1studio_jdk\j2sdk1.4.1_02\lib\comm.jar;D:\MyProjects\java\GarxFace
    A call to:
    Enumeration portList;
    portList = CommPortIdentifier.getPortIdentifiers();
    does not yield any ports at all.
    Stranger yet, if I use the auto complete feature in the editor. For example if I type: m_PortID. then no members of PortID show up.
    But the code compiles just fine.
    Any idea what is going on?

    First I found the reason that the auto complete was not working. I had to mount the comm.jar file (you did not have to do this in Forte 1,0, just set the classpath). I thought that I had done that. That is the problem when you work late. ;)
    Here is a eexcerpt that I found on a search in another post:
    Copy javax.comm.properties to your <JDK>\lib directory.
    C:\>copy c:\commapi\javax.comm.properties c:\jdk1.1.6\lib
    The javax.comm.properties file must be installed. If it is not, no ports will be found by the system.
    Notice it says that "javax.comm.properties file must be installed"
    javax.comm.properties is indeed installed in my JDK lib subrirectory, but it is almost like it is not being found.

  • Can't get jsp:plugin to work with jb5

    I am trying to get a Swing applet compiled with JDK 1.3.1 to run on a jsp page using the <jsp:plugin> tag. At this stage it is a ridiculously simple applet (just some JLabels and JTextFields) but I can't get it to work. Here is the jsp code:
    <jsp:plugin type="applet" code="nz.astarte.ganttapplet.GanttApplet"
    codebase="./WEB-INF/classes" jreversion="1.3.1"
    width="400" height="175">
    <jsp:fallback>
    Plugin support could not be determined
    </jsp:fallback>
    </jsp:plugin>
    When I run it in the jb5 ide nothing shows up at all. OK, I figured the ide doesn't support the plugin, so leaving the ide running (which provides me with a web server) I go into IE (version 5) and enter the url to the page, which is http://localhost:8080/AppletCommunications/GanttApplet.jsp
    I get the page, and the gray box saying loading the applet but the plugin console tells me:
    load: class nz.astarte.ganttapplet.GanttApplet not found.
    java.lang.ClassNotFoundException: java.io.FileNotFoundException: http://localhost:8080/AppletCommunications/WEB-INF/classes/nz/astarte/ganttapplet/GanttApplet.class
    Why not? Under the directory where the jsp page is located is the directory structure WEB-INF/classes/nz/astarte/ganttapplet and in that directory is a GanttApplet.class file.
    I cannot understand why it isn't found. Do applets work with the jb5 ide? Is there something blindingly obvious that I've missed?
    Thanks, Andrew

    I appear to have solved it, but it is not clear to me why.
    I created a jar file of the required classes, and placed it in the same directory as the jsp file. My jsp code then looked like:
    <jsp:plugin type="applet" code="nz.astarte.ganttapplet.GanttApplet"
    codebase="."
    archive="GanttApplet.jar"
    jreversion="1.3.1"
    width="400" height="175">
    <jsp:fallback>
    Plugin support could not be determined
    </jsp:fallback>
    </jsp:plugin>
    This works fine. However I would expect to be able to move the jar file to some other directory, so that the jar file and jsp files are separated. I spent hours trying to work out why it wouldn't work when I had the jar
    file in WEB-INF/classes (under the jsp file directory) and had codebase="WEB-INF/classes/". In the end I put the jar file into a directory I defined separately called wotnot and defined codebase="wotnot/"
    Now it works. However I still think I should be able to have the jar file anywhere, including WEB-INF/classes and would love for someone to tell me why not!
    Thanks, Andrew

  • Working with Java for beginners!

    To those who might still be interested in knowing how my 'first encounter with Java ended'
    {color:#0000ff}*I downloaded JDK 5.0 update 12.*
    Link: java.sun.com/javase/downloads/index_jdk5.jsp{color}
    and it works
    I was able to compile and run my first program. With dedication and perseverance we do not need to be a 'genius' to accomplish a task or a desire for learning.
    I was also advised to use Dr. Java which is very useful for some, who like me, are not good at working on a DOS environment.
    Link: drjava.org
    there is always a solution to a problem if we are really willing to keep trying,.
    Thank you to those who tried to help.
    Perhaps others could learn from this. Learning is not always an easy {color:#0000ff}PATH{color}, however, {color:#008000}DO NOT give up, KEEP TRYING. {color}
    Edited by: pequenita on Sep 23, 2007 2:49 PM

    CW2000 only supports Java plug-in 1.3.1 and will not work with other version including 1.3.1_02 etc. If you have multiple applications that requires different plug-in versions, you need to access it from a different client to avoid running into problems. This may not sound like a good solution, but can be used as a workaround.

  • Does oracle jdbc driver 9.0.1 work with sdk 1.4?

    Hi All Experts...
    Does oracle jdbc driver 9.0.1 work with sdk 1.4.1? Ever since i have moved to 1.4 i am having problems. I keep getting the No Suitable Driver error or NoClassDefFoundError. I have everything in the classpath and i have also tried command line but to no avail. The JVM just refuses to pick up the classes12.zip file from the classpath.
    The oracle site mentions that the 9.0.1 driver is for jdk 1.2 & 1.3 but it does NOT mention that it is NOT for 1.4.1. The site very explicitly mentions that the 9.2 driver is for 1.4.1. SO i am a little confused.This question may be stupid, but nevertheless,If i have to upgrade my driver from 9.0.1 to 9.2 then does that mean that i have to upgrade my DB as well?
    Experts..please help.. THanks

    Thanks a lot, as usual, MOD.
    Now only if i can get my JVM to pick up the classes12.zip file from the classpath. I dont know if you read my previous posting today.

  • How do I get XSQL Servlet to work with OCI 9i

    I'm using the most recent jdbc driver (ojdbc14.jar) that works with jdk 1.4. I'm using a 9.0.1 db, and I'm using xdk for java 9.2.0.3. If I specify an oci driver in the XSQLConfig.xml file, I get the following error with a xsql:query request:
    Oracle XDK Java 9.2.0.3.0 Production
    XSQL-017: Unexpected Error Occurred
    java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path
    Now why does XDK insist to look for ocijdbc8 if I only have ocijdbc9.dll installed on my client? The config file only allows oci8 in the dburl specification, which is probably why XDK insists to look for ocijdbc8, but I CANNOT specify oci9, which would make sense to me, although it's most likely not a valid specification.
    <connection name="9ic">
    <username>scott</username>
    <password>tiger</password>
    <dburl>jdbc:oracle:oci8:@</dburl>
    <driver>oracle.jdbc.OracleDriver</driver>
    <autocommit>true</autocommit>
    </connection>
    So how do get XSQL Servlet to work with OCI 9i?

    If you are using the latest Oracle9i JDBC driver, which you should be able to get from OTN, it should look for the DLL with 9 in the name.
    Perhaps you have a "stale" JDBC driver somewhere earlier on the classpath?
    Steve Muench
    JDeveloper/BC4J Development Team
    Author, Building Oracle XML Applications

  • Wlcompile - nested javac elements not working with ant 1.6.1

    Hi
    I have a problem with Ant 1.6.1 and wlcompile.
    I get the following error: The <wlcompile> type doesn’t support the nested “javac”
    element.
    Heres the error msg I get in debug mode:
    BUILD FAILED
    C:\P2Development\dev\testing\test.xml:3: The <wlcompile> type doesn't support
    the nested "javac" element.
         at org.apache.tools.ant.IntrospectionHelper.throwNotSupported(IntrospectionHelper.java:573)
         at org.apache.tools.ant.IntrospectionHelper.getNestedCreator(IntrospectionHelper.java:624)
         at org.apache.tools.ant.IntrospectionHelper.getElementCreator(IntrospectionHelper.java:691)
         at org.apache.tools.ant.UnknownElement.handleChild(UnknownElement.java:529)
         at org.apache.tools.ant.UnknownElement.handleChildren(UnknownElement.java:320)
         at org.apache.tools.ant.UnknownElement.configure(UnknownElement.java:176)
         at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:152)
         at org.apache.tools.ant.Task.perform(Task.java:363)
         at org.apache.tools.ant.Target.execute(Target.java:301)
         at org.apache.tools.ant.Target.performTasks(Target.java:328)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1063)
         at org.apache.tools.ant.Main.runBuild(Main.java:632)
         at org.apache.tools.ant.Main.startAnt(Main.java:183)
         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
    I’m using windows 2000. I’ve tried with weblogic.jar from Weblogic Server 8.1
    SP1 and SP2. I’ve tried with JDK 1.4.1_02 and 1.4.2_04. If I’m using Ant 1.5.3
    then everything works perfectly.
    I’ve tried to remove the WLS included Ant version to avoid conflicts with Ant
    1.6.1 and Ant 1.5.3 (that comes with Weblogic server). I’ve tried to uninstall
    Weblogic Server and just keep weblogic.jar, but I still get the same error. I’ve
    tried to put weblogic.jar on the classpath, still not working. I’ve tried to remove
    all jar files from $ANT_HOME/lib except those jar files needed to run my test
    project - ant.jar and ant-launcher.jar, but still doesn’t work. If I change $ANT_HOME
    to Ant 1.5.3 and run Ant 1.5.3 then everything works. So it seems to have something
    to do with Ant 1.6.1.
    Here’s my example code:
    <project name="wlcompile_test" default="test" basedir=".">
         <target name="test" depends="init">
    <wlcompile srcdir="${src.dir}" destdir="${build.dir}">
    <javac debug="${build.debuginfo}" debuglevel="${build.debuglevel}"
    nowarn="${build.nowarn}" deprecation="${build.deprecated}" source="${build.source.version}"/>
    </wlcompile>
         </target>
    <target name="clean" depends="init">
    <delete dir="${build.dir}"/>
    </target>
    <target name="init">
    <taskdef name="wlcompile" classname="weblogic.ant.taskdefs.build.WLCompileTask"
    classpath="C:\P2Development\weblogic.jar"/>
    <property name="src.dir" value="src"/>
    <property name="build.dir" value="classes"/>
    <property name="build.compiler" value="modern"/>
    <property name="build.compiler.pedantic" value="true"/>
    <property name="build.debuginfo" value="true"/>
    <property name="build.debuglevel" value="lines,vars,source"/>
    <property name="build.deprecated" value="false"/>
    <property name="build.nowarn" value="off"/>
    <property name="build.source.version" value="1.4"/>
    <mkdir dir="${build.dir}"/>
    </target>
    </project>
    And I try to run “ant test”
    It doesn’t work with Ant 1.6.1 and weblogic.jar from WLS 8.1 SP1 and SP2. But
    it works perfectly if I change to Ant 1.5.3.
    Here’s a link to the Ant wlcompile task documentation from BEA:
    http://e-docs.bea.com/wls/docs81/programming/environment.html#1098348
    Regards,
    Tobias Wallter

    Yes, this one is fixed in 8.1 SP3. If you need a patch before then,
    contact [email protected] and reference CR136493.
    -- Rob
    Tobias Wallter wrote:
    Hi
    I have a problem with Ant 1.6.1 and wlcompile.
    I get the following error: The <wlcompile> type doesn?t support the nested ?javac?
    element.
    Heres the error msg I get in debug mode:
    BUILD FAILED
    C:\P2Development\dev\testing\test.xml:3: The <wlcompile> type doesn't support
    the nested "javac" element.
         at org.apache.tools.ant.IntrospectionHelper.throwNotSupported(IntrospectionHelper.java:573)
         at org.apache.tools.ant.IntrospectionHelper.getNestedCreator(IntrospectionHelper.java:624)
         at org.apache.tools.ant.IntrospectionHelper.getElementCreator(IntrospectionHelper.java:691)
         at org.apache.tools.ant.UnknownElement.handleChild(UnknownElement.java:529)
         at org.apache.tools.ant.UnknownElement.handleChildren(UnknownElement.java:320)
         at org.apache.tools.ant.UnknownElement.configure(UnknownElement.java:176)
         at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:152)
         at org.apache.tools.ant.Task.perform(Task.java:363)
         at org.apache.tools.ant.Target.execute(Target.java:301)
         at org.apache.tools.ant.Target.performTasks(Target.java:328)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1063)
         at org.apache.tools.ant.Main.runBuild(Main.java:632)
         at org.apache.tools.ant.Main.startAnt(Main.java:183)
         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
    I?m using windows 2000. I?ve tried with weblogic.jar from Weblogic Server 8.1
    SP1 and SP2. I?ve tried with JDK 1.4.1_02 and 1.4.2_04. If I?m using Ant 1.5.3
    then everything works perfectly.
    I?ve tried to remove the WLS included Ant version to avoid conflicts with Ant
    1.6.1 and Ant 1.5.3 (that comes with Weblogic server). I?ve tried to uninstall
    Weblogic Server and just keep weblogic.jar, but I still get the same error. I?ve
    tried to put weblogic.jar on the classpath, still not working. I?ve tried to remove
    all jar files from $ANT_HOME/lib except those jar files needed to run my test
    project - ant.jar and ant-launcher.jar, but still doesn?t work. If I change $ANT_HOME
    to Ant 1.5.3 and run Ant 1.5.3 then everything works. So it seems to have something
    to do with Ant 1.6.1.
    Here?s my example code:
    <project name="wlcompile_test" default="test" basedir=".">
         <target name="test" depends="init">
    <wlcompile srcdir="${src.dir}" destdir="${build.dir}">
    <javac debug="${build.debuginfo}" debuglevel="${build.debuglevel}"
    nowarn="${build.nowarn}" deprecation="${build.deprecated}" source="${build.source.version}"/>
    </wlcompile>
         </target>
    <target name="clean" depends="init">
    <delete dir="${build.dir}"/>
    </target>
    <target name="init">
    <taskdef name="wlcompile" classname="weblogic.ant.taskdefs.build.WLCompileTask"
    classpath="C:\P2Development\weblogic.jar"/>
    <property name="src.dir" value="src"/>
    <property name="build.dir" value="classes"/>
    <property name="build.compiler" value="modern"/>
    <property name="build.compiler.pedantic" value="true"/>
    <property name="build.debuginfo" value="true"/>
    <property name="build.debuglevel" value="lines,vars,source"/>
    <property name="build.deprecated" value="false"/>
    <property name="build.nowarn" value="off"/>
    <property name="build.source.version" value="1.4"/>
    <mkdir dir="${build.dir}"/>
    </target>
    </project>
    And I try to run ?ant test?
    It doesn?t work with Ant 1.6.1 and weblogic.jar from WLS 8.1 SP1 and SP2. But
    it works perfectly if I change to Ant 1.5.3.
    Here?s a link to the Ant wlcompile task documentation from BEA:
    http://e-docs.bea.com/wls/docs81/programming/environment.html#1098348
    Regards,
    Tobias Wallter

  • Works with tomcat not with bea

    hai i am madav
    when i was working with tomcate it was fine but when i deploy in bea portal server with proper additions i am gettin java.io.FileNotFoundException: Response: '401:
    Unauthorized xxx' for url: 'http://feedsind3.cricinfo.com/live/index.xml'
    for below code
    Authenticator.setDefault(new MyAuthenticator());
    URL url = new URL"http://feedsind3.cricinfo.com/live/index.xml");
                   is=url.openStream();
    File f1=new File("c:\\hai2.xml");
              br = new BufferedReader(new InputStreamReader(is));
              bw1 = new BufferedWriter(new FileWriter(f1),5000);
              while((scoresFileUrl=br.readLine())!=null)
                   System.out.println(scoresFileUrl);
                   bw1.write(scoresFileUrl);
                   bw1.flush();
                   bw1.newLine();
                   bw1.close();
                   br.close();
                   is.close();
                   }catch(Exception e){
                   System.out.println(" exception raised in writeToFile "+e);
         RequestDispatcher rd=req.getRequestDispatcher("/livecric.jsp");
    rd.forward(req,res);     
    exception raised in writeToFile java.io.FileNotFoundException: Response: '401:
    Unauthorized xxx' for url: 'http://feedsind3.cricinfo.com/live/index.xml'

    Exactly my problem too. I read somewhere that JDK 1.5 has modified its Authenticator class but I am not able to find an example of how to handle a website that prompts you for userid/password.
    But I scaled back from JDK 1.5 to JDK 1.4 on Weblogic 8.1.5 but that does not work still. So I sense some issues with Weblogic server.
    Can someone help please? Moderators?

Maybe you are looking for

  • Picture Included. Mid 2012 13 inch Macbook Pro green/purple lines on screen. Freezes. Sometimes 3 beeps.

    Alright I have a Mid 2012 13 inch Macbook Pro purchased in June 2012. For about the last month, I have this issue where as I am using it random colored lines will show up on the screen (lines usually green, purple, but occasionally the issue occurs w

  • Regarding Usaage of TCPGW tool

    Hi Experts, Currently i am working on synchronous scenario ABAP Proxy <-->PI 7.0<->web service. i want to monitor the soap messages through tcpgw tool. I have dowloaded the tool as per note 856597 in my client machine. Whene ever i am running the too

  • Hierarchy SQL

    All, My input data looks like this: Parent_Column          Child_Column          Levels_from_Parent 100000               100000                    0 100000               110000                    1 100000               111000                    2 100

  • Can I Know the list of Sensors used by Apple

    Hi, Please can anyone let know what all the sensors used by apple. Thanks in Advance Thanks.

  • Dreamweaver 2004 MX is not recognizing my form elements

    Has anyone run into a problem with an insert or update server behavior not recognizing form elements? I created the page and now when I try to make any changes I get an error. "Column 'sccb_comments' is mapped to a form element that does not exist. P