• 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

folder structure for jsf application

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i want to deploy my jsf application in jboss.i created war files using ant.
same application runs in tomcat but not in jboss. from the first screen i cant go to second screen , the error showed is jsp page not found. but that page is there and mapping is there in faces-config.xml.
so i felt like may be the folder structure is not correct.can any one tell me the actual folder structure . if you have please send me one build.xml file.

thanks well in advance
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think we have a JBoss forum where you can get more help. JBoss doesn't require anything special about your WAR, although if you're using MYFACES, you should include the following in your web.xml to avoid conflicts between your WAR's JSF libs and the JBoss JSF libs:



Deploying a WAR in JBoss is simple. Just copy it into the Jboss server/default/deploy directory. It will automatically come up at the context with the name name as your WAR. So for example, foo.war should be at http://localhost:8080/foo assuming default settings.

There's a special file that goes into WEB-INF alongside the web.xml file. It's called jboss-web.xml and it holds the extra deployment info that doesn't go into web.xml. Mostly it's stuff that in straignt Tomcat would go into your Context definition. Things like JNDI definitions and such.

Hooking JDBC datasource connection pools in gets more complicated. If you have problems with that, check our JBoss forum (or read the manual).
 
Ranch Hand
Posts: 1880
Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am working on JSF in JBoss application server. Are you using any IDEs like eclipse. If you use eclipse the work is very easy to deploy in the jBoss application server. I can help you if you face any problem in configuring JBoss in eclipse.
 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What Extention you are using. are you using .faces or .jsp for jsp page invocation.
If you have mention .jsp as a Faces extention in web.xml and you are calling that page with faces extention through faces config you may get page not found error.

Please apply proper faces extention everywhere.

Regards,
Praful Sinha.
 
prathibha shiju
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
krishna,
for my project i have to use eclipse,ant and jboss server.i have to release war files.
i am new to jsf. and i learned jsf
using tomcat only,with out eclipse.and after builing those application i tried on jboss,that was
not working.
so i thought its the difference of folder structure thats creating problem.i tried that in
myeclipse with tomcat, that was
working . again from kickstart site i got a war file ,that also showed the same problem.this
is the situation. now please tell me
what are the plugins,files and folders i have to use to make a jsf application using
eclipse and run on jboss.
reply
    Bookmark Topic Watch Topic
  • New Topic