How to share common classes across multiple projects in Jdeveloper?

Hi Experts,

I have a basic question.
I use Jdeveloper 11 g and have divided my app in 2 projects (Model (ejb's) and Viewcontroller (jsf + beans controlled etc.)).
The pilot project has a (named VisitingScholarBean) stateless session bean that uses a java bean class (named VisitingScholarDetails) defined in the ViewController project.
The method used in the stateless session bean is public Sub saveVSDetails (VisitingScholarDetails vsDetails).
Now the question is that the class is VisitingScholarDetails part of the ViewController project only but is used in the template project.
Then, when I try to run the application, it gives an error saying that
weblogic.application.ModuleException: Exception preparing module: EJBModule(VisitingScholar-Model-ejb)
[EJB:011023]An error occurred while reading the deployment descriptor. The error was:
 edu/nyu/ecoms/oaa/vs/web/backing/VisitingScholarDetails.
     at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:452)
     at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
     at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387)
     at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
     at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58)
     Truncated. see log file for complete stacktrace
java.lang.ClassNotFoundException: edu.nyu.ecoms.oaa.vs.web.backing.VisitingScholarDetails
     at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:283)
     at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:256)
     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)
I can't reproduce the same class of VisitingScholarDetails in two projects that will lead to duplication.
Please let me know how to include the VisitingScholarDetails class in the ejb - jar without replication there in projects and model view controller.
Thanks for your time and your help.

Published by: user10376431 on January 24, 2010 06:25

Welcome to in OTN.

to do two projects can access its classes you should goto the project---> dependencies property and then add the other project.

in your case:

try to goto you model project---> dependencies property---> change the dependencies.

you will find your ViewController project. Expand it check thin in the release build.

You can do this for the project also ViewContoller as:

GoTo you project ViewContoller---> dependencies property---> change the dependencies.

you will find your model project. Expand it check thin in the release build.

Sameh Nassar

Tags: Java

