facebook

[Closed] JRun4 and JDK 1.5

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #240148 Reply

    James Camire
    Member

    Hi,

    I am trying to get JRUN w/MyEclipse working with Java 5.0. It works fine with the 1.4.2 JDK within Eclipse. JRUN is running (outside of eclipse) on jdk 1.5. My new project requires th use of Java 5, so I really need to get this working. The error was the same error I got form JRUN before I upgraded to Updater 6.

    Any help is appreciated.

    I am getting the following error when I start the server:

    [1]java.lang.NoSuchMethodException: setURL
    at com.sun.jmx.mbeanserver.StandardMetaDataImpl.forbidInvokeGetterSetter(StandardMetaDataImpl.java:493)
    at com.sun.jmx.mbeanserver.StandardMetaDataImpl.invoke(StandardMetaDataImpl.java:406)
    at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
    at jrunx.kernel.JRun.startServer(JRun.java:574)
    at jrunx.kernel.JRun.<init>(JRun.java:493)
    at jrunx.kernel.JRun$1.run(JRun.java:346)
    at java.security.AccessController.doPrivileged(Native Method)
    at jrunx.kernel.JRun.start(JRun.java:343)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at jrunx.kernel.JRun.invoke(JRun.java:180)
    at jrunx.kernel.JRun.main(JRun.java:168)
    [0]javax.management.ReflectionException: Cannot invoke getter or setter (setURL) as operation unless jmx.invoke.getters property is set
    at com.sun.jmx.mbeanserver.StandardMetaDataImpl.forbidInvokeGetterSetter(StandardMetaDataImpl.java:495)
    at com.sun.jmx.mbeanserver.StandardMetaDataImpl.invoke(StandardMetaDataImpl.java:406)
    at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
    at jrunx.kernel.JRun.startServer(JRun.java:574)
    at jrunx.kernel.JRun.<init>(JRun.java:493)
    at jrunx.kernel.JRun$1.run(JRun.java:346)
    at java.security.AccessController.doPrivileged(Native Method)
    at jrunx.kernel.JRun.start(JRun.java:343)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at jrunx.kernel.JRun.invoke(JRun.java:180)
    at jrunx.kernel.JRun.main(JRun.java:168)
    Caused by: java.lang.NoSuchMethodException: setURL
    at com.sun.jmx.mbeanserver.StandardMetaDataImpl.forbidInvokeGetterSetter(StandardMetaDataImpl.java:493)
    … 15 more

    #240171 Reply

    Riyad Kalla
    Member

    This error is indicative of incompatible versions of Java, you see there that JRun is dying because of the incompatible version of Java’s management implementation. Does JRun run outside of MyEclipse with Java 5? I would guess probably not, have you checked JRun’s site to see how to make it Java 5 compatible?

    #240181 Reply

    James Camire
    Member

    JRUN is running outside of Eclipse on version 5. I was getting this same error message from JRUN (outside of Eclipse) before I upgraded to Updater 6. Both Eclipse and JRUN are pointing to the same JDK (1.5.0_04)

    I can change code and deploy it within the MyEclipse perspective. However, to test/view the web pages, I must start JRUN outside of Eclipse.

    #240182 Reply

    Riyad Kalla
    Member

    Did you be sure to change the JDK you told MyEclipse to luanch JRun with? (Window > Prefs > MyEclipse > App Servers > JRun 4 > JDK?)

    Changing the JDK you run MyEclipse with won’t immediately change the JDK you run your app servers with, you can use the JDK settings (path shown above) to do that.

    #240196 Reply

    James Camire
    Member

    I had changed the JRUN Settings to the new JDK when I upgraded.

    #240197 Reply

    Riyad Kalla
    Member

    <Post removed>

    Update: I have downloaded and installed JRun + Updater 6 and am working through this now, hang tight.

    #240198 Reply

    Riyad Kalla
    Member

    jcamire,
    I have reproduced the problem you encountered and we are working on fixing this issue. There currently doesn’t seem to be a workaround for starting it from withing MyEclipse, however you will still be able to debug and work with JRun by using our Remote Debugging features as outlined here: http://myeclipseide.com/enterpriseworkbench/help/index.jsp?topic=/com.genuitec.myeclipse.doc/html/quickstarts/remotedebugging/index.html

    #240200 Reply

    Riyad Kalla
    Member

    The developer working on this has found a simple workaround for the time being:

    Workaround: Simply adding “-Djmx.invoke.getters=true” works around the issue and allows the server to launch correctly.

    #257624 Reply

    dwmiller44
    Member

    Great, so … that just leaves…

    1) How to set the system property given that the usage docs for jrun.exe and jrunsvc.exe don’t include java properties ?

    2) How do we update the Windows service to start with JRun with the new property ?

    3) If this is the “workaround”, is there a non-workaround alternative? Would running with JDK 1.4.2 fix the problem without the properties ?

    #257629 Reply

    James Camire
    Member

    I have run across this problem and was able to reproduce it. I fixed it by doing the following:

    1) Unistall all files associated to jrun
    2) Make sure JDK 5 is installed
    3) Install JRUN 4 normally. DO NOT start the server
    4) Install Updater 6
    5) Start JRUN
    6) In MyEclipse preferences, add the following lines to the JRUN appserver JDK vm args

    -Dsun.io.useCanonCaches=false
    -Djmx.invoke.getters=true

    I hope this helps. I have it running on 3 seperate machines with no problem. I am using Eclipse 3.1.2 and MyEclipse 4.1.1

    #257634 Reply

    dwmiller44
    Member

    Thanks! I’ll try it.

    Also found <jrsun>/bin/jvm.config file, where -Djmx.invoke.getters=true could be added to the java.args list

Viewing 11 posts - 1 through 11 (of 11 total)
Reply To: [Closed] JRun4 and JDK 1.5

You must be logged in to post in the forum log in