On Sun, Jan 26, 2014 at 10:39 PM, Reala Valoro <[email protected]>wrote:

> Hi Chris,
>
> Thank you for your replies.
> The steps to build the archetype and run it through cargo with its bundled
> tomcat6 work fine, but I'm still unable to run Apache Rave under a
> different Tomcat 7 installed on my localhost.
>
> I am afraid I still don't understand some of the steps described at
> http://rave.apache.org/documentation/application-containers.html regarding
> the "*Copy Artifacts*" when it says "*Copy the shared/lib folder plus the
> contents of the webapp folder to your Tomcat installation.* " as I
> described in my first email.
>
> Could you explain further what files should I place under my
> /usr/shared/tomcat7/shared/lib and how to get them, please?
>

You need a javax.activation, javax.mail and your SQL database driver (if
using JPA) in the tomcat lib, or configured shared lib directory.


>
> Thank you.
>
>
>
> 2014-01-27 Chris Geer <[email protected]>
>
> > Reala,
> >
> > Welcome to Rave. If you want to create a custom portal using Rave I
> > recommend you follow the instructions on the "Extend Rave" page [1]. That
> > will set you up to package Rave along with your customizations. We use
> Rave
> > this way and also have it connected to MySQL. After you generate the
> > project using the archetype you'll be able to edit the master pom file to
> > setup your datasources properly. This will allow you to run the project
> > using cargo to test out your portal. Once you have it all set you can
> copy
> > the two war files into Tomcat but you'll also need to make sure and setup
> > your data sources in tomcat.
> >
> > Chris
> >
> > [1] http://rave.apache.org/documentation/rave-extensions.html
> >
> >
> > On Sat, Jan 25, 2014 at 9:18 PM, Reala Valoro <[email protected]>
> > wrote:
> >
> > > Hi,
> > >
> > > My goal is to use Apache Rave as the core of my custom Portal, but I'm
> > > struggling with it. I am also trying to deploy Rave in a Tomcat 7
> > container
> > > and I intend to change the database to a MySQL one.
> > >
> > > I try to follow the steps described at:
> > > http://rave.apache.org/documentation/application-containers.html
> > > but I don't understand the last step for Tomcat installation regarding
> > the
> > > "Copy Artifacts" when it says "Copy the shared/lib folder plus the
> > contents
> > > of the webapp folder to your Tomcat installation. "
> > >
> > > Could anybody explain with further detail, please?
> > >
> > > 1-Where is this shared/lib folder?
> > > Does it mean that I have to create the $CATALINA_HOME/shared/lib
> > directory
> > > (that's why we had to add its path in shared.loader in the previous
> step?
> > > If so, how can I copy its content anywhere if that folder did not even
> > > exist?)
> > > Or Does it mean that I have to copy the shared/lib folder and webapp
> from
> > > the portal's bundled tomcat6 into my own tomcat 7? If so where is this
> > > tomcat6 exactly?
> > >
> > > 2-Where is this webapp folder?
> > > Does it mean the WEB-INF folder within the war where all the
> context.xml
> > > are?
> > >
> > > 3-And where is Tomcat installation?
> > > Does it mean the $CATALINA_HOME/lib directory?
> > >
> > > I assume this step intends to describe the need to place some *.jar
> > > somewhere in the Tomcat container's classpath so the Tomcat classloader
> > is
> > > able to find all the dependencies, but these last instructions are very
> > > very confusing.. Please detail further.
> > >
> > > Also if I skip this step and I simply deploy in Tomcat the generated
> > > portal.war from the Archetype, Tomcat complains throwing some
> exceptions
> > > such as:
> > >
> > > Caused by: javax.naming.NameNotFoundException: Name [jdbc/ravePortalDB]
> > is
> > > not bound in this Context. Unable to find [jdbc]
> > >
> > > so I guess that's because Tomcat 7 cannot find the context.xml
> > descriptors
> > > as they are within the portal.war under WEB-INF folder instead being
> > under
> > > the META-INF folder. Should I place these context.xml descriptors
> > somewhere
> > > in $CATALINA_HOME/shared/lib or similar so Tomcat can find them?
> > >
> > > Any help with this step would be much appreciated. Thank you!
> > >
> > > Regards.
> > >
> > > PS: My $CATALINA_HOME and $CATALINA_BASE are the same, I have all
> tomcat7
> > > files under usr/share/tomcat7
> > > PS2: Tomcat7 does not include any shared/lib directory, but it
> includes a
> > > lib directory.
> > >
> >
>

Reply via email to