Skip to main content

Eclipse breaks when GlassFish publishes

20 replies [Last post]
gmarshall56
Offline
Joined: 2007-08-31

All

I downloaded and installed the GlassFish and SDK bundle containing the Sun Java System Application Server (GlassFish) and SDKs (GlassFish and SDK Update 5) that can be found here:

http://java.sun.com/javaee/community/glassfish/index.jsp

Then I downloaded the WTP 2.0.2 in my attempt to get the fixes to the 2.0.0 and 2.0.1 releases. I downloaded this bundle from here:

http://download.eclipse.org/webtools/downloads/drops/R2.0/R-2.0.2-200802...

After downloading this I extracted everything into my current Eclipse directory: C:\Eclipse (Version 3.3.2; Build id: M20080221-1800).

Then I used the script found here to install the GlassFish server adapter into my Eclipse:

https://glassfishplugins.dev.java.net/eclipse33/index.html

I cleared out the eclipse log file. I closed eclipse and rebooted my machine (Dell 2 Duo, 4G laptop running Vista Business).

I open Eclipse. I have an allready existing "TestWebProject" in my workspace. GlassFish is listed in the "Server" tab.

When I click to "run on server" the index.jsp within my testWebProject, GlassFish starts, runs and I get the HTTP Status 404 page instead of displaying my index.jxp page, with the description: "The requested resource() is not available". The "Status" of GlassFish in the "Server" tab says "republish". So I right-click on the fish and select publish. This is when Eclipse breaks and closes.

I have attached the .log file (see Eclipse_log.txt) and a jpeg image (see Eclipse_Break.JPG) showing that the server was in the "Publishing to GlassFish V2..." step when all heck broke loose. Notice that the error occurred when it was "Starting virtual machine..."

Does anybody have any clues about the solution to this problem? Do I possibly have a configuration thats out of whack? Perhaps I hosed things up by downloading and extracting the WTP 2.0.2 over my existing Eclipse install?

Thanks to all for your assistance.
Gary

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Rochelle Raccah

Hi Gary,

A couple more suggestions:
1) Try the new Eclipse 3.4 RC build
()
Make sure you try with a new workspace.

2) If that doesn't work, perhaps we could set up a vnc session and we
can try to help you with your environment.

Thanks,
Rochelle

glassfish@javadesktop.org wrote:
> vbk:
> Well, after trying everything you said to do, and after taking a few days to get over my extreme disappointment, unfortuantely I have to say that I am still having the problem of eclipse closing when GF publishes.
>
> I started and stopped the erver with asadmin successfully. I received no errors when completing this exercise. I can post the command prompt messages from the execution of these commands if you care to see them.
>
> Anyway, I remain frustrated and annoyed about all this. I know you have the same OS (VISTA Business) as I have. I believe we have the same versions of Eclispse, GlassFish and SUN SDK installed. But you do not have the issues that I have.
>
> Unless you or anybody else can offer some additional insites as to what my problem is ( configuration issues?) I'm thinking my next step is to not use GF but instead ask what other JEE server I could use in order to go forward with my project.
>
> Thank you again for your time here. I look forward to your or anybody else's suggestions. If you care to know about any of the config settings I have concerning this issue please post.
>
> Gary
> [Message sent by forum member 'gmarshall56' (gmarshall56)]
>
> http://forums.java.net/jive/thread.jspa?messageID=279704
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Wim V

Hi Gary,

I've taken a look at the tread on
http://forums.java.net/jive/thread.jspa?messageID=279748

Probably this won't help, (just not disappoint you again)
But some thoughts...(maybe even wild guesses)

Are you using maven within eclipse? Have you ever had the eclipse error
"Eclipse is running in a JRE, ..." and I'm not sure how it continues but it
tells you it needs a JDK. This may have had you change your JAVA_HOME to
jdk/ instead of jdk/jre. Please check. With this in mind, you could also try
changing glassfish's jvm-option -client to -server.

Furthermore, I notice the exception is trown during a SocketAccept().
Stupid idea maybe, but you wouldn't happen to have windows firewall turned
on? (Or any other. Norton antivirus/inet security is known for this kind of
sheiss, ie blocking connections from localhost to localhost).

Probably you will have tried all of this already, but it was not mentioned
in the thread and it crossed my mind.

