Bug 1178800 - Warnings when importing hibernate3 quickstart into JBDS
Summary: Warnings when importing hibernate3 quickstart into JBDS
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Quickstarts
Version: 6.4.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: CR1
: EAP 6.4.0
Assignee: jboss-set
QA Contact: Nikoleta Hlavickova
URL:
Whiteboard:
Depends On: 1178925
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-05 13:51 UTC by Nikoleta Hlavickova
Modified: 2019-08-19 12:43 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-08-19 12:43:17 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Nikoleta Hlavickova 2015-01-05 13:51:56 UTC
No connection specified for project. No database-specific validation will be performed.	
JPA Problem

No grammar constraints (DTD or XML Schema) referenced in the document.
jboss-deployment-structure.xml	/jboss-hibernate3/src/main/webapp/WEB-INF	line 1
XML Problem

The value of the local variable memberId is not used
ValidateMemberId.java	/jboss-hibernate3/src/main/java/org/jboss/as/quickstart/hibernate3/util	line 31
Java Problem

Type safety: Unchecked cast from List to List<Member>
MemberListProducer.java	/jboss-hibernate3/src/main/java/org/jboss/as/quickstart/hibernate3/data	line 65
Java Problem

Unnecessary @SuppressWarnings("unused")
Resources.java	/jboss-hibernate3/src/main/java/org/jboss/as/quickstart/hibernate3/util	line 42
Java Problem

validator-class references to "org.jboss.as.quickstart.hibernate3.util.ValidateEmail" that does not extend javax.faces.validator.Validator
faces-config.xml	/jboss-hibernate3/src/main/webapp/WEB-INF	line 35
JSF Faces Config Problem

validator-class references to "org.jboss.as.quickstart.hibernate3.util.ValidateMemberId" that does not extend javax.faces.validator.Validator
faces-config.xml	/jboss-hibernate3/src/main/webapp/WEB-INF	line 31
JSF Faces Config Problem

validator-class references to "org.jboss.as.quickstart.hibernate3.util.ValidateName" that does not extend javax.faces.validator.Validator
faces-config.xml	/jboss-hibernate3/src/main/webapp/WEB-INF	line 39
JSF Faces Config Problem

Comment 1 sgilda 2015-01-05 17:14:02 UTC
There is no schema for the jboss-web.xml file, XML Problem 'No grammar constraints' is dependent on Bug 1178925.

Comment 3 sgilda 2015-01-13 14:22:22 UTC
Found and removed the unneeded comment from the following files:

cdi-interceptors/src/main/java/org/jboss/as/quickstarts/cdi/util/Resources.java
cdi-stereotype/src/main/java/org/jboss/as/quickstarts/cdi/util/Resources.java
hibernate3/src/main/java/org/jboss/as/quickstart/hibernate3/util/Resources.java
hibernate4/src/main/java/org/jboss/as/quickstart/hibernate4/util/Resources.java
kitchensink-ear/ejb/src/main/java/org/jboss/as/quickstarts/kitchensink_ear/util/Resources.java
kitchensink/src/main/java/org/jboss/as/quickstarts/kitchensink/util/Resources.java

Fixed in this commit: 
https://github.com/jboss-developer/jboss-eap-quickstarts/commit/b9b9e5ea39754b772c74d8c69e53c6c0438c6c4a

Still need help with the validator class 'JSF Faces Config Problem',

Comment 4 sgilda 2015-01-15 20:46:13 UTC
The validator-class issues seem to be resolved. They no longer happen when I import the project. Moving to modified.

Comment 5 Nikoleta Hlavickova 2015-02-11 09:24:52 UTC
I can still see these warnings:

validator-class references to "org.jboss.as.quickstart.hibernate3.util.ValidateEmail" that does not extend javax.faces.validator.Validator	
faces-config.xml	/jboss-hibernate3/src/main/webapp/WEB-INF	line 35	
JSF Faces Config Problem

validator-class references to "org.jboss.as.quickstart.hibernate3.util.ValidateMemberId" that does not extend javax.faces.validator.Validator	
faces-config.xml	/jboss-hibernate3/src/main/webapp/WEB-INF	line 31	
JSF Faces Config Problem

