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 87825 - Wrong bindings are created for Enterprise Application on Linux
Summary: Wrong bindings are created for Enterprise Application on Linux
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: WebSphere (show other bugs)
Version: 5.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: dlipin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-24 09:05 UTC by Alexander Kouznetsov
Modified: 2006-12-02 11:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kouznetsov 2006-10-24 09:05:36 UTC
This is Linux specific issue. It is not reproducible with WinXP. Reproduced with JSE 8.1 (2006.10.23).

Steps to reproduce:
- Create New Enterprise Application targeted WebSphere
- Create New Session Bean in Enterprise Application's EJB Module
- Create New Servlet in Enterprise Application's Web Module
- Use Call Enterprise Bean functionality to create lookup method for the session bean
- Open Web-Module's Configuration Files > ibm-web-bnd.xmi and EJB-Module's Configuration Files > ibm-ejb-bnd.xmi and verify that bindings don't match. If you proceed with these steps on WinXP there would be matching binding for the session bean created.
RESULT: This project will fail to lookup the bean on WebSphere since bindings don't match.
Comment 1 dlipin 2006-10-24 09:30:28 UTC
Hm.. very strange. We`ll evaluate the issue..
Comment 2 dlipin 2006-10-24 09:43:40 UTC
Could you please attach the entire project files?
Unfortunately I have no linux x86 (32bit) system to reproduce.. (
Comment 3 dlipin 2006-11-01 13:53:08 UTC
The cause seems to be resolved. The problem is that we used 
SubprojectProvider.getSubprojects().getProjectDirectory().getPath() method that 
return path like "home/username/blah-blah-blah" not "/home/username/blah-blah-
blah". We should use FileUtils.toFile(SubprojectProvider.getSubprojects().
getProjectDirectory()) instead if it.
Fix would be available soon.
Comment 4 dlipin 2006-11-01 14:16:15 UTC
Fixed, please verify.

Checking in websphere6/config/WarDeploymentConfiguration.java;
/cvs/serverplugins/websphere6/src/org/netbeans/modules/j2ee/websphere6/config/
WarDeploymentConfiguration.java,v  <--  WarDeploymentConfiguration.java
new revision: 1.12; previous revision: 1.11
done
Comment 5 Alexander Kouznetsov 2006-12-02 11:28:51 UTC
Verified with JSE 8.1 (2006.11.21, milestone 18)