Wrong classes output directory when use of dependant projects

Hi,
JDev 10.1.2.1 but also in previous versions.
Windows XP Prof, AMD Athlon, 1 Go Mem
I have following setup:
Projects:
DTO (data transfer objects and utility classes used in other projects)
-> dependies: none
Directory tree:
MyWorkspace\DTO\classes
MyWorkspace\DTO\src
Model (model classes)
-> dependies: DTO
Directory tree:
MyWorkspace\Model\classes
MyWorkspace\Model\src
View (JClient app)
-> dependies: DTO, Model
Directory tree:
MyWorkspace\View\classes
MyWorkspace\View\src
WebView (Struts app)
-> dependies: DTO, Model
Directory tree:
MyWorkspace\WebView\deploy
MyWorkspace\WebView\model
MyWorkspace\WebView\public_html
For some unexplained reasons sometimes (difficult to reproduce)
JDev get confused and DTO classes, sometimes Model classes are copied to the View project classes directory.
Example utility class of the DTO project:
source:
MyWorkspace\DTO\src\com\photoswing\dto\util\TextUtils.java
instead of being generated in:
MyWorkspace\DTO\classes\com\photoswing\dto\util\TextUtils.class
is found in the View claases output directory (directory tree created by JDev):
MyWorkspace\View\classes\com\photoswing\dto\util\TextUtils.class
I noticed that regularly the JDev navigator has synchronization problems and can't find the class when activating the right-click Select in Navigator action in an open source file.
This generally happens when switching from source files of different projects.
Now if you compile a source file and the navigator has a synchronization problem following warning is displayed:
Warning: The file is not part of the active project DTO.jpr, compiled class will be written to DTO.jpr output directory
When only one file gets compiled this can be repaired easely by deleting the class written in the wrong directory.
But when several files are changed and are compiled the warning is only displayed for the current source file and all classes output trees must be scanned manually.
When testing the app if I'm not wrong JDev reads from the classes directories and doesn't produce a jar file, so deleting manually the wrong classes is a valid workaround.
But what if the app gets deployed and jars are generated?
I can't imagine myself changing manually the produced jars by removing the wrong classes and what about the manifest?
Your help is requested.
Regards
Fred
PS Can't provide a TestCase => happens in complex environment only.

Glad to know I'm not the only one having that serious problem.
JDev by default create at least 2 different projects (model and view) so it seems to be a standard.
Working simultaneously on source files of different projects seems to the cause the trouble.
Is there somekind of patch available?
Could somebody of Oracle answer the question of the first message of this thread?
Thanks
Fred

