NetBeans Version for WSIT in GlassFish

The NetBeans 5.5 IDE is tested with Sun Java System Application Server PE 9.0 Update Release 1 or GlassFish v1. It also used to work with GlassFish v2 but stopped doing so after b26 because of issue 90221 in NetBeans. A patch has been applied to NetBeans 5.5.1 which can be downloaded from here (select 5.5.1 from the "NetBeans Version" list box).

I downloaded NetBeans 5.5.1 dev build, installed NetBeans WSIT plug-in available from the Update Center, and registered GlassFish b31 instance following first part of the Flash demo. Then I built a Reliable Web Service and invoked it using the second part of the demo. Note that to install the WSIT plug-in from NetBeans Update Center, "NetBeans Update Center Beta" checkbox has to be explicitly selected as it is not the default option.

Look for the window title in the screen shots below which indicates NetBeans 5.5.1 dev build dated Jan 11th. And the GlassFish v2 b31 was promoted this morning as well.

Fig 1: WSIT Plug-in installed in NetBeans 5.5.1 dev build

Fig 2: GlassFish v2 b31 configured in NetBeans 5.5.1 dev build

Fig 3: Reliable Endpoint Deployed in NetBeans 5.5.1 dev build

Fig 4: Reliable Client invoked from NetBeans 5.5.1 dev build

Look at the last TerminateSequence SOAP message in the output log window terminating the reliable sequence.

In short, if you want to use build a .NET 3.0 interoperable reliable secure Web service, use NetBeans 5.5.1 dev build, GlassFish v2 b31 and NetBeans WSIT plug-in (from Update Center) and follow the two part (part 1 and part 2) interactive demo .

Technorati: NetBeans GlassFish WSIT

Comments:

1st Prize for the most Convoluted Hello World program :-)

Posted by Bukkake Queen on January 11, 2007 at 04:10 PM PST #

But imagine the power that can be harnessed using this simple "Hello World". A fully .NET 3.0 interoperable secure reliable transactional Web service can be built in minutes.

Posted by Arun on January 11, 2007 at 11:28 PM PST #

I just downloaded the nightly build of NetBeans 5.5.1, 200701120600, and it still fails to work with Glassfish V2 Build 31. Is there any particular configuration that need be done besides having these new builds?

Posted by TR on January 13, 2007 at 09:30 AM PST #

Here is the exception: start Starting Sun Java System Application Server 9.1 (build b31) ... CORE5098: AS Socket Service Initialization has been completed. CORE5076: Using [Java HotSpot(TM) Client VM, Version 1.5.0_07] from [Sun Microsystems Inc.] SEC1002: Security Manager is OFF. java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.sun.enterprise.server.PELaunch.main(PELaunch.java:272) Caused by: java.lang.ClassFormatError: Invalid index 2 in LocalVariableTable in class file com/sun/enterprise/resource/ResourceManagerImpl at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at com.sun.appserv.server.util.ASURLClassLoader.loadClass(ASURLClassLoader.java:100) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at com.sun.enterprise.resource.PoolManagerImpl.<init>(PoolManagerImpl.java:88) at com.sun.enterprise.connectors.ConnectorConnectionPoolAdminServiceImpl.initialize(ConnectorConnectionPoolAdminServiceImpl.java:1535) at com.sun.enterprise.connectors.ConnectorConnectionPoolAdminServiceImpl.<init>(ConnectorConnectionPoolAdminServiceImpl.java:77) at com.sun.enterprise.connectors.ConnectorAdminServicesFactory.getService(ConnectorAdminServicesFactory.java:49) at com.sun.enterprise.connectors.ConnectorRuntime.createServices(ConnectorRuntime.java:130) at com.sun.enterprise.connectors.ConnectorRuntime.getRuntime(ConnectorRuntime.java:90) at com.sun.jdo.spi.persistence.support.sqlstore.ejb.SunTransactionHelper.<clinit>(SunTransactionHelper.java:96) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:242) at com.sun.jdo.spi.persistence.support.sqlstore.ejb.PersistenceManagerServiceImpl.forceInit(PersistenceManagerServiceImpl.java:71) at com.sun.jdo.spi.persistence.support.sqlstore.ejb.PersistenceManagerServiceImpl.<clinit>(PersistenceManagerServiceImpl.java:54) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:164) at com.sun.enterprise.server.ondemand.OnDemandServer.instantiateRuntimeServices(OnDemandServer.java:158) at com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer.java:233) at com.sun.enterprise.server.ondemand.OnDemandServer.onInitialization(OnDemandServer.java:93) at com.sun.enterprise.server.PEMain.run(PEMain.java:316) at com.sun.enterprise.server.PEMain.main(PEMain.java:260) ... 5 more

Posted by TR on January 13, 2007 at 09:32 AM PST #

TR, This is also reported on dev@glassfish alias. Please follow the thread at:

https://glassfish.dev.java.net/servlets/ReadMsg?listName=dev&msgNo=3271

For some, this problem has disappeared after using an updated version of JDK (i.e. JDK 1.5.0_10). -Arun

Posted by Arun on January 13, 2007 at 10:57 AM PST #

Ah, thanks for the tip; I upgraded from 1.5.0_07 to 1.6.0 and this issue goes away.

Posted by Tim on January 13, 2007 at 12:13 PM PST #

Glad you got it working.

Posted by Arun on January 14, 2007 at 09:33 AM PST #

Post a Comment:
Comments are closed for this entry.
About

profile image
Arun Gupta is a technology enthusiast, a passionate runner, author, and a community guy who works for Oracle Corp.


Java EE 7 Samples

Stay Connected

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today