Skip to main content

Does Eclipse Europa support GlassFish v2 UR2?

14 replies [Last post]
qu0ll
Offline
Joined: 2006-12-09
Points: 0

I have installed GlassFish v2 UR2 on my machine but it doesn't want to
integrate very nicely with Eclipse Europa. I have no problem setting up the
server but when I go to start it the server starts but Eclipse thinks it
hasn't and pops up an error. Consequently it is then impossible to do
anything with the server through Eclipse.

Is this a known problem? Is it just a matter of waiting until Eclipse
supports this release of GlassFish?

--
And loving it,

-Qu0ll (Rare, not extinct)
_________________________________________________
Qu0llSixFour@gmail.com
[Replace the "SixFour" with numbers to email me]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
mkaufman
Offline
Joined: 2007-01-23
Points: 0

I've just encountered what might be the same problem, at least when using Kaspersky, and have a possible work-around.

My Glassfish start-up appears to work, but Glassfish then terminates with failure to connect to RMI/JMX on port 8686 if Kaspersky is running at that particular point in time. If not, it starts OK and continues to work OK even if Kaspersky is subsequently started. I can't see anything in the Kaspersky logs or reports to indicate that anything has been blocked or rejected, but it seems to be due to Kaspersky "traffic monitoring" of this port, because it works fine (at least for me...) if I set Kaspersky's "traffic monitoring" to not monitor this port.

Unfortunately, there doesn't seem to be any way to make Kaspersky monitor all ports except specific ones. So the only way to not monitor 8686 is to turn off "monitor all ports" and make sure that 8686 isn't in the list of monitored ports. You're then left monitoring only those ports that are explicitly specified. This weakens the protection, but is probably acceptable if you're behind a suitable firewall or otherwise have a known, limited set of ports that are potentially accessible.

I've tried playing around with other parts of the Kaspersky "web anti-virus" settings (e.g. weaken/disable "heuristic" scan, exclude "localhost" URLs), but I haven't found anything else that clears the problem. I can't immediately see anything else to try, given the lack of any obvious report on what it thinks it's detecting/blocking.

For info, the PC concerned is MS Windows XP with Kaspersky 7.0.1.325 and a fresh Glassfish V2 U2 install on Java SE 6 update 6 (plus various other firewalls, proxy, anti-malware etc). I get the same problem with V2 U1, but it used to work on this PC. It's not long since the PC was upgraded from Kaspersky 6 to 7, so I suspect this is specific to Kaspersky 7.

qu0ll
Offline
Joined: 2006-12-09
Points: 0

That's very interesting but I am getting somewhat different results.

I have just spent about an hour experimenting with various Kaspersky settings and starting GlassFish from within Eclipse. What I have found is that (at least on this machine) the only way to get GlassFish to startup without problems from within Eclipse is to completely disable Kaspersky. Even when I disable every category except for one option (and it doesn't matter which option I leave active), GlassFish still will not start properly.

It seems that just having Kaspersky running is enough to prevent GlassFish from starting up properly through Eclipse even when almost every protection mode is turned off. I will contact Kaspersky and see if they can shed some light on this.

Clearly this issue is deeper than I thought at first.

--
And loving it,

-Qu0ll (Rare, not extinct)
_________________________________________________
Qu0llSixFour@gmail.com
[Replace the "SixFour" with numbers to email me]

mkaufman
Offline
Joined: 2007-01-23
Points: 0

Have you tried to run Glassfish on its own, outside of Eclipse? That might help you isolate and/or diagnose the problem (e.g. whether the problem is being encountered by Glassfish itself or just when running it within Eclipse).

Also, are there any messages in the Glassfish logs showing the exception or other problem that crashed the start-up? There ought to be something there showing what exception or other problem it encountered (which might give you some idea of what is being blocking, and some more specific details to pass on to Kaspersky support).

qu0ll
Offline
Joined: 2006-12-09
Points: 0

Yes, I have tried GlassFish outside of Eclipse and it starts just fine as it does when I start it from within NetBeans. It's only a problem when I start it from Eclipse.

There are no errors or exceptions on the GlassFish logs because it doesn't encounter any. That is to say that it starts up just fine - the problem is with Eclipse not being able to detect that it has started properly and it is not a problem with GlassFish at all.

--
And loving it,

-Qu0ll (Rare, not extinct)
_________________________________________________
Qu0llSixFour@gmail.com
[Replace the "SixFour" with numbers to email me]

jhasenbe
Offline
Joined: 2004-12-10
Points: 0

I had the same issue today with Eclipse 3.4 (Ganymede), Glassfish V3 TP2 and the Eclipse Glassfish plugin (v1.0.4) on my Windows XP SP3 with Kaspersky 8.0 running on it.
Launching the Glassfish server from within Eclipse succeeds but Eclipse seems to be not notified about it (actually hangs at 7% progress bar until receives a timeout). When disabling Kapersky, everything worked fine and Eclipse updated the server status to running.

Playing around a little, I found the following working solution:
Add eclipse.exe to the Kaspersky trusted applications and activate the "Do not scan network traffic" checkbox (and leave defaults for the rule description).
I think the additional security risk is acceptable.

Hope this helps other folks encountering the same problem.

-- Josef

qu0ll
Offline
Joined: 2006-12-09
Points: 0

Hi Josef,

I can confirm that your solution works on my machine as well.

Thanks very much for the info :-)

