You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2023/01/10 09:37:35 UTC

[GitHub] [netbeans] httpeter opened a new issue, #5261: Faces app does not start in browser after 'run'

httpeter opened a new issue, #5261:
URL: https://github.com/apache/netbeans/issues/5261

   ### Apache NetBeans version
   
   Apache NetBeans 16
   
   ### What happened
   
   I opened Faces (JSF+Primefaces) app that I developed with NB15 on NB16 and wanted to run it. Tomcat8 starts up fine, code compiles but normally NB starts up my browser and opens the URL. Now it does not and the application is not present at it's normal localhost URL. Also NB16 shows the following error:
   
   java.lang.NoSuchMethodError: java.net.URLEncoder.encode(Ljava/lang/String;Ljava/nio/charset/Charset;)Ljava/lang/String;
   	at org.netbeans.modules.tomcat5.deploy.TomcatManagerImpl.encodePath(TomcatManagerImpl.java:336)
   	at org.netbeans.modules.tomcat5.deploy.TomcatManagerImpl.remove(TomcatManagerImpl.java:232)
   	at org.netbeans.modules.tomcat5.deploy.TomcatManager.undeploy(TomcatManager.java:674)
   	at org.netbeans.modules.j2ee.deployment.impl.TargetServer.deploy(TargetServer.java:649)
   	at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:221)
   	at org.netbeans.modules.maven.j2ee.execution.DeploymentHelper.perform(DeploymentHelper.java:185)
   	at org.netbeans.modules.maven.j2ee.execution.CoSAlternativeExecutorImpl.execute(CoSAlternativeExecutorImpl.java:67)
   	at org.netbeans.modules.maven.cos.CoSAlternativeExecutor.execute(CoSAlternativeExecutor.java:64)
   	at org.netbeans.modules.maven.cos.CosChecker.checkRunMainClass(CosChecker.java:185)
   	at org.netbeans.modules.maven.cos.CosChecker.checkRunConfig(CosChecker.java:139)
   	at org.netbeans.modules.maven.execute.MavenCommandLineExecutor.run(MavenCommandLineExecutor.java:240)
   	at org.netbeans.core.execution.RunClassThread.doRun(RunClassThread.java:132)
   	at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
   	at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
   [catch] at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:81)
   
   
   ### How to reproduce
   
   -
   
   ### Did this work correctly in an earlier version?
   
   Apache NetBeans 15
   
   ### Operating System
   
   OSX 10
   
   ### JDK
   
   8
   
   ### Apache NetBeans packaging
   
   Apache NetBeans binary zip
   
   ### Anything else
   
   Every time this problem occurs. On NB15 there are no problems.
   
   ### Are you willing to submit a pull request?
   
   Yes
   
   ### Code of Conduct
   
   Yes


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] mbien commented on issue #5261: Faces app does not start in browser after 'run'

Posted by GitBox <gi...@apache.org>.
mbien commented on issue #5261:
URL: https://github.com/apache/netbeans/issues/5261#issuecomment-1377440356

   NetBeans requires JDK 11+ as runtime which should have this method since it was added in Java 10.
   
   Although this exception could be easily fixed by using the string variant of this method, you really should use JDK 11+ by now.
   
   Adding contribution welcome label in case someone wants to patch it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] httpeter commented on issue #5261: Faces app does not start in browser after 'run'

Posted by GitBox <gi...@apache.org>.
httpeter commented on issue #5261:
URL: https://github.com/apache/netbeans/issues/5261#issuecomment-1385135851

   > NetBeans requires JDK 11+ as runtime which should have this method since it was added in Java 10.
   > 
   > Although this exception could be easily fixed by using the string variant of this method, you really should use JDK 11+ by now.
   > 
   > Adding contribution welcome label in case someone wants to patch it.
   
   @mbien Dear Michael,
   
   Thanks for your swift and clear reply! Let me upgrade my JDK and try again!
   
   Best regards,
   
   Peter 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] matthiasblaesing closed issue #5261: Faces app does not start in browser after 'run'

Posted by GitBox <gi...@apache.org>.
matthiasblaesing closed issue #5261: Faces app does not start in browser after 'run'
URL: https://github.com/apache/netbeans/issues/5261


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] matthiasblaesing commented on issue #5261: Faces app does not start in browser after 'run'

Posted by GitBox <gi...@apache.org>.
matthiasblaesing commented on issue #5261:
URL: https://github.com/apache/netbeans/issues/5261#issuecomment-1377803194

   Duplicate of #5154 and #5134, fixed by:
   
   https://github.com/matthiasblaesing/netbeans/commit/9b6e3b45722aa5b3e610ac4da59cdaa269273391


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists