JDeveloper's compiled JSP location in a .war file

When I choose to build a .war file in JDeveloper 10.1.2 that contains the .JSP files, it sticks the compiled jsps in WEB-INF/classes/.jsps. To get the app server to properly recognize the precompiled JSPs, they need to be located in the WEB-INF/classes directory.
How can I configure JDeveloper to put the compiled JSPs in WEB-INF/classes?

JSPs in a web application are neither in WEB-INF/classes or WEB-INF/classes/.jsps directory.
JSPs are in the top level directory.
Servlets are in the WEB-INF/classes directory.

Similar Messages

  • Pre-Compiling JSPs while deploying a .war file in OC4J instance

    Hi,
    Is there any way to inform the OC4J instance to pre-compile the jsps in a .war file, while deploying..
    Thanks for your responses,
    Eshwar

    Click on the project.
    Open the context menu (right mouse button).
    Expand the General item in the left list.
    Select the Deployment Profiles item.
    Select the deployment profile you need from the right.
    Follow the wizard.
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • I have a created a directory structure ias\ias-samples\myapps\src\docroot.In docroot folder i have a single jsp.i created a war file having that jsp,and ear file having the war file

    I deployed the ear file.Now i try calling http://localhost/myapps/test.jsp ??
    i'm i doing the right thing ?

    Hi,
    This is right provided you have installed the webserver & app server
    on the same machine and the port number for the web server is 80 by
    default.
    Regards
    Raj
    Arif Khan wrote:
    I have a created a directory structure
    ias\ias-samples\myapps\src\docroot.In docroot folder i have a single
    jsp.i created a war file having that jsp,and ear file having the war
    file
    I deployed the ear file.Now i try calling
    http://localhost/myapps/test.jsp ??
    i'm i doing the right thing ?
    Try our New Web Based Forum at http://softwareforum.sun.com
    Includes Access to our Product Knowledge Base!

  • Disable compiling jsps in oc4j

    We want to move to using the ojspc ant task to pre-compile our jsps where I work. I can get the ant task to run but evidently am not putting the output in the correct location. In stand-alone oc4j I have to include the jsps in my deployment, which I'm not sure I should have to do. On the full OAS with jsp compiling turned off, none of the pages render. I have to hand the ears to 3rd parties to get them deployed on the OAS instance and my access to logs there is also limited so I'd like to get my oc4j stand-alone to NOT compile jsps so I have an environment that I can play with to fix the problem.
    Questions
    Q1) Can I turn off jsp compiling in OC4J standalone (deployed on Win XP OC4J version 10.1.3.5.0)?
    Q2) If the class files OJSPC produces are in the right place do I NEED the jsps in my ear/war file (same environment)?

    Figured it out on my own:
    A1) Yes. From Application Server Control select Administration
         Select JSP Properties
         Set "When a JSP changes" (under Runtime Parameters) to Reload classes.
    A2) If set as above the JSPs are not necessary.
    My root problem was that the ojspc task was not set to compile and and the javac task wasn't putting the .class files in the right place. Setting ojspc to nocompile="false" and appRoot to my destination path and suddenly _(pagename).class files starting appearing in the appropriate output directories and problem solved.

  • Compiling JSPs with -g

    Hello,
              how can I get WLS to compile my JSPs (deployed in a .war-file) with
              debugging info (i.e. the javac "-g" Flag)? I tried to set the
              "compileCommand" property in weblogic.properties, but it's being
              ignored. Here's what I did:
              weblogic.httpd.initArgs.*.jsp=\
              pageCheckSeconds=1,\
              compileCommand=/path/to/wls/javacg.sh,\
              workingDir=/path/to/wls/myserver/classfiles,\
              verbose=true
              javacg.sh is a shell script that calls javac with the -g flag, like
              this:
              #!/bin/sh
              javac -g $*
              I also tried to set the "compileCommand" to "javac -g" directly.
              But on startup, WLS keeps telling me that:
              <WebAppServletContext-appcontext> *.jsp: param compileCommand initialized to: javac
              The string "javac" doesn't appear anywhere in weblogic.properties
              except for the abovementioned property definition.
              Do the above properties apply to JSPs deployed in WAR-files at all? If
              not, where can I set them?
              I also tried to compile my JSPs manually with weblogic.jspc -g , but
              WLS would always re-compile the JSPs upon their first invocation.
              Any hints?
              TIA,
              Olaf
              Olaf Klischat | Fraunhofer ISST
              Oberfeldstrasse 132 | Mollstrasse 1
              12683 Berlin, Germany | 10178 Berlin, Germany
              phone: +49 30 54986231 | mail: [email protected]
              

    Hi,
              I think that for web applications (i.e. war files) the options to the
              JSP servlet (which is the one doing the compilation) must be in the
              web.xml file (deployment descriptor). Most options in the
              weblogic.properties file do not apply for a war file, they have to be
              specified in the web.xml.
              Mathieu
              Olaf Klischat wrote:
              >
              > Hello,
              >
              > how can I get WLS to compile my JSPs (deployed in a .war-file) with
              > debugging info (i.e. the javac "-g" Flag)? I tried to set the
              > "compileCommand" property in weblogic.properties, but it's being
              > ignored. Here's what I did:
              >
              > weblogic.httpd.initArgs.*.jsp=\
              > pageCheckSeconds=1,\
              > compileCommand=/path/to/wls/javacg.sh,\
              > workingDir=/path/to/wls/myserver/classfiles,\
              > verbose=true
              >
              > javacg.sh is a shell script that calls javac with the -g flag, like
              > this:
              >
              > #!/bin/sh
              >
              > javac -g $*
              >
              > I also tried to set the "compileCommand" to "javac -g" directly.
              >
              > But on startup, WLS keeps telling me that:
              >
              > <WebAppServletContext-appcontext> *.jsp: param compileCommand initialized to: javac
              >
              > The string "javac" doesn't appear anywhere in weblogic.properties
              > except for the abovementioned property definition.
              >
              > Do the above properties apply to JSPs deployed in WAR-files at all? If
              > not, where can I set them?
              >
              > I also tried to compile my JSPs manually with weblogic.jspc -g , but
              > WLS would always re-compile the JSPs upon their first invocation.
              >
              > Any hints?
              >
              > TIA,
              > Olaf
              > --
              > Olaf Klischat | Fraunhofer ISST
              > Oberfeldstrasse 132 | Mollstrasse 1
              > 12683 Berlin, Germany | 10178 Berlin, Germany
              > phone: +49 30 54986231 | mail: [email protected]
              

  • Deploying WAR files in JDeveloper

    How do I deploy war file in JDeveloper? In Tomcat, I can just place the war file in the webapps directory and it deploys by itself, but, in JDev what needs to be done?

    Try the following section in the online help:
    Testing and Optimizing Your Code >
    Running in JDeveloper >
    Running Java Programs
    http://otn.oracle.com/jdeveloper/902/help/
    You can import a war file into JDeveloper.
    I just want to know how I import a war file in JDeveloper when only one choice is given - EAR file.
    OC4J is the Oracle J2EE container (Servlet,JSP and
    EJB server). It is embedded inside JDeveloper to let
    you test run your J2EE applications.
    You can also install it stand alone on your server -
    and JDeveloper will let you deploy directly to it.

  • Compiled jsps

    this might be a crazy question and i feel pretty dumb asking this but i am new to jsp and wanted to know where are the compiled JSP's located i mean when we compile the Servlet we get servletname.class and JSP from what i read are converted into servlets in the background.. so what i wanted to know was is there any particular directory that compiled JSP's are stored?

    If u using Weblogic server, all compile jsp are stored as class files in <weblogic - install>\config\<domain-name>\workingdir\jsp_servlet\_jsp
    or else do a file search in the <web-server> dir using
    *<jsp-name>*.class

  • How to compile and build a war file for JAX-RPC

    Hi all,
    I know that all who use JAX-RPC knows it.
    How to compile JAX-RPC code which was not the sample code of JWSDP example?.
    Which jar file is to be included in classpath?.
    After compiling,how to make a WAR file so i can deploy it in TOMCAT ...anyone plz

    Nobody answers.But i found a right article which was quite helpfull to do it.
    http://java.sun.com/developer/technicalArticles/WebServices/getstartjaxrpc/

  • How to open a document out side the .war file

    Hi all,
    I have initially stored a document outside the WEB-INF in the .war file to retrieve it from a jsp file of the same war file. But now the file has been stored at a location on the same server and outside the .war file. how can I retrieve the file path and location outside the war file from the jsp. I ve previously used the following code when retrieving from a directory "docs" of the same .war file as:
                      <td  class="FormLableLeft"><a href="#" onClick=window.open("/docs/<%=colData.get("DOCUMENT_NAME")%>")><%=colData.get("File_NAME")%></a> </td>please suggest me how to retrieve the document located outside the war.

    Create a servlet which reads the file from the local file system and writes it to the outputstream of the response after having set the response headers accordingly. Then simply call that servlet by URL along with the file ID as request parameter or pathinfo. You may find this example useful: [http://balusc.blogspot.com/2007/07/fileservlet.html].

  • How does one pass data between war files

    Hello All,
    I need to be able to pass values between 2 war files.
    example:
    from a JSP file in the 1st war file i get the login information and need to pass
    the userid and password to another JSP in the 2rd war file.
    Question: How does one go about doing this.
    I'm using webLogic server 6.1 on NT.
    Thanks - Bala

    The problem is that web applications do not share the same session by
    default. If you set the cookie name to be the same for both web
    applications, you should be able to pass the data in the HttpSession...
    Bala Ganesh wrote:
    Hello All,
    I need to be able to pass values between 2 war files.
    example:
    from a JSP file in the 1st war file i get the login information and need to pass
    the userid and password to another JSP in the 2rd war file.
    Question: How does one go about doing this.
    I'm using webLogic server 6.1 on NT.
    Thanks - Bala

  • Application Viewer Deployment Problem - War File Path Error

    Hello all!
    I just installed a new CC&B demo environment (2.2SP6 on Apache/Windows) and the application viewer is not working at all. The first thing it does is throw a bunch of errors, such as
    source file does not exist data/tables/updated.xml
    source file does not exist data/maintobj/updated.xml
    source file does not exist data/alg/updated.xml
    source file does not exist data/batchContro/updated.xml
    Then the App Viewer shows the following:
    Data Dictionary Not built - submit F1-AVTBL
    Maint. Object Not built - submit F1-AVMO
    Algorithm Not built - submit F1-AVALG
    Batch Control Not built - submit F1-AVBT
    To Do Type Not built - submit F1-AVTD
    Service XML Built 2008-04-14 (15:40)
    Java Docs Built 2008-04-16 (08:43)
    Cobol Source Built 2008-04-14 (10:22)
    Manually submitting one of those throws this error:
    File path to WAR file and location to expand WAR file are required if Use War File is switched.
    Anyone seen anything like this?
    Edited by: Adam D. on May 25, 2010 1:43 PM

    That worked! Thank you so much. App viewer loads now and all the F1-* items show as built. Only problem now is all the CM xml files seem to be missing. Every time you click something in app viewer it throws an error such as:
    Source file does not exist data/maintobj/ENG/CM/ext_BATCHCNTL.xml
    This is just one of them. There are many, and they all exist in that same CM directory... which doesnt exist haha
    Thanks again for the advice!

  • Advantages to deploying a WAR file

    I have heard that good a good JSP practice is deploying your JSP applications in a WAR file.
    What is a WAR file?
    Why deploy your application as one?
    How do you do so?
    Thanks
    Mark

    Do you not need to make any changes to certain xml files in your app server to deploy a war file?
    Bal
    Hi,
    A WAR file, or Web Archive is just like a JAR file or
    a ZIP file. In fact you use the jar command to make
    one.
    Basically it's your final web-app packaged as a JAR
    file.
    The reason it's a good idea to do one is that WAR
    files are self-extracting. You can drop an WAR file
    into the webapps folder of any JSP server and once the
    server is restarted it will unpack itself and create
    it's own context.
    To create one just go to the root of your webapp and
    type:
    jar cvf myWebApp.war *
    Take the myWebApp.war file and drop it into your
    webapps folder, restart the server and go to
    http://yourdomain/myWebApp where you'll se the whole
    thing unpacked and working.
    It's great for deployment because you're only dealing
    with one file rather than hundreds.
    Try it out.

  • !DOCTYPE !ENTITY war file xml splitting problem

    Hi,
    I am trying to split a file - struts-config.xml - which eventually gets
    located into my war file.
    Here is the xml file.
    <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts
    Configuration 1.0//EN"
    "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd"
    <!ENTITY struts_FormBeans SYSTEM "./struts_FormBeans.xml">
    <!ENTITY struts_GlobalForwards SYSTEM
    "./struts_GlobalForwards.xml">
    <!ENTITY struts_ActionMappings SYSTEM
    "./struts_ActionMappings.xml">
    >
    The problem that I run into is that the xml parser at deploy time cannot
    locate the struts_FormBeans.xml file which is located in the same place as
    the struts-config.xml file.
    Does anyone know a way to tell it to look in the war file?
    or Does anyone know a better place to post a question like this?
    Thanks in advance!!

    The problem that I run into is that the xml parser at deploy time cannot
    locate the struts_FormBeans.xml file which is located in the same place as
    the struts-config.xml file.Uh-uh. Ran into this also.
    Does anyone know a way to tell it to look in the war file?Not me, but I wish I could.
    or Does anyone know a better place to post a question like this?This seems more like a Struts issue to me. Look here:
    http://marc.theaimsgroup.com/?l=struts-user&m=100016330124990
    and follow the thread. Someone suggested a patch to the ActionServlet, I
    haven't tried it yet. It sounds good and will probably do what you want.
    --Renaud
    "IH" <[email protected]> wrote in message news:[email protected]..
    Hi,
    I am trying to split a file - struts-config.xml - which eventually gets
    located into my war file.
    Here is the xml file.
    <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts
    Configuration 1.0//EN"
    "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd"
    <!ENTITY struts_FormBeans SYSTEM "./struts_FormBeans.xml">
    <!ENTITY struts_GlobalForwards SYSTEM
    "./struts_GlobalForwards.xml">
    <!ENTITY struts_ActionMappings SYSTEM
    "./struts_ActionMappings.xml">
    >
    The problem that I run into is that the xml parser at deploy time cannot
    locate the struts_FormBeans.xml file which is located in the same place as
    the struts-config.xml file.
    Does anyone know a way to tell it to look in the war file?
    or Does anyone know a better place to post a question like this?
    Thanks in advance!!

  • JSP precompilation and my .java files compilation issues /  building WAR file using ANT

    Hello.
    I am new to working with WAR files and the whole process of it. A little
    background on what we are using. We are using, WLS 6.1 SP3. I am using the
    ant.bat that is supplied in the bin directory of the WLS install.
    I am trying to work with ANT and getting it to build the file. I am making
    progress, but at a point where I am having trouble getting my java code
    files to compile using ant. I am having one issue and looking to do one
    other item.
    1) I would like to precompile the JSPs if possible prior to putting into the
    WAR file. Not sure if this is done or not, but there was a utility when I
    was working with ibm's app server that gave us the ability to do a batch
    complile. Was thinking that maybe a similair concept is possibly here.
    2) Having issue getting ant to compile code properly. In the compile
    section of the build.xml file for ant, I tell it where the source files are,
    and the destionation folder for the compiled class files. I then try to set
    the classpath so that it finds the .jar files that are necessary for my
    source files to complile. But, it won't find them. And not sure how come.
    I may be going about this all wrong, but dont know. Here is the compile
    section of the build.xml I am using:
    <target name="compile" depends="prepare">
    <javac srcdir="classes" destdir="${deploy.home}/WEB-INF/classes"
    classpath="$(lib.home)"
    debug="on" optimize="on" deprecation="off"/>
    </target>
    One note, I've tried many different items in the classpath line, which
    don't work. if I do *.jar it fails at complie time, invalid argument. As
    well as if I use *.* and so on. if I list the explicit file names, it still
    doesn't seem to find them.
    I was wondering if anyone could help, if you need anymore information let me
    know, I can send the entire build.xml if necessary. I may be missing
    items, seeing that this is my first try at using ANT.
    Any help is appreciated and thanks in advance. Hopefully not sounding too
    off the wall. Hopefully get some clarification and understanding.
    Thank you.
    Kevin.

    Kevin Price wrote:
    Hello.
    I am new to working with WAR files and the whole process of it. A little
    background on what we are using. We are using, WLS 6.1 SP3. I am using the
    ant.bat that is supplied in the bin directory of the WLS install.
    I am trying to work with ANT and getting it to build the file. I am making
    progress, but at a point where I am having trouble getting my java code
    files to compile using ant. I am having one issue and looking to do one
    other item.
    1) I would like to precompile the JSPs if possible prior to putting into the
    WAR file. Not sure if this is done or not, but there was a utility when I
    was working with ibm's app server that gave us the ability to do a batch
    complile. Was thinking that maybe a similair concept is possibly here.you can use weblogic.jspc
    http://e-docs.bea.com/wls/docs70/jsp/reference.html#57794
    or just set the precompile flag in weblogic.xml
    You can configure WebLogic Server to precompile your JSPs when a Web
    Application is deployed or re-deployed or when WebLogic Server starts up
    by setting the precompile parameter to true in the <jsp-descriptor>
    element of the weblogic.xml deployment descriptor.
    >
    2) Having issue getting ant to compile code properly. In the compile
    section of the build.xml file for ant, I tell it where the source files are,
    and the destionation folder for the compiled class files. I then try to set
    the classpath so that it finds the .jar files that are necessary for my
    source files to complile. But, it won't find them. And not sure how come.
    I may be going about this all wrong, but dont know. Here is the compile
    section of the build.xml I am using:
    <target name="compile" depends="prepare">
    <javac srcdir="classes" destdir="${deploy.home}/WEB-INF/classes"
    classpath="$(lib.home)"
    debug="on" optimize="on" deprecation="off"/>
    </target>
    maybe because you are not using curly braces there on lib.home??
    if you do it the way above, you would have to list all your jars
    classpath="$(lib.home)\lib1.jar:$(lib.home)\lib2.jar"
    or you can nest
    <javac srcdir="classes" destdir="${deploy.home}/WEB-INF/classes"
    debug="on" optimize="on" deprecation="off">
         <classpath>
              <fileset dir="${lib.home}" includes="*.jar" />
         </classpath>
    </javac>
    One note, I've tried many different items in the classpath line, which
    don't work. if I do *.jar it fails at complie time, invalid argument. As
    well as if I use *.* and so on. if I list the explicit file names, it still
    doesn't seem to find them.
    I was wondering if anyone could help, if you need anymore information let me
    know, I can send the entire build.xml if necessary. I may be missing
    items, seeing that this is my first try at using ANT.
    Any help is appreciated and thanks in advance. Hopefully not sounding too
    off the wall. Hopefully get some clarification and understanding.
    Thank you.
    Kevin.

  • Compiling JSP within a WAR cannot find classes

              I have developed a WAR file containing a trivial JSP that simply invokes functionality contained within
              a Java class. The WAR file is registered without a problem, and unpacks my libraries and classes to
              C:\weblogic\myserver\_tmp_war (jar files & top-level package dirs are in the root). When I invoke the
              JSP, the code is generated correctly within C:\weblogic\myserver\_tmp_war\jsp_servlet. However the
              compiler fails to find the class referenced by the JSP, and the following error is logged.
              java.io.IOException: Compiler failed executable.exec([Ljava.lang.String;[javac, -classpath, C:\weblogic\myserver\serverclasses;C:\weblogic\jre1_2\jre\lib\rt.jar;C:\weblogic\jre1_2\jre\lib\i18n.jar;C:\weblogic\classes\boot;C:\weblogic\eval\cloudscape\lib\cloudscape.jar;C:\weblogic\license;C:\weblogic\classes;C:\weblogic\myserver\serverclasses;C:\weblogic\lib\weblogicaux.jar;C:\weblogic\myserver\myserver.war;C:\weblogic\myserver\_tmp_war\cos.jar;C:\weblogic\myserver\_tmp_war\gnu-regexp-1.0.8.jar;C:\weblogic\myserver\_tmp_war\xerces.jar, -d, C:\weblogic\myserver\_tmp_war, C:\weblogic\myserver\_tmp_war\jsp_servlet\_test.java])
              My classes are contained within /WEB-INF/classes inside the WAR file when it is generated. Upon
              inspection of the compile command, it would appear that the libraries expanded from the WAR are
              added, but not the general classes (i.e. C:\weblogic\myserver\_tmp_war is not in the compile classpath.
              Any help on this would be greatly appreciated.
              David Barton
              >>> The following is the web.xml file <<<<<
              <!DOCTYPE web-app PUBLIC
              "-//Sun Microsystems, Inc.//DTD Web Application 1.2//EN"
              "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
              <web-app>
              </web-app>
              >>>>> The following is the JSP page <<<<<<<<<
              <%@ page import="oneit.Formatter" %>
              <html>
              <body>
              <%= Formatter.format (10) %>
              </body>
              </html>
              >>>>> The Formatter class is below <<<<<<
              package oneit;
              public class Formatter
              public static String format (int number)
              return String.valueOf (number);
              

              I have also found that extracting the WAR file and referencing the resulting directory rather then
              the WAR works.
              David Barton
              

Maybe you are looking for

  • CUCM 8.6.2 - SURL Buttons Issue related to Extension Mobility

    Hello Guys, we are running a CUCM 8.6.2.22900-2 with the extension mobility service. One the user device profiles we have applied several third application services via SURL buttons.  Actually I though it does not matter, what device type I choose du

  • To split Delivery into multiple delivery

    Hi, VL10C is used to generate deliveries in  background. In Delivery if sum of the line item weights is greaterthan Maximum weight then deliveries should split according to the requirement. Example:  lineitem       quantity 10                 1000 KG

  • Aperture 3 trial s# NG

    I'm a registered user of Aperture 2, downloaded the trial of 3 to see the new features. Got an email from Apple w/ S# When installing 3 at the S# prompt was told S# not valid. Can't talk to anyone at Apple of course. Apple mgmt is getting tiresome. A

  • Insert in new column

    Dear sirs. I had a table with twenty collumns and with many registers. I have created twho new collumns, and I put im my insert the new column, but the oracle dont´t made the isert in the new column, if i take off the new column, then it´s insert. ev

  • How do I print the thumbnails as they are to make a contact sheet?

    How do I print the thumbnails as they are to make a contact sheet?