RE: rmic with -poa option
David R Robison <[email protected]>
| Newsgroups | gmane.comp.java.mx4j.devel |
|---|---|
| Message-ID | <[email protected]> |
I am trying to run the tests with
ant testreport
and I'm getting some tests failing with the error:
<testcase name="testCompliance"
classname="test.javax.management.remote.compliance.serialization.RemoteJMXSerializationTest"
time="0.01">
<failure message="JMXRI jar is not available"
type="junit.framework.AssertionFailedError">junit.framework.AssertionFailedError:
JMXRI jar is not available
at test.MX4JTestCase.createRemoteJMXRIWithTestsClassLoader(MX4JTestCase.java:90)
at
test.javax.management.remote.compliance.RemoteJMXComplianceTestCase.createClassLoader(RemoteJMXComplianceTestCase.java:23)
at
test.javax.management.compliance.ComplianceTestCase.testCompliance(ComplianceTestCase.java:35)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
</failure>
</testcase>
Where do I find the JMXRI jar?
David Robison
Quoting "Bordet, Simone" <[email protected]>:
> Hi David,
>
> have you tried to run with -poa under Sun's ORB delivered with the JDK
> ?
>
> If that also works OK, I have no problem in modifying the build.
>
> Let me know.
>
> Simon
>
> > -----Original Message-----
> > From: [email protected]
> > [mailto:[email protected]] On Behalf Of
> > David R Robison
> > Sent: Monday, June 21, 2004 13:39
> > To: [email protected]
> > Subject: [Mx4j-devel] rmic with -poa option
> >
> > When trying to use mx4j with jacORB I have a problem that the
> > stubs generated
> > with rmic generate the iiop interface but not the poa
> > interface. JacORB no
> > longer support the BOA (used by the -iiop) and requires the
> > POA (generated by
> > the -poa option). Changing the rmic task in build.xml to the
> > following makes
> > JacORB compatable:
> >
> > <rmic base="${core.classes.dir}"
> > classname="javax.management.remote.rmi.RMIServerImpl"
> > classpathref="classpath"
> > debug="yes" iiop="yes" >
> > <compilerarg value="-poa" />
> > </rmic>
> > <rmic base="${core.classes.dir}"
> > classname="javax.management.remote.rmi.RMIConnectionImpl"
> > classpathref="classpath" debug="yes" iiop="yes" >
> > <compilerarg value="-poa" />
> > </rmic>
> >
> > Would there be a problem making this change in future version of
> mx4j?
> >
> > Thanks,
> > David Robison
> >
> >
> > --
> > David R Robison Open Roads Consulting, Inc. 708 S. Battlefield
> Blvd.,
> > Chesapeake, VA 23322 phone: (757) 546-3401 e-mail:
> > [email protected] web:
> http://openroadsconsulting.com
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
> > Learn from the experts at JavaOne(SM), Sun's Worldwide Java
> Developer
> > Conference, June 28 - July 1 at the Moscone Center in San
> > Francisco, CA
> > REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority
> > Code NWMGYKND
> > _______________________________________________
> > Mx4j-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/mx4j-devel
> >
> >
>
-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND