This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
First, thanks in advance for anyone who can help. I'm not a coder, and hopefully my problem is a simple one to solve I had taken source code file of one application from live server where the application is successfully running. The application is developed with JSP and mysql as backend. HOW CAN I DEPLOY SUCH APPLICATION ON MY LOCALHOST SYSTEM WITH THE HELP OF NETBEANS 6.0 WICH COMES IN BUNDLED WITH MY SQL CONNECTOR. Any Suggestion is greatly appreciated.
Harshal, Welcome to JavaRanch! Please don't post in all caps. It looks like yelling which is certainly not your intent. If you need to emphasize a particular sentence, you can make it bold.
Now on to your question. NetBeans is an IDE which is used for writing code. It is not an application server which means it can't be the place a JSP is deployed to. You need to install a server on your system first. Common free ones are Tomcat and JBoss. Tomcat is simpler to use. It doesn't do as much as JBoss, but it meets your needs to deploy a JSP project.
Sir, I had installed MYsql server on localhost system and now showing the required database in service window in database section in netbeans.When i deploying it, it shows the error in many jsp pages? As i had taken this application folder from live server where it is successfully running why they showing error in netbeans? Kindly assist me. Regards harshal
Harshal Gurav
Ranch Hand
Joined: May 29, 2008
Posts: 150
posted
0
can anybody help me on above topic? its urgent Thanks
Hi, you are right. but i had installed tomcat,j2se development kit5.0,my sql connector with neccessary database which had taken from LIVE application.(i have to modify to this application.)
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35444
9
posted
0
If you have Tomcat running, what stops you from deploying the application on it? It just means copying the files you got from the live server to the Tomcat server (and probably changing the database settings somewhere).
Have you created a copy of the live database schema on your MySql instance yet?
Harshal Gurav
Ranch Hand
Joined: May 29, 2008
Posts: 150
posted
0
Hi, I have created a copy of the live database schema on MYSQL instance in Netbeans. Can tou more specify: It just means copying the files you got from the live server to the Tomcat server Thanks and Regards Harshal
Harshal, Forget about Netbeans. It's easier to deploy straight to Tomcat. (You copy the web app directory into Tomcat's <tomcat install>/webapps directory.
The IDE integration is meant for developers who are coding in NetBeans and want to speed up deploying to Tomcat. If you aren't developing, there is no point in complicating things by involving another tool.
And thanks for updating your display name to mixed case.
Harshal Gurav
Ranch Hand
Joined: May 29, 2008
Posts: 150
posted
0
Thank you veyr much Jeanne for your valuable suggestion. As i have project folder containg directory like sect-1' section-2,and perticular dierctory contain relative jsp pages, how can i deploy all jsp pages at time so that my hole project will be compiled? project folder structuge is like as: project folder\index.jsp,home.jsp,validuser.jsp project folder\section-1\one.jsp,two.jsp,three.jsp project folder\section-2\one.jsp,two.jsp,three.jsp / / / project folder\WEB-INF\CLASSES\one.java,two.java each subdirectory(section-1,2,3...) contain CVS folder containing file named entries,root,repository. I mentioned briefly so that you can understood exact nature of project. Thanks And Regards Harshal
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35444
9
posted
0
So your question isn't about deploying a web app, it's about how to set it up in NetBeans?
Harshal Gurav
Ranch Hand
Joined: May 29, 2008
Posts: 150
posted
0
Hi Ulf, See my Target is to run the jsp project on my localhost system which is running on live server in my organisation. I have to make enhancement in that perticular project which i can make once my project will run successfully. any more clarification. Thanks And Regards Harshal
Harshal Gurav
Ranch Hand
Joined: May 29, 2008
Posts: 150
posted
0
Hi, can any body suggest solution for above problem? Thanks And Reagards Harshal
The exact directories for JSPs should match those on the server you took the running app from. Note that JSPs are not compiled.
Also, note that you should copy the .class files rather than the .java files. The .class files are already compiled. I presume you aren't planning to change the Java code since you said above you aren't a coder.
Tomcat will ignore the CVS folders so you can ignore that. Copying it will not harm matters and neither will leaving it off.