`
streammoon
  • 浏览: 25216 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

404 The requested resource () is not available.

 
阅读更多
采用hibernate anno 注解 时候出现这个问题,项目无法进入。

数据库:oracle11
jar: ojdbc6.jar

后来发现原因:
在bean的属性上有
          @Id
@GeneratedValue
(strategy=GenerationType.SEQUENCE,generator="SEQ_PAGE")
private Integer pid;


但是 在类头部并没有声明 SEQ_PAGE。

修复后的形式:

@Entity
@Table(name="t_page")
@SequenceGenerator(
name="SEQ_PAGE",//NO_001
sequenceName="SEQ_PAGE"//数据库中sequence名称
)
public class Page implements Serializable{

         @Id
@GeneratedValue
(strategy=GenerationType.SEQUENCE,
           generator="SEQ_PAGE"//NO_001处对应的名称
          )
private Integer pid;
。。。。。。。
}

分享到:
评论

相关推荐

    HTTP_Status_404(The_requested_resource_is_not_available)的几种解决方案_补充

    HTTP Status 404 解决方案总结 HTTP Status 404 是一个常见的错误代码,它表示请求的资源不可用。在本文中,我们将讨论七种常见的解决方案,以帮助开发者快速解决该问题。 1. 未部署 Web 应用 如果您遇到了 ...

    2013年12月7日最新SSH整合Jar包

    SSH整合是指Spring、Struts和Hibernate这三大开源框架的集成应用。这三大框架分别是Spring作为应用的IoC(Inversion of Control,控制反转)和AOP(Aspect-Oriented Programming,面向切面编程)容器,Struts作为MVC...

    ssh5的源文件

    description The requested resource (Servlet action is not available) is not available. -------------------------------------------------------------------------------- Apache Tomcat/5.5.25的问题

    servlet2.4doc

    Causes the next filter in the chain to be invoked, or if the calling filter is the last filter in the chain, causes the resource at the end of the chain to be invoked. doFilter(ServletRequest, ...

    a project model for the FreeBSD Project.7z

    The main resource in the FreeBSD community is its developers: the committers and contributors. It is with their contributions that the project can move forward. Regular developers are referred to as ...

    问题-求助-jsfdemo

    新手jsf问题。http://localhost:8080/jsfdemo/userLogin.faces 出现 The requested resource (/jsfdemo/userLogin.faces) is not available.

    数位板压力测试

    The definition is not lim¬ited to de¬vices that use a physical tablet. In fact, this specification can support de¬vices that combine rela¬tive and absolute pointing as well as purely relative ...

    微软内部资料-SQL性能优化2

    A 32-bit process is normally limited to addressing 2 gigabytes (GB) of memory, or 3 GB if the system was booted using the /3G boot switch even if there is more physical memory available. By leveraging...

    p7331323_10204_AIX5L

    There is no workaround available. However, if the instance fails to start, a reboot of the server supporting the instance will usually allow startup to succeed. Patches At the time of writing, ...

    Java邮件开发Fundamentals of the JavaMail API

    The API's main purpose is not for transporting, delivering, and forwarding messages; this is the purview of applications such as sendmail and other Mail Transfer Agent (MTA) type programs. MUA-type...

    acpi控制笔记本风扇转速

    exclusion and the interrupt level indication flag is not needed. Fixed a problem with the Global Lock where the lock could appear to be obtained before it is actually obtained. The global lock ...

    Delphi7.1 Update

    * This update can not be removed after it is installed.* You will need the original Delphi 7 installation CD available to install this update.* To install this update from the CD, insert the CD, and ...

    SVN各种错误提示产生原因及处理方法大全

    5. The version of your subversion (client) is below 1.5.0, upgrade to 1.5.0 or above. 该错误提示的原因是客户端的软件版本低于 1.5.0。解决方法是升级本地的 Subversion 客户端软件到 1.5.0 或以上版本,以...

    ajax使用不同namespace的action的方法

    在实际开发中,经常遇到“the requested resource is not available.”的错误提示,这通常是由于URL构建不正确或者服务器端配置问题导致的。确保以下几点可以帮助避免这类问题: 1. **正确配置服务器端路由**:确认...

    Bloodshed Dev-C++

    the requested CVS action Version 4.9.6.8 * support for DLL application hosting, for debugging and executing DLLs under Dev-C++. * New class browser option: "Show inherited members" * Added support ...

    spring mvc 项目错误,和一些配置

    加载jsp页面找不到路径:descriptionThe requested resource is not available. - **原因**:这表示请求的JSP页面路径不存在。 - **解决办法**: - 检查JSP页面的实际路径与配置文件中指定的路径是否一致。 - ...

    JAVAWEB购物网站课程设计

    在给定的部分内容中,出现了一个错误信息:“The requested resource(/SSHProject/index.jsp) is not available.” 这表明请求的资源没有找到,可能是由于文件路径错误或者配置问题导致的。开发者通常会通过检查项目...

    arcgis server 常见问题

    当遇到“Requested resource is not available”错误,通常是HTTP Status 404错误,表示请求的资源不存在或不可达。这可能是因为ArcGIS Server的REST服务没有正确配置或启动,或者客户端请求的URL不正确。检查`/...

    SS7、PRI Cause定义.txt

    Requested Circuit/Channel Not Available - **定义**:表示请求的电路/通道不可用。 - **应用场景**:当请求的特定电路或通道无法使用时触发。 - **技术背景**:这可能是因为资源被占用或其他原因导致的问题。 ##...

Global site tag (gtag.js) - Google Analytics