Shale with Tiles

Hello,
can someone help me to sort it out. I'm trying to get tiles working with shale.
I've shale-blank (their example 1.0.4 version) working fine under tomcat 5.5, also I have tiles-test (example 2.0.3 version) working fine.
Now I'm building on the top of shale-blank.
In WEB.XML I added :
<context-param>
<param-name>definitions-config</param-name>
<param-value>/WEB-INF/tiles.xml</param-value>
</context-param>
<listener>
<listener-class>
org.apache.tiles.listener.TilesListener
</listener-class>
</listener>
In FACES-CONFIG.xmlI added:
<application>
<view-handler>
org.apache.shale.tiles.TilesViewHandler
</view-handler>
</application>
In WEB-INF\lib I added:
shale-tiles-1.0.4, tiles-core-2.0-r468346-SNAPSHOT
Since I'm reading that shale needs tiles 2, I copied into welcome.jsp (right from tiles 2.0.3 example):
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %>
and places into tiles.xml reference to tiles-config_2_0.dtd
Got exception:
javax.faces.FacesException: The absolute uri: http://tiles.apache.org/tags-tiles cannot be resolved in either web.xml or the jar files deployed with this application
     org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:422)
     org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
     org.apache.shale.tiles.TilesViewHandler.renderView(TilesViewHandler.java:176)
     org.apache.shale.view.faces.ViewViewHandler.renderView(ViewViewHandler.java:147)
     org.apache.shale.tiles.TilesViewHandler.renderView(TilesViewHandler.java:176)
     org.apache.shale.tiles.TilesViewHandler.renderView(TilesViewHandler.java:176)
     org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
     javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
     org.apache.shale.application.faces.ShaleApplicationFilter.doFilter(ShaleApplicationFilter.java:267)
     org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:703)
     org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:670)
     org.apache.jsp.index_jsp._jspService(index_jsp.java:47)
     org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
     org.apache.shale.application.faces.ShaleApplicationFilter.doFilter(ShaleApplicationFilter.java:267)
