[Installation, Configuration & DEPLOYMENT] - Error while deploying a Visual JSF on JBoss 5.1.0 GA
by CeylonSoft
Hi,
I am seeing the following exception when deploying a Visual JSF sample to JBoss 5.1.0.
Here is the log:
Thanks in advance for your help.
21:44:59,750 INFO [ServerImpl] JBoss (Microcontainer) [5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221053)] Started in 1m:17s:438ms
21:45:35,812 INFO [TomcatDeployment] deploy, ctxPath=/CalendarDateDropDownExample
21:45:36,593 INFO [StandardContext] The listener "com.sun.faces.application.WebappLifecycleListener" is already configured for this context. The duplicate definition has been ignored.
21:45:37,031 INFO [config] Initializing Mojarra (1.2_12-b01-FCS) for context '/CalendarDateDropDownExample'
21:45:38,187 SEVERE [application] JSF1029: The specified InjectionProvider implementation 'org.jboss.web.jsf.integration.injection.JBossDelegatingInjectionProvider' does not implement the InjectionProvider interface.
21:45:38,187 INFO [application] JSF1048: PostConstruct/PreDestroy annotations present. ManagedBeans methods marked with these annotations will have said annotations processed.
21:45:42,718 ERROR [[/CalendarDateDropDownExample]] Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
java.lang.ClassCastException: com.sun.faces.config.WebConfiguration cannot be cast to com.sun.faces.config.WebConfiguration
at com.sun.faces.config.WebConfiguration.getInstance(WebConfiguration.java:154)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:145)
at org.jboss.web.jsf.integration.config.JBossJSFConfigureListener.contextInitialized(JBossJSFConfigureListener.java:60)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
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:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
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:668)
at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
at $Proxy38.start(Unknown Source)
at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
at org.jboss.system.ServiceController.start(ServiceController.java:460)
at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:362)
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
21:45:42,750 ERROR [StandardContext] Error listenerStart
21:45:42,750 ERROR [StandardContext] Context [/CalendarDateDropDownExample] startup failed due to previous errors
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4239580#4239580
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4239580
16 years, 10 months
[Installation, Configuration & DEPLOYMENT] - Re: Unable to deploy Visual JSF project on Netbeans 6.5.1 to
by CeylonSoft
Peter thanks for all your input here are the web.xml and jboss-web.xml
| web.xml:
| <?xml version="1.0" encoding="UTF-8"?>
| <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
| <context-param>
| <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
| <param-value>client</param-value>
| </context-param>
| <context-param>
| <param-name>com.sun.faces.validateXml</param-name>
| <param-value>true</param-value>
| </context-param>
| <context-param>
| <param-name>com.sun.faces.verifyObjects</param-name>
| <param-value>false</param-value>
| </context-param>
| <filter>
| <filter-name>UploadFilter</filter-name>
| <filter-class>com.sun.webui.jsf.util.UploadFilter</filter-class>
| <init-param>
| <description>The maximum allowed upload size in bytes. If this is set to a negative value, there is no maximum. The default value is 1000000.</description>
| <param-name>maxSize</param-name>
| <param-value>1000000</param-value>
| </init-param>
| <init-param>
| <description>The size (in bytes) of an uploaded file which, if it is exceeded, will cause the file to be written directly to disk instead of stored in memory. Files smaller than or equal to this size will be stored in memory. The default value is 4096.</description>
| <param-name>sizeThreshold</param-name>
| <param-value>4096</param-value>
| </init-param>
| </filter>
| <filter-mapping>
| <filter-name>UploadFilter</filter-name>
| <servlet-name>Faces Servlet</servlet-name>
| </filter-mapping>
| <servlet>
| <servlet-name>Faces Servlet</servlet-name>
| <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
| <init-param>
| <param-name>javax.faces.LIFECYCLE_ID</param-name>
| <param-value>com.sun.faces.lifecycle.PARTIAL</param-value>
| </init-param>
| <load-on-startup>1</load-on-startup>
| </servlet>
| <servlet>
| <servlet-name>ExceptionHandlerServlet</servlet-name>
| <servlet-class>com.sun.errorhandler.ExceptionHandler</servlet-class>
| <init-param>
| <param-name>errorHost</param-name>
| <param-value>localhost</param-value>
| </init-param>
| <init-param>
| <param-name>errorPort</param-name>
| <param-value>24444</param-value>
| </init-param>
| </servlet>
| <servlet>
| <servlet-name>ThemeServlet</servlet-name>
| <servlet-class>com.sun.webui.theme.ThemeServlet</servlet-class>
| </servlet>
| <servlet-mapping>
| <servlet-name>Faces Servlet</servlet-name>
| <url-pattern>/faces/*</url-pattern>
| </servlet-mapping>
| <servlet-mapping>
| <servlet-name>ExceptionHandlerServlet</servlet-name>
| <url-pattern>/error/ExceptionHandler</url-pattern>
| </servlet-mapping>
| <servlet-mapping>
| <servlet-name>ThemeServlet</servlet-name>
| <url-pattern>/theme/*</url-pattern>
| </servlet-mapping>
| <session-config>
| <session-timeout>
| 30
| </session-timeout>
| </session-config>
| <welcome-file-list>
| <welcome-file>faces/Page1.jsp</welcome-file>
| </welcome-file-list>
| <error-page>
| <exception-type>javax.servlet.ServletException</exception-type>
| <location>/error/ExceptionHandler</location>
| </error-page>
| <error-page>
| <exception-type>java.io.IOException</exception-type>
| <location>/error/ExceptionHandler</location>
| </error-page>
| <error-page>
| <exception-type>javax.faces.FacesException</exception-type>
| <location>/error/ExceptionHandler</location>
| </error-page>
| <error-page>
| <exception-type>com.sun.rave.web.ui.appbase.ApplicationException</exception-type>
| <location>/error/ExceptionHandler</location>
| </error-page>
| <jsp-config>
| <jsp-property-group>
| <url-pattern>*.jspf</url-pattern>
| <is-xml>true</is-xml>
| </jsp-property-group>
| </jsp-config>
| <resource-ref>
| <description>Creator generated DataSource Reference</description>
| <res-ref-name>jdbc/TRAVEL_ApacheDerby</res-ref-name>
| <res-type>javax.sql.DataSource</res-type>
| <res-auth>Container</res-auth>
| </resource-ref>
| </web-app>
|
| jboss-web.xml:
|
| <?xml version="1.0" encoding="UTF-8"?>
| <jboss-web>
| <security-domain flushOnSessionInvalidation="false"/>
| <context-root>/SinglePageCrudTable</context-root>
| </jboss-web>
|
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4239568#4239568
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4239568
16 years, 10 months
[Clustering/JBoss] - Re: ConcurrentModificationException during session serializa
by smarlow@redhat.com
I agree, that running with only one node in the cluster shouldn't require "sticky sessions=true".
When we do run with more than one cluster node, we need to enable "sticky sessions" to avoid multiple http session attribute changes (to the same http session attribute) coming from different nodes (at the same time).
Thank you for explaining this part of the problem. Of course, it goes deeper than not configuring the http load-balancer (please always enable "sticky http sessions" :-)
anonymous wrote : The problem as it seems to be is the web session gets modified while it is been serialized. Specifically the serialization of an org.ajax4jsf.util.LRUMap instance holding some JSF(?) state is failing with ConcurrentModificationException, so I've first thought it could be a RichFaces library problem.
>From your description of the problem, it sounds like the following events have occurred:
An HTTP request is received for user Sharon, during the processing of this request (R1), an HTTP session attribute change is made. As part of the HTTP processing after request processing, we attempt to replicate the attribute change. Meanwhile, another HTTP request (R2) for user Sharon was also processed that generated an HTTP session attribute change. As part of R2 processing, the same attribute change was transmitted (from a different HTTP client service thread) and applied to the collection (while the R1 client request handling thread is iterating through the collection).
The java.util.ConcurrentModificationException occurs when iterating through the collection, while another thread modifies the collection.
Before we discuss possible solutions, lets see if we agree on the above. If I am not stating things correctly above, please explain your understanding of what is happening.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4239560#4239560
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4239560
16 years, 10 months