Question about dependent projects (and their libraries) in 11g-Oracle team?

Hello everyone,
I have a question about dependent projects. An example:
In JDeveloper 10.1.3.x if you had for instance 2 projects (in a workspace): project 1 has one project library (for instance a log4j library) and project 2 is a very simple webapplication which is dependent on project 1. Project 2 has one class which makes use of log4j.
This compiles fine, you can run project 2 in oc4j, and the libraries of project 1 (log4j) are added on the classpath and everything works fine. This is great for rapid testing as well as keeping management of libraries to a minimum (only one project where you would update a library e.g.)
However in 11g this approach seems not to work at all anymore now that weblogic is used, not even when 'export library' is checked in project 1. The library is simply never exported at all - with a noclassdeffound error as result. Is this approach still possible (without having to define multiple deployment profiles), or is this a bug?
Thanks!
Martijn
Edited by: MartijnR on Oct 27, 2008 7:57 AM

Hi Ron,
I've tried what you said, indeed in that .beabuild.txt when 'deploy by default' is checked it adds a line like: C:/JDeveloper/mywork/test2/lib/log4j-1.2.14.jar = test2-view-webapp/WEB-INF/lib/log4j-1.2.14.jar
Which looks fine, except that /web-inf/lib/ is empty. I presume its a sort of mapping to say: Load it like it in WEB-INF/lib? This line is not there when the deploy by default is not checked.
I modified the TestBean as follows (the method that references Log4j does it thru a Class.forName() now only):
public String getHelloWorld() {
try {
Class clazz = Class.forName("org.apache.log4j.Logger");
System.out.println(clazz.getName());
catch(Exception e) {
e.printStackTrace();
return "Hello World";
In both cases with or without line, it throws:
java.lang.ClassNotFoundException: org.apache.log4j.Logger
     at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:283)
     at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:256)
     at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:54)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
     at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:176)
     at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:42)
     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
     at java.lang.Class.forName0(Native Method)
     at java.lang.Class.forName(Class.java:169)
     at nl.test.TestBean.getHelloWorld(TestBean.java:15)
Secondly I added weblogic.xml with your suggested code, in the exploded war this results in a weblogic.xml which looks like:
<?xml version = '1.0' encoding = 'windows-1252'?>
<weblogic-web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-web-app.xsd" xmlns="http://www.bea.com/ns/weblogic/weblogic-web-app">
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
<jsp-descriptor>
<debug>true</debug>
<working-dir>/C:/JDeveloper/mywork/test2/view/classes/.jsps</working-dir>
<keepgenerated>true</keepgenerated>
</jsp-descriptor>
<library-ref>
<library-name>jstl</library-name>
<specification-version>1.2</specification-version>
</library-ref>
<library-ref>
<library-name>jsf</library-name>
<specification-version>1.2</specification-version>
</library-ref>
</weblogic-web-app>
The only thing from me is that container-descriptor tag, the rest is added to it during the deployment. Unfortunately, it still produces the same error. :/ Any clue?

