And one more critical one ... by default, the build script assumes you have JSF installed inside your container already. If you don't add the following line to build.properties:
build.standalone=true This is probably what's triggering your error. Craig On Thu, 11 Nov 2004 14:42:30 -0800, Craig McClanahan <[EMAIL PROTECTED]> wrote: > There's another dependency when you try to compile > struts-shale-mailreader ... you have to have run the "dist" target on > the shared database code in "struts-examples/mailreader" first (along > with "struts-contrib/struts-shale" of course). > > You will also need to make sure you've set up a build.properties file > that points at the dependencies ... in particular, define "jsf.home", > "jstl.home", "junit.home", and "server.home" appropriately. > > Craig > > > > > On Thu, 11 Nov 2004 14:16:08 -0700, BaTien Duong > <[EMAIL PROTECTED]> wrote: > > Hello Craig: > > > > I downloaded struts-src-20041111.tar.gz and try to get the > > struts-shale-mailreader program to run. Here are some issues with the build: > > 1) The struts-shale was built ok to get shale.jar > > 2) The struts-shale-mailreader has issue at the docs target. so I > > make the dist target depends only on the compile target and get the > > successful built with the war file. > > 3) Put the war file under tomcat, the example has exception due to > > servlet exception. I checked the build file and correct the servlet path > > (you have servlet-api .jar and reference to servlet.jar). I re build again. > > 4) The example has exception of faces. Check its lib, there is no RI > > faces. I copy MyFaces lib and impl in the example lib. > > 5) Re run the example, exception is in the attached Standalone_log. > > Hope you can quickly fix these issues and have it compiled with MyFaces > > in the built. Please put it in nightly built. I still need to catch up > > with sub version. > > > > Thanks > > > > BaTien > > DBGROUPS > > > > > > 2004-11-11 13:40:58 StandardContext[]Loading root WebApplicationContext > > 2004-11-11 13:41:04 StandardContext[/struts-shale-mailreader]Exception > > starting filter shale > > java.lang.IllegalStateException: No Factories configured for this > > Application - typically this is because a context listener is not setup in > > your web.xml. > > A typical config looks like this; > > <listener> > > > > <listener-class>net.sourceforge.myfaces.webapp.StartupServletContextListener</listener-class> > > </listener> > > > > at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:98) > > at > > org.apache.shale.faces.ShaleApplicationFilter.getLifecycle(ShaleApplicationFilter.java:146) > > at > > org.apache.shale.faces.ShaleApplicationFilter.init(ShaleApplicationFilter.java:124) > > at > > org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:225) > > at > > org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:308) > > at > > org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:79) > > at > > org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3698) > > at > > org.apache.catalina.core.StandardContext.start(StandardContext.java:4349) > > at > > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823) > > at > > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) > > at > > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595) > > at > > org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277) > > at > > org.apache.catalina.core.StandardHost.install(StandardHost.java:832) > > at > > org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:701) > > at > > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432) > > at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983) > > at > > org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349) > > at > > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) > > at > > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091) > > at > > org.apache.catalina.core.StandardHost.start(StandardHost.java:789) > > at > > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083) > > at > > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478) > > at > > org.apache.catalina.core.StandardService.start(StandardService.java:480) > > at > > org.apache.catalina.core.StandardServer.start(StandardServer.java:2313) > > at org.apache.catalina.startup.Catalina.start(Catalina.java:556) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:324) > > at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287) > > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425) > > > > 2004-11-11 14:07:42 StandardContext[]Closing root WebApplicationContext > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]