Hello Stefan,
contains the WEB-INF/lib a jstl.jar?
Bernd
Stefan Hedtfeld wrote:
Hi Bernd,
that's it ... almost :( The application gets deployed now, but when
requesting the first page it says
00:00:18,393 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: The absolute uri:
http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml
or the jar files deployed with this application
I'm not sure what this means, as I didn't change any uri (could even be
a network related issue?). Hm!?
But anyway, the one problem is solved.
Thanks,
Stefan.
Bernd Bohmann schrieb:
Hello Stefan,
one change was missing in the Release Notes.
http://issues.apache.org/jira/browse/TOBAGO-135
The dependency from MyFaces Core has changed to provided.
You have to declare a dependency to your desired JSF Implementation in
your project. A working example for switching between different JSF
Implementations can be found in the demo pom.
I would suggest myfaces-api and myfaces-impl 1.1.4 :-)
Regards
Bernd
Stefan Hedtfeld wrote:
I look in my old log files, and I miss one output which has been there
when using 1.0.7:
00:08:06,258 INFO [EJB3Deployer] Deployed:
file:/home/stefan/as/jboss-4.0.4.GA/server/fuelmaster_test/tmp/deploy/tmp25171fuelmaster.ear-contents/fuelmaste
r-core-0.1-SNAPSHOT.jar
00:08:06,425 INFO [TomcatDeployer] deploy, ctxPath=/fuelmaster,
warUrl=.../tmp/deploy/tmp25171fuelmaster.ear-contents/fuelmaster-webapp-0.1-SNAPSHOT-exp.w
ar/
00:08:08,726 INFO [FacesConfigurator] Reading standard config
org/apache/myfaces/resource/standard-faces-config.xml
00:08:09,155 INFO [FacesConfigurator] Reading config
jar:file:/home/stefan/as/jboss-4.0.4.GA/server/fuelmaster_test/tmp/deploy/tmp25171fuelmaster.ear-cont
ents/fuelmaster-webapp-0.1-SNAPSHOT-exp.war/WEB-INF/lib/tobago-core-1.0.7.jar!/META-INF/faces-config.xml
00:08:09,672 INFO [FacesConfigurator] Reading config
/WEB-INF/faces-config.xml
00:08:09,917 INFO [ViewHandlerImpl] Hiding ri base implemation:
[EMAIL PROTECTED]
00:08:11,447 INFO [StartupServletContextListener] ServletContext
'/home/stefan/as/jboss-4.0.4.GA/server/fuelmaster_test/./tmp/deploy/tmp25171fuelmaster.ea
r-contents/fuelmaster-webapp-0.1-SNAPSHOT-exp.war/' initialized.
This seems a bit odd as it looks like there is a faces-config.xml in
tobago-core which is read (see line starting with 00:08:09,155)?
And which is even more disturbing: the 1.0.8 version still has a
faces-config.xml in tobago-core :(
Any hints appreciated!
Regards,
Stefan.
Stefan Hedtfeld schrieb:
Hi,
I'm running on JBoss 4.0.4 on OpenSuse 10.0 AMD64 and JDK 1.5.0_06.
After upgrading from version 1.0.7 to 1.0.8 I get the following error:
01:10:55,048 ERROR [[/fuelmaster]] Servlet /fuelmaster threw load()
exception
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)
at javax.faces.webapp.FacesServlet.init(FacesServlet.java:88)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3917)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4201)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
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:585)
at
org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
at
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at
org.apache.catalina.core.StandardContext.init(StandardContext.java:5116)
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:585)
at
org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
at
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at
org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:297)
at
org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
at
org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
at org.jboss.web.WebModule.startModule(WebModule.java:83)
at org.jboss.web.WebModule.startService(WebModule.java:61)
at
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at
org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy39.start(Unknown Source)
at
org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
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:585)
at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at
org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
at
org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
at
org.jboss.ws.server.WebServiceDeployer.start(WebServiceDeployer.java:117)
at
org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
at
org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy40.start(Unknown Source)
at
org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
at
org.jboss.deployment.MainDeployer.start(MainDeployer.java:997)
at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy6.deploy(Unknown Source)
at
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
Looking at your examples (addressbook and security) I added
<listener>
<listener-class>org.apache.myfaces.tobago.webapp.TobagoServletContextListener</listener-class>
</listener>
to my web.xml and
<factory>
<application-factory>net.xsoftahead.fuelmaster.web.ApplicationFactoryImpl</application-factory>
</factory>
to my faces-config.xml (and I also copied & pasted the
ApplicationFactoryImpl and ApplicationImpl classes from your example,
removing the example-specific security part ;-)
But I still get the same error. Are there any known issues to JBoss 4?
Regards,
Stefan.
Arvid Hülsebus schrieb:
The Apache MyFaces team is pleased to announce the release of
MyFaces Tobago 1.0.8.
MyFaces Tobago provides a well designed set of JSF user interface
components. The components are compatible with MyFaces Core 1.1.4
and the JSF Reference Implementation from Sun.
The MyFaces Tobago 1.0.8 distribution is available from:
* http://myfaces.apache.org/download.html
MyFaces Tobago is also available in the central Maven repository
under Group ID "org.apache.myfaces.tobago".
The changes include:
Bugs
* application converter is not used for tx:date component
* theme JARs cannot be loaded inside IBM WebSphere
* layout renderer causes NullPointerException when layouting panels
* GridLayoutRenderer ignores rows after the first row which is
not rendered
* UIGridLayout.Row NotSerializableException
* tx:date inside a tc:sheet causes NullPointerException
* EmptyStackException in sheet when showPageRange="none"
* password attribute of tc:in works only as a method binding
in Facelets
* Tobago doesn't run with RI 1.1_02
* non-string item values not possible in tx:menuRadio
* SelectOneChoice in IE overrides z-index of menu
* resource directories need defined order
* NullPointerException when decoding PageState without
state value in request
* warning page contains secure and non-secure items in IE
when using HTTPS
* with popup window the suggest box renders behind the popup
* input suggest doesn't support umlauts
* using input suggest blocks page in IE without ActiveX
Improvements
* add globalOnly attribute to messages tag
* tc:link should support f:param
* TabChangeEvent should provide the same methods like the
TabChangeEvent in Tomahawk
* date picker of tx:date should be surrounded by a form
to prevent validation errors from other fields
* selectable modes in sheet
* increase the version of the Facelets dependency to 1.1.11
New Features
* autoreload feature for sheet
* provide a JDK 1.4 version of Tobago with Retrotranslator
* UICommand facet support for change and click events in
selectOneRadio, selectBooleanCheckbox, selectManyCheckbox,
and selectOneChoice
For a complete list of please see:
*
http://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12310273&styleName=Html&version=12310900
Enjoy!
Arvid