Similar Messages

  • General question about iTunes Match and multiple libraries

    Hello to everyone,
    I have a general question about the iTunes Match service, which is available since yesterday in my country (Italy). Currently my library situation is the following:
    Computer A (desktop, Windows 7): "big" iTunes library (about 20 GB), at the moment not associated with my Apple ID
    Computer B (MacBook Air 2011): "small" iTunes library (about 5 GB), associated with my Apple ID
    At the moment, both my iOS devices (iPhone 4 and iPad 2) are synchronized with the smaller library on the MacBook Air.
    Question is as follows: should I subscribe to iTunes Match, would it be possible to upload the "big" library (provided I associate it with my Apple ID) to iCloud while keeping my devices synchronized with the "small" one?
    Ideally, at the end of the day, the situation should be the following: both iOS devices with music from the small library + possibility of downloading songs from iCloud (coming from the big one). Is this possible?
    Maybe the question sounds stupid, but I want to be sure about this before paying for the service.
    Thanks a lot.

    Yes, you could also associate your larger library with iTunes match if you associated your Apple ID with it. However any purchases in the library made from another Apple ID will not be matched with iTunes much.
    If both libraries are part of iTunes match, then all your devices will see all of the content from both libraries, which content you choose to have on those devices and which you have accessible via iTunes match is entirely up to you.

  • Two quick questions about the project and timing panes

    1) Is there a hotkey for toggling between the project and timing panes?
    I can't seem to find this anywhere. I know F5 and F6 open and close them, but I'd like to be able to simply activate then without having to click on them. I'd like to be able to simply toggle between them and navigate using the arrow keys
    2) Is there a way to lock together the project and timing views so that when you open a group in one that group is also opened in the other?

    Sure, play/stop SHOULD work, but it doesn't always. And the up/down arrows only work to move layers in some instances. Try this. In a normal project, select a layer in either the layers pane or the canvas. Use the up/down arrows and you'll find Motion cycles between layers. Now close the layers pane (F5) and open it again. Now try to use the up/down arrows. It no longer cycles on my machine (and probably yours).
    In fact, Motion 4 broke a LOT of the keyboard shortcuts that used to work seemlessly in Motion 3.
    For example: I create a text object and start typing my text. About 30 percent of the time hitting the spacebar while typing text will cause playback to start. Pure annoyance.
    I used to be able to Hit HOME and END to go to the start and end of the project when the layer's pane is active, now I can't.
    About 25 percent of the time when I'm in the layers pane and I hit spacebar, instead of playing the project, I turn off the layer that was currently selected.
    Those are just a few of my pet peeves. There are definitely some real issues with shortcuts in Motion 4.
    Andy

  • Question About Color's and Gradients

    Hi all,
    I have a question about color swatches and gradients.
    I am curious to know, if I have 2 color swatches that I make into a gradient color, is it posible to change the tint of each indivdual color in that gradient and have that applied to the gradient without having to adjust the gradients opacity.
    The reason that I'm asking this is because in creating a project I found that the colors that I chose for to make my gradient from my swatches were to dark, and while I can adjust each one's tint to my liking (if the object they were applied to was going to be a solid color) but that doesn't seem to apply to the overall gradient.
    I hope that makes sense, I know that this was something that was able to be accomplished in quark and was wondering if I can do something similar.

    If you double click your gradient swatch (after adding it to the swatches)
    Then click a colour stop in the gradient, and then change the drop down menu to CMYK (or rgb)
    And you can alter the percentages there. It's not much use for spot colours but it's a start.
    But making tint swatches would be a good start anyway.
    At least then when you double click the gradient (in the swatches) to edit it you can choose from CMYK, RGB, LAB, or Swatches and adjust each colour stop to your liking.

  • A few questions about the ka790gx and dka790gx

    i have a few questions about the ka790gx and dka790gx , how much better is the dka790gx compaired to the ka790gx ? . how much difference does the ACC function make to overclocking etc , i plan on getting a phenom II 940BE or 720BE . i already have the ka790gx so would it be worth building another system using the dka790gx mobo , or should i keep what i already have and just change the cpu ?

    It's largely irrelevant what other boards had VRM issues other than the KA790GX - the fact is it died at stock settings. Since there is little cost difference between the more robust DKA790GX (or Platinum if you really need 1394) why bother with the proven weakling? There are other examples around of the KA not having a robust power section.  There's no way I would use even a 95W TDP CPU in the KA and absolutely not O/C.....!
    As for the credentials of Custom PC, I have generally found their reviews accurate and balanced, and echo my own findings where applicable. If a little too infrequent.
    The fact that the KA has such a huge VRM heatsink leads me to my other comments on the Forum, particularly regarding the "fudge" aspect:
    """Henry is spot on - the notion that adding a heatsink to the top of the D2PAK or whatever MOSFETS is effective is virtually worthless. The device's die thermal junction is the tab on the device back - which is always against the PCB pad. The majority of heat is therefore dissipated in to the board, and the fact that the epoxy plastic encapsulation gets hot is simply due to the inability of the heat to be conducted away from the device die via the tab. Not sure when Epoxy become an effective conductor of heat.... Good practice is to increase the size of the PCB pad (or "land" in American) such that the enlarged PCB copper area acts as an adequate heatsink. This is still not as effective as clamping a power device tab to an actual piece of ali or copper, but since the devices used are SMD devices, this is not possible. However, the surface area required to provide sufficient PCB copper area to act as a heatsink for several devices isn't available in the current motherboard layouts. Where industrial SBC designs differ in this respect is to place the VRM MOSFETs on the back of the PCB on very enlarged PCB pads - where real estate for components is not an issue.
    Gigabyte's UD3 2oz copper mainboards sound like a good idea, on the face of it. However, without knowing how they have connected the device tabs to where and what remains a mystery. I suspect it is more hype than solution, although there will be some positive effect. From an electrical perspective, having lower resistance connecting whatever to whatever (probably just a 0V plane) is no bad thing.
    The way the likes of ASUS sort of get round the problem is to increase the sheer number of MOSFET devices and effectively spread the heat dissipation over a larger physical area. This works to a degree, there is the same amount of heat being dissipated, but over several more square inches. The other advantage of this is that each leg of the VRM circuit passes less current and therefore localised heat is reduced. Remember that as well as absolute peak operating temperature causing reduced component life, thermal cycling stresses the mechanical aspects of components (die wire bonds for example) as well as the solder joints on the board. Keeping components at a relatively constant temperature, even if this is high (but within operating temperature limits), is a means of promoting longevity.
    For myself, the first thing I do with a seperate VRM heatsink is take it off and use a quiet fan to blow air on to the VRM area of the PCB - this is where the heat is. This has the added benefit of actively cooling the inductors and capacitors too....
    Cooling the epoxy component body is a fudge. If the epoxy (and thus any heatsink plonked on top of it) is running at 60C, the component die is way above that.....
    It's better than nothing, but only just."""

  • Question about clear page and reset pagination

    Hi,
    I have a question about clear pages and the reset pagination in an URL. What is the reason why a clear page doesn't also trigger a reset pagination on the pages which are cleared?
    I can't really imagine a business case where it makes sense to clear all data of page items on a page and don't reset the pagination of reports on that page which probably use a page item in there where clause...
    The drawback of this behavior is that a developer always has to set the reset pagination checkbox when he clears the target page and the even bigger drawback is that if you specify other pages to clear, you can't reset pagination for them, because reset pagination only works for the target page.
    Thanks for your input.
    Patrick
    *** New *** Oracle APEX Essentials *** http://essentials.oracleapex.info/
    My Blog, APEX Builder Plugin, ApexLib Framework: http://www.oracleapex.info/

    Enhancement request filed, thanks,
    Scott

  • The question about portlet customization and synchronization

    I have a question about portlet customization and synchronization.
    When I call
    NameValuePersonalizationObject data = (NameValuePersonalizationObject) PortletRendererUtil.getEditData(portletRenderRequest);
    portletRenderRequest.setPortletTitle(str);
    portletRenderRequest.putString(aKey, aValue);
    PortletRendererUtil.submitEditData(portletRenderRequest, data);
    Should I make any synchronization myself (use "synchronized" blocks or something else) or this procedure is made thread-safe on the level of the Portal API?

    HI Dimitry,
    I dont think you have to synchronize the block. i guess the code is synchronized internally.
    regards,
    Harsha

  • Please provide me some real time gaps(SD) in projects and their solutions

    hiiiiii everybody
                             please provide me some real time gaps(SD) in projects and their solutions for the sake of Interviews.
    Thanks and Regards

    hiiiiii everybody
                             please provide me some real time gaps(SD) in projects and their solutions for the sake of Interviews.
    Thanks and Regards

  • A question about item "type and release" of  source system creation

    Hello expert,
    I have a question about item "type and release" of  source system creation.
    As we know,when we create a web servie source system,there will display a pop-up which includes three items as "logical system","source system"and "type and release".
    About the item "type and release",when we push "F4" button,there will be three default selections as below:
    "ORA 115     Oracle Applications 11i
    TLF 205     Tealeaf 2.05B
    XPD 020     SAP xPD".
    Who can tell me when and how should I use the three selections.
    And also I attempted to input the item by some optional letters except the default three selections and it seems that I can input it freely.
    Thank you and Best Regards,
    Maggie

    Hello DMK,
    Thank you very much for your answer.It is very helpful for me.
    Can I ask you further about it?
    I got that it is a semantic description item.
    You said the default selections are set by our basis people.Would you like to tell me how should we creat a new value except the default ones for item "type and release"?Only by inputing the value in the item directly?But you see we canot see the new value item we created by ourself when we push "F4" button next time ,is that ok?Or do we have to ask basis people to define one new value item just like the default seletions before we use it.
    Also if possible would you like to describe detail about "This becomes important when you are troubleshooting certain issues especially when RFC connection problems."
    Thank you and Best Regards,
    Maggie
    Message was edited by: Maggie

  • Question about Java RMI and Eclipse

    I would like to create an application with which I can easily connect to a JAVA program, installed on a web server, through JAVA RMI. I have already created a ClientRMI.java and a ServerRMI.java and compiled them. The stubs also have been created properly.
    When I run the application outside the Eclipse editor, everything works just fine! However, when I want to integrate the files into a bigger project in Eclipse... and starts running it, he tells me he can't find the stub class or something like that. I need to place this one in the classpath but I don't know how to do that in Eclipse? Could anyone help me with this problem?
    Thanks!
    This is the fault message I get:
    no security manager: RMI class loader disabled)
    D-me

    Do you have an idea of what the answer to our
    question could be?I don't have much idea about the question myself. I was groping in the dark. :-)
    Anyway, the project classpath settings and the external jars (or dependent projects) are a few things which could be experimented with. I'm afraid I couldn't be much help without having a look at what you are trying to do. :-(
    Regards,
    x

  • 3 questions about FCP 7 and Blu-Ray

    Hi Folks,
    After reading the other posts on Blu-Ray and FCP 7 I still have just 3 questions:
    1. I would like to get an internal burner. I see that at MacMall they have one that is specific for my MacPro model (2008) and there's one that they sell for the 2009 version. So it seems that I have to select a specific drive for my Mac Pro model correct?
    http://www.macmall.com/p/MCE-DVD-Drives/product~dpno~7785361~pdp.fedabdd
    Does anyone recommend a specific brand/type?
    1. If I add the chapters mark on my project and export to a Quick Time file, will the chapters be present and accessible when I burn the Blu-Ray disk?
    2. Looks like the best option is to buy Toast but, just to make sure I understood the issue with the share to Blu-Ray: If I just have one simple project with a movie with about 10 chapters, is it worth trying to use the option to share to Blu-Ray or is it not recommended for any type of project?
    OK, I know I said 3 questions Just one more?
    Back in the days, I remember compatibility issues with some types of DVD media and DVD players (DVD-R, DVD+R, brand, etc). Is there such a thing with Blu-Ray media and the current players?
    Again, many thanks for your time and patience!
    Best regards,
    Ismenio

    I use OWC (macsales.com) for purchasing blu ray burners. good company.
    Not certain on markers.
    I create blu ray disc with Compressor in FCS3 without many issues but not using Share.
    I don't advise using Share.
    Set your markers on a short clip.
    Export self contained with the markers, and then use Compressor directly

  • A quick question about WebDynpro SLD and R/3 with concurrent users

    Hello ,
    I have a very quick question about Webdynpros and SLD connecting to an R/3 system, when you configure a webdynpro to connect to an R/3 system using SLD, you configure a user name and password from the R/3  for the SLD to use. What I would like to know is when I have concurrent users of my webdynpro, how can I know what one user did in R/3 and what another user did? Is there a way for the users of the web dynpro to use their R/3 credentials so SLD can access the R/3? Like dynamically configuring the SLD for each user?
    - I would like to avoid leaving their their passwords open in the code ( configuring two variable to get the users username and password and use these variables as JCO username and password )
    Thanks Ubergeeks,
    Guy

    Hi Guy
    You will have to use Single Sign On to achieve this. In the destination you have defined to connect to R/3 , there is an option to 'useSSO' instead of userid and password. This will ensure that calls to R/3 will be with the userid that has logged into WAS. You wont need to pass any passwords because  a login ticket is generated from WAS and passed on to R/3. The userid is derived from this ticket.
    For this to happen you will have to maintain a trust relation ship between R/3 and your WAS ,there is detailed documentation of this in help files. Configuration is very straight forward and is easy to perform
    Regards
    Pran

  • Questions about Java Servlets and JSP

    Hi,
    I'm a confident Java Programmer (and really enjoy using this language) but am very new to Java servlets and Java Server Pages.
    I have previously worked with Perl on my web projects (simple 'league' style voting pages). I read in my 'Core Java' book that I should no longer use perl or even cgi.
    I need to know more about Java servlets and Java Server Pages so I can make the switch to a 'real' programming language.
    I have a few questions:
    How should I start to learn JS and JSP?
    How applicable will the java knowlegdge I have already be?
    Are JSP common on the world wide web?
    What tools do I need to start? (I currently develop in JBuilder and have Java 1.4.1 Standard Edition)
    Is it likey my web host (and others) will support JSP?
    Thank-you very much for helping a novice get started,
    Regards,
    Paul

    Hi, Steve ...has to be frustrating! But do not despair.
    Let's suppose the servlet it's named MyServlet on package org.servlets
    WEB-INF should look:
    WEB-INF
    classes
    org
    servlets
    MyServlet.class
    web.xml
    web.xml file should have this two declarations:
    <web-app>
      <servlet>
        <servlet-name>MyServlet</servlet-name>
        <servlet-class>org.servlets.MyServlet</servlet-class>
      </servlet>
      <!-- other servlets -->
      <servlet-mapping>
        <servlet-name>MyServlet</servlet-name>
        <url-pattern>/MyServlet</url-pattern>
      </servlet-mapping>
      <!-- other servlets mappings -->
    </web-app>Now, once the container starts (Tomcat?), you should be able to see that servlet in:
    http://localhost:8080/[my-context/]MyServletAnd what my-context is? The web application context. This string should be empty if your're deploying to the root context, otherwise should the context name. In Tomcat, deploying to root context defaults to using webapps/ROOT.
    Sorry for my English, but I felt the need to answer your request. I hope it helps despite my writing.

  • Generic questions about CMYK profiles and proofing

    I just read a big book about color management and am trying to make it happen but it seems that in real life I can't get good results.
    I have my scanner profiled and it produces aRGB docs.
    All good and fine. The images look good on the monitor (which also is profiled.)
    Now these images I place inside InDesign as aRGB.
    And at some point comes the time for soft proofing.
    So I start experimenting with different CMYK profiles.
    First question: Should I already do a CMYK conversion for my images in Photoshop or is it ok to do it in InDesign when exporting to PDF?
    Coated Fogra27/39, ISO Coated v2 and Euroscale Coated v2 seem to change the colors only slightly.
    But when I turn on "Simulate Paper Color" all hell breaks loose. The paper color seems to be always a cold horrible grey and the image is darkened and dulled. It looks like in need of serious color correction.
    And further how do these generic profiles know about my paper color anyway?
    So maybe this feature should only be used if the profile is custom made for a specific printer and paper.
    Second question: has anyone succesfully used the simulation of paper color with a custom made profile?
    But it seems that custom profiles are something I can only use at home because the printing service providers seem to be quite unaware of profiling their machines for a specific paper (or profiling it at all).
    They tell me to send a "pure" CMYK file without any profiles. But that is impossible because to transform an RGB in CMYK one MUST use a profile.
    Third question: Which kind of profile should I use when I am instructed to provide a profile-less CMYK document?
    And finally what is the purpose of proofing in the first place if I don't know exactly the profile created for the combination of the output machine and output paper? This issue becomes clearer when using (slightly) colored paper.
    - Rami Ojares

    >First question: Should I already do a CMYK conversion for my images in Photoshop or is it ok to do it in InDesign when exporting to PDF?
    You can save the conversion until you make the PDF if you like, especially if you don't know the correct profile in advance, but you lose the ability to fine-tune and individual image.
    >But when I turn on "Simulate Paper Color" all hell breaks loose. The paper color seems to be always a cold horrible grey and the image is darkened and dulled. It looks like in need of serious color correction.
    I think this is mostly a case of your eye accommodating to the brightness of the screen. I'm not sure how to avoid this, and I generally don't use the simulate paper color. Comparing my screen to the real printed output without the simulation seems pretty close. Even a generic profile makes an assumption about the color of the paper stock, but a custom profile would be more accurate.
    >Third question: Which kind of profile should I use when I am instructed to provide a profile-less CMYK document?
    As you already said, you can't do the conversion without knowing the profile. What they are asking is that you don't embed that profile when you do the conversion to PDF. This means they can use a file prepared for the wrong profile and not risk further conversion at the RIP which would create rich blacks from you 100% K elements (type), but the colors wouldn't be 100% correct unless the profile you chose for conversion originally matched the press.
    Generic profiles are a quasi-standard that most presses can match, but may not be able to produce quite as wide a color gamut as a custom profile, but many presses don't have a custom profile available. You should ask for a "contract proof" to check the color before the press runs, and if possible go to the printer for the make-ready and check the color on the press before the whole run is printed. There is a LOT of color control available to a skilled press operator, and expect some variation through the run.
    Peter

  • Question about shared variables and report generator

    I have a project with about 200-250 shared variables and at every 12 hours i want to make a report containing information about some boolean and double front panel variables linked to the shared variables... Now, i've tried with both the "Write Trace to SpreadSheet File" function from DSC->History and with different functions from NI Report Generation Toolkit. My problem is this: i would like to get my xls file to contain just the timestamps when my shared variable changed value. As it is, the number of rows in the file depends, obviously, on the sampling interval given as input. As an example, in 12 hours, my shared variable would change value maybe 5-6 times. Thus i would like my xls file to contain just 5-6 rows with those 5-6 changes. If i set the sampling interval to say, a matter of seconds, that would mean too much unneeded information in my xls file. Instead, if i set it to let's say 15 minutes, i would probably lose the moment the shared variable changed value. Is there a way for me to achieve my desired functionality with functions from DSC or Report Generation Toolkit? Thanks in advance, Sabin 

    Hi Mike and thanks for the reply. Actually, my first idea was exactly this: in an event case structure, whenever my variable changed value, i would retain the relevant data in an array and then at the 12 hour period write all of it in a report. However, my boss deeemed it memory unefficient and compelled me to use only one function. Thus my predicament... If you have more advice on this new info, i would be grateful... Cheers, sabin

Maybe you are looking for

  • How to format MacBook Pro

    I tried to updrage my MacBook Pro while it was connected to the power charger, but the screen suddenly went blank and when I try to restart I get weird error messages and it won't restart. How can I reboot it or format it if necessary?

  • Join, and filter...

    When doing a join, and filtering, I want the filter to be applied first. For example if the callDisp file for the given date has 18 rows, and the treeProject has 47 records SELECT COUNT(*) from treeProject, callDisp Where treeProject.projectcode = ca

  • Export without artboard

    Hey all, If i export a file without using artboards there is no way to set crop marks?  I have hundreds of images that i made in CS4 and they exist with single artboards (obviously), but now when i export the image with the artboard i get -01 added t

  • Where can I get JSF 1.1_02-b08 ?

    Hi, I've seen this version number used by third party open source provider but, I can't find it anywhere. Why isn't on the Sun website? Can someone direct me to a site where I could download it and read the release notes. Thanks

  • Time machine fails on iMac, MacBook Pro

    Time machine fails on macs w/local disks at 2 diff sites. Err Msg: "Unable to complete backup. An error occurred while creating the backup folder." First try after re-start wrks, 2nd fails.  Only connection via cloud- iCloud, Dropbox, Evernote.  Coul