4 Replies Latest reply on Jul 19, 2011 10:36 AM by erez135

    unable to run/deploy application on tomcat

    erez135

      hi ,

      i hope i am the appropriate forum ( if not, i am sorry and will appreciate any pointer

      i build some jsf application using the following :

      •      richFaces component 4.0.0
      •      JSF2 ( apace MyFaces JSF Core-2.0 API 2.0.2
      •      Eclipse 3.6 + tomcat 7 ( as pulg in)

       

      using eclipse i am using export-->web->war ( to tomcat webapp directory  - is it the way to do it ?)

       

       

      , it works good in my eclipse - the problem start when i deploy it to my external tomcat server ( ver 7)

       

      it just not running , and it cant find some jars.

      am i missing somthing ? are there any installation i should be do?

       

      my tomcat log somthing like this "INFO: MyFaces-package : tomahawk not found."

       

      (please find attached tomcat catalina log file + bitmap of my eclipse library )

       

      i am stuck on this and will appreciate any help on this .

       

      Thansk in advanced.


        • 1. Re: unable to run/deploy application on tomcat
          baldercm

          Hi, i think u can safely ignore the INFO messages about Tomahawk, they're just telling you will be unable to execute some MyFaces/Tomahawk advanced features.

           

          I think the real problem is something about your WAR format or packaging method. This is the error that prevents your webapp running:

           

          java.lang.IllegalArgumentException: Invalid or unreadable WAR file : error in opening zip file


          How are you asembling the WAR file? Check this. Hope this helps a bit

          • 2. Re: unable to run/deploy application on tomcat
            erez135

            Thanks for your replay Balder,

            i set a new installation of tomcat7 ( clean ).

            this time it didn't get any problem , but it still unable to display my index.xhtml flie ( only part of it ).

            kindly see the attached

             

            Thanks ....

             

             

            Jul 19, 2011 1:50:23 PM org.apache.catalina.core.AprLifecycleListener init

            INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_12\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\ImageMagick-6.6.1-Q16;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\TortoiseSVN\bin;;C:\Program Files\Windows Imaging\;C:\Program Files\iOrgSoft\HTML to Image Converter Command Line;C:\Program Files\MySQL\MySQL Server 5.1\bin

            Jul 19, 2011 1:50:24 PM org.apache.coyote.AbstractProtocol init

            INFO: Initializing ProtocolHandler ["http-bio-8080"]

            Jul 19, 2011 1:50:24 PM org.apache.coyote.AbstractProtocol init

            INFO: Initializing ProtocolHandler ["ajp-bio-8009"]

            Jul 19, 2011 1:50:24 PM org.apache.catalina.startup.Catalina load

            INFO: Initialization processed in 509 ms

            Jul 19, 2011 1:50:24 PM org.apache.catalina.core.StandardService startInternal

            INFO: Starting service Catalina

            Jul 19, 2011 1:50:24 PM org.apache.catalina.core.StandardEngine startInternal

            INFO: Starting Servlet Engine: Apache Tomcat/7.0.16

            Jul 19, 2011 1:50:24 PM org.apache.catalina.startup.HostConfig deployWAR

            INFO: Deploying web application archive jsfQa.war

            Jul 19, 2011 1:50:33 PM org.apache.catalina.core.StandardContext addApplicationListener

            INFO: The listener "org.apache.myfaces.webapp.StartupServletContextListener" is already configured for this context. The duplicate definition has been ignored.

            Jul 19, 2011 1:50:33 PM org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter

            INFO: No context init parameter 'org.apache.myfaces.RENDER_CLEAR_JAVASCRIPT_FOR_BUTTON' found, using default value false

            Jul 19, 2011 1:50:33 PM org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter

            INFO: No context init parameter 'org.apache.myfaces.RENDER_HIDDEN_FIELDS_FOR_LINK_PARAMS' found, using default value false

            Jul 19, 2011 1:50:33 PM org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter

            INFO: No context init parameter 'org.apache.myfaces.SAVE_FORM_SUBMIT_LINK_IE' found, using default value false

            Jul 19, 2011 1:50:33 PM org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter

            INFO: No context init parameter 'org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS' found, using default value true

            Jul 19, 2011 1:50:33 PM org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter

            INFO: No context init parameter 'org.apache.myfaces.RENDER_VIEWSTATE_ID' found, using default value true

            Jul 19, 2011 1:50:33 PM org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter

            INFO: No context init parameter 'org.apache.myfaces.STRICT_XHTML_LINKS' found, using default value true

            Jul 19, 2011 1:50:33 PM org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter

            INFO: No context init parameter 'org.apache.myfaces.RENDER_FORM_SUBMIT_SCRIPT_INLINE' found, using default value false

            Jul 19, 2011 1:50:33 PM org.apache.myfaces.shared_impl.config.MyfacesConfig getLongInitParameter

            INFO: No context init parameter 'org.apache.myfaces.CONFIG_REFRESH_PERIOD' found, using default value 2

            Jul 19, 2011 1:50:33 PM org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter

            INFO: No context init parameter 'org.apache.myfaces.VIEWSTATE_JAVASCRIPT' found, using default value false

            Jul 19, 2011 1:50:33 PM org.apache.myfaces.shared_impl.config.MyfacesConfig getStringInitParameter

            INFO: No context init parameter 'org.apache.myfaces.REFRESH_TRANSIENT_BUILD_ON_PSS' found, using default value auto

            Jul 19, 2011 1:50:33 PM org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter

            INFO: No context init parameter 'org.apache.myfaces.REFRESH_TRANSIENT_BUILD_ON_PSS_PRESERVE_STATE' found, using default value false

            Jul 19, 2011 1:50:33 PM org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter

            INFO: No context init parameter 'org.apache.myfaces.VALIDATE_XML' found, using default value false

            Jul 19, 2011 1:50:33 PM org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter

            INFO: No context init parameter 'org.apache.myfaces.WRAP_SCRIPT_CONTENT_WITH_XML_COMMENT_TAG' found, using default value true

            Jul 19, 2011 1:50:33 PM org.apache.myfaces.shared_impl.config.MyfacesConfig createAndInitializeMyFacesConfig

            INFO: Tomahawk jar not available. Autoscrolling, DetectJavascript, AddResourceClass and CheckExtensionsFilter are disabled now.

            Jul 19, 2011 1:50:33 PM org.apache.myfaces.config.FacesConfigurator feedStandardConfig

            INFO: Reading standard config META-INF/standard-faces-config.xml

            Jul 19, 2011 1:50:33 PM org.apache.myfaces.config.FacesConfigurator addClassloaderConfigurations

            INFO: Reading config : jar:file:/C:/apache-tomcat-7.0.16/webapps/jsfQa/WEB-INF/lib/richfaces-components-ui-4.0.0.Final.jar!/META-INF/faces-config.xml

            Jul 19, 2011 1:50:34 PM org.apache.myfaces.config.FacesConfigurator addClassloaderConfigurations

            INFO: Reading config : jar:file:/C:/apache-tomcat-7.0.16/webapps/jsfQa/WEB-INF/lib/richfaces-core-impl-4.0.0.Final.jar!/META-INF/faces-config.xml

            Jul 19, 2011 1:50:34 PM org.apache.myfaces.config.FacesConfigurator getWebAppConfig

            INFO: Reading config /WEB-INF/faces-config.xml

            Jul 19, 2011 1:50:34 PM org.apache.myfaces.config.FacesConfigurator startLib

            INFO: Starting up MyFaces-package : myfaces-api in version : 2.0.2 from path : file:/C:/apache-tomcat-7.0.16/webapps/jsfQa/WEB-INF/lib/myfaces-api-2.0.2.jar

            Jul 19, 2011 1:50:34 PM org.apache.myfaces.config.FacesConfigurator startLib

            INFO: Starting up MyFaces-package : myfaces-impl in version : 2.0.2 from path : file:/C:/apache-tomcat-7.0.16/webapps/jsfQa/WEB-INF/lib/myfaces-impl-2.0.2.jar

            Jul 19, 2011 1:50:34 PM org.apache.myfaces.config.FacesConfigurator startLib

            INFO: MyFaces-package : tomahawk not found.

            Jul 19, 2011 1:50:34 PM org.apache.myfaces.config.FacesConfigurator startLib

            INFO: MyFaces-package : tomahawk12 not found.

            Jul 19, 2011 1:50:34 PM org.apache.myfaces.config.FacesConfigurator startLib

            INFO: MyFaces-package : tomahawk-sandbox not found.

            Jul 19, 2011 1:50:34 PM org.apache.myfaces.config.FacesConfigurator startLib

            INFO: MyFaces-package : tomahawk-sandbox12 not found.

            Jul 19, 2011 1:50:34 PM org.apache.myfaces.config.FacesConfigurator startLib

            INFO: MyFaces-package : tomahawk-sandbox15 not found.

            Jul 19, 2011 1:50:34 PM org.apache.myfaces.config.FacesConfigurator startLib

            INFO: MyFaces-package : myfaces-orchestra-core not found.

            Jul 19, 2011 1:50:34 PM org.apache.myfaces.config.FacesConfigurator startLib

            INFO: MyFaces-package : myfaces-orchestra-core12 not found.

            Jul 19, 2011 1:50:34 PM org.apache.myfaces.config.FacesConfigurator startLib

            INFO: MyFaces-package : trinidad-api not found.

            Jul 19, 2011 1:50:34 PM org.apache.myfaces.config.FacesConfigurator startLib

            INFO: MyFaces-package : trinidad-impl not found.

            Jul 19, 2011 1:50:34 PM org.apache.myfaces.config.FacesConfigurator startLib

            INFO: MyFaces-package : tobago not found.

            Jul 19, 2011 1:50:34 PM org.apache.myfaces.config.FacesConfigurator startLib

            INFO: MyFaces-package : commons-el not found.

            Jul 19, 2011 1:50:34 PM org.apache.myfaces.config.FacesConfigurator startLib

            INFO: MyFaces-package : jsp-api not found.

            Jul 19, 2011 1:50:34 PM org.apache.myfaces.util.ExternalSpecifications isBeanValidationAvailable

            INFO: MyFaces Bean Validation support disabled

            Jul 19, 2011 1:50:35 PM org.apache.myfaces.application.ApplicationImpl getProjectStage

            INFO: Couldn't discover the current project stage, using Production

            Jul 19, 2011 1:50:35 PM org.apache.myfaces.config.FacesConfigurator handleSerialFactory

            INFO: Serialization provider : class org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory

            Jul 19, 2011 1:50:35 PM org.apache.myfaces.config.annotation.DefaultLifecycleProviderFactory getLifecycleProvider

            INFO: Using LifecycleProvider java.lang.String

            Jul 19, 2011 1:50:35 PM org.apache.myfaces.webapp.AbstractFacesInitializer initFaces

            INFO: ServletContext 'C:\apache-tomcat-7.0.16\webapps\jsfQa\' initialized.

            Jul 19, 2011 1:50:36 PM org.richfaces.javascript.ClientServiceConfigParser parse

            WARNING: Found JavaScript function definition for class javax.validation.constraints.NotNull, but that class is not presented

            Jul 19, 2011 1:50:36 PM org.richfaces.javascript.ClientServiceConfigParser parse

            WARNING: Found JavaScript function definition for class org.hibernate.validator.constraints.NotEmpty, but that class is not presented

            Jul 19, 2011 1:50:36 PM org.richfaces.javascript.ClientServiceConfigParser parse

            WARNING: Found JavaScript function definition for class javax.validation.constraints.Size, but that class is not presented

            Jul 19, 2011 1:50:36 PM org.richfaces.javascript.ClientServiceConfigParser parse

            WARNING: Found JavaScript function definition for class javax.validation.constraints.Pattern, but that class is not presented

            Jul 19, 2011 1:50:36 PM org.richfaces.javascript.ClientServiceConfigParser parse

            WARNING: Found JavaScript function definition for class javax.validation.constraints.Min, but that class is not presented

            Jul 19, 2011 1:50:36 PM org.richfaces.javascript.ClientServiceConfigParser parse

            WARNING: Found JavaScript function definition for class javax.validation.constraints.Max, but that class is not presented

            Jul 19, 2011 1:50:36 PM org.richfaces.javascript.ClientServiceConfigParser parse

            WARNING: Found JavaScript function definition for class javax.validation.constraints.AssertTrue, but that class is not presented

            Jul 19, 2011 1:50:36 PM org.richfaces.javascript.ClientServiceConfigParser parse

            WARNING: Found JavaScript function definition for class javax.validation.constraints.AssertFalse, but that class is not presented

            Jul 19, 2011 1:50:36 PM org.richfaces.cache.CacheManager getCacheFactory

            INFO: Selected fallback cache factory

            Jul 19, 2011 1:50:36 PM org.richfaces.cache.lru.LRUMapCacheFactory createCache

            INFO: Creating LRUMap cache instance using parameters: {org.apache.myfaces.DETECT_JAVASCRIPT=false, org.apache.myfaces.PRETTY_HTML=true, org.apache.myfaces.AUTO_SCROLL=true, org.apache.myfaces.ALLOW_JAVASCRIPT=true, javax.servlet.jsp.jstl.fmt.localizationContext=resources.application, javax.faces.STATE_SAVING_METHOD=client}

            Jul 19, 2011 1:50:36 PM org.richfaces.cache.lru.LRUMapCacheFactory createCache

            INFO: Creating LRUMap cache instance of 512 items capacity

            Jul 19, 2011 1:50:36 PM org.richfaces.application.InitializationListener onStart

            INFO: RichFaces Core Implementation by JBoss, a division of Red Hat, Inc., version v.4.0.0.Final SVN r.22269

            Jul 19, 2011 1:50:36 PM org.apache.catalina.startup.HostConfig deployDirectory

            INFO: Deploying web application directory docs

            Jul 19, 2011 1:50:36 PM org.apache.catalina.startup.HostConfig deployDirectory

            INFO: Deploying web application directory examples

            Jul 19, 2011 1:50:36 PM org.apache.catalina.startup.HostConfig deployDirectory

            INFO: Deploying web application directory host-manager

            Jul 19, 2011 1:50:36 PM org.apache.catalina.startup.HostConfig deployDirectory

            INFO: Deploying web application directory manager

            Jul 19, 2011 1:50:36 PM org.apache.catalina.startup.HostConfig deployDirectory

            INFO: Deploying web application directory ROOT

            Jul 19, 2011 1:50:36 PM org.apache.coyote.AbstractProtocol start

            INFO: Starting ProtocolHandler ["http-bio-8080"]

            Jul 19, 2011 1:50:36 PM org.apache.coyote.AbstractProtocol start

            INFO: Starting ProtocolHandler ["ajp-bio-8009"]

            Jul 19, 2011 1:50:36 PM org.apache.catalina.startup.Catalina start

            INFO: Server startup in 12862 ms

            • 3. Re: unable to run/deploy application on tomcat
              baldercm

              Hi again. You can safely ignore javax.validation warnings as long as you're not planning to use JSR-303 validation. If you want to use this validations, you have to add Java Validation API and any implementation (Hibernate Validator) to your classpath.

               

              It seems your webapp context is properly initialized... Maybe you have a typo in your Faces Servlet mapping? Check your web.xml. What do you see when you try to display your index.xhtml file?

              • 4. Re: unable to run/deploy application on tomcat
                erez135

                my mistake

                 

                i need to write  : http://127.0.0.1:8080/jsfQa/faces/suiteTest.xhtml

                 

                Thanks for your help Balder.

                 

                Regards

                 

                 

                 

                Erez