Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 11 Next »

[13:17:13 CDT(-0500)] <EricDalquist> probably won't do this until 4.1 but we switched to slf4j and logback at uw

[13:17:17 CDT(-0500)] <EricDalquist> moved it all onto a branch: https://github.com/Jasig/uPortal/compare/UP-3531_logback

[13:17:31 CDT(-0500)] <EricDalquist> much better config options

[13:17:42 CDT(-0500)] <EricDalquist> and we can now capture logging for stuff that uses java.util.logging

[13:21:56 CDT(-0500)] <athena> nice~

[13:21:58 CDT(-0500)] <athena> (smile)

[15:44:47 CDT(-0500)] <rlewis> Hi Eric, Do you have any ideas on the MySQL dbtest failure issue?

[15:45:00 CDT(-0500)] <EricDalquist> I hadn't had a chance to look yet

[15:45:06 CDT(-0500)] <EricDalquist> have you googled that error about the rename failing?

[15:45:11 CDT(-0500)] <rlewis> ok, thanks

[15:45:27 CDT(-0500)] <rlewis> yes, nothing

[15:47:34 CDT(-0500)] <EricDalquist> oh he left already

[15:47:47 CDT(-0500)] <EricDalquist> searching for "java.sql.SQLException: Error on rename of" yields a ton of hits

[15:48:26 CDT(-0500)] <holdorph> its not hard to add just a little too much to a stack trace google search term and end up with no hits

[15:48:33 CDT(-0500)] <EricDalquist> yeah

[15:48:36 CDT(-0500)] <holdorph> you have to know just the right amount to use (smile)

[15:49:14 CDT(-0500)] <EricDalquist> hrm … looks like mysql requires an extra drop before the alter ...

[15:50:05 CDT(-0500)] <holdorph> in all cases? I could swear I've use mysql with uportal before and not had that problem

[15:50:14 CDT(-0500)] <EricDalquist> not sure

[15:50:18 CDT(-0500)] <holdorph> but I haven't done it with any recent release, i s'pose.

[15:50:41 CDT(-0500)] <EricDalquist> the command that is failing is

[15:50:41 CDT(-0500)] <EricDalquist> alter table UP_DLM_EVALUATOR_PAREN drop foreign key FK389B659CF5644C8E

[15:51:00 CDT(-0500)] <EricDalquist> the mysql error is less than useful though

[16:21:36 CDT(-0500)] <Naenyn> EricDalquist: I'm in the process of creating a shiny new portlet that'll be using hibernate / jpa annotations. I've been talking with athena , but she suggested I poke you for configuration advice/examples. Could you suggest where I start looking just to get the basics wired up with spring? I'm somewhat familiar doing it the old way with hbm files.. but the jpa annotation hotness is new to me at this point.

[16:22:05 CDT(-0500)] * Naenyn is Bill Smith @ Unicon, btw.

[16:22:22 CDT(-0500)] <athena> i told him that probably most of the spring context stuff is at the bottom of persistenceContext.xml - does that sound right?

[16:23:42 CDT(-0500)] <EricDalquist> hi

[16:23:46 CDT(-0500)] <EricDalquist> ah yeah

[16:23:56 CDT(-0500)] <EricDalquist> though uPortal's use is fairly customized

[16:24:10 CDT(-0500)] <EricDalquist> but in generally you use spring's local entity manager factory

[16:24:17 CDT(-0500)] <EricDalquist> create a persistence.xml that goes in META-INF

[16:24:32 CDT(-0500)] <EricDalquist> and then in code you annotate a setter/field with @PersistenceContext

[16:24:53 CDT(-0500)] <EricDalquist> at runtime the EntityManager reference provided by the @PersistenceContext annoation is what you use to do your JPA work

[16:25:30 CDT(-0500)] <Naenyn> hhmm... ok

[16:25:32 CDT(-0500)] <EricDalquist> though this is uPortal specific the managed object stuff is pertinent to any app: https://wiki.jasig.org/display/UPC/JPA+DAO+Guidelines

[16:25:51 CDT(-0500)] <Naenyn> =] already got that open.

[16:26:35 CDT(-0500)] <Naenyn> it's the wiring up part I was missing.. the spring config stuff.

[16:26:38 CDT(-0500)] * Naenyn will read.

  • No labels