JBoss Publish error on Eclipse 3.4 [message #216323] |
Sat, 28 June 2008 04:43  |
Eclipse User |
|
|
|
Hi,
I just installed Eclipse JEE 3.4 on Ubuntu 8.4. I configured JBoss 4.2
as Java EE runtime. Created a test project and try to publish it on the
server. Eclipse is not able to publish the Web module to JBoss. I get
the following error.
I have rechecked the permissions on the JBoss folder. User running the
Eclipse have full permissions to read write the JBoss folder.
Any clue what wrong is happening?
Thanks,
Raj
<stacktrace>
ENTRY org.eclipse.jst.server.generic.core 4 0 2008-06-28 14:06:45.757
!MESSAGE Publish failed using Ant publisher
!STACK 1
org.eclipse.core.runtime.CoreException: Could not replace with temp file
/tmp/tmp46953.MF.
at
org.eclipse.jst.server.generic.core.internal.publishers.Abst ractModuleAssembler.copyModule(AbstractModuleAssembler.java: 162)
at
org.eclipse.jst.server.generic.core.internal.publishers.WarM oduleAssembler.assemble(WarModuleAssembler.java:31)
at
org.eclipse.jst.server.generic.core.internal.publishers.AntP ublisher.assembleModule(AntPublisher.java:126)
at
org.eclipse.jst.server.generic.core.internal.publishers.AntP ublisher.publish(AntPublisher.java:110)
at
org.eclipse.jst.server.generic.core.internal.GenericServerBe haviour.publishModule(GenericServerBehaviour.java:82)
at
org.eclipse.wst.server.core.model.ServerBehaviourDelegate.pu blishModule(ServerBehaviourDelegate.java:944)
at
org.eclipse.wst.server.core.model.ServerBehaviourDelegate.pu blishModules(ServerBehaviourDelegate.java:1034)
at
org.eclipse.wst.server.core.model.ServerBehaviourDelegate.pu blish(ServerBehaviourDelegate.java:868)
at
org.eclipse.wst.server.core.model.ServerBehaviourDelegate.pu blish(ServerBehaviourDelegate.java:707)
at
org.eclipse.wst.server.core.internal.Server.publishImpl(Serv er.java:2406)
at
org.eclipse.wst.server.core.internal.Server$PublishJob.run(S erver.java:265)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
!SUBENTRY 1 org.eclipse.wst.server.core 4 0 2008-06-28 14:06:45.757
!MESSAGE Could not replace with temp file /tmp/tmp46953.MF.
</stacktrace>
|
|
|
Re: JBoss Publish error on Eclipse 3.4 [message #216331 is a reply to message #216323] |
Sat, 28 June 2008 18:21   |
Eclipse User |
|
|
|
On Sat, 28 Jun 2008 04:43:47 -0400, Raj Saini <rajsaini@gmail.com> wrote:
>
> I have rechecked the permissions on the JBoss folder. User running the
> Eclipse have full permissions to read write the JBoss folder.
>
> Any clue what wrong is happening?
>
......
> !STACK 1
> org.eclipse.core.runtime.CoreException: Could not replace with temp file /tmp/tmp46953.MF.
> at org.eclipse.jst.server.generic.core.internal.publishers.Abst ractModuleAssembler.copyModule
> (AbstractModuleAssembler.java:162)
You mention checking permmissions on "JBoss Folder", but the folder in the message is /tmp,
and OS folder.
In somce cases, for Java, people have to change the default TMP folder (used by Java and many servers) to something of their own choice, instead of the OS default.
-Djava.io.tmpdir=/myspecialtmpfolder
I am not sure if you need this in eclipse startup, or your JBoss startup.
I have _no_ idea if this applies to JBoss but I know some VMs and some servers change the assumed default occasionally when they have a new release, so the java.io.tmpdir is a good way to "force" a consistent temp folder. (especially if you need special permissions, etc).
I doubt if releated to this ... but on some Linux-like setups, the systems /tmp folder is created on a different volumn, may be smaller than some servers need, etc.
HTH
|
|
|
|
Re: JBoss Publish error on Eclipse 3.4 [message #216385 is a reply to message #216331] |
Mon, 30 June 2008 12:30   |
Eclipse User |
|
|
|
>
> You mention checking permmissions on "JBoss Folder", but the folder in the message is /tmp,
> and OS folder.
>
> In somce cases, for Java, people have to change the default TMP folder (used by Java and many servers) to something of their own choice, instead of the OS default.
>
> -Djava.io.tmpdir=/myspecialtmpfolder
>
> I am not sure if you need this in eclipse startup, or your JBoss startup.
>
> I have _no_ idea if this applies to JBoss but I know some VMs and some servers change the assumed default occasionally when they have a new release, so the java.io.tmpdir is a good way to "force" a consistent temp folder. (especially if you need special permissions, etc).
>
> I doubt if releated to this ... but on some Linux-like setups, the systems /tmp folder is created on a different volumn, may be smaller than some servers need, etc.
Thanks for your quick reply. However, I do not think this is the
problem. /tmp directly is writable by he user running Eclipse and JBoss
and many .MF files are created. Moreover 3.3 works perfectly fine with
the same JBoss version, and all others settings unchanged.
To me it clearly looks a bug in publishing logic. I have observed that
Eclipse tries to create the exploded web application structure in the
WTP deploy folder (Its location is in
${workspace.location}/.metadata/.plugins/org.eclipse.wst.ser ver.core/tmp0.
Folders are created successfully but it fails to copy the files to the
exploded directory structure.
If someone confirms this I will create a bug.
Thanks,
Raj
>
> HTH
|
|
|
|
Re: JBoss Publish error on Eclipse 3.4 [message #216754 is a reply to message #216323] |
Thu, 03 July 2008 10:31  |
Eclipse User |
|
|
|
Bugzilla bug create. Those who are interested can track it at
https://bugs.eclipse.org/bugs/show_bug.cgi?id=239396.
Raj
Raj Saini wrote:
> Hi,
>
> I just installed Eclipse JEE 3.4 on Ubuntu 8.4. I configured JBoss 4.2
> as Java EE runtime. Created a test project and try to publish it on the
> server. Eclipse is not able to publish the Web module to JBoss. I get
> the following error.
>
> I have rechecked the permissions on the JBoss folder. User running the
> Eclipse have full permissions to read write the JBoss folder.
>
> Any clue what wrong is happening?
>
> Thanks,
>
> Raj
>
> <stacktrace>
>
> ENTRY org.eclipse.jst.server.generic.core 4 0 2008-06-28 14:06:45.757
> !MESSAGE Publish failed using Ant publisher
> !STACK 1
> org.eclipse.core.runtime.CoreException: Could not replace with temp file
> /tmp/tmp46953.MF.
> at
> org.eclipse.jst.server.generic.core.internal.publishers.Abst ractModuleAssembler.copyModule(AbstractModuleAssembler.java: 162)
>
> at
> org.eclipse.jst.server.generic.core.internal.publishers.WarM oduleAssembler.assemble(WarModuleAssembler.java:31)
>
> at
> org.eclipse.jst.server.generic.core.internal.publishers.AntP ublisher.assembleModule(AntPublisher.java:126)
>
> at
> org.eclipse.jst.server.generic.core.internal.publishers.AntP ublisher.publish(AntPublisher.java:110)
>
> at
> org.eclipse.jst.server.generic.core.internal.GenericServerBe haviour.publishModule(GenericServerBehaviour.java:82)
>
> at
> org.eclipse.wst.server.core.model.ServerBehaviourDelegate.pu blishModule(ServerBehaviourDelegate.java:944)
>
> at
> org.eclipse.wst.server.core.model.ServerBehaviourDelegate.pu blishModules(ServerBehaviourDelegate.java:1034)
>
> at
> org.eclipse.wst.server.core.model.ServerBehaviourDelegate.pu blish(ServerBehaviourDelegate.java:868)
>
> at
> org.eclipse.wst.server.core.model.ServerBehaviourDelegate.pu blish(ServerBehaviourDelegate.java:707)
>
> at
> org.eclipse.wst.server.core.internal.Server.publishImpl(Serv er.java:2406)
> at
> org.eclipse.wst.server.core.internal.Server$PublishJob.run(S erver.java:265)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> !SUBENTRY 1 org.eclipse.wst.server.core 4 0 2008-06-28 14:06:45.757
> !MESSAGE Could not replace with temp file /tmp/tmp46953.MF.
>
> </stacktrace>
|
|
|
Powered by
FUDForum. Page generated in 0.07141 seconds