validator-class references to "org.jboss.as.quickstart.hibernate3.util.ValidateName" that does not extend javax.faces.validator.Validator	
faces-config.xml	/jboss-hibernate3/src/main/webapp/WEB-INF	line 39	
JSF Faces Config Problem

Comment 6 sgilda 2015-02-16 16:41:23 UTC
I can not recreate this problem. When I import hibernate3, the only warning I see is the following, which is documented in the JBDS shared guide:

JPA Problem: No connection specified for project. No database-specific validation will be performed.	

Fred, do you know why she is seeing this warning and I am not?

Comment 7 sgilda 2015-02-27 15:44:46 UTC
I can not recreate this. Please try this with ER3.

Comment 8 Nikoleta Hlavickova 2015-03-04 11:16:08 UTC
I re-tried with ER3 and clean workspace and still see the warnings, plus one more:

Console configuration "jboss-hibernate3" does not exist. Hibernate specific validation and content assist will be limited.	
jboss-hibernate3		line 0	
JPA Problem

validator-class references to "org.jboss.as.quickstart.hibernate3.util.ValidateEmail" that does not extend javax.faces.validator.Validator	
faces-config.xml	/jboss-hibernate3/src/main/webapp/WEB-INF	line 35	
JSF Faces Config Problem

validator-class references to "org.jboss.as.quickstart.hibernate3.util.ValidateMemberId" that does not extend javax.faces.validator.Validator
faces-config.xml	/jboss-hibernate3/src/main/webapp/WEB-INF	line 31	
JSF Faces Config Problem

validator-class references to "org.jboss.as.quickstart.hibernate3.util.ValidateName" that does not extend javax.faces.validator.Validator	
faces-config.xml	/jboss-hibernate3/src/main/webapp/WEB-INF	line 39	
JSF Faces Config Problem

For the 3 JSF Faces Config problems there is a quick fix to configure problem severity for preference 'Invalid validator class', which can be ignored. Have you not already configured to disable validation or ignore the validation problems? 

Have you tried it with EAP 6.4.0 ER2 or ER3 quickstarts zip?

Comment 9 sgilda 2015-03-04 12:35:19 UTC
Now I can recreate the following JSF Faces Config Problems:

validator-class references to "org.jboss.as.quickstart.hibernate3.util.ValidateEmail" that does not extend javax.faces.validator.Validator	faces-config.xml

validator-class references to "org.jboss.as.quickstart.hibernate3.util.ValidateMemberId" that does not extend javax.faces.validator.Validator	faces-config.xml

validator-class references to "org.jboss.as.quickstart.hibernate3.util.ValidateName" that does not extend javax.faces.validator.Validator	faces-config.xml


But I do not see the JPA Problem: 

Console configuration "jboss-hibernate3" does not exist. Hibernate specific validation and content assist will be limited

@fbricon: Do you know what would cause the above issue?

Comment 10 Alexey Kazakov 2015-03-04 20:15:38 UTC
These JSF Faces Config Problems is a bug in Jboss Tools JSF Tools. Will be fixed as a part of https://issues.jboss.org/browse/JBIDE-19403

Comment 11 sgilda 2015-03-04 20:23:45 UTC
Thanks Alexey. I'm still trying to understand what is causing her JPA issue. I can't recreate that one.

Comment 12 sgilda 2015-03-06 14:45:53 UTC
I added the info about the validator class in this commit: https://github.com/jboss-developer/jboss-eap-quickstarts/commit/43350640920dc1dbb6e2d30c2fbf71bd5ea5e37a

However, I'm still not clear how to reproduce the JPA Problem: 

   Console configuration "jboss-hibernate3" does not exist. Hibernate specific validation and content assist will be limited

Comment 14 sgilda 2015-03-06 21:53:43 UTC
Nikoleta, one more question. When you get that new JPA Problem warning, does the quickstart still run okay?

Comment 16 sgilda 2015-03-09 11:31:30 UTC
Thanks Nikoleta.

Max, she is not able to reproduce this one any more. I will move this to modified for the next release.


Note You need to log in before you can comment on or make changes to this bug.