JSP/JSF Not Recompiling

Current Setup:
JSF RI 1.0
Tomcat 5.5.09
JSP 2.4
Whenever I make a change to one of my jsp pages, and I hit refresh on my browser, the changes are not reflected. I have to go into the Tomcat manager application and restart the application.
The weird thing is, I think the servlet recognizes the changes (when I make changes and hit reload, it takes some time to redisplay the page). However, the changes that I made are not reflected.
I've looked around the web and have seen various posts - all of which have not helped me. I've checked server.xml and made sure that the developer init param is set to true (as well as in my web app's web.xml file)
Does anyone have any thoughts on this? Much thanks in advance

Sometime happens to me. You can "make" simple wrong syntax error in JSF page, any place in your code, like
<f:view ererere>
then page will recompile with error, then change back. JSF page will be recompiled. It works always for me. :-)

Similar Messages

  • Jsps are not recompiled automatically

    I use WebLogic 5.1, and have this in my properties-file:
              weblogic.httpd.register.*.jsp=\
              weblogic.servlet.JSPServlet
              weblogic.httpd.initArgs.*.jsp=\
              pageCheckSeconds=0,\
              compileCommand=d:/jdk1.3/bin/javac.exe,\
              workingDir=d:/weblogic/myserver/classfiles,\
              verbose=true
              Still my jsp-files don't recompile automatically. In fact, sometimes they do, sometimes they don't. How come? What can I do to make sure WebLogic compiles the new jsps?
              Please email any answers.
              Regards, Hågen
              [att1.html]
              

    That configuration should recompile them whenever they are modified.
              It will NOT reload them if d:/weblogic/myserver/classfiles is also in your WEBLOGIC_CLASSPATH.
              Mike
              Hågen Hasle <[email protected]> wrote in message news:3ab10b0b$[email protected]..
              I use WebLogic 5.1, and have this in my properties-file:
              weblogic.httpd.register.*.jsp=\
              weblogic.servlet.JSPServlet
              weblogic.httpd.initArgs.*.jsp=\
              pageCheckSeconds=0,\
              compileCommand=d:/jdk1.3/bin/javac.exe,\
              workingDir=d:/weblogic/myserver/classfiles,\
              verbose=true
              Still my jsp-files don't recompile automatically. In fact, sometimes they do, sometimes they don't. How come? What can I do to make sure WebLogic compiles the new jsps?
              Please email any answers.
              Regards, Hågen
              [att1.html]
              

  • BUG: OC4J recompiled JSPs can not be debugged in JDev 10.1.3.2

    We are having problems on JSP which are modified while running on OC4J within JDev 10.1.3.2. The modified JSP are not correctly recompiled.
    A similar thread discussing this problem is here:
    Oracle JDeveloper 10.1.3.1's Internal OC4J JSP Recompile
    We consider this to be a problem that may be related more to OC4J than to JDev and therefore I am asking for suggestions in this forum.
    To explain what we observe:
    In JDev 10.1.3.1 we found that big/complex JSP would not recompile after changes were made while OC4J was running. The compiled JSP files under \.jsps\_web_2d_inf\... changed from myfile.class and myfile.java to myfile.class, myfile.java and (a new file) myfile.jpa.
    After installing JDev 10.1.3.2 we now observe that for any JSP that gets changed (also the small/simple ones) the constellation of three files (with the additional .jpa) gets created. Small files are compiled and can be used after changed in real time but code insight and variable inspection and modification needed for debugging no longer work. (Note that they worked on the unchanged file, and would work again if we stop and recompile the whole project).
    I could certainly appreciate if someone has found a solution to this problem as migrating back to a JDev version previous to 10.1.3.1 is not wanted.
    Thanks in advance!
    Gonzalo

    I have openned a SR with this issue.
    Does nobody else has this problem?
    To reproduce it try:
    Run any application in JDeveloper which contains a JSP file where a scriptlet declares
    and use some variables.
    Run the application and set a breakpoint after some of the variables. Call the JSP from the browser to start its execution and after stopping at the breakpoint inspect the variables content. It works, you can see the variable contents.
    Now make a change in the JSP (anything) and call it again from the browser without restarting OC4J.
    After stopping at the breakpoint you will see that the variables can no longer be inspected, their content is no longer available.
    Thanks for any suggestions,
    Gonzalo

  • Unified Expression language framework in another context than JSP/JSF

    Hi
    +(I hope this is the right place for such question)+
    We are building some RCP apps and we are in need, for our frameworks, of a expression language that allows to get and set values, and other things, and it seems that the Unified Expression Language Framework meets our need.
    However, as I said, this is a RCP app, not a web app. So my question is
    Is this framework designed to be used outside of the web app context (jsp, jsf, etc) ? Or is there any dependencies that would prevent or make it difficult to use it in a GUI RCP application?
    Thanks for your help
    cd

    BalusC wrote:
    It's so cool that you can change the way to read your sentence. I never read it any other way. I probably shouldn't have posted a double meaning statement but saying that I'm changing the way I read it is incorrect. I'm not doing that.
    BalusC wrote:
    It's also a great coincidence that you mention exactly the references which are implicitly available in the scriptlet world.Not sure what that's intended to mean. I was exposing to the OP the part of EL that deals with objects that require/assume a j2ee container.

  • It looks Oracle Form/Applet  die hard versus J2EE Servlet/JSP/JSF  & AJAX

    I left the form forum for a while and am busy with transfering our Oracle web forms app to Struts based J2EE application (just because the Oracle EE AS is the moving cause, it's out of my control.). After a year or so on J2EE which I enjoyed the fresh OO coding while keep enhancing Oracle webform app in production, I have some thought on Applet vs J2EE JSP/JSF plus AJAX.
    1) JSP itself is hard to avoid the full screen refreshing even though user just does partial changes ,e.g., lists, on the screen, it has to use AJAX to do the tricks. While partial refreshing in applet is natural default behavior.
    2) Forms is really an RAD, while J2EE's IDEs does help a bit(IBM's Websphere v6 even called iRAD) which takes way longer programming time compared to Forms. One IBM's article says it trys to win the Oracle Forms developers by giving the familiar graphical way of drag/drop GUI, so IBM recognizes the RAD coding power of Oracle Forms. So, IBM promotes the RAD similar to Oracle Forms.
    3) GUI/business rules related validation: Applet offered a great advantage over JSP/ even JSF which to avoid the full screen refresh, AJAX/JavaScript is used heavily. User friendly interaction of applet is way better than J2EE.
    4) Browser's back/refresh buttons also are headache to J2EE, expecially we need to support IE and Firefox. Applet basically is not bothered by these buttons.
    Recently, I read techi news said that the new chips will make the network transfer speed 10 time faster than now-even the cell phone transfer the image will be way faster. Then I predict the applet, just like IBM's mainframe, will see its Spring again, not like now in its winter. Especially the Oracle Forms makes coding easier than pure applet coding.
    Oracle folks, kepp beefing up the Oracle Forms, don't just pay attention to JDev. J2EE IDE, most of all, remove the Oracle EE ASxx block, be open. Oracle EE ASxx is really not a pretty baby, even though so Oracle thinks it is.

    1) Why we are transfering your Oracle web forms app to Struts based J2EE application?
    Since our corporate is IBM world-DB2/UDB, WebSphere AS (WAS) etc. It only allows Oracle Forms/reports servers to be compatible with the infrastructure. It does not allow to purchase another EE app server(espeically LDAP). We could not upgrade our forms/reports6i to 9i or 10g.
    2.Therefore the Oracle EE AS is the moving cause, it's out of my control because I did my best to talk to Oracle sales, but no avail. I am glad that I got a good chance to beef up my J2EE Struts skills.
    If extract out the forms/report9i/10g engines from the Oracle EE AS 9i/10g, (don't attempt to bundle sell the EE AS to customers-regardless of the shrinked 9.0.4 forms/reports services version, it's still another EE AS) and make them compatible with other ASs(espcially the LDAP), then Oracle Forms will have more customers.

  • Is it possible to use two diff forms in same jsp/jsf page?

    Hi all,
    My requirement is to submit the form based on selection of radio button.
    since half part needs to be jsp based which is not using any tags etc.
    But i am trying to use some jsf based component which requires to be inside <f:view><h:form> of
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
    i.e. some <c:comboBox>
    </h:form> </f:view>
    Now earlier i was submitting the form as
    <form action="/techstacks-v2_1/reportAction.do" method="post" name=doSearch id='doSearch'>
    But now i found, in order to use combo box component which is entirely jsf based i need to use <f:view><h:form> which is kind of taking over the previous form submission mechiansm.
    I am trying to keep them separate as two differnt forms.
    one entirely jsp based and other as jsf based.
    Now my question is can i use such way of doing so or is there any better way of implementing so.
    My friend suggested that i can pass the value of jsf based form in hidden form to a input box of form to be submitted finally instead of submitteing two diff forms.
    but in that case also i ahev to use two forms in a single jsp/jsf page.
    suggest me something which can really work out.
    thanks
    vijendra

    You can use as many forms as you want as long as you don't nest forms. The HTML spec probibits that.

  • 10g BPM JSP/JSF Internationalisatio problem

    Can anyone help me here? I'm trying to internationalise the labels in a 10g BPM custom JSP (JSF) presentation but I can't work out where to put the language bundle so the tags can pick them up.
    I use
         <f:loadBundle baseName="labels" var="labels"/>
    to get the bundle and
         <h:outputText value="#{labels.decisionHeader}" style="text-align:left;"/>
    to display the text. However wherever I put the properties file in the workspace IN BPM Studio, I get
    RUNTIME: Unexpected Error:The task could not be successfully executed.
    RUNTIME: Reason: 'fuego.web.execution.exception.InternalForwardException: UnExpe
    cted error during internal forward process.'.
    when I try to open the manual task from the workspace. Anyone had any luck with this?
    Matthew

    I handle internationalization a little differently...
    At the top of my jsp, I have:
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
    <%@ taglib uri="http://fuego.com/jsp/ftl" prefix="f" %> 
    <%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
    <fmt:setLocale value='${pageContext.request.locale}' scope="session"/>
    <fmt:setBundle basename="languageFile" scope="session" />Then, put the languageFile_en.properties in the following location: (other langauges would have the file name _<languageCode>.properties extension.
    <ObpmHome>\webapps\workspace\WEB-INF\classes
    This looks at what the browser has set for language, and reads the proper file...
    Use of the language properties looks like:
    <table class="header_bar">
         <tr>
              <td class="past"><fmt:message key="pro_bar_requester"/></td>
              <td class="past"><fmt:message key="pro_bar_coi"/></td>
              <td class="past"><fmt:message key="pro_bar_supplier_type"/></td>
              <td class="current"><fmt:message key="pro_bar_supplier_info"/></td>
              <td class="future"><fmt:message key="pro_bar_due_diligence"/></td>
         </tr>
    </table>And the language file looks like:
    pro_bar_requester=Requester
    pro_bar_coi=Conflict of Interest
    pro_bar_supplier_type=Supplier Type
    pro_bar_supplier_info=Supplier Info
    pro_bar_due_diligence=Due DiligenceHTH,
    -Kevin

  • JSP is not getting displayed in add portlet repositery

    Hi,
    I have registered two servlet in provider.xml and I was able to
    view that servlet as a portlet in add portlet repositery.
    After that I wanted to add one more JSP as portlet under same
    provider. So I have kept JSP in same directory where servlet is
    kept. I have added JSP as portlet in Provider(i.e. provider.xml)
    and given appPath and appRoot for that JSP. Whenever I am trying
    to view my provider by giving following URL
    http://servername/servlet/myprovider
    I am getting message -
    Congratulations! You have successfully reached your Provider's
    Test Page.
    in same page I am able to view my all portlets. in that list I
    am able to view my JSP as a portlet.
    Now I want to add JSP portlet in my page at that time that JSP
    portlet is not getting displayed in add portlet repositery.
    Can anybody tell why JSP is not getting displayed in portlet
    repositery ? What should I do to get it displayed in portlet
    repositery ?
    Thanks in advance.
    Biren

    You have to refresh the Provider. They are a couple of ways to
    do it.
    1. Take a look at the release notes for PDK-Java.
    http://portalstudio.oracle.com/servlet/page?_pageid=468&_dad=ops&
    _schema=OPSTUDIO
    It mentions and auto reload feature that will refresh the
    provider on the PDK-Java side when you make changes to the
    provider.xml. When you add portlet, you simply refresh the
    repository in portal and add the new portlet to a page.
    2. If you do not have the auto_reload parameter, you simply need
    to refresh manually.
    a. After updating the provider.xml, restart the HttpServer where
    your PDK-Java Provider is located.
    b. Refresh the Portlet Repository
    Both these do the same thing, and should solve your problem
    Sue

  • JSP is not getting displayed.

    Hi experts,
    I am developing and application , in which the user select a entry from select box and clicks on the button. This should open the 2nd JSP but surprisingly it is not doing that. It just the let 1st JSP on and blinks.
    The switching between JSPs is done using a state variable, whose value changes in the method used for OnClick of button.
    Can you please tell me why 2nd JSP is not getting called? I am very new to Portal development.
    Regards,

    Hi,
    Did u write a method for onClick event in component(java file).if u write it in java file & set "state=1" so when u click a button it will call seconn jap file...
    Regards,
    Senthil K.

  • JSP class not found in WL7.1Sp1

              Environment : Windows 2000 with Wl 7.1 Sp1
              I have sucessfully deployed an J2EE 1.2 compliant ear file with 2 war files and
              1 jar file containing beans and 1 jar file containing util classes. All the war
              and jar file include appropriate weblogic 7.1 specific xml files and the beans
              contain WL generated stubs and skeleton. The war files define a context each.
              I sucessfully deploying the application and verified that the contexts are registered
              and was able to access the *.gif files from the defined contexts through the brower.
              But when I try to access the jsp pages from the context, I get the error message
              <Jan 24, 2003 10:20:46 AM CST> <Error> <HTTP> <101249> <[ServletContext(id=83679
              06,name=testdir.war,context-path=/testdir)]: Servlet class jsp_servlet.__testpag
              e for servlet testpage.jsp could not be loaded because the requested class was
              n
              ot found in the classpath D:\bea\user_projects\ApptricityERM\ApptricityERMServer
              \.wlnotdelete\ApptricityERM\testdir.war.
              java.lang.ClassNotFoundException: jsp_servlet.__testpage>
              <Jan 24, 2003 10:20:46 AM CST> <Error> <HTTP> <101018> <[ServletContext(id=83679
              06,name=testdir.war,context-path=/testdir)] Servlet failed with ServletException
              javax.servlet.ServletException: [ServletContext(id=8367906,name=testdir.war,cont
              ext-path=/testdir)]: Servlet class jsp_servlet.__testpage for servlet testpage.j
              sp could not be loaded because the requested class was not found in the classpat
              h D:\bea\user_projects\ApptricityERM\ApptricityERMServer\.wlnotdelete\Apptricity
              ERM\testdir.war.
              java.lang.ClassNotFoundException: jsp_servlet.__testpage
              at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
              mpl.java:785)
              at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:222)
              at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:164)
              at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
              java:517)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:351)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:306)
              at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
              n.run(WebAppServletContext.java:5412)
              at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
              eManager.java:744)
              at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
              rvletContext.java:3086)
              at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
              pl.java:2544)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
              >
              Appreciate any feeback and suggestions
              Thanks
              Sekar
              P.S : I have independently verified thru a standalone java program that the Beans
              are bound correctly and the Datasources are working as expected.
              

    Hi,
    looks a problem regarding classpath settings
    The directory upto which the packaging starts
    should be in the class path.
    for e.g
    ..\Appl
    |__ com...
    Here packaging starts from under dir Appl
    Just add Appl to u'r classpath and it should compile

  • How can I throw a hard 404 error to apache when a JSP is not found.

    How can I throw a hard 404 error to apache when a JSP is not found.
    I want to let apache handle the error.

    [email protected] (Jeremy Conner) wrote in
              <[email protected]>:
              >How can I throw a hard 404 error to apache when a JSP is not found.
              >I want to let apache handle the error.
              >
              >
              First thought that comes to mind is to return HTML that tells the browser
              redirect to a nonexistent file under Apache. You can't tell Apache to
              throw a 404 unless you're in a mod. Maybe something they could add to the
              proxy, but until then, I think a redirection in the response HTML is your
              only option.
              Jesse
              

  • OC4J JSP Debugging not working for all the jsps

    Hi,
    Initially I was not able to debug jsps using Eclipse and OC4J. The jsp debugging started working once I made the below changes:
    1) global-web-application.xml is modified
    Changed the attribute development="true" in orion-web-app
    Added the below init param for the JspServlet
    <init-param>
    <param-name>debug</param-name>
    <param-value>class</param-value>
    </init-param>
    If the jsps are present in a sub directory under the webcontent none of the breakpoints are working. I am still be able to view the jsp pages on the browser.
    Tools: Oracle 10g Application Server Standalone version(10.1.3.5.0), JDK5, Windows XP, Eclipse Indigo
    Project Structure:
    Test (Eclipse Dynamic Web Project)
    -WebContent
    Sample.jsp ( Breakpoints are working)
    -subF (Folder)
    SubSample.jsp (Breakpoints are not working)
    -WEB-INF
    web.xml
    Debugging worked for http://localhost:8888/Test/Sample.jsp
    Debugging not working for http://localhost:8888/Test/subF/SubSample.jsp
    Any help is highly appreciated.
    Regards
    Danny

    This tells there is not enough main memory (not disk space) for the program to run.
    - You can look the dump in ST22, it will have suggestions on increasing the ROLLAREA??, you can forward that to Basis.
    - Most likely you will not have any more memory to assign so the above may not be feasible. Try to rework your query so it works with less data.

  • The requested resource (/DBTest/SearchInventory.jsp) is not available.

    Hi,
    I have a search screen (jsp page) which has four fields to base the search on. Once the "Search" button is clicked, i am going to a servlet which does a select based on the search criteria, and stores the result in a ResultSet object. I then use the setAttribute method to store the result set in a bean. Here is the code for what i've just described:
    rs=stmt.executeQuery(QueryStr); //get result set
    HttpSession session=req.getSession(true);//create session var
    session.setAttribute("s_resbean",rs);//set bean attribute
    After this is set, i want to forward/redirect (whatever works...nothin does right now...the reason for this post.) back to the search screen(jsp page), and display the query ResultSet in the bottom half of the screen. I use the following code to do this:
    String url="/DBTest/SearchInventory.jsp";
    RequestDispatcher dispatcher=getServletContext().getRequestDispatcher(url);
    dispatcher.forward(req,res);
    Unfortunately, this gives me the following error:
    The requested resource (/DBTest/SearchInventory.jsp) is not available.
    Why would this be happening?? Is there another way of doing this? I'm just trying to follow the example in chp.15 of the free coreservlets pdf...
    Thanks in advance,
    Aditya.
    P.S. Here is the code for my bean...don't know if it's needed...
    public class SearchBean extends HttpServlet{
         private int searchFlag=0;
         private ResultSet searchRS;
         public SearchBean(){
         public int getSearchFlag(){
              return searchFlag;
         public ResultSet getSearchRS(){
              return searchRS;
         public void setSearchRS(ResultSet rs){
              this.searchRS=rs;
         public void setSearchFlag(){
              this.searchFlag=1;
    }

    I assume DBTest is the context root for your webapp.
    ServletRequest.getRequestDispatcher(String url) is looking for a url relative to the context root. Therefore if my assumption is correct you want to use the url /SearchInventory.jsp, removing the DBTest.
    HTH.

  • The requested resource (/mytest/test.jsp) is not available.

    JSP and Java are NEW for me.
    I have prepared Linux server with Tomcat and Apache servers, connect it to using mod_jk.
    Apache and Tomcat are work fine following LINK.
    http://localhost/examples/jsp/
    But , when I access JSP from my folder which I made it same folder "examples" is not working.
    http://localhost/mytest/test.jsp (This is my folder which i want to call all my JSP file.)
    It display following error message:
    Apache Tomcat/4.0.4 - HTTP Status 404 - /mytest/test.jsp
    type Status report
    message /mytest/test.jsp
    description The requested resource (/mytest/test.jsp) is not available.
    What can i do, HELP ME.

    I STILL have some problem with JSP.
    I have prepared Linux server with Tomcat and Apache servers, connect it to using mod_jk.
    Apache and Tomcat are work fine following LINK.
    http://localhost/examples/jsp/
    But , when I access JSP from my folder which I made it same folder "examples" is not working.
    http://localhost/mytest/test.jsp
    (This is my folder which i want to call all my JSP file.)
    It display following error message:
    Apache Tomcat/4.0.4 - HTTP Status 404 - /mytest/test.jsp
    type Status report
    message /mytest/test.jsp
    description The requested resource (/mytest/test.jsp) is not available.
    What can i do, HELP ME ???

  • Bean in JSP is NOT WORKING. Please help

    Hi,
              Anyone who got java-beans working with WL JSP? I could not get even the
              hello bean to work. I am getting a error message saying somthing like
              "foo.bar.HelloBean.class is not a bean" .
              Is there any perticular reason for the abuse of not including java bean
              example in JSP examples?
              I will greatly appreciate any help in this direction.
              Thank you in advance
              -Harit
              

    If I had to guess based on the error message I would say you have incorrectly
              defined the class file.
              Remove the .class from the definition within the JSP.
              For instance,
              <jsp:useBean
              id="myHelloBean"
              scope="session"
              class="foo.bar.HelloBean">
              </jsp:useBean>
              Not class="foo.bar.HelloBean.class"
              Hope this helps.
              Harit Nanavati wrote:
              > Hi,
              > Anyone who got java-beans working with WL JSP? I could not get even the
              > hello bean to work. I am getting a error message saying somthing like
              > "foo.bar.HelloBean.class is not a bean" .
              > Is there any perticular reason for the abuse of not including java bean
              > example in JSP examples?
              > I will greatly appreciate any help in this direction.
              > Thank you in advance
              > -Harit
              

Maybe you are looking for