Jndi.properties in the class path

Hi,
i deployed a webservice to the embedded oc4j in JDEV(10.1.3).
Form this webservice an external oc4j (9.0.4) is looked up.
First problem:
I have some problems to initial the InitialContext. It seems to me that the jndi.properties file is not found.
I think its perhaps a classloader problem.
Second problem:
If i hardcode the props, the extarnal oc4j is connected, but the lookup hangs up.
May be it a the different versions are the problem.
Any help appriciated.
Thanks and regads
Chris

Ok. I finally i found a solution for the second problem, after i could take a look into the logs of the external oc4j.
Thanks to heimberger and his blog.
In 10.1.3 there where some changes to ormi (new protocol version 1.3). For a communication between 10.1.3 and older versions of oc4j a patch is needed. Its metalink 4676768. The older version must be able to negotiate the version of ormi.
Hope that will do the job.
But i still can not make the 10.1.3 embedded oc4j take the jndi.properties from the application classpath.
I wonder if nobody has had the same problem.
Regards
Chris

Similar Messages

  • Class xyz is not in the class path

    When I used:
    <jsp:useBean id="blast" scope="session"class="hr.pbf.pnf.castorblast2.BlastOutput"/>
    (or other class) , I get an warning: "The class hr.pbf.pnf.castorblast2.BlastOutput" is not in the class path ???

    Hi,
    The possible reason could be that class is not present in project class path.
    Check the following location to make sure the project is configured with source and required libraries
    - Project > Properties > Java Build Path > Source Tab / Libraries Tab
    M7 Support

  • Lost on the Class Path

    I'm having some serious trouble with class package path issues ... ugh!
    I've downloaded a fairly complex and well programmed FLA file and other source files in AS 3.0, and just started to adapt it for a custom application.  When I published the FLA and packages in FLash CS3, everything worked perfectly.  Then I just got Flash CS4 a few days ago, and so opened the same application in CS4, and also published it fine.  Yet, once I started to make some very simple customizations, such as create a new MovieClip, and then added "linkage" to the MovieClip in the library, the trouble started. Getting the new external class to associate to the new MovieClip was not working (although it was in the same location as the other package file, with the same class package designation), so of course I went to take a look at the preferences and set the general class path.  Interestingly, the class path was completely blank (I just installed CS4 that day).  Yet then, why was the application still working initially with no class path set?  All of your original classes were loading fine, and the application was working.  So, then when I went into actually set a class path (my new class is in the same folder: .../com/parkerandkent/components/classic/photogallery ), I start getting all kinds of errors ... and now, even if I revert back to having no class path at all, the application does not work at all (when it originally did with no class path at all).  Strange!  I am very confused about what is going on.
    There are 5 primary .as package files, all of which are linked to MovieClips in the Library:
    ClassicPhotoGallery.as
    Photo.as
    Thumb.as
    Thumbs.as
    CallTag.as (the new class)
    I've checked the properties linkage for each of these, and they all appear correct also.
    Currently, I have all of these class paths set:
       - "/Users/mac/_EXTRA/ArtMuse/GALLERY"
       - " "/Users/mac/_EXTRA/ArtMuse/GALLERY/com/parkerandkent/components/classic/photogallery"
    Currently, I get these these error messages, which are referring to only 3 of 5 total .as files (which are all in the same location, and all have the same class path designation - and none of these files is the new class I made, which now appears to be referenced okay).
    Photo.as Line 1:
    5001: The name of package 'com.parkerandkent.components.classic.photogallery' does not reflect the location of this file. Please change the package definition's name inside this file, or move the file. /Users/mac/_EXTRA/ArtMuse/GALLERY/com/parkerandkent/components/classic/photogallery/Photo .as
    Thumb.as Line 1:
    5001: The name of package 'com.parkerandkent.components.classic.photogallery' does not reflect the location of this file. Please change the package definition's name inside this file, or move the file. /Users/mac/_EXTRA/ArtMuse/GALLERY/com/parkerandkent/components/classic/photogallery/Thumb .as

    Again, the class path package designation is the same for all 5 .as files:
    package com.parkerandkent.components.classic.photogallery {
    yet the application is not working, and I get only those errors posted above.
    If I remove all source path designations, then I get NO error messages, and yet the application does not work (although, I swear it was working this way originally).

  • Simple question about environment variables and setting the class path???

    ok I have been trying for a few months now ontrying to set the class path..
    I work with windows vista..
    on the environment variables user variables,
    I have the name of the variable as class
    and the value as C:\Program Files\Java\jdk1.6.0_04\bin;.
    where javac is...
    on the system variables I have
    its name as class
    and the value as C:\Program Files\Java\jdk1.6.0_04\bin;.
    why is this not reading javac

    The PATH environment variable should have as an entry the directory containing your javac executable. The CLASSPATH should have have entries which define your library directories and entries which are your jar file libraries. In the early days, probably the only CLATHPATH entry you will need will be a '.' to indicate the current directory.
    The Java tutorial covers ALL of this.

  • Retrieve the class path!! need help

    Hi all
    I tried to retrieve the class path using the below method:
    URL srcUrl = ClassLoader.getSystemResource(fileName)
    Since the class path has some space in it, this srcUrl seems to be wrong
    the returned value would look like this, "%20" represnts the spaces in the path. So is there a way to avoid this, and to return the path correctly?
    D:\PROJECT\ReportDesigner\Run%20report%20designer%20from%20a%20share\
    thanks in advance
    madumm

    File srcDir = new File(srcUrl.getFile());Well you just can't do that, can you? URL.getFile() returns the filename part of the URL, but it's still URL-encoded. You have to convert each %20 to a space, and do a few other possible transformations as well. See java.net.URLDecoder.

  • How to run a jar file which needs another jar to be in the class path

    Hi,
    I need to execute a jar, which needs another jar to be in the classpath.
    If I run like
    java -classpath <jar1 name> -jar <main jar>
    It is giving classnotfoundexception, where as the class is available in the <jar1 name>.
    so, currently I am doing like this
    In the manifest file i have given like
    Main-Class: <class name>
    Class-Path: <jar name> <jar name2>
    then it is running fine. But, if I want to change the jar location again I need to changed the manifest file.
    Is there any way to do this? Pls help me.

    How about
    java -cp jar1.jar;jar2.jar com.acme.MainClass
    You won't need to worry about the manifest file after that and you can make a bat files (or .sh file in *nix) for it.                                                                                                                                                                                                                                                                                                                                                                       

  • How to set the class path?-

    my forlder is :C:\Documents and Settings\india
    jdk is in:C:\Program Files\Java\jdk1.5.0_11\bin
    can any body can help me to create a classpath for my folder?

    An alternative - as stated in reply 2 in your other thread on this topic: http://forum.java.sun.com/thread.jspa?threadID=5170470 - is not to set the CLASSPATH environment variable at all. Use the -classpath switch instead.
    As the documentation linked to in that reply points out: "The class search path (more commonly known by the shorter name, "class path") can be set using either the -classpath option when calling a JDK tool (the preferred method) or by setting the CLASSPATH environment variable. The -classpath option is preferred because you can set it individually for each application without affecting other applications and without other applications modifying its value."
    As always, the documentation is worth reading; the available command line options worth using.

  • Stand alone class and the class path

    Hi,
    I have a simple Java project in Eclipse environment. The project has it's class path,
    that contains a jar file that I need to use.
    The project runs perfect in the Eclipse.
    Now, I need to take the main class out of my project, to function alone in another environment.
    My problem is that out of the environment, I don't know how the class should know that classpath.
    I moved that jar to the same folder that the class located in, but I don't know how to tell it that the jar is there.
    My goal is to run my standalone class from another java class.
    I'm afraid that examples in command environment wouldn't help me.
    Thanks a lot for any help !

    moshi wrote:
    I have a simple Java project in Eclipse environment. The project has it's class path,
    that contains a jar file that I need to use.Ok, so you have a class that you have written that depends on an external library. Fair enough.
    The project runs perfect in the Eclipse.
    Now, I need to take the main class out of my project, to function alone in another environment.Maybe (just maybe!) defining what exactly that "other environment" is could help us help you.
    My problem is that out of the environment, I don't know how the class should know that classpath.Well, obviously that depends on what that other environment is.
    You must have some way to influence that other environments classpath, or you couldn't even get it to call/use your class.
    I moved that jar to the same folder that the class located in, but I don't know how to tell it that the jar is there.Now you're just guessing.
    My goal is to run my standalone class from another java class. That's simple enough, you probably do it all the time.
    I'm afraid that examples in command environment wouldn't help me.And why exactly is that?
    Do you realize that you tell us far too little about your problem for us to be able to actually help you?

  • OK - I can set the Class Path. Now - what else?

    Dear all,
    I read with interest the many posts in this forum debating whether to use an IDE for your Java development, or to use some other (more primitive????) means of crafting code - notepad for example. As I understand things:
    If I use notepad and the command line to build, run, and compile my classes, then I will hopefully come to learn and understand how to set my class path correctly, and gain an insight into the environment in which I work - an insight moreover, that I might not happen upon if I leave an IDE to do all this for me. Ok - fine, I can use my IDE, but also do some testing on the command line to fill this gap in my knowledge.
    If I use an IDE to help me build my UIs, then it is more than likely that I will progress through life without a profound knowledge or understanding of layout managers, cell renderers, event handelers etc. OK - this is fine too, and I have decided to craft my UI 'by hand' because I want a broad appreciation of Swing and anyway, after the initial pain (akin, I imagine, to child birth), it's not so bad really.
    Now I feel I am cooking. I understand my environment, and the more esoteric features of Swing; I use my IDE to fashion my code - it's cool and helps me with code completion, and direct access to the API documentation as I type, and it does a whole bunch of refactoring stuff too.
    I feel as if I am getting the best from both worlds now.
    Would anyone argue against an approach such as this?

    ChuckBing wrote:In general, a good approach. You're correct, using the IDE will make life easier.
    What you have to watch out for is using it as a crutch. If it ever does something that you can't do, or don't know why it's doing "that", then you aren't learning. The next time "that" has to be done, if the IDE isn't available to do "that" for you, you're dead.
    Then you'll be posting the "how do I do that outside the IDE" question here.
    Make a promise to yourself: You'll learn why and what the IDE does, and read the API's - A lot!Yes, I agree Chuck. I am not comfortable with a tool doing something for me which I don't understand; which is one of the reasons I build the UIs by hand.
    I also become somewhat downcast when I see people in the forums requesting code so they can simply paste it into their aplpications. Learning can be painful, but it is a necessary pre-requisiite to knowledge in my view - so copy/paste can be a most harzardous thing.
    I am hoping this thread will be a small guide to new folk.
    Thank you for your input,
    Steve

  • Access properties of the class passed to a thread

    Hi You all,
    I have the following code:
    package com.services;
    import java.util.*;
    public class Timer implements Runnable
         //                         CLASS OBJECTS
         private int interval;
         private volatile int clockFlag = 0;
         //                              CONSTRUCTOR
         public Timer()
         public void stop()
              this.interval = 0;
         public void setInterval(int pInterval)
              this.interval = pInterval + 100000000;
         public void run()
              while(this.interval != 0)
                   if(this.clockFlag == this.interval)
                        System.out.println("clockFlag");
                        this.clockFlag = 0;
                   this.clockFlag ++;
    Timer objTimer = new Timer();
    objTimer.setInterval(5);
    Thread objThread = new Thread(objTimer);
    objThread.start();So if I want to use the run method of the Timer class what should I do?
    Is there any method in the thread that alows me to call any method of the class passed to it?
    Thanks,
    MeTitus

    That's usually a bad design choice.why?You should extend when you actually want to add some new functionality to a class, and the OP doesn't want to create a new type of thread. He just want to execute something in a new thread.
    Kaj

  • How to add things permenantly to the class path?

    Greetings
    guys, I 'm using morena package(doesnot matter what it is), and when i need to execute my application i have to use things like this:
    java -cp examples\examples.jar;javatwain.jar -Xmx128M -Xbootclasspath/p:javatwain_license.jar RunExample
    please, is there any simple tutorial to understand this line and what it does exactly, and how can I run my application simply by using (java runexample). I know that things needed to be added to the classpath, and others to variables path; but how, what, and why etc...
    simply i cannot understand this all.

    the PATH is used by the operating system to determine where to look for files when no directory is give.
    It has nothing at all to do with Java, it just tells the operating system where it can find your java and javac (and others) when you type "java MyClass" (for example) on the command prompt.
    Anything not on the path can still be used by the operating system as long as you tell it exactly where to look.
    the CLASSPATH is used internally by Java to determine where it can find classes.
    It can contain directories and jar-files (PATH can contain only directories). The operating system does nothing with it (except telling java what it is when asked).
    Any class that can't be found on the classpath doesn't exist as far as java is concerned.
    So they perform similar roles but in a quite different context.

  • How to load a Jar file in the class path?

    How to load a Jar file which contains class files, images, etc.. in the classpath without using URLClassLoader.

    You don't "load" jars. If it's on the classpath, you can obtain individual resources from it using various methods on either Class or ClassLoader. Do you mean "how to add a jar to the classpath at runtime"? Can't be done without using a classloader, typically URLClassLoader or a subclass thereof. Why you want to not use the proven method is beyond me. Presumably because you don't understand classloading. In which case, forget it.

  • Setting the Class Path

    Hi guys,
    I am having problems using Textpad to run my java programs. It compiles java programs, but it doesn't allow me to run the programs. It comes up the error;
    Exception in thread "main" java.lang.NoClassDefFoundError: HelloApp1
    I was having the same problem when I tried to run my java programs on command prompt. To solve this I resorted to using -cp to set the classpath to the directory where my java apps were located. The path in the environment variables is pointing towards my java bin directory, so that isn't the problem. Can someone tell me how I can set my classpath permantly and where I should point the directory to, so that i can run my java progs on Textpad.
    Thank You
    Jaz

    Can
    someone tell me how I can set my classpath permantly
    and where I should point the directory toYou shouldn't use the CLASSPATH environment variable to run programs. You should always use the -classpath option for javac and java--even when you don't need to specify a path. If you don't need to specify a path, then write: -classpath "". The -classpath option overrides the CLASSPATH environment variable, which is what you want. Otherwise, you will never figure out how to compile different files.
    so that i
    can run my java progs on Textpad.
    I have a similar editor, and I was able to set it up to run simple, one file programs without package statements when I click a button. Your best bet is to find a Textpad discussion forum and ask how you can set it up to execute java programs. Or, check the help in Textpad.

  • Jars in the class path of a custom component

    I am using the dom4j-1.6.1.jar library in a custom component, but my JBoss server has dom4j.jar in jboss\server\all\lib.  My custom component is throwing the following error:
    DefFoundError message:org/dom4j/xpath/DefaultXPath while invoking service XmlToCsvService and operation convert and no fault routes were found to be configured.
    This makes me suspect that the version of Dom4J in the lib directory of the server is taking precedence over the one in my component.  Any suggestions for how to deal with this?  Thanks.
    Jared Langdon

    Even Marcel's suggestion may not always work, but it certainly is worth a quick try.  I seem to remember trying that and finding that one of the LiveCycle EAR files has a version of dom4j buried inside it (I don't remember which version of LC it was).
    Of course altering an Adobe supplied EAR is not recommended and may violate your support ageement. There is an alternative, however; if changing the JBoss lib folder doesn't work.  To avoid the conflict you can use JarJar to rename the packages within the DOM4J class and deploy the renamed jar with your component to avoid the conflict.
    http://code.google.com/p/jarjar/
    You would then use the renamed classes in your component:
    import org.mypackage.dom4j.Document;
    import org.mypackage.dom4j.DocumentException;
    import org.mypackage.dom4j.DocumentHelper;
    import org.mypackage.dom4j.Element;
    import org.mypackage.dom4j.Node;
    import org.mypackage.dom4j.io.DOMReader;
    import org.mypackage.dom4j.io.DOMWriter;

  • Can I put the file path on remote host in the class path?

    Like this:
    java -cp "http://www.webserver.net/test/test.jar" TestClass
    Is it possible?

    I've tried it, it seems not work.Yes - as far as I know you can't specify the classpath as anything but files and folders. That's more or less what the documentation says. URLs aren't either, so I guess they're out.
    There is a URLClassLoader which may or may not be useful for you. There is a discussion of class/resource loading generally and loading remotely here: http://java.sun.com/developer/technicalArticles/Networking/classloaders/

