The Source for Java Technology Collaboration
User: Password:



Rama Pulavarthi's Blog

Community: NetBeans Archives


A Tip on Using JAX-WS with Maven

Posted by ramapulavarthi on January 18, 2008 at 03:08 PM | Permalink | Comments (0)

A tip on Using Maven with JAX-WS is available as Enterprise Java Technologies Tech Tips. You can find more Enterprise Java Technical Tips that are posted every month here. In this tip, I talk about using JAX-WS Maven plugin to build Web Services.

The JAX-WS Maven Plugin is developed as part of the jax-ws-commons project, where useful plugins and extensions around the JAX-WS RI are collected. This tip explores the JAX-WS maven plugin's two goals wsimport and wsgen and shows it with a simple sample. In this tip, I used NetBeans 6.0 to walk through the programming model for Web Services development using Maven. Netbean 6.0 has good support for Maven making it easy for developing web applications and deploying on to GlassFish server with a few mouse clicks.

Though NetBeans 6.0 has good support for Maven, it does n't support Web Services development using Maven directly. I heard NetBeans guys are working on improving the support in this area so that you can get Maven based Web Services project instead of ant based Web Services project. Then some of the configuration steps explained in the tip will not be necessary. I am eagerly waiting for it.

If you are a command-line person, I plan to post a similar tip on using Maven CLI to build Web Services using JAX-WS maven plugin and deploy on to a container using Cargo Plugin. If you have any questions on using the plugin, please post them to users@metro.dev.java.net

Technorati:
JAX-WS   Metro   Maven   GlassFish   NetBeans  

Installation problems with NetBeans 6.0 on Mac? Sharing the tip I learnt.

Posted by ramapulavarthi on December 17, 2007 at 03:21 PM | Permalink | Comments (0)

I have installed NetBean 6.0 RC2 earlier and wanted to update with NetBeans 6.0 lately. My installation experience was not good and I had to open a thread on NetBeans User mailing list to know what is happening and get it finally working. You can find the thread here

I use mutiple versions of JDK as part of testing and I might have mistakenly removed some things that Netbeans instalaltion expects, that was causing the installation problems. But the lack of proper error reporting made it really difficult to nail down the problem. All it says is something like "There is an error during installation, Please try installing again". It needs lot of improvements in that aspect. But the good thing is the user forum is very responsive and gave me these tips to find out the issue.

Incase you run into something like that. These steps will be helpful for uninstalling Netbeans on Mac as well.

  • Uninstall the partially installed NetBeans or Previous installation.
    • To unistall,. just right-click on /Applications/NetBeans in Finder and select "Move to Trash".
    • Become super user and go to /Library/Receipts and remove NetBeans*.pkg if there is any. (Also, remove openesb*.pkg, glassfish*.pkg and apache-tomcat*.pkg if available).
    • Remove ~/.netbeans, (needed when Netbeans says the user directory is corrupted)
  • Check the installation log at /var/log/install.log (/private/var/log/install.log) for any information.

In mycase I had to problems, It could n't find /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/bin/unpack200 . I might have removed the sym link /System/Library/Frameworks/JavaVM.framework/Versions/1.5 pointing to /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0. and hence the problem. After creating the sym link, I got it working. Without this, I also had to change netbeans.conf to point Netbeans to the right JDK. I am not sure where Netbeans is picking /System/Library/Frameworks/JavaVM.framework/Versions/1.5/ up from.

But, Can't NetBeans use the /System/Library/Frameworks/JavaVM.framework/Versions/Current or /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK as default JDK? BTW, If you want to use a different version of JDK, you can modify
/Applications/NetBeans/NetBeans 6.0.app/Contents/Resources/NetBeans/etc/netbeans.conf and set the property "netbeans_jdkhome" to the JDK you want or use --jdkhome at the start. NetBeans installation should prompt the User for the JDK to be used by NetBeans. Also, at the minimal it should show the errors or point to the installation log incase of installation errors.

Thanks for all the guys who helped me resolve the problem.





Powered by
Movable Type 3.01D
 Feed java.net RSS Feeds