regards,

Wim

-----Original Message-----
From: Rochelle.Raccah@Sun.COM [mailto:Rochelle.Raccah@Sun.COM]
Sent: dinsdag 17 juni 2008 23:40
To: users@glassfish.dev.java.net
Subject: Re: Eclipse breaks when GlassFish publishes

Hi Gary,

A couple more suggestions:
1) Try the new Eclipse 3.4 RC build
( 0/index.html>)
Make sure you try with a new workspace.

2) If that doesn't work, perhaps we could set up a vnc session and we
can try to help you with your environment.

Thanks,
Rochelle

glassfish@javadesktop.org wrote:
> vbk:
> Well, after trying everything you said to do, and after taking a few days
to get over my extreme disappointment, unfortuantely I have to say that I am
still having the problem of eclipse closing when GF publishes.
>
> I started and stopped the erver with asadmin successfully. I received no
errors when completing this exercise. I can post the command prompt
messages from the execution of these commands if you care to see them.
>
> Anyway, I remain frustrated and annoyed about all this. I know you have
the same OS (VISTA Business) as I have. I believe we have the same versions
of Eclispse, GlassFish and SUN SDK installed. But you do not have the
issues that I have.
>
> Unless you or anybody else can offer some additional insites as to what my
problem is ( configuration issues?) I'm thinking my next step is to not use
GF but instead ask what other JEE server I could use in order to go forward
with my project.
>
> Thank you again for your time here. I look forward to your or anybody
else's suggestions. If you care to know about any of the config settings I
have concerning this issue please post.
>
> Gary
> [Message sent by forum member 'gmarshall56' (gmarshall56)]
>
> http://forums.java.net/jive/thread.jspa?messageID=279704
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Wim V

CORRECTION : JAVA_HOME should have been CLASSPATH

I have to correct myself, sorry, it's been a while since I did this.
Java_home will always be set to .../jdk1.0.6_06.

The difference I mentioned is in this CLASSPATH environment variable.
(/jdk1.0.6_06/jre/lib <-> /jdk1.0.6_06/lib)
Same thing goes for the path variable. There's a java.exe in
/jdk1.0.6_06/bin and one in jdk1.0.6_06/jre/bin. Then one referenced from
the path will be used (and in my case it is the jdk one, this is the change
I'm talking about which was required for solving the eclipse error).

Also, while being at it, you might want to check. I have a AS_HOME system
variable pointing to [glassfish-install-dir], M2_HOME pointing to
[maven2-unzip-dir], and MAVEN_OPTS = -Xms256m -Xmx512m

As I said, just some thoughts.

Wim

-----Original Message-----
From: Wim V [mailto:wim@pizzastop.be]
Sent: woensdag 18 juni 2008 1:28
To: users@glassfish.dev.java.net
Subject: RE: Eclipse breaks when GlassFish publishes

Hi Gary,

I've taken a look at the tread on
http://forums.java.net/jive/thread.jspa?messageID=279748

Probably this won't help, (just not disappoint you again)
But some thoughts...(maybe even wild guesses)

Are you using maven within eclipse? Have you ever had the eclipse error
"Eclipse is running in a JRE, ..." and I'm not sure how it continues but it
tells you it needs a JDK. This may have had you change your JAVA_HOME to
jdk/ instead of jdk/jre. Please check. With this in mind, you could also try
changing glassfish's jvm-option -client to -server.

Furthermore, I notice the exception is trown during a SocketAccept().
Stupid idea maybe, but you wouldn't happen to have windows firewall turned
on? (Or any other. Norton antivirus/inet security is known for this kind of
sheiss, ie blocking connections from localhost to localhost).

Probably you will have tried all of this already, but it was not mentioned
in the thread and it crossed my mind.

regards,

Wim

-----Original Message-----
From: Rochelle.Raccah@Sun.COM [mailto:Rochelle.Raccah@Sun.COM]
Sent: dinsdag 17 juni 2008 23:40
To: users@glassfish.dev.java.net
Subject: Re: Eclipse breaks when GlassFish publishes

Hi Gary,

A couple more suggestions:
1) Try the new Eclipse 3.4 RC build
( 0/index.html>)
Make sure you try with a new workspace.

2) If that doesn't work, perhaps we could set up a vnc session and we
can try to help you with your environment.

