aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes How to set up web project in NetBeans (was: How to deploy jsp project) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "How to set up web project in NetBeans (was: How to deploy jsp project)" Watch "How to set up web project in NetBeans (was: How to deploy jsp project)" New topic
Author

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

Harshal Gurav
Ranch Hand

Joined: May 29, 2008
Posts: 151
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

Joined: May 26, 2003
Posts: 30780
    
157

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30780
    
157

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

Joined: Jan 10, 2002
Posts: 61437
    
  67

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Harshal Gurav
Ranch Hand

Joined: May 29, 2008
Posts: 151
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: 151
can anybody help me on above topic?
its urgent
Thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42292
    
  64
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.


Ping & DNS - my free Android networking tools app
Harshal Gurav
Ranch Hand

Joined: May 29, 2008
Posts: 151
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: 42292
    
  64
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: 151
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

Joined: May 21, 2008
Posts: 34
Hi,
just copy your application in webapps folder of tomcat, restart your tomcat server and browse for your application in web browser


Usman Saeed
Harshal Gurav
Ranch Hand

Joined: May 29, 2008
Posts: 151
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

Joined: May 26, 2003
Posts: 30780
    
157

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: 151
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: 42292
    
  64
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: 151
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: 151
Hi,
can any body suggest solution for above problem?
Thanks And Reagards
Harshal
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30780
    
157

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to set up web project in NetBeans (was: How to deploy jsp project)