Re: Adding module causes classloading issues

2017-11-29 Thread Alan Bateman
On 28/11/2017 22:11, Michael Hall wrote: On Nov 28, 2017, at 4:48 AM, Alan Bateman > wrote: javax.rmi.PortableRemoteObject It does include PortableRemoteObject. and this probably has references to classes in org.omg.CORBA and javax.rmi.CORBA. This will expl

Re: Adding module causes classloading issues

2017-11-28 Thread Michael Hall
> On Nov 28, 2017, at 4:11 PM, Michael Hall wrote: > > Unless it does relate to current problems. I haven’t had a chance to test JMX > again yet. That does seem to work. So java.corba was a answer there if not the best. js> jmxAttach('994') local service:jmx:rmi://127.0.0.1/stub/rO0ABXN9AAA

Re: Adding module causes classloading issues

2017-11-28 Thread Michael Hall
> On Nov 28, 2017, at 4:48 AM, Alan Bateman wrote: > > javax.rmi.PortableRemoteObject It does include PortableRemoteObject. At one point, it looks like about 2004, I had made the app RMI client/server. But having trouble coming up with a second machine to test on. I think I ended up just for

Re: Adding module causes classloading issues

2017-11-28 Thread Gunnar Morling
a package, and updating META-INF/MANIFEST.MF to add > Automatic-Module-Name: java.transaction > > -Original Message- > From: Alan Bateman > Sent: Tuesday, November 28, 2017 5:49 AM > To: Michael Hall > Cc: jigsaw-dev@openjdk.java.net > Subject: Re: Adding mod

RE: Adding module causes classloading issues

2017-11-28 Thread Stephen Felts
A-INF/MANIFEST.MF to add Automatic-Module-Name: java.transaction -Original Message- From: Alan Bateman Sent: Tuesday, November 28, 2017 5:49 AM To: Michael Hall Cc: jigsaw-dev@openjdk.java.net Subject: Re: Adding module causes classloading issues On 28/11/2017 09:14, Michael Hall wrote: &

Re: Adding module causes classloading issues

2017-11-28 Thread Alan Bateman
On 28/11/2017 09:14, Michael Hall wrote: It’s a little alarming jdeps might report false dependencies? I would rather spare you the full output. How about… jdeps halfpipe.jar | grep corba halfpipe.jar -> java.corba org.cmdline-> javax.rmi

Re: Adding module causes classloading issues

2017-11-28 Thread Michael Hall
> On Nov 28, 2017, at 2:35 AM, Alan Bateman wrote: > > One point that I didn't see mentioned in the thread so far is a detail in the > JEP 261 policy on root modules for the case that module java.se > is not observable. When java.se is not > observable then

Re: Adding module causes classloading issues

2017-11-28 Thread Michael Hall
> On Nov 28, 2017, at 2:35 AM, Alan Bateman wrote: > > On 28/11/2017 02:00, Alex Buckley wrote: >> >> Thank you, for investigating how your app relates to CORBA, JTA, and Attach. >> I hope http://openjdk.java.net/jeps/8189188 was informative at least. Alan >> will probably be along shortly wi

Re: Adding module causes classloading issues

2017-11-28 Thread Alan Bateman
On 28/11/2017 02:00, Alex Buckley wrote: Thank you, for investigating how your app relates to CORBA, JTA, and Attach. I hope http://openjdk.java.net/jeps/8189188 was informative at least. Alan will probably be along shortly with some points I missed. One point that I didn't see mentioned in th

Re: Adding module causes classloading issues

2017-11-27 Thread Michael Hall
> On Nov 27, 2017, at 8:00 PM, Alex Buckley wrote: > > I hope http://openjdk.java.net/jeps/8189188 > was informative at least. Reading it now...

Re: Adding module causes classloading issues

2017-11-27 Thread Alex Buckley
On 11/27/2017 5:46 PM, Michael Hall wrote: Thanks again, for the time. It is a little difficult for me to track these things. For now I will probably just omit java.corba and hope it isn’t really my problem with JMX attach. I will take a closer look at jconsole to try and figure that out. I wi

Re: Adding module causes classloading issues

2017-11-27 Thread Michael Hall
> On Nov 27, 2017, at 7:40 PM, Alex Buckley wrote: > > On 11/27/2017 5:22 PM, Michael Hall wrote: >>> On Nov 27, 2017, at 7:15 PM, Alex Buckley >> > wrote: >>> >>> --add-modules java.transaction >> >> Tried to simplify. >> >> java -cp . --patch-module java.tran

Re: Adding module causes classloading issues

2017-11-27 Thread Alex Buckley
On 11/27/2017 5:22 PM, Michael Hall wrote: On Nov 27, 2017, at 7:15 PM, Alex Buckley mailto:alex.buck...@oracle.com>> wrote: --add-modules java.transaction Tried to simplify. java -cp . --patch-module java.transaction=jta.jar --add-modules java.transaction ModuleForClass javax.transaction.Use

Re: Adding module causes classloading issues

2017-11-27 Thread Michael Hall
> On Nov 27, 2017, at 7:15 PM, Alex Buckley wrote: > > here will soon be a modular version of JTA which you can deploy on the > upgrade module path rather than via patching. Oh, and looking forward to that of course.

Re: Adding module causes classloading issues

2017-11-27 Thread Michael Hall
> On Nov 27, 2017, at 7:15 PM, Alex Buckley wrote: > > You said that you jlinked an image to include java.corba, For that… HalfPipe7.app/Contents/PlugIns/Java.runtime/Contents/Home/bin/java -cp . --patch-module java.transaction=jta.jar --add-modules java.transaction ModuleForClass javax.tran

Re: Adding module causes classloading issues

2017-11-27 Thread Michael Hall
> On Nov 27, 2017, at 7:15 PM, Alex Buckley wrote: > > --add-modules java.transaction Tried to simplify. java -cp . --patch-module java.transaction=jta.jar --add-modules java.transaction ModuleForClass javax.transaction.UserTransaction Error occurred during initialization of boot layer java.l

Re: Adding module causes classloading issues

2017-11-27 Thread Alex Buckley
On 11/27/2017 5:03 PM, Michael Hall wrote: The application usually runs as an OS X application. So I don’t use -jar. I do have a shell script launch for testing… #!/bin/bash APP_ROOT=HalfPipe7.app JAVA=${APP_ROOT}/Contents/Java export R_HOME=/Library/Frameworks/R.framework/Resources java --patc

Re: Adding module causes classloading issues

2017-11-27 Thread Michael Hall
> On Nov 27, 2017, at 6:40 PM, Alex Buckley wrote: > > On 11/27/2017 3:16 PM, Michael Hall wrote: >> JMX attach keeps telling me that RMI is not a accepted protocol. >> I wondered if possibly this was a modular issue, I checked my main app jar… >> jdeps halfpipe.jar >> ... >> halfpipe.jar -> jav

Re: Adding module causes classloading issues

2017-11-27 Thread Alex Buckley
On 11/27/2017 3:16 PM, Michael Hall wrote: JMX attach keeps telling me that RMI is not a accepted protocol. I wondered if possibly this was a modular issue, I checked my main app jar… jdeps halfpipe.jar ... halfpipe.jar -> java.corba … which seems to say I need java.corba which I didn’t have. If