Cara consegui!!! Subir o projeto. No meu caso estou fazendo um projeto com netbeans 6.9.1 da devmedia - curso de loja virtual com jee6 e servidor glassfish 3 em diante. Assim, consequentemente usando jsf2 e no meu caso algumas coisas do primefaces 2.2.1, até ae tudo indo ótimo, quando resolvi usar ajax do richf faces em sua ultima versão 4 final. Ao subir informa que eu uso o mojarra 2.02, dessa forma tentei especificar o máximo possível o meu ambiente , tb usando windows 7.
Ao ler o readme e o develop guide obtem os seguintes passos de instalação de 2 formas: uma através do maven e outra a minha escolhida, adicionando algumas libs , tipo: 2 de ui-components e outras 2 de core e mais algumas de outras empresas.
Nessa versão de richfaces não precisa configurar o web.xml. A não ser se desejar mudar o skin o que não foi o meu caso.
Vou descrever os passos para facilitar para todos que por obsequio desejarem tentar.
Primeiro leia com atenção o readme que vem ao descompatar o arquivo baixado de : http://www.jboss.org/richfaces/download/stable.html
Deste link de download: http://downloads.jboss.org/richfaces/releases/4.0.X/4.0.0.Final/richfaces-4.0.0.Final.zip
Depois de descompactar, leia o readme que diz:
SETTING UP YOUR PROJECT
1. Manually
After downloading the distribution package, extract its content in a
folder of your choice.
Search for the 'artifacts' directory in the extracted files. There you
will find 'framework' and 'ui' directories, each of them having the
jars needed to use RichFaces inside your project.
- From 'ui' directory: Copy richfaces-components-api-4.x.jar and
richfaces-components-ui-4.x.jar to your application libraries
folder.
- From 'framework' directory: Copy richfaces-core-api-4.x.jar and
richfaces-core-impl-4.x.jar to your application libraries folder.
In addition to the RichFaces jars, a number of dependencies are
required in order to properly configure the framework.
a. sac-1.3, cssparser-0.9.5 - required for components CSS work.
b. google-guava-r08 - core runtime dependency.
c. annotations.jar - from org.richfaces.cdk.
- It's optional and only needs to be added if RichFaces components
will be created/accessed dynamically in your apps actions/listeners.
d. validation-api.jar and any implementation like hibernate-validators.jar
- It's optional and should be added if you using Client or Graph
Validation. Should be added only if it's not provided by a
server (Java EE 6 servers).
For the latest updates, and information on this please see:
http://community.jboss.org/docs/DOC-16484
2. Using Maven
To setup your project using Maven, follow the instruction on the wiki at
http://community.jboss.org/wiki/HowtoaddRichFaces4xtomavenbasedproject
For optimal performance it’s recommended to add one of these caching frameworks
to application classpath: EhCache, JBoss Cache, OsCache.
GETTING STARTED
-
Aside from the steps above to use RichFaces component library, no
special configuration steps are necessary. You don’t need to modify
web.xml or faces-config.xml as with previous versions of RichFaces,
except for a4j:push component that requires additional configuration
in web.xml
-
Add RichFaces namespaces/taglibs declarations to your VDL/XHTML pages
which will use RichFaces components.
-
Add on of the available RichFaces components to your page and try it!
Take a look at the RichFaces examples for assistance with usage.
-
For more information on getting started with RichFaces, visit the wiki’s
Getting Started Guide at http://community.jboss.org/wiki/GettingStartedWithRichFaces4x
Eu peguei e entrei neste site , para tirar o resto de dúvidas que tive:
http://community.jboss.org/wiki/HowtoaddRichFaces4xtoprojectsnotbasedonmaven
La dizia :
How to add RichFaces 4.x to projects not based on maven
VERSION 7 Click to view article history
Created on: Feb 11, 2011 9:52 AM by Juan Camilo Prada - Last Modified: Mar 17, 2011 11:44 AM by Juan Camilo Prada
This article will guide you through the steps needed to configure RichFaces 4.0 M5 in a project without Maven. If you are using Maven, you should follow this guide instead.
First thing you need to do is download RichFaces 4.0 CR1 from the official project site. Once downloaded, unzip the package and check the artifacts directory. There you will find framework and ui directories, each one containing some of the RichFaces jars needed to build the application.
The list below shows all current jars distribuited. To build your project you only need four of them. From framework directory you must use richfaces-core-api-4.0.0.20110227-CR1.jar and richfaces-core-impl-4.0.0.20110227-CR1.jar. In the same way you are going to need richfaces-components-api-4.0.0.20110227-CR1.jar and richfaces-components-ui-4.0.0.20110227-CR1.jar from ui directory.
richfaces-4.0.0.20101226-M5/
archetypes/
artifacts/
framework/
richfaces-core-api-4.0.0.20110227-CR1.jar
richfaces-core-api-4.0.0.20110227-CR1-sources.jar
richfaces-core-impl-4.0.0.20110227-CR1.jar
richfaces-core-impl-4.0.0.20110227-CR1-sources.jar
ui/
richfaces-components-api-4.0.0.20110227-CR1.jar
richfaces-components-api-4.0.0.20110227-CR1-sources.jar
richfaces-components-ui-4.0.0.20110227-CR1.jar
richfaces-components-ui-4.0.0.20110227-CR1-sources.jar
docs/
examples/
...
Copy the jars and paste them in your …/WEB-INF/lib/ directory of your project. Now all that is needed is to get the external dependencies.
External Dependencies
RichFaces needs a couple of external dependencies in order to work without problems in your application. These are cssparser.jar and sac.jar. Both of them can be downloaded from here and here respectively. Download both jars and place them inside …/WEB-INF/lib/ directory of your web project along with the richfaces jars.
Also RichFaces 4.x make use of the google-guava-r08 which is a core runtime dependency. It can be downloaded directly from its google code site at: http://code.google.com/p/guava-libraries/downloads . Download the zip package and extract guava-r08.jar and place it inside …/WEB-INF/lib/ directory of your web project.
Optional (Only for Client or Graph Validation)
If you are planning on using Client or Graph validation, you will need a couple of dependencies that are usually provided by Java EE 6 servers (i.e Jboss AS 6) If your server provides validation-api.jar and any implementation like hibernate-validators.jar, then you are good to go. If that is not the case, you might want to get those two jars and place them in your …/WEB-INF/lib/ directory for Client or Graph validation to work.
CDK annotation dependency (optional)
Now, there is an additional dependency that is needed only if you are creating/accessing some RichFaces components instance in your application actions or listeners. This dependency is used to define CDK annotations. If you think you will need it, you can download RichFaces 4.0 M5 CDK annotation.jar from here and add it to your classpath.
And thats all, If you followed this steps, you will end up with a …/WEB-INF/ directory structure similar to the one below.
YourRichFacesProject/
src/
WebContent/
META-INF/
resources/
WEB-INF/
lib/
commons-annotations.jar
commons-beanutils.jar
commons-collections.
commons-digester.jar
commons-logging.jar
jstl.jar
richfaces-components-api-4.0.0.20110227-CR1.jar
richfaces-components-ui-4.0.0.20110227-CR1.jar
richfaces-core-api-4.0.0.20110227-CR1.jar
richfaces-core-impl-4.0.0.20110227-CR1.jar
guava-r08.jar
cssparser-0.9.5.jar
sac-1.3.jar
web.xml
faces-config.xml
index.hxtml
...
...
The highlighted entries are the RichFaces jars and its dependencies. Now you are ready to start developing with RichFaces 4.x
Fiz estes passos , adicionando os jars referidos e pronto o projeto subiu, vou mostrar:
init:
undeploy-clean:
deps-clean:
do-clean:
Deleting directory C:\Users\DjChristianDF\Documents\NetBeansProjects\EcommerceDevmedia\build
Deleting directory C:\Users\DjChristianDF\Documents\NetBeansProjects\EcommerceDevmedia\dist
check-clean:
clean:
init:
deps-module-jar:
deps-ear-jar:
deps-jar:
check-rest-config-props:
generate-rest-config:
Created dir: C:\Users\DjChristianDF\Documents\NetBeansProjects\EcommerceDevmedia\build\generated-sources\rest\org\netbeans\rest\application\config
Created dir: C:\Users\DjChristianDF\Documents\NetBeansProjects\EcommerceDevmedia\build\web\WEB-INF\classes
Created dir: C:\Users\DjChristianDF\Documents\NetBeansProjects\EcommerceDevmedia\build\web\META-INF
Copying 1 file to C:\Users\DjChristianDF\Documents\NetBeansProjects\EcommerceDevmedia\build\web\META-INF
Created dir: C:\Users\DjChristianDF\Documents\NetBeansProjects\EcommerceDevmedia\build\web\WEB-INF\classes\META-INF
Copying 1 file to C:\Users\DjChristianDF\Documents\NetBeansProjects\EcommerceDevmedia\build\web\WEB-INF\classes\META-INF
Copying 49 files to C:\Users\DjChristianDF\Documents\NetBeansProjects\EcommerceDevmedia\build\web
Copied 10 empty directories to 2 empty directories under C:\Users\DjChristianDF\Documents\NetBeansProjects\EcommerceDevmedia\build\web
library-inclusion-in-archive:
Copying 1 file to C:\Users\DjChristianDF\Documents\NetBeansProjects\EcommerceDevmedia\build\web\WEB-INF\lib
Copying 1 file to C:\Users\DjChristianDF\Documents\NetBeansProjects\EcommerceDevmedia\build\web\WEB-INF\lib
Copying 1 file to C:\Users\DjChristianDF\Documents\NetBeansProjects\EcommerceDevmedia\build\web\WEB-INF\lib
Copying 1 file to C:\Users\DjChristianDF\Documents\NetBeansProjects\EcommerceDevmedia\build\web\WEB-INF\lib
Copying 1 file to C:\Users\DjChristianDF\Documents\NetBeansProjects\EcommerceDevmedia\build\web\WEB-INF\lib
Copying 1 file to C:\Users\DjChristianDF\Documents\NetBeansProjects\EcommerceDevmedia\build\web\WEB-INF\lib
Copying 1 file to C:\Users\DjChristianDF\Documents\NetBeansProjects\EcommerceDevmedia\build\web\WEB-INF\lib
Copying 1 file to C:\Users\DjChristianDF\Documents\NetBeansProjects\EcommerceDevmedia\build\web\WEB-INF\lib
Copying 1 file to C:\Users\DjChristianDF\Documents\NetBeansProjects\EcommerceDevmedia\build\web\WEB-INF\lib
Copying 1 file to C:\Users\DjChristianDF\Documents\NetBeansProjects\EcommerceDevmedia\build\web\WEB-INF\lib
Copying 1 file to C:\Users\DjChristianDF\Documents\NetBeansProjects\EcommerceDevmedia\build\web\WEB-INF\lib
Copying 1 file to C:\Users\DjChristianDF\Documents\NetBeansProjects\EcommerceDevmedia\build\web\WEB-INF\lib
Copying 1 file to C:\Users\DjChristianDF\Documents\NetBeansProjects\EcommerceDevmedia\build\web\WEB-INF\lib
Copying 1 file to C:\Users\DjChristianDF\Documents\NetBeansProjects\EcommerceDevmedia\build\web\WEB-INF\lib
Copying 1 file to C:\Users\DjChristianDF\Documents\NetBeansProjects\EcommerceDevmedia\build\web\WEB-INF\lib
Copying 1 file to C:\Users\DjChristianDF\Documents\NetBeansProjects\EcommerceDevmedia\build\web\WEB-INF\lib
Copying 1 file to C:\Users\DjChristianDF\Documents\NetBeansProjects\EcommerceDevmedia\build\web\WEB-INF\lib
Copying 1 file to C:\Users\DjChristianDF\Documents\NetBeansProjects\EcommerceDevmedia\build\web\WEB-INF\lib
Copying 1 file to C:\Users\DjChristianDF\Documents\NetBeansProjects\EcommerceDevmedia\build\web\WEB-INF\lib
Copying 1 file to C:\Users\DjChristianDF\Documents\NetBeansProjects\EcommerceDevmedia\build\web\WEB-INF\lib
Copying 1 file to C:\Users\DjChristianDF\Documents\NetBeansProjects\EcommerceDevmedia\build\web\WEB-INF\lib
Copying 1 file to C:\Users\DjChristianDF\Documents\NetBeansProjects\EcommerceDevmedia\build\web\WEB-INF\lib
library-inclusion-in-manifest:
Created dir: C:\Users\DjChristianDF\Documents\NetBeansProjects\EcommerceDevmedia\build\empty
Created dir: C:\Users\DjChristianDF\Documents\NetBeansProjects\EcommerceDevmedia\build\generated-sources\ap-source-output
Compiling 28 source files to C:\Users\DjChristianDF\Documents\NetBeansProjects\EcommerceDevmedia\build\web\WEB-INF\classes
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
compile:
compile-jsps:
Created dir: C:\Users\DjChristianDF\Documents\NetBeansProjects\EcommerceDevmedia\dist
Building jar: C:\Users\DjChristianDF\Documents\NetBeansProjects\EcommerceDevmedia\dist\EcommerceDevmedia.war
do-dist:
dist:
CONSTRUÍDO COM SUCESSO (tempo total: 7 segundos)
DEPOIS RODEI O PROJETO PRINCIPAL: RESULTADO
30/03/2011 22:13:15 com.sun.enterprise.glassfish.bootstrap.ASMain main
INFO: Launching GlassFish on Felix platform
Welcome to Felix
INFO: Perform lazy SSL initialization for the listener ‘http-listener-2’
INFO: Starting Grizzly Framework 1.9.18-o - Wed Mar 30 22:13:29 BRT 2011
INFO: Starting Grizzly Framework 1.9.18-o - Wed Mar 30 22:13:29 BRT 2011
INFO: Grizzly Framework 1.9.18-o started in: 790ms listening on port 8080
INFO: Grizzly Framework 1.9.18-o started in: 596ms listening on port 7676
INFO: Grizzly Framework 1.9.18-o started in: 696ms listening on port 4848
INFO: Grizzly Framework 1.9.18-o started in: 710ms listening on port 3700
INFO: Grizzly Framework 1.9.18-o started in: 790ms listening on port 8181
INFO: The Admin Console is already installed, but not yet loaded.
INFO: GlassFish Server Open Source Edition 3.0.1 (22) startup time : Felix(11054ms) startup services(4408ms) total(15462ms)
INFO: Binding RMI port to :8686
INFO: Hibernate Validator bean-validator-3.0-JBoss-4.0.2
INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
INFO: Grizzly Framework 1.9.18-o started in: 235ms listening on port 8080
INFO: JMXStartupService: Started JMXConnector, JMXService URL = service:jmx:rmi://DJComputer:8686/jndi/rmi://DJComputer:8686/jmxrmi
INFO: Perform lazy SSL initialization for the listener ‘http-listener-2’
INFO: Grizzly Framework 1.9.18-o started in: 360ms listening on port 8181
INFO: Using com.sun.enterprise.transaction.jts.JavaEETransactionManagerJTSDelegate as the delegate
INFO: [Thread[GlassFish Kernel Main Thread,5,main]] started
INFO: {felix.fileinstall.poll (ms) = 5000, felix.fileinstall.dir = C:\Program Files\glassfish-3.0.1\glassfish\modules\autostart, felix.fileinstall.debug = 1, felix.fileinstall.bundles.new.start = true, felix.fileinstall.tmpdir = C:\Users\DJCHRI~1\AppData\Local\Temp\fileinstall-6856484274978085478, felix.fileinstall.filter = null}
INFO: {felix.fileinstall.poll (ms) = 5000, felix.fileinstall.dir = C:\Users\DjChristianDF.netbeans\6.9\config\GF3_1\domain1\autodeploy\bundles, felix.fileinstall.debug = 1, felix.fileinstall.bundles.new.start = true, felix.fileinstall.tmpdir = C:\Users\DJCHRI~1\AppData\Local\Temp\fileinstall–4265920946507961216, felix.fileinstall.filter = null}
INFO: SEC1002: Security Manager is OFF.
INFO: Security startup service called
INFO: SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.
INFO: Realm admin-realm of classtype com.sun.enterprise.security.auth.realm.file.FileRealm successfully created.
INFO: Realm file of classtype com.sun.enterprise.security.auth.realm.file.FileRealm successfully created.
INFO: Realm certificate of classtype com.sun.enterprise.security.auth.realm.certificate.CertificateRealm successfully created.
INFO: Security service(s) started successfully…
INFO: Updating configuration from org.apache.felix.fileinstall-autodeploy-bundles.cfg
INFO: Installed C:\Program Files\glassfish-3.0.1\glassfish\modules\autostart\org.apache.felix.fileinstall-autodeploy-bundles.cfg
INFO: Created HTTP listener http-listener-1 on port 8080
INFO: Created HTTP listener http-listener-2 on port 8181
INFO: Created HTTP listener admin-listener on port 4848
INFO: Created virtual server server
INFO: {felix.fileinstall.poll (ms) = 5000, felix.fileinstall.dir = C:\Users\DjChristianDF.netbeans\6.9\config\GF3_1\domain1\autodeploy\bundles, felix.fileinstall.debug = 1, felix.fileinstall.bundles.new.start = true, felix.fileinstall.tmpdir = C:\Users\DJCHRI~1\AppData\Local\Temp\fileinstall-6023807114525749128, felix.fileinstall.filter = null}
INFO: Created virtual server __asadmin
INFO: Virtual server server loaded system default web module
INFO: WS00018: Webservice Endpoint deployed
NewWebService listening at address at http://localhost:8080/EcommerceDevmedia/NewWebServiceService
INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
INFO: Portable JNDI names for EJB UserSession : [java:global/EcommerceDevmedia/UserSession, java:global/EcommerceDevmedia/UserSession!br.com.devmedia.session.UserSession]
INFO: Portable JNDI names for EJB SellSession : [java:global/EcommerceDevmedia/SellSession!br.com.devmedia.session.SellSession, java:global/EcommerceDevmedia/SellSession]
INFO: Loading EJBTimerService. Please wait.
INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
INFO: [TimerBeanContainer] Created TimerBeanContainer: TimerBean
INFO: Portable JNDI names for EJB TimerBean : [java:global/ejb-timer-service-app/TimerBean, java:global/ejb-timer-service-app/TimerBean!com.sun.ejb.containers.TimerLocal]
INFO: EJB5109:EJB Timer Service started successfully for datasource [jdbc/__TimerPool]
INFO: ==> Restoring Timers …
INFO: <== … Timers Restored.
INFO: Loading application ejb-timer-service-app at /ejb-timer-service-app
INFO: Portable JNDI names for EJB ProductSession : [java:global/EcommerceDevmedia/ProductSession!br.com.devmedia.session.ProductSession, java:global/EcommerceDevmedia/ProductSession]
INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
INFO: EclipseLink, version: Eclipse Persistence Services - 2.0.1.v20100213-r6600
INFO: file:/C:/Users/DjChristianDF/Documents/NetBeansProjects/EcommerceDevmedia/build/web/WEB-INF/classes/_EcommerceDevmediaPU login successful
AVISO: Got SQLException executing statement “CREATE TABLE product (id INTEGER AUTO_INCREMENT NOT NULL, SPEC VARCHAR(255) NOT NULL, STOCK INTEGER NOT NULL, NAME VARCHAR(255) NOT NULL UNIQUE, COST DECIMAL(38) NOT NULL, CATEGORY_id INTEGER, PRIMARY KEY (id))”: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table ‘product’ already exists
AVISO: Got SQLException executing statement “”: java.sql.SQLException: Can not issue empty query.
AVISO: Got SQLException executing statement “CREATE TABLE users (id INTEGER AUTO_INCREMENT NOT NULL, USERNAME VARCHAR(255) NOT NULL, EMAIL VARCHAR(255) NOT NULL, NAME VARCHAR(255) NOT NULL, PASSWORD VARCHAR(32) NOT NULL, PRIMARY KEY (id))”: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table ‘users’ already exists
AVISO: Got SQLException executing statement “CREATE TABLE devmedia.category (id INTEGER AUTO_INCREMENT NOT NULL, NAME VARCHAR(255) NOT NULL UNIQUE, ACTIVE TINYINT(1) default 0, PRIMARY KEY (id))”: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table ‘category’ already exists
AVISO: Got SQLException executing statement “CREATE INDEX IX_category_UNQ_category_0 ON devmedia.category (NAME)”: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Duplicate key name ‘IX_category_UNQ_category_0’
AVISO: Got SQLException executing statement “”: java.sql.SQLException: Can not issue empty query.
AVISO: Got SQLException executing statement “CREATE TABLE address (id INTEGER AUTO_INCREMENT NOT NULL, POSTALCODE VARCHAR(255) NOT NULL, NICKNAME VARCHAR(255) NOT NULL, ADDRESS VARCHAR(255) NOT NULL, STATEOFADDRESS VARCHAR(100) NOT NULL, NUMBER INTEGER NOT NULL, COUNTRY VARCHAR(255) NOT NULL, userOf INTEGER, PRIMARY KEY (id))”: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table ‘address’ already exists
AVISO: Got SQLException executing statement “CREATE TABLE sell (id INTEGER AUTO_INCREMENT NOT NULL, TOTAL DECIMAL(38) NOT NULL, STATUS VARCHAR(255) NOT NULL, CLOSED TINYINT(1) default 0, DATEOFSELL DATE NOT NULL, USEROF_id INTEGER, ADDRESSTOSEND_id INTEGER, CREDITCARD_id INTEGER, PRIMARY KEY (id))”: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table ‘sell’ already exists
AVISO: Got SQLException executing statement “CREATE TABLE credicard (id INTEGER AUTO_INCREMENT NOT NULL, FLAG VARCHAR(255) NOT NULL, TIMES INTEGER NOT NULL, DATEOFVALIDATION DATE NOT NULL, NAMEOFCARDOWNER VARCHAR(255) NOT NULL, NUMBER VARCHAR(255) NOT NULL, USEROF_id INTEGER, PRIMARY KEY (id))”: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table ‘credicard’ already exists
AVISO: Got SQLException executing statement “CREATE TABLE sellitem (id INTEGER AUTO_INCREMENT NOT NULL, QNT INTEGER NOT NULL, SELL_id INTEGER, PRODUCT_id INTEGER, PRIMARY KEY (id))”: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table ‘sellitem’ already exists
AVISO: Got SQLException executing statement “CREATE TABLE CALLONAVALIABLE (id INTEGER AUTO_INCREMENT NOT NULL, EMAIL VARCHAR(255), CALLED TINYINT(1) default 0, PRODUCT_id INTEGER, PRIMARY KEY (id))”: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table ‘callonavaliable’ already exists
AVISO: Got SQLException executing statement “ALTER TABLE devmedia.category ADD CONSTRAINT UNQ_category_0 UNIQUE (NAME)”: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Duplicate key name ‘UNQ_category_0’
AVISO: Got SQLException executing statement “ALTER TABLE product ADD CONSTRAINT FK_product_CATEGORY_id FOREIGN KEY (CATEGORY_id) REFERENCES devmedia.category (id)”: java.sql.SQLException: Can’t create table ‘devmedia.#sql-450_4’ (errno: 121)
AVISO: Got SQLException executing statement “ALTER TABLE address ADD CONSTRAINT FK_address_userOf FOREIGN KEY (userOf) REFERENCES users (id)”: java.sql.SQLException: Can’t create table ‘devmedia.#sql-450_4’ (errno: 121)
AVISO: Got SQLException executing statement “ALTER TABLE sell ADD CONSTRAINT FK_sell_CREDITCARD_id FOREIGN KEY (CREDITCARD_id) REFERENCES credicard (id)”: java.sql.SQLException: Can’t create table ‘devmedia.#sql-450_4’ (errno: 121)
AVISO: Got SQLException executing statement “ALTER TABLE sell ADD CONSTRAINT FK_sell_USEROF_id FOREIGN KEY (USEROF_id) REFERENCES users (id)”: java.sql.SQLException: Can’t create table ‘devmedia.#sql-450_4’ (errno: 121)
AVISO: Got SQLException executing statement “ALTER TABLE sell ADD CONSTRAINT FK_sell_ADDRESSTOSEND_id FOREIGN KEY (ADDRESSTOSEND_id) REFERENCES address (id)”: java.sql.SQLException: Can’t create table ‘devmedia.#sql-450_4’ (errno: 121)
AVISO: Got SQLException executing statement “ALTER TABLE credicard ADD CONSTRAINT FK_credicard_USEROF_id FOREIGN KEY (USEROF_id) REFERENCES users (id)”: java.sql.SQLException: Can’t create table ‘devmedia.#sql-450_4’ (errno: 121)
AVISO: Got SQLException executing statement “ALTER TABLE sellitem ADD CONSTRAINT FK_sellitem_PRODUCT_id FOREIGN KEY (PRODUCT_id) REFERENCES product (id)”: java.sql.SQLException: Can’t create table ‘devmedia.#sql-450_4’ (errno: 121)
AVISO: Got SQLException executing statement “ALTER TABLE sellitem ADD CONSTRAINT FK_sellitem_SELL_id FOREIGN KEY (SELL_id) REFERENCES sell (id)”: java.sql.SQLException: Can’t create table ‘devmedia.#sql-450_4’ (errno: 121)
AVISO: Got SQLException executing statement “ALTER TABLE CALLONAVALIABLE ADD CONSTRAINT FK_CALLONAVALIABLE_PRODUCT_id FOREIGN KEY (PRODUCT_id) REFERENCES product (id)”: java.sql.SQLException: Can’t create table ‘devmedia.#sql-450_4’ (errno: 121)
INFO: WELD-000900 1.0.1 (SP3)
INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
INFO: EclipseLink, version: Eclipse Persistence Services - 2.0.1.v20100213-r6600
INFO: JTS5014: Recoverable JTS instance, serverId = [100]
INFO: file:/C:/Users/DjChristianDF/.netbeans/6.9/config/GF3_1/domain1/applications/ejb-timer-service-app/WEB-INF/classes/___EJB__Timer__App login successful
INFO: Registering the Jersey servlet application, named org.netbeans.rest.application.config.ApplicationConfig, at the servlet mapping, /restapi/, with the Application class of the same name
INFO: Inicializando Mojarra 2.0.2 (FCS b10) para o contexto ‘/EcommerceDevmedia’
INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
INFO: Selected fallback cache factory
INFO: Creating LRUMap cache instance using parameters: {com.sun.faces.allowTextChildren=true, primefaces.THEME=hot-sneaks, javax.faces.DEFAULT_SUFFIX=.xhtml, com.sun.faces.validateXml=true, com.sun.faces.forceLoadConfiguration=true, facelets.DEVELOPMENT=true}
INFO: Creating LRUMap cache instance of 512 items capacity
INFO: RichFaces Core Implementation by JBoss, a division of Red Hat, Inc., version v.4.0.0.Final SVN r.22269
INFO: ResourceServlet is deprecated and has no use in PrimeFaces 2.2+ as native JSF 2.0 resource APIs are used instead to load resources on page.
INFO: Loading application EcommerceDevmedia at /EcommerceDevmedia
INFO: EcommerceDevmedia was successfully deployed in 60.988 milliseconds.
Já funcionava antes até a parte da adição de produtos ae implementei um ajax para categoria com produtos e funcionou de boa, o exemplo de ajax foi do tipo um item do selectOneMenu ao ser escolhido, abre outro selectOneMenu não renderizado. De acordo com a ecolha anterior o conteudo será diferente.
TEM EXEMPLO NESTE LINK: http://richfaces-showcase.appspot.com/
ESTE EXEMPLO, http://richfaces-showcase.appspot.com/richfaces/component-sample.jsf?demo=ajax&sample=selectsUpdates&skin=blueSky
Espero ter ajudado e motivado os que ainda não conseguiram.
Qualquer ajuda, djchristiandf@gmail.com pode perguntar.
CHRISTIAN BARBOSA - BRASILIA / DF Desenvolvedor Java