NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

how to use netbeans with Tomcat webapp as is

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
tbaldarelli



Joined: 29 Jun 2012
Posts: 2

PostPosted: Fri Jun 29, 2012 5:29 pm    Post subject: how to use netbeans with Tomcat webapp as is Reply with quote

Hello,
First of all, the following questions came after I tried following the directions in http://netbeans.org/kb/docs/java/project-setup.html#existing-web-sources.
How do I import the source code for a tomcat webapp into netbeans exactly as is, with no changes at all. This means I want to keep the build.xml I am currently using, I want to keep the build directory I currently have, I want to keep the dist directory I currently have, etc. I am just trying to correct and debug an existing Tomcat web application that is fully coded and implemented at my customers site.
Please note that the Wizard for the above actions is pretty straight forward, but offers the following problems to accomplishing my goals. The main problem is mentioned above, but here are all the problems in a simple list. Any help would be much appreciated:
1. Complains about the "build" directory being out there, forcing me to move it to "build.bak".
2. Complains about the "dist" directory being out there, forcing me to move it to "dist.bak".
3. Complains about the "build.xml" file being out there, forcing me to move it to "build.xml.bak".
4. Won't let me choose "Tomcat" from the list of choices. No matter what I do, only "Glassfish" is available. Yes, my tomcat server is registered inside netbeans. See attachments.

Thanks for any help you can give.

TB



Netbeans only Glassfish.jpg
 Description:
Dropdown only showing glassfish, no tomcat.
 Filesize:  98.6 KB
 Viewed:  2234 Time(s)

Netbeans only Glassfish.jpg



Netbeans servers and settings.jpg
 Description:
netbeans server and settings page.
 Filesize:  98.57 KB
 Viewed:  2234 Time(s)

Netbeans servers and settings.jpg



netbeans Tomcat.jpg
 Description:
This image shows that tomcat is a registered server in netbeans
 Filesize:  84.13 KB
 Viewed:  2234 Time(s)

netbeans Tomcat.jpg


Back to top
tbaldarelli



Joined: 29 Jun 2012
Posts: 2

PostPosted: Thu Jul 05, 2012 9:23 pm    Post subject: my questions make sense? Reply with quote

Hello,
I see a few people have looked at this Post. Thanks. Am I possibly asking the wrong question, or asking it in the wrong forum? Or maybe people need some clarification? Any direction would be much appreciated. Thanks again.

Tony
Back to top
nicephotog



Joined: 07 Nov 2009
Posts: 17
Location: Australia

PostPosted: Tue Jul 31, 2012 9:47 am    Post subject: Reply with quote

Generally you can use that "add" button eside the server choices and add the Tomcat by its CATALINA_HOME directory e.g. "./Tomcat7.1.1"

Two other possibilities(although the first does not appear to be it) is, 1. you did not install the Tomcat at time of installing Netbeans OR you chose only the glassfish server with the checkbox when you created the "webapplication" on the box menu.

However, one final point of what can go wrong is the installer refuses to put in Tomcat during install because of the JDK/SDK version being a tiny squeeze too old.
Back to top
doowrite



Joined: 31 Jul 2012
Posts: 2

PostPosted: Tue Jul 31, 2012 4:22 pm    Post subject: It is your project type Reply with quote

Tomcat projects need to be webapplications not enterprise apps.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo