• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Works fine on localhost but is buggy on hosting server  RSS feed

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
[Thumbnail for Untitled3.png]
Here's how my JSP are organized
 
Rancher
Posts: 3596
39
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
julio boll
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Saloon Keeper
Posts: 4694
117
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Author and ninkuma
Marshal
Posts: 66786
168
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
julio boll
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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?
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!