Forums Register Login

Works fine on localhost but is buggy on hosting server

+Pie Number of slices to send: Send

I am developing a dynamic web project in JAVA. I'm using JAVA 1.8_0121, Tomcat 8.5 and mySQL.

Since I started the project I used localhost to debug my application, I am now trying to deploy to my server, when I did this, the program started to show some bugs ... The login works fine, the search works fine, but when I select objects to add to a shopping cart to calculate their values, it does not work, much less shows the discount (percentage discount) and sometimes the object description does not appear.

I think it is not a problem in the code but some configuration of the web server that I have no idea where to move, much less I can debug the JSP on the web.

Untitled3.png
Here's how my JSP are organized
[Untitled3.png]
1
+Pie Number of slices to send: Send
When you say it worked on localhost, are you saying you deployed to a non-IDE Tomcat (or similar), or did you just let the IDE do the work?
I'm wondering if the IDE was doing something for you.

As for tracing your issue, you shouldn't need to debug a JSP as it shouldn't have any code in it to debug.
You should have logging in your servlets and other Java code...can you switch on DEBUG level on those and track where the problem lies?

Other than that, without any more detail on what issues you are seeing it's not really going to be possible to give a more detailed answer.
+Pie Number of slices to send: Send
I'm installed TOMCAT on my eclipse to run and debug the cod. I didn't saw anything wrong, 'cause in localhsot works really fine all functions.
1
+Pie Number of slices to send: Send
Dave makes an excellent point: the first thing you should do is to run the web app in a standalone Tomcat. IDEs may do all kinds of stuff that wouldn't happen on the live server.
1
+Pie Number of slices to send: Send
My advice is to never run the server in an IDE. It hides too much and results in these sorts of "surprises". I use an IDE as a smart editor, but run stand-alone servers.
+Pie Number of slices to send: Send
 

Bear Bibeault wrote:My advice is to never run the server in an IDE. It hides too much and results in these sorts of "surprises". I use an IDE as a smart editor, but run stand-alone servers.


How can I put breakpoints on the .war archive? Or how I place my folders(all the project) into the server without being by .war?
I am Arthur, King of the Britons. And this is a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 4867 times.
Similar Threads
Shopping cart & calculate the total price
URLs + Session Tracking
Extreme Planner and "drilldown"
Liferay Portal
Business logic in the controller or another bean?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 10:51:48.