Is it failing to connect to the db? Do you have some code I can look at? Are you using Spring to setup the connection pool?

-James


On 01/25/2012 11:55 AM, Bjorn Roche wrote:
Hmm, yes, I think that's good enough. I think I can get it working by
accessing the DATABASE_URL environment variable directly, but attempts
to inject using, eg, the @PersistenceUnit annotation are still failing.

thanks,

bjorn

On Tue, Jan 24, 2012 at 3:30 PM, James Ward <[email protected]
<mailto:[email protected]>> wrote:

    Hi Bjorn,

    We are looking into what happened to that tag.  But if you want a
    more simple example that just sets up the JDBC connection in Spring,
    check out:
    
http://devcenter.heroku.com/__articles/connecting-to-__relational-databases-on-__heroku-with-java
    
<http://devcenter.heroku.com/articles/connecting-to-relational-databases-on-heroku-with-java>

    JPA could easily be added on top of that.

    Does that help?

    -James



    On 01/23/2012 12:41 PM, Bjorn wrote:

        Hey all,

        I was looking at this page:
        http://devcenter.heroku.com/__articles/spring-mvc-hibernate
        <http://devcenter.heroku.com/articles/spring-mvc-hibernate>

        which gives two options: 1. use the sample app, or 2. use roo. I
        tried
        the sample app, but when I run

        git revert starting-point

        it gives an error about a non-existant tag or something like that. I
        also looked at roo, but the code is not what I would call a
        simple and
        minimal starting point -- I can't tell where the magic is! When I
        tried creating my own app from scratch, I can get persistence to
        work,
        but not from environment variables. (I get
        "java.lang.__UnsupportedOperationException: The user must supply
        a JDBC
        connection" when I do my best to follow the tutorial)

        Does someone have a minimal HelloWorld style example that uses
        persistence (JPA) that I can look at that works on heroku?

        Thanks,

        bjorn


    --
    You received this message because you are subscribed to the Google
    Groups "Heroku" group.
    To post to this group, send email to [email protected]
    <mailto:[email protected]>.
    To unsubscribe from this group, send email to
    heroku+unsubscribe@__googlegroups.com
    <mailto:heroku%[email protected]>.
    For more options, visit this group at
    http://groups.google.com/__group/heroku?hl=en
    <http://groups.google.com/group/heroku?hl=en>.




--
---------------------
Bjorn Roche
Audio Collaboration
www.xonami.com <http://www.xonami.com>
blog.bjornroche.com <http://blog.bjornroche.com>
Catch us at NAMM: booth # 1000

--
You received this message because you are subscribed to the Google
Groups "Heroku" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/heroku?hl=en.

--
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.

Reply via email to