Re: Servlet Deployment Issues

2023-01-13 Thread Anthony Dell';Anno
Chris,
No, I haven’t seen those replies, but I have changed from JavaFX to Jakarta, as 
StackOverflow suggested that, too.
What I’m experiencing now, is the old version of my HelloWorld class running, 
when I’ve updated it slightly, have recompiled it, and have placed the new 
class file in the webapps directory.
Do you, or does anybody else have sny servlet book suggestions?
Amazon only had this and one other that was even older.


Sent from Yahoo Mail for iPhone


On Friday, January 13, 2023, 8:23 AM, Christopher Schultz 
 wrote:

Anthony,

On 1/12/23 18:18, Anthony Dell'Anno wrote:
> Good evening everyone,
> I am just starting out with Java servlets in Tomcat 10.1.4.
> I’m learning them using a book written in 2010, of which I don’t remember the 
> authors’ names.

Just FYI, a book written in 2010 will be using the Java EE or old 
servlet, etc. package names while Tomcat 10 will want you to use the new 
ones. Without going into too much detail, you basically want to change 
every instance of:

javax.[stuff]

To:

jakarta.[stuff]

> The book does a good job of explaining code samples, but doesn’t
> describe any solutions to HTTP errors.
That's appropriate, depending on the error(s) you are seeing. A book 
about Java servlets and containers is already going to be pretty long; 
adding the details of HTTP would roughly double the size of the book.

> I have a HelloWorld servlet, located in my
> tomcat_home/webapps/servlet_files/classes/hello_app directory, with
> the corresponding web.xml file located just outside of that folder.
> 
> The same directory structure is the same for servlet #2. The URL
> pattern for HelloWorld is /HelloWorld, and the second servlet’s
> web.xml URL pattern is /HelloWorld_Two. In both instances, I receive
> HTTPError 404 messages when attempting to run either of them. >
> Can anybody help me?

Did you see any of the replies sent back to this list on this topic from 
Jan 10th and Jan 11th? I think there are already some ideas in there, 
and some questions, too.

-chris

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org






Servlet Deployment Issues

2023-01-12 Thread Anthony Dell';Anno
Good evening everyone,
I am just starting out with Java servlets in Tomcat 10.1.4.
I’m learning them using a book written in 2010, of which I don’t remember the 
authors’ names.
The book does a good job of explaining code samples, but doesn’t describe any 
solutions to HTTP errors.
I have a HelloWorld servlet, located in my 
tomcat_home/webapps/servlet_files/classes/hello_app directory, with the 
corresponding web.xml file located just outside of that folder.
The same directory structure is the same for servlet #2.
The URL pattern for HelloWorld is /HelloWorld, and the second servlet’s web.xml 
URL pattern is /HelloWorld_Two.
In both instances, I receive HTTPError 404 messages when attempting to run 
either of them.
Can anybody help me?
Thank you,
Anthony 

Sent from Yahoo Mail for iPhone


Tomcat 10.1.4 HTTP Status 404 and 500 Help

2023-01-10 Thread Anthony Dell';Anno
Good afternoon, 
    I'm trying to run my first servlet on Tomcat, and am continually getting an 
HTTP Status 404 (I've also gotten 500 previously, with the root cause being an 
apparent compiler mismatch (it would say that it's being compiled by version 
63.0, which is Java 19, but that the latest version that was currently accepted 
was version 59.0, or Java 15), but then after upgrading to JDK 19, changing the 
JAVA_HOME variable and trying to run, it would still give me the same error)?

I have my Servlet, called HelloWorldServlet, located in the 
"C:\apache-tomcat-10.1.4\webapps\ROOT\WEB-INF\classes\" directory, with the 
web.xml file being located outside of the classes folder, directly inside of 
the WEB-INF folder.
    I've included both files. StackOverflow wasn't much help as of yet, so I'm 
hoping that the Tomcat Users community can help me solve this so that I can 
continue learning servlets. I'm working on building my own software  company.

Any help is appreciated.
Thank you very much,
Anthony Dell'Anno 

	 
	
		 
		
			HelloWorldServlet 
			webapps.HelloMotherFuckerServlet 
			
		 
		
		 
		
			HelloWorldServlet 
			/HelloWorld 
			
			
			
	 
	

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org