• 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
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

First application with JBoss

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I've just downloaded JBoss and it�s already
running on my machine. I got the on-line documentation and tried the example application template using ANT.
The things worked well and the application was deployed. But WHAT was deployed ? The documentation does not tell me how to teste the application just deployed, or maybe i could not understand the whole thing.
Is there some GUI based deployment tool just like in the reference implementation of J2EE ?? or must i use ANT and XDOCLET just like in the example ? How can i get an HELLOWORD example to deploy in JBoss ?
Thanks in advice.
Claudio Gualberto.
 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
From memory, the main sample applications don't have a servlet interface, ejbs are deployed and you use a stand alone java client to access the ejb.
Judging by your post, you have already written servlets before in the reference implementation.
Deploying in jboss does not use any graphical tools, but it is actually much simpler.
If you started the default configuration of jboss, just copy your WAR file (or ejb jars or EAR files) into $JBOSS_HOME/server/default/deploy and it will be deployed.
You can then access the application via http://localhost:8080/mywar/
[ March 19, 2003: Message edited by: Lionel Port ]
 
Claudio Gualberto
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I copied my .EAR file with a EJB stateless and a test Servlet to the deploy directory at the default server ( the one i�m using ).
My Servlet is running ok, but when i try to lookup the EJB the lookup() method is throwing an NamingException. I�m constructing the InitialContext with no arguments ( it works on SUN J2EE default implementation ) i already see at the deployment file inside the .EAR file, and the JNDI name of the EJB is correct.
How can i work around it ?
Claudio Gualberto.
reply
    Bookmark Topic Watch Topic
  • New Topic