Skip to main content

Publishing Project Error

10 replies [Last post]
fthamura
Offline
Joined: 2003-06-14
Points: 0

hi all

anyone here have try the glassfish plugins in eclipse on Ubuntu HH environment

i try to use it , but got the Ant publishing problem

i think the ant after run as server, cannot copy the binary from /tmp to glassfish

can help?

Reply viewing options

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

Your /etc/fstab reveals that you have two partitions.
1. /
2. /home

The default tmp directory is /tmp, so it's off the partition mounted at[b] /[/b], root.
Your workspace, ide, (also GF?), is somewhere off [b]/home[/b], another partition.
This scenario is where the bug kicks in due to a certain java api call used to move a file between directories. Until that method is fixed to use a more suitable way to move the file (via Java/ant), we need to use the workaround.
The main part of the workaround is simple, create a tmp directory on the same partition as your Java development environment. You can create this directory anywhere off /home/frans in your case.
But then, how should Java/Eclipse know to use this new tmp dir you created? After all it will still try to use /tmp! This is why we need to add the -Djava.io.tmpdir=/home/frans/whateverTmpYouCreatedBelongsHere to your eclipse.ini. This simply tells Eclipse to use your new tmp as tmp. And since it is on the same partition, no bug.
To clarify. The -D... is not a workaround, it simply tells eclipse where your tmp dir is. The main workaround is to have the tmp dir on the same partition as all your Java stuff.

For Windows users: It is possible that if you have a D:\> drive for your Java/Eclipse stuff, and your tmp or temp dir is on C:\, you might get the same bug.
----------------------------

Frans, I don't know why you deleted the Manifest file.

Why not try a new test project. Simply create a new ejb or web project, and see if it deploys. But FIRST, please take care of the aforementioned steps, the new tmp dir, and the -D... in the eclipse.ini.

Hope this helps.
Have a nice weekend.
natG

fthamura
Offline
Joined: 2003-06-14
Points: 0

this is my eclipse.ini

-showsplash
org.eclipse.platform
-framework
plugins/org.eclipse.osgi_3.4.0.v20080605-1900.jar
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m
-Djava.io.tmpdir=/home/frans/dev/workspace/tmp

you wrote about -D, is this the right one?

natg
Offline
Joined: 2007-08-01
Points: 0

(Please excuse the delay. Thanks.)

> -Djava.io.tmpdir=/home/frans/dev/workspace/tmp
> you wrote about -D, is this the right one?

[b]If[/b] you have a directory,[i] /home/frans/dev/workspace/tmp[/i], then yes, it is the right one.

nat

sumitrayleo
Offline
Joined: 2009-09-18
Points: 0

I have faced this issue while publishing my application in tomcat through eclipse IDE (OS Win XP).

Error description:
Publishing failed with multiple errors
Could not replace with temp file D:\PRM_workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\temp\tmp4134.class.
.....
.....

Probably Solution:
1. Remove the project from the server
2. Clean Tomcat working directory
3. Clean..
4. Open the server overview
5. In the "Server Locations" section select the radio option "Use custom location (does not modify the Tomcat installation)"
6. Map it to some physical location (say C:\temp_eclipse) other than to the current workspace

hassanrok
Offline
Joined: 2010-05-28
Points: 0

A few times a week, the project manager has error 0x80004005 in his Project
Server Spooler when publishing the project. When he retries some minutes
later, there is no problem.

[url=http://www.carpartswarehouse.com/carmodels/CP17/Lincoln/Blackwood.html]Lincoln Blackwood[/url]

natg
Offline
Joined: 2007-08-01
Points: 0

Hi again;
Rochelle emailed me some of your posts on the list. (Sorry, but I assumed that this forum and mailing list were synced. Anyhow...)

In a post on that list you write:

> this is my command

> frans@aero:~$ cd dev
> frans@aero:~/dev$ ./eclipse/eclipse -Djava.io.tmpdir=/home/frans/dev/workspace

>still have Ant Publisher error

1. [important side-note] I don't think it's a good idea to use the workspace root as tmp.
Please create a tmp dir first.
frans@aero:~/dev$ mkdir /home/frans/dev/workspace/tmp
(Put tmp off the workspace to ensure its on the same partition.)

2. You are passing the -D parameter (the workaround) in the wrong place.
Please edit the ./eclipse/eclipse/eclipse.ini and on a new line, last line ok, add the aforementioned -Djava.io.tmpdir=/home/frans/dev/workspace/tmp.

2b. Restart eclipse with*out* the extra -D, just:
frans@aero:~/dev$ ./eclipse/eclipse

Hope this helps. If not, please do post your /etc/fstab (cat /etc/fstab) which will reveal how your drive(s) are partitioned.

nat

fthamura
Offline
Joined: 2003-06-14
Points: 0

i got this new error

the ant can copy the binary

Publishing failed
Publish failed using Ant publisher
Error copying file META-INF/MANIFEST.MF: No such file or directory
Publish failed using Ant publisher
Error copying file META-INF/MANIFEST.MF: No such file or directory

fthamura
Offline
Joined: 2003-06-14
Points: 0

my fstab

# /etc/fstab: static file system information.
#
#
proc /proc proc defaults 0 0
# /dev/sda6
UUID=f604df36-b142-4944-83d1-ba2ab9a3394d / ext3 relatime,errors=remount-ro 0 1
# /dev/sda8
UUID=7893b58f-c81b-4b1f-89d8-6fab61d15813 /home ext3 relatime 0 2
# /dev/sda7
UUID=0bedefba-9247-4add-a571-5e267a668659 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0

fthamura
Offline
Joined: 2003-06-14
Points: 0

i try to delete the MANIFEST.INF

and got this

Publish failed using Ant publisher
Error copying file WEB-INF/sun-web.xml: No such file or directory

so the ant can copy the compiled code, but the /WEB-INF is not in the /tmp

F

natg
Offline
Joined: 2007-08-01
Points: 0

Frans,

In what directory is:
1) Your Glassfish server?
2) Your Eclipse ide?
3) Your Eclipse workspace?

Also, if you can please post the contents of /etc/fstab.

nat