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.
I use the following code: Lookup l = enterpriseProject.getLookup(); J2eeModuleProvider projectModule = (J2eeModuleProvider) l.lookup(J2eeModuleProvider.class); if (projectModule != null) { *InstanceProperties instanceProp* = projectModule.getInstanceProperties(); if (instanceProp != null){ *port = instanceProp.getProperty(InstanceProperties.HTTP_PORT_NUMBER);* String UrlAttr = instanceProp.getProperty(InstanceProperties.URL_ATTR); .... This code retrieves me for (for s1as) the admin port/url
So what is the issue here? I don't know what the error here is from your description. Are you trying to get the project's associated server information?
This is by design: this http port is the one from admin.