Problems to integrate H2 into a Wicket project (beginner question)

61 views
Skip to first unread message

Arthur

unread,
Aug 17, 2011, 10:12:50 AM8/17/11
to h2-da...@googlegroups.com
previously worked with the Play Framework H2 and Hibernate  was already included and configured, only needed to start the play server. Now i try to learn the Wicket Framework, and get stuck at the begining.

I want to integrate the H2 Server as embedded Server to my Wicket Projects. And run it with Hibernate without Spring or Databinder.

How do I do this ?

What i allready tried
1:   use the maven archetype  for the wicket quickstart.
2:   edit the pom.xml and add the dependencies for Hibernate , H2 ...
3:   create the hibernate.cfg.xml and add the H2 configs
4:  edit the web.xml and add the
    <listener>
    <listener-class>org.h2.server.web.DbStarter</listener-class>
    </listener>

When i run my App. i get this error :
org.h2.jdbc.JdbcSQLException: Falscher Benutzer Name oder Passwort
Wrong user name or password [28000-158]

What do i do wrong ?




Thomas Mueller

unread,
Aug 20, 2011, 5:28:35 AM8/20/11
to h2-database
Hi,

> When i run my App. i get this error :
> org.h2.jdbc.JdbcSQLException: Falscher Benutzer Name oder Passwort
> Wrong user name or password [28000-158]
>
> What do i do wrong ?

See the documentation of DbStarter. The default user name and password
for the DbStarter is "sa" and "sa". I guess you didn't set a user name
and password when creating the database, so you have to configure that
in the context-param in the web.xml.

Regards,
Thomas

Reply all
Reply to author
Forward
0 new messages