Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to set up web project in NetBeans (was: How to deploy jsp project)

 
Harshal Gurav
Ranch Hand
Posts: 151
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Thank you!
[ June 10, 2008: Message edited by: Ulf Dittmer ]
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34973
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34973
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65228
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And speaking of all caps, could also do our eyes a favor and adjust your display name to mixed case? The all caps is rather jarring.
 
Harshal Gurav
Ranch Hand
Posts: 151
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 151
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anybody help me on above topic?
its urgent
Thanks
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeanne advised you to install a server like Tomcat; do you have that up and running yet? As was pointed out above, an IDE can't run web applications.
 
Harshal Gurav
Ranch Hand
Posts: 151
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 151
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Usman Saeed
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
just copy your application in webapps folder of tomcat, restart your tomcat server and browse for your application in web browser
 
Harshal Gurav
Ranch Hand
Posts: 151
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
As i am Deployiing this with the help of netbeans how can i open the folder in Webapps.
Really Speaking I am Kid in This java World.
Thanks
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34973
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 151
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So your question isn't about deploying a web app, it's about how to set it up in NetBeans?
 
Harshal Gurav
Ranch Hand
Posts: 151
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 151
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
can any body suggest solution for above problem?
Thanks And Reagards
Harshal
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34973
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Harshal,
My deployment directory looks like:

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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic