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.
Summary: | NoClassDefFoundError when deploy application with W/S to JBoss 4.0.4 | ||
---|---|---|---|
Product: | obsolete | Reporter: | Roman Mostyka <romanmostyka> |
Component: | visualweb | Assignee: | Quy Nguyen <quynguyen> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | potingwu |
Priority: | P1 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 106402 | ||
Attachments: |
Server's log
Exception log |
Description
Roman Mostyka
2007-04-26 11:30:13 UTC
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. |