Thanks,
Rochelle

glassfish@javadesktop.org wrote:
> vbk:
> Well, after trying everything you said to do, and after taking a few days
to get over my extreme disappointment, unfortuantely I have to say that I am
still having the problem of eclipse closing when GF publishes.
>
> I started and stopped the erver with asadmin successfully. I received no
errors when completing this exercise. I can post the command prompt
messages from the execution of these commands if you care to see them.
>
> Anyway, I remain frustrated and annoyed about all this. I know you have
the same OS (VISTA Business) as I have. I believe we have the same versions
of Eclispse, GlassFish and SUN SDK installed. But you do not have the
issues that I have.
>
> Unless you or anybody else can offer some additional insites as to what my
problem is ( configuration issues?) I'm thinking my next step is to not use
GF but instead ask what other JEE server I could use in order to go forward
with my project.
>
> Thank you again for your time here. I look forward to your or anybody
else's suggestions. If you care to know about any of the config settings I
have concerning this issue please post.
>
> Gary
> [Message sent by forum member 'gmarshall56' (gmarshall56)]
>
> http://forums.java.net/jive/thread.jspa?messageID=279704
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

yuvalz
Offline
Joined: 2004-07-26

I think I solved this issue when I installed the patches for version 2.0.2 of WTP.
(download at http://tinyurl.com/5q58mp) If you have a problem getting it going or installing the patches look at my blog post at http://tinyurl.com/6fmkza . I am referring to Jetty but the solution should work for GlassFish just fine.

gmarshall56
Offline
Joined: 2007-08-31

Rochelle:

Please see the attached files which show the result of your test 3, where I included the WTP update. After clearing out the log file I opened Eclipse and my TestWebPJ project. I selected to "run on server" my index.jsp and received the "HTTP 404" error - see the attached file Eclipse_Trial_2_404.jpg. It is at this time that I see the "republish" status in the Server tab. When I click on "publish" I get the error again. Please see the attached file Eclipse_Trial_2.log.

At this time would you like for me to complete your test 4) where you would like for my to try running my test project on another server?

Thank you again for your assistance.
Gary

vbkraemer
Offline
Joined: 2003-09-03

Which jdk are you running? Please include info on the "update" value...

I have been able to run simple web apps with a Europa(JEE) + updates from the "software updates" + Vista Business + jdk 6 update 6 + GF v2 update release 2 configuration/environment.

Do you have other plugins/updates installed?

vbk

gmarshall56
Offline
Joined: 2007-08-31

vbk:

As I mentioned in my previous post, after I installed Europa, I ran the "software updates -> Find and Install -> Search for updates of the currently installed features". Just like Rochelle, the only updates that came up were for mylyn, which I unchecked, and another for patches, that had some funky URL. I checked this one. This is the only "software update" I have completed with my current install of Eclipse Europa.

Concerning your question about the JDK, are you asking what jre am I running? I have one JDK folder on my machine. It is located at C:\Sun\SDK\jdk. There is a jre folder located in there. I also have a jre folder located at C:\Program Files\Java\jre1.6.0.

I had tried both of these jre's in my TestDynamicWebPJ by completing the following:
Riight click the fish, select "open". Click "Edit". Click "Installed JRE preferences", and in the Preferences dialog that opened up I am able to select the installed JRE's to use. With each one I select as the default jre, I get the same error by GF in the publishing step. I have attached a jpeg image of what I have installed and selected. Please see Installed_JREs.jpg.

I'm sorry but I do not understand what you are looking for when you say "Please include info on the "update" value..."

Just like you I also am running Vista Business. I am encouraged to see that all of this works on this OS and it makes me even more anxious to discover my problem, fix it and get going on learning what I want / need to learn.

Do you think my problem lies in the JDk (jre?) that I am using? Do I need to
download an update? If so can you please provide a link to the update site? Or do you have another idea?

Thanks much for your time
Gary

vbkraemer
Offline
Joined: 2003-09-03

what is the output of the following command:

java -version

vbk

gmarshall56
Offline
Joined: 2007-08-31

Hello again, vbk;
Here is the output from the command: java - version:

C:\>java -version
java version "1.6.0-oem"
Java(TM) SE Runtime Environment (build 1.6.0-oem-b104)
Java HotSpot(TM) Client VM (build 1.6.0-oem-b104, mixed mode)

