[jbosstools-issues] [JBoss JIRA] (JBDS-2358) GWT Web example generates warnings

Jonathan Fuerth (JIRA) jira-events at lists.jboss.org
Thu Sep 12 10:36:05 EDT 2013


    [ https://issues.jboss.org/browse/JBDS-2358?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12803921#comment-12803921 ] 

Jonathan Fuerth commented on JBDS-2358:
---------------------------------------

{quote}
No connection specified for project. No database-specific validation will be performed.
jboss-gwt-webapp
{quote}
I'm not sure what to do about this one. However the database connection is set up for the other KitchenSink apps should work equally well for this one.

{quote}
Overriding managed version 1.0.0.GA for validation-api
pom.xml	/jboss-gwt-webapp line 240
{quote}
GWT's validation support requires a specific version of Hibernate Validator and the Validation API at compile time. That's why it's overridden in the pom for this project.

{quote}
No bean is eligible for injection to the injection point [JSR-299 §5.2.1]
KitchenSinkApp.java
/jboss-gwt-webapp/src/main/java/org/jboss/tools/gwt/kitchensink/client/local
line 41
{quote}
This is the injection point that warning refers to:
{code}
  /**
   * This is the client-side proxy to the Errai service implemented by
   * MemberServiceImpl. The proxy is generated at build time, and injected into
   * this field when the page loads. You can create additional Errai services by
   * following this same pattern; just be sure that the client-side class you
   * inject the Caller into is an injectable class (client-side injectable
   * classes are annotated with {@code @EntryPoint}, {@code @ApplicationScoped},
   * or {@code @Singleton}).
   */
  @Inject
  private Caller<MemberService> memberService;
{code}
As the doc comment says, Caller<T> is a special type in the Errai framework. It works like CDI's Event<T> class. I guess there's specific knowledge about Event<T> in JDBS. Perhaps it could be extended to also suppress this warning for Caller<T> in Errai projects.

{quote}
Unnecessary @SuppressWarnings("unused")
Resources.java
/jboss-gwt-webapp/src/main/java/org/jboss/tools/gwt/kitchensink/util
line 24
{quote}
I can't find this Resources class in my copy of the source.

{quote}
Missing src folder configured in Java Build Path Project Preferences
{quote}
I'm not sure about this one.
                
> GWT Web example generates warnings
> ----------------------------------
>
>                 Key: JBDS-2358
>                 URL: https://issues.jboss.org/browse/JBDS-2358
>             Project: Developer Studio (JBoss Developer Studio)
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: central
>    Affects Versions: 6.0.0.Alpha2
>         Environment: Version: 6.0.0.Alpha2
> Build id: Alpha2-v20121004-2330-B40
> Build date: 20121004-2330
>            Reporter: Len DiMaggio
>            Assignee: Denis Golovin
>              Labels: examplewarnings
>         Attachments: JavaBuildProjectPreferences.png
>
>
> The GWT project generates these warnings:
> No connection specified for project. No database-specific validation will be performed.
> 	jboss-gwt-webapp
> Overriding managed version 1.0.0.GA for validation-api
> 	pom.xml	/jboss-gwt-webapp
> 	line 240
> No bean is eligible for injection to the injection point [JSR-299 §5.2.1]
> 	KitchenSinkApp.java
> 	/jboss-gwt-webapp/src/main/java/org/jboss/tools/gwt/kitchensink/client/local
> 	line 41	
> Unnecessary @SuppressWarnings("unused")
> 	Resources.java
> 	/jboss-gwt-webapp/src/main/java/org/jboss/tools/gwt/kitchensink/util
> 	line 24	
> Missing src folder configured in Java Build Path Project Preferences
> !JavaBuildProjectPreferences.png!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the jbosstools-issues mailing list