English 中文(简体)
JSF2.0 - *xhtml pages given 404-NotFound but *jsp work okay?
原标题:JSF2.0 - *.xhtml pages give 404-NotFound but *.jsp work okay?

我安装了10.3.5台网络。 我在服务器上部署了2号联合武装部队。 在我的<代码>WebContent 夹中,我有*.xhtml和*.jsp文档,分别载有JF2.0xhtml和纯JP代码。 http:// localhost:7001/MyApp/NewFile123.xhtml>。 页: 1 没有发现错误页。 (没有关于Eclipse console的信息)。 但http:// localhost:7001/MyApp/NewFile.jsp 工作做得很好,而且应该做些什么。

我并非混淆了共同未来论坛和共同未来党,而只是想看到共同未来党是否是干.。 我拥有X超文本文档的适当封顶。

我的班子也这样说:

  • glassfish.el_1.0.0.0_2-2.jar

  • 玻璃鱼。

  • 玻璃鱼。

  • javax.servlet_1.0.0.0_2-5.jar

另一项有趣的事情是,当我试图篡夺 *.xhtml的档案时,汽车公司就没有工作。 (一) 它赢得了t autocomplete <h:outp。 当时我使用的是网页12.1,在盒子外有S2。

<><>Edit>: 这里是网站的相关部分。

<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>*.xhtml</url-pattern>
</servlet-mapping>

因此,我为什么在试图浏览一下联几论坛的一页时,我拿不到404页? 任何建议?

最佳回答

我的班子也这样说:

  • glassfish.el_1.0.0.0_2-2.jar
  • glassfish.jsf_1.0.0.0_2-1-5.jar
  • glassfish.jstl_1.2.0.2.jar
  • javax.servlet_1.0.0.0_2-5.jar

将所有这些集装箱专用图书馆从/WEB-INF/lib上移走。 他们根本不属于那里,这些集装箱已经与他们一起装运。 www.un.org/chinese/ga/president

您的问题最有可能是由于以下事实造成的:Weblogic 1.0.3.5是一个老板2.5个集装箱,这些集装箱已经配备了2.0号共同基金,但你重新提供了需要3.0号共同基金图书馆。 我不使用网络,但我已读到, 1.0.3.x 要求采取一些具体步骤,使共同基金2.0发挥作用,另见rel=“nofollow” 。 这里的切题是:

  • Download and install one of the latest Oracle WebLogic Server 11g Rel 1 (10.3.3) Installers from OTN. (Give the ZIP Installer a try. Aweseome lightweight!)
  • Create a new sample domain (call it whatever you want) and start the admin server
  • Open the administration console (http://localhost:7001/console/)
  • deploy the JSF 2.0 library (Deployments - Install - wlserver_10.3commondeployable-librariesjsf-2.0.war
  • Find your favorite JSF 2.0 sample (I ll take the guessNumber thing from the mojarra-2.0.2 distribution)
  • a. 在WEB-INF/文件夹中添加一个具有以下内容的网页:

    <?xml version="1.0" encoding="UTF-8"?>
    <weblogic-web-app>
      <library-ref>
        <library-name>jsf</library-name>
        <specification-version>2.0</specification-version>
        <implementation-version>1.0.0.0_2-0-2</implementation-version>
        <exact-match>true</exact-match>
      </library-ref>
    </weblogic-web-app>
    

<>Update/strong> as per comments:

I now suspect that it may be because of the project settings. I created a Dynamic Web Project and chose JSF 1.2. On the next step, where it asked me for the JSF specification and implementation, I pointed him to those glassfish jsf2 jars. The default was 1.2. Maybe I shouldn t have done that?

这可能产生了符合《共同财产法》第1.2条的准则<>faces-config.xml,这将迫使《共同财产法》第2版在《共同财产法》第1.2模块中运行。 您需要重新宣布:<代码><faces-config>s fundamental declaration to compliance JSF 2.0。

<faces-config
    xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
    version="2.0">
问题回答

暂无回答




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签