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 78862 - WebLogic 9 - Calling an EJB from a Web Service generates: java.lang.NoClassDefFoundError: javax/ejb/CreateException
Summary: WebLogic 9 - Calling an EJB from a Web Service generates: java.lang.NoClassDe...
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: WebLogic (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Libor Kotouc
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-22 04:51 UTC by xanthin
Modified: 2006-08-15 09:12 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Output - build.xml (4.96 KB, text/plain)
2006-06-22 04:54 UTC, xanthin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description xanthin 2006-06-22 04:51:49 UTC
NetBeans 5.5 Dev 200606151230  (Works in 5.5 Beta)

I created an enterprise application, selecting BEA Weblogic 9 as the server.  
Created both modules (EJB & Web App).

Created a simple session bean.  Added a buisness method to return a String.

Created a web service and called the session bean (have wizard generate Inline 
Lookup Code)

Complie project ... get the following error:

java.lang.NoClassDefFoundError: javax/ejb/CreateException
Comment 1 xanthin 2006-06-22 04:54:50 UTC
Created attachment 31300 [details]
Output - build.xml
Comment 2 Pavel Buzek 2006-07-31 04:07:09 UTC
The classpath for compilation is provided by the server plugin. Looks like if
the web logic plugin did not put that class on classpath? Libore, can you follow
up, please?
Comment 3 Libor Kotouc 2006-07-31 14:19:13 UTC
javax.ejb.CreateException is part of weblogic.jar which should be automatically
included when WL server is selected as the target server.
Could you please check whether it is not missing?

However if it worked in beta then the problem shouldn't be in WL plugin because
no changes were made in this area.
Comment 4 Lukas Jungmann 2006-08-01 17:03:13 UTC
1) webservices on weblogic are not supported yet

2) cause by "j2ee.platform.wsgen.classpath" not set/defined by the plugin, other
props which are not set:
j2ee.platform.wsimport.classpath
j2ee.platform.wscompile.classpath
j2ee.platform.is.jsr109

...jsr109 should be set to false, wsimport.cp to weblogic.jar, but not sure
about wscompile.cp (probably not needed as we do not want to invest additional
resources for supporting JAX-RPC 1.6 websvcs, because there's JAX-WS 2.0 ;) )

Comment 5 Libor Kotouc 2006-08-03 13:01:56 UTC
Fixed.

Checking in WLJ2eePlatformFactory.java;
/cvs/serverplugins/weblogic9/src/org/netbeans/modules/j2ee/weblogic9/j2ee/WLJ2eePlatformFactory.java,v
 <--  WLJ2eePlatformFactory.java
new revision: 1.6.8.2.2.4; previous revision: 1.6.8.2.2.3
done
Comment 6 Michal Mocnak 2006-08-15 09:12:16 UTC
Verified