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.
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).
An IDE is no substitute for an Intelligent Developer.
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.
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.
Joined: Jun 19, 2007
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.