<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Outstanding ! Congratulations Lincoln ! <br>
<br>
On 11/08/2012 08:02 PM, Lincoln Baxter, III wrote:
<blockquote
cite="mid:CAEp_U4FC6DOcJ5JNqFGd7p1pDxnpTj-6hvsb+JCQ4DK9ZjnYuw@mail.gmail.com"
type="cite">So it turns out the only problem was that I was
missing a few paths in the RuntimeClasspathSpec, which I only
discovered when I started migrating it over to your suggestion of
using the SystemDepSpec instead.<br>
<br>
I was missing javax/inject (lol) and net/sf/cglib/proxy, which
would explain some of the very strange behavior... like injection
points not being created for classes, etc. Strange that weld did
not warn me... I will file an issue for that.<br>
<br>
If you want to see everything shiny and working, go ahead and pull
down the latest and run a normal `mvn clean install` :)<br>
<br>
Thanks for your help!<br>
~Lincoln<br>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">
On Fri, Nov 2, 2012 at 10:35 PM, Stuart Douglas <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:stuart.w.douglas@gmail.com" target="_blank">stuart.w.douglas@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Look like my last email was a bit premature.
The actual problem seems to be that the way surefire boots
is to create a jar, that is empty except for a
MANIFEST.MF, this manifest has a Class-Path entry to all
the classes on the class path.
<div>
<br>
</div>
<div>In order to do what you are currently doing you would
need to do something nice and hackey like:</div>
<div><br>
</div>
<div>RuntimeClasspathSpec.class.getClassLoader().getResources("")</div>
<div><br>
</div>
<div>however, I don't actually see the point of
RuntimeClassPathSpec, as you should be able to use
system dependencies instead, from what I can see
using DependencySpec.createSystemDependencySpec() will
do exactly what you are after without resorting to any
hacks. </div>
<div><br>
</div>
<div>I am actually on my way to Vienna at the moment, for
our AS team meeting in Brno. Just got off a 14 hour
flight, and now have a 4 hour layover followed by a 6
hour flight. The 10pm flight was definitely a mistake. </div>
<span class="HOEnZb"><font color="#888888">
<div><br>
</div>
<div>Stuart</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
<div><br>
</div>
<div><br>
</div>
</div>
</font></span></div>
<div class="HOEnZb">
<div class="h5">
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">
On Sat, Nov 3, 2012 at 2:32 AM, Lincoln Baxter, III
<span dir="ltr"><<a moz-do-not-send="true"
href="mailto:lincolnbaxter@gmail.com"
target="_blank">lincolnbaxter@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Well
hey, that's good news :) I hope you have a good
trip! Where are you headed?<br>
<br>
I'll take a look into these things, but I think
you are right. I've been trying to modify the
RuntimeClasspathSpec without success for a few
days. You suggested an init(ClassLoader) method.
How would I get a handle on the Surefire class
loader and not the system class loader? Perhaps I
could do this on the arquillian end where it
starts up forge. I'll try playing with that.<br>
<br>
This is all so frustrating to debug because I have
to start maven over, and over, and over...<br>
<br>
You continue to be hugely helpful :) A great
mentor for the JVM!<br>
<br>
Thanks again,<br>
Lincoln
<div>
<div><br>
<div class="gmail_extra">
<br>
<br>
<div class="gmail_quote">On Fri, Nov 2, 2012
at 5:41 AM, Stuart Douglas <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:stuart.w.douglas@gmail.com" target="_blank">stuart.w.douglas@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px
#ccc solid;padding-left:1ex">
Part of the problem
is org.jboss.forge.container.modules.providers.RuntimeClasspathSpec,
it does not seem to be picking up all
the URLs, because it is looking at the
system class loader and not the surefire
class loader. You are going to have to
modify it to be aware of class loader
hieracies. You also need to make sure
that this class is initialized with the
surefire class loader, so you probably
need some kind of static
init(ClassLoader) method.
<div>
<br>
</div>
<div>Hope this helps, I have a plane to
board.</div>
<span><font color="#888888">
<div><br>
</div>
<div>Stuart</div>
</font></span>
<div>
<div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Fri,
Nov 2, 2012 at 8:10 PM, Stuart
Douglas <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:stuart.w.douglas@gmail.com"
target="_blank">stuart.w.douglas@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="margin:0 0 0
.8ex;border-left:1px #ccc
solid;padding-left:1ex">For
some reason arquillan cannot
see javax.inject.Inject, and
this is what is causing your
problems.
<div><br>
</div>
<div>
in org.jboss.arquillian.testenricher.cdi.CDIInjectionEnricher#enrich
the check for isClassPresent
to see if @Inject
is available on the class
path is failing. This is
most likely due to a problem
with the module definition.</div>
<div><br>
</div>
<div>I am not sure if I will
have time to work out a fix
before my plane leaves. </div>
<span><font color="#888888">
<div><br>
</div>
<div>Stuart</div>
</font></span>
<div>
<div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On
Fri, Nov 2, 2012 at
12:20 PM, Lincoln
Baxter, III <span
dir="ltr"><<a
moz-do-not-send="true"
href="mailto:lincolnbaxter@gmail.com" target="_blank">lincolnbaxter@gmail.com</a>></span>
wrote:<br>
<blockquote
class="gmail_quote"
style="margin:0 0 0
.8ex;border-left:1px
#ccc
solid;padding-left:1ex">Re-copying
lost cc's. Sorry
about that.
<div>
<div><br>
<div
class="gmail_extra"><br>
<br>
<div
class="gmail_quote">
On Thu, Nov 1,
2012 at 9:20
PM, Lincoln
Baxter, III <span
dir="ltr"><<a
moz-do-not-send="true" href="mailto:lincolnbaxter@gmail.com"
target="_blank">lincolnbaxter@gmail.com</a>></span>
wrote:<br>
<blockquote
class="gmail_quote"
style="margin:0
0 0
.8ex;border-left:1px
#ccc
solid;padding-left:1ex">Ah
thanks.
Correct you
are, that
would be a
problem :) Can
you work
around this
for now by
removing the
FAR plugin
from the
reactor build?
I'll check in
the change in
a moment.
<div>
<div><br>
<div
class="gmail_extra"><br>
<br>
<div
class="gmail_quote">
On Thu, Nov 1,
2012 at 9:18
PM, Stuart
Douglas <span
dir="ltr"><<a
moz-do-not-send="true" href="mailto:stuart.w.douglas@gmail.com"
target="_blank">stuart.w.douglas@gmail.com</a>></span>
wrote:<br>
<blockquote
class="gmail_quote"
style="margin:0
0 0
.8ex;border-left:1px
#ccc
solid;padding-left:1ex">
Basically
far-maven-plugin
has a dep on
the parent,
however the
parent has a
dep on
far-maven-plugin.<br>
<br>
It will work
fine if you
already have
the parent in
your local
repo.<br>
<br>
<blockquote
class="gmail_quote"
style="margin:0
0 0
.8ex;border-left:1px
#ccc
solid;padding-left:1ex">
[INFO]
Scanning for
projects...<br>
Downloading: <a
moz-do-not-send="true"
href="http://snapshots.repository.codehaus.org/org/jboss/forge/far-maven-plugin/maven-metadata.xml"
target="_blank">http://snapshots.repository.codehaus.org/org/jboss/forge/far-maven-plugin/maven-metadata.xml</a><br>
Downloading: <a
moz-do-not-send="true"
href="https://repository.jboss.org/nexus/content/repositories/snapshots/org/jboss/forge/far-maven-plugin/maven-metadata.xml"
target="_blank">https://repository.jboss.org/nexus/content/repositories/snapshots/org/jboss/forge/far-maven-plugin/maven-metadata.xml</a><br>
Downloading: <a
moz-do-not-send="true"
href="http://twdata-m2-repository.googlecode.com/svn/org/jboss/forge/far-maven-plugin/maven-metadata.xml"
target="_blank">http://twdata-m2-repository.googlecode.com/svn/org/jboss/forge/far-maven-plugin/maven-metadata.xml</a><br>
Downloading: <a
moz-do-not-send="true"
href="https://repository.jboss.org/nexus/content/groups/public-jboss/org/jboss/forge/far-maven-plugin/maven-metadata.xml"
target="_blank">https://repository.jboss.org/nexus/content/groups/public-jboss/org/jboss/forge/far-maven-plugin/maven-metadata.xml</a><br>
Downloading: <a
moz-do-not-send="true"
href="http://repo1.maven.org/maven2/org/jboss/forge/far-maven-plugin/maven-metadata.xml"
target="_blank">http://repo1.maven.org/maven2/org/jboss/forge/far-maven-plugin/maven-metadata.xml</a><br>
Downloading: <a
moz-do-not-send="true"
href="http://snapshots.repository.codehaus.org/org/jboss/forge/forge-parent/2.0.0-SNAPSHOT/maven-metadata.xml"
target="_blank">http://snapshots.repository.codehaus.org/org/jboss/forge/forge-parent/2.0.0-SNAPSHOT/maven-metadata.xml</a><br>
Downloading: <a
moz-do-not-send="true"
href="http://twdata-m2-repository.googlecode.com/svn/org/jboss/forge/forge-parent/2.0.0-SNAPSHOT/maven-metadata.xml"
target="_blank">http://twdata-m2-repository.googlecode.com/svn/org/jboss/forge/forge-parent/2.0.0-SNAPSHOT/maven-metadata.xml</a><br>
Downloading: <a
moz-do-not-send="true"
href="https://repository.jboss.org/nexus/content/groups/public-jboss/org/jboss/forge/forge-parent/2.0.0-SNAPSHOT/maven-metadata.xml"
target="_blank">https://repository.jboss.org/nexus/content/groups/public-jboss/org/jboss/forge/forge-parent/2.0.0-SNAPSHOT/maven-metadata.xml</a><br>
Downloading: <a
moz-do-not-send="true"
href="https://repository.jboss.org/nexus/content/repositories/snapshots/org/jboss/forge/forge-parent/2.0.0-SNAPSHOT/maven-metadata.xml"
target="_blank">https://repository.jboss.org/nexus/content/repositories/snapshots/org/jboss/forge/forge-parent/2.0.0-SNAPSHOT/maven-metadata.xml</a><br>
Downloading: <a
moz-do-not-send="true"
href="http://snapshots.repository.codehaus.org/org/jboss/forge/forge-parent/2.0.0-SNAPSHOT/forge-parent-2.0.0-SNAPSHOT.pom"
target="_blank">http://snapshots.repository.codehaus.org/org/jboss/forge/forge-parent/2.0.0-SNAPSHOT/forge-parent-2.0.0-SNAPSHOT.pom</a><br>
Downloading: <a
moz-do-not-send="true"
href="http://twdata-m2-repository.googlecode.com/svn/org/jboss/forge/forge-parent/2.0.0-SNAPSHOT/forge-parent-2.0.0-SNAPSHOT.pom"
target="_blank">http://twdata-m2-repository.googlecode.com/svn/org/jboss/forge/forge-parent/2.0.0-SNAPSHOT/forge-parent-2.0.0-SNAPSHOT.pom</a><br>
Downloading: <a
moz-do-not-send="true"
href="https://repository.jboss.org/nexus/content/groups/public-jboss/org/jboss/forge/forge-parent/2.0.0-SNAPSHOT/forge-parent-2.0.0-SNAPSHOT.pom"
target="_blank">https://repository.jboss.org/nexus/content/groups/public-jboss/org/jboss/forge/forge-parent/2.0.0-SNAPSHOT/forge-parent-2.0.0-SNAPSHOT.pom</a><br>
Downloading: <a
moz-do-not-send="true"
href="https://repository.jboss.org/nexus/content/repositories/snapshots/org/jboss/forge/forge-parent/2.0.0-SNAPSHOT/forge-parent-2.0.0-SNAPSHOT.pom"
target="_blank">https://repository.jboss.org/nexus/content/repositories/snapshots/org/jboss/forge/forge-parent/2.0.0-SNAPSHOT/forge-parent-2.0.0-SNAPSHOT.pom</a><br>
[ERROR] The
build could
not read 2
projects ->
[Help 1]<br>
[ERROR]<br>
[ERROR] The
project
org.jboss.forge:forge-example-plugin:2.0.0-SNAPSHOT
(/Users/stuartdouglas/workspace/forge/forge-example-plugin/pom.xml) has
2 errors<br>
[ERROR]
Unresolveable
build
extension:
Error
resolving
version for
plugin
'org.jboss.forge:far-maven-plugin'
from the
repositories
[local
(/Users/stuartdouglas/.m2/repository),
codehaus-plugins-snapshots
(<a
moz-do-not-send="true"
href="http://snapshots.repository.codehaus.org/" target="_blank">http://snapshots.repository.codehaus.org/</a>),
twdata-m2-repository
(<a
moz-do-not-send="true"
href="http://twdata-m2-repository.googlecode.com/svn/" target="_blank">http://twdata-m2-repository.googlecode.com/svn/</a>),
jboss-public-repository-group
(<a
moz-do-not-send="true"
href="https://repository.jboss.org/nexus/content/groups/public-jboss/"
target="_blank">https://repository.jboss.org/nexus/content/groups/public-jboss/</a>),
jboss-snapshots-repository-group (<a moz-do-not-send="true"
href="https://repository.jboss.org/nexus/content/repositories/snapshots/"
target="_blank">https://repository.jboss.org/nexus/content/repositories/snapshots/</a>),
central (<a
moz-do-not-send="true"
href="http://repo1.maven.org/maven2%29" target="_blank">http://repo1.maven.org/maven2)</a>]:
Plugin not
found in any
plugin
repository
-> [Help 2]<br>
[ERROR]
Unknown
packaging: far
@ line 12,
column 15<br>
[ERROR]<br>
[ERROR] The
project
org.jboss.forge:forge-otherexample-plugin:2.0.0-SNAPSHOT
(/Users/stuartdouglas/workspace/forge/forge-otherexample-plugin/pom.xml)
has 2 errors<br>
[ERROR]
Unresolveable
build
extension:
Plugin
org.jboss.forge:far-maven-plugin:2.0.0-SNAPSHOT
or one of its
dependencies
could not be
resolved:
Failed to
collect
dependencies
for
org.jboss.forge:far-maven-plugin:jar:2.0.0-SNAPSHOT
(): Failed to
read artifact
descriptor for
org.jboss.forge:far-maven-plugin:jar:2.0.0-SNAPSHOT: Failure to find
org.jboss.forge:forge-parent:pom:2.0.0-SNAPSHOT
in <a
moz-do-not-send="true"
href="http://snapshots.repository.codehaus.org/" target="_blank">http://snapshots.repository.codehaus.org/</a>
was cached in
the local
repository,
resolution
will not be
reattempted
until the
update
interval of
codehaus-plugins-snapshots
has elapsed or
updates are
forced ->
[Help 3]<br>
[ERROR]
Unknown
packaging: far
@ line 11,
column 15<br>
[ERROR]<br>
[ERROR] To see
the full stack
trace of the
errors, re-run
Maven with the
-e switch.<br>
[ERROR] Re-run
Maven using
the -X switch
to enable full
debug logging.<br>
[ERROR]<br>
[ERROR] For
more
information
about the
errors and
possible
solutions,
please read
the following
articles:<br>
[ERROR] [Help
1] <a
moz-do-not-send="true"
href="http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException"
target="_blank">http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException</a><br>
[ERROR] [Help
2] <a
moz-do-not-send="true"
href="http://cwiki.apache.org/confluence/display/MAVEN/PluginVersionResolutionException"
target="_blank">http://cwiki.apache.org/confluence/display/MAVEN/PluginVersionResolutionException</a><br>
[ERROR] [Help
3] <a
moz-do-not-send="true"
href="http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException"
target="_blank">http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException</a><br>
</blockquote>
<br>
<br>
<br>
Lincoln
Baxter, III
wrote:<br>
<blockquote
class="gmail_quote"
style="margin:0
0 0
.8ex;border-left:1px
#ccc
solid;padding-left:1ex">
<div>
Could you copy
the error in
here? I
believe you
just need to
build the<br>
far-maven-plugin/
project first.<br>
<br>
<br>
On Thu, Nov 1,
2012 at 9:01
PM, Stuart
Douglas<br>
</div>
<div>
<<a
moz-do-not-send="true"
href="mailto:stuart.w.douglas@gmail.com" target="_blank">stuart.w.douglas@gmail.com</a>
<mailto:<a
moz-do-not-send="true" href="mailto:stuart.w.douglas@gmail.com"
target="_blank">stuart.w.douglas@gmail.com</a>>>
wrote:<br>
<br>
It looks
like you have
circular
dependencies
in that branch
that<br>
means it
is not
buildable with
a clean maven
repository
(remove all<br>
org.jboss.forge
artifacts from
your local
repo and you
should see<br>
what I
mean).<br>
<br>
<br>
<br>
Stuart<br>
<br>
Lincoln
Baxter, III
wrote:<br>
<br>
FYI -
This is how it
should look
when you
reproduce the
problem.<br>
What's<br>
happening in
this case is
that Forge is
starting up
just fine in
the<br>
test,
but for some
reason the
ContainerServiceExtension
is not<br>
intercepting
the service
classes
deployed in
one of the
addons.<br>
<br>
This
makes me think
that the
system
classloader is
being scanned<br>
properly, but
that there is
a subtle
problem with
the module<br>
structure<br>
defined by
AddonModuleLoader
that is
preventing
these classes<br>
from
being<br>
scanned.
Either that,
or the
ModularURLScanner
class requires<br>
modifications
to work within
the Surefire
environment.<br>
<br>
</div>
------------------------------__-------------------------
<div><br>
T E
S T S<br>
</div>
------------------------------__-------------------------<br>
Running
org.example.__AddonDependencyTest<br>
Starting
addon(s)
[dependency:main]<br>
Nov 1,
2012 7:12:23
PM
org.jboss.weld.bootstrap.__WeldBootstrap
<div><br>
<clinit><br>
INFO:
WELD-000900
2.0.0 (Alpha3)<br>
</div>
Nov 1,
2012 7:12:24
PM
org.jboss.weld.bootstrap.__WeldBootstrap
<div><br>
startContainer<br>
INFO:
WELD-000101
Transactional
services not
available.
Injection of<br>
@Inject
UserTransaction
not available.
Transactional
observers<br>
will
be<br>
invoked
synchronously.<br>
Nov 1,
2012 7:12:24
PM<br>
</div>
org.jboss.weld.interceptor.__util.InterceptionTypeRegistry
<clinit>
<div><br>
WARNING: Class
'javax.ejb.PostActivate'
not found,
interception<br>
based
on<br>
it is
not enabled<br>
Nov 1,
2012 7:12:24
PM<br>
</div>
org.jboss.weld.interceptor.__util.InterceptionTypeRegistry
<clinit>
<div><br>
WARNING: Class
'javax.ejb.PrePassivate'
not found,
interception<br>
based
on<br>
it is
not enabled<br>
Starting
container
[dependency:main]<br>
Services
loaded from
addon module
[dependency:main]
- [class<br>
</div>
org.example.published.__PublishedService]<br>
Starting
addon(s)
[919307ca-cd39-46a6-a641-__ff50055f6db2:main]<br>
Nov 1,
2012 7:12:27
PM
org.jboss.weld.bootstrap.__WeldBootstrap
<div><br>
startContainer<br>
INFO:
WELD-000101
Transactional
services not
available.
Injection of<br>
@Inject
UserTransaction
not available.
Transactional
observers<br>
will
be<br>
invoked
synchronously.<br>
</div>
Starting
container
[919307ca-cd39-46a6-a641-__ff50055f6db2:main]<br>
2012-11-01
19:12:27.558:INFO:oejs.Server:__jetty-8.1.5.v20120716<br>
2012-11-01
19:12:27.622:INFO:oejs.__AbstractConnector:Started<br>
<a class="moz-txt-link-abbreviated" href="mailto:SelectChannelConnector@127.0.__0.1:4141">SelectChannelConnector@127.0.__0.1:4141</a><br>
<<a
moz-do-not-send="true"
href="http://SelectChannelConnector@127.0.0.1:4141"
target="_blank">http://SelectChannelConnector@127.0.0.1:4141</a>><br>
<<a class="moz-txt-link-freetext" href="http://__SelectChannelConnector@127.0.__0.1:4141">http://__SelectChannelConnector@127.0.__0.1:4141</a>
<div><br>
<<a
moz-do-not-send="true"
href="http://SelectChannelConnector@127.0.0.1:4141"
target="_blank">http://SelectChannelConnector@127.0.0.1:4141</a>>><br>
<br>
Remote
test server
started.<br>
</div>
Exception in
thread
"919307ca-cd39-46a6-a641-__ff50055f6db2:main"<br>
org.jboss.forge.container.__exception.ContainerException:
[Thread -<br>
919307ca-cd39-46a6-a641-__ff50055f6db2:main]
Error invoking
Task
<div><br>
within<br>
ClassLoader
[ModuleClassLoader
for Module<br>
</div>
"919307ca-cd39-46a6-a641-__ff50055f6db2:main"
from<br>
AddonModuleLoader]<br>
at<br>
org.jboss.forge.container.__util.ClassLoaders.executeIn(__ClassLoaders.java:33)<br>
at<br>
org.jboss.forge.container.__AddonRunnable.run(__AddonRunnable.java:41)<br>
at
java.lang.Thread.run(Thread.__java:680)<br>
Caused
by:
java.lang.NullPointerException<br>
at<br>
org.example.consuming.__ConsumingService.getMessage(__ConsumingService.java:25)<br>
at<br>
org.example.consuming.__ConsumingService.postStartup(__ConsumingService.java:20)<br>
at
sun.reflect.__NativeMethodAccessorImpl.__invoke0(Native<br>
Method)<br>
at<br>
sun.reflect.__NativeMethodAccessorImpl.__invoke(__NativeMethodAccessorImpl.java:__39)<br>
at<br>
sun.reflect.__DelegatingMethodAccessorImpl.__invoke(__DelegatingMethodAccessorImpl.__java:25)<br>
at
java.lang.reflect.Method.__invoke(Method.java:597)<br>
at<br>
org.jboss.weld.util.__reflection.SecureReflections$__13.work(SecureReflections.__java:267)<br>
at<br>
org.jboss.weld.util.__reflection.__SecureReflectionAccess.run(__SecureReflectionAccess.java:__52)<br>
at<br>
org.jboss.weld.util.__reflection.__SecureReflectionAccess.__runAsInvocation(__SecureReflectionAccess.java:__137)<br>
at<br>
org.jboss.weld.util.__reflection.SecureReflections.__invoke(SecureReflections.java:__263)<br>
at<br>
org.jboss.weld.annotated.__runtime.__InvokableAnnotatedMethod.__invokeOnInstance(__InvokableAnnotatedMethod.java:__82)<br>
at<br>
org.jboss.weld.injection.__MethodInjectionPoint.__invokeOnInstanceWithSpecialVal__ue(MethodInjectionPoint.java:__97)<br>
at<br>
org.jboss.weld.event.__ObserverMethodImpl.sendEvent(__ObserverMethodImpl.java:259)<br>
at<br>
org.jboss.weld.event.__ObserverMethodImpl.sendEvent(__ObserverMethodImpl.java:246)<br>
at<br>
org.jboss.weld.event.__ObserverMethodImpl.notify(__ObserverMethodImpl.java:221)<br>
at<br>
org.jboss.weld.event.__ObserverMethodImpl.notify(__ObserverMethodImpl.java:225)<br>
at<br>
org.jboss.weld.event.__ObserverNotifier.__notifyObserver(__ObserverNotifier.java:129)<br>
at<br>
org.jboss.weld.event.__ObserverNotifier.__notifyObservers(__ObserverNotifier.java:97)<br>
at<br>
org.jboss.weld.event.__ObserverNotifier.fireEvent(__ObserverNotifier.java:77)<br>
at<br>
org.jboss.weld.event.__ObserverNotifier.fireEvent(__ObserverNotifier.java:70)<br>
at<br>
org.jboss.weld.manager.__BeanManagerImpl.fireEvent(__BeanManagerImpl.java:625)<br>
at<br>
org.jboss.forge.container.__ContainerControlImpl.start(__ContainerControlImpl.java:54)<br>
at<br>
org.jboss.forge.container.__ContainerControlImpl.__bootstrap(__ContainerControlImpl.java:37)<br>
at
sun.reflect.__NativeMethodAccessorImpl.__invoke0(Native<br>
Method)<br>
at<br>
sun.reflect.__NativeMethodAccessorImpl.__invoke(__NativeMethodAccessorImpl.java:__39)<br>
at<br>
sun.reflect.__DelegatingMethodAccessorImpl.__invoke(__DelegatingMethodAccessorImpl.__java:25)<br>
at
java.lang.reflect.Method.__invoke(Method.java:597)<br>
at<br>
org.jboss.weld.util.__reflection.SecureReflections$__13.work(SecureReflections.__java:267)<br>
at<br>
org.jboss.weld.util.__reflection.__SecureReflectionAccess.run(__SecureReflectionAccess.java:__52)<br>
at<br>
org.jboss.weld.util.__reflection.__SecureReflectionAccess.__runAsInvocation(__SecureReflectionAccess.java:__137)<br>
at<br>
org.jboss.weld.util.__reflection.SecureReflections.__invoke(SecureReflections.java:__263)<br>
at<br>
org.jboss.weld.annotated.__runtime.__InvokableAnnotatedMethod.__invokeOnInstance(__InvokableAnnotatedMethod.java:__82)<br>
at<br>
org.jboss.weld.injection.__MethodInjectionPoint.__invokeOnInstanceWithSpecialVal__ue(MethodInjectionPoint.java:__97)<br>
at<br>
org.jboss.weld.event.__ObserverMethodImpl.sendEvent(__ObserverMethodImpl.java:259)<br>
at<br>
org.jboss.weld.event.__ObserverMethodImpl.sendEvent(__ObserverMethodImpl.java:246)<br>
at<br>
org.jboss.weld.event.__ObserverMethodImpl.notify(__ObserverMethodImpl.java:221)<br>
at<br>
org.jboss.weld.event.__ObserverMethodImpl.notify(__ObserverMethodImpl.java:225)<br>
at<br>
org.jboss.weld.event.__ObserverNotifier.__notifyObserver(__ObserverNotifier.java:129)<br>
at<br>
org.jboss.weld.event.__ObserverNotifier.__notifyObservers(__ObserverNotifier.java:97)<br>
at<br>
org.jboss.weld.event.__ObserverNotifier.fireEvent(__ObserverNotifier.java:77)<br>
at<br>
org.jboss.weld.event.__ObserverNotifier.fireEvent(__ObserverNotifier.java:70)<br>
at<br>
org.jboss.weld.manager.__BeanManagerImpl.fireEvent(__BeanManagerImpl.java:625)<br>
at<br>
org.jboss.forge.container.__AddonRunnable$1.call(__AddonRunnable.java:57)<br>
at<br>
org.jboss.forge.container.__util.ClassLoaders.executeIn(__ClassLoaders.java:29)<br>
... 2 more<br>
Stopping
addon(s)
[919307ca-cd39-46a6-a641-__ff50055f6db2:main]
<div><br>
Tests
run: 1,
Failures: 0,
Errors: 1,
Skipped: 0,
Time elapsed:<br>
8.032<br>
sec
<<<
FAILURE!<br>
<br>
<br>
<br>
On
Thu, Nov 1,
2012 at 3:51
PM, Lincoln
Baxter, III<br>
<<a
moz-do-not-send="true" href="mailto:lincolnbaxter@gmail.com"
target="_blank">lincolnbaxter@gmail.com</a>
<mailto:<a
moz-do-not-send="true" href="mailto:lincolnbaxter@gmail.com"
target="_blank">lincolnbaxter@gmail.com</a>><br>
</div>
<mailto:<a
moz-do-not-send="true" href="mailto:lincolnbaxter@gmail."
target="_blank">lincolnbaxter@gmail.</a>__com
<div><br>
<mailto:<a
moz-do-not-send="true" href="mailto:lincolnbaxter@gmail.com"
target="_blank">lincolnbaxter@gmail.com</a>>>>
wrote:<br>
<br>
Hey Everyone!<br>
<br>
I've been
working on
Forge 2.0, and
it looks like
I've hit<br>
a very<br>
strange
problem that I
am having
difficulty
solving. It<br>
involves<br>
Surefire
Maven Plugin
and the Forge
Arquillian
tests.<br>
<br>
The tests
work fine in
eclipse,
because
Eclipse
launches<br>
using
a<br>
real java
classpath,
however...<br>
<br>
Because of
how Surefire
handles
classloading<br>
</div>
<<a
moz-do-not-send="true"
href="http://maven.apache.org/__plugins/maven-surefire-plugin/__examples/class-loading.html"
target="_blank">http://maven.apache.org/__plugins/maven-surefire-plugin/__examples/class-loading.html</a>
<div>
<div><br>
<<a
moz-do-not-send="true"
href="http://maven.apache.org/plugins/maven-surefire-plugin/examples/class-loading.html"
target="_blank">http://maven.apache.org/plugins/maven-surefire-plugin/examples/class-loading.html</a>>>,<br>
<br>
Forge is not
properly
finding
classes,
booting weld,
and<br>
loading<br>
addons. I've
gotten close
to a solution
a few times,
but<br>
I've
not<br>
been able to
find the exact
concoction
that gets
things<br>
working.<br>
<br>
Anyone have
experience
with this feel
like taking a
look?<br>
<br>
Just check
out the Forge
2.0 branch
from<br>
<a
moz-do-not-send="true"
href="https://github.com/forge/core" target="_blank">https://github.com/forge/core</a>,
first *cd*
into the
maven-far-plugin<br>
<br>
directory,
install it
with `mvn
clean
install`, then
return<br>
to the<br>
main
directory and
run `mvn clean
install`, you
should then<br>
see
the<br>
failures I am
describing.<br>
<br>
Thanks!<br>
<br>
--<br>
Lincoln
Baxter, III<br>
<a
moz-do-not-send="true"
href="http://ocpsoft.org" target="_blank">http://ocpsoft.org</a><br>
"Simpler is
better."<br>
<br>
<br>
<br>
<br>
--<br>
Lincoln
Baxter, III<br>
<a
moz-do-not-send="true"
href="http://ocpsoft.org" target="_blank">http://ocpsoft.org</a><br>
"Simpler is
better."<br>
<br>
<br>
<br>
<br>
--<br>
Lincoln
Baxter, III<br>
<a
moz-do-not-send="true"
href="http://ocpsoft.org" target="_blank">http://ocpsoft.org</a><br>
"Simpler is
better."<br>
</div>
</div>
</blockquote>
</blockquote>
</div>
<br>
<br
clear="all">
<br>
-- <br>
Lincoln
Baxter, III<br>
<a
moz-do-not-send="true"
href="http://ocpsoft.org" target="_blank">http://ocpsoft.org</a><br>
"Simpler is
better."<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<br
clear="all">
<br>
-- <br>
Lincoln
Baxter, III<br>
<a
moz-do-not-send="true"
href="http://ocpsoft.org" target="_blank">http://ocpsoft.org</a><br>
"Simpler is
better."<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
Lincoln Baxter, III<br>
<a moz-do-not-send="true"
href="http://ocpsoft.org" target="_blank">http://ocpsoft.org</a><br>
"Simpler is better."<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
Lincoln Baxter, III<br>
<a moz-do-not-send="true" href="http://ocpsoft.org"
target="_blank">http://ocpsoft.org</a><br>
"Simpler is better."<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
forge-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/forge-dev">https://lists.jboss.org/mailman/listinfo/forge-dev</a>
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<b>George Gastaldi</b> | <i>Senior Software Engineer</i> <br>
JBoss Forge Team<br>
Red Hat<br>
</div>
</body>
</html>