Building example code using asant - java

I'm studying java web services and trying to follow the oracle tutorial but it tells me to build and deploy the example code using asant. I've looked high and low and I can't find it. It doesn't seem to be included with Glassfish any more. I'm using Glassfish version 3, JDK 1.6.
Can anybody tell me where it is or how to get it?
Thanks in advance.

asant shipped with the GlassFish 2 releases. It was a wrapper that included a number of convenience tasks.
As the team that Sun used to develop GlassFish shrank, some 'features' of the releases were pruned from the GlassFish 3 development work. Asant was one of those features.
Your best bet may be to follow the Web Services section of the Java EE 6 Tutorial. It will be more up-to-date with the current state of the art.

asant is a command line using apache ant, it helps you to build your project using ant, you have to write a build.xml file, and then run the command asant
http://download.java.net/general/open-esb/docs/jbi-ant-targets-reference/target-help/usage.html

Yes I know what it is and what it is supposed to do but I can't find it in my distribution
of glassfish, where it is supposed to be. – ac7web
if you have it installed it should be in: glassfish-Install-Folder/bin

Related

Activiti BPM works with Eclipse neon?

I am new to Java development and working with Activiti BPM.
I am getting started with them.
Activiti BPM says its verified with Eclipse Kepler. However I am using Eclipse Neon currently. I am trying to install Activiti plugin. It says it has to uninstall some plugins like Hana Cloud Plugins to continue with installation.
However I need both the plugins. So thought of using Eclipse Kepler to use Activiti BPM. But it supports till Apache Server 7 only ( and I have Apache 9 with Eclipse Neon )
Please suggest me a possible solution
1) Use Different eclipses to work with Hana Cloud Platform tools, Activiti BPM (Is it possible to setup multiple Apache Servers in same pc like Apache7 and Apache 9)
2) Can be done in Same Eclipse
May be its a quite silly question, please guide me as i am beginner.
Of Course it does!!
I have installed activiti with Eclipse Neon and Apache tomcat 8/9 and it works pretty well.
I have also written a super detailed blog post on this, which starting from the setup, shows how to create not one but two fully working (although, simple) workflows.
You can check it out here and see if it helps.
I've just found this http://bpmn20inaction.blogspot.com.es/2015/08/activiti-designer-5180-released.html
There is a comment on the page saying this:
"Hi Maxence, I've moved on to the Flowable project (http://flowable.org). You can find an updated Designer (with Mars and Neon support) on http://flowable.org/designer/update"
I haven't had time to test it yet (I'll try later at the office)
I hope it helps

Windows Service starting Java not working since Java Upgrade to 8

We've updated our buildserver (Atlassian Bamboo) to Java 8 (JDK).
Since then our integrationtests are failing because our started product does not open any port.
We are building with maven and as part of the integrationtest we are starting our builded product. Our product is a Rest-Api based in an OSGI (equinox) and Jetty.
I tried a lot of things, but nothing helped me to get the product start properly in the maven build.
When I log in on my remote machine and start the product manually everything works fine.
Some more information:
Our buildserver runs as a windows service and our product is written in plain Java.
Presumably you are affected by one or more of the issues discussed in Custom AMIs will not start anymore in Bamboo Cloud (BAM-16291), notably that Bamboo is not compatible with JDK8u60 yet:
Joda-time, one of the libraries used by Bamboo is not compatible with
8u60. We've fixed this problem, but the fix has not been rolled out
yet. Known breakages include S3 interaction and CodeDeploy plugin.
Most/All participants got things working again by downgrading to JDK8u45, as also recommended in Atlassian's most recent update:
Use JDK 8u45. The latest JDKs are incompatible with some 3rd party libraries we're using.
Try to match the layout and scripts of our stock images as closely as possible. This will make it easier for us to provide help if
anything goes wrong.
Choose Oracle if you have the choice between Oracle and OpenJDK flavor of JDK.

Which Eclipse IDE version to choose?

