Deploying large applications and common used classes

I've got an application containing EntityBeans, statefull/stateless
SessionBeans, and a Webapplication. Every component is packed in a jar File
and all together in an EAR-File as an application.
Those EJBs share some common classes, for example:
EjbA in A.jar and EjbB in B.jar share a Helperclass C.
Where do I put this class C? I try to avoid to put this class C in the
Classpath of the application server. And when I put C in both jar-Files I
got a ClassNotFoundException in one of the EJBs. I'm using WLS 6.0.
Any ideas? Thanx in advance.

FYI, this is fixed in 6.1
Torsten Friebe wrote:
Hi Daniel,
thanks, this article answers my question. But does WLS 6.0 or 6.1 allready
support J2EE Packaging as described in J2EE 1.3 Spec (PFD3) Chapter 8?
Cheers
Torsten
"Daniel Hoppe" <[email protected]> schrieb im Newsbeitrag
news:[email protected]..
Hi Torsten,
there is no really good solution so far. Check out this link, it
elaborates this topic in detail.
http://www.onjava.com/pub/a/onjava/2001/06/26/ejb.html
Cheers,
Daniel
-----Ursprüngliche Nachricht-----
Von: Torsten Friebe [mailto:[email protected]]
Bereitgestellt: Freitag, 29. Juni 2001 11:59
Bereitgestellt in: environment
Unterhaltung: deploying large applications and common used classes
Betreff: deploying large applications and common used classes
I've got an application containing EntityBeans, statefull/stateless
SessionBeans, and a Webapplication. Every component is packed
in a jar File
and all together in an EAR-File as an application.
Those EJBs share some common classes, for example:
EjbA in A.jar and EjbB in B.jar share a Helperclass C.
Where do I put this class C? I try to avoid to put this class C in the
Classpath of the application server. And when I put C in both
jar-Files I
got a ClassNotFoundException in one of the EJBs. I'm using WLS 6.0.
Any ideas? Thanx in advance.