C:\>

Does this give you an indication of a config issue on my Vista Business machine?
Thank you again for your attention. Looking forward to your response,
Gary

vbkraemer
Offline
Joined: 2003-09-03

You may want to download the latest fcs version of jdk 6 from http://java.sun.com...

I honestly have no idea what release of java 6 the "oem" version corresponds...

I am running jdk 6 update 6.

vbk

gmarshall56
Offline
Joined: 2007-08-31

vbk:

I downloaded and installed JDK 6 Update 6 with Java EE found here:

http://java.sun.com/javase/downloads/?intcmp=1281

I then ran the command: java -version and now it shows this:

C:\>java -version
java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode)
C:\>

Is this what you have on your system?
thank you
Gary

vbkraemer
Offline
Joined: 2003-09-03

yes.

Note: you may run into an issue starting GF, since the GF install has a property, AS_JAVA... that might be set in GF-install-dir/config/asenv.bat.

So, please start the app server with asadmin (and stop it) successfully, before you test starting the app server from inside Eclipse.

vbk

gmarshall56
Offline
Joined: 2007-08-31

vbk:
Well, after trying everything you said to do, and after taking a few days to get over my extreme disappointment, unfortuantely I have to say that I am still having the problem of eclipse closing when GF publishes.

I started and stopped the erver with asadmin successfully. I received no errors when completing this exercise. I can post the command prompt messages from the execution of these commands if you care to see them.

Anyway, I remain frustrated and annoyed about all this. I know you have the same OS (VISTA Business) as I have. I believe we have the same versions of Eclispse, GlassFish and SUN SDK installed. But you do not have the issues that I have.

Unless you or anybody else can offer some additional insites as to what my problem is ( configuration issues?) I'm thinking my next step is to not use GF but instead ask what other JEE server I could use in order to go forward with my project.

Thank you again for your time here. I look forward to your or anybody else's suggestions. If you care to know about any of the config settings I have concerning this issue please post.

Gary

Ludovic Champenois

glassfish@javadesktop.org wrote:
> vbk:
> Well, after trying everything you said to do, and after taking a few days to get over my extreme disappointment, unfortuantely I have to say that I am still having the problem of eclipse closing when GF publishes.
>
> I started and stopped the erver with asadmin successfully. I received no errors when completing this exercise. I can post the command prompt messages from the execution of these commands if you care to see them.
>
> Anyway, I remain frustrated and annoyed about all this. I know you have the same OS (VISTA Business) as I have. I believe we have the same versions of Eclispse, GlassFish and SUN SDK installed. But you do not have the issues that I have.
>
> Unless you or anybody else can offer some additional insites as to what my problem is ( configuration issues?) I'm thinking my next step is to not use GF but instead ask what other JEE server I could use in order to go forward with my project.
>
>
I understand the frustration there. I guess you are blaming the
GlassFish plugin for Eclipse. This plugin is using official Eclipse WTP
APIs for a server connector. I still cannot understand how the code
written in this plugin can trigger an Eclipse crash. I am more inclined
in a bug on the Eclipse+environment side.
Not being able to reproduce the bug on our side is a sad situation as we
cannot understand a state we cannot reproduce.

Ludo
> Thank you again for your time here. I look forward to your or anybody else's suggestions. If you care to know about any of the config settings I have concerning this issue please post.
>
> Gary
> [Message sent by forum member 'gmarshall56' (gmarshall56)]
>
> http://forums.java.net/jive/thread.jspa?messageID=279704
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Rochelle Raccah

I'd like to try to help you isolate whether this might be a glassfish
problem, a WTP update problem, an eclipse problem, or a problem with
your particular web project.

Can you try a few experiments:
1) Try to install the same versions of eclipse and glassfish, but skip
the WTP update, and use a different workspace directory, then try to run
a brand new test project on glassfish
2) Same as 1, but try your existing workspace & test project
3) Same as 1, but do the wtp upgrade
4) If you haven't identified one of the above as a problem, try running
your test project on another server (it could even be glassfish v3) and
help us diagnose if it is the version of the appserver causing the problem.

Hopefully, with this data we can pinpoint the problem.

Thanks!
Rochelle

