On Mon, Jan 31, 2011 at 10:40 PM, oscontrib oscontrib
<[email protected]> wrote:
> I was also trying to build roller trunk by running mvn install and deploying
> the war that gets created under weblogger-webapp/target into tomcat and was
> getting the same error (JPA types werent enhanced ..)
>
> After a bit of digging around I found that the tomcat system property
> activates the openjpa profile which does the enhancement , so the following
> did the trick.
>
> mvn -Dtomcat=true package
>
> (the build-tomcat-release.sh uses this, but since this wasnt in any docs ,
> well , as far as I read,  I had to read through the pom.xml files but it was
> fun).

How long ago did you fetch the code? I tried to fix things so that the
Tomcat setup (with JPA bytecode enhancement) is the default setting
for all modules except those that assemble the WAR (i.e.
weblogger-war-assembly) and package the release bundle (i.e.
weblogger-assembly).

Either way, I think we need a "How to run on Tomcat" section for that
build guide.


> Once I did this, created my mysql database and configured the database
> properties in the roller-custom.properties, everything worked like a charm.
> Thanks Dave, this is a cool project. I started playing around with the trunk
> just so I could use it on my private blog site, but unlike many other
> projects, this code is readable and sounds like fun .. I am gonna dig in and
> see if there is some way I can also chip in.

Thanks! We're always in need of new committers/PMC members.

- Dave


> On Sat, Jan 29, 2011 at 10:56 AM, Dave <[email protected]> wrote:
>
>> Hi Bala,
>>
>> The error that you got:
>> java.lang.RuntimeException: <openjpa-2.0.0-r422266:935683 nonfatal
>> user error> org.apache.openjpa.persistence.ArgumentException: This
>> configuration disallows runtime optimization, but the following listed
>> types were not enhanced at build time or at class load time with a
>> javaagent: "<|org.apache.roller.weblogger.pojos.TaskLock
>>
>> Indicates that the JPA bytecode enhancement was not run as part of the
>> build process -- this is problem that I (believe that I) fixed a week
>> or two ago.
>>
>> Please verify that you have the latest version of the code from Roller
>> trunk.
>>
>> Also, if you run Roller via the goal "jetty:run" then Roller will be
>> at http://localhost:8080/roller not 7777.
>>
>> Hope that helps...
>>
>> - Dave
>>
>>
>> On Sat, Jan 29, 2011 at 1:33 PM, bala ajanthan <[email protected]>
>> wrote:
>> > Hi Dave,
>> > I am new to Roller.
>> > As you mentioned above i built the source in eclipse ide.But when i
>> navigate
>> > to http://localhost:7777/roller i got SERVICE_UNAVAILABLE error.i
>> attached
>> > the log file bellow.help me.
>> > thanks.
>> > aja.
>> >
>> > On Sat, Jan 29, 2011 at 11:04 PM, Dave <[email protected]> wrote:
>> >>
>> >> I put together some screenshots that show How to Build and Run Roller
>> >> in Eclipse:
>> >>   https://cwiki.apache.org/confluence/x/9IWAAQ
>> >>
>> >> - Dave
>> >
>> >
>>
>

Reply via email to