Similar Messages

  • Deploying JEE application and SOA Applications on the same SOA Dom

    Are there known issues in deploying SOA Applications and Weblogic/JEE application on the same SOA Domain.
    Couple of the issues that I can think of is if that
    If SOA Domain is unstable it will also impact JEE applications.
    SOA Domain depends on the SOA DB and there is no such db dependency for a weblogic server.
    In the past we have been creating seperate domains for Weblogic and Weblogic Integration domains.
    Anythoughts ?
    Any information on this topic would be greatly appreciated.
    Thanks
    Pavan

    Yes, it is possible to do this using virtual servers.
    In your example, you will have two different virtual servers and two http listeners (localhost/8181 and localhost/8282).
    When you deploy a war file, you can specify which virtual server to use. (--virtualservers option on asadmin deploy command, admin console has a virtual server text box on deployment screen).
    After deployment, the applications will only be available on the http listeners that map to the virtual servers they were deployed to.
    Can you also post the problem that you are running into with 8.1 update 2?
    Hope this helps,

  • Some commonly used Class interfaces

    Hi,
    Can anyone provide me some commonly used class interfaces list.
    Regards,
    Thanigai

    Hi,
    the 6 different Class interfaces are
    Importing
    Exporting
    Changing
    Reternig
    Receiving
    Raising
    Regards,
    Anirban

  • Is there any way to use RUN button to deploy the application and open IE...

    Hi
    Thank you for reading my post
    i used to use Run button to compile / deploy and run (opening the browser to project context path) .
    i want to know is there any way to use RUN button to deploy an application to standalone OC4J and opening browser?
    I know that we can define ear or war deployment profiles and use them to deploy the application to stand alone server , but i want a single click solution.
    thanks

    Hello,
    Try disabling graphics hardware acceleration. Since this feature was added to Firefox, it has gradually improved, but there still are a few glitches.
    You might need to restart Firefox in order for this to take effect, so save all work first (e.g., mail you are composing, online documents you're editing, etc.).
    Then perform these steps:
    *Click the orange Firefox button at the top left, then select the "Options" button, or, if there is no Firefox button at the top, go to Tools > Options.
    *In the Firefox options window click the ''Advanced'' tab, then select "General".
    *In the settings list, you should find the ''Use hardware acceleration when available'' checkbox. Uncheck this checkbox.
    *Now, restart Firefox and see if the problems persist.
    Additionally, please check for updates for your graphics driver by following the steps mentioned in the following Knowledge base articles:
    * [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]
    * [[Upgrade your graphics drivers to use hardware acceleration and WebGL]]
    Did this fix your problems? Please report back to us!
    Thank you.

  • Deploying web application to OC4J  - servlet class not found

    Hi,
    Im trying to deploy war file with web application,
    that I run before on Tomcat.
    During deployment procces everything seems to be OK.
    But when I try to log on web, I get 500 error...
    log file:
    07/07/12 15:10:14.562 webapp1: Servlet error
    javax.servlet.ServletException: Error instantiating servlet 'org.apache.jsp.index_jsp'. Servlet class org.apache.jsp.index_jsp not found in web-application webapp1
    where org.apache.jsp.index_jsp is path from web.xml and servlet index_jsp.class is in
    Web-Inf/classes/org/apache/jsp/ dir.
    Any Idea?
    Thanks a lot.
    H.

    Hi Steve,
    thanks for your answer, because my question is quite stupid, I know.
    But I'm not so much interested in pre-translated jsp files dependences on java container.
    Yes, my application use some parts of catalina lib, but I would like to just get index.jsp
    and this compiled class (org.apache.jsp.index_jsp.class) is "catalina lib free" I think?
    Or should I change my build.xml?
    Thanks.
    H.

  • Deploying ADF Application to OC4J Using Jdeveloper

    I tried to deploy an application to standalone OC4J using Jdeveloper, through a process similar to this:
    Deploying a Web Application
    http://www.oracle.com/technology/obe/obe1013jdev/10131/deployment/deployment.htm
    [making WAR for view-controller, JAR for model, and EAR in a new project]
    First I got some errors relating to Apache Log4J jars (org/apache/log4j/Category). The problems are talked over in this forum and oc4j forum. I had to download apache-log4j-1.2.15.zip and add the jar file manually to the project and remove the checks in the WAR file descriptor.
    The application was deployed after some attempts successfully, but, now the first page that appears after launching the application is my Home.jspx which is not the same page which comes up when I use embedded OC4J to run the application. The Home.jspx is blank and when I enter a link manually:
    http://farbod:8888/TestApp/faces/pages/Employees.jspx
    instead of http://farbod:8888/TestApp/faces/pages/Home.jspx
    I receive this error:
    500 Internal Server Error
    Servlet error: An exception occurred. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details.
    Is there anything wrong with my deployment?
    (I just mentioned my initial problem with deployment to know if that gives a clue.
    I am using JDeveloper 10.1.3.3, OC4J 10.1.3.3)
    Thank you in advance.
    Farbod

    Hi,
    hard to say from the error message. What if you create a EAR file that includes the WAR file and then deploy it through Enterprise Manager in OC4J ? Also, having a separate deployment project bears the risk fo missing dependencies. Ensure that the project has the project's dependency property set to all contributing projects
    Frank

  • Error While deploy VC Application and Par file

    Hi Experts,
    The deployment of par or VC application worked fine, but last one week i am getting error while deploying par or VC application.
    I am getting pop-up window while deploy VC Application. That pop-up window shows Portal Request Failed. (com/sap/netweaver/bc/uwl/UWLException).
    I am getting Error like this, Please Check the user ID and password, while deploying par from NWDS.
    I have checked my userid and password, it is correct. I checked with admin userid and password, it shows the same error.  it is showing same for my team members userid also.
    I have checked logs and traces in server, nothing is logging regarding this deployment error.
    Where is the problem, please anybody help me.  I am using EP7 SP9.
    Thanks and Regards,
    Chinnadurai R

    Hi Detlev,
    I checked all the permission in the SECURITY ZONES, all the setting are correct in the portal.
    I informed to our BASIS Team, they found that problem is, one process always running in SDM. It didnt let to deploy another PAR file. They cann't able to open the SDM after gave the SDM username and password, its shows "still processing". So, how can we kill the process ? They restarted the SDM and also J2EE Engine, its still processing. After that they restarted the Machine also, still the process going on.
    How can we rectify the problem ?..
    Thanks & Regards
    Chinnadurai R

  • Deploy an Application and its components

    I am using Weblogic 6.1, sp1, with Win2k.
    I am trying to deploy my application (myapp.ear) which has 3 components,
    2 webapp comp and an ejb component.
    I have the Myapp.ear file in <weblogic home>/config/baiju/application
    directory
    and the components are listed in the config.xml file as follows :
    <Application Deployed="true" Name="Baiju-WebLogic"
    Path=".\config\mydomain\applications\Baiju-WebLogic.ear">
    <WebAppComponent Name="Baiju-WebLogic-Backoffice"
    Targets="Baiju" URI="Baiju-WebLogic-Backoffice.war"/>
    <EJBComponent Name="Baiju-WebLogic-Ejb"
    Targets="Baiju" URI="Baiju-WebLogic-Ejb.jar"/>
    <WebAppComponent Name="Baiju-WebLogic-Store"
    Targets="Baiju" URI="Baiju-WebLogic-Store.war"/>
    </Application>
    The problem is, when I start the Server it does not deploy the application
    "Baiju", if I go to admin console
    I can see the application as deployed ("its checked") and also its 3
    components, but I am not able to access the pages.
    Also this problem is not consistent, it sometimes work, with absolutely no
    change made to anything, I just re-start the server.
    I have my server running in Production Mode.
    (-Dweblogic.ProductionModeEnabled=true)
    Any help is appreciated,
    Thanks.
    Baiju.

    have a very similar situation in which an ear file deployed thru' the
    console is NOT getting picked up on restart. The file has been copied to
    config/mydomain/applications but does NOT show up in the .wlnotdelete
    directory when I restart the server. When I deployed the ear file initially,
    it was all ok. The home interfaces showed up in the JNDI treee but on
    restart, everything disappeared. It is running in the production mode.
    BTW everything works fine when I deploy using a JAR.
    "Baiju Gajjar" <[email protected]> wrote in message
    news:[email protected]...
    Hi Mihir,
    I am not deloying the application through the console, I have an ear file
    which I have in
    <Weblogic home>\config\<myapp>\applications
    folder as Baiju-WebLogic.ear file. If I start the server in developmentmode
    it is able to deploy
    it properly. It should be able to deploy even in production mode as it is
    listed in the config.xml
    file. Also this deployment is not consistent, it some does deploy it and
    some times it doesn't.
    Thanks,
    Baiju.
    "Mihir Kulkarni" <[email protected]> wrote in message
    news:[email protected]...
    Please set the Loggin level to the highest value ie,StdoutSeverityLevel="64".
    This will give you detailed information about the individual components
    in
    the
    ear being deployed. The config.xml entries look fine to me.
    Are you deploying the applications through the console ? As you arerunning
    with the productionMode=enabled, the server would not pick up anythingfrom
    the applications dir unless you have deployed it through the console. Doyou
    face the same problem when you are running in the dev mode ?
    Baiju Gajjar wrote:
    I am using Weblogic 6.1, sp1, with Win2k.
    I am trying to deploy my application (myapp.ear) which has 3
    components,
    2 webapp comp and an ejb component.
    I have the Myapp.ear file in <weblogic home>/config/baiju/application
    directory
    and the components are listed in the config.xml file as follows :
    <Application Deployed="true" Name="Baiju-WebLogic"
    Path=".\config\mydomain\applications\Baiju-WebLogic.ear">
    <WebAppComponent Name="Baiju-WebLogic-Backoffice"
    Targets="Baiju" URI="Baiju-WebLogic-Backoffice.war"/>
    <EJBComponent Name="Baiju-WebLogic-Ejb"
    Targets="Baiju" URI="Baiju-WebLogic-Ejb.jar"/>
    <WebAppComponent Name="Baiju-WebLogic-Store"
    Targets="Baiju" URI="Baiju-WebLogic-Store.war"/>
    </Application>
    The problem is, when I start the Server it does not deploy theapplication
    "Baiju", if I go to admin console
    I can see the application as deployed ("its checked") and also its 3
    components, but I am not able to access the pages.
    Also this problem is not consistent, it sometimes work, with
    absolutely
    no
    change made to anything, I just re-start the server.
    I have my server running in Production Mode.
    (-Dweblogic.ProductionModeEnabled=true)
    Any help is appreciated,
    Thanks.
    Baiju.

  • Deploying LightSwitch applications to IIS using the Oracle Entity Framework

    I have had no sucess running Lightswitch applications on IIS using the Oracle Beta entity framework. Applications work fine from visual studio but after deployment fail when I trying to access an Oracle data entity.
    I have tried deploying to a 2008 V2 server 64Bit running IIS7.5 and also to a 32 bit windows 7 machine running IIS7. Both machines had the entity framework installed and I could connect to Oracle with SQL developer just fine. Briefly in the case of the 64 bit machine I get a bad image exception indicating a 64/32 bit conflict. (App pool switched to allow 32bit). The problem with the 32Bit machine is that the session either hangs or dies with an [Arg_TargetInvocationException]
    In all tests apps could connect to SQL server fine but as soon as I use an Oracle connection they fail. It would very helpfull if someone could confirm that they have managed to use the Entity framework Beta with Lightswitch and IIS.
    Thanks in advance
    Edited by: user12218662 on 08-Oct-2011 11:35
    Edited by: user12218662 on 08-Oct-2011 11:37

    Both hosts working now. Initially I created a service account for the aspnet service with extended rights and assigned this to the application pool. This subsequentluy turned out not to be required - ApplicationPoolIdentity works fine. What worked was as follows:
    1. On a 64 Bit host you need to set the application pool to Enable 32 Bit Applications (Right click the relevant app pool in IIS and select advanced)
    2. Switch off windows authentication for the application (leaving just anonoymous authentication) This was required on both hosts
    3. On the 32 Bit host copy tnsnames to the oracle client admin folder - the framework seems to ignore theTNS_ADMIN environment variable. Probably more to this but its working for now.

  • Subsequent configuration to deploy SAPUI5 Application and to activate Gateway service

    Hi All,
    Subject: I want to know the subsequent configuration in the Gateway system in order to create gateway project in SEGW & register the service to the system alias and deploy SAPUI5 Application in the BSP repository.
    I have attached the SAINT Tcode & SICF Tcode details snapshot.
    When deploying the eclipse project to the bsp repository, we are getting authorization error. And we dont have authorization for SICF. I found that some ui5 service nodes are inactive, for example ui5_ui5, ui2. Kindly help me at this crucial phase. Your comments are highly appreciated. I want to know the subsequent activities that has to be done in that gateway system.
    Thanks in Advance.
    S.Vikgnesh

    Finally found an answer !
    You have to add this to your neo-app.json file : "authenticationMethod": "none"
    It's set to saml2 by default.
    Here's what my neo-app.json file looks like :
      "authenticationMethod": "none",
        "routes": [
                "path": "/onpremisegw",           
                "target": {
                  "type": "destination",
                  "name": "onpremisegw"
                "description": "onpremisegw"
    Regards

  • How can deploy the application and data to client?

    As I know, I can burn a CD with http://mobileserver/setup/webtogo/setup.exe and distribute this CD to client to install web-to-go Client.
    But how can I create a package for client to install my application and data?
    What tools should I use? Where can I get the information?
    Can you give/show me a simple example to make a package and install the package?
    Thanks a lot.

    Only the carrier to whom the device is locked can unlock it.
    StraightTalk is not a supported carrier... not all features may work.

  • How to Create a default domain and deploy the application in jdeveloper  using a script or code (not manually)

    Hi ,
    I have installed Jdev   using silent installation .
    Now I have some  apps already created I want to create a default domain and then deploy apps into that through ant or any script?
    Can anyone help me on this?
    Thanks and Regards,
    Vivek Pemawat

    We still don't know what you want to archive with here.
    Cvele_new_account got you a pointer on how to install the DefaultDomain.
    Tip: if you want to know or see the exact command line jdev uses to install the DefaultDomain, open jdev and in the application server navigator right click on hte integrated server and select configure DefualtDomain. In the log window you see the command line with all parameters.
    Timo

  • Multi-Thread application and common data

    I try to make a multi-Thread application. All the Threads will update some common data.
    How could I access the variable �VALUE� with the Thread in the following code:
    public class Demo {
    private static long VALUE;
    public Demo(long SvId) {
    VALUE = 0;
    public static class makeThread extends Thread {
    public void run() {
    VALUE++;
    public static long getVALUE() {
    return VALUE;
    The goal is to get the �VALUE� updated by the Thread with �getVALUE()�
    Thanks for your reply
    Benoit

    That code is so wrong in so many ways......
    I know you're just experimenting here, learning what can and can't be done with Threads, but bad habits start early, and get harder to kick as time goes on. I am going to give a little explanation here about what's wrong, and what's right.. If you're going to do anything serious though, please, read some books, and don't pick up bad habits.
    Alright, The "answer" code. You don't use Thread.sleep() to wait for Threads to finish. That's just silly, use the join() method. It blocks until the threads execution is done. So if you have a whole bunch of threads in an array, and you want to start them up, and then do something once they finish. Do this.
    for(int k=0; k<threads.length; k++) {
      threads[k].start();
    for(int k=0; k<threads.length; k++) {
      threads[k].join();
    System.out.println("All Threads Done");Now that's the simple problem. No tears there.
    On to the java memory model. Here where the eye water starts flowing. The program you have written is not guarenteed to do what you expect it to do, that is, increment VALUE some amount of time and then print it out. The program is not "Thread Safe".
    Problem 1) - Atomic Operations and Synchronization
    Incrementing a 'long' is not an atomic operation via the JVM spec, icrementing an int is, so if you change the type of VALUE to an int you don't have to worry about corruption here. If a long is required, or any method with more then one operation that must complete without another thread entering. Then you must learn how to use the synchronized keyword.
    Problem 2) - Visiblity
    To get at this problem you have to understand low level computing terms. The variable VALUE will NOT be written out to main memory every time you increment it. It will be stored in the CPUs cache. If you have more then one CPU, and different CPUs get those threads you are starting up, one CPU won't know what the other is doing. You get memory overwrites, and nothing you expect. If you solve problem 1 by using a synchronized block, you also solve problem 2, because updating a variable under a lock will cause full visiblity of the change. However, there is another keyword in java.. "volatile".. A field modified with this keyword will always have it's changes visible.
    This is a very short explaination, barely scratching the surface. I won't even go into performance issues here. If you want to know more. Here's the resources.
    Doug Lea's book
    http://java.sun.com/docs/books/cp/
    Doug Lea's Site
    http://g.cs.oswego.edu
    -Spinoza

  • [Forum FAQ] Visio Standard 2013, Visio Professional 2013 template list and common uses

    As we know, Visio 2013 has three versions: Visio Standard 2013, Visio Professional 2013 and Visio Pro for Office 365.
    Visio Standard 2013:
    Easily create versatile diagrams using a rich set of new and updated shapes and stencils.
    Visio Professional 2013:
    Work as a team to easily create and share professional diagrams that simplify complex information.
    Visio Pro for Office 365:
    Take advantage of all features in Visio Professional 2013 as an always up-to-date subscription from Office 365.
    In my opinion, the biggest difference is business requirements which included product price and EULA. For the price, we could confirm the details from Microsoft store or local provider. In this article, we would
    only summarize the templates among the different versions. You also refer to the build-in template tables for better understanding.

    Visio 2013 template list (Part 2): 
    Item
    Template name
    Visio 2013 Std
    Visio 2013 Pro
    MAP
    Web Site Map
    ×

    Value Stream MAP
    ×

    Directional Map


    Directional Map 3D


    Site Plan
    ×

    Floor Plans
    Floor Plan
    ×

    Electrical and Telecom Plan
    ×

    Office layout


    Home Plan
    ×

    Space Plan
    ×

    Site Plan
    ×

    HVAC Plan
    ×

    Plumbing and Piping Plan
    ×

    Reflected Ceiling Plan
    ×

    Security and Access Plan
    ×

    Plant layout
    ×

    HVAC control logic Diagram
    ×

    Network
    Basic Network Diagram 3D
    ×

    Basic Network Diagram
    ×

    Detailed Network Diagram
    ×

    Detailed Network Diagram 3D
    ×

    Rack Diagram
    ×

    SDL Diagram
    ×

    LDAP Directory
    ×

    Active Directory
    ×

    Software:
    Wireframe Diagram
    ×

    UML Activity
    ×

    Chen’s Database Notation
    ×

    UML Sequence
    ×

    UML State Machine
    ×

    UML Class
    ×

    UML use case
    ×

    IDEF1X Database Notation
    ×

    UML Database Notation
    ×

    Data Flow Model Diagram
    ×

    Com and OlE
    ×

    Enterprise Application
    ×

    Program Structure
    ×

    Conceptual Web Site
    ×

    Data Flow Diagram
    ×

    Crow’s foot Database Notation
    ×

    Schedule:
    Patient medical process


    Calendar


    PERT Chart


    Gantt Chart


    Timeline

  • I am trying to deploy an application and it fails with the error below.

    How do I resolve this deploy problem?
    Log messages: 
    [3/22/13 9:28:42:539 CDT] 000000d9 ApplicationSt E com.adobe.idp.applicationmanager.application.impl.ApplicationStoreImpl create ApplicationStoreImpl:create:application exists:6201:FMLA: version :2.0
    [3/22/13 9:28:42:539 CDT] 000000d9 ApplicationSt E com.adobe.idp.applicationmanager.application.impl.ApplicationStoreImpl create ApplicationStoreImpl:create:ExceptionFMLA : version : 2.0 : has already been created. only updates to the application are supported after they are created
    [3/22/13 9:28:42:539 CDT] 000000d9 ApplicationMa E com.adobe.idp.applicationmanager.service.ApplicationManagerService _importApplicationArchive ApplicationManagerService:importApplication():DSCException:FMLA : version : 2.0 : has already been created. only updates to the application are supported after they are created
    [3/22/13 9:28:42:555 CDT] 000000d9 ApplicationMa E com.adobe.idp.applicationmanager.service.ApplicationManagerService _importApplicationArchive ApplicationManagerService:importApplication():archive cleanup exception:9601:null

    Hi,
    Are you trying to import an application in the server as a LCA? Have you checked whether that application was existing previously or not? Sometimes if the application archieve is corrupted this type of situation might happen. Another reason might be you have already deployed application of the same name. try to undeploy the application if you have in the same name and try doing it. You can also import that in thw orkbench if you have got individual files.
    Thanks,
    Bibhu.

Maybe you are looking for

  • Extract the data in a view and put them into a table

    Hi, all I am a new beginer in Oracle. Recently I have a project with 70,000 records in the database. I made a view so that I can combine the tables and extract the columns I need. However making the view took me a lot of time, thus I want to put thos

  • How do I get my calendar and contacts data to sync to computer?

    After instal of Maverick, iPhone data syncs to iCloud, but not to computer.  How do I get my calendar and contacts data to sync to computer?

  • Can i make a button change anchor link when you scroll down the site?

    I am trying to make a scroll site.. and i have navigation buttons on the right, a full menu, but also a "1 topic up" button and "1 topic down" button. Is there any way that i can have those buttons change anchor link when you scroll down the site. Ex

  • Why does my Muse page scroll to the right?

    Here is the link to the page http://logrenew.businesscatalyst.com/index.html As you see th epage scrolls horizontally as well. not sure how to fix this. Thanks, Russ

  • OBI Publisher problem

    Hi all When I try to log on to the oracle bi publisher I get following error: The server can not be used due to a configuration error, please contact the administrator. If you are the administrator, please consult BI Publisher user guide for proper c