glassfish@javadesktop.org wrote:
> All
>
> I downloaded and installed the GlassFish and SDK bundle containing the Sun Java System Application Server (GlassFish) and SDKs (GlassFish and SDK Update 5) that can be found here:
>
> http://java.sun.com/javaee/community/glassfish/index.jsp
>
> Then I downloaded the WTP 2.0.2 in my attempt to get the fixes to the 2.0.0 and 2.0.1 releases. I downloaded this bundle from here:
>
> http://download.eclipse.org/webtools/downloads/drops/R2.0/R-2.0.2-200802...
>
> After downloading this I extracted everything into my current Eclipse directory: C:\Eclipse (Version 3.3.2; Build id: M20080221-1800).
>
> Then I used the script found here to install the GlassFish server adapter into my Eclipse:
>
> https://glassfishplugins.dev.java.net/eclipse33/index.html
>
> I cleared out the eclipse log file. I closed eclipse and rebooted my machine (Dell 2 Duo, 4G laptop running Vista Business).
>
> I open Eclipse. I have an allready existing "TestWebProject" in my workspace. GlassFish is listed in the "Server" tab.
>
> When I click to "run on server" the index.jsp within my testWebProject, GlassFish starts, runs and I get the HTTP Status 404 page instead of displaying my index.jxp page, with the description: "The requested resource() is not available". The "Status" of GlassFish in the "Server" tab says "republish". So I right-click on the fish and select publish. This is when Eclipse breaks and closes.
>
> I have attached the .log file (see Eclipse_log.txt) and a jpeg image (see Eclipse_Break.JPG) showing that the server was in the "Publishing to GlassFish V2..." step when all heck broke loose. Notice that the error occurred when it was "Starting virtual machine..."
>
> Does anybody have any clues about the solution to this problem? Do I possibly have a configuration thats out of whack? Perhaps I hosed things up by downloading and extracting the WTP 2.0.2 over my existing Eclipse install?
>
> Thanks to all for your assistance.
> Gary
> [Message sent by forum member 'gmarshall56' (gmarshall56)]
>
> http://forums.java.net/jive/thread.jspa?messageID=275473
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

gmarshall56
Offline
Joined: 2007-08-31

Rochelle:
My apologies for taking so long to respond back to you. I have been very busy with work and have taken some vacation time over this Memorial day weekend.

Thank you very much for resonding to my request for assistance. I have completed a couple of the tests that you asked to be completed.

The first test I completed, per your 1), where I installed the same versions of eclipse and glassfish, but skip the WTP update, resulted in an error occurring when I select to "run on server" the index.jsp page in my TestWebPJ. Once again I received the error message while the server was attempting to publish. I have attached two files for your review: see Eclipse_Trial_1.log and Eclipse_Trial_1.jpeg.

Unfortunately I managed to wipe out my existing workspace therefore I could not run your test 2), however I did run your test 3). I will post another message attaching the output for your review from that test.

Thank you again for your time
Gary

Rochelle Raccah

It seems like in your first experiment you are running into eclipse
issue . Is that
why you were trying to upgrade WTP?

I need to look into your experiment #3 a bit more and see if I can
figure out the problem.

I'll let you know.

Thanks,
Rochelle

glassfish@javadesktop.org wrote:
> Rochelle:
> My apologies for taking so long to respond back to you. I have been very busy with work and have taken some vacation time over this Memorial day weekend.
>
> Thank you very much for resonding to my request for assistance. I have completed a couple of the tests that you asked to be completed.
>
> The first test I completed, per your 1), where I installed the same versions of eclipse and glassfish, but skip the WTP update, resulted in an error occurring when I select to "run on server" the index.jsp page in my TestWebPJ. Once again I received the error message while the server was attempting to publish. I have attached two files for your review: see Eclipse_Trial_1.log and Eclipse_Trial_1.jpeg.
>
> Unfortunately I managed to wipe out my existing workspace therefore I could not run your test 2), however I did run your test 3). I will post another message attaching the output for your review from that test.
>
> Thank you again for your time
> Gary
> [Message sent by forum member 'gmarshall56' (gmarshall56)]
>
> http://forums.java.net/jive/thread.jspa?messageID=276561
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Rochelle Raccah

Hi Gary,

