CAS 3.3.1 Restlet Error on Deploy
Dale Ogilvie
Dale.Ogilvie at trimble.co.nz
Wed Nov 12 17:19:08 EST 2008
I'm not a maven guru, so I can only provide guesses. You are using mvn
2.0.9?
I would try "mvn clean" in the build directory and have a look under
your $HOME/.m2 directory for the com.noelios jars. (Documents and
Settings/user on windows), perhaps they aren't downloading for some
reason?
You could of course just place the jars manually into webinf/lib if you
just want to get it up and running.
-----Original Message-----
From: cas-bounces at tp.its.yale.edu [mailto:cas-bounces at tp.its.yale.edu]
On Behalf Of Ryan Andreasen
Sent: Thursday, 13 November 2008 10:38 a.m.
To: cas at tp.its.yale.edu
Subject: RE: CAS 3.3.1 Restlet Error on Deploy
Dale,
I have not altered the pom.xml of the cas-server-integration-restlet
module.
I did look at its pom.xml and it is identical to what you have below.
However, in my target WEB-INF/lib directory there are no
com.noelios.restlet-1.1.1.jar com.noelios.restlet.ext.servlet-1.1.1.jar
present. Any idea why not?
dale77 wrote:
>
> Does your cas-server-integration-restlet/pom.xml include these
entries?
> These are taken from our own CAS 3.3.1 build.
>
> <dependency>
> <groupId>org.restlet</groupId>
> <artifactId>org.restlet</artifactId>
> <version>1.1.1</version>
> <scope>compile</scope>
> </dependency>
>
> <dependency>
> <groupId>org.restlet</groupId>
> <artifactId>org.restlet.ext.spring</artifactId>
> <version>1.1.1</version>
> <scope>runtime</scope>
> </dependency>
>
> <dependency>
> <groupId>com.noelios.restlet</groupId>
> <artifactId>com.noelios.restlet.ext.spring</artifactId>
> <version>1.1.1</version>
> <scope>runtime</scope>
> </dependency>
>
> Note that com.noelios.restlet is a runtime dependency, and so should
> be included in the war file WEB-INF/lib. Our build has:
>
> com.noelios.restlet-1.1.1.jar
> com.noelios.restlet.ext.servlet-1.1.1.jar
> com.noelios.restlet.ext.spring-1.1.1.jar
> org.restlet-1.1.1.jar
> org.restlet.ext.spring-1.1.1.jar
>
>
> ________________________________
>
> From: cas-bounces at tp.its.yale.edu [mailto:cas-bounces at tp.its.yale.edu]
> On Behalf Of Ryan Andreasen
> Sent: Thursday, 13 November 2008 5:32 a.m.
> To: Yale CAS mailing list
> Subject: Re: CAS 3.3.1 Restlet Error on Deploy
>
>
> Scott,
>
> Thanks for your reply! The org.restlet.ext.spring-1.1.1.jar and
> org.restlet-1.1.1.jar are included. Were these the restlet 1.1.1 jars
> you were referring to? Are the other two com.noelios jars not
> required in 3.3.1?
>
> Thanks,
>
>
> On Wed, Nov 12, 2008 at 9:17 AM, Scott Battaglia
> <scott.battaglia at gmail.com> wrote:
>
>
> You probably need the Restlet 1.1.1 jars. I'm not sure why they
> aren't included. The stuff should not have even compiled if it
> wasn't
> available. And if they were required at compile it generally
> includes
> them at Runtime.
>
> -Scott
>
> -Scott Battaglia
> PGP Public Key Id: 0x383733AA
> LinkedIn: http://www.linkedin.com/in/scottbattaglia
>
>
>
>
> On Wed, Nov 12, 2008 at 10:36 AM, Ryan Andreasen
> <ryan.andreasen at gmail.com> wrote:
> >
> > I am in the process of upgrading to 3.3.1 and have gotten
> everything
> > compiling. However, when I deploy, I get the following
> exception:
> >
> > Unable to fully initialize the Restlet. No Restlet engine
> available.
> > 2008-11-12 08:17:10,580 ERROR
> > [com.noelios.restlet.ext.spring.RestletFrameworkServlet] -
<Context
> > initialization failed>
> > org.springframework.beans.factory.BeanCreationException: Error
> creating bean
> > with name 'root' defined in ServletContext resource
> > [/WEB-INF/restlet-servlet.xml]: Instantiation of bean failed;
> nested
> > exception is
> org.springframework.beans.BeanInstantiationException: Could not
> > instantiate bean class [org.restlet.ext.spring.SpringRouter]:
> Constructor
> > threw exception; nested exception is
> java.lang.RuntimeException: Unable to
> > fully initialize the Restlet. No Restlet engine available.
> >
> > My pom.xml has a dependency to the project version of
> > cas-server-integration-restlet. My web.xml to activate the
RESTful
> API is
> > configured as it was for 3.3 (which worked). Do I need to
change
> this for
> > 3.3.1? Also, I looked at the .jar files packaged with the war
for
> 3.3 and
> > saw 3 jars related to the Restlet:
> > com.noelios.restlet.ext.servlet-1.1-M4.jar,
> > com.noelios.restlet.ext.spring-1.1-M4.jar, and
> > com.noelios.restlet-1.1-M4.jar; however, with 3.3.1 I only see
> one:
> > com.noelios.restlet.ext.spring-1.1.1.jar
> >
> > Any help is greatly appreciated! Thanks!
> > --
> > View this message in context:
> http://www.nabble.com/CAS-3.3.1-Restlet-Error-on-Deploy-tp20462781p204
> 62
> 781.html
> > Sent from the CAS Users mailing list archive at Nabble.com.
> >
> > _______________________________________________
> > Yale CAS mailing list
> > cas at tp.its.yale.edu
> > http://tp.its.yale.edu/mailman/listinfo/cas
> >
> _______________________________________________
> Yale CAS mailing list
> cas at tp.its.yale.edu
> http://tp.its.yale.edu/mailman/listinfo/cas
>
>
>
>
> _______________________________________________
> Yale CAS mailing list
> cas at tp.its.yale.edu
> http://tp.its.yale.edu/mailman/listinfo/cas
>
>
--
View this message in context:
http://www.nabble.com/CAS-3.3.1-Restlet-Error-on-Deploy-tp20462781p20469
975.html
Sent from the CAS Users mailing list archive at Nabble.com.
_______________________________________________
Yale CAS mailing list
cas at tp.its.yale.edu
http://tp.its.yale.edu/mailman/listinfo/cas
More information about the cas
mailing list