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: | NullPointerException by attempt to use EJB on several application servers | ||
---|---|---|---|
Product: | obsolete | Reporter: | Roman Mostyka <romanmostyka> |
Component: | visualweb | Assignee: | Quy Nguyen <quynguyen> |
Status: | NEW --- | ||
Severity: | blocker | ||
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Attachments: |
EAR file of enterprise application
Logs of application servers |
Description
Roman Mostyka
2007-06-22 11:20:14 UTC
Created attachment 44251 [details]
EAR file of enterprise application
Created attachment 44252 [details]
Logs of application servers
This issue is showstopper for M10. Please integrate the fix into the trunk and "release60-m10" branch. In Creator 2, the IDE generates a standalone EJB client wrapper. There are two ways to get a reference to the client stub. One is to use JNDI to get a fixed reference name and require the container to map this reference name to the actual stub. This is how the original Creator EJB module was written. This means the container must have JNDI configured to map this reference to an EJB endpoint. If you are using tomcat, then JNDI needs to be configured. Supported containers like glassfish do support JNDI and there is an IDE plugin that allows the IDE to configure them. Since the goal of issue #90455 is to provide a migration path for Creator users and this scenario was not supported in Creator, I am making this an RFE and lowering the priority. BTW, one way to fix this is to generate a hard-coded address in the wrapper code and not use JNDI, but that would be a significant change. will manual configuration in the descriptor help for servers other than Glassfish ? For Creator 2 users this may be considered an enchancement but for NetBeans users I think this issue should be P2 because we support containers other than Glassfish. Are you saying we cannot support other servers because we don't have the necessary APIs from server plugins ? thanks The scenario in this bug report is not supported in Creator 2 so if the goal is to port the Creator 2 features to NB6 (issue #90455), then we're done. If the goal is to support more such as this scenario, then that would require adding a new feature so I marked it as an RFE. Feel free to mark it as you think is appropriate, but I don't think it's a showstopper for M10 because of the original plan. jayashri: I hit submit too fast. To answer the other questions, Creator would test deploy a webapp to the bundled Sun app server. The webapp could automatically access EJB session beans hosted on other app servers like from Sun, Weblogic, and Websphere. All that should continue to work. If you want to deploy the webapp to another container, then you would export the webapp and the deployer would have to then manually configure and deploy it to that container. This is still true today. Visual Consumption of EJB 2.1 in Visual web apps issue #90455 is supported in NetBeans 6 as a migration path for Creator users. Creator ships with a bundled Sun App Server where web apps are test deployed to. This feature allows the web app to consume Session EJBs hosted on other app servers such as Sun, WebLogic, and WebSphere; however a limitation still remains, the web app itself needs to be test deployed on a Sun app server for the automatic configuration to work. If you want to host the web app in another app server, you must manually configure the EJB reference to JNDI binding which is container specific. When deploying your web app on a production server using the export war feature, this manual configuration step is part of the Java EE deployment process which is container specific. |