J2EE App Deployment on OAS (JDeveloper 10.1.2 used)

I have a JSP deployed that needs to use JavaScript and include tags to HTML but I can only get this to work if they are in the project/public_html folder of the deployed project.
I want to reuse the JavaScript and HTML in multiple projects within the same container without having to include them in the deployed .ear. Is this possible? How? I have read everyting I can find. The common Java classes work without being deployed as part of the project deployment. At least that works. This is my first attempt at J2EE altogether. Any help would be greatly appreciated. Thanks.

Does anyone know how to make .gif, .html, JavaScript available for multiple Java projects without including the files in each project deployment? All are in the same OC4J container. As I gain knowledge I will help others. For now, I'm a newbie. Help?

Similar Messages

  • Is periodic maintenance required for app deployed on OAS on Windows?

    Hi,
    We have an application that uses 7 BPEL processes and one web service deployed on OAS. Application is into production from the last 4 months.
    We are bringing down the App server once in a while due to applying break fixes, etc.
    But, now, considering the App is quite stable, we won't be planning to bring down the app server for few months. My question is, do we need to schedule planned downtime and restart the application server once in a while in view of memory leaks etc as the App is deployed on Windows Operating System?
    It would be a great if I get some info/links that will give me the exact information.
    Thanks,
    Sasi Bhushan.

    Hi Chris,
    Thanks for the reply.
    Yes. Infact we have taken care of log files. But wondering if memory leaks etc could cause total memory consumption and making the app server hung etc.
    So, I am looking for some suggestion on whether we need the app server restart periodically or it's not required at all.
    Thanks,
    Sasi Bhushan.

  • Creating worker threads in J2EE application deployed in OAS...

    Will OAS allow for the creation of worker threads in a J2EE application? I can create a worker thread in my J2EE application that is deployed in OC4J Standalone, I need to verify if the same capabilities exist in OAS.
    Thank you,
    Jason

    Hi Ritushree,
    Yor approach is not correct. You need to do a JNDI lookup for the service.
    Refer
    http://help.sap.com/saphelp_nw04/helpdata/en/42/9ddd0cbb211d72e10000000a1553f6/frameset.htm
    Thanks
    Prashant

  • Building and deploying J2EE apps ?  Now there is a solution for production root cause analysis.

    Is your organization building and deploying J2EE apps? If so, Halo
    can help solve one of the toughest issues facing enterprises today:
    Finding the root cause of software faults.
    "Halo monitors, pinpoints, reports on and provides a source-code level
    root cause of software faults in deployed J2EE apps. Halo is unique
    because it's the only technology that can give you a root cause
    diagnosis in a fully deployed, live production application. Halo has
    such low performance overhead that customers deploy their final,
    production versions of their applications with Halo enabled.
    Used with Web Application Servers like WebLogic, Halo helps ensure
    that deployed code is reliable and able to be quickly fixed if
    problems turn up. Most important, because Halo is an "always on"
    technology, you get all the information you need to rapidly solve a
    problem on the first fault. Problem replication and bug reports are
    obsolete with Halo
    "Halo has a unique ability to provide a root cause diagonosis and
    understanding
    of software problems in production systems, without needing to
    replicate the
    issue.
    Test on WebLogic proved that Halo runs with extremely low overhead and
    is suitable for use in deployed production systems"
    Andrew Sliwkowski, Software Engineer
    BEA Systems, Inc.
    The key is Halo's high performance, low overhead TraceBack
    instrumentation technology. Based on technology out of MIT and proven
    in the field, TraceBack enables you to instrument JARs, EARs and WARs
    within minutes, without touching source code.
    Halo is useful throughout the entire application life cycle, from
    development through test, beta and deployment.
    If you have interest in learning more visit our website at
    www.incer.com or email me directly at [email protected] (Rick Martin)

    I have two questions. We have just started developing apps using jdev9i, 9iAS v2 and are new to the j2ee environment so my questions may be very easy ones.
    Question 1: We have set up Oracle pooling connection to our databases. We have a development, test and production database. When I deploy my application, it includes the connections. This is preventing me from moving the EAR files from dev to test to prod without modification and re deploying to my EAR file. Is there a way or a place that I can put my database connections that will not be included in my EAR files and the application still find them?datasources.xml is where the info regradings connection to databases is licated. If you're using 9iAS
    you can use EM to create datasource entry at the global level. In OC4J standalone you could use admin.jar
    or edit the file. Check out the standalone user's guide at http://otn.oracle.com/tech/java/oc4j/pdf/oc4j_so_usersguide_r2.pdf.
    Also, you will othe OC4J docs on OTN.
    Question 2: I have a stand alone oc4j set up for our developers to use while testing their applications. The applications include libraries supplied in jdev such as xml parser v2. I do not want to deploy those lib files with the app because I will have to redeploy all my apps if I upgrade jdev. I just want to be able to upgrade the libraries, test the apps and not have to redeploy everything. I can do this by coping the jdev lib to 9iAS but I can't seem to find the right place to put the lib for the stand alone oc4j instance. You can use the library tag within application.xml for server wide availability. Check out the article
    http://otn.oracle.com/oramag/oracle/02-sep/o52oc4j_2.html specifically class loading in OC4J section
    Any help would be greatly appreciated. Thanks in advance.

  • How to profile a pre-deployed J2EE app. using JSE8?

    I would like to profile a J2EE application that is already deployed on Sun Appserver. I do not have the source structure with me to start the profiling directly from the tool by the usual documented steps of JSE8.
    In JSE7, once I enabled the profiler feature for the appserver instance, I was able to get stats for the app. How do i achieve something similar using JSE8?
    -Girix

    This is possible, but is not a use case that the profiler supports directly. You will have to trick the profiler into profiling this predeployed app.
    First, deploy the application you wish to profile. Next comes the trick. Create a ghost enterprise project for the sole purpose of getting the profiler setup and running. While creating the ghost project, just accept all the defaults from the wizard. Since this project in an Enterprise Application project, when it is set as the main project, the J2EE Profiler menu item will be enabled.
    Enable the collection as if you were going to profile this ghost project. With the appserver started (you have already deployed the application you really want to profile), open the profiler.
    You will not be able to see data in the Transactions tab, because this relies on a filter place in the web component of the application. Since you did not do this, you will not get this data.
    You will be able to get method level, EJB container stats, and memory monitoring. Select the MEthods tab and notice that the application that was deployed appears in the tree. The profiler is designed to create this tree from whatever is deployed indiscriminately. You can select the methods in your application for instrumentation and then run the application.
    After running the application the profile data will be ready for viewing. In the Methods tab select the "Get MEthod Trace" button. You will see the all the profile data for your application.

  • Concurrent Deployment of Multiple Releases of a J2EE App to WLS 7.0

    Is it possible to concurrently deploy multiple releases of the same
    J2EE app to WLS? If so, what was the process and your experience with
    it?

    Is it possible to concurrently deploy multiple releases of the same
    J2EE app to WLS? If so, what was the process and your experience with
    it?

  • EJB Deployment in J2EE Apps Server

    Hi,
    Can any one please help me in deploying EJB in J2EE Apps server?I have installed J2EE Apps Server 9 in my machine.Can any one please suggest me a document regarding EJB deployment in J2EE apps server or help me regarding this?
    Thanks in advance,
    Aravindhan.C

    Go to https://j2ee-sdk.dev.java.net/ and checkout "Methods of deploying applications" under the recent articles section; The tutorial link present in this page (under the references section) will also be useful. The samples bundle has reference samples which will also be useful

  • Deploying J2EE Apps in WL9.0 using Maven2

    Hi All,
    Has any one using Maven2.0 to Deploy the J2EE Apps on WL9.0.
    I don't think medrac sample app is deployed using Maven. If any of you tried it could you pls post the maven scripts..
    Thanks
    Kumar

    Hi,
    Maven was originally started as an attempt to simplify the build processes in the Jakarta Turbine project. There were several projects each with their own Ant build files that were all slightly different and JARs were checked into CVS.
    What resulted is a tool that can now be used for building and managing any Java-based project. We hope that we have created something that will make the day-to-day work of Java developers easier and generally help with the comprehension of any Java-based project.
    System requirements
    JDK     1.4 or above (this is to execute Maven - it still allows you to build against 1.3 and prior JDK's)
    Memory     No minimum requirement
    Disk     No minimum requirement. Approximately 100MB will be used for your local repository, however this will vary depending on usage and can be removed and redownloaded at any time.
    Operating System     No minimum requirement. On Windows, Windows NT and above or Cygwin is required for the startup scripts. Tested on Windows XP, Fedora Core and Mac OS X.
    Regards
    Prasanna Yalam

  • Deploy huge J2EE apps

    What are the steps which can be performed to deploy a
    huge JEE2 application to server (500 Ejbs , 1000 Jsps). EAR size is 50MB+
    It is imporntant that application deploy very fast and
    once open for access not to wait for compliation of jsps
    and servelts for the first hit/access

    We currently deploy 350+ CMP Beans, and up to 20 different JARs containing various Stateless Session bean services. The time to deploy for the entity beans is rediculous. It takes almost 1.5 hours! I have raised a TAR on this and the team have suggested some settings but all to no avail. The EAR containing all this is being deployed on 9.0.4.1, running on HP-US 11i. We have the javac process running out of process with a heap size of > 1G.
    This has been a long standing problem. The app is in production for nearly 2 years now. We started with 9.0.3, and we were told that by upgrading to 9.0.4.1 we would improve our deploy times....... I guess we're still waiting for that improvement!
    If you get your app deploying fast, share the knowledge please.

  • Critical ADF application error after deploy to OAS

    <p>
    Hi,
    </p>
    <p>
    I have a problem with ADF application (10.1.3). It works in JDev but after deploy to OAS 10.1.3 when I try to go to page contains a lot of input texts and 2 tables , I get server error  - see it on this image .  It is very strange because this application worked earlier - where OAS uses JDK 1.5.0_08. Now JDK was changed for 1.6.0_01 version. J2EE container has allocate 512 RAM memory Is JDK version may be reason of this error ?
    </p>
    <p>
    Kuba
    </p>

    Hi Kuba,
    Do you mean that you changed OAS to use JDK 1.6? I'm pretty sure this wouldn't be supported. If you mean that you used JDK 1.6 to compile the project and then deploy to OAS, I'm pretty sure this wouldn't be supported, either. If you just changed JDeveloper to use JDK 1.6 to run JDev (although for sure this isn't supported), and the project still is targetted to JDK 1.5, this should work. I've had a few sporadic problems in this configuration, though, so I cannot recommend it.
    John

  • Error Deploying to OAS 10.1.3... pls help

    HI All,
    I am using JDev 10.1.3.1 with ADF Faces + BC, I try to deploy to OAS 10.1.3 from the AS Console :
    I get this error :
    [Nov 23, 2006 10:16:30 PM] Exception: NoClassDefFoundError: Missing class: org.apache.commons.collections.ArrayStack Dependent class: org.apache.commons.digester.Digester Loader: ITTSalesApp.web.ITTSalesViewArchive:0.0.0 Code-Source: /opt/oracle/OraHome_oc4j/j2ee/home/applications/ITTSalesApp/ITTSalesViewArchive/WEB-INF/lib/commons-digester.jar Configuration: WEB-INF/lib/ directory in /opt/oracle/OraHome_oc4j/j2ee/home/applications/ITTSalesApp/ITTSalesViewArchive/WEB-INF/lib The missing class is not available from any code-source or loader in the system.
    [Nov 23, 2006 10:16:30 PM] Operation failed with error: Missing class: org.apache.commons.collections.ArrayStack Dependent class: org.apache.commons.digester.Digester Loader: ITTSalesApp.web.ITTSalesViewArchive:0.0.0 Code-Source: /opt/oracle/OraHome_oc4j/j2ee/home/applications/ITTSalesApp/ITTSalesViewArchive/WEB-INF/lib/commons-digester.jar Configuration: WEB-INF/lib/ directory in /opt/oracle/OraHome_oc4j/j2ee/home/applications/ITTSalesApp/ITTSalesViewArchive/WEB-INF/lib The missing class is not available from any code-source or loader in the system.
    How to solve this problem ?
    Pls help...help..
    Thank you,
    xtanto

    "For ADF applications developed in JDeveloper 10.1.3.1 and deployed to Oracle Application Server 10.1.3.0, you need to install the ADF runtime libraries in your application server, using the ADF Installer."
    http://www.oracle.com/technology/products/jdev/collateral/papers/10g/as_supportmatrix.html

  • What are the requirements to deploy Portlets from Jdeveloper 10.1.3.2

    Hi all,
    I'm new in version Jdeveloper 10.1.3.2
    plz which version of Application Server (infrastructure and middle-tier)
    or web-center are required to deploy portlet from jdeveloper 10.1.3.2
    can you send me links about these requirments
    thanks

    I had already applied all of this before trying to deploy.
    The error seems to be a versioning error in the jsf-impl.jar file as the ApplicationAssociate class is found there. I have changed the JDK and J2EE to 1.4.2 and 1.3 respectively, rebuilt everything, updated all the settings to the right versions for 10.1.2 but it still keeps failing on the deploy.

  • J2EE app server not able to compile JSP

    Hi,
    I have just installed J2EE app server and am trying to deploy a JSP. The following error is generated. can anyone help me please.
    Thank you,
    Deepika.
    org.apache.jasper.JasperException: Unable to compile class for JSP
    No Java compiler was found to compile the generated source for the JSP.
    This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK
    to the common/lib directory of the Tomcat server, followed by a Tomcat restart.
    If using an alternate Java compiler, please check its installation and access path.
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:127)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:348)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:424)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:464)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:448)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:551)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:300)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         sun.reflect.GeneratedMethodAccessor82.invoke(Unknown Source)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:324)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:284)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:306)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:200)

    This is a known issue.
    Here's an explanation of the behaviour you are seeing:
    The misleading error message is printed only in the case where a javac
    compilation error line number cannot be mapped back to a line number
    in the JSP source code.
    The internal representation of a JSP element ("JSP node") in the JSP compiler
    contains the following info:
    - The begin line number of the JSP element in the JSP page
    - The begin and end line numbers ("range") of the Java code that was
    generated for the JSP element
    When attempting to map a javac error line number back to the JSP
    source line, we determine the range into which the javac error line
    number falls, and retrieve the JSP source number of the JSP element
    associated with that range.
    However, in some cases, it is impossible to trace a javac error line
    number back to the JSP element that caused the error. For example,
    consider the following scriptlet:
    <%
    String query = request.getParameter("query");
    if(query != null) {
    out.println(query);
    } else {
    out.println("(null)");
    // } // <-- !Missing brace syntax error
    %>
    Since the JSP compiler wraps the generated code into a
    try-catch-finally block, the above syntax error in the scriptlet
    causes havoc with that try-catch-finally block, and results in 3 javac
    errors:
    <file>jsp.java:<line1>: 'catch' without 'try'
    } catch (Throwable t) {
    ^
    <file>jsp.java:<line2>: 'try' without 'catch' or 'finally'
    try {
    ^
    <file>jsp.java:<line3>: '}' expected
    Notice that all of the above javac error numbers are outside the range
    of the java line numbers corresponding to the scriptlet that caused the
    error, and therefore cannot be mapped back to any line numbers in the
    JSP page source.
    AS 8.0 PE does not handle this case correctly, and prints out the
    misleading error message (though the real error message can be found
    in the server log).
    Notice that this problem is going to be fixed in AS 8.1, so that if a
    javac error line number cannot be mapped back to a JSP page line
    number, the javac error is still returned to the client.
    In AS 8.0 PE, you need to check your server log to find out why the compilation failed.
    If you still have any problems, send me your JSP, and I will take a look at it.
    Thanks,
    Jan

  • How to run a background process in a J2EE App ?

    Hi guys,
    Here is the requirement which totally stumped me.
    " The web app should have a feature like a background process or something like cron jobs.. which keeps on running in the background and at a particular time each day calls a method". User intervention is not an option.
    Now had this been a stand alone app .. I could have done this using Threads.. but i cant possibly use threads in a J2EE app. Any pointers.. how I can go about realizing this
    Thanks for your replies.
    Cheers!

    You could take the approach that SoulTech mentioned and spawn a new thread from the Servlet's init method. To have the servlet invoke this method with no intervention, you would need to set the following parameter in your servlet definition in your web.xml:
    <servlet>
      <servlet-name>MyStartupServlet</servlet-name>
      <servlet-class>com.my.company.MyStartupServlet</servlet-class>
      *<load-on-startup>1</load-on-startup>*
    </servlet>When you deploy your application, the servlet will be loaded, and its init method will be called.
    If your application is running in a servlet container, I believe you are allowed (by the specification) to spawn your own threads, but you should do so carefully. Since you're writing a scheduler and not some kind of worker threads that are messing with your database, I think you should be okay. Still, just to keep it clean you should add any clean-up logic you may need to your servlet's destroy method. I know that in an EJB container, spawning your own threads can definitely be a problem and the container makes no guarantees that they will function correctly. The J2SE Timer class could be used if you're not using EJB, but the Timer class doesn't have support for J2EE - that's at least part of what led to the introduction of the timer beans in J2EE 1.4. If you're already using EJB, especially EJB 3.0, then the timer service provides a convenient built-in mechanism to do exactly what you want.
    There are always multiple ways to solve any problem...
    Edited by: proflux on May 15, 2008 1:04 PM

  • EJB Deployment on OAS

    when I run the snippet generated client for the EJB deployed on OAS, I have this error:
    java.lang.NoClassDefFoundError: EJBPack.AppEJBHomeHelper
    at oracle.oas.container.corba.RemoteObject.narrow(Compiled Code)
    at oracle.oas.container.corba.RemoteObject.narrow(Compiled Code)
    at javax.rmi.PortableRemoteObject.narrow(Compiled Code)
    at EJBPack.AppEJBClient.main(Compiled Code)
    Any help well be appreciated???
    Many thanks.
    Xtophe
    null

    Hi Mak_GK,
    Sorry for the late answer.
    Make sure that your client project has the following libraries:
    JDeveloper runtime
    Oracle 8.1.5 JDBC
    Connection Manager
    <your generated jar file from the EJB>
    JBO Runtime
    OAS Runtime
    JBO OAS Runtime
    Also, sometimes it helps to stop and re-start OAS after deploying your EJB.
    Xtophe

Maybe you are looking for