--
And loving it,

-Qu0ll (Rare, not extinct)
_________________________________________________
Qu0llSixFour@gmail.com
[Replace the "SixFour" with numbers to email me]

vbkraemer
Offline
Joined: 2003-09-03
Points: 0

I guess I need to hear a few more details about your environment.

I am able to do simple web app development and testing in a
Vista+JDK 6u6+GF v2ur2+Eclipse Europa+GF server adapter configuration
and in a
OS X 10.4.11+JDK 5+GF V2ur2+Eclipse Europa+GF server adapter configuration

One important thing that you will need to do is install the Europa patches.

See http://forums.java.net/jive/thread.jspa?messageID=276561 for more details.

vbk

qu0ll
Offline
Joined: 2006-12-09
Points: 0

Sorry, I should have given more details...

I am using Vista Ultimate SP1 (32-bit) and Java 6 Update 10 (b24) with Eclipse Europa (Winter). When I run the updater for Eclipse it says that there's nothing to update.

As I said, GlassFish starts successfully on request but Eclipse thinks it hasn't and stays at "Starting GlassFish (7%)" for minutes until it times-out with an error. GF Integration with NetBeans 6.1 works perfectly.

Any suggestions for getting this to work?

--
And loving it,

-Qu0ll (Rare, not extinct)
_________________________________________________
Qu0llSixFour@gmail.com
[Replace the "SixFour" with numbers to email me]

qu0ll
Offline
Joined: 2006-12-09
Points: 0

I have tried reinstalling Eclipse and running with a completely fresh workspace and the problem still occurs.

--
And loving it,

-Qu0ll (Rare, not extinct)
_________________________________________________
Qu0llSixFour@gmail.com
[Replace the "SixFour" with numbers to email me]

arungupta
Offline
Joined: 2003-06-13
Points: 0

I tried Eclipse Europa (winter), GlassFish v2 UR2, JDK 1.6.0_05 on Mac OS X 10.5.2 and could start/stop the server. I followed the steps documented at:

http://blogs.sun.com/arungupta/entry/screencast_ws6_eclipse_europa_and

-Arun

qu0ll
Offline
Joined: 2006-12-09
Points: 0

Thanks arungupta, it seems that the problem is not with Eclipse or GlassFish but with my Kaspersky Internet Security Suite instead. When I shutdown Kaspersky I can start the server without problems.

I now just have to figure out how to configure Kaspersky to allow GlassFish admin from within Eclipse. Curiously NetBeans can administer the server with Kaspersky running so I will need to look into it a bit deeper.

But the suggestion in the notes you directed me to suggested the firewall and this is clearly the cause of the problem.

--
And loving it,

-Qu0ll (Rare, not extinct)
_________________________________________________
Qu0llSixFour@gmail.com
[Replace the "SixFour" with numbers to email me]

mycole
Offline
Joined: 2008-06-02
Points: 0

I had the exact same problem and had to disable Symantec Client Firewall.

Did anyone find out what sort of firewall settings need to be in place for Glassfish to work with a firewall?

vbkraemer
Offline
Joined: 2003-09-03
Points: 0

You can read the output of asadmin start-domain to find out about the ports that GF wants to use. The most important ones are 4848 and 8080 and 8181... Most of the ports that get used just need to be opened to localhost, while you are doing development.

vbk

qu0ll
Offline
Joined: 2006-12-09
Points: 0

There has to be more to it than simple blocked or unblocked ports because the NetBeans integration with GlassFish v2 UR2 works perfectly with the firewall software active. I figure it is something else that Eclipse is doing with those ports that the firewall is detecting as a potential security threat.

When I get some time I will play around with it until I determine the exact cause.

--
And loving it,

-Qu0ll (Rare, not extinct)
_________________________________________________
Qu0llSixFour@gmail.com
[Replace the "SixFour" with numbers to email me]