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.

Bug 102607 - NoClassDefFoundError when deploy application with W/S to JBoss 4.0.4
Summary: NoClassDefFoundError when deploy application with W/S to JBoss 4.0.4
Status: VERIFIED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: Quy Nguyen
URL:
Keywords:
: 107706 (view as bug list)
Depends on:
Blocks: 106402
  Show dependency tree
 
Reported: 2007-04-26 11:30 UTC by Roman Mostyka
Modified: 2007-06-26 08:35 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Server's log (1.23 MB, text/plain)
2007-04-26 11:34 UTC, Roman Mostyka
Details
Exception log (5.05 KB, text/plain)
2007-06-22 17:30 UTC, Roman Mostyka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Mostyka 2007-04-26 11:30:13 UTC
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.
Comment 1 Roman Mostyka 2007-04-26 11:34:56 UTC
Created attachment 41715 [details]
Server's log
Comment 2 Roman Mostyka 2007-04-26 11:46:08 UTC
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.
Comment 3 _ potingwu 2007-04-26 16:56:14 UTC
This is not deployment server issue. The web services may not setup the right
jars for classpath and deployment.
Comment 4 Quy Nguyen 2007-04-26 21:00:42 UTC
Support for application servers other than glassfish has not been implemented
yet.  This will most likely be added for M10.
Comment 5 Joseph Silber 2007-05-02 14:57:31 UTC
release note added
Comment 6 Quy Nguyen 2007-06-19 20:07:16 UTC
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
Comment 7 Quy Nguyen 2007-06-20 01:03:07 UTC
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
Comment 8 Quy Nguyen 2007-06-21 20:07:35 UTC
*** Issue 107706 has been marked as a duplicate of this issue. ***
Comment 9 Quy Nguyen 2007-06-21 23:44:21 UTC
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
Comment 10 Roman Mostyka 2007-06-22 17:28:53 UTC
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.
Comment 11 Roman Mostyka 2007-06-22 17:30:41 UTC
Created attachment 44277 [details]
Exception log
Comment 12 Quy Nguyen 2007-06-22 17:35:42 UTC
What project type and application server is this for?
Comment 13 Roman Mostyka 2007-06-22 17:47:22 UTC
J2EE 1.4 project for JBoss 4.0.4.
Comment 14 Quy Nguyen 2007-06-22 19:45:06 UTC
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
Comment 15 Roman Mostyka 2007-06-25 10:53:34 UTC
Verified with build 200706230000.