4 Replies Latest reply on Dec 22, 2010 1:49 AM by kwilla2001

    New to JSF need help with generating Dynamic Content

    kwilla2001 Newbie

      HI,

      I'm new to JSF and am trying to use the examples from the book "Begining JSF 2APIs and JBoss Seam" by kent Ka lok Tong. I followed all the instructions but when I run the .xhtml file from Eclipse the Dynamic Content is not showing. The following are the files created:

       

      web.xml:

      <?xml version="1.0" encoding="ISO-8859-1" ?>
      <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns="http://java.sun.com/xml/ns/javaee"
      xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
      http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
        <display-name>hello11</display-name>
        <servlet>
          <servlet-name>JSF</servlet-name>
          <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
          <load-on-startup>1</load-on-startup>
        </servlet>
        <servlet-mapping>
          <servlet-name>JSF</servlet-name>
          <url-pattern>/faces/*</url-pattern>
        </servlet-mapping>
      </web-app>

       

      faces-config:

      <?xml version="1.0" encoding="ISO-8859-1" ?>
      <faces-config
          xmlns="http://java.sun.com/xml/ns/javaee"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
          http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
          version="1.2">
      </faces-config>

       

      hello11.xhtml:

      <?xml version="1.0" encoding="ISO-8859-1" ?>
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html">

      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
      <title>Insert title here</title>
      </head>

      <body>

      Hello static.

      <br/>

      Hello <h:outputText value="John"></h:outputText>

      </body>

       

       

      very simple code but for some reason the dynamic content <h:outputText value="John"> does not display at runtime.

       

      Thanks.

        • 1. Re: New to JSF need help with generating Dynamic Content
          Alexey Kazakov Master

          How did you create the project? New JSF Wizard? New Dynamic Web Project?

          Where and how do you deploy the project?

          • 2. Re: New to JSF need help with generating Dynamic Content
            kwilla2001 Newbie

            I created a new Dynamic Web project in Eclipse (3.5.2) as shown in the attached pic.

            server runtime environment is JBoss 5.0

             

            I get the same result whether I run it in the Eclipse internal browser or from IE or firefox http://localhost:8080/hello11/faces/hello11.xhtml  None of the dynamic content is displayed.

            DWP1.JPG

            • 3. Re: New to JSF need help with generating Dynamic Content
              Alexey Kazakov Master

              Your project doesn't seem to be configured properly. Maybe JSF libs are missing... Maybe faces-config is not in WEB-INF/...

              I recomend you to create a JSF project via File->New->Project->JBoss Tools Web->JSF->JSF Project wizard.

              And use JBoss Tools server adapter (Target runtime->JBoss Community->JBoss 5.0) instead of Eclipse server adapter (Target runtime->JBoss->JBoss v5.0) it uses incremental depliment instead of building the full war file every time you change something in your project.

              • 4. Re: New to JSF need help with generating Dynamic Content
                kwilla2001 Newbie

                When I tried to recreate the project using the approach you described above it fails to deploy and I get a HTTP Status 404 on the browser (not even using any dynamic content).

                DWP2.BMP

                 

                 

                 

                and I got the same thing  in the original project when I added JSF libs under WEB-INF/lib. below is the error log.

                 

                ===============================================================================================

                00:54:56,076 INFO  [ServerImpl] Starting JBoss (Microcontainer)...

                00:54:56,076 INFO  [ServerImpl] Release ID: JBoss [Morpheus] 5.0.0.CR2 (build: SVNTag=JBoss_5_0_0_CR2 date=200809171046)

                00:54:56,076 INFO  [ServerImpl] Home Dir: C:\jboss-5.0.0.CR2

                00:54:56,076 INFO  [ServerImpl] Home URL: file:/C:/jboss-5.0.0.CR2/

                00:54:56,076 INFO  [ServerImpl] Library URL: file:/C:/jboss-5.0.0.CR2/lib/

                00:54:56,076 INFO  [ServerImpl] Patch URL: null

                00:54:56,076 INFO  [ServerImpl] Server Name: default

                00:54:56,076 INFO  [ServerImpl] Server Home Dir: C:\jboss-5.0.0.CR2\server\default

                00:54:56,076 INFO  [ServerImpl] Server Home URL: file:/C:/jboss-5.0.0.CR2/server/default/

                00:54:56,076 INFO  [ServerImpl] Server Data Dir: C:\jboss-5.0.0.CR2\server\default\data

                00:54:56,076 INFO  [ServerImpl] Server Temp Dir: C:\jboss-5.0.0.CR2\server\default\tmp

                00:54:56,076 INFO  [ServerImpl] Server Config URL: file:/C:/jboss-5.0.0.CR2/server/default/conf/

                00:54:56,076 INFO  [ServerImpl] Server Library URL: file:/C:/jboss-5.0.0.CR2/server/default/lib/

                00:54:56,076 INFO  [ServerImpl] Root Deployment Filename: jboss-service.xml

                00:54:56,576 INFO  [ServerImpl] Starting Microcontainer, bootstrapURL=file:/C:/jboss-5.0.0.CR2/server/default/conf/bootstrap.xml

                00:54:57,342 INFO  [CopyMechanism] VFS temp dir: C:\jboss-5.0.0.CR2\server\default\tmp

                00:54:57,389 INFO  [ZipEntryContext] VFS force nested jars copy-mode is enabled.

                00:54:58,357 INFO  [ServerInfo] Java version: 1.6.0_05,Sun Microsystems Inc.

                00:54:58,357 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Client VM 10.0-b19,Sun Microsystems Inc.

                00:54:58,357 INFO  [ServerInfo] OS-System: Windows XP 5.1,x86

                00:54:58,389 INFO  [JMXKernel] Legacy JMX core initialized

                00:54:59,436 INFO  [MetaDataAwareProfile] Using profile root:C:\jboss-5.0.0.CR2\server\default

                00:55:00,795 INFO  [WebService] Using RMI server codebase: http://127.0.0.1:8083/

                00:55:10,295 WARN  [HackClassloaderMetaDataDeployer] FIXME Using loader repository config: jboss.console:sar=console-mgr.sar for  vfsfile:/C:/jboss-5.0.0.CR2/server/default/deploy/management/console-mgr.sar/ use classloading metadata not loader repository config

                00:55:10,623 INFO  [AspectDeployer] Deploying xml into org.jboss.aop.AspectManager@1ddff76 for BaseClassLoader@52fbe5{vfsfile:/C:/jboss-5.0.0.CR2/server/default/deploy/ejb3-interceptors-aop.xml}

                00:55:23,576 INFO  [JMXConnectorServerService] JMX Connector server: service:jmx:rmi://127.0.0.1/jndi/rmi://127.0.0.1:1090/jmxconnector

                00:55:23,670 INFO  [MailService] Mail Service bound to java:/Mail

                00:55:24,857 INFO  [NativeServerConfig] JBoss Web Services - Stack Native Core

                00:55:24,857 INFO  [NativeServerConfig] 3.0.3.GA

                00:55:26,436 WARN  [JBossASSecurityMetadataStore] WARNING! POTENTIAL SECURITY RISK. It has been detected that the MessageSucker component which sucks messages from one node to another has not had its password changed from the installation default. Please see the JBoss Messaging user guide for instructions on how to do this.

                00:55:26,764 INFO  [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.

                00:55:26,764 INFO  [TransactionManagerService] Setting up property manager MBean and JMX layer

                00:55:27,186 INFO  [TransactionManagerService] Initializing recovery manager

                00:55:27,826 INFO  [TransactionManagerService] Recovery manager configured

                00:55:27,826 INFO  [TransactionManagerService] Binding TransactionManager JNDI Reference

                00:55:27,967 INFO  [TransactionManagerService] Starting transaction recovery manager

                00:55:29,967 INFO  [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Oracle\Middleware\jdk160_05\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Oracle/Middleware/jdk160_05/bin/../jre/bin/client;C:/Oracle/Middleware/jdk160_05/bin/../jre/bin;C:\Program Files\PC Connectivity Solution\;C:\jboss-5.0.0.CR2\bin;C:\apache-ant-1.8.1\bin;C:\Oracle\Middleware\jdk160_05\bin;C:\Ora10gR1\jdk\jre\bin\classic;C:\Ora10gR1\jdk\jre\bin;C:\Ora10gR1\jdk\jre\bin\client;C:\Ora10gR1\jlib;C:\Ora10gR1\bin;C:\Ora10gR1\jre\1.1.8\bin;C:\orant\bin;C:\DevSuiteHome_1\jdk\jre\bin\classic;C:\DevSuiteHome_1\jdk\jre\bin;C:\DevSuiteHome_1\jdk\jre\bin\client;C:\DevSuiteHome_1\jlib;C:\DevSuiteHome_1\bin;C:\DevSuiteHome_1\jre\1.4.2\bin\client;C:\DevSuiteHome_1\jre\1.4.2\bin;C:\Ora10gR2\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;C:\orant\jdk\bin;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Program Files\QuickTime\QTSystem\;C:\Sun\SDK\bin;C:\Oracle\Middleware\jdk160_05\bin

                00:55:30,029 INFO  [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0.1-8080

                00:55:30,029 INFO  [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009

                00:55:30,029 INFO  [Catalina] Initialization processed in 1411 ms

                00:55:30,029 INFO  [StandardService] Starting service jboss.web

                00:55:30,029 INFO  [StandardEngine] Starting Servlet Engine: JBoss Web/2.1.1.CR7

                00:55:30,092 INFO  [Catalina] Server startup in 62 ms

                00:55:30,232 INFO  [TomcatDeployment] deploy, ctxPath=/jbossws, vfsUrl=jbossws.sar/jbossws-management.war

                00:55:32,217 INFO  [TomcatDeployment] deploy, ctxPath=/invoker, vfsUrl=http-invoker.sar/invoker.war

                00:55:32,420 INFO  [TomcatDeployment] deploy, ctxPath=/web-console, vfsUrl=management/console-mgr.sar/web-console.war

                00:55:33,061 INFO  [RARDeployment] Required license terms exist, view vfszip:/C:/jboss-5.0.0.CR2/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml

                00:55:33,092 INFO  [RARDeployment] Required license terms exist, view vfszip:/C:/jboss-5.0.0.CR2/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml

                00:55:33,139 INFO  [RARDeployment] Required license terms exist, view vfszip:/C:/jboss-5.0.0.CR2/server/default/deploy/jms-ra.rar/META-INF/ra.xml

                00:55:33,170 INFO  [RARDeployment] Required license terms exist, view vfszip:/C:/jboss-5.0.0.CR2/server/default/deploy/mail-ra.rar/META-INF/ra.xml

                00:55:33,248 INFO  [RARDeployment] Required license terms exist, view vfszip:/C:/jboss-5.0.0.CR2/server/default/deploy/quartz-ra.rar/META-INF/ra.xml

                00:55:33,732 INFO  [SimpleThreadPool] Job execution threads will use class loader of thread: main

                00:55:33,842 INFO  [QuartzScheduler] Quartz Scheduler v.1.5.2 created.

                00:55:33,857 INFO  [RAMJobStore] RAMJobStore initialized.

                00:55:33,857 INFO  [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'

                00:55:33,857 INFO  [StdSchedulerFactory] Quartz scheduler version: 1.5.2

                00:55:33,857 INFO  [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.

                00:55:37,451 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'

                00:55:39,451 WARN  [QuartzTimerServiceFactory] sql failed: CREATE TABLE QRTZ_JOB_DETAILS(JOB_NAME VARCHAR(80) NOT NULL, JOB_GROUP VARCHAR(80) NOT NULL, DESCRIPTION VARCHAR(120) NULL, JOB_CLASS_NAME VARCHAR(128) NOT NULL, IS_DURABLE VARCHAR(1) NOT NULL, IS_VOLATILE VARCHAR(1) NOT NULL, IS_STATEFUL VARCHAR(1) NOT NULL, REQUESTS_RECOVERY VARCHAR(1) NOT NULL, JOB_DATA BINARY NULL, PRIMARY KEY (JOB_NAME,JOB_GROUP))

                00:55:39,857 INFO  [SimpleThreadPool] Job execution threads will use class loader of thread: main

                00:55:39,857 INFO  [QuartzScheduler] Quartz Scheduler v.1.5.2 created.

                00:55:39,857 INFO  [JobStoreCMT] Using db table-based data access locking (synchronization).

                00:55:39,873 INFO  [JobStoreCMT] Removed 0 Volatile Trigger(s).

                00:55:39,873 INFO  [JobStoreCMT] Removed 0 Volatile Job(s).

                00:55:39,873 INFO  [JobStoreCMT] JobStoreCMT initialized.

                00:55:39,873 INFO  [StdSchedulerFactory] Quartz scheduler 'JBossEJB3QuartzScheduler' initialized from an externally provided properties instance.

                00:55:39,873 INFO  [StdSchedulerFactory] Quartz scheduler version: 1.5.2

                00:55:39,873 INFO  [JobStoreCMT] Freed 0 triggers from 'acquired' / 'blocked' state.

                00:55:39,889 INFO  [JobStoreCMT] Recovering 0 jobs that were in-progress at the time of the last shut-down.

                00:55:39,889 INFO  [JobStoreCMT] Recovery complete.

                00:55:39,889 INFO  [JobStoreCMT] Removed 0 'complete' triggers.

                00:55:39,889 INFO  [JobStoreCMT] Removed 0 stale fired job entries.

                00:55:39,889 INFO  [QuartzScheduler] Scheduler JBossEJB3QuartzScheduler_$_NON_CLUSTERED started.

                00:55:40,373 INFO  [ServerPeer] JBoss Messaging 1.4.1.CR1 server [0] started

                00:55:40,623 WARN  [ConnectionFactoryJNDIMapper] supportsFailover attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will *not* support failover

                00:55:40,623 WARN  [ConnectionFactoryJNDIMapper] supportsLoadBalancing attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will *not* support load balancing

                00:55:40,904 INFO  [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds

                00:55:40,904 INFO  [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@18694f5 started

                00:55:40,904 INFO  [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds

                00:55:40,904 INFO  [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@d860d7 started

                00:55:40,936 INFO  [QueueService] Queue[/queue/DLQ] started, fullSize=200000, pageSize=2000, downCacheSize=2000

                00:55:40,936 INFO  [QueueService] Queue[/queue/ExpiryQueue] started, fullSize=200000, pageSize=2000, downCacheSize=2000

                00:55:40,936 INFO  [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds

                00:55:40,936 INFO  [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@3cdebe started

                00:55:41,201 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'

                00:55:41,232 INFO  [TomcatDeployment] deploy, ctxPath=/, vfsUrl=ROOT.war

                00:55:41,576 INFO  [TomcatDeployment] deploy, ctxPath=/hello11, vfsUrl=hello11.war

                00:55:41,717 INFO  [StandardContext] The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored.

                00:55:41,717 ERROR [StandardContext] Context [/hello11] startup failed due to previous errors

                java.lang.IllegalArgumentException: Invalid <url-pattern> faces/* in servlet mapping

                    at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:2465)

                    at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:2441)

                    at org.jboss.web.tomcat.service.deployers.JBossContextConfig.processWebMetaData(JBossContextConfig.java:376)

                    at org.jboss.web.tomcat.service.deployers.JBossContextConfig.applicationWebConfig(JBossContextConfig.java:111)

                    at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1065)

                    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261)

                    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)

                    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4289)

                    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:352)

                    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:140)

                    at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:459)

                    at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)

                    at org.jboss.web.deployers.WebModule.start(WebModule.java:96)

                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                    at java.lang.reflect.Method.invoke(Method.java:597)

                    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

                    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

                    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

                    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)

                    at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)

                    at $Proxy35.start(Unknown Source)

                    at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)

                    at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)

                    at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)

                    at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

                    at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)

                    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

                    at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)

                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)

                    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)

                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

                    at org.jboss.system.ServiceController.doChange(ServiceController.java:672)

                    at org.jboss.system.ServiceController.start(ServiceController.java:444)

                    at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:146)

                    at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:104)

                    at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:45)

                    at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)

                    at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)

                    at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)

                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1285)

                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1003)

                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1024)

                    at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:944)

                    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)

                    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)

                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

                    at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:627)

                    at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:541)

                    at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:265)

                    at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:143)

                    at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:409)

                    at org.jboss.Main.boot(Main.java:209)

                    at org.jboss.Main$1.run(Main.java:544)

                    at java.lang.Thread.run(Thread.java:619)

                00:55:41,717 ERROR [StandardContext] Context [/hello11] startup failed due to previous errors

                00:55:41,732 ERROR [AbstractKernelController] Error installing to Start: name=jboss.web.deployment:war=/hello11 state=Create mode=Manual requiredState=Installed

                org.jboss.deployers.spi.DeploymentException: URL file:/C:/jboss-5.0.0.CR2/server/default/tmp/deploy/hello1126735-exp.war/ deployment failed

                    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:373)

                    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:140)

                    at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:459)

                    at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)

                    at org.jboss.web.deployers.WebModule.start(WebModule.java:96)

                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                    at java.lang.reflect.Method.invoke(Method.java:597)

                    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

                    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

                    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

                    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)

                    at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)

                    at $Proxy35.start(Unknown Source)

                    at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)

                    at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)

                    at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)

                    at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

                    at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)

                    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

                    at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)

                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)

                    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)

                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

                    at org.jboss.system.ServiceController.doChange(ServiceController.java:672)

                    at org.jboss.system.ServiceController.start(ServiceController.java:444)

                    at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:146)

                    at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:104)

                    at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:45)

                    at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)

                    at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)

                    at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)

                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1285)

                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1003)

                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1024)

                    at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:944)

                    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)

                    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)

                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

                    at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:627)

                    at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:541)

                    at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:265)

                    at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:143)

                    at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:409)

                    at org.jboss.Main.boot(Main.java:209)

                    at org.jboss.Main$1.run(Main.java:544)

                    at java.lang.Thread.run(Thread.java:619)

                00:55:41,842 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/C:/jboss-5.0.0.CR2/server/default/deploy/hello11.war state=PreReal mode=Manual requiredState=Real

                org.jboss.deployers.spi.DeploymentException: URL file:/C:/jboss-5.0.0.CR2/server/default/tmp/deploy/hello1126735-exp.war/ deployment failed

                    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:373)

                    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:140)

                    at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:459)

                    at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)

                    at org.jboss.web.deployers.WebModule.start(WebModule.java:96)

                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                    at java.lang.reflect.Method.invoke(Method.java:597)

                    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

                    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

                    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

                    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)

                    at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)

                    at $Proxy35.start(Unknown Source)

                    at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)

                    at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)

                    at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)

                    at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

                    at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)

                    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

                    at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)

                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)

                    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)

                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

                    at org.jboss.system.ServiceController.doChange(ServiceController.java:672)

                    at org.jboss.system.ServiceController.start(ServiceController.java:444)

                    at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:146)

                    at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:104)

                    at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:45)

                    at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)

                    at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)

                    at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)

                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1285)

                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1003)

                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1024)

                    at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:944)

                    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)

                    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)

                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

                    at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:627)

                    at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:541)

                    at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:265)

                    at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:143)

                    at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:409)

                    at org.jboss.Main.boot(Main.java:209)

                    at org.jboss.Main$1.run(Main.java:544)

                    at java.lang.Thread.run(Thread.java:619)

                00:55:41,873 INFO  [TomcatDeployment] deploy, ctxPath=/jmx-console, vfsUrl=jmx-console.war

                00:55:41,982 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

                 

                *** CONTEXTS IN ERROR: Name -> Error

                 

                vfszip:/C:/jboss-5.0.0.CR2/server/default/deploy/hello11.war -> org.jboss.deployers.spi.DeploymentException: URL file:/C:/jboss-5.0.0.CR2/server/default/tmp/deploy/hello1126735-exp.war/ deployment failed

                 

                 

                00:55:42,014 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080

                 

                00:55:42,123 INFO  [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009

                 

                00:55:42,139 INFO  [ServerImpl] JBoss (Microcontainer) [5.0.0.CR2 (build: SVNTag=JBoss_5_0_0_CR2 date=200809171046)] Started in 46s:63ms