Please check, whether your application is getting deploy in jboss folder and have you added proper environment variable and jboss arguments.
i have checked JBOss deploy folder. WAR file is present there. and plz tell me how to check jboss arguments. and environment variables are all set
To check variables just see the run.bat file inside the bin folder and check for the variables
fileManagementWidget.xhtmlset JAVA_OPTS=%JAVA_OPTS% -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -XX:MaxPermSize=256m -DAWP90_WP_HOME=D.....
are those given correctly?
What is the name of the WAR file? What is the URL you are using to access the app?
In the console output there should be a line that shows the WAR being deployed, and that line should provide the context, something like this:
2010-02-03 10:18:51,217 INFO [TomcatDeployment] deploy, ctxPath=/helloapp
Do you see something like this for your app?
about your initial post: you said that you have a simple app. But according to the config snippet, you bundle your own JSF implementation inside. Why not removing it? JBoss already bundles the Sun reference implementation, and I assume that your beginner project does not require another JSF version.
This might eliminate potential deployment errors.
thanks a lot for your concerns but when i remove that piece of code from my deployment descriptor then i get deployment exceptions...
09:15:44,406 ERROR [MainDeployer] Could not start deployment: file:/D:/Java Softwares/jboss-4.2.2.GA/jboss-4.2.2.GA/server/default/deploy/JsfTutorial.war
org.jboss.deployment.DeploymentException: URL file:/D:/Java Softwares/jboss-4.2.2.GA/jboss-4.2.2.GA/server/default/tmp/deploy/tmp50350JsfTutorial-exp.war/ deployment failed
the name of my application is JsfTutorial
@ Peter, thanks a lot for your concerns.
the name of my application is JsfTutorial and it is deployed in the jboss deploy folder as well.
09:19:01,203 INFO [TomcatDeployer] deploy, ctxPath=/JsfTutorial, warUrl=.../tmp/deploy/tmp34676JsfTutorial-exp.war/
the url being used to access the app is http://localhost:8082/JsfTutorial
the last few lines displayed on the console are
09:45:11,140 INFO [TomcatDeployer] deploy, ctxPath=/JsfTutorial, warUrl=.../tmp/deploy/tmp9089JsfTutorial-exp.war/
09:45:11,468 INFO [FacesConfigurator] Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
09:45:11,515 INFO [FacesConfigurator] Reading config jar:file:/D:/Java%20Softwares/jboss-4.2.2.GA/jboss-4.2.2.GA/server/default/tmp/deploy/tmp9089JsfTutorial-exp.war/WEB-INF/lib/tomahawk-1.1.5.jar!/META-INF/faces-config.xml
09:45:11,531 INFO [FacesConfigurator] Reading config /WEB-INF/faces-config.xml
09:45:11,546 INFO [FacesConfigurator] Starting up MyFaces-package : myfaces-api in version : 1.1.5 from path : file:/D:/Java%20Softwares/jboss-4.2.2.GA/jboss-4.2.2.GA/server/default/tmp/deploy/tmp9089JsfTutorial-exp.war/WEB-INF/lib/myfaces-api-1.1.5.jar
09:45:11,562 INFO [FacesConfigurator] Starting up MyFaces-package : myfaces-impl in version : 1.1.5 from path : file:/D:/Java%20Softwares/jboss-4.2.2.GA/jboss-4.2.2.GA/server/default/tmp/deploy/tmp9089JsfTutorial-exp.war/WEB-INF/lib/myfaces-impl-1.1.5.jar
09:45:11,562 INFO [FacesConfigurator] MyFaces-package : tomahawk-sandbox not found.
09:45:11,562 INFO [FacesConfigurator] Starting up MyFaces-package : tomahawk in version : 1.1.5 from path : file:/D:/Java%20Softwares/jboss-4.2.2.GA/jboss-4.2.2.GA/server/default/tmp/deploy/tmp9089JsfTutorial-exp.war/WEB-INF/lib/tomahawk-1.1.5.jar
09:45:11,593 WARN [LocaleUtils] Locale name in faces-config.xml null or empty, setting locale to default locale : en_US
09:45:12,890 INFO [FacesConfigurator] Serialization provider : class org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
09:45:12,890 INFO [StartupServletContextListener] ServletContext 'D:\Java Softwares\jboss-4.2.2.GA\jboss-4.2.2.GA\server\default\.\tmp\deploy\tmp9089JsfTutorial-exp.war\' initialized.
09:45:12,953 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
09:45:13,125 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8088
09:45:13,140 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
09:45:13,140 INFO [Server] JBoss (MX MicroKernel) [4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)] Started in 16s:906ms
the server output shows that your app bundles MyFaces 1.1.5.
Thus, you would need the "org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL" switch in web.xml.
But JBoss 4.2.2 already bundles the Sun JSF implementation 1.2 (exact version is 1.2_04). So the question is: do you need MyFaces in your app, or will it also work with the included one? Please delete WEB-INF\lib\myfaces-api-1.1.5.jar and myfaces-impl-1.1.5.jar.
Do you need the Tomahawk jars?
Thanks alot for your concerns.
i had already included "org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL" switch in my web.xml. Although i dont need MyFaces for a simple application like this one........ my aim right now is to get something on the explorer... if i delete myfaces-api and impl lib even then i dont get any thing on the explorer except HTTP -404
Do you have any index.html or any other "welcome-page" for your web app?
yes i have an index page that is justpointing to other page on which a only a string is written
please post the full details of your app. Either attach it to your post, or post the relevant snippets of your deployment descriptors, your web pages and the output of "jar tf yourWarFile.war".
What URL do you navigate in browser?