• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Building,packaging, and deploying java web components from netbeans

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Building, packaging and deploying java web components from netbeans is unclear to me. Let me give some background information concerning my attempts at achieving this processes. I'm a hands on learner and i've learnt many things this way. But i sense that it can be needless trying to clarify this issue myself at this juncture. I recently installed the glassfish version 3 web application server. Typical of software installations like this, a documentation accompanied it and i believe (to a reasonable extent) i followed the instructions in getting the required software set. The Javaee 6 tutorial that came with the installation directed me to a two directories precisely:
C:\glassfish3\glassfish\docs\javaee-tutorial\examples\web\hello1> The "hello1" directory contains jsp web components
C:\glassfish3\glassfish\docs\javaee-tutorial\examples\web\hello2> The "hello2" directory contains servlet web components

I followed the directive as stated in the tutorial (to the best of my knowledge) at building,packaging and deploying these sample web components, but i sensed a clog in the wheel of progress somewhere. These are the steps i followed(as directed from the tutorial) but where i discovered there's a problem somewhere:
(1)With the netbeans IDE loaded, I was directed to click on File-Open project i did this
(2)In the open project dialog i was to navigate to C:\glassfish3\glassfish\docs\javaee-tutorial\examples\web\ i did as well
(3)I was to select the "hello1" folder i did
(4)The next step was to "Select the open as Main Project check box" This is the point i felt something isn't right.
In the "Open project dialog", the textfield under the "Project name" area showed the message <unregonized project; missing plug-in?> The "open as main
project area" was inactive and uneditable. There is no point projecting to the next two steps which had to do with clicking the "Open Project" button and going
to the projects tab, right-clicking the hello1 project and selecting "build".
I"ll appreciate somebody giving me straight answers at resolving the issue of building, packaging and deploying java web components from netbeans. I dont
need reference to materials anymore (I've seen much, though i still go through other sources once the knowledge of the fundamentals is clear). One issue i
believe that's closely connected to this is how to organize the directory structure with respect packing of the software components. I'm not totally a novice to
netbeans but i'm very unclear (at least at the moment) about how to organize the directories where this component or that component should be with respect to
netbeans. For example if i'm to make a new project of the sample programs of the tutorial what will should be the correct project location with respect to netbeans. Will it be C:\glassfish3\glassfish\docs\javaee-tutorial\examples\web and the project folder be C:\glassfish3\glassfish\docs\javaee-tutorial\examples\web\hello1> I tried something like this, i still wasn't getting the expected. In a nutsell, can i set a different directory path in netbeans for web components having
another path on my file system? How can i successfully, build, package and deploy web components set in a directory path different from that set in net beans. does the net beans system of setting directories correlate with that on my computer. I believe the clarification of this issues will be the key to my understanding the netbeans IDE. On a final note, the concept of the "main" project and sub-projects in net beans is unclear to me at the moment. Does that mean i dont have to
create a new project for every class i write? Does it mean that in a single consisting of many classes, the main class represents the main project and the class that are composed in the main class the sub-projects. I'll be very glad to have straight answers to this rather multiple questions.

Olakunle oladipo oni
 
reply
    Bookmark Topic Watch Topic
  • New Topic