I was able to reproduce this today and get the WTP patch updates to fix
it. Here's what I did:

- Install the eclipse you mentioned originally
- Install GlassFish v2 ur2 (note that the problem happens with GlassFish
v3 as well, so I don't believe your SDK is any different)
- Start with a clean workspace
- Download the server adapter for GlassFish from within eclipse, create
a local server as well
- Restart as part of the server adapter download
- Create a Dynamic Web Project with just a simple index.jsp
- Try to run on server - get the NPE you mentioned, which is bug

- Create a new server for glassfish v3
- Stop my v2 server
- Run my Dynamic Web Project on the v3 server - get same NPE

Now for the fix:
- Go to Help->Software Updates->Find and Install... in the main menu
- Leave the first radio button chosen - updates of currently installed
features
- Choose the automatically select mirrors in the Update Site Mirrors
dialog that pops up
- At this point, I had to wait about 5 minutes. The results then
contain 2 top level items: mylyn & patches (under some url). I
unchecked mylyn and checked patches, then followed the wizard to accept
licenses, install, etc.. After restart, my app deployment works properly.

Please let me know if this works for you.

Thanks,
Rochelle

Rochelle Raccah wrote:
> It seems like in your first experiment you are running into eclipse
> issue . Is that
> why you were trying to upgrade WTP?
>
> I need to look into your experiment #3 a bit more and see if I can
> figure out the problem.
>
> I'll let you know.
>
> Thanks,
> Rochelle
>
> glassfish@javadesktop.org wrote:
>> Rochelle:
>> My apologies for taking so long to respond back to you. I have been
>> very busy with work and have taken some vacation time over this
>> Memorial day weekend.
>>
>> Thank you very much for resonding to my request for assistance. I
>> have completed a couple of the tests that you asked to be completed.
>> The first test I completed, per your 1), where I installed the same
>> versions of eclipse and glassfish, but skip the WTP update, resulted
>> in an error occurring when I select to "run on server" the index.jsp
>> page in my TestWebPJ. Once again I received the error message while
>> the server was attempting to publish. I have attached two files for
>> your review: see Eclipse_Trial_1.log and Eclipse_Trial_1.jpeg.
>>
>> Unfortunately I managed to wipe out my existing workspace therefore I
>> could not run your test 2), however I did run your test 3). I will
>> post another message attaching the output for your review from that test.
>>
>> Thank you again for your time
>> Gary
>> [Message sent by forum member 'gmarshall56' (gmarshall56)]
>>
>> http://forums.java.net/jive/thread.jspa?messageID=276561
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
>> For additional commands, e-mail: users-help@glassfish.dev.java.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Rochelle Raccah

One more note - RC1 for eclipse 3.4 is available
(http://www.eclipse.org/downloads/packages/) and the problem is also
fixed (without patches) there.

Rochelle

Rochelle Raccah wrote:
> Hi Gary,
>
> I was able to reproduce this today and get the WTP patch updates to fix
> it. Here's what I did:
>
> - Install the eclipse you mentioned originally
> - Install GlassFish v2 ur2 (note that the problem happens with GlassFish
> v3 as well, so I don't believe your SDK is any different)
> - Start with a clean workspace
> - Download the server adapter for GlassFish from within eclipse, create
> a local server as well
> - Restart as part of the server adapter download
> - Create a Dynamic Web Project with just a simple index.jsp
> - Try to run on server - get the NPE you mentioned, which is bug
>
> - Create a new server for glassfish v3
> - Stop my v2 server
> - Run my Dynamic Web Project on the v3 server - get same NPE
>
> Now for the fix:
> - Go to Help->Software Updates->Find and Install... in the main menu
> - Leave the first radio button chosen - updates of currently installed
> features
> - Choose the automatically select mirrors in the Update Site Mirrors
> dialog that pops up
> - At this point, I had to wait about 5 minutes. The results then
> contain 2 top level items: mylyn & patches (under some url). I
> unchecked mylyn and checked patches, then followed the wizard to accept
> licenses, install, etc.. After restart, my app deployment works properly.
>
> Please let me know if this works for you.
>
> Thanks,
> Rochelle
>
>
> Rochelle Raccah wrote:
>> It seems like in your first experiment you are running into eclipse
>> issue . Is that
>> why you were trying to upgrade WTP?
>>
>> I need to look into your experiment #3 a bit more and see if I can
>> figure out the problem.
>>
>> I'll let you know.
>>
>> Thanks,
>> Rochelle
>>
>> glassfish@javadesktop.org wrote:
>>> Rochelle:
>>> My apologies for taking so long to respond back to you. I have been
>>> very busy with work and have taken some vacation time over this
>>> Memorial day weekend.
>>>
>>> Thank you very much for resonding to my request for assistance. I
>>> have completed a couple of the tests that you asked to be completed.
>>> The first test I completed, per your 1), where I installed the same
>>> versions of eclipse and glassfish, but skip the WTP update, resulted
>>> in an error occurring when I select to "run on server" the index.jsp
>>> page in my TestWebPJ. Once again I received the error message while
>>> the server was attempting to publish. I have attached two files for
>>> your review: see Eclipse_Trial_1.log and Eclipse_Trial_1.jpeg.
>>>
>>> Unfortunately I managed to wipe out my existing workspace therefore I
>>> could not run your test 2), however I did run your test 3). I will
>>> post another message attaching the output for your review from that
>>> test.
>>>
>>> Thank you again for your time
>>> Gary
>>> [Message sent by forum member 'gmarshall56' (gmarshall56)]
>>>
>>> http://forums.java.net/jive/thread.jspa?messageID=276561
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
>>> For additional commands, e-mail: users-help@glassfish.dev.java.net
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
>> For additional commands, e-mail: users-help@glassfish.dev.java.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