How do I find which Eclipse version I have on my Ubuntu system?
This is what "About Eclipse SDK" says.
Eclipse SDK
Version: 3.5.2
Build id: M20100211-1343
I am not sure if its the Eclipse IDE for Java Developers or the Eclipse Classic version.
What I would like to do is use Eclipse for
Java based Web Application Development
Ant Builds
Deploy using Tomcat
including HTML, CSS Editing
Please help me decide which version I should choose? I would like to upgrade my Eclipse setup from whatever version it is now to a version that supports all the above. Should I go for Eclipse IDE for Java EE Developers?
Should I download a totally new version from Eclipse site or can I just ADD necessary features/plugins to my current Eclipse setup.
Please suggest.
See Compare Eclipse Packages for a nice chart
What I would like to do is use Eclipse for (...)
The Eclipse IDE for Java EE Developers allows to do what you're asking for out of the box.
Should I download a totally new version from Eclipse site or can I just ADD necessary features/plugins to my current Eclipse setup.
Both would work, although it would be simpler to just get directly the Eclipse IDE for Java EE Developers (especially if you don't know exactly what plugin(s) you're looking for). Personally, I don't use the version you can get from the repository but download Eclipse from the official website and install it in user mode.
If you are using Eclipse for only Enterprise Development, then as everybody has recommended I would use the Eclipse Java EE version. If you plan on occasionally using it for other development purposes then I would consider downloading a separate classic version as well.
The reason for this is that everybody is well aware of eclipse's plugin capabilities. Unfortunately, Eclipse can get bogged down with too many plugins or add on tools. What I have experienced is that if you are using it for Enterprise Development(J2EE) it might be a good idea to keep that as a separate environment then your other Java Development. That way you can download the plugins,tools,libraries,etc for your enterprise development, and you can use your classic version for any other development you might need.
The downside is you will have two versions, but this is not a problem granted you do not run them simultaneously.
If you want to play with Web development, then the Eclipse java EE for Developers is for you. It is shipped with components to make Java Enterprise applications to create Enterprise Applications (and bundle it in an Enterprise ARchiver, known as EAR file or Web ARchive, known as WAR file).
The default Eclipse shipping with Ubuntu is the Classic version, and you can add more plugins.
I would recommend, however, to download th eJEE version manually and unzip it and run. Then you have a local installation outside the system files.

Maven 2 build Java web services? Help

Has anyone built Java web services using Maven-2. I've read about the jax-ws plugin, but I haven't found any clear documentation or examples on how to use it.
I tried building a few following instructions of some bloggers, but most instructions seem old or incomplete.
Does anyone have any advice on using Maven to build Java web service, or a link to a clean tutorial.
I'm using Maven 2.2.1, and Java 1.6.
Thanks!
Try one of these :
http://blogs.oracle.com/enterprisetechtips/entry/using_jax_ws_with_maven
http://mojo.codehaus.org/jaxws-maven-plugin/wsimport-mojo.html
https://jax-ws-commons.dev.java.net/jaxws-maven-plugin/

Building a Java EE app on Mac OS X Snow Leopard for Glassfish 3

I'm having a bit of a problem building a Java Enterprise Edition web application on Mac OS X 10.6.2 using Ant 1.7.1, Glassfish v3 and Java EE 6.
The problem is that the build process does not find the Java EE libraries which fair enough as I don't think Apple supply them with the default Java installation but I know they exist in the Glassfish distribution.
Which jars are the correct ones to build against (I'm assuming javaee.jar is a general jar which references all the other needed jars) and what should I be putting in my ant build.xml file?
Any help is very much appreciated.
You need to have the javaee.jar in your ant classpath, but be aware: do not copy the javaee.jar to the webapp (WEB-INF/lib folder)!
I would encourage you to get and use NetBeans or GlassFish Tools Bundle For Eclipse to start working with Java EE 6 and GlassFish v3... (read my profile to find out why).
If you are determined to avoid using either of these IDEs, then I would recommend that you download the Java EE 6 SDK, to get started. The SDK includes a number of different samples that can be built and deployed using Ant. (Use -verbose to learn the 'secrets')

Categories

Resources