This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 257691 - cannot deploy on glassfish
Summary: cannot deploy on glassfish
Status: RESOLVED DUPLICATE of bug 261243
Alias: None
Product: WTP ServerTools
Classification: WebTools
Component: jst.server (show other bugs)
Version: 3.1   Edit
Hardware: PC All
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: raccah CLA
QA Contact: Tim deBoer CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-05 05:32 EST by Dimitar Giormov CLA
Modified: 2009-02-05 17:06 EST (History)
4 users (show)

See Also:


Attachments
build log (755 bytes, text/plain)
2008-12-05 05:32 EST, Dimitar Giormov CLA
no flags Details
server log (3.85 KB, text/plain)
2008-12-05 05:33 EST, Dimitar Giormov CLA
no flags Details
binary1 J2ee 1.4 (10.18 KB, application/octet-stream)
2008-12-10 04:46 EST, Dimitar Giormov CLA
no flags Details
ear 5.0 (3.85 KB, application/octet-stream)
2008-12-10 04:47 EST, Dimitar Giormov CLA
no flags Details
projects (48.84 KB, application/zip)
2008-12-11 02:51 EST, Dimitar Giormov CLA
no flags Details
manifest file (39 bytes, text/plain)
2008-12-16 07:41 EST, Dimitar Giormov CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dimitar Giormov CLA 2008-12-05 05:32:45 EST
Created attachment 119604 [details]
build log

am not sure if this is the right component if not please redirect.

Trying to deploy on glassfish J2ee 1.4 or 5.0 projects using the J2ee Smoke test
and the deploy fails with errors in build log and the server log. 
See attached documents.
Comment 1 Dimitar Giormov CLA 2008-12-05 05:33:17 EST
Created attachment 119605 [details]
server log
Comment 2 Dimitar Giormov CLA 2008-12-05 05:33:51 EST
there were no errors in eclipse error log
Comment 3 Angel Vera CLA 2008-12-05 08:08:39 EST
Sending over to the Rochelle for further investigation, this might not be a WTP failure but rather an adopter failure. I am keeping in the WTP for now to ensure that it is not a problem in generic server adapter framework.
Comment 4 raccah CLA 2008-12-05 14:59:15 EST
Which version of glassfish?  Which version of the glassfish plugin?  Can you include a link to the smoke test project for me?
Comment 5 raccah CLA 2008-12-08 15:42:43 EST
seems like a corrupted manifest in the archives, but I'm not sure where the sources are...
Comment 6 Dimitar Giormov CLA 2008-12-10 04:40:02 EST
Hi,
it was latest glassfish v2.

I have downloaded the server adapter using the install runtime option.

here is the smoketes results:
http://wiki.eclipse.org/WTP_Smoke_Test_Results_R31_120408

this is the scenario:
http://wiki.eclipse.org/J2EE_Smoke_Test_(WTP_3.0)
Comment 7 Dimitar Giormov CLA 2008-12-10 04:46:44 EST
Created attachment 120012 [details]
binary1 J2ee 1.4
Comment 8 Dimitar Giormov CLA 2008-12-10 04:47:45 EST
Created attachment 120013 [details]
ear 5.0

here are the ears produced, I still haven't tested it on windows though.
Comment 9 raccah CLA 2008-12-10 19:50:09 EST
I was able to deploy both ears (via the admin console) to my V2 installation, so the ears seem to be okay.  Perhaps you can give me your eclipse projects?  Maybe those have the problem.
Comment 10 Dimitar Giormov CLA 2008-12-11 02:51:51 EST
Created attachment 120157 [details]
projects

hope that this will help.
Comment 11 raccah CLA 2008-12-11 19:56:43 EST
Can you tell me which update site to use to get the xdoclet support?  It is not in any of the preconfigured ones.
Comment 12 Dimitar Giormov CLA 2008-12-15 03:35:39 EST
http://sourceforge.net/project/showfiles.php?group_id=31602

version
1.2.3
Comment 13 raccah CLA 2008-12-15 16:31:23 EST
Thanks.  I tried with that and it works for me.  Can you:
1) Tell me the path to your project?  The log makes it sound like the url might be too long - maybe the problem is your path?  I put mine directly on my desktop, so that might account for the difference.
2) Attach the contents of your manifest file for the project which is failing?  Perhaps I can diff that to mine and we can see what is wrong there.
Comment 14 Dimitar Giormov CLA 2008-12-16 07:40:32 EST
I am using OSX 10.5.5 and there should not be a problem with the length, but I have suspected that and put both the server and the workspace in my home folder, but the error remains so the project is in: /Users/gormov/workspace/dynweb5
the server is in /Users/gormov/glassfish

I will attach the manifest.

Yesterday I think I saw some bug related to the manifest and linux based pc's but I could not find it today.
Comment 15 Dimitar Giormov CLA 2008-12-16 07:41:39 EST
Created attachment 120561 [details]
manifest file
Comment 16 raccah CLA 2008-12-17 17:53:56 EST
Which manifest is this?  I think it's ear14.ear's.  If so, mine has no Class-Path:  entry where yours has an empty one.  I believe that is the problem.  Can you check if that is the problem, then if that is possibly a result of wrong project/javaee dependencies in the project?
Comment 17 raccah CLA 2009-01-05 19:34:25 EST
Dimitar, have you had a chance to check the Class-Path contents in the manifest and see if that is the problem?
Comment 18 raccah CLA 2009-01-22 18:19:28 EST
Dimitar, I have not heard back from you on whether your manifest is corrupted in the way I suspect.  Since it has been about a month, I will close this bug now and assume that is indeed the problem.  If you find otherwise, please reopen it with the additional info.
Comment 19 Dimitar Giormov CLA 2009-01-26 05:19:29 EST
hi

sorry about the huge delay. I was on vacation and now I had some time to try some things.

So what I have additionally tried is to test with 3.0.4 and the same server
result: everything works ok
I have installed the server in the root of the OS X 
and placed the IDE in the root also so character length should be out of the way
the results were the same.
Comment 20 Dimitar Giormov CLA 2009-01-26 05:20:52 EST
it looks like this is the reason
https://bugs.eclipse.org/bugs/show_bug.cgi?id=261243

I will put the bug as depends on
Comment 21 raccah CLA 2009-01-27 16:15:21 EST
Thanks for the additional info, Dimitar.  Should this bug still remain open and assigned to me?  Or should it be transferred to the owner of the other bug and then transferred back to me if needed once the other bug is fixed?
Comment 22 Angel Vera CLA 2009-01-27 17:18:24 EST
I haven't been following this defect closely, but unless there is a way to confirm that the problem is indeed due to 261243, it should remain open and assigned to you. But so far it sounds to me that we can't get to deploy part until 261243 is fixed. 


Comment 23 Dimitar Giormov CLA 2009-01-29 09:19:28 EST
I agree with Angel if the issue is gone once the depending bug is fixed we can close this issue as well.
Comment 24 kiril mitov CLA 2009-02-03 05:09:10 EST
Reproduced under gentoo linux. Mark OS as All
Comment 25 Angel Vera CLA 2009-02-05 17:06:22 EST
Having fixed the depending problem. I am confident that the changes will apply to this bug, and the problem is indeed caused by the same bug. 

Thus, I am removing the depends on, and marking as dup of 261243.

*** This bug has been marked as a duplicate of bug 261243 ***