在身份验证(进入帐户)期间运行基于 Spring 的+ Spring Security Web应用程序时遇到问题。 我使用 Hibernate 进行数据访问(ORM)。我认为一切都配置得很好,但有一点问题。当我运行服务器(Jetty)工件成功部署但在浏览器中我得到了以下错误日志(只是主要的重要部分):
<img src="@Umbraco.TypedMedia((int)item.partnerImage).Url" />
正如您在上面的图片中看到的那样 - DBStorage文件夹及其文件不在输出根目录中。如何在输出根目录中添加它以及如何命名?其他文件和文件夹怎么样?还有&#34;资源&#34; WEB-INF中的文件夹(包)但它是空的,因此它没有自动包含在工件(输出根目录)中。我该怎么办?我应该如何配置Hibernate.cfg.xml中的连接URL?现在它以这种方式配置:
Hibernate: select user0_.ID as ID1_2_, user0_.NAME as NAME2_2_, user0_.LASTNAME as LASTNAME3_2_, user0_.PATRONYM as PATRONYM4_2_, user0_.BIRTHDATE as BIRTHDAT5_2_, user0_.EMAIL as EMAIL6_2_, user0_.PASSWORD as PASSWORD7_2_ from PUBLIC.USER user0_ where user0_.EMAIL=?
19:11:38.952 [qtp1500056228-24] DEBUG org.hibernate.engine.jdbc.spi.SqlExceptionHelper - could not prepare statement [select user0_.ID as ID1_2_, user0_.NAME as NAME2_2_, user0_.LASTNAME as LASTNAME3_2_, user0_.PATRONYM as PATRONYM4_2_, user0_.BIRTHDATE as BIRTHDAT5_2_, user0_.EMAIL as EMAIL6_2_, user0_.PASSWORD as PASSWORD7_2_ from PUBLIC.USER user0_ where user0_.EMAIL=?]
java.sql.SQLSyntaxErrorException: user lacks privilege or object not found: USER
at org.hsqldb.jdbc.JDBCUtil.sqlException(Unknown Source)
at org.hsqldb.jdbc.JDBCUtil.sqlException(Unknown Source)
at org.hsqldb.jdbc.JDBCPreparedStatement.<init>(Unknown Source)
at org.hsqldb.jdbc.JDBCConnection.prepareStatement(Unknown Source)
at org.hibernate.engine.jdbc.internal.StatementPreparerImpl$5.doPrepare(StatementPreparerImpl.java:146)
at org.hibernate.engine.jdbc.internal.StatementPreparerImpl$StatementPreparationTemplate.prepareStatement(StatementPreparerImpl.java:172)
at org.hibernate.engine.jdbc.internal.StatementPreparerImpl.prepareQueryStatement(StatementPreparerImpl.java:148)
at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1927)
at org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1896)
at org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1874)
at org.hibernate.loader.Loader.doQuery(Loader.java:919)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:336)
at org.hibernate.loader.Loader.doList(Loader.java:2610)
at org.hibernate.loader.Loader.doList(Loader.java:2593)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2422)
at org.hibernate.loader.Loader.list(Loader.java:2417)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:501)
at org.hibernate.hql.internal.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:371)
at org.hibernate.engine.query.spi.HQLQueryPlan.performList(HQLQueryPlan.java:216)
at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1339)
at org.hibernate.internal.QueryImpl.list(QueryImpl.java:87)
at org.hibernate.internal.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:964)
at com.dvdexchange.dao.impl.UserDAOHibernateImpl.getUserByEmail(UserDAOHibernateImpl.java:77)
at com.dvdexchange.service.impl.UserServiceImpl.getUserByEmail(UserServiceImpl.java:35)
at com.dvdexchange.service.impl.UserServiceImpl.loadUserByUsername(UserServiceImpl.java:61)
....
希望你能帮助我 - 提前致谢!