-
1. Re: Simple Application in Jboss with JSF
sunilchaurha Feb 4, 2010 4:56 AM (in response to fahimawan83)Please check, whether your application is getting deploy in jboss folder and have you added proper environment variable and jboss arguments. -
2. Re: Simple Application in Jboss with JSF
fahimawan83 Feb 4, 2010 5:03 AM (in response to sunilchaurha)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 -
3. Re: Simple Application in Jboss with JSF
sunilchaurha Feb 4, 2010 5:49 AM (in response to fahimawan83)Hi,
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?
-
4. Re: Simple Application in Jboss with JSF
peterj Feb 4, 2010 11:54 AM (in response to sunilchaurha)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?
-
5. Re: Simple Application in Jboss with JSF
wolfgangknauf Feb 5, 2010 7:28 AM (in response to peterj)Hi Fahim,
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.
Best regards
Wolfgang
-
6. Re: Simple Application in Jboss with JSF
fahimawan83 Feb 7, 2010 11:18 PM (in response to wolfgangknauf)@wolfgang,
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 failedthe name of my application is JsfTutorial
-
7. Re: Simple Application in Jboss with JSF
fahimawan83 Feb 7, 2010 11:22 PM (in response to peterj)@ 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
-
8. Re: Simple Application in Jboss with JSF
fahimawan83 Feb 7, 2010 11:49 PM (in response to fahimawan83)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 -
9. Re: Simple Application in Jboss with JSF
wolfgangknauf Feb 8, 2010 10:35 AM (in response to fahimawan83)Hi,
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?
Best regards
Wolfgang
-
10. Re: Simple Application in Jboss with JSF
fahimawan83 Feb 9, 2010 3:05 AM (in response to wolfgangknauf)Hi,
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
Best regards
-
11. Re: Simple Application in Jboss with JSF
jaikiran Feb 9, 2010 3:14 AM (in response to fahimawan83)Do you have any index.html or any other "welcome-page" for your web app?
-
12. Re: Simple Application in Jboss with JSF
fahimawan83 Feb 9, 2010 4:21 AM (in response to jaikiran)yes i have an index page that is justpointing to other page on which a only a string is written -
13. Re: Simple Application in Jboss with JSF
wolfgangknauf Feb 9, 2010 8:55 AM (in response to fahimawan83)Hi,
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?
Best regards
Wolfgang
-
14. Re: Simple Application in Jboss with JSF
fahimawan83 Feb 10, 2010 1:33 AM (in response to wolfgangknauf)Thanks alot for your concerns,
i am attaching my complete project as a zip file. if u could comprehend and make it run then i would be very grateful
the url is http://localhost:8082/JsfTutorial
thanks again
-
JsfTutorial.rar.zip 6.4 MB
-