Similar Questions

  • How to import the class from another project in Jdeveloper 11.1.1.7

    I have an application with many projects. I create new project with the application and I want to import a class from another project with demand.

    But I am getting error ( found import.somePackge.someClass). I have red that I need to add it to the path of bulid project but no idea how.

    I use Jdeveloper 11.1.1.7

    Click the project--> project properties, dependencies, click here to change the Righ pencil icon and check the build output

  • How to share a beach of a project?

    I have a project of twenty minutes, and I would like to share a segment of three minutes with a collaborator. The project has a main timeline of connected clips, (sub) titles - and a separate audio track.

    How do I select a range of the entire timeline and share it?

    MMark in and out of the points and export. It will export this segment.

  • How to share the library with multiple users?

    I have a Mac Pro 2008.  I have four internal hard drives.  One of them is an SSD that is my boot drive.  I have another internal drive that houses my music and movies (2 TB).

    I have four different connections - mine (admin), my wife, my son, my daughter.

    How can I share music on (2 TB) library with other users?  I read to the music folder (shared) - however since the 2 TB is not a boot disc, there is no shared folder.

    You try to share an iTunes library, or the drive contains just music files.

    Other users can see the drive, or simply don't have access to the records.

  • How to open PDF files across multiple desktops in Windows 10 Adobe Acrobat Reader task view?

    I am running Windows on an Acer Aspire S7 10.

    The question is, when I open a PDF on your desktop and then move to another office using Windows task view, I can't open a new PDF file open on the new office. What is the reader is that it opens the PDF on the originating office.

    Could someone suggest how to solve this problem, which is to make a file PDF open in new office and not the original?

    Thank you.

    Hi torezhan94,

    Please open Adobe Reader.

    Click Restore to the low next icon in the upper right corner.

    Move to the next screen and shut up (do not maximize)

    Open it again and now maximise

    Subsequently, it will open on the other screen.

    Thank you

    Abhishek

  • How can I request the same information in the fields of specific metadata across multiple files, i.e. date of reference, artist, genre, composer, technician

    How can I request the same information in the fields of specific metadata across multiple files, i.e. date of reference, artist, genre, composer, technician.  Most of the fields I want to fill/use will be the same for files of 50-100, then each file will have a few things specific to that individual file.

    Unfortunately, it cannot be done from within hearing. Adobe Bridge is probably the software you need to do this or there are a few applications available third-party metadata. I use metadata Touch.

    MetadataTouch - powerful multiformat metadata editor

  • DLL of multiple functions that share common variables.

    Hello.

    I want to build a dll with many functions. The functions are open, close, read, write and many other operations with many instruments.

    The different functions are different Subvi inside the dll.

    My question is how to share variables between the various subvis.

    For example, the 'open' vi will initiate communication with several instruments, how the name of resource VISA information will be shared between the other vi?

    The obvious answer to me is the use of global variables. The reason that I ask is to check that. For example, is it create a more effective way to handle this, especially for this use?

    In addition, an example would be very useful if it isn't too much trouble.

    Thank you very much.

    Vasileios.


  • How to share computer laptop computer wifi laptop bluetooth that can use internet with Bluetooth?

    Hello

    I want to share my laptop wifi with computer laptop bluetooth, how to share?

    I need now

    Please help me...

    Hello

    Thanks for posting your query on the Microsoft Community.

    According to the description, I understand that you want to share mobile Wi - Fi.

    I would like to know some information.

    1. What is the brand and model of your two laptops?

    2. The other laptop only has a Bluetooth but no Wi - Fi?

    I wish to inform you that unfortunately, you can not use Bluetooth to connect to the internet. You must have a wireless PCI card.

    Wi-Fi connections can reach a distance more than the alternative wireless listed above. Many newer computers, especially laptops, now contain integrated Wi - Fi capabilities makes it the first choice in most situations. A Wi - Fi connection can be used with or without a device on the network. With two computers, Wi - Fi networks under a luminaire (also calledad-hoc mode) are particularly simple to implement.

    Bluetooth technology supports wireless reasonably high speed between two computers without the need for a network device. Bluetooth is more commonly used when the network to a computer with a consumption as a handheld device phone cell. Most desktop computers and most do not have the Bluetooth capability. Bluetooth works best if both devices are in the same room in close proximity to each other. Consider the Bluetooth if you have interest in networking with handheld devices and your lack of computers of the Wi - Fi capabilities.

    You may consult:

    http://Windows.Microsoft.com/en-us/Windows/connect-Bluetooth-Pan#1TC=Windows-7

    Hope this information helps. Please let us know if you need any other help with Windows in the future. We will be happy to help you.

  • The getCurrent method on the oracle.adf.share.ADFContext class is not allowed

    Hi all

    I've migrated my old project i.e 12.1.3 to new version 12.2.1.

    After the migration of the project where ever, we use ADFContext.getCurrent () .getSessionScope () .put ("dummy", 1);

    put the variable in the session. We receive the exception as Houston-25150: the getCurrent method on the oracle.adf.share.ADFContext class is not allowed. In the earlier version, but its works very well.

    What will be the question. Please can someone let me know.

    Thank you

    Amar

    This error except for security, so try to use the expression adf.context.current.sessionScope.get ("dummy") (or attempt to use this as a groovy adf.context.sessionScope.dummy expression) attribute EO and trustMode = "true" for this attribute set.

    For more details check this url

    Tarek Fathy: oracle.jbo.ExprSecurityException Houston-25150

  • How to share an app with preflight 2015?

    How to share an app with preflight 2015?

    All that you would like to share an application through preflight must be a 'user' on the project for that application. Thus, you can add a user who may not have 'view' permission, but as long as their Adobe ID is part of this project, this app will appear in their preflight application when connected with their Adobe ID

    Basically, preflighting is associated with the Adobe ID. the user any project is associated with an ID Adobe ID will appear when this Adobe ID is registered to control upstream.

    Hope that helps!

    -Tommy

  • How to export a jar of the project

    Hello, everyone, I'm a newbie here.

    I'm working on a java project that uses a lot of external jar files. During this time I developed a class in this project that responds to these jar files. When I finished this project, I would like to export my custom class with all the libraries of reference as a single pot, so that I can reuse in other projects.

    However, how can I do?

    P.S. I'm using Eclipse as my IDE.

    It sounds very complicated. Genarally you can "explode" all the jars required in a directory of trees and jar them upward again.

  • How to create a class?

    Hey everybody! I'm a flash newbie. can someone tell me how to create a class?

    I guess you know what a class is right there. In case you haven't, a class is essentially an action plan which new objects are instantiated. He describes the State and behavior that objects of the class all share. You can learn more on this topic in detail in wikipedia. Creating a class in flash is rather simpler than in C++ and a bit different since you need not all definitions of prototype. Let's take an example. Create an active 'FLA' with AS3 file and an external ActionScript file (which is a text file with the extension ".as"). In the file AS to place this code:

    package / /package can have a name next to it

    {

    public class MyClass //class definition

    {

    private var nMemberVarValue:Number;

    public void MyClass(nSomeValue:Number) //Constructor

    {

    nMemberVarValue = nSomeValue;

    }

    public function getTheValue (): number function //Member

    {

    Return nMemberVarValue;

    }

    }

    }

    In this example, you have a class named "MyClass" that has a constructor (should be the same name as the class) that accepts a single parameter. It has a public function (accessible method by external objects) "getTheValue" and a variable private "nMemberVarValue" which is encapsulated in the class. Now in the 'FLA' file, place the following code that instantiates an object of your class 'MyClass ':

    import MyClass;

    var cMyInstance:MyClass = new MyClass(1234);

    trace (cMyInstance.getTheValue ());

    You'll see when you run your file with CTRL + ENTER, it will trace the value 1234 in the output window. Best practice is to keep in the classroom through ActionScript (.as) file. 1234 is only an example setting. You don't need a constructor to accept all settings, depends on what you plan to do class.

  • How to share the Captivate 4 slideshow

    Hello

    I created my first slideshow in Captivate 4 which includes 65 photos.

    1. can I he publish in Google Picasa so that my friends can see them?

    2 if not, how I share, and another user have to have Captivate to observe it.

    Thank you

    Hello

    Maybe I'm not always very clear, because English is only my third language. Photoshop was my first "love" of the Adobe brand, many, many years ago (started with version 2.5, after the death of Photostyler) and I'm still a big fan, it helps all the time (even for the improvement of the screenshots). Don't know of fireworks, I'm an academic and we're tight budgets. Always have a bunch of tests on my machine to judge existing opportunities. Very happy that I could recommend and use PS, Acrobat, Captivate, and recently the SLE. When I mentioned to be a control freak, you'll understand why I'm not fan of MS products (having to learn MS Project and always cursing it) because there are so many things behind the scenes that we can't control. PS, in particular with the latest features in CP I have never the same frustrations. Hope that this explanation is sufficient?

    Lilybiri

  • Solved: How use the display objects in several projects?

    I have an object of common view that I need to use in several projects. How to import a view object pre-created in a project to re - use?

    Thank you
    Kurz

    Published by: Kurzweil4 on July 14, 2010 12:15

    In the package where the VO is defined, there should be a file server.xml file that contains all the BC4J objects. You can then add this file to your project in JDeveloper and it will add all the your defined in the file.

    Kind regards
    LC

  • How to share photos of clouds with Skype?

    How to share photos of clouds with Skype?

    iCloud does not support sharing with Skype.

    iCloud, sharing photos - Apple Support

Maybe you are looking for