Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 79535 - Client browser does not invoke with https for INTEGRAL
Client browser does not invoke with https for INTEGRAL
Status: NEW
Product: serverplugins
Classification: Unclassified
Component: Infrastructure
All All
: P3 (vote)
Assigned To: Petr Hejl
Depends on:
  Show dependency treegraph
Reported: 2006-07-01 01:58 UTC by davisn
Modified: 2007-08-30 17:35 UTC (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description davisn 2006-07-01 01:58:54 UTC
After configuration transport-guarantee to INTEGRAL value, when select to run
the application, the invoked browser does not run with SSL.

1. Install Nebean IDE 5.5 - build 6/30
2. Install AppServer 9 PE
3. Install javaee5tutorial package
4. Open ..\javaeetutorial5\examples\jaxws\helloservice-basicauth project
5. Right click at the helloservice-basicauth project, select properties and
enter /hello for the Relative URL field 
6. Open web.xml file and change the Tranport Guarantee value from NONE to INTEGRAL
7. Save the file and run the project
    The application url was invoked on the broswer as:
http://localhost:8080/helloservice/hello while it should be invoked as
https://localhost:8181/helloservice/hello since Tranport Guarantee value is
Comment 1 Sherold Dev 2006-07-10 17:41:26 UTC
-> sunappserv
Comment 2 Vince Kraemer 2006-07-21 18:57:06 UTC
Download location for tutorial???
Comment 4 Vince Kraemer 2006-07-23 15:43:49 UTC
can duplicate.

As far as I can tell, this will need changes in the web project and the
serverplugin api and implementation.

The web project needs to check and see if the transport is INTEGRAL.  It then
needs to ask the server plugin for the https info somehow.

Since the security constraint can be on resource collections, JSR-88's
TargetModuleID.getWebUrl() doesn't have enough granularity.  It looks like that
is what is used currently.
Comment 5 davisn 2006-07-24 22:15:55 UTC
Link to Java EE Code Samples & Applications
Comment 6 Vince Kraemer 2006-07-26 01:48:37 UTC
org.netbeans.modules.j2ee.deployment.impl.projects.DeploymentTargetImpl uses
TMID to create the URL that will be invoked to display the page.

My best guess is the following:

1. extend J2eeModule with a method like 

boolean securedAccessRequired(String partialUrl)

A web module would have to look at its DD (and annotations???) to determine if
the partial url has some transport guarentees in place.

2. Extend Server Instance with a method like

String securedAccessChannel(Protocol p)

(where Protocol has some type of enum, for http and rmi-iiop [at least])

This method would return the https://machine-name:port-value  that is correct.

When DeploymentTargetImpl constructs the URL, it would need to replace part of
the output of TMID.getWebUrl() with the return value from

so http://localhost:8080/webApplication1/integraltransport/page.html would
become https://localhost:8181/webApplication1/integraltransport/page.html
Comment 7 Sherold Dev 2006-07-26 13:15:40 UTC
This definitelly cannot be treated as a bug, changing this to enhancement.

Vince, thanks for the evaluation.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo