Hi,

For running Roller with Tomcat/mysql, I had to add into pom.xml the
following lines

                <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>tomcat-maven-plugin</artifactId>
                <configuration>
                    <url>http://localhost:8080</url>
                </configuration>    
                <dependencies>
                    <dependency>
                        <groupId>mysql</groupId>
                        <artifactId>mysql-connector-java</artifactId>
                        <version>5.1.14</version>
                    </dependency>
                    <dependency>
                        <groupId>javamail</groupId>
                        <artifactId>javamail</artifactId>
                        <version>1.3.3</version>
                    </dependency>
                    <dependency>
                        <groupId>activation</groupId>
                        <artifactId>activation</artifactId>
                        <version>1.0.2</version>
                    </dependency>
                </dependencies>
            </plugin>

It is good for me but was it mandatory or not ? Else I hope they could help
!
Without them, the embedded tomcat by maven don’t know mysql driver and
javamail.

Best regards
Nicolas,

-----Message d'origine-----
De : oscontrib oscontrib [mailto:[email protected]] 
Envoyé : mardi 1 février 2011 04:41
À : [email protected]
Objet : Re: How to Build and Run Roller in Eclipse

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).

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.

-- shiva jayaraman


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