Re: [weld-dev] Is my class a proxy?
by Gunnar Morling
Hi Bill,
You can find the code we're using in HV at
https://github.com/hibernate/hibernate-validator/blob/master/engine/src/m...
.
There is no binary dependency, but as Emmanuel said it's not portable.
--Gunnar
> Can you point me to this code Emmanuel? Right now, I'm just doing:
> if (class.getName().contains("WeldClientProxy")) {}
>Not sure how reliable that is. I want something that is not binary
> dependent.
> But, IMO, I just don't see any reason why proxy generator couldn't be
fixed.
On 10/29/2013 9:53 AM, Emmanuel Bernard wrote:
> > We had the same problem in Hibernate Validator and had to make special
>> code to detect Weld proxies. A portable solution would be nice.
>>
11 years, 1 month
Is my class a proxy?
by Bill Burke
Hey all,
CDI proxies lose generic type information which screws up Resteasy:
https://issues.jboss.org/browse/RESTEASY-985
Basically, in the bug, an injected bean's method is losing parameter
type information. Can you either:
a) Fix weld proxies so that generic type information is not lost (in
this case, it is method parameter type information). *Preferred*
b) Have a supported way going forward to determine if the class is a CDI
proxy. A marker interface or an annotation added to the proxy class
would be best, then I wouldn't need to have a binary dependency on Weld
and could do this via reflect calls.
--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com
11 years, 1 month
Build failed in Jenkins: Weld-2.1-int-servlet #19
by ci-builds@redhat.com
See <http://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/Weld-2.1-int-servlet/19/>
------------------------------------------
Started by user jharting(a)REDHAT.COM
[EnvInject] - Loading node environment variables.
Building remotely on soavmg11-rhel6-x86 in workspace <http://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/Weld-2.1-int-servlet/ws/>
Checkout:Weld-2.1-int-servlet / <http://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/Weld-2.1-int-servlet/ws/> - hudson.remoting.Channel@6a8a3bc3:soavmg11-rhel6-x86
Using strategy: Default
Last Built Revision: Revision 2628388cbb5e3d10cf7f3bff7672b89c17f07d84 (origin/2.1)
Cloning the remote Git repository
Cloning repository git://github.com/weld/core.git
git --version
git version 1.7.12.1
Fetching upstream changes from git://github.com/weld/core.git
Commencing build of Revision 2628388cbb5e3d10cf7f3bff7672b89c17f07d84 (origin/2.1)
Checking out Revision 2628388cbb5e3d10cf7f3bff7672b89c17f07d84 (origin/2.1)
[Weld-2.1-int-servlet] $ /qa/tools/opt/apache-maven-3.0.3/bin/mvn -DskipTests=true -Dmaven.repo.local=/qa/home/hudson/private_maven_repos/weld -U clean install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Weld Parent
[INFO] Weld Implementation (Core)
[INFO] Weld Core - JSF
[INFO] Weld Implementation
[INFO] Weld Porting Package for the CDI TCK 1.1
[INFO] Weld Unit Tests
[INFO] Weld Integration Tests (JBoss AS)
[INFO] AtInject TCK runner for Weld
[INFO] CDI TCK runner (1.1, 1.2) for Weld (WildFly)
[INFO] Weld SE (Core)
[INFO] Weld SE (Uber Jar)
[INFO] Weld Servlet Parent
[INFO] Weld Servlet Core
[INFO] Weld Servlet (Uber Jar)
[INFO] Weld Servlet Integration Tests (Base)
[INFO] Weld Servlet Integration Tests (Tomcat)
[INFO] Weld Servlet Integration Tests (Jetty)
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Weld Parent 2.1.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-eclipse-plug...
Downloading: https://repository.jboss.org/nexus/content/groups/developer/org/apache/ma...
Downloading: http://repository.jboss.org/maven2/org/apache/maven/plugins/maven-eclipse...
Downloading: http://snapshots.jboss.org/maven2/org/apache/maven/plugins/maven-eclipse-...
709 B
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-eclipse-plug... (709 B at 2.3 KB/sec)
758 B
Downloaded: https://repository.jboss.org/nexus/content/groups/developer/org/apache/ma... (758 B at 0.4 KB/sec)
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ weld-core-parent ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.0-beta-1:enforce (enforce) @ weld-core-parent ---
[WARNING] This rule is not compatible with the current version of Maven. The rule is not able to perform any checks.
[INFO]
[INFO] --- build-helper-maven-plugin:1.5:maven-version (default) @ weld-core-parent ---
[INFO]
[INFO] --- build-helper-maven-plugin:1.5:parse-version (default) @ weld-core-parent ---
[INFO]
[INFO] --- buildnumber-maven-plugin:1.2:create (set-build-properties) @ weld-core-parent ---
[INFO] Checking for local modifications: skipped.
[INFO] Updating project files from SCM: skipped.
[INFO] Executing: /bin/sh -c cd <http://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/Weld-2.1-int-servlet/ws/> && git rev-parse --verify HEAD
[INFO] Working directory: <http://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/Weld-2.1-int-servlet/ws/>
[INFO] Storing buildNumber: 2628388cbb5e3d10cf7f3bff7672b89c17f07d84 at timestamp: October 25, 2013 2:21:47 AM EDT
[INFO] Executing: /bin/sh -c cd <http://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/Weld-2.1-int-servlet/ws/> && git rev-parse --verify HEAD
[INFO] Working directory: <http://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/Weld-2.1-int-servlet/ws/>
[INFO] Storing buildScmBranch: UNKNOWN
[INFO]
[INFO] --- maven-remote-resources-plugin:1.1:process (attach-license) @ weld-core-parent ---
[INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO]
[INFO] --- maven-checkstyle-plugin:2.10:checkstyle (check-style) @ weld-core-parent ---
[INFO]
[INFO] >>> maven-source-plugin:2.1.2:jar (attach-sources) @ weld-core-parent >>>
[INFO]
[INFO] --- maven-enforcer-plugin:1.0-beta-1:enforce (enforce) @ weld-core-parent ---
[WARNING] This rule is not compatible with the current version of Maven. The rule is not able to perform any checks.
[INFO]
[INFO] --- build-helper-maven-plugin:1.5:maven-version (default) @ weld-core-parent ---
[INFO]
[INFO] --- build-helper-maven-plugin:1.5:parse-version (default) @ weld-core-parent ---
[INFO]
[INFO] --- buildnumber-maven-plugin:1.2:create (set-build-properties) @ weld-core-parent ---
[INFO]
[INFO] <<< maven-source-plugin:2.1.2:jar (attach-sources) @ weld-core-parent <<<
[INFO]
[INFO] --- maven-source-plugin:2.1.2:jar (attach-sources) @ weld-core-parent ---
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ weld-core-parent ---
[INFO] Installing <http://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/Weld-2.1-int-servlet/...> to /qa/home/hudson/private_maven_repos/weld/org/jboss/weld/weld-core-parent/2.1.1-SNAPSHOT/weld-core-parent-2.1.1-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Weld Implementation (Core) 2.1.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://snapshots.jboss.org/maven2/org/apache/maven/plugins/maven-eclipse-...
Downloading: https://repository.jboss.org/nexus/content/groups/developer/org/apache/ma...
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-eclipse-plug...
Downloading: http://repository.jboss.org/maven2/org/apache/maven/plugins/maven-eclipse...
709 B
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-eclipse-plug... (709 B at 6.5 KB/sec)
758 B
Downloaded: https://repository.jboss.org/nexus/content/groups/developer/org/apache/ma... (758 B at 1.0 KB/sec)
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ weld-core-impl ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.0-beta-1:enforce (enforce) @ weld-core-impl ---
[WARNING] This rule is not compatible with the current version of Maven. The rule is not able to perform any checks.
[INFO]
[INFO] --- build-helper-maven-plugin:1.5:maven-version (default) @ weld-core-impl ---
[INFO]
[INFO] --- build-helper-maven-plugin:1.5:parse-version (default) @ weld-core-impl ---
[INFO]
[INFO] --- buildnumber-maven-plugin:1.2:create (set-build-properties) @ weld-core-impl ---
[INFO]
[INFO] --- maven-remote-resources-plugin:1.1:process (attach-license) @ weld-core-impl ---
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ weld-core-impl ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory <http://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/Weld-2.1-int-servlet/...>
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ weld-core-impl ---
[INFO] Compiling 668 source files to <http://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/Weld-2.1-int-servlet/...>
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] <http://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/Weld-2.1-int-servlet/...>:[77,28] type parameters of <C,I>C cannot be determined; no unique maximal instance exists for type variable C with upper bounds C,javax.enterprise.context.spi.Contextual<I>
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Weld Parent ....................................... SUCCESS [7.213s]
[INFO] Weld Implementation (Core) ........................ FAILURE [15.324s]
[INFO] Weld Core - JSF ................................... SKIPPED
[INFO] Weld Implementation ............................... SKIPPED
[INFO] Weld Porting Package for the CDI TCK 1.1 .......... SKIPPED
[INFO] Weld Unit Tests ................................... SKIPPED
[INFO] Weld Integration Tests (JBoss AS) ................. SKIPPED
[INFO] AtInject TCK runner for Weld ...................... SKIPPED
[INFO] CDI TCK runner (1.1, 1.2) for Weld (WildFly) ...... SKIPPED
[INFO] Weld SE (Core) .................................... SKIPPED
[INFO] Weld SE (Uber Jar) ................................ SKIPPED
[INFO] Weld Servlet Parent ............................... SKIPPED
[INFO] Weld Servlet Core ................................. SKIPPED
[INFO] Weld Servlet (Uber Jar) ........................... SKIPPED
[INFO] Weld Servlet Integration Tests (Base) ............. SKIPPED
[INFO] Weld Servlet Integration Tests (Tomcat) ........... SKIPPED
[INFO] Weld Servlet Integration Tests (Jetty) ............ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 23.781s
[INFO] Finished at: Fri Oct 25 02:22:06 EDT 2013
[INFO] Final Memory: 29M/283M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project weld-core-impl: Compilation failure
[ERROR] <http://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/Weld-2.1-int-servlet/...>:[77,28] type parameters of <C,I>C cannot be determined; no unique maximal instance exists for type variable C with upper bounds C,javax.enterprise.context.spi.Contextual<I>
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :weld-core-impl
Build step 'Invoke top-level Maven targets' marked build as failure
Recording test results
11 years, 1 month
I have questions
by David Hooker
Hi list-
I am trying to use Weld in a Java SE based platform that I am starting to
build. I'm very excited because it perfectly supports a programming model
that I had in mind for developers using my platform.
In order to fully utilize Weld, I know I'll have a number of questions as I
build this. Is this mail list the best place to ask? Or the Wiki? No one
seems to be on IRC....
I did post a question on the wiki (https://community.jboss.org/thread/233185
).
Thanks,
-David-
11 years, 2 months