Maybe you are looking for

  • Error: Cannot display Gantt chart in PWA 2010

    Hi, With a brand new instance of Project Web App 2010, I cannot display any project Gantt Chart: "Error: cannot display this view". NB: on the client Win 7 PC, there are several versions of  MS Office installed: 2003; 2007, 2010. I was told that this

  • Images stuck in Auto Import

    Two images files  I was working on are stuck in Auto import into iphoto. They will not import into iphoto nor can I delete them. Everytime I try to use Adobe or iphoto it try's to import. Any help would be very welcome

  • OS X Yosemite and CS5 Indesign

    I have just installed OS X Yosemite on my iMac and while the CS5 Photoshop and Illustrator app.s work the Indesign one doesn't and that's the urgent one that i need. Help please. I have just installed Java for OS X 2014-001.

  • Cannot find details of completed DPM backup job

    I ran a DPM backup job successfully but now cannot find the job log to review the details.  I can only see the start time, time elapsed, and data transferred on the jobs tab. Where is the detailed job log? Any help would be appreciated... Thanks. Dav

  • I have some DV footage that is a little dark, I need to lighten it slightly

    I need to know what is the best way to bright, lighten or whatever the correct term is, the footage. I only need to make a minor adjustment. I am using Final Cut Studio 2, what is the best way to achieve my goal? As always thank you in advance for re