java - Netbeans debug error for JSF application -


i'm trying tutorial https://netbeans.org/kb/docs/web/jsf20-intro.html#template, have problems step 8 - debugging. can deploy application without errors.

while deployment, encounter warnings:

warning: [options] source value 1.5 obsolete , removed in future release

warning: [options] target value 1.5 obsolete , removed in future release

warning: [options] suppress warnings obsolete options, use -xlint:-options.

3 warnings

but application gets deployed , runs fine.

however, i've got problems when comes debugging. right-click project -> debug, , following error:

org.netbeans.api.debugger.jpda.debuggerstartexception: connect: address invalid on local machine, or port not valid on remote machine @ org.netbeans.modules.debugger.jpda.jpdadebuggerimpl.waitrunning(jpdadebuggerimpl.java:404) @ org.netbeans.modules.debugger.jpda.jpdadebuggerimpl.waitrunning(jpdadebuggerimpl.java:386) @ org.netbeans.api.debugger.jpda.jpdadebugger.attach(jpdadebugger.java:324) @ org.netbeans.modules.debugger.jpda.ant.jpdaconnect$1.run(jpdaconnect.java:235) @ org.openide.util.requestprocessor$task.run(requestprocessor.java:1443) @ org.netbeans.modules.openide.util.globallookup.execute(globallookup.java:68) @ org.openide.util.lookup.lookups.executewith(lookups.java:303) @ org.openide.util.requestprocessor$processor.run(requestprocessor.java:2058) caused by: java.net.connectexception: connect: address invalid on local machine, or port not valid on remote machine @ java.net.dualstackplainsocketimpl.connect0(native method) @ java.net.dualstackplainsocketimpl.socketconnect(dualstackplainsocketimpl.java:79) @ java.net.abstractplainsocketimpl.doconnect(abstractplainsocketimpl.java:350) @ java.net.abstractplainsocketimpl.connecttoaddress(abstractplainsocketimpl.java:206) @ java.net.abstractplainsocketimpl.connect(abstractplainsocketimpl.java:188) @ java.net.plainsocketimpl.connect(plainsocketimpl.java:172) @ java.net.sockssocketimpl.connect(sockssocketimpl.java:392) @ java.net.socket.connect(socket.java:589) @ com.sun.tools.jdi.sockettransportservice.attach(sockettransportservice.java:222) @ com.sun.tools.jdi.genericattachingconnector.attach(genericattachingconnector.java:116) @ com.sun.tools.jdi.socketattachingconnector.attach(socketattachingconnector.java:90) @ org.netbeans.api.debugger.jpda.attachingdicookie.getvirtualmachine(attachingdicookie.java:231) @ org.netbeans.modules.debugger.jpda.actions.startactionprovider.dostartdebugger(startactionprovider.java:188) @ org.netbeans.modules.debugger.jpda.actions.startactionprovider.access$200(startactionprovider.java:80) @ org.netbeans.modules.debugger.jpda.actions.startactionprovider$1.run(startactionprovider.java:165) ... 4 more build failed (total time: 1 second)

and debugger console says:

attaching localhost:0

connection refused.

i tried enabling debugging in glassfish server. how can fix , make debugger work?

...it didn't work because server wasn't started in debug mode. selected debug mode, restarted glassfish , works fine.


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -