This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
1. Add JBoss 4.0.4 GA instance to Servers node. 2. Copy jaxrpc-impl.jar to JBoss lib directory. 3. Add hellowordService.wsdl W/S from Creator2u1. 4. Create Java 5 EE web application with visual JSF framework. 5. Add 'Text Field', 'Button' and 'Static Text' components to the page. 6. Add HelloWorld W/S to the page. 7. Add event handler to the button and write code: try { staticText1.setText(helloIFPortClient1.sayHello(textField1.getText().toString()));} catch (Exception e) { } 8. Deploy project to JBoss. Result: Error 500 appears in browser and NoClassDefFoundError in server log. See log in attach. I copied jaxrpc-impl.jar to lib directory because without it NoClassDefFoundError arised for it.
Created attachment 41715 [details] Server's log
The same for Tomcat 5.0 and 5.5. But for them is is also need to copy jaxrpc-api.jar. Is is also problem that it needs to copy jaxrpc-api.jar and jaxrpc-impl.jar. At least we should add this to notice.
This is not deployment server issue. The web services may not setup the right jars for classpath and deployment.
Support for application servers other than glassfish has not been implemented yet. This will most likely be added for M10.
release note added
Instead of adding the jars to the server lib directories, it is also possible to correct this on a per-project basis by packaging the JAX-RPC library with the project in the Libraries->Properties node action. However, this will still fail at runtime during method invocation if the IDE/AppServer is running on Java 1.6, due to the problem stated in: http://www.netbeans.org/issues/show_bug.cgi?id=87181
I have checked in a fix that will add the JAX-RPC (or JAX-WS) library jars to the deployed project if the project's server does not have the libraries. This should fix the runtime issues; however, J2EE 1.4 projects will still not work correctly if running on a server with JDK 1.6. Checking in src/org/netbeans/modules/visualweb/websvcmgr/consumer/DesignerWebServiceTransferManager.java; /cvs/visualweb/websvcmgr/src/org/netbeans/modules/visualweb/websvcmgr/consumer/DesignerWebServiceTransferManager.java,v <-- DesignerWebServiceTransferManager. java new revision: 1.3; previous revision: 1.2 done Checking in src/org/netbeans/modules/visualweb/websvcmgr/nodes/WebServiceLibReferenceHelper.java; /cvs/visualweb/websvcmgr/src/org/netbeans/modules/visualweb/websvcmgr/nodes/WebServiceLibReferenceHelper.java,v <-- WebServiceLibReferenceHelper.java new revision: 1.10; previous revision: 1.9 done
*** Issue 107706 has been marked as a duplicate of this issue. ***
Added a system property to the JAX-RPC client that fixes deployment on JDK 6. These application servers should deploy with web service clients correctly now. Checking in src/org/netbeans/modules/visualweb/websvcmgr/codegen/WrapperClientWriter.java; /cvs/visualweb/websvcmgr/src/org/netbeans/modules/visualweb/websvcmgr/codegen/WrapperClientWriter.java,v <-- WrapperClientWriter.java new revision: 1.9; previous revision: 1.8 done
Now I'm not able even to add W/S to the page. I got exception (see in attach) when I try to add it to the page.
Created attachment 44277 [details] Exception log
What project type and application server is this for?
J2EE 1.4 project for JBoss 4.0.4.
I added a few more checks for the JAX-RPC libraries, so this should be sufficient. JBoss appears to include the jax-rpc API packages but not the implementation classes, which is a different configuration than Tomcat. Checking in src/org/netbeans/modules/visualweb/websvcmgr/consumer/DesignerWebServiceTransferManager.java; /cvs/visualweb/websvcmgr/src/org/netbeans/modules/visualweb/websvcmgr/consumer/DesignerWebServiceTransferManager.java,v <-- DesignerWebServiceTransferManager.java new revision: 1.4; previous revision: 1.3 done
Verified with build 200706230000.