The form opens for me too. The problem is that when I fill in a number and click “Convert to kilometers” I get the 404 Not Found message.
****************************** Peter M. Scharf, President The Sanskrit Library sch...@sanskritlibrary.org https://sanskritlibrary.org ****************************** > On Jan 18, 2023, at 12:19 PM, Carl Mosca <carljmo...@gmail.com> wrote: > > It opened (automatically) here for me: http://localhost:8080/mavenproject3/ > > On Wed, Jan 18, 2023 at 1:11 PM Peter Scharf <sch...@sanskritlibrary.org > <mailto:sch...@sanskritlibrary.org>> wrote: >> Thanks, Eric. I had tried that. I get the message: >> >> HTTP Status 404 – Not Found >> >> Type Status Report >> >> Message The requested resource [/convert] is not available >> >> Description The origin server did not find a current representation for the >> target resource or is not willing to disclose that one exists. >> >> Apache Tomcat/10.0.23 >> >> >> ****************************** >> Peter M. Scharf, President >> The Sanskrit Library >> sch...@sanskritlibrary.org <mailto:sch...@sanskritlibrary.org> >> https://sanskritlibrary.org <https://sanskritlibrary.org/> >> ****************************** >> >>> On Jan 18, 2023, at 12:06 PM, Eric Bresie <ebre...@gmail.com >>> <mailto:ebre...@gmail.com>> wrote: >>> >>> >>> Servlet says the urlpattern is “/convert” >>> >>> Try >>> http://localhost:8080/convert >>> >>> >>> On Wed, Jan 18, 2023 at 11:51 AM Peter Scharf <sch...@sanskritlibrary.org >>> <mailto:sch...@sanskritlibrary.org>> wrote: >>>> Yes, the URL is correct: https://github.com/the-sanskrit-library/public.git >>>> The git directory hierarchy deceived me: I had the code outside the git >>>> directory. I have now moved it into the git directory. >>>> Forgive me; I’m not very familiar with git and am using the desktop >>>> version. >>>> Yours, >>>> Peter >>>> >>>> ****************************** >>>> Peter M. Scharf, President >>>> The Sanskrit Library >>>> sch...@sanskritlibrary.org <mailto:sch...@sanskritlibrary.org> >>>> https://sanskritlibrary.org <https://sanskritlibrary.org/> >>>> ****************************** >>>> >>>>> On Jan 18, 2023, at 5:35 AM, Carl Mosca <carljmo...@gmail.com >>>>> <mailto:carljmo...@gmail.com>> wrote: >>>>> >>>>> Hi Peter, >>>>> >>>>> Can you confirm that url please. I am not seeing Java code there; only a >>>>> README and attribute file. >>>>> >>>>> Regards, >>>>> Carl >>>> >>>>> >>>>> On Tue, Jan 17, 2023 at 10:40 PM Peter Scharf <sch...@sanskritlibrary.org >>>>> <mailto:sch...@sanskritlibrary.org>> wrote: >>>>>> Thank you for suggesting to put the project on Github. I have now >>>>>> created a public repository at the following url: >>>>>> >>>>>> https://github.com/the-sanskrit-library/public.git >>>>>> >>>>>> The project is in the NetBeans directory. >>>>>> Yours, >>>>>> Peter >>>>>> >>>>>> ****************************** >>>>>> Peter M. Scharf, President >>>>>> The Sanskrit Library >>>>>> sch...@sanskritlibrary.org <mailto:sch...@sanskritlibrary.org> >>>>>> https://sanskritlibrary.org <https://sanskritlibrary.org/> >>>>>> ****************************** >>>>>> >>>>>>> On Jan 17, 2023, at 2:38 PM, Carl Mosca <carljmo...@gmail.com >>>>>>> <mailto:carljmo...@gmail.com>> wrote: >>>>>>> >>>>>>> Hello Peter, >>>>>>> >>>>>>> Is the project that you created somewhere (such as Github) such that >>>>>>> folks could take a look at it? >>>>>>> >>>>>>> Regards, >>>>>>> Carl >>>>>>> >>>>>>> On Mon, Jan 16, 2023 at 11:21 PM Peter Scharf >>>>>>> <sch...@sanskritlibrary.org <mailto:sch...@sanskritlibrary.org>> wrote: >>>>>>>> I just installed NetBeans 16 on a MacBook Pro with an M chip: >>>>>>>> >>>>>>>> Product Version: Apache NetBeans IDE 16 >>>>>>>> Java: 19.0.1; OpenJDK 64-Bit Server VM 19.0.1 >>>>>>>> Runtime: OpenJDK Runtime Environment 19.0.1 >>>>>>>> System: Mac OS X version 13.0.1 running on aarch64; UTF-8; en_US (nb) >>>>>>>> >>>>>>>> I am trying to create a minimal servlet and war file to use with Tomcat >>>>>>>> >>>>>>>> apache-tomcat-10.0.23 >>>>>>>> >>>>>>>> I worked through half of the demo How to create a webapp tutorial at: >>>>>>>> https://www.youtube.com/watch?v=eP9oz6ZKUXM >>>>>>>> which, however, uses NetBeans 12 and other older software than I have >>>>>>>> installed. >>>>>>>> I was able to do the first item successfully with minor adaptations: >>>>>>>> 1. Create a Jave Web project with Maven >>>>>>>> Got build error: >>>>>>>> https://stackoverflow.com/questions/66920567/error-injecting-org-apache-maven-plugin-war-warmojo >>>>>>>> Went to: https://maven.apache.org/plugins/ >>>>>>>> Answer: manually configuring one of the recent war plug-ins in POM.xml >>>>>>>> Changed 2.3 to 3.3.2 >>>>>>>> Then got the form. >>>>>>>> I successfully created the Unit Conversion form which opens in Safari >>>>>>>> (Version 16.1) in tomcat: http://localhost:8080/mavenproject3/ >>>>>>>> >>>>>>>> But trying the second—third items: >>>>>>>> 2. Create Java Servlet & JavaServer Page (JSP) >>>>>>>> 3. Run Java Web App on Tomcat inside NetBeans >>>>>>>> >>>>>>>> I got stuck. >>>>>>>> When I fill in a value in the miles box and click Convert to >>>>>>>> kilometers, Safari gives me a >>>>>>>> HTTP Status 404 – Not Found >>>>>>>> Message The requested resource [/mavenproject3/convert] is not >>>>>>>> available >>>>>>>> Description The origin server did not find a current representation >>>>>>>> for the target resource or is not willing to disclose that one exists. >>>>>>>> >>>>>>>> After a couple of days trying to fix it, I’m still at a loss. >>>>>>>> I did get rid of a problem not finding the native tomcat libraries: >>>>>>>> INFO [main] >>>>>>>> org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The >>>>>>>> Apache Tomcat Native library which allows using OpenSSL was not found >>>>>>>> on the java.library.path: ... >>>>>>>> by dowloading and installing The Apache Tomcat Native library >>>>>>>> following instructions here: >>>>>>>> https://formulae.brew.sh/formula/tomcat-native >>>>>>>> >>>>>>>> However, I still get the 404 not found in Safari. >>>>>>>> Can anyone help me? >>>>>>>> >>>>>>>> I wonder whether these debugger messages indicate a problem using a >>>>>>>> symbolic link to my real tomcat directory from /Library/Tomcat >>>>>>>> >>>>>>>> 16-Jan-2023 11:15:13.009 INFO [main] >>>>>>>> org.apache.catalina.startup.VersionLoggerListener.log Command line >>>>>>>> argument: -Dignore.endorsed.dirs= >>>>>>>> 16-Jan-2023 11:15:13.010 INFO [main] >>>>>>>> org.apache.catalina.startup.VersionLoggerListener.log Command line >>>>>>>> argument: -Dcatalina.base=/Library/Tomcat >>>>>>>> 16-Jan-2023 11:15:13.010 INFO [main] >>>>>>>> org.apache.catalina.startup.VersionLoggerListener.log Command line >>>>>>>> argument: -Dcatalina.home=/Library/Tomcat >>>>>>>> >>>>>>>> but the infos in the debugger do tell me that it is using the real >>>>>>>> directories: >>>>>>>> CATALINA_BASE: /usr/local/apache-tomcat-10.0.23 >>>>>>>> CATALINA_HOME: /usr/local/apache-tomcat-10.0.23 >>>>>>>> >>>>>>>> I get the following debugger WARNING: >>>>>>>> WARNING [http-nio-8080-exec-10] >>>>>>>> org.apache.catalina.startup.HostConfig.deployDescriptor The path >>>>>>>> attribute with value [/mavenproject3] in deployment descriptor >>>>>>>> [/usr/local/apache-tomcat-10.0.23/conf/Catalina/localhost/mavenproject3.xml] >>>>>>>> has been ignored >>>>>>>> >>>>>>>> Trying to follow suggestions at: >>>>>>>> https://stackoverflow.com/questions/11731377/servlet-returns-http-status-404-the-requested-resource-servlet-is-not-availa >>>>>>>> I’m lost. I can’t even figure out which versions of Servlet I’m >>>>>>>> using, and the instructions to find out at.: >>>>>>>> https://stackoverflow.com/questions/3913485/how-do-i-know-what-version-of-servlet-api-jar-i-have >>>>>>>> >>>>>>>> don’t provide enough context for me to know where to put the commands >>>>>>>> suggested. >>>>>>>> >>>>>>>> === >>>>>>>> Can anyone help me either (a) work through this tutorial with current >>>>>>>> versions of software, or (b) give me an example of how to create a >>>>>>>> servlet or portable war file in NetBeans to use with Tomcat by copying >>>>>>>> it to its webapps directory using current versions of NetBeans and >>>>>>>> other software? >>>>>>>> >>>>>>>> Thank you in advance. >>>>>>>> Yours, >>>>>>>> >>>>>>>> ****************************** >>>>>>>> Peter M. Scharf, President >>>>>>>> The Sanskrit Library >>>>>>>> sch...@sanskritlibrary.org <mailto:sch...@sanskritlibrary.org> >>>>>>>> https://sanskritlibrary.org <https://sanskritlibrary.org/> >>>>>>>> ****************************** >>>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Carl J. Mosca >>>>>> >>>>> >>>>> >>>>> -- >>>>> Carl J. Mosca >>>> >>> -- >>> Eric Bresie >>> ebre...@gmail.com <mailto:ebre...@gmail.com> >> > > > -- > Carl J. Mosca