org.jboss.jca.samples.helloworld.ConnectorTestCase - java.lang.NoClassDefFoundError: com/sun/tools/attach/VirtualMachine

46 views
Skip to first unread message

das gov

unread,
Feb 11, 2016, 3:51:27 AM2/11/16
to IronJacamar Users
Hi

When I try to run the test I get:

ant test
Buildfile: /Users/daslan/Documents/fnds2016/SocketServerUpgrade/ironjacamar-1.2.6.Final/doc/samples/helloworld/build.xml

init:

compile:
    [javac] /Users/daslan/Documents/fnds2016/SocketServerUpgrade/ironjacamar-1.2.6.Final/doc/samples/helloworld/build.xml:84: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds

rar:
      [jar] Building jar: /Users/daslan/Documents/fnds2016/SocketServerUpgrade/ironjacamar-1.2.6.Final/doc/samples/helloworld/build/helloworld.jar
      [jar] Building jar: /Users/daslan/Documents/fnds2016/SocketServerUpgrade/ironjacamar-1.2.6.Final/doc/samples/helloworld/target/helloworld.rar

prepare-test:
    [javac] /Users/daslan/Documents/fnds2016/SocketServerUpgrade/ironjacamar-1.2.6.Final/doc/samples/helloworld/build.xml:116: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 1 source file to /Users/daslan/Documents/fnds2016/SocketServerUpgrade/ironjacamar-1.2.6.Final/doc/samples/helloworld/build/test

test:
    [junit] Running org.jboss.jca.samples.helloworld.ConnectorTestCase
    [junit] Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/attach/VirtualMachine
    [junit] at org.jboss.arquillian.extension.byteman.impl.client.AgentInstaller.install(AgentInstaller.java:98)
    [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [junit] at java.lang.reflect.Method.invoke(Method.java:606)
    [junit] at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
    [junit] at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
    [junit] at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
    [junit] at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:60)
    [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [junit] at java.lang.reflect.Method.invoke(Method.java:606)
    [junit] at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
    [junit] at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
    [junit] at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)
    [junit] at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)
    [junit] at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.beforeSuite(EventTestR

Please assist

Thanks,
Daslan

Stefano Maestri

unread,
Feb 11, 2016, 4:59:41 AM2/11/16
to das gov, IronJacamar Users
​Hi Daslan,

it seems you haven't tools.jar in your classpath. Should be easy to fix your build.xml

regards
S.​

--
You received this message because you are subscribed to the Google Groups "IronJacamar Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ironjacamar-us...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages