1 2 Previous Next 18 Replies Latest reply on Feb 13, 2012 7:14 PM by ctomc

    Where is my application webpage in AS7

    samwun9988

      Hi,

       

      I have deployed a WAR file to JBOSS AS7, but I could not found where the webpage of my application.

       

      Here is the full log messages during deployment:

       

       

      22:11:00,119 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) Starting deployment of "spring-mvc-grails-1.0.0-SNAPSHOT.war"

      22:11:02,750 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-6) Class Path entry toolbox.jar in "/content/spring-mvc-grails-1.0.0-SNAPSHOT.war/WEB-INF/lib/itext-2.0.8.jar"  does not point to a valid jar for a Class-Path reference.

      22:11:02,750 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-6) Class Path entry bcmail-jdk14-138.jar in "/content/spring-mvc-grails-1.0.0-SNAPSHOT.war/WEB-INF/lib/itext-2.0.8.jar"  does not point to a valid jar for a Class-Path reference.

      22:11:02,750 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-6) Class Path entry bcprov-jdk14-138.jar in "/content/spring-mvc-grails-1.0.0-SNAPSHOT.war/WEB-INF/lib/itext-2.0.8.jar"  does not point to a valid jar for a Class-Path reference.

      22:11:02,751 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-6) Class Path entry jakarta-oro.jar in "/content/spring-mvc-grails-1.0.0-SNAPSHOT.war/WEB-INF/lib/radeox-1.0-b2.jar"  does not point to a valid jar for a Class-Path reference.

      22:11:02,751 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-6) Class Path entry commons-logging.jar in "/content/spring-mvc-grails-1.0.0-SNAPSHOT.war/WEB-INF/lib/radeox-1.0-b2.jar"  does not point to a valid jar for a Class-Path reference.

      22:11:02,751 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-6) Class Path entry picocontainer.jar in "/content/spring-mvc-grails-1.0.0-SNAPSHOT.war/WEB-INF/lib/radeox-1.0-b2.jar"  does not point to a valid jar for a Class-Path reference.

      22:11:02,821 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-6) Encountered invalid class name "org.xmlpull.mxp1.MXParser,org.xmlpull.mxp1_serializer.MXSerializer" for service type "org.xmlpull.v1.XmlPullParserFactory"

      22:11:02,837 INFO  [org.jboss.as.jpa] (MSC service thread 1-4) added javax.persistence.api dependency to spring-mvc-grails-1.0.0-SNAPSHOT.war

      22:11:03,465 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/spring-mvc-grails-1.0.0-SNAPSHOT]] (MSC service thread 1-2) Initializing Spring root WebApplicationContext

      22:11:03,466 INFO  [stdout] (MSC service thread 1-2) INFO : org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization started

      22:11:03,652 INFO  [stdout] (MSC service thread 1-2) INFO : org.springframework.web.context.support.XmlWebApplicationContext - Refreshing Root WebApplicationContext: startup date [Tue Oct 11 22:11:03 EST 2011]; root of context hierarchy

      22:11:03,682 INFO  [stdout] (MSC service thread 1-2) INFO : org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext.xml]

      22:11:03,826 INFO  [stdout] (MSC service thread 1-2) INFO : org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@69fed1f3: defining beans [grailsApplication,pluginManager,grailsConfigurator,grailsResourceLoader,grailsResourceHolder,characterEncodingFilter]; root of factory hierarchy

       

       

       

       

      22:11:05,954 INFO  [stdout] (MSC service thread 1-2) INFO : org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring

      22:11:06,132 INFO  [stdout] (MSC service thread 1-2) INFO : org.springframework.beans.factory.config.PropertiesFactoryBean - Loading properties file from class path resource [gsp/views.properties]

      22:11:06,132 INFO  [stdout] (MSC service thread 1-2) WARN : org.springframework.beans.factory.config.PropertiesFactoryBean - Could not load properties from class path resource [gsp/views.properties]: class path resource [gsp/views.properties] cannot be opened because it does not exist

      22:11:06,483 INFO  [stdout] (MSC service thread 1-2) INFO : org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 3017 ms

      22:11:06,546 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/spring-mvc-grails-1.0.0-SNAPSHOT]] (MSC service thread 1-2) Initializing Spring FrameworkServlet 'SpringMVCServlet'

      22:11:06,546 INFO  [stdout] (MSC service thread 1-2) INFO : org.springframework.web.servlet.DispatcherServlet - FrameworkServlet 'SpringMVCServlet': initialization started

      22:11:06,548 INFO  [stdout] (MSC service thread 1-2) INFO : org.springframework.web.context.support.XmlWebApplicationContext - Refreshing WebApplicationContext for namespace 'SpringMVCServlet-servlet': startup date [Tue Oct 11 22:11:06 EST 2011]; parent: org.codehaus.groovy.grails.commons.spring.GrailsWebApplicationContext@15a8cf03

      22:11:06,548 INFO  [stdout] (MSC service thread 1-2) INFO : org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/servlet-context.xml]

      22:11:06,592 INFO  [stdout] (MSC service thread 1-2) INFO : org.springframework.context.annotation.ClassPathBeanDefinitionScanner - JSR-250 'javax.annotation.ManagedBean' found and supported for component scanning

      22:11:06,594 INFO  [stdout] (MSC service thread 1-2) INFO : org.springframework.context.annotation.ClassPathBeanDefinitionScanner - JSR-330 'javax.inject.Named' annotation found and supported for component scanning

      22:11:06,625 INFO  [stdout] (MSC service thread 1-2) INFO : org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring

      22:11:06,629 INFO  [stdout] (MSC service thread 1-2) INFO : org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1e1116f9: defining beans [testController,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping#0,org.springframework.format.support.FormattingConversionServiceFactoryBean#0,org.springframework.validation.beanvalidation.LocalValidatorFactoryBean#0,org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter#0,org.springframework.web.servlet.handler.MappedInterceptor#0,org.springframework.web.servlet.config.viewControllerHandlerAdapter,org.springframework.web.servlet.config.viewControllerHandlerMapping,org.springframework.web.servlet.handler.MappedInterceptor#1,org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter,org.springframework.web.servlet.resource.ResourceHttpRequestHandler#0,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#0,localeResolver,messageSource]; parent: org.codehaus.groovy.grails.commons.spring.ReloadAwareAutowireCapableBeanFactory@b426780

      22:11:06,667 INFO  [stdout] (MSC service thread 1-2) INFO : org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping - Mapped URL path [/test/1] onto handler 'testController'

      22:11:06,667 INFO  [stdout] (MSC service thread 1-2) INFO : org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping - Mapped URL path [/test/1.*] onto handler 'testController'

      22:11:06,667 INFO  [stdout] (MSC service thread 1-2) INFO : org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping - Mapped URL path [/test/1/] onto handler 'testController'

      22:11:06,677 INFO  [org.hibernate.validator.util.Version] (MSC service thread 1-2) Hibernate Validator 4.2.0.Final

      22:11:06,732 INFO  [stdout] (MSC service thread 1-2) INFO : org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Root mapping to handler of type [class org.springframework.web.servlet.mvc.ParameterizableViewController]

      22:11:06,735 INFO  [stdout] (MSC service thread 1-2) INFO : org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/resources/**] onto handler 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#0'

      22:11:06,743 INFO  [stdout] (MSC service thread 1-2) INFO : org.springframework.web.servlet.DispatcherServlet - FrameworkServlet 'SpringMVCServlet': initialization completed in 197 ms

      22:11:06,748 INFO  [org.jboss.web] (MSC service thread 1-2) registering web context: /spring-mvc-grails-1.0.0-SNAPSHOT

      22:11:06,785 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployed "spring-mvc-grails-1.0.0-SNAPSHOT.war"

       

       

      Here is the error when I navigated to the page:

       

       

      HTTP Status 404 - /spring-mvc-grails-1.0.0-SNAPSHOT/


      type Status report

      message /spring-mvc-grails-1.0.0-SNAPSHOT/

      description The requested resource (/spring-mvc-grails-1.0.0-SNAPSHOT/) is not available.


      JBoss Web/7.0.1.Final

       

       

      Any suggestion would be very appreciated.

      Thanks

      Sam

        • 1. Re: Where is my application webpage in AS7
          thebravedave

          I am also having this same problem and cant find the solution.

          Ive even tried creating bare bones grails projects in both

          grails 1.3.7 and grails 2.0, create a war from them and deploy.

          I've checked the console and the projects are enabled.

          Im using the latest nightly build of JBoss AS 7.1.

          Please help.

          • 2. Re: Where is my application webpage in AS7
            jerseyou

            I need help since I have the same issue with David here... 

            • 3. Re: Where is my application webpage in AS7
              ozizka

              Maybe the app doesn't serve the / path? Try  /index.html or whatever your app contains/serves. Just guessing.

               

              Update: From the logs, I'd try:  /spring-mvc-grails-1.0.0-SNAPSHOT/test/1

              • 4. Re: Where is my application webpage in AS7
                thebravedave

                I tried some of the default views (i.e: index.gsp, etc), but that doesn't seem to be the problem.

                • 5. Re: Where is my application webpage in AS7
                  ctomc

                  Have you tried with lates nightly build https://ci.jboss.org/jenkins/job/JBoss-AS-7.x-latest/

                   

                  otherwise does your application contain jboss-web.xml? if it does please post it's content.

                   

                  --

                  tomaz

                  • 6. Re: Where is my application webpage in AS7
                    nickarls

                    can you see the AS7 main page? (what interface does your http connector bind to? localhost? any-address?)

                    • 7. Re: Where is my application webpage in AS7
                      thebravedave

                      I know that Sam started this thread, but he doesn't appear to be answering.

                      Since we seem to be having the same problem, I will post.

                       

                      Yes, tried the nightly build as of today (build #592).

                       

                      Here is my jboss-web.xml

                       

                      <jboss-web>

                         <class-loading java2ClassLoadingCompliance="false">

                            <loader-repository>

                                      net.mycompany.ServerConfig:loader=ServerConfig.war

                                      <loader-repository-config>java2ParentDelegation=false</loader-repository-config>

                            </loader-repository>

                         </class-loading>

                      </jboss-web>

                      • 8. Re: Where is my application webpage in AS7
                        thebravedave

                        -Nicklas-

                         

                        Yes, I can see the AS7 main page. The http connector binds to localhost.

                        I can even see the deployed war in the console, and the war is shown as enabled in the deployment section.

                        • 9. Re: Where is my application webpage in AS7
                          nickarls

                          And nothing in the logs when you access the page? The deployment *does* list the web context root so so clue as to why it's not there. The only thing I can think of is that is hits correctly and then some framework does a redirect that fails...

                          • 10. Re: Where is my application webpage in AS7
                            ctomc

                            does anything change if you remove jboss-web.xml from your deployment as content of it does not apply to as7 as it did to previous versions.

                            • 11. Re: Where is my application webpage in AS7
                              thebravedave

                              @Nicklas Karlsson,

                               

                              no, nothing in the logs when you access the page.

                              just FYI the same war file deploys and works properly in jboss 4.2.3 so I know something with the new Jboss 7 upgrade is causing this.

                               

                              David

                              • 12. Re: Where is my application webpage in AS7
                                odavido

                                Have you tried to increase the jboss log level to debug? Any hints?

                                Can you provide the source of your application or the steps to create it to be able to reproduce it?

                                 

                                David

                                • 13. Re: Where is my application webpage in AS7
                                  thebravedave

                                  @Tomaz Cerar

                                   

                                  Nothing changes if I remove jboss-web.xml.

                                  • 14. Re: Where is my application webpage in AS7
                                    thebravedave

                                    @David Ostrovsky

                                     

                                    increased jboss log level to debug.

                                    Didn't really see any useful hints.

                                    When I tried to load the page, nothing showed up, but this "Start expire sessions" "End expire sessions" keeps repeating every minute or so.

                                     

                                    08:58:55,256 INFO  [org.jboss.osgi.framework.internal.HostBundleState] (MSC service thread 1-11) Bundle started: ServerConfig:0.1.0

                                    08:58:55,258 DEBUG [org.jboss.osgi.framework.internal.AbstractBundleService] (MSC service thread 1-5) Starting: service jbosgi.bundle.10.ServerConfig."0.1.0".ACTIVE in mode ACTIVE

                                    08:59:48,887 DEBUG [org.apache.catalina.session.ManagerBase] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]) Start expire sessions StandardManager at 1329152388887 sessioncount 0

                                    08:59:48,888 DEBUG [org.apache.catalina.session.ManagerBase] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]) End expire sessions StandardManager processingTime 1 expired sessions: 0

                                    09:00:49,045 DEBUG [org.apache.catalina.session.ManagerBase] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]) Start expire sessions StandardManager at 1329152449045 sessioncount 0

                                    09:00:49,049 DEBUG [org.apache.catalina.session.ManagerBase] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]) End expire sessions StandardManager processingTime 4 expired sessions: 0

                                    09:01:49,207 DEBUG [org.apache.catalina.session.ManagerBase] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]) Start expire sessions StandardManager at 1329152509207 sessioncount 0

                                    1 2 Previous Next