Discussion:
How to debug https:// or SSL web applications in netbeans??
nospamplssteve
2006-12-16 05:11:32 UTC
Permalink
How to debug https:// or SSL web applications in netbeans??

I have setup my applications to run in ssl so I can see the default tomcat
page on
http://localhost:8080/Webapp1
and in SSL default port 8443
https://localhost:8443/Webapp1 in tomcat

When debug the web application(F5/F6) in netbeans it will run in
http//localhost:8084/Webapp1 (default port can be set in the netbeans pages)
How to get it running in https://localhost:8443/Webapp1 in netbeans???
The jsp pages redirects back to the same page at
https://localhost:8443/......
Any help would be much appreciated.
--
View this message in context: http://www.nabble.com/How-to-debug-https%3A---or-SSL-web-applications-in-netbeans---tf2830911.html#a7903451
Sent from the Netbeans - Dev mailing list archive at Nabble.com.
Wade Chandler
2006-12-16 06:27:31 UTC
Permalink
I'll go ahead an give an answer here, but this
question belongs on nbusers. nbdev is not for these
types of questions as it is for the development of the
IDE itself. If you need to ask more questions please
send them to nbusers and do not continue with this
thread.

You should be able to setup a server in NB to point to
your Tomcat server. You should be able to select this
Tomcat server to use for your project. You should
then be able to start debugging. Once the browser
window comes up you should be able to change the http
to https. That should be it I think. I may be
missing something, but I do not see why that wouldn't
work.

If you can not get it going that way you can
certainly deploy your application to a Tomcat server,
configure Tomcat to run with the extra parameters to
start a TCP/IP enabled debugger server inside of it
when it runs(see the JDK documentation for how to use
JPDA), and then click in NB on Run->Attach Debugger
and enter the correct parameters. The java
documentation would be enough to get you going with
JPDA and in your tomcat configuration you can find
where to put extra JVM parameters. I've done that
before with an external server (connecting with TCP/IP
to the debugger in another running JVM). Once
connected open a browser, go to your web application
url including https, and debug away.

All of that being said are you having something behave
differently in https than in http? As far as the
server and your web application is concerned you
should be able to use it in https or http mode unless
something is going on or you have forced https in
code.

Wade
Post by nospamplssteve
How to debug https:// or SSL web applications in
netbeans??
I have setup my applications to run in ssl so I can
see the default tomcat
page on
http://localhost:8080/Webapp1
and in SSL default port 8443
https://localhost:8443/Webapp1 in tomcat
When debug the web application(F5/F6) in netbeans it
will run in
http//localhost:8084/Webapp1 (default port can be
set in the netbeans pages)
How to get it running in
https://localhost:8443/Webapp1 in netbeans???
The jsp pages redirects back to the same page at
https://localhost:8443/......
Any help would be much appreciated.
--
http://www.nabble.com/How-to-debug-https%3A---or-SSL-web-applications-in-netbeans---tf2830911.html#a7903451
Post by nospamplssteve
Sent from the Netbeans - Dev mailing list archive at
Nabble.com.
nospamplssteve
2006-12-16 07:50:01 UTC
Permalink
Yes, I have forced https in the jsp page....
When I run the application in netbeans my index.jsp wll redirect to the
https:://localhost:7443/.......index.jsp
and it is always invalid page...... on bundled tomcat server.Anything I need
to set here?? I am able to see the default tomcat page at
https://localhost:7443.
Yes I should be able to debug using the JPDA debugger and attached the
process This is well documented.
If there is any reply to this kindly reply via private email since as you
mentioned this is not the appropriate forum, maybe will repost same question
in nbuser later. Thks
Noted will end the thread here.
--
View this message in context: http://www.nabble.com/How-to-debug-https%3A---or-SSL-web-applications-in-netbeans---tf2830911.html#a7904074
Sent from the Netbeans - Dev mailing list archive at Nabble.com.
Loading...