Skip to main content

Posts

Showing posts from 2007

Moving libraries between different versions of NetBeans

One of the frustrations of updating to a new version of NetBeans (e.g. from 6M10 to 6B1) is having to recreate all my libraries again. On projects that use a lot of libraries this can be very time consuming. The solution to having to recreate all the libraries when upgrading to a new version of NB however is detailed here . Basically, each library is described by an XML file which you can copy from one installation directory to another. Simple !

Not long now…

Glassfish v2 and NetBeans 6 beta 2 are due out today. Many people are blogging about the new features of Glassfish v2, so The Aquarium has a roundup of all the news stories and technical blogs covering the launch. NetBeans has had several false starts over the last week or so with people finding beta 1 for download (and then finding out that its not the final beta 1). However, the final release is expected today, so please be patient, both products should be along shortly.

Glassfish Crib Sheet

I’ve listed below some of the more common uses of the Glassfish asadmin command. Hopfully this is a useful crib sheet showing how to do some of the more common administration/day-to-day tasks in Glassfish. You can get a complete list of commands by typing asadmin --help asadmin start-domain Start a domain asadmin stop-domain Stop a domain asadmin create-domain Create a new domain asadmin backup-domain Backup a domain asadmin list-domains List installed domains asadmin restore-domain Restore a previously backed up domain asadmin start-database Start the embedded Java Database asadmin stop-database Stop the embedded Java Database asadmin create-jdbc-connection-pool Create a new Database connection pool asadmin create-jdbc-resource Create a new JDBC connection asadmin list-jdbc-connection-pools List the database connection pools asadmin list-jdbc-resource List the JDBC connections asadmin deploy Deploy a component asadmin undeploy Undeploy a component asadmin list-...

Countdown to fun!

September 17th looks like its going to be a good day. According to this post by Roman Strobal on the NBUsers mailing list, thats the day for the first beta of NetBeans 6. I’ve been using the daily builds for NetBeans 6 for a while now and they seem stable for the most part, but I still get the occasional error, so I’m looking forward to trying out beta 1. Also, according to this post at the Aquarium , September 17th is the day that Glassfish v2 will be released. I’m not expecting much to be different in this release of Glassfish from the previous betas, but its good to get the final release out. Two new pieces of software in one day – excellent.

Glassfish Interview

I’ve just listened to the JavaPosse’s interview with a couple of members of the Glassfish team (Eduardo Pelegri-Llopart and Jerome Dochez). In the interview, they discuss the differences between Glassfish v1, and v2 and go into some details about Glassfish v3 and what features it will have. If you’re a Glassfish user or are investigating it, I’d recommend listening.

JBI Binding Components in NetBeans 6 M10

When you install NetBeans 6.0 M10 with the SOA pack, you get 3 different binding components installed into the JBI container: File Binding Component HTTP Binding Component JMS Binding Component There are many more binding components available from the OpenESB download site such as the SMTP and JDBC Binding Components. Does anyone know whether there are plans to include these components as part of the full NB 6.0 release?

Migrating a Spring Application from Tomcat 5 to GlassFish

I’ve got a Spring Web application that has been running happily on Tomcat for a while, but I wanted to migrate it to GlassFish. This proved a relatively simple process as only a couple of changes were needed to the application. The application was originally built along the lines of the Spring MVC tutorial . When this app is deployed to GlassFish however, the Spring tag library (spring.tld) cannot be found (presumably due to different servlet versions). To make the application deploy successfully, remove the entry from the web.xml file – its not needed in GlassFish. You then need to specify details of the Spring tag library in your JSP page with something like: Thats all. A couple of simple changes and the web application deploys on GlassFish.

BPEL Validation Errors in NetBeans 5.5.1

I‘ve recently updated my production NetBeans 5.5 environment to NetBeans 5.5.1 and have been having some issues with BPEL modules. If I create a BPEL module in NB 5.5, everything works as expected, however if I try to build the same codebase on NB 5.5.1, I get the following error. Interestingly enough, I get the same problem with NB 6 M10 <target name="pre-dist"> 09-Jul-2007 13:08:44 org.netbeans.modules.bpel.project.anttasks.IDEValidateBPELProject loadAndValidateExistingBusinessProcess SEVERE: Validation has errors on /home/david/NetBeansProjects/EchoBPEL/src/EchoProcess.bpel Error Message - org.netbeans.modules.xml.wsdl.validator.spi.ValidatorSchemaFactory.getSchemaSource() Ljavax/xml/transform/Source; 09-Jul-2007 13:08:44 org.netbeans.modules.bpel.project.anttasks.IDEValidateBPELProject loadAndValidateExistingBusinessProcess SEVERE: org.netbeans.modules.xml.wsdl.validator.spi.ValidatorSchemaFactory.getSchemaSource() Ljavax/xml/transform/Source...

HTTP 403 With GlassFish

If you’re getting an HTTP 403 error message with an enterprise application deployed as an EAR file using JAAS security, then there is potentially a simple fix. In GlassFish, you need to map the JAAS security role name to a GlassFish group name. This can be done in the sun-application.xml file as shown below: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE sun-application PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.0 Java EE Application 5.0//EN" "http://www.sun.com/software/appserver/dtds/sun-application_5_0-0.dtd"> <sun-application> <security-role-mapping> <role-name>role_name</role-name> <group-name>group_name</group-name> </security-role-mapping> </sun-application> If you’re developing a web project packaged as a WAR file, you need to do a similar thing, but in the sun-web.xml file instead.

Trialling NetBeans 6

I’ve just installed the latest NetBeans 6.0 (M9) onto my Mac and I like all the new features. The new Web Service Designer is pretty good although some have said that the UI does need sprucing up a bit. The other main area thats improved (for me) is the editor. It seems a lot faster and I could quite easily use it all day. I do have 2 issues though. Occasionally the editor will lock up and the cursor will vanish. The mouse still works, but whatever I do I can’t type anywhere. The only solution I’ve found is to close NB down and then start again. I imagine this bug will be fixed before version 6 is fully released. When running with GlassFish the editor is v e r y slow. Admittedly I’ve not got oodles or RAM on my machine, but I didn’t experience these problems with NB5.5. I’m not sure if this problem is because I installed the full (enterprise) NB or if its because of the new App Server supplied with 6.0. Are there any memory settings that can be tweaked when starting up Glas...

MacBook Pro Battery Replacement

I’ve had my MacBook Pro for nearly a year now and I’ve not had any problems with it. Recently, however, its started powering down without warning whilst running off battery. This usually happens when the battery is at about 40% – not particularly unusual!! After a quick Google, I found that Apple have recalled some MacBook Pro batteries. The affected batteries have model number A1175 and a 12-digit serial number that ends with U7SA, U7SB or U7SC. These match the battery I have. Full details of the replacement program for these batteries can be found at: https://support.apple.com/macbookpro15/batteryexchange/ I filled in the details on the web site for a replacement and got an email back saying it would be replaced within 3 to 5 working days – much quickier than I was expecting. Hopefully the new battery will fix these random shutdowns I’ve been experiencing.

Nooooooooooo

According to an article on Javalobby ( http://www.javalobby.org/java/forums/t88464.html ), the iPhone isn’t going to be supplied with a Java development kit. Surely Apple aren’t going to do this to developers? The iPhone looks like a great phone and I can imagine that there would be some great 3rd party Java apps written on it. I was considering getting an iPhone, but if it doesn’t have Java support I may have to rethink my plans.