[prev in list] [next in list] [prev in thread] [next in thread] 

List:       myfaces-user
Subject:    Re: myfaces-archetype bug?
From:       "Wayne Fay" <waynefay () gmail ! com>
Date:       2006-03-31 21:45:07
Message-ID: 52bab8690603311345o1050bbf6qacf271abf6b2db29 () mail ! gmail ! com
[Download RAW message or body]

You can use <dependencyManagement> to control the version numbers butnot the scopes \
of your dependencies... Wayne
On 3/31/06, Mikael Andersson <mail.micke@gmail.com> wrote:> Solved.>> First I needed \
to change from provided to compile scope for the jsp-api> dependency.>> Then I needed \
to add the following dependencies to the pom, for JSP support:>     <dependency>>     \
<groupId>tomcat</groupId>>         <artifactId>jasper-compiler</artifactId>>         \
<version>5.5.9</version>>         <scope>compile</scope>>     </dependency>>     \
<dependency>>         <groupId>tomcat</groupId>>         \
<artifactId>jasper-runtime</artifactId>>         <version>5.5.9</version>>         \
<scope>compile</scope>>     </dependency>>       <dependency>>         \
<groupId>tomcat</groupId>>         <artifactId>jasper-compiler-jdt</artifactId>>      \
<version>5.5.9</version>>         <scope>compile</scope>>     </dependency>>> Does \
anyone have a nice maven2 trick to easily switch the sope of those> dependencies, \
kind of a pain and easy to forget to manually change them.>> - Micke>>> On 31/03/06, \
Mikael Andersson <mail.micke@gmail.com> wrote:> >> > Hi,> > I have having some \
problems with the myfaces-archetype.> >> > Not sure if I am missing something or if \
it is a bug, I think I used the> archetype a while ago without any problems \
though...> >> > When doing the following:> > % mvn archetype:create \
-DarchetypeGroupId=org.apache.myfaces> -DarchetypeArtifactId=myfaces-archetype> \
-DarchetypeVersion=1.0-SNAPSHOT -DgroupId=demos -DartifactId=demo1> > % cd demo1> > % \
mvn jetty6:run> >> > I get the following when jetty starts up:> > :WARN:  failed> \
ContextHandler@17aece8{/demo1,file:/home/mikael/ews/demos/demo1/src/main/webapp/}> > \
:INFO:  Started SelectChannelConnector @ 0.0.0.0:8080> > :WARN:  failed \
Server@11c0d60> > [INFO] Jetty server exiting.> > [INFO]> \
------------------------------------------------------------------------> > [ERROR] \
FATAL ERROR> > [INFO]> \
------------------------------------------------------------------------> > [INFO] \
javax/servlet/jsp/el/ELException> > [INFO]> \
------------------------------------------------------------------------> > [INFO] \
Trace> > java.lang.NoClassDefFoundError:> javax/servlet/jsp/el/ELException> >         \
at> org.apache.myfaces.config.FacesConfigurator.feedStandardConfig(FacesConfigurator.java:138)> \
>         at> org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:115)> \
> at> org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:63)> \
> >         at> org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:46)> \
> > >         at> org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:368)> \
> > > >         at> org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:967)> \
> > > > >         at> \
> > > > > org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:341)> \
> > > > > >         at> \
> > > > > > org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:368)> > \
> > > > > > at> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:37)> \
> > > > > > >         at> \
> > > > > > > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:133)> \
> > > > > > > >         at> org.mortbay.jetty.Server.doStart(Server.java:256)> >      \
> > > > > > > > at> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:37)> \
> > > > > > > > >         at> \
> > > > > > > > > org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:114)> \
> > > > > > > > > >         at> \
> > > > > > > > > > org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:380)> \
> > > > > > > > > > at> \
> > > > > > > > > > org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:333)> \
> > > > > > > > > > >         at> \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic