Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Custom Ant Publisher for JBoss 4.2 Server
Custom Ant Publisher for JBoss 4.2 Server [message #220145] Thu, 04 September 2008 14:11 Go to next message
Eclipse User
Originally posted by: jlar310.yahoo.com

My EJB jar file requires additional classes that the default
publisher fails to include. So I wrote an ant build file to make
my jar file just how I want it.

I was working on creating ant targets to drop my custom jar file
in the JBoss deploy directory when, quite by accident, I
discovered that if I double clicked "JBoss v4.2 at localhost" in
the "Servers" view, it opened a property page with a section
called "Ant Publisher Properties".

However, I am unable to make this work and I can find no useful
documentation. Whatever I put in the "Build File" field, I get a
popup titled "Server Editor" that says "Property can not be found".

And if it did accept my build file, what else do I need to know?
What target will it attempt to call in order to publish?

So, what's the deal? Is this a broken feature? How can I make
this work for me? I would prefer to use the built-in publishing
features instead of having to remember to re-publish manually
with my own ant file.

Eclipse 3.4
org.eclipse.jst.server.generic.jboss v1.5.205

Thanks,

Jeff
Re: Custom Ant Publisher for JBoss 4.2 Server [message #223559 is a reply to message #220145] Thu, 06 November 2008 04:22 Go to previous messageGo to next message
Alvaro Romero is currently offline Alvaro Romero
Messages: 5
Registered: July 2009
Junior Member
Jeff wrote:

> My EJB jar file requires additional classes that the default
> publisher fails to include. So I wrote an ant build file to make
> my jar file just how I want it.

> I was working on creating ant targets to drop my custom jar file
> in the JBoss deploy directory when, quite by accident, I
> discovered that if I double clicked "JBoss v4.2 at localhost" in
> the "Servers" view, it opened a property page with a section
> called "Ant Publisher Properties".

> However, I am unable to make this work and I can find no useful
> documentation. Whatever I put in the "Build File" field, I get a
> popup titled "Server Editor" that says "Property can not be found".

> And if it did accept my build file, what else do I need to know?
> What target will it attempt to call in order to publish?

> So, what's the deal? Is this a broken feature? How can I make
> this work for me? I would prefer to use the built-in publishing
> features instead of having to remember to re-publish manually
> with my own ant file.

> Eclipse 3.4
> org.eclipse.jst.server.generic.jboss v1.5.205

> Thanks,

> Jeff
I have the same problem with client JARs, because we use Data Transport
Objects to communicate clients and servers and they must be distributed in
the client JARs with the needed EJB interfaces.

We are migrating from a JBuilder project structure; JAR generation and
deployment is a real mess!!! With one more difficult task : generating an
uncompressed EAR/WAR strucure :-).

I look at .project files, and I found the <parameters> tag for builders...
Do you know what parameters have the EAR/WAR/JAR builders? Maybe here is
the solution.
Re: Custom Ant Publisher for JBoss 4.2 Server [message #228716 is a reply to message #223559] Mon, 09 March 2009 13:12 Go to previous messageGo to next message
Daniel Kranowski is currently offline Daniel Kranowski
Messages: 7
Registered: July 2009
Junior Member
Alvaro Romero wrote:
> Jeff wrote:
>> I discovered that if I double clicked "JBoss v4.2 at localhost" in
>> the "Servers" view, it opened a property page with a section
>> called "Ant Publisher Properties".
>>
>> However, I am unable to make this work and I can find no useful
>> documentation. Whatever I put in the "Build File" field, I get a
>> popup titled "Server Editor" that says "Property can not be found".
>>
> I have the same problem with client JARs ...
> I look at .project files, and I found the <parameters> tag for builders...
> Do you know what parameters have the EAR/WAR/JAR builders? Maybe here is
> the solution.

Does anyone else have a solution to "Server Editor: Property cannot be
found" in Ant Publisher Properties? Or mainly to the issue of not being
able to force eclipse to use a custom Ant build file when clicking Publish
on a Server?

I am using JBoss 5.0.0.GA inside Eclipse 3.4.

At first I thought I was getting the Server Editor error because after
Browsing to my build.xml file it was entered into the Build File field as
{$workspace_loc:/myprjname/build.xml}. Then I re-entered it with an
absolute path "C:\mywkspace\myprjname\build.xml" and got the same
"Property cannot be found" error.

I can right-click on build.xml and do Run As > Ant Build (choosing a
deploy step) but then the Server still says Republish not Synchronized,
which is misleading. And what's worse, whenever I restart the Server it
invokes Publish on the default jboss323.xml buildfile, which overwrites my
manual Ant Build.

Daniel
Re: Custom Ant Publisher for JBoss 4.2 Server [message #228722 is a reply to message #228716] Tue, 10 March 2009 05:19 Go to previous message
Eclipse User
Originally posted by: wknauf_NO_._INSIDE_hg-online.de

Hi Daniel,

I think you have to modify "jboss323.xml". Maybe you can call your custom
buildfile depending on the project name.

Best regards

Wolfgang

Daniel Kranowski schrieb:

>
> At first I thought I was getting the Server Editor error because after
> Browsing to my build.xml file it was entered into the Build File field
> as {$workspace_loc:/myprjname/build.xml}. Then I re-entered it with an
> absolute path "C:\mywkspace\myprjname\build.xml" and got the same
> "Property cannot be found" error.
>
> I can right-click on build.xml and do Run As > Ant Build (choosing a
> deploy step) but then the Server still says Republish not Synchronized,
> which is misleading. And what's worse, whenever I restart the Server it
> invokes Publish on the default jboss323.xml buildfile, which overwrites
> my manual Ant Build.
>
> Daniel
>
>
>
Previous Topic:Newbie: publishing a file to a tomcat server
Next Topic:ComponentProjectMigrator
Goto Forum:
  


Current Time: Sat Aug 30 18:29:07 EDT 2014

Powered by FUDForum. Page generated in 0.01787 seconds