I tried then to change to struts tiles:
(1)<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles"%>
(2) changing reference in tiles.xml to ...struts/dtds/tiles-config.dtd
(3) and adding struts.jar to WEB-INF\lib.
This time I've got:
43: </p>
44: <div id="level2">
45: <f:subview id="content">
46: <tiles:insert attribute="welc2" flush="false"/>
47: </f:subview>
48: </div>
49:
Stacktrace:
     org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:422)
     org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
     org.apache.shale.tiles.TilesViewHandler.renderView(TilesViewHandler.java:176)
     org.apache.shale.view.faces.ViewViewHandler.renderView(ViewViewHandler.java:147)
     org.apache.shale.tiles.TilesViewHandler.renderView(TilesViewHandler.java:176)
     org.apache.shale.tiles.TilesViewHandler.renderView(TilesViewHandler.java:176)
     org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
     javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
     org.apache.shale.application.faces.ShaleApplicationFilter.doFilter(ShaleApplicationFilter.java:267)
     org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:703)
     org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:670)
     org.apache.jsp.index_jsp._jspService(index_jsp.java:47)
     org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
     org.apache.shale.application.faces.ShaleApplicationFilter.doFilter(ShaleApplicationFilter.java:267
Here is my WELCOME.jsp:
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%//@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles"%>
<f:view>
<%@include file="messages.jspf"%>
<html>
<head>
<title><h:outputText value="#{messages['welcome.title']}"/></title>
<head>
<body>
<p>
<h:outputText value="#{messages['welcome.prompt']}"/>
<h:outputText value="#{welcome.timestamp}">
<f:convertDateTime type="both"/>
</h:outputText>
</p>
<div id="level2">
<f:subview id="content">
<tiles:insert attribute="welc2" flush="false"/>
</f:subview>
</div>
</body>
</html>
</f:view>

Hi,
Got exception:
javax.faces.FacesException: The absolute uri: http://tiles.apache.org/tags-tiles cannot be resolved in either web.xml or the jar files deployed with this applicationTo solve above error u need to include tiles-jsp.jar in your project dependency. If you are using maven, you can give dependency in following way.
<dependency>
<groupId>org.apache.tiles</groupId>
<artifactId>tiles-jsp</artifactId>
<version>2.0.5</version>
</dependency>

Similar Messages

  • How to add SharePoint 2013 Promoted link list view web part in page programatically with Tiles view using CSOM.

    How to add SharePoint 2013 Promoted link list view web part in page programatically with Tiles view using CSOM. I found that it can be
    done by using XsltListViewWebPart class but how can I use this one by using shraepoint client api.
    shiv

    Nice, can you point me to the solution please ?
    I'm  trying to do this but I get an error : 
    Web Part Error: Cannot complete this action. Please try again. Correlation ID: blablabla
    StackTrace:    at Microsoft.SharePoint.SPViewCollection.EnsureViewSchema(Boolean fullBlownSchema, Boolean bNeedInitallViews)     at Microsoft.SharePoint.SPList.GetView(Guid viewGuid)   
    All help really appreciated.

  • Is in JSF (with Creator) a tehnologie similar with Tiles?

    Hy! I'm new and I want to ask: is in JSF a tehnologie similar with Tiles? How can I make my jsf pages to have some header and footer? Of course, in Creator.
    Thank you very much.

    In general, by design, JSF is a much more flexible framework as JSF is built with integration and extensibility in mind. JSF isn't easier than Struts when developing by hand, but using Sun Java Studio Creator can make it much much easier and greatly increase your productivity.
    Take a look at the Craig McClanahan's Weblog (He was the original creator of the Struts Framework, and was the co-specification lead for JavaServer Faces (JSF) 1.0 )
    http://blogs.sun.com/roller/page/craigmcc/20040927#struts_or_jsf_struts_and
    A good place to learn more about JSF is JSF Central .
    http://jsfcentral.com/
    As for your second question, you could use 'Page Fragment Box'. Check the online help for "Page Fragment Box".
    'This component enables you to include a page fragment in a page. A page fragment is a separate, reusable part of a page that can be included in any number of pages. For example, you might want to put a common a visual element like a header graphic in a page fragment and then include it in all the pages in an application......'
    Hope that helps.

  • Integrating ADF with Tiles - Facing some problem with ViewHandler

    Hi,
    I am trying to integrate ADF with Tiles. I am able to use tiles and display one or more JSF files using ADF components on a single tile using this thread, ADF Faces Access Denied But the issue is, the functionality of the pages are not getting included, for example, I have an action on click of a command link in one of the tiles, which is not working, its not even refreshing the page. When I tried using plain jsp:include, it works.
    I doubt its b'coz of Tiles - committing the response and forwarding the page, rather than including the page. Does anybody tried on this and have some work around?
    -Manju

    The example for AJAX and JSP with database is
    http://jspcodes.elementfx.com/forums/viewquestion.php?question=11&category=7&name=AJAX
    It works for me. Plz correct the + operator

  • JSF 1.2 with tiles

    Hi
    I am using JSF with tiles and am having issues with page navigation with using tiles. Can any body tell me what to write in faces-config.xml so that the required page opens in tile which i have defined for that page in the corresponding tiles-defs.xml.
    Here is the detail of code i am using
    web.xml:
    <context-param>
    <param-name>tiles-definitions</param-name>
    <param-value>/WEB-INF/tiles-defs.xml</param-value>
    </context-param>
    <context-param>
    <param-name>javax.faces.CONFIG_FILES</param-name>
    <param-value>
    /WEB-INF/faces-config.xml
    </param-value>
    </context-param>
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
    </context-param>
    <context-param>
    <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
    <param-value>true</param-value>
    </context-param>
    <context-param>
    <param-name>org.apache.myfaces.PRETTY_HTML</param-name>
    <param-value>true</param-value>
    </context-param>
    <context-param>
    <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
    <param-value>false</param-value>
    </context-param>
    <context-param>
    <param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
    <param-value>true</param-value>
    </context-param>
    <listener>
    <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
    </listener>
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.faces</url-pattern>
    </servlet-mapping>
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    faces-config.xml
    <faces-config>
    <application>
    <view-handler>
    org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl
    </view-handler>
    </application>
    <from-view-id>*</from-view-id>
    <navigation-rule>
    <navigation-case>
    <form-outcome>register</form-outcome>
    <to-view-id>/tiles/register.page</to-view-id>
    </navigation-case>
    </navigation-rule>
    </faces-config>
    tiles-defs.xml
    <tiles-definitions>
    <definition name=".mainLayout" path="/tiles/main-layout.jsp">
    <put name="title" value=""/>
    <put name="header" value="/tiles/header.jsp"/>
    <put name="search-menu" value="/tiles/search-menu.jsp"/>
    <put name="body" value=""/>
    <put name="footer" value="/tiles/footer.jsp"/>
    </definition>
    <definition name="register.page" extends=".mainLayout">
    <put name="body" value="/tiles/register.jsp"/>
    </definition>
    </tiles-definitions>
    from page where we call register rule
    <h:commandLink action="register" value="Register"/>
    it opens register.jsp as new page instead of opening it into tile.
    Please helpmeout in knowing where I am wrong and let me know how to open next page in tile because welcome page is opening very well in tile but when I click for next page whose definition is defined in tiles-def.xml it doesnot open in tile
    Thanks

    Still strugling with jsf1.2+tiles

  • JSF Actions and ActionListeners with Tiles and forms

    I�m having a problem trying to use the Tiles functionality in Struts 1.1 with JSF and was wondering if anyone could help me.
    I have defined a very simple header, menu, content Tile that doesn�t involve nesting of tiles (ExampleTile_content1Level.jsp).
    I have 3 JSP pages, the first testHarness.jsp is NOT built using Tiles and is just used to load some test data into a session scoped bean using an actionListener and then forward to a Tile generated page (ExampleTile3.jsp) using a hard-coded action �applicationSummary� when a commandLink is pressed. This works fine for both the action and actionListener.
    ExampleTile3.jsp contains another commandLink that is meant to forward to another tile ExampleTile2.jsp. This also works until I try to add the <h:form> � </h:form> tag around the outside of the <h:panelGrid> tags in ExampleContent1.jsp when the action and actionListener then fail to fire and I get an �Error on Page� message in Explorer the detail of which says �Error �com_sun_rave_web_ui_appbase_renderer_CommandLinkRendererer� is null or not an object�.
    However I need a form so that I can bind UI controls to data from the bean stored in the session scope. This is only a problem when I use Tiles to define the pages. Does anyone know what I am doing wrong?
    Any help would be much appreciated.
    Tiles.xml
       <definition name="example3" path="/pages/exampleTile_content1Level.jsp" >
              <put name="headerClass" value="someStyle"/>
              <put name="menuClass" value="someStyle"/>
              <put name="contentClass" value="someStyle"/>
              <put name="header-title" value="/pages/exampleHeader.jsp" />
              <put name="menu" value="/pages/exampleMenu.jsp" />
              <put name="content" value="/pages/exampleContent1.jsp" />
       </definition>
       <definition name="example2" path="/pages/exampleTile_content1Level.jsp" >
              <put name="headerClass" value="someStyle"/>
              <put name="menuClass" value="someStyle"/>
              <put name="contentClass" value="someStyle"/>
              <put name="header" value="/pages/exampleHeader.jsp" />
              <put name="menu" value="/pages/exampleHeader.jsp" />
              <put name="content" value="/pages/exampleContent2.jsp" />
       </definition>ExampleTile3.jsp
    <f:view>
         <h:form>
              <tiles:insert definition="example3" flush="false" />
         </h:form>
    </f:view> ExampleTile2.jsp
    <f:view>
         <h:form>
              <tiles:insert definition="example2" flush="false" />
         </h:form>
    </f:view> Faces-config.xml
    <navigation-rule>
        <from-view-id>/pages/testHarness.jsp</from-view-id>
           <navigation-case>
                <from-outcome>applicationSummary</from-outcome>
                <to-view-id>/pages/exampleTile3.jsp</to-view-id>
              <redirect/>
           </navigation-case>
    </navigation-rule>
    <navigation-rule>
        <from-view-id>/pages/exampleTile3.jsp</from-view-id>
           <navigation-case>
                <from-outcome>nextPage</from-outcome>
                <to-view-id>/pages/exampleTile2.jsp</to-view-id>
                <redirect/>
           </navigation-case>
    </navigation-rule> ExampleTile_content1Level.jsp
    <tiles:importAttribute scope="request"/>
    <h:panelGrid columns="1" >
         <f:subview id="header-title">
              <tiles:insert name="header-title" flush="false" />
         </f:subview>
         <f:subview id="menu">
              <tiles:insert name="menu" flush="false" />
         </f:subview>
         <f:subview id="content">
              <tiles:insert name="content" flush="false" />
         </f:subview>
    </h:panelGrid> ExampleHeader.jsp / ExampleMenu.jsp
    <tiles:importAttribute scope="request"/>
    <h:panelGrid columns="1" columnClasses="someSyle">
         <h:outputFormat value="This is the {0}.">
              <f:param value="Header / Menu as appropriate "/>         
         </h:outputFormat>
    </h:panelGrid> ExampleContent1.jsp
    <tiles:importAttribute scope="request"/>
    <h:form>     <----- Fails with this tag included but works without it.
    <h:panelGrid columns="1" >
              <h:outputFormat value="This is the {0}.">
                   <f:param value="Content on the FIRST page"/>
              </h:outputFormat>
              <h:commandLink action="nextPage" immediate="false">
                   <h:outputText value="Click to go to next page"/>
              </h:commandLink>
    </h:panelGrid>
    </h:form> ExampleContent2.jsp
    <tiles:importAttribute scope="request"/>
    <h:panelGrid columns="1" >
         <h:outputFormat value="This is the {0}.">
              <f:param value="Content on the SECOND page"/>
         </h:outputFormat>
    </h:panelGrid>

    jezzica85 wrote:
    Hi everybody,
    I want to overload a method so it can take either 2 Actions, 2 ActionListeners, or one of each. The issue with this is that I'd have to make 4 overloaded signatures and almost identical methods, like this:
    method( action, action )
    method( action, listener )
    method( listener, action )
    method( listener, listener )
    Well, if you want to support that then you are just going to have to do suffer through it, the only shortcut I can recommend is that your method(action, listener) and method(listener, action) are the same so you only have to implement 1 and just use the other as a entry point to call the one you wish to contain the code.

  • Problem with "tile" effect in FCPX

    hello !
    my problem is that FCPX renders unwanted "borders" (on both sides of the center column) while i use tiling (images below)
    please help. i have no idea where they came from or how to get rid of them. these lines are messing with my whole project !
    what am i doing wrong ?
    cheers

    @Tom Wolsky
    project properities are 1280x720 @ 60fps
    media properties are 568x408 @ 30fps ~2500kbit/s mpeg4
    if i scale down (or up) i can still see those borders (lines) however they occur sometimes in other places
    i tried non-black background and "lines" are in fact narrow spaces that are transparent (lower layers can be seen through those spaces)... so in conclusion FCP adds empty spaces between tiles
    any idea ?

  • JSF with TILES and HTML-Code

    Hello!
    I have a pure JSP-project using tiles. Now I want to migrate to JSF and find some problems.
    When I use my existing layout and include the different JSPs I have no problem as long I have a single f:view in every jsp file is used. When I try to define f:view and a h:form including different files and in each file JSF componets where used I got a very bad result. Additiotal I have to say, that I try to keep my formatting with HTML tags existing.
    The effect is, that all JSF componets were rendered at the beginning of the jsp file and than be included into the layout.
    Have I use a special order of f:view, f:subview, h:form, ....
    Alternative I could make a complete reprogramming of the JSP's, not my favourit, but than I need the possibility to set single formats for each <td> in a table and this seems not to be possible with h:panelGrid.
    Havy anyone an idea?
    Thanks for your help!

    Read about facelets as a replacement for tiles in jsf.

  • How to collide with tile in scolling game?

    Hi all!
    I have the following problem - I want my airplane to be able to collide with a tile.
    this are the methods I'm now using but they doesn't seem to work as I want them to...
    In the GameCanvas class:
    /*method to check for collission*/
    boolean containsImpassableArea(int x, int y, int widths, int heights) {
              int rowMin = y / tHeight;
              int rowMax = (y + heights - 1) / tHeight;
              int columnMin = x / tWidth;
              int columnMax = (x + widths - 1) / tWidth;
              for (int row = rowMin; row <= rowMax; ++row) {
                   for (int column = columnMin; column <= columnMax; ++column) {
                        int cell = tBakgrund.getCell(column, row);
                        if (cell == STOP_TILE) {
                             return true;
              return false;
    /*method to check for keystates and invokes containsImpassableArea */
    private void checkKeys() throws Exception {
    int keyStates = getKeyStates();
    if ((keyStates & LEFT_PRESSED) != 0) {
                   if (sprit.getX() > 0
                             && !containsImpassableArea(sprit.getX() - 4, sprit.getY(),
                                       sprit.getWidth(), sprit.getHeight())) {
                        sprit.move(-4, 0);
                        sprit.setFrame(8);
                   } else {
                        sprit.setFrame(9);
    /*the same on RIGHT_PRESSED, UP and DOWN*/
    /* if no key is pressed */
    if ((keyStates == 0)) {
                   sprit.setFrame(9);
                   if(containsImpassableArea(sprit.getX(), sprit.getY() - 4,
                   sprit.getWidth(), sprit.getHeight())) { scrolling = false; }
                   else{
                        scrolling = true;
    /* the method that handles the scolling */
    if (terrainScroll < 0 && scrolling == true ) {
                   terrainScroll += 2;
                   tBackground.setPosition(0,terrainScroll);
    }//end of method checkkeys...
    ok.... why doesn't it work ...is it some kind of layerproblem (sprite and tiles not in the same layers)?
    Perhaps someone has any code samples?
    Thanks in advance!
    /arnold

    please use the [ code ] formatting tags when posting code.
    I'm not sure exactly, but it looks like you are only testing the end location of the player. For accurate collision detection, you need to test for collisions between all points between the start and end location. For example, if you are flying at a wall at full speed, the next calculated frame may be behind the wall, not on it. The way you implemented itI guess this is only a worry if your max speed is faster then the width or height of the sprite, but it may be something to consider once you allow variable speeds.

  • JSF vs Struts - both with tiles

    I'm running in the problem migrating from Struts to JSF.
    In struts I have the following fragments:
    jsp (actualy in the resulting html):
    log4j
    struts-config:
    <forward name="log4j-page" path="doc.log4j"/>
    tiles-config:
    <definition name="doc.log4j" extends="doc.mainLayout">
    <put name="body" value="/WEB-INF/html/examples/log4j.jsp" />
    </definition>
    As a result this links the anchor on jsp page to my 'mainLayout' with 'body' replaced with ...log4j.jsp.
    I found no way to replicate this link in JSF.
    I tried <h:commandLink...> with a certain action. It seems that in faces-config fragment: <to-view-id>foo</to-view-id> JSF framework is always looking for foo.jsp.
    I'm wondering if there is any way of pointing in the faces-config to the definition name in tiles-config.

    Hello,
    There are differences between the two and some similarity. A couple of major differences I have noticed is that in using JSF you have much better control over user events and page response to user actions. The reason why is because JSF uses an event-driven model (e.g., you can write ActionListeners, EventHandlers, and event Dispatchers) to respond to any user activity on the page. Also JSF tags are far more programmer-friendly (in my opinion) than Struts. Another thing I would keep in mind (especially if you are a programmer) is that Craig Mc C. was the developer of both (with help from others); How often have you said to yourself after completing a project "given what I know now, If I started over from scratch I would make it so much better by doing... instead of ..."? Having used Struts for both large and small projects in the past, I really see JSF as a "simpler, leaner, smarter, more intuitive Struts than Struts". I think its much easier to learn and maintain than Struts (of course that depends on your coding style), and here is a key point: JSF will soon have visual drag and drop coding editors that both IBM and Sun will provide, and hopefully an open source version will appear as well. Visual design and development is not for everyone but it certainly has its place (in my opinion).
    I suggest you try create a simple app that includes all of the usual form components (checkboxes, lists, radiobuttons, textareas, submit buttons, etc. though not necessarily all on one page) using JSF and then Struts (or vise versa) then you can have a feel for how simple or complex it is using either for the usual web UI development assignment.
    Cheer,
    KamauObasi

  • Error get when tomahawk integrated with tiles

    We are getting following error when we integrated tiles with tomahawk:
    java.lang.NullPointerException
         at org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.renderView(JspTilesViewHandlerImpl.java:165)
         at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:101)
         at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:221)
         at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
         at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:140)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
         at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
         at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:693)
         at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:660)
         at org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:60)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Thread.java:595)

    Says "The back up was not performed because an error occurred while copying files to the backup disk.
    "The problem may be temoporary. Try again later to back up. If the problem persists, use Disk Utility to repair back up disk."

  • Help with tile pathfinding

    I have been wanting to create a game for some time and have just recently started trying to get path finding to work. I have come up with code that works once(it will get one tile closer to the goal then stay at that node) but i can not figure out how to get it to go all the way to the goal node. can someone point out the problem area or possible fixes for me?
    (my code is too long look in the next post for the rest of it)
    package pathfinding;
    import java.awt.Graphics;
    import java.util.LinkedList;
    import mainPackage.Main;
    * call this class to find a path between start node and goal node
    @SuppressWarnings("serial")
    public class PathFinder extends LinkedList {
         public LinkedList<Node> openList = new LinkedList<Node>();
         public LinkedList<Node>closedList = new LinkedList<Node>();
         public LinkedList<Node> pathList = new LinkedList<Node>();
         int D = 4;
         public Node[][] nodeBoard=new Node[15][15];
         private Object lowestF;
         public PathFinder(int tilesX, int tilesY) {
                   for(int y = 0; y < tilesY; y++) {
                        for(int x = 0; x < tilesX; x++) {
                             Node n = new Node(x, y, 0, 0);
                             nodeBoard[x][y] = n;
                             //System.out.println("nodeBoard["+x+"]["+y+"]: "+n);
         public void findPath(Node startNode, Node goalNode) {
              System.out.println("started pathfinding ");
              Node n = startNode;
              Node gn = goalNode;
              Node lowestF = null;
              if(openList.contains(n) == false)
                   openList.add(n);//add the current node to the open list
              //for(int time = 0; time < 10; time++) {//used for testing purposes
              //while(closedList.contains(goalNode) != true) {//while the goal node isnt on the closed list
              while(lowestF != goalNode) {
              //System.out.println("started the while loop  gn x:"+gn.X+" gn y:"+gn.Y);
              //System.out.println("n X:"+n.X+" n Y:"+ n.Y);
              if(closedList.contains(gn) == false) {
                   //System.out.println("closedList does not contain goalNode");
              if(lowestF != null) {//if it isnt the first time doing the loop
                   n = lowestF;//switch lowestF to the current node (n)
                   lowestF = null;// the node with the lowest f score
                   //System.out.println(""+closedList.contains(nodeBoard[n.X-1][n.Y-1]));
              System.out.println("printing n "+n);
              

    here is the rest of my code from above
    System.out.println(""+nodeBoard[n.X-1][n.Y-1]);
              ///ads the surrounding nodes if they are not on the closed list or on the open list already
              if(closedList.contains(nodeBoard[n.X-1][n.Y-1]) == false ){// && (openList.contains(nodeBoard[n.X-1][n.Y-1]) == false))
              openList.add(nodeBoard[n.X-1][n.Y-1]);}//1//these add the nodes surrounding the current node to open list
              if(closedList.contains(nodeBoard[n.X][n.Y-1]) == false){// && openList.contains(nodeBoard[n.X][n.Y-1]) == false)
              openList.add(nodeBoard[n.X][n.Y-1]);}  //2   1 | 2 | 3
              if(closedList.contains(nodeBoard[n.X+1][n.Y-1]) == false){// && openList.contains(nodeBoard[n.X+1][n.Y-1]) == false)
              openList.add(nodeBoard[n.X+1][n.Y-1]);}//3   4 | X | 5
              if(closedList.contains(nodeBoard[n.X-1][n.Y]) == false){// && openList.contains(nodeBoard[n.X-1][n.Y]) == false)
              openList.add(nodeBoard[n.X-1][n.Y]);}  //4   6 | 7 | 8
              if(closedList.contains(nodeBoard[n.X+1][n.Y]) == false){// && openList.contains(nodeBoard[n.X+1][n.Y]) == false)
              openList.add(nodeBoard[n.X+1][n.Y]);}  //5
              if(closedList.contains(nodeBoard[n.X-1][n.Y+1]) == false){// && openList.contains(nodeBoard[n.X-1][n.Y+1]) == false)
              openList.add(nodeBoard[n.X-1][n.Y+1]);}//6
              if(closedList.contains(nodeBoard[n.X+1][n.Y+1]) == false){// && openList.contains(nodeBoard[n.X+1][n.Y+1]) == false)
              openList.add(nodeBoard[n.X+1][n.Y+1]);}//8
              if(closedList.contains(nodeBoard[n.X][n.Y+1]) == false){// && openList.contains(nodeBoard[n.X][n.Y+1]) == false)
              openList.add(nodeBoard[n.X][n.Y+1]);}  //7
              nodeBoard[n.X-1][n.Y-1].setParent(n);//
              nodeBoard[n.X][n.Y-1].setParent(n);  //Sets the parents to the current node
              nodeBoard[n.X+1][n.Y-1].setParent(n);//
              nodeBoard[n.X-1][n.Y].setParent(n);  //
              nodeBoard[n.X+1][n.Y].setParent(n);  //
              nodeBoard[n.X-1][n.Y+1].setParent(n);//
              nodeBoard[n.X][n.Y+1].setParent(n);  //
              nodeBoard[n.X+1][n.Y+1].setParent(n);//
              openList.remove(n);//remove the current node from the open list
              closedList.add(n);//add to the closed list
              for(int a = 0; a < openList.size(); a++) {//for all the nodes in the open list
                   Node s = (Node) openList.get(a);//just set a to s for no apparent reason so far
                   s.h = D * Math.max(Math.abs(s.X-gn.X), Math.abs(s.Y-gn.Y));//this finds the Heuristic
                   //System.out.println("testing h: "+s.h);
                   s.setG(s.getParent().getG()+10);//sets the g of the current node by getting the g of the parent and adding in the cost of movement(10)
              for(int fc = 0; fc < openList.size(); fc++) {//compare current node(s) to all other nodes in the open list to find the lowest f score
                   Node ff = (Node) openList.get(fc);//turns the counter into a node reference
                   //System.out.println("ff's f value: "+ff.getF());
                   if(lowestF == null) {//if there isnt a lowest f so far make one
                   lowestF = ff;
                   //System.out.println(" comparing lowest f's: "+lowestF.compareF(ff));
                   if(lowestF.compareF(ff)> 0) {//if ff's f score is lower then lowestF's ff is the new lowestF
                        lowestF = ff;
                        //System.out.println("found new lowest f");
              if(lowestF == null) {
                   System.out.println("found lowest f and breaking out of loop to stop error");
                   break;
              openList.remove(lowestF);//remove the lowestF node from open list
              //System.out.println("removed lowestF from open list "+lowestF);
              closedList.add(lowestF);//add the lowestF node to the closed list
              //System.out.println("added lowestF to closed list "+lowestF);
              pathList.addLast(lowestF);
              //System.out.println("added lowestF to path list "+lowestF);
              n = lowestF;//set the lowestF node to the new "start" node
              if(closedList.contains(gn) == false) {
                   //System.out.println("closedList does not contain goalNode");
              for(int ol = 0; ol < openList.size(); ol++) {
                   //System.out.println("openList: "+openList.get(ol).toString());
              for(int cl = 0; cl < closedList.size(); cl++) {//used to show the nodes in closed and open lists
                   //System.out.println("closedList: "+closedList.get(cl));
              for(int pl = 0; pl < pathList.size(); pl++) {
                   //System.out.println("path: "+pathList.get(pl).toString());
              //System.out.println("goalNode must be on the closed list");
    }

  • About a week before Thanksgiving, all my tiles were removed and replaced with tiles such as Bestbuy, Aliexpress, Macys ect. I can no longer edit these options.

    I can no longer edit my tiles, and if I delete them, after closing out of firefox and re-opening. These tiles re-appear, in addition, Now when I snap to pages on my screen another tab opens. When It has never done so. I have tried every setting and un-installed and re-installed Firefox, to no avail.

    Hello,
    Can you check if this apply :
    [http://malwaretips.com/blogs/superfish-window-shopper-adware/ http://malwaretips.com/blogs/superfish-window-shopper-adware/]
    It looks like window shopper ...

  • Problem with tiles ..VERY URGENT!

    I have a problem using tiles.
    I have a search page called search.jsp. It calls a searchResults.jsp page when user enters searchcriteria and clicks the search button. I want to have the results on the same page in the bottom part.
    I tried using Struts tiles but I have to make it understand that my results should appear on the same page at the bottom.I could not figure it out.
    Please help me out.Its very urgent.
    Thanks

    Sounds VERY URGENT to me....

  • JSF with tiles

    I am trying to do this in my tiles definition page (2 JSP pages for every single screen, one containing the following code and the other containing the actual body)
    <tiles:insert definition="sfh.MainLayout">
         <tiles:put name="page.title" beanName="pc_NewModCategoryBody"
              beanProperty="pageTitle" beanScope="request"/>
         <tiles:put name="page.body" value="/pages/category/NewModCategoryBody.jsp" />
    </tiles:insert>
    But, tiles is not able to find pc_NewModCategoryBody, as JSF did not instantiate the bean yet :-(
    Is there a facesContext.loadBean("pc_NewModCategoryBody") or some method ?

    Hi here is an working example of Tiles and JSF
    http://www.apache.org/~matzew/myfacesTilesSample.war
    Btw. MyFaces (http://incubator.apache.org/myfaces/) contains an extra-component for integrating Tiles
    (TilesViewHandler)
    HTH,
    Matthias

Maybe you are looking for

  • Window 8.1 is not shutting down

    Hi For my lenovo laptop , Yesterday I updated Windows 8 to 8.1  from  STORE. Almost taken 2 hrs . Got the message sucessfully updated . later I made shut down . but its not shutting down ..its keep showing messgae shutting down and process is going o

  • Problem in creating a Select-option im a module pool screen

    I've been searching how to do a select option in a module pool screen, I've found this neat tutorial http://sample-code-abap.blogspot.com/2008/06/select-option-in-module-pool-screen.html but I'm having trouble to replicate it... I've created this con

  • Problem deleting Lookup in USR_PROCESS_TRIGGER in OIM

    Hi, I am trying to delete an Lookup "USR_STATUS ---> Disable User" in OIM USR_PROCESS_TRIGGER.But I am getting an error "The security level of this data item indicated that it cannot be deleted".Did anybody faced this problem?.Is there any solution f

  • X60 Cant even get to the BIOS

    Hi  My X60 has suddenly stopped booting up Sequence of events: Press power button BIOS "Press the Thinkvantage button" screen appears for a second The shuts down Any suggestions TIA Andrew

  • Se80 can't write FM code

    Hi, everyone. I have an issue in se80 code editor in change mode. My user has a developer rights(SSCR key). I can create new FM ,Groups, and other staff, and I can also modify parameters and atributes . So I've created a new group and new FM in se80,


HashFlare