NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
tbaldarelli
Joined: 29 Jun 2012 Posts: 2
|
Posted: Fri Jun 29, 2012 5:29 pm Post subject: how to use netbeans with Tomcat webapp as is |
|
|
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
| Description: |
| Dropdown only showing glassfish, no tomcat. |
|
| Filesize: |
98.6 KB |
| Viewed: |
2234 Time(s) |

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

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

|
|
|
| Back to top |
|
 |
tbaldarelli
Joined: 29 Jun 2012 Posts: 2
|
Posted: Thu Jul 05, 2012 9:23 pm Post subject: my questions make sense? |
|
|
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
|
Posted: Tue Jul 31, 2012 9:47 am Post subject: |
|
|
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
|
Posted: Tue Jul 31, 2012 4:22 pm Post subject: It is your project type |
|
|
| Tomcat projects need to be webapplications not enterprise apps.
|
|
| Back to top |
|
 |
|
|
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
|
|