Similar Messages

  • Does resteasy API have class loader issues when using via OSGi

    Does resteasy API have class loader issues when using via OSGi

    Hi Scott,
    THis isnt an answer to ur Question, but could u tell me which jar files are needed for the packages:
    com.sap.portal.pcm.system.ISystems
    com.sap.portal.pcm.system.ISystem
    and under which path I coul dfind them.
    Thnx
    Regards
    Meesum.

  • Class not found when using JvmModelInferrer

    I am trying to transform one of my language elements to a class using the ModelInferrer approach. This generated class should extend a class (AbstractMatcher) from an external project. The external project is added to the build path of the Xtext model project as an external class folder and to the run-time project in the same way. It should be noted that the external project is a plug-in built in Helios SR1. I am able to reference the AbstractMatcher class from the xtend source code (it is available for auto complete and imported correctly), but when I start runtime eclipse, I get a java.lang.NoClassDefFoundError when trying to add a superType to the generated class. If I substitute the AbstractMatcher with a dummy like java.util.ArrayList everything works fine. I have tried to make a simple Java class inside the runtime Java project and reference the AbstractMatcher from it and this also works fine. Everything seems to be able to find the offending class except the ModelInferrer.
    import external.package.AbstractMatcher
    def dispatch void infer(Matcher matcher, IJvmDeclaredTypeAcceptor acceptor, boolean isPreIndexingPhase) {
    acceptor.accept(matcher.toClass("matchers." + matcher.name.toFirstUpper + "Matcher")) [
    superTypes += typeRef(AbstractMatcher) // <---exception here
    Stack trace:
    java.lang.NoClassDefFoundError: org/talend/designer/xmlmap/figures/treetools/zone/matchers/AbstractMatcher
    at org.xtext.example.mydsl.jvmmodel.MyDslJvmModelInferrer$1.apply(MyDslJvmModelInferrer.java:78)
    at org.xtext.example.mydsl.jvmmodel.MyDslJvmModelInferrer$1.apply(MyDslJvmModelInferrer.java:1)
    at org.eclipse.xtext.xbase.jvmmodel.JvmModelAssociator$1.run(JvmModelAssociator.java:397)
    at org.eclipse.xtext.xbase.jvmmodel.JvmModelAssociator.installDerivedState(JvmModelAssociator.java:407)
    at org.eclipse.xtext.resource.DerivedStateAwareResource.installDerivedState(DerivedStateAwareResource.java:240)
    at org.eclipse.xtext.xbase.resource.BatchLinkableResource.getContents(BatchLinkableResource.java:148)
    at org.eclipse.xtext.xbase.typesystem.internal.LogicalContainerAwareBatchTypeResolver.getEntryPoints(LogicalContainerAwareBatchTypeResolver.java:44)
    at org.eclipse.xtext.xbase.typesystem.internal.DefaultBatchTypeResolver.getTypeResolver(DefaultBatchTypeResolver.java:63)
    at org.eclipse.xtext.xbase.typesystem.internal.CachingBatchTypeResolver$1.get(CachingBatchTypeResolver.java:49)
    at org.eclipse.xtext.xbase.typesystem.internal.CachingBatchTypeResolver$1.get(CachingBatchTypeResolver.java:1)
    at org.eclipse.xtext.util.OnChangeEvictingCache.get(OnChangeEvictingCache.java:77)
    at org.eclipse.xtext.xbase.typesystem.internal.CachingBatchTypeResolver.doResolveTypes(CachingBatchTypeResolver.java:46)
    at org.eclipse.xtext.xbase.typesystem.internal.AbstractBatchTypeResolver.resolveTypes(AbstractBatchTypeResolver.java:69)
    at org.eclipse.xtext.xbase.resource.BatchLinkingService.resolveBatched(BatchLinkingService.java:71)
    at org.eclipse.xtext.xbase.resource.BatchLinkableResource.resolveLazyCrossReferences(BatchLinkableResource.java:165)
    at org.eclipse.xtext.EcoreUtil2.resolveLazyCrossReferences(EcoreUtil2.java:528)
    at org.eclipse.xtext.builder.clustering.ClusteringBuilderState.doUpdate(ClusteringBuilderState.java:234)
    at org.eclipse.xtext.builder.builderState.AbstractBuilderState.update(AbstractBuilderState.java:115)
    at org.eclipse.xtext.builder.impl.XtextBuilder.doBuild(XtextBuilder.java:248)
    at org.eclipse.xtext.builder.impl.XtextBuilder.incrementalBuild(XtextBuilder.java:228)
    at org.eclipse.xtext.builder.impl.XtextBuilder.build(XtextBuilder.java:123)
    at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:734)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)
    at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:299)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:302)
    at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:358)
    at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:381)
    at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
    at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
    I sense that this is actually an OSGi problem, since I see this is how typeRef tries to find the reference, but I don't know how to get around it. I am not able to add the external plugin containing the AbstractMatcher class as a dependency and I'm not sure if it would be possible due to different Eclipse versions (Helios vs Luna).

    On 13.07.15 12:39, Zeljko Vukovic wrote:
    > but when I start runtime eclipse, I get a java.lang.NoClassDefFoundError
    > when trying to add a superType
    Does it work for you if you refer to the AbstractMatcher from Java-code
    that is in a project in the runtime instance?
    Best,
    Sebastian

  • Why can't a new folder be created within my user home directory when using 'Save As' in Mountain Lion?

    Hi,
    So I want to create a new folder within my main user home directory (not the root directory) just for my developer-related files? I can do this from Finder, although it does prompt me for my password to do so. However, when using 'Save As' from any app, the 'New Folder' button is greyed out when I select my user home directory. So I have to create the folder in Finder then Save As.
    Is this normal behavior? Is OSX discouraging me from adding things to my user home directory by making it less convenient? Is there a good reason it would be discouraging me from creating new folders there? If not, is there a setting that I can change to allow the creation of new folders from the Save As prompt?
    Thanks for your help,
    B

    You may need to rebuild permissions on your user account. To do this,boot to your Recovery partition (holding down the Command and R keys while booting) and open Terminal from the Utilities menu. In Terminal, type:  ‘resetpassword’ (without the ’s), hit return, and select the admin user. You are not going to reset your password. Click on the icon for your Macs hard drive at the top. From the drop down below it select the user account which is having issues. At the bottom of the window, you'll see an area labeled Restore Home Directory Permissions and ACLs. Click the reset button there. The process takes a few minutes. When complete, restart.   
    Repair User Permissions

  • Update sequence wrong in Materialized view when using refresh group

    Hi,
    I made a trigger (for each row) on a materialized view(replication data from a master table in in a different database), which is refreshed by a refresh group (exec dbms_refresh.refresh('"...). However, the update order/sequence is important and must be handled (by the trigger) in the same order how the updates where done in the master table. Unfortunately the updates in the materialized view are NOT in the same order. The trigger is fired in a wrong order.
    I am using database version 10.2.0
    Does anybody reconize this problem, Is there a solution for this problem ( with keeping the refresh group mechanisme)?
    Thanks
    Regards
    Jurn

    rownum is determined as the row is output, so "order by rownum" does literally nothing.
    http://docs.oracle.com/cd/B19306_01/server.102/b14200/pseudocolumns009.htm

  • Audio Output Corruption when using USB MIDI keyboard controller

    recently, i'm getting intermittent corrupted audio output (short blips of distortion) while playing through my usb midi keyboard. i thought maybe some data got corrupted on the disk over time so i wiped the drive, reinstalled osx, installed all updates, hooked up usb keyboard and all worked fine. today, i plugged in the keyboard and the distortions have reappeared. i unplugged the keyboard and played with the Musical Typing- still distorted. i rebooted and tried Musical Typing- still distorted. I removed the usb midi keyboard device from Audio MIDI Setup, rebooted, and the distortions have disappeared when using Musical Typing. Connecting the keyboard causes the distortions to reappear. I'm at a loss.
    Any ideas?
    environment:
    macbook pro
    osx 10.4.11
    gb 4.1.2
    studiologic vmk188 plus

    UPDATE:
    I decided to try going through an Firewire Audio Interface instead. Keyboard-(MIDI)->MOTU Traveler-(Firewire)->MacBook Pro.
    Same corruption/hiccups/choppy playback.

  • HT1430 What is the output power,      when using a portable batteries that the iPad need to charge up??

    What is the output power needed to charge a iPad,  when using a portable battery?
    Will 2.1A output work?
    Thanks

    The wall charger which comes with the ipad is a 10 watt charger, it's current is 2A, voltage is 5v. 2x5=10 w.
    2.1Ax5v = 10.5w.

  • Virtual directory when using xml db http

    Is it possible to create a virtual web directory (reachable using http) to a physical directory in my server?
    I am running apex using xml db http with oracle 11.2.
    thanks

    Apache/Lighttpd. is it a free product?Yes both of them are free.
    Please see http://www.beyondoracle.com/2008/04/05/reverse-proxying-apex-in-a-dmz/
    I personally feel that Lighttpd works better specially if there is too much Ajax involved in your application but unfortunately I did not find any tutorial ready for that. Also for starters (in this particular subject) I recommend Apache since there is enough documentation available and you can get many people who can be helpful to setup this.
    Zulqarnain
    MaxApex Hosting
    http://www.maxapex.com

  • Counter output 2V when using gate and source at the same time..

    I'm using NI TIO-6601.
    I connected output of counter_0 to pfi 34 and pfi27 on hardware(CB-68LP).
    pfi 34 is used for gate to counter_1 and counter_2.
    With this gate, counter_1 and counter_2 generate pulse trains when the gate is in high state.
    pfi 27 is used for source to counter_3.
    With this source, I'm trying to let counter_3 count event on counter_0.
    However, after this connection, the voltage from counter_0 is about 2V measured by Oscilloscope.
    Also, counter_3 cannot count the event on counter_0.
    Is there any problem on my connection ? or any tips for solving this problem??
    Thanks in advance!!
    p.s. It works when only two counters are working.
    for example, when counter_0 generates pulse tra
    in and output is connected to pfi_27, then counter_3 can count the event on counter_0.
    Thanks again!

    Hello,
    Thank you for contacting National Instruments.
    This issue may be related to amount of current the output of counter 0 can produce. You may want to try a different method for making these connections. Try routing your counter 0 output on to RTSI line 1. Then use RTSI1 as the gate for counters 1 and 2 and the source for counter 3. This way, you will not need to use two seperate PFI connections.
    If you are using Trad. DAQ and LabVIEW you will need to use the Route Signal.vi. If you are using DAQmx, you will need to use the Export Signal.vi
    Regards,
    Bill B
    Applications Engineer
    National Instruments

  • Objects not initialized properly when using JSF dependency injection

    I get NullPointerException at line :
    this.getLogger.displayMessage();
    Can anyone tell me how to correctly inject a property into the base class so that it is also available to its child classes?
    Is my syntex in faces-config.xml correct?
    public class Logger
         public void displayMessage() {System.out.println("Some message.....");}
    public class BaseBackingBean
         private Logger logger;
         public Logger getLogger()
              return logger;
         public void setLogger(Logger logger)
              this.logger = logger;
    public class BackingBean
         public void log()
              this.getLogger.displayMessage();
    <faces-config xmlns="http://java.sun.com/JSF/Configuration">
    <managed-bean>
         <managed-bean-name>BaseBackingBean</managed-bean-name>
         <managed-bean-class>com.test.BaseBackingBean</managed-bean-class>
         <managed-bean-scope>session</managed-bean-scope>
         <managed-property>
                   <property-name>logger</property-name>
                   <property-class>com.arch.Logger</property-class>
                   <value>#{logger}</value>
         </managed-property>      
    </managed-bean>
    <managed-bean>
         <managed-bean-name>BackingBean</managed-bean-name>
         <managed-bean-class>com.test.BackingBean</managed-bean-class>
         <managed-bean-scope>session</managed-bean-scope>      
    </managed-bean>
    </faces-config>

    You are confusing classes with instances. When you define a bean in the faces-config.xml, you create an instance of that class. I'm sure you understand that if you create an instance of the base class and change its properties, that has no effect on other instances of that class or of the derived class. (For some reason however, it is easy to forget this when dealing with containers.) So the property configuration for the bean BaseBackingBean has no effect on the bean BackingBean in your example above.
    A better pattern to use in this situation is aggregation rather than extension. In other words, define the base bean as a utility bean and inject it into the old derived beans as a property. Now all the old derived beans have access to the same instance of the utility bean with the same configuration. If you want to use the same configuration without re-using the same instance, take a look at the "none" managed bean scope.

  • Wrong pricing condition values when using GN_INVOICE_CREATE

    Hi all,
    I am currently handling a program where I have to display all the materials in a given sales area and some corresponding values that depend on pricing conditions. I am using FM GN_INVOICE_CREATE to extract table komv. However, I am experiencing a problem because the values I am getting are different from those in table konv. I am getting the price conditions without the value of field KNUMV.
    I would like to ask if anybody has any idea on how to go about this or maybe another function module that I can use to get the data I need.
    Thanks a lot..
    Regards,
    jac

    Hi,
    Thanks for your reply. I only have the field AUART for checking on the pricing conditions.
    Here is a the part of my code
      CALL FUNCTION 'GN_INVOICE_CREATE'
           EXPORTING
                vbsk_i           = i_vbsk
                id_kvorg        = ''
                id_no_dialog  = c_exis
                invoice_date  = p_datum
                pricing_date  = p_datum
           IMPORTING
                vbsk_e          = i_vbsk
           TABLES
                xkomfk         = i_komfk
                xkomfkgn      = i_komfkgn
                xkomfkko      = i_komfkko
                xkomv          = i_komv
                xthead         = i_thead
                xvbfs           = i_vbfs
                xvbpa          = i_vbpa
                xvbrk           = i_vbrk
                xvbrp           = i_vbrp
                xvbss          = i_vbss
           EXCEPTIONS
                OTHERS       = 1.
    The only parameters in those that have values are c_exis = X, p_datum = given date, and xkomfkgn. The other parameters are all initial when passed to the function module. I get a resulting komv table however, values are incorrect.
    Thanks again for the help..
    Regards,
    jac

  • How to produce Material output message when use bapi function?

    Dear Experts :
    I use bapi BAPI_GOODSMVT_CREATE to receive stock.
    I find the output message can't create automatically even when I have set the type in MR21.
    Hope someone can teach me how to produce the message when I create the material document by BAPI function.
    Thanks a lot.

    Hi,
    The messages are stored in the return table of the bapi.
    You can search in SCN or Google for BAPI error handling.

  • System copy error when using DB depending methods

    Hi,
    I would like to do a system copy to transfer the database instance to another host.
    My current system is ERP6.0 under NW 7.0 SR3 with DB2 9.1.7.
    The kernel level is 7.20 REL running under windows 2003 R2 enterprise version.
    I used the SPM 1.0 with database depended methods.
    An error occurred when processing Grant Database Privileges On Tables under execute process.
    Refer to below error taken from sapinst.log:
    UPDATE COMMAND OPTIONS USING S OFF
    DB20000I  The UPDATE COMMAND OPTIONS command completed successfully.
    UPDATE COMMAND OPTIONS USING A OFF
    DB20000I  The UPDATE COMMAND OPTIONS command completed successfully.
    UPDATE COMMAND OPTIONS USING X ON 
    DB20000I  The UPDATE COMMAND OPTIONS command completed successfully.
    UPDATE COMMAND OPTIONS USING O OFF
    ERROR 2014-08-05 14:41:39.29
    MDB-01999  Error occured, first error is: <SQL0104N  An unexpected token "" was found following ")".  Expected tokens may >
    ERROR 2014-08-05 14:41:39.169
    MUT-03025  Caught ESAPinstException in module call: .
    ERROR 2014-08-05 14:41:39.279
    FCO-00011  The step drop_saptools with step key |NW_ABAP_DB|ind|ind|ind|ind|0|0|NW_CreateDBandLoad|ind|ind|ind|ind|createdbandload|0|NW_Postload|ind|ind|ind|ind|postload|0|NW_Postload_DB6|ind|ind|ind|ind|db6|0|drop_saptools was executed with status ERROR ( Last error reported by the step: Error occured, first error is: <SQL0104N  An unexpected token "" was found following ")".  Expected tokens may >).
    INFO 2014-08-05 14:41:39.372
    Creating file C:\Program Files\sapinst_instdir\BS2005\ERP60SR3\LM\COPY\DB6\SYSTEM\DISTRIBUTED\AS-ABAP\DB\__instana_tmp.xml.
    INFO 2014-08-05 14:41:39.841
    Removed file C:\Program Files\sapinst_instdir\BS2005\ERP60SR3\LM\COPY\DB6\SYSTEM\DISTRIBUTED\AS-ABAP\DB\instslana.xml.
    INFO 2014-08-05 14:41:39.841
    Creating file C:\Program Files\sapinst_instdir\BS2005\ERP60SR3\LM\COPY\DB6\SYSTEM\DISTRIBUTED\AS-ABAP\DB\instslana.xml.

    Hi Maria,
    I backup the DB2 V9.1 using offline & restore it in V9.7 and then it will success when processing Grant
    Database Privileges On Tables under execute process.
    Thanks.

  • Class casting problem when using two class loaders

    Hi, I have a problem with class casting using two different ClassLoader...
    I created an instance of Test class, which is a subclass of AbstractTest and stored it for later use to ArrayList<AsbtractTest>. The instance was created with a custom class loader which extends URLClassLoader. Later when I got the stored instance from the ArrayList<AbstractTest> in default ClassLoader context and cast it to Test, it failed saying "java.lang.ClassCastException: com.test.Test cannot be cast to com.test.Test".
    Does anybody have an idea why this happens?

    Yes - a class is identified by it's package, it's name and it's class loader so the same class code loaded with two different class loaders are two different classes.
    An approach to dealing with your problem is to have the class implement an interface that is loaded by the parent class (assuming, of course, that the two class loaders have the same parent) then you can cast to the interface.

  • 6601 output counter when use Simple event Counting Mode

    I want to put the ouput counter in a high, while I count event. How to do that with set attribute?
    Attachments:
    Consulta.vi ‏78 KB

    It looks like you want this vi to count events until you reach some specified target value ('Pulsos'), then stop the counter. It sounds like you'd like the counter's output to toggle high the instant you start counting and toggle low as soon as a certain count is reached.
    First off, I'm pretty sure you can't get hardware-timed behavior quite like that. That being said, your posted example appears to rely on software timing anyway -- attempting to call 'Counter Set Attribute' to toggle the output. Soooooo.... why not simply use a digital bit that you can also software time to turn on and off?
    Here's a small modification of your example that toggles a digital bit high when the counter is started and toggles low when your target count is re
    ached. In your real application, some of the config should probably be done outside this vi, but this'll give you the general idea.
    -Kevin P.
    Attachments:
    Consulta_ver2.vi ‏99 KB

Maybe you are looking for

  • Error While extending PoRequisitionLinesVO

    Hi, I am facing an error while trying to extend the VO PoRequisitionLinesVO at iProcurement Ckeckout Page. I tried with adding and new calculated column as PackSize. pls check below error and suggest how to resolve this issue. oracle.apps.fnd.framewo

  • Updates stopping halfway through

    Hey everyone, I'm trying to get the "GarageBand Instruments and Apple Loops" update for GarageBand which is 1.2 gb all together. The problem that I'm getting is that the update quits halfway through and when I try to do the update again it starts ove

  • I can't download itunes 11.1, I can't download itunes 11.1

    can someone help i can't download itunes 11.1 when i try it tells me i need to update to OS X version 10.6.8 or later but my updates is up to date so confused.

  • Acrobat Pro X - W7 64-bit - can't access Help

    Hello. I'm working with a brand new install of Acrobat Pro X on my Windows 7 64-bit machine. Acrobat is working fine as far as I can tell. Except that when I try to access "Help" I get the message that a required application library or file for the H

  • Javascript - missing links - conflicts?

    I have and intel iMac and a Powerbook G4 both running OSX 10.4.11 with all the latest updates. On my iMac, on some sites (and particularly a site I developed myself) links for pop-up windows do not display or function on the page. The same happens if