Hi
As part of migration to Weblogic 10. I'm trying to upgrade an
application which is using MyFaces Tiles and Spring. The versions of
these things used in the current are used are way past the sell by date.
I downloaded MyFaces 1.2 and Struts 1.3.8 and Spring 2.0 and set about
upgrading my app.
I then ran into
.
java.lang.IllegalStateException: No Factories configured for this
Application. This happens if the faces-initialization does not work at
all - make sure that you properly include all configuration settings
necessary for a basic faces application and that all the necessary libs
are included. Also check the logging output of your web application and
your container for any exceptions! If you did that and find nothing, the
mistake might be due to the fact that you use some special
web-containers which do not support registering context-listeners via
TLD files and a context listener is not setup in your web.xml.
A typical config looks like this;
<listener>
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener<
/listener-class>
</listener>
at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:90)
I was pretty certain the config was ok, but just to make sure I hadn't
screwed up I decided to get the tomahawk examples working in weblogic
10.
I downloaded the tomahawk examples and fired up the tiles example which
works as expected. I then replaced the jars in the WEB-INF/lib with
those in the 1.2 distribution, rebuilt and redeployed the application
and immediately I hit the same
java.lang.IllegalStateException
To check this I then expanded another example without tiles and hit the
same problem when I introduce the 1.2 distribution.
Just to double check if this was a weblogic issue I dropped the wars I
had built into tomcat and got the same behaviour.
According to the explanation of the exception above there is something
wrong with my config. Is there a jar missing somewhere? Does 1.2 require
different configuration
If I reinstate the MyFaces 1.1.5 jars the app runs with the newer
commons stuff from 1.2.0.
This combination of jars works
antlr-2.7.2.jar
commons-beanutils-1.7.0.jar
commons-codec-1.3.jar
commons-collections-3.1.jar
commons-digester-1.6.jar
commons-digester-1.8.jar
commons-discovery-0.4.jar
commons-el-1.0.jar
commons-fileupload-1.0.jar
commons-lang-2.1.jar
commons-logging-1.0.4.jar
commons-logging-1.1.jar
commons-validator-1.3.1.jar
jstl-1.1.0.jar
myfaces-api-1.1.5.jar
myfaces-impl-1.1.5.jar
oro-2.0.8.jar
standard-1.1.2.jar
struts-1.2.8.jar
tomahawk-1.1.6.jar
xalan-2.5.1.jar
This doesn't
antlr-2.7.2.jar
commons-beanutils-1.7.0.jar
commons-codec-1.3.jar
commons-collections-3.1.jar
commons-digester-1.6.jar
commons-digester-1.8.jar
commons-discovery-0.4.jar
commons-el-1.0.jar
commons-fileupload-1.0.jar
commons-lang-2.1.jar
commons-logging-1.0.4.jar
commons-logging-1.1.jar
commons-validator-1.3.1.jar
jstl-1.1.0.jar
myfaces-api-1.2.0.jar
myfaces-impl-1.2.0.jar
oro-2.0.8.jar
standard-1.1.2.jar
struts-1.2.8.jar
tomahawk-1.1.6.jar
xalan-2.5.1.jar
Anyone any ideas?
Thanks in advance
Sandy
____
This message and any files transmitted with it are legally privileged and
intended for the sole use of the individual(s) or entity to whom they are
addressed. If you are not the intended recipient, please notify the sender by
reply and delete the message and any attachments from your system. Any
unauthorised use or disclosure of the content of this message is strictly
prohibited and may be unlawful.
Nothing in this e-mail message amounts to a contractual or legal commitment on
the part of EUROCONTROL, unless it is confirmed by appropriately signed hard
copy.
Any views expressed in this message are those of the sender.