On Tue, May 12, 2009 at 11:05:36PM +0200, Michael Ludwig wrote:
> Hi Emil,
> 
> the plugin installs fine from http://caucho.com/eclipse on Eclipse 3.4
> Java 1.6 on Windows XP. 

That's a good start... :-)

>I get the following choices in the Resin folder
> of the "New Server" menu:
> 
> * Resin 3.1
> * Resin 3.1 (in place)
> * Resin 4.0
> * Resin 4.0 (hot deploy)
> * Resin 4.0 (in place)
> 
> What's the difference between the three kinds?

The "plain" versions use ant to build a .war file, then drop it into the
Resin webapps directory for deployment. The "in place" versions point
Resin at your workspace and runs directly from the project directory.
"hot deploy" is the new Resin 4.0 feature that deploys over BAM.  

Better, more official docs are on the way...

> I'm afraid that for the moment, I'm unsure how to enable any of those on
> my Windows machine.
> 
> (1) I'm going to start with "Resin 4.0", picking port 8090.
> 
> In the top section of the "New Server" dialog, an error is flagged:
> 
>   Missing classpath entry \usr\share\resin\lib\resin.jar
> 
> The field "Resin Home" is prefilled with "/usr/share/resin", although
> I've set RESIN_HOME to "C:\Resin", which contains my new Resin 4.0
> installation.
> 
> Okay, I can explicitly select "C:/Resin", and now error message has
> disappeared and the "Next" and "Finish" buttons have been activated.

Do you mean that you've set RESIN_HOME as an environment variable?  If
so, I don't think Eclipse has any way of picking that up.  You'll need
to set your actual Resin directory in the text field.

> The port I specified isn't honoured. Instead, the default port 8080 is
> used. But Resin starts successfully. Now when I hit the stop button, an
> error pops up, saying "Server Resin 4.0 at localhost failed to start"
> (sic). But the server seems to have shutdown alright.

The port issue is a bug then.  I've filed it here:

http://bugs.caucho.com/view.php?id=3502

> (2) Next in line, "Resin 4.0 (hot deploy)", picking port 8091.
> 
> Again, "C:/Resin" for "Resin Home", but I'm getting an exception:
> 
> java.lang.NoClassDefFoundError: com/caucho/boot/ResinBoot
> Caused by: java.lang.ClassNotFoundException: com.caucho.boot.ResinBoot
>       at java.net.URLClassLoader$1.run(Unknown Source)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at java.net.URLClassLoader.findClass(Unknown Source)
>       at java.lang.ClassLoader.loadClass(Unknown Source)
>       at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>       at java.lang.ClassLoader.loadClass(Unknown Source)
>       at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> Exception in thread "main"

I can't reproduce this.  Hot deploy _is_ broken, though in a different
way for me.  Here's the bug for that:

http://bugs.caucho.com/view.php?id=3503

> (3) Next, "Resin 4.0 (in place), picking port 4092.
> 
> "C:/Resin", once more.
> 
> Getting an error, "failed to start".
> 
> Well, I guess my environment lacks some essential configuration. Maybe
> you could shed some light on what precisely I'm missing?

Looks like the config files didn't make it into the plugin for some
reason.  I've updated it, so "plain" and "in place" should work now.

Sorry for the headaches... Eclipse is a lot trickier to QA than our main
tree.

Emil

============================================================

Emil Ong
Chief Evangelist
Caucho Technology, Inc.
Tel. (858) 456-0300
mailto:e...@caucho.com
http://blog.caucho.com/

Caucho: Reliable Open Source
--> Resin: application server
--> Quercus: PHP in Java
--> Java CanDI: contexts and dependency injection


_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to