facebook

hot deploy with resin

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

    troublesome
    Member

    how come hot deploy with resin 3.0 doesn’t work from inside myeclipse? i’ve tried -Xdebug as the program argument but that doesn’t work either. i don’t see y because when i run http.exe -Xdebug, it runs fine and tells me that hot deploy is working, but when i run it from eclipse, it tells me that it doesn’t recognise the argument. what’s wrong?

    #217832 Reply

    Scott Anderson
    Participant

    You don’t need to provide any extra arguments to the connector to enable hot deploy from within MyEclipse. Simply launching the server with the Resin connector and specifying a full 1.4.1+ JDK on the JDK preference page should be all you need.

    For additional information, please see our Application Server Quickstart, available here:
    http://myeclipseide.com/ContentExpress-display-ceid-67.html

    #217833 Reply

    troublesome
    Member

    well i have launched the server and specified the java sdk 1.5 on the preference page. but when i run the server, it tells me that hotdeploy is not enabled, and the perpective remains the same, it doesn’t change to the debug perpective like i saw in one of the myeclipse flash demos.

    #217836 Reply

    troublesome
    Member

    here’s the console from myeclipse:

    Resin Professional 3.0.s041002 (built Sat, 02 Oct 2004 06:57:28 PDT)
    Copyright(c) 1998-2004 Caucho Technology. All rights reserved.

    No valid Resin(R) Professional license found.

    Using Resin Open Source under the GNU Public License (GPL).

    See http://www.caucho.com for information on Resin Professional.

    Starting Resin on Sat, 16 Oct 2004 11:10:33 -0400 (EDT)

    [11:10:43.542] Socket JNI library is not available.
    [11:10:43.542] Resin will still run but performance will be slower.
    [11:10:43.542] To compile the Socket JNI library on Unix, use ./configure; make; make install.
    [11:10:43.792] http listening to *:8080
    [11:10:43.822] ServletServer[] starting
    [11:10:44.133] hmux listening to localhost:6802
    [11:10:45.765] Host[] starting
    [11:10:48.048] In-place class redefinition (HotSwap) is not available.
    [11:10:48.048] java.lang.UnsatisfiedLinkError: no resin in java.library.path
    [11:10:50.592] Application[http://localhost:8080/resin-doc] starting

    #217837 Reply

    Scott Anderson
    Participant

    Well, by “hot deploy” then I’m not sure what you mean. The -Xdebug flag is already passed by the connector to Resin on startup to enable remote debugging, so you certainly should not specify it again. Second, I’m not sure Resin 3.0 is certified for JDK 1.5, so I’d recommend running it with 1.4.2 to reduce the number of possible incompatibilities. From what I’ve read, there’s no additional setting needed for Resin to automatically load deployed archives, but I don’t believe Resin 3 support automatically loaded exploded deployments. As for not switching for the debug perspective, this is controlled by an Eclipse preference now and Eclipse normally prompts to ask you to change views, unless you checked the box in the dialog to “don’t ask me this anymore”.

    #217839 Reply

    troublesome
    Member

    umm yea i meant hot swap not being available. and i never got a dialog asking me to switch perspective for debugging.

    #218037 Reply

    Scott Anderson
    Participant

    umm yea i meant hot swap not being available

    That’s likely because you’re using JDK 1.5 to launch the server and Eclipse doesn’t recognize the version as “hot swap capable”. Did you try running it with 1.4.2 as I suggested in my last post?

    and i never got a dialog asking me to switch perspective for debugging.

    This is a change in behavior with Eclipse 3.0 and is now a platform preference, as I mentioned in my last post.

    #219813 Reply

    alexdotc
    Member

    I am also getting the same error. I am using Java 1.4.2_04.

    Here is the output from the Console:

    Resin Professional 3.0.9 (built Wed, 13 Oct 2004 03:02:16 PDT)
    Copyright(c) 1998-2004 Caucho Technology. All rights reserved.

    No valid Resin(R) Professional license found.

    Using Resin Open Source under the GNU Public License (GPL).

    See http://www.caucho.com for information on Resin Professional.

    Starting Resin on Sun, 21 Nov 2004 14:53:23 -0800 (PST)

    [14:53:27.118] Socket JNI library is not available.
    [14:53:27.118] Resin will still run but performance will be slower.
    [14:53:27.118] To compile the Socket JNI library on Unix, use ./configure; make; make install.
    [14:53:27.208] http listening to *:8080
    [14:53:27.208] ServletServer[] starting
    [14:53:27.218] hmux listening to localhost:6802
    [14:53:27.728] Host[] starting
    [14:53:29.571] In-place class redefinition (HotSwap) is not available.
    [14:53:29.571] java.lang.UnsatisfiedLinkError: no resin in java.library.path
    [14:53:30.603] Application[http://localhost:8080/resin-doc] starting

    #219815 Reply

    Riyad Kalla
    Member

    Issue 2370 from Caucho’s tracker:
    http://www.caucho.com/quercus/bugtrack/view.xtp?bugreport_id=2370

    Looks like you need to buy a Pro license to get hotswapping working.

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: hot deploy with resin

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