[JBoss JIRA] (RF-11657) Better integration with JBossAS 7.1
by Juergen Zimmermann (Created) (JIRA)
Better integration with JBossAS 7.1
-----------------------------------
Key: RF-11657
URL: https://issues.jboss.org/browse/RF-11657
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: build/distribution, compatibility
Affects Versions: 4.1.0.Milestone3
Reporter: Juergen Zimmermann
JBossAS 7.1 contains Google Guava 10.0.x (in addition to sac-1.3.jar and cssparser-0.9.5.jar). Guava can be reused in RichFaces instead of doubling it in WEB-INF/lib. The solution is pretty simple:
In richfaces-core-impl-VERSION.jar the file META-INF/MANIFEST.MF already contains the line "Dependencies: ...". This line has to be extended by just ",com.google.guava" as follows:
Dependencies: org.w3c.css.sac,net.sourceforge.cssparser,com.google.guava
That's all and from now on RichFaces doesn't require the distribution of Google Guava in WEB-INF/lib when the platform is JBossAS 7.1. Please see also https://issues.jboss.org/browse/AS7-1809.
Be aware that there is no blank after the comma between net.sourceforge.cssparser and com.google.guava.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 10 months
[JBoss JIRA] (RF-11935) Can't deploy Showcase on Openshift express
by Jan Papousek (JIRA)
Jan Papousek created RF-11935:
---------------------------------
Summary: Can't deploy Showcase on Openshift express
Key: RF-11935
URL: https://issues.jboss.org/browse/RF-11935
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: showcase
Affects Versions: 4.2.0.CR1
Environment: OpenShift Express (JBoss AS 7.0.2.Final)
Reporter: Jan Papousek
When I try to deploy [Showcase|https://repository.jboss.org/nexus/content/groups/staging/org/ri...] on Openshift (Express), it fails. Log from {{rhc-tail-files}} follows:
{code}
08:07:15,228 INFO [org.jboss.as.logging] Restored bootstrap log handlers
08:07:15,234 INFO [org.apache.coyote.http11.Http11Protocol] Stopping Coyote HTTP/1.1 on http--127.1.45.1-8080
08:07:15,242 INFO [com.arjuna.ats.jbossatx] ARJUNA32018: Destroying TransactionManagerService
08:07:15,243 INFO [com.arjuna.ats.jbossatx] ARJUNA32014: Stopping transaction recovery manager
08:07:15,257 INFO [org.jboss.as] JBoss AS 7.0.2.Final "Arc" stopped in 38ms
/usr/bin/tail: showcase2/logs/boot.log: file truncated
08:07:16,671 INFO [org.jboss.modules] JBoss Modules version 1.0.2.GA
08:07:17,166 INFO [org.jboss.msc] JBoss MSC version 1.0.1.GA
08:07:17,298 INFO [org.jboss.as] JBoss AS 7.0.2.Final "Arc" starting
08:07:17,301 DEBUG [org.jboss.as.config] Configured system properties:
JAVA_HOME = /etc/alternatives/java_sdk_1.6.0
M2_HOME = /etc/alternatives/maven-3.0
OPENSHIFT_APP_CTL_SCRIPT = /var/lib/libra/da31c29986b146a188b9788300830e48/showcase2/showcase2_ctl.sh
OPENSHIFT_APP_DIR = /var/lib/libra/da31c29986b146a188b9788300830e48/showcase2/
OPENSHIFT_APP_DNS = showcase2-jpapouse.rhcloud.com
OPENSHIFT_APP_NAME = showcase2
OPENSHIFT_APP_TYPE = jbossas-7.0
OPENSHIFT_APP_UUID = da31c29986b146a188b9788300830e48
OPENSHIFT_CONTAINER_UUID = da31c29986b146a188b9788300830e48
OPENSHIFT_DATA_DIR = /var/lib/libra/da31c29986b146a188b9788300830e48/showcase2/data/
OPENSHIFT_HOMEDIR = /var/lib/libra/da31c29986b146a188b9788300830e48/
OPENSHIFT_INTERNAL_IP = 127.1.45.1
OPENSHIFT_INTERNAL_PORT = 8080
OPENSHIFT_LOG_DIR = /var/lib/libra/da31c29986b146a188b9788300830e48/showcase2/logs/
OPENSHIFT_REPO_DIR = /var/lib/libra/da31c29986b146a188b9788300830e48/showcase2/repo/
OPENSHIFT_RUN_DIR = /var/lib/libra/da31c29986b146a188b9788300830e48/showcase2/run/
OPENSHIFT_TMP_DIR = /tmp/
PATH = /usr/libexec/li/cartridges/jbossas-7.0/info/bin/:/usr/libexec/li/cartridges/abstract-httpd/info/bin/:/usr/libexec/li/cartridges/abstract/info/bin/:/etc/alternatives/java_sdk_1.6.0/bin:/etc/alternatives/maven-3.0/bin:/sbin:/usr/sbin:/bin:/usr/bin
file.encoding = UTF-8
file.encoding.pkg = sun.io
file.separator = /
java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment
java.awt.printerjob = sun.print.PSPrinterJob
java.class.path = /var/lib/libra/da31c29986b146a188b9788300830e48/showcase2/jbossas-7.0/jboss-modules.jar
java.class.version = 50.0
java.endorsed.dirs = /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/endorsed
java.ext.dirs = /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/ext:/usr/java/packages/lib/ext
java.home = /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre
java.io.tmpdir = /tmp
java.lang.Integer.IntegerCache.high = 20000
java.library.path = /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/server:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
java.net.preferIPv4Stack = true
java.runtime.name = OpenJDK Runtime Environment
java.runtime.version = 1.6.0_22-b22
java.specification.name = Java Platform API Specification
java.specification.vendor = Sun Microsystems Inc.
java.specification.version = 1.6
java.util.logging.manager = org.jboss.logmanager.LogManager
java.vendor = Sun Microsystems Inc.
java.vendor.url = http://java.sun.com/
java.vendor.url.bug = http://java.sun.com/cgi-bin/bugreport.cgi
java.version = 1.6.0_22
java.vm.info = mixed mode
java.vm.name = OpenJDK 64-Bit Server VM
java.vm.specification.name = Java Virtual Machine Specification
java.vm.specification.vendor = Sun Microsystems Inc.
java.vm.specification.version = 1.0
java.vm.vendor = Sun Microsystems Inc.
java.vm.version = 20.0-b11
javax.xml.datatype.DatatypeFactory = __redirected.__DatatypeFactory
javax.xml.parsers.DocumentBuilderFactory = __redirected.__DocumentBuilderFactory
javax.xml.parsers.SAXParserFactory = __redirected.__SAXParserFactory
javax.xml.stream.XMLEventFactory = __redirected.__XMLEventFactory
javax.xml.stream.XMLInputFactory = __redirected.__XMLInputFactory
javax.xml.stream.XMLOutputFactory = __redirected.__XMLOutputFactory
javax.xml.transform.TransformerFactory = __redirected.__TransformerFactory
javax.xml.validation.SchemaFactory:http://www.w3.org/2001/XMLSchema = __redirected.__SchemaFactory
javax.xml.xpath.XPathFactory:http://java.sun.com/jaxp/xpath/dom = __redirected.__XPathFactory
jboss.home.dir = /var/lib/libra/da31c29986b146a188b9788300830e48/showcase2/jbossas-7.0
jboss.host.name = ex-node10
jboss.modules.dir = /var/lib/libra/da31c29986b146a188b9788300830e48/showcase2/jbossas-7.0/modules
jboss.node.name = ex-node10
jboss.qualified.host.name = ex-node10.prod.rhcloud.com
jboss.server.base.dir = /var/lib/libra/da31c29986b146a188b9788300830e48/showcase2/jbossas-7.0/standalone
jboss.server.config.dir = /var/lib/libra/da31c29986b146a188b9788300830e48/showcase2/jbossas-7.0/standalone/configuration
jboss.server.data.dir = /var/lib/libra/da31c29986b146a188b9788300830e48/showcase2/jbossas-7.0/standalone/data
jboss.server.deploy.dir = /var/lib/libra/da31c29986b146a188b9788300830e48/showcase2/jbossas-7.0/standalone/data/content
jboss.server.log.dir = /var/lib/libra/da31c29986b146a188b9788300830e48/showcase2/jbossas-7.0/standalone/log
jboss.server.name = ex-node10
jboss.server.temp.dir = /var/lib/libra/da31c29986b146a188b9788300830e48/showcase2/jbossas-7.0/standalone/tmp
line.separator =
logging.configuration = file:/var/lib/libra/da31c29986b146a188b9788300830e48/showcase2/jbossas-7.0/standalone/configuration/logging.properties
module.path = /var/lib/libra/da31c29986b146a188b9788300830e48/showcase2/jbossas-7.0/standalone/configuration/modules:/var/lib/libra/da31c29986b146a188b9788300830e48/showcase2/jbossas-7.0/modules
org.apache.tomcat.util.LOW_MEMORY = true
org.jboss.boot.log.file = /var/lib/libra/da31c29986b146a188b9788300830e48/showcase2/jbossas-7.0/standalone/log/boot.log
org.jboss.resolver.warning = true
org.xml.sax.driver = __redirected.__XMLReaderFactory
os.arch = amd64
os.name = Linux
os.version = 2.6.32-220.4.1.el6.x86_64
path.separator = :
sun.arch.data.model = 64
sun.boot.class.path = /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/alt-rt.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/resources.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/rt.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/jsse.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/jce.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/charsets.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/netx.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/plugin.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/rhino.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/modules/jdk.boot.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/classes
sun.boot.library.path = /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64
sun.cpu.endian = little
sun.cpu.isalist =
sun.io.unicode.encoding = UnicodeLittle
sun.java.command = /var/lib/libra/da31c29986b146a188b9788300830e48/showcase2/jbossas-7.0/jboss-modules.jar -mp /var/lib/libra/da31c29986b146a188b9788300830e48/showcase2/jbossas-7.0/standalone/configuration/modules:/var/lib/libra/da31c29986b146a188b9788300830e48/showcase2/jbossas-7.0/modules -logmodule org.jboss.logmanager -jaxpmodule javax.xml.jaxp-provider org.jboss.as.standalone -Djboss.home.dir=/var/lib/libra/da31c29986b146a188b9788300830e48/showcase2/jbossas-7.0
sun.java.launcher = SUN_STANDARD
sun.jnu.encoding = UTF-8
sun.management.compiler = HotSpot 64-Bit Tiered Compilers
sun.os.patch.level = unknown
user.country = US
user.dir = /var/lib/libra/da31c29986b146a188b9788300830e48/git/showcase2.git
user.home = /var/lib/libra/da31c29986b146a188b9788300830e48
user.language = en
user.name = da31c29986b146a188b9788300830e48
user.timezone = America/New_York
08:07:18,529 INFO [org.jboss.as.logging] Removing bootstrap log handlers
==> showcase2/logs/server.log <==
08:07:18,558 INFO [org.jboss.as.connector.subsystems.datasources] (Controller Boot Thread) Deploying JDBC-compliant driver class org.h2.Driver (version 1.2)
08:07:18,567 INFO [org.jboss.as.connector.subsystems.datasources] (Controller Boot Thread) Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)
08:07:18,577 INFO [org.jboss.as.connector.subsystems.datasources] (Controller Boot Thread) Deploying non-JDBC-compliant driver class org.postgresql.Driver (version 8.4)
08:07:18,607 INFO [org.jboss.as.clustering.infinispan.subsystem] (Controller Boot Thread) Activating Infinispan subsystem.
08:07:18,791 INFO [org.jboss.as.naming] (Controller Boot Thread) JBAS011800: Activating Naming Subsystem
08:07:18,808 INFO [org.jboss.as.naming] (MSC service thread 1-3) JBAS011802: Starting Naming Service
08:07:18,819 INFO [org.jboss.as.security] (Controller Boot Thread) Activating Security Subsystem
08:07:19,140 INFO [org.apache.catalina.core.AprLifecycleListener] (MSC service thread 1-4) The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/server:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
08:07:19,231 INFO [org.jboss.as.ee] (Controller Boot Thread) Activating EE subsystem
08:07:19,292 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-1) Starting Coyote HTTP/1.1 on http--127.1.45.1-8080
08:07:19,515 INFO [org.jboss.as.connector] (MSC service thread 1-4) Starting JCA Subsystem (JBoss IronJacamar 1.0.3.Final)
08:07:19,585 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-4) Bound data source [java:jboss/datasources/ExampleDS]
08:07:20,461 INFO [org.jboss.as.deployment] (MSC service thread 1-2) Started FileSystemDeploymentService for directory /var/lib/libra/da31c29986b146a188b9788300830e48/showcase2/jbossas-7.0/standalone/deployments
08:07:20,492 INFO [org.jboss.as] (Controller Boot Thread) JBoss AS 7.0.2.Final "Arc" started in 4255ms - Started 83 of 111 services (22 services are passive or on-demand)
08:07:20,517 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) Starting deployment of "richfaces-showcase-4.2.0.CR1-openshift.war"
08:07:23,757 INFO [org.jboss.jpa] (MSC service thread 1-2) read persistence.xml for richfaces-showcase
08:07:23,767 INFO [org.jboss.as.jpa] (MSC service thread 1-3) added javax.persistence.api, javaee.api, org.jboss.as.jpa, org.javassist dependencies to richfaces-showcase-4.2.0.CR1-openshift.war
08:07:23,768 INFO [org.jboss.as.jpa] (MSC service thread 1-3) added (default provider) org.hibernate dependency to application deployment (since 1 PU(s) didn't specify jboss.as.jpa.providerModule)
08:07:23,769 INFO [org.jboss.as.jpa] (MSC service thread 1-3) added org.hibernate dependency to application deployment
08:07:24,895 INFO [org.jboss.weld] (MSC service thread 1-2) Processing CDI deployment: richfaces-showcase-4.2.0.CR1-openshift.war
08:07:26,611 INFO [org.jboss.weld] (MSC service thread 1-4) Starting Services for CDI deployment: richfaces-showcase-4.2.0.CR1-openshift.war
08:07:26,670 INFO [org.jboss.weld.Version] (MSC service thread 1-4) WELD-000900 1.1.2 (Final)
08:07:26,806 INFO [org.jboss.jpa] (MSC service thread 1-3) starting Persistence Unit Service 'richfaces-showcase-4.2.0.CR1-openshift.war#richfaces-showcase'
08:07:27,235 INFO [org.hibernate.annotations.common.Version] (MSC service thread 1-3) HCANN000001: Hibernate Commons Annotations {4.0.0.CR2}
08:07:27,253 INFO [org.hibernate.Version] (MSC service thread 1-3) HHH00412:Hibernate Core {4.0.0.CR2}
08:07:27,257 INFO [org.hibernate.cfg.Environment] (MSC service thread 1-3) HHH00206:hibernate.properties not found
08:07:27,260 INFO [org.hibernate.cfg.Environment] (MSC service thread 1-3) HHH00021:Bytecode provider name : javassist
08:07:27,310 INFO [org.hibernate.ejb.Ejb3Configuration] (MSC service thread 1-3) HHH00204:Processing PersistenceUnitInfo [
name: richfaces-showcase
...]
08:07:27,643 INFO [org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator] (MSC service thread 1-3) HHH00130:Instantiating explicit connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
08:07:28,191 INFO [org.hibernate.dialect.Dialect] (MSC service thread 1-3) HHH00400:Using dialect: org.hibernate.dialect.HSQLDialect
08:07:28,201 INFO [org.hibernate.engine.jdbc.internal.LobCreatorBuilder] (MSC service thread 1-3) HHH00423:Disabling contextual LOB creation as JDBC driver reported JDBC version [3] less than 4
08:07:28,211 INFO [org.hibernate.engine.transaction.internal.TransactionFactoryInitiator] (MSC service thread 1-3) HHH00268:Transaction strategy: org.hibernate.engine.transaction.internal.jdbc.JdbcTransactionFactory
08:07:28,216 INFO [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (MSC service thread 1-3) HHH00397:Using ASTQueryTranslatorFactory
08:07:28,312 INFO [org.hibernate.validator.util.Version] (MSC service thread 1-3) Hibernate Validator 4.2.0.Final
08:07:28,502 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.persistenceunit."richfaces-showcase-4.2.0.CR1-openshift.war#richfaces-showcase": org.jboss.msc.service.StartException in service jboss.persistenceunit."richfaces-showcase-4.2.0.CR1-openshift.war#richfaces-showcase": Failed to start service
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1780)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [:1.6.0_22]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [:1.6.0_22]
at java.lang.Thread.run(Thread.java:679) [:1.6.0_22]
Caused by: java.lang.ClassCastException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory
at org.dom4j.DocumentFactory.getInstance(DocumentFactory.java:97)
at org.dom4j.DocumentHelper.getDocumentFactory(DocumentHelper.java:36)
at org.dom4j.DocumentHelper.createDocument(DocumentHelper.java:41)
at org.hibernate.envers.configuration.RevisionInfoConfiguration.generateDefaultRevisionInfoXmlMapping(RevisionInfoConfiguration.java:86)
at org.hibernate.envers.configuration.RevisionInfoConfiguration.configure(RevisionInfoConfiguration.java:322)
at org.hibernate.envers.configuration.AuditConfiguration.<init>(AuditConfiguration.java:94)
at org.hibernate.envers.configuration.AuditConfiguration.getFor(AuditConfiguration.java:134)
at org.hibernate.envers.event.EnversIntegrator.integrate(EnversIntegrator.java:63)
at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:294)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1722)
at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:76)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:899)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:884)
at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:73)
at org.jboss.as.jpa.service.PersistenceUnitService.createContainerEntityManagerFactory(PersistenceUnitService.java:143)
at org.jboss.as.jpa.service.PersistenceUnitService.start(PersistenceUnitService.java:77)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)
... 3 more
08:07:28,747 INFO [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployment of "richfaces-showcase-4.2.0.CR1-openshift.war" was rolled back with failure message {"Failed services" => {"jboss.persistenceunit.\"richfaces-showcase-4.2.0.CR1-openshift.war#richfaces-showcase\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"richfaces-showcase-4.2.0.CR1-openshift.war#richfaces-showcase\": Failed to start service"}}
08:07:28,748 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) Service status report
Services which failed to start:
service jboss.persistenceunit."richfaces-showcase-4.2.0.CR1-openshift.war#richfaces-showcase": org.jboss.msc.service.StartException in service jboss.persistenceunit."richfaces-showcase-4.2.0.CR1-openshift.war#richfaces-showcase": Failed to start service
08:07:28,749 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 1) {"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"Failed services" => {"jboss.persistenceunit.\"richfaces-showcase-4.2.0.CR1-openshift.war#richfaces-showcase\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"richfaces-showcase-4.2.0.CR1-openshift.war#richfaces-showcase\": Failed to start service"}}}}
08:07:29,049 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) Stopped deployment richfaces-showcase-4.2.0.CR1-openshift.war in 295ms
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 10 months
[JBoss JIRA] (RF-11928) showcase - client side validation demos - not rendered due to incompatible guava library
by Juraj Huska (JIRA)
Juraj Huska created RF-11928:
--------------------------------
Summary: showcase - client side validation demos - not rendered due to incompatible guava library
Key: RF-11928
URL: https://issues.jboss.org/browse/RF-11928
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: compatibility, component-validators, core, showcase
Affects Versions: 4.2.0.CR1
Environment: container: JBoss AS 7.0.2.Final
browsers: all
Reporter: Juraj Huska
Accessing demos for client side validation in showcase, causes throwing an error and not rendering the components at all.
*Error:*
{code}
16:13:19,788 INFO [javax.enterprise.resource.webcontainer.jsf.context] (http-localhost.localdomain-127.0.0.1-8080-1) Exception when handling error trying to reset the response.: java.lang.NoSuchMethodError: com.google.common.collect.ImmutableSet.copyOf(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableSet;
at org.richfaces.renderkit.html.ClientOnlyScript.<init>(ClientOnlyScript.java:35) [richfaces-components-ui-4.2.0.CR1.jar:]
at org.richfaces.renderkit.html.ClientValidatorRenderer.createValidatorScript(ClientValidatorRenderer.java:184) [richfaces-components-ui-4.2.0.CR1.jar:]
at org.richfaces.renderkit.html.ClientValidatorRenderer.createValidatorScript(ClientValidatorRenderer.java:154) [richfaces-components-ui-4.2.0.CR1.jar:]
at org.richfaces.renderkit.html.ClientValidatorRenderer.buildAndStoreValidatorScript(ClientValidatorRenderer.java:125) [richfaces-components-ui-4.2.0.CR1.jar:]
at org.richfaces.renderkit.html.ClientValidatorRenderer.getScript(ClientValidatorRenderer.java:60) [richfaces-components-ui-4.2.0.CR1.jar:]
at javax.faces.component.behavior.ClientBehaviorBase.getScript(ClientBehaviorBase.java:103) [jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]
at org.richfaces.component.behavior.ClientValidatorImpl.getScript(ClientValidatorImpl.java:91) [richfaces-components-ui-4.2.0.CR1.jar:]
at com.sun.faces.renderkit.RenderKitUtils.getSingleBehaviorHandler(RenderKitUtils.java:1607) [jsf-impl-2.1.3-b02-jbossorg-2.jar:2.1.3-SNAPSHOT]
at com.sun.faces.renderkit.RenderKitUtils.renderHandler(RenderKitUtils.java:1700) [jsf-impl-2.1.3-b02-jbossorg-2.jar:2.1.3-SNAPSHOT]
at com.sun.faces.renderkit.RenderKitUtils.renderOnchange(RenderKitUtils.java:388) [jsf-impl-2.1.3-b02-jbossorg-2.jar:2.1.3-SNAPSHOT]
at com.sun.faces.renderkit.html_basic.TextRenderer.getEndTextToRender(TextRenderer.java:134) [jsf-impl-2.1.3-b02-jbossorg-2.jar:2.1.3-SNAPSHOT]
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:170) [jsf-impl-2.1.3-b02-jbossorg-2.jar:2.1.3-SNAPSHOT]
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:875) [jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:312) [jsf-impl-2.1.3-b02-jbossorg-2.jar:2.1.3-SNAPSHOT]
at com.sun.faces.renderkit.html_basic.GridRenderer.renderRow(GridRenderer.java:185) [jsf-impl-2.1.3-b02-jbossorg-2.jar:2.1.3-SNAPSHOT]
at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:129) [jsf-impl-2.1.3-b02-jbossorg-2.jar:2.1.3-SNAPSHOT]
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845) [jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1756) [jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]
at org.richfaces.renderkit.RendererBase.renderChildren(RendererBase.java:276) [richfaces-components-ui-4.2.0.CR1.jar:]
at org.richfaces.renderkit.html.PanelRenderer.encodeEnd(PanelRenderer.java:181) [richfaces-components-ui-4.2.0.CR1.jar:]
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:875) [jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1763) [jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]
at javax.faces.render.Renderer.encodeChildren(Renderer.java:168) [jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845) [jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1756) [jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1759) [jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1759) [jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]
at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:401) [jsf-impl-2.1.3-b02-jbossorg-2.jar:2.1.3-SNAPSHOT]
at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131) [jsf-impl-2.1.3-b02-jbossorg-2.jar:2.1.3-SNAPSHOT]
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288) [jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288) [jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121) [jsf-impl-2.1.3-b02-jbossorg-2.jar:2.1.3-SNAPSHOT]
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [jsf-impl-2.1.3-b02-jbossorg-2.jar:2.1.3-SNAPSHOT]
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) [jsf-impl-2.1.3-b02-jbossorg-2.jar:2.1.3-SNAPSHOT]
at org.richfaces.demo.arrangeablemodel.PersistenceLifecycle.render(PersistenceLifecycle.java:66) [classes:]
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594) [jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:67) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]
at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]
at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:49) [jboss-as-jpa-7.0.2.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at java.lang.Thread.run(Thread.java:662) [:1.6.0_22]
{code}
The demos works fine on JBoss AS 7.1.0.CR1b.
The thing is that the showcase deployment on *JBoss AS 7.0.2.Final* uses *guava-r6* shipped with container, and deployment on *JBoss AS 7.1.0.CR1b uses shipped guava-10.0.1.*
So it should be set in jboss-deployment-structure.xml that application is bringing it own guava.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 10 months
[JBoss JIRA] (RF-11529) a4j:support in rich:datatable JS crash in Chrome with limitToList="true"
by Stef Klaassen (Created) (JIRA)
a4j:support in rich:datatable JS crash in Chrome with limitToList="true"
------------------------------------------------------------------------
Key: RF-11529
URL: https://issues.jboss.org/browse/RF-11529
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 3.3.3.Final
Environment: Tomcat 7, RichFaces 3.3.3.Final
Reporter: Stef Klaassen
Priority: Minor
I've got a Datatable in which I have a column that contains a tomahawk selectOneRadio. In this selectOneRadio is a a4j:support that has an onclick event to update some components. On this support-tag I had the limitToList-attribute set to true. This works fine in FF and IE, but today I tested it in Chrome and I saw that the Javascript wasn't executed anymore. When I click a radiobutton first, which makes another button in the next column dissapear, all goes well. But when I click another radiobutton that should make the next column button reappear again, it fails.
I get the following error in chrome: Uncaught Error: Uncaught Error: NOT_SUPPORTED_ERR: DOM Exception 9 3_3_3.Finalorg.ajax4jsf.javascript.AjaxScript.html:121 which points at this line: var importednode=window.document.importNode(newnode,true);LOG.debug("Replace content of node by replaceChild()");var oldGetElementById=null;A4J.AJAX.TestReplacedGetElementByIdVisibility();if(!A4J.AJAX._testReplacedGetElementByIdVisibility){LOG.debug("Temporarily substituting document.getElementById() to work around WebKit issue");oldGetElementById=document.getElementById;document.getElementById=function(id){var elt=oldGetElementById.apply(document,arguments);if(!elt){var id=arguments[0];LOG.debug("Element [@id='"+id+"'] was not found in document, trying to locate XPath match");try{var result=importednode.ownerDocument.evaluate("//*[@id='"+id+"']",importednode,null,XPathResult.ANY_UNORDERED_NODE_TYPE);if(result){elt=result.singleNodeValue;}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 10 months