gmarshall56
Offline
Joined: 2007-08-31

Rochelle:
Unfortunately I am not having the same success as you had. Over the last several days I have tried a number of different tests based on the solution you provided in your posting, however I continue to get the error in the publishing step when I select to "run on server". Perhaps its because I am running everything on a Vista machine? I don't know. Are you running on Windows or something else?

Here is a rundown of what I have tried so far:
1. Removed current Eclipse Europa with WTP installation
2. Cleared workspace folder
3. Uninstalled sjsas-9_1_01
4. Re-booted machine
5. Installed Eclipse Europa at c:\eclipse
6. Overlaid this install with the WTP download: wtp-R-2.0.2-
20080223205547_WTP
7. Downloaded and installed sjsas-9_1_02 to C:\Sun\Appserver
8. Started Eclipse Europa, downloaded GlassFish server adapter
9. After restart, completed the software updates as you described. I
received the same two top level items as you did and unchecked the
mylyn one and checked the patches one
10. After restart I created a TestDynamicWepPJ and an index.jsp. When I
clicked on this new index.jsp and selected to run on server, the server
started and, once again, when it got to the publish step, I received the
error and Eclipse closes. I have attached the log file if you would like
to look at it.
11. At this point I downloaded and installed Eclipse 3.4 (Ganymede) I
used a fresh new workspace and I also used the software updates to
download what I found in the listing where patches to 3.4 ( software
updates does not work the same as in Eclipse 3.3). Again I created a
TestDynamicWebPJ and an index.jsp. When I tried to run this
index.jsp on the server I again received the same error and Eclipse
closed.

As I stated earlier, I tried all kinds of different flavors of the above – one without overlaying the Eclipse Europa install with the WTP, for example, and when I did that I received the HTTP 404 error I mentioned in my previous posting. When I received this HTTP 404 error I selected the server to “Publish” and again, I received the same error and Eclipse closed. When I reopened Eclipse I created a new index2.jsp in my tesDynamicWepPJ and selected to run on server and again I received the same results. At this point I overlaid the Eclipse installation with the WTP. When I went back into Eclipse and selected to run on server the index.jsp file that previously gave me the HTTP404 error, I did not get the 404 error, but instead got the same error when publishing and Eclipse closed.

Rochelle I am certainly grateful that you are assisting me here, and, if you want I am happy and willing to continue to perform more tests here at home on my machine in order to get to the bottom of this issue if it helps you and the Eclipse / GlassFish team. I don’t think we are hitting the exact problem here. I may be wrong but I believe there is still a bug somewhere that we have yet to uncover, or possibly it still exists when running on Vista. Do you have any idea why a solution works on your machine and not on mine? Is there some kind of configuration issue I need to be looking at?

Thanks again
Gary