srvarey / openid-server

Automatically exported from code.google.com/p/openid-server
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Database error #19

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Try to install

What is the expected output? What do you see instead?
org.hibernate.HibernateException: Missing table: jos_attribute

What version of the product are you using? On what operating system?
trunk rev501 on Ubuntu 9.10

Please provide any additional information below.

I tried to compile and run the trunk version but it fail when try to run
the jos-webapp war in jetty, which is startet on mvn install

[org.hibernate.tool.hbm2ddl.SchemaValidator:98] - Running schema validator
[org.hibernate.tool.hbm2ddl.SchemaValidator:106] - fetching database metadata
org.hibernate.cfg.Configuration:1126] - processing extends queue
[org.hibernate.cfg.Configuration:1130] - processing collection mappings
[org.hibernate.cfg.Configuration:1141] - processing native query and
ResultSetMapping mappings
[org.hibernate.cfg.Configuration:1149] - processing association property
references
[org.hibernate.cfg.Configuration:1171] - processing foreign key constraints
[org.hibernate.cfg.Configuration:1254] - resolving reference to class:
cn.net.openid.jos.domain.Persona
[org.hibernate.cfg.Configuration:1254] - resolving reference to class:
cn.net.openid.jos.domain.Attribute
[org.hibernate.cfg.Configuration:1254] - resolving reference to class:
cn.net.openid.jos.domain.Domain
[org.hibernate.cfg.Configuration:1254] - resolving reference to class:
cn.net.openid.jos.domain.User
[org.hibernate.cfg.Configuration:1254] - resolving reference to class:
cn.net.openid.jos.domain.Email
[org.hibernate.cfg.Configuration:1254] - resolving reference to class:
cn.net.openid.jos.domain.User
[org.hibernate.cfg.Configuration:1254] - resolving reference to class:
cn.net.openid.jos.domain.User
[org.hibernate.cfg.Configuration:1254] - resolving reference to class:
cn.net.openid.jos.domain.User
[org.hibernate.cfg.Configuration:1254] - resolving reference to class:
cn.net.openid.jos.domain.Realm
[org.hibernate.cfg.Configuration:1254] - resolving reference to class:
cn.net.openid.jos.domain.Persona
[org.hibernate.cfg.Configuration:1254] - resolving reference to class:
cn.net.openid.jos.domain.Domain
[org.hibernate.cfg.Configuration:1254] - resolving reference to class:
cn.net.openid.jos.domain.Domain
[org.hibernate.tool.hbm2ddl.DatabaseMetadata:96] - table not found:
jos_attribute
[org.springframework.web.context.ContextLoader:215] - Context
initialization failed

Original issue reported on code.google.com by julian.h...@googlemail.com on 27 Jan 2010 at 5:19

GoogleCodeExporter commented 8 years ago
Define this env entry in your jetty env xml:

    <New class="org.mortbay.jetty.plus.naming.EnvEntry">
        <Arg>hibernate.hbm2ddl.auto</Arg>
        <Arg type="java.lang.String">update</Arg>
        <Arg type="boolean">true</Arg>
    </New>

See jos-webapp/jetty-env.dist.xml for detail.

Original comment by zhoushu...@gmail.com on 28 Jan 2010 at 10:36

GoogleCodeExporter commented 8 years ago
Ah, thank you very much, this works great!

Best regards,
Julian Hochstetter

Original comment by julian.h...@googlemail.com on 28 Jan 2010 at 11:09

GoogleCodeExporter commented 8 years ago

Original comment by zhoushu...@gmail.com on 28